test_class.file: common/src/test/java/uk/ac/kcl/iop/brc/core/pipeline/common/utils/StringToolsTest.java
test_class.identifier: StringToolsTest
test_case.body: @Test
      public void shouldReturnTrueIfStringIsBlank() {
          String test = "";
  
          assertThat(StringTools.noContentInHtml(test), equalTo(true));
  
      }
test_case.class_method_signature: StringToolsTest.shouldReturnTrueIfStringIsBlank()
test_case.full_signature: @Test public void shouldReturnTrueIfStringIsBlank()
test_case.identifier: shouldReturnTrueIfStringIsBlank
test_case.invocations: assertThat noContentInHtml equalTo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldReturnTrueIfStringIsBlank()
focal_class.declarator: maleNames = new ArrayList<>()
focal_class.modifier: private static
focal_class.original_string: private static List<String> maleNames = new ArrayList<>();
focal_class.type: List<String>
focal_class.var_name: maleNames
focal_class.declarator: femaleNames = new ArrayList<>()
focal_class.modifier: private static
focal_class.original_string: private static List<String> femaleNames = new ArrayList<>();
focal_class.type: List<String>
focal_class.var_name: femaleNames
focal_class.declarator: lastNames = new ArrayList<>()
focal_class.modifier: private static
focal_class.original_string: private static List<String> lastNames = new ArrayList<>();
focal_class.type: List<String>
focal_class.var_name: lastNames
focal_class.file: common/src/main/java/uk/ac/kcl/iop/brc/core/pipeline/common/utils/StringTools.java
focal_class.identifier: StringTools
focal_class.class_method_signature: StringTools.getLevenshteinDistance(String str1, String str2)
focal_class.full_signature: public static int getLevenshteinDistance(String str1, String str2)
focal_class.identifier: getLevenshteinDistance
focal_class.modifiers: public static
focal_class.parameters: (String str1, String str2)
focal_class.return: int
focal_class.signature: int getLevenshteinDistance(String str1, String str2)
focal_class.class_method_signature: StringTools.getApproximatelyMatchingStringList(String sourceString, String search)
focal_class.full_signature: public static Set<String> getApproximatelyMatchingStringList(String sourceString, String search)
focal_class.identifier: getApproximatelyMatchingStringList
focal_class.modifiers: public static
focal_class.parameters: (String sourceString, String search)
focal_class.return: Set<String>
focal_class.signature: Set<String> getApproximatelyMatchingStringList(String sourceString, String search)
focal_class.class_method_signature: StringTools.isNotTooShort(String string)
focal_class.full_signature: public boolean isNotTooShort(String string)
focal_class.identifier: isNotTooShort
focal_class.modifiers: public
focal_class.parameters: (String string)
focal_class.return: boolean
focal_class.signature: boolean isNotTooShort(String string)
focal_class.class_method_signature: StringTools.getApproximatelyMatchingStringList(String sourceString, String search, int maxDistance)
focal_class.full_signature: public static Set<String> getApproximatelyMatchingStringList(String sourceString, String search, int maxDistance)
focal_class.identifier: getApproximatelyMatchingStringList
focal_class.modifiers: public static
focal_class.parameters: (String sourceString, String search, int maxDistance)
focal_class.return: Set<String>
focal_class.signature: Set<String> getApproximatelyMatchingStringList(String sourceString, String search, int maxDistance)
focal_class.class_method_signature: StringTools.getMaxAllowedLevenshteinDistanceFor(String word)
focal_class.full_signature: protected static int getMaxAllowedLevenshteinDistanceFor(String word)
focal_class.identifier: getMaxAllowedLevenshteinDistanceFor
focal_class.modifiers: protected static
focal_class.parameters: (String word)
focal_class.return: int
focal_class.signature: int getMaxAllowedLevenshteinDistanceFor(String word)
focal_class.class_method_signature: StringTools.getCompletingString(String string, int begin, int end)
focal_class.full_signature: public static String getCompletingString(String string, int begin, int end)
focal_class.identifier: getCompletingString
focal_class.modifiers: public static
focal_class.parameters: (String string, int begin, int end)
focal_class.return: String
focal_class.signature: String getCompletingString(String string, int begin, int end)
focal_class.class_method_signature: StringTools.getMatchingWindowsAboveThreshold(String text, String search, double threshold)
focal_class.full_signature: public static List<MatchingWindow> getMatchingWindowsAboveThreshold(String text, String search, double threshold)
focal_class.identifier: getMatchingWindowsAboveThreshold
focal_class.modifiers: public static
focal_class.parameters: (String text, String search, double threshold)
focal_class.return: List<MatchingWindow>
focal_class.signature: List<MatchingWindow> getMatchingWindowsAboveThreshold(String text, String search, double threshold)
focal_class.class_method_signature: StringTools.takeBag(String[] textWords, int startWordIndex, int bagSize)
focal_class.full_signature: private static MatchingWindow takeBag(String[] textWords, int startWordIndex, int bagSize)
focal_class.identifier: takeBag
focal_class.modifiers: private static
focal_class.parameters: (String[] textWords, int startWordIndex, int bagSize)
focal_class.return: MatchingWindow
focal_class.signature: MatchingWindow takeBag(String[] textWords, int startWordIndex, int bagSize)
focal_class.class_method_signature: StringTools.splitIntoWordsWithLengthHigherThan(String string, int minLength)
focal_class.full_signature: public static Set<String> splitIntoWordsWithLengthHigherThan(String string, int minLength)
focal_class.identifier: splitIntoWordsWithLengthHigherThan
focal_class.modifiers: public static
focal_class.parameters: (String string, int minLength)
focal_class.return: Set<String>
focal_class.signature: Set<String> splitIntoWordsWithLengthHigherThan(String string, int minLength)
focal_class.class_method_signature: StringTools.splitIntoWordsWithLengthHigherThan(String string, int minLength, String... ignoreWords)
focal_class.full_signature: public static Set<String> splitIntoWordsWithLengthHigherThan(String string, int minLength, String... ignoreWords)
focal_class.identifier: splitIntoWordsWithLengthHigherThan
focal_class.modifiers: public static
focal_class.parameters: (String string, int minLength, String... ignoreWords)
focal_class.return: Set<String>
focal_class.signature: Set<String> splitIntoWordsWithLengthHigherThan(String string, int minLength, String... ignoreWords)
focal_class.class_method_signature: StringTools.noContentInHtml(String text)
focal_class.full_signature: public static boolean noContentInHtml(String text)
focal_class.identifier: noContentInHtml
focal_class.modifiers: public static
focal_class.parameters: (String text)
focal_class.return: boolean
focal_class.signature: boolean noContentInHtml(String text)
focal_class.class_method_signature: StringTools.getRegexMatchesWithMinLength(String text, String regex, int minLength)
focal_class.full_signature: public static List<String> getRegexMatchesWithMinLength(String text, String regex, int minLength)
focal_class.identifier: getRegexMatchesWithMinLength
focal_class.modifiers: public static
focal_class.parameters: (String text, String regex, int minLength)
focal_class.return: List<String>
focal_class.signature: List<String> getRegexMatchesWithMinLength(String text, String regex, int minLength)
focal_class.class_method_signature: StringTools.getRandomForeName()
focal_class.full_signature: public static String getRandomForeName()
focal_class.identifier: getRandomForeName
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getRandomForeName()
focal_class.class_method_signature: StringTools.getRandomSurname()
focal_class.full_signature: public static String getRandomSurname()
focal_class.identifier: getRandomSurname
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getRandomSurname()
focal_class.class_method_signature: StringTools.loadSurnames()
focal_class.full_signature: private static void loadSurnames()
focal_class.identifier: loadSurnames
focal_class.modifiers: private static
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void loadSurnames()
focal_class.class_method_signature: StringTools.loadFemaleNames()
focal_class.full_signature: private static void loadFemaleNames()
focal_class.identifier: loadFemaleNames
focal_class.modifiers: private static
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void loadFemaleNames()
focal_class.class_method_signature: StringTools.loadMaleNames()
focal_class.full_signature: private static void loadMaleNames()
focal_class.identifier: loadMaleNames
focal_class.modifiers: private static
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void loadMaleNames()
focal_class.class_method_signature: StringTools.getFirstHtmlWithContent(String html)
focal_class.full_signature: public static String getFirstHtmlWithContent(String html)
focal_class.identifier: getFirstHtmlWithContent
focal_class.modifiers: public static
focal_class.parameters: (String html)
focal_class.return: String
focal_class.signature: String getFirstHtmlWithContent(String html)
focal_class.class_method_signature: StringTools.getMetaDataFromHTML(String html)
focal_class.full_signature: public static String getMetaDataFromHTML(String html)
focal_class.identifier: getMetaDataFromHTML
focal_class.modifiers: public static
focal_class.parameters: (String html)
focal_class.return: String
focal_class.signature: String getMetaDataFromHTML(String html)
focal_class.class_method_signature: StringTools.addMetaDataToHtml(String htmlText, String metaData)
focal_class.full_signature: public static String addMetaDataToHtml(String htmlText, String metaData)
focal_class.identifier: addMetaDataToHtml
focal_class.modifiers: public static
focal_class.parameters: (String htmlText, String metaData)
focal_class.return: String
focal_class.signature: String addMetaDataToHtml(String htmlText, String metaData)
focal_method.body: public static boolean noContentInHtml(String text) {
          if (StringUtils.isBlank(text)) {
              return true;
          }
          try {
              Document doc = Jsoup.parse(text);
  
              String bodyText = doc.body().text();
  
              return StringUtils.isBlank(bodyText);
          } catch (Exception ex) {
              return false;
          }
      }
focal_method.class_method_signature: StringTools.noContentInHtml(String text)
focal_method.full_signature: public static boolean noContentInHtml(String text)
focal_method.identifier: noContentInHtml
focal_method.invocations: isBlank parse text body isBlank
focal_method.modifiers: public static
focal_method.parameters: (String text)
focal_method.return: boolean
focal_method.signature: boolean noContentInHtml(String text)