test_class.file: dataprep-backend-service/src/test/java/org/talend/dataprep/schema/csv/SeparatorAnalyzerTest.java
test_class.identifier: SeparatorAnalyzerTest
test_case.body: @Test
      public void should_return_char_with_more_consistency_level() {
          // given
          final Separator semiColonSeparator = new Separator(';');
          final Separator commaSeparator = new Separator(',');
          commaSeparator.incrementCount(1);
          final Separator tabulationSeparator = new Separator('\t');
          tabulationSeparator.incrementCount(2);
          tabulationSeparator.incrementCount(3);
          final Separator spaceSeparator = new Separator(' ');
          spaceSeparator.incrementCount(1);
          spaceSeparator.incrementCount(2);
  
          // when
          SeparatorAnalyzer separatorAnalyzer = new SeparatorAnalyzer(3, Collections.emptyList());
  
          // then
          assertTrue(separatorAnalyzer.compare(spaceSeparator, tabulationSeparator) < 0);
          assertTrue(separatorAnalyzer.compare(tabulationSeparator, commaSeparator) < 0);
          assertTrue(separatorAnalyzer.compare(commaSeparator, semiColonSeparator) < 0);
  
      }
test_case.class_method_signature: SeparatorAnalyzerTest.should_return_char_with_more_consistency_level()
test_case.full_signature: @Test public void should_return_char_with_more_consistency_level()
test_case.identifier: should_return_char_with_more_consistency_level
test_case.invocations: incrementCount incrementCount incrementCount incrementCount incrementCount emptyList assertTrue compare assertTrue compare assertTrue compare
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void should_return_char_with_more_consistency_level()
focal_class.declarator: numberOfLines
focal_class.modifier: private final
focal_class.original_string: private final int numberOfLines;
focal_class.type: int
focal_class.var_name: numberOfLines
focal_class.declarator: sampleLines
focal_class.modifier: private final
focal_class.original_string: private final List<String> sampleLines;
focal_class.type: List<String>
focal_class.var_name: sampleLines
focal_class.declarator: comparator
focal_class.modifier: private final
focal_class.original_string: private final SeparatorComparator comparator;
focal_class.type: SeparatorComparator
focal_class.var_name: comparator
focal_class.declarator: priority = Arrays.asList(';', ',', '\t', ' ', '|')
focal_class.modifier: private final
focal_class.original_string: private final List<Character> priority = Arrays.asList(';', ',', '\t', ' ', '|');
focal_class.type: List<Character>
focal_class.var_name: priority
focal_class.file: dataprep-backend-service/src/main/java/org/talend/dataprep/schema/csv/SeparatorAnalyzer.java
focal_class.identifier: SeparatorAnalyzer
focal_class.interfaces: implements Consumer<Separator>
focal_class.class_method_signature: SeparatorAnalyzer.SeparatorAnalyzer(int numberOfLines, List<String> sampleLines)
focal_class.full_signature: public  SeparatorAnalyzer(int numberOfLines, List<String> sampleLines)
focal_class.identifier: SeparatorAnalyzer
focal_class.modifiers: public
focal_class.parameters: (int numberOfLines, List<String> sampleLines)
focal_class.signature:  SeparatorAnalyzer(int numberOfLines, List<String> sampleLines)
focal_class.class_method_signature: SeparatorAnalyzer.prio(char c1, char c2)
focal_class.full_signature: private int prio(char c1, char c2)
focal_class.identifier: prio
focal_class.modifiers: private
focal_class.parameters: (char c1, char c2)
focal_class.return: int
focal_class.signature: int prio(char c1, char c2)
focal_class.class_method_signature: SeparatorAnalyzer.consistencyLevel(Separator s)
focal_class.full_signature: private int consistencyLevel(Separator s)
focal_class.identifier: consistencyLevel
focal_class.modifiers: private
focal_class.parameters: (Separator s)
focal_class.return: int
focal_class.signature: int consistencyLevel(Separator s)
focal_class.class_method_signature: SeparatorAnalyzer.countFrequency(Separator separator)
focal_class.full_signature: private Collection<Double> countFrequency(Separator separator)
focal_class.identifier: countFrequency
focal_class.modifiers: private
focal_class.parameters: (Separator separator)
focal_class.return: Collection<Double>
focal_class.signature: Collection<Double> countFrequency(Separator separator)
focal_class.class_method_signature: SeparatorAnalyzer.computeEntropy(Separator separator)
focal_class.full_signature: private double computeEntropy(Separator separator)
focal_class.identifier: computeEntropy
focal_class.modifiers: private
focal_class.parameters: (Separator separator)
focal_class.return: double
focal_class.signature: double computeEntropy(Separator separator)
focal_class.class_method_signature: SeparatorAnalyzer.accept(Separator separator)
focal_class.full_signature: @Override public void accept(Separator separator)
focal_class.identifier: accept
focal_class.modifiers: @Override public
focal_class.parameters: (Separator separator)
focal_class.return: void
focal_class.signature: void accept(Separator separator)
focal_class.class_method_signature: SeparatorAnalyzer.compare(Separator s1, Separator s2)
focal_class.full_signature: public int compare(Separator s1, Separator s2)
focal_class.identifier: compare
focal_class.modifiers: public
focal_class.parameters: (Separator s1, Separator s2)
focal_class.return: int
focal_class.signature: int compare(Separator s1, Separator s2)
focal_method.body: public int compare(Separator s1, Separator s2) {
          return comparator.compare(s1, s2);
      }
focal_method.class_method_signature: SeparatorAnalyzer.compare(Separator s1, Separator s2)
focal_method.full_signature: public int compare(Separator s1, Separator s2)
focal_method.identifier: compare
focal_method.invocations: compare
focal_method.modifiers: public
focal_method.parameters: (Separator s1, Separator s2)
focal_method.return: int
focal_method.signature: int compare(Separator s1, Separator s2)