### Question:
WikipediaDatasetCreator { static double getUcTokenPercentage(String string) { int upper = 0; int lower = 0; String[] split = string.split("\\s"); for (String part : split) { if (part.length() > 0) { char firstChar = part.charAt(0); if (Character.isUpperCase(firstChar)) { upper++; } else if (Character.isLowerCase(firstChar)) { lower++; } } } return (double)upper / (upper + lower); }  static void createCombinedAnnotationFiles(File datasetDirectory, File destinationPath); static void createCombinedAnnotationFiles(Collection<File> datasetFiles, File destinationPath); static void createCombinedAnnotationFilesEvaluation(File datasetDirectory, File destinationPath); static void mineWikipedia(int numThreads, final File destinationPath); static void main(String[] args);  }### Answer:
@Test public void testUcPercentage() { assertEquals(5. / 7, getUcTokenPercentage("White House Council on Women and Girls"), 0); assertEquals(1. / 4, getUcTokenPercentage("ended U.S. military involvement"), 0); assertEquals(2. / 5, getUcTokenPercentage("U.S. military involvement in Libya"), 0); assertEquals(1, getUcTokenPercentage("Wichita, Kansas"), 0); assertEquals(1, getUcTokenPercentage("Punahou School"), 0); assertEquals(3. / 4, getUcTokenPercentage("Dreams from My Father"), 0); assertEquals(0, getUcTokenPercentage("current"), 0); assertEquals(3. / 4, getUcTokenPercentage("The Audacity of Hope"), 0); }