test_class.declarator: jw = new JaroWinkler(.7)
test_class.original_string: JaroWinkler jw = new JaroWinkler(.7);
test_class.type: JaroWinkler
test_class.var_name: jw
test_class.file: app/src/test/java/de/rampro/activitydiary/helpers/JaroWinklerTest.java
test_class.identifier: JaroWinklerTest
test_case.body: @Test
      public void testDash() {
          String s = "Sleeping-well";
          String s2 = "Sleeping";
          assert(jw.similarity(s,s2) > .8);
      }
test_case.class_method_signature: JaroWinklerTest.testDash()
test_case.full_signature: @Test public void testDash()
test_case.identifier: testDash
test_case.invocations: similarity
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testDash()
focal_class.declarator: DEFAULT_THRESHOLD = 0.7
focal_class.modifier: private static final
focal_class.original_string: private static final double DEFAULT_THRESHOLD = 0.7;
focal_class.type: double
focal_class.var_name: DEFAULT_THRESHOLD
focal_class.declarator: THREE = 3
focal_class.modifier: private static final
focal_class.original_string: private static final int THREE = 3;
focal_class.type: int
focal_class.var_name: THREE
focal_class.declarator: JW_COEF = 0.1
focal_class.modifier: private static final
focal_class.original_string: private static final double JW_COEF = 0.1;
focal_class.type: double
focal_class.var_name: JW_COEF
focal_class.declarator: threshold
focal_class.modifier: private final
focal_class.original_string: private final double threshold;
focal_class.type: double
focal_class.var_name: threshold
focal_class.file: app/src/main/java/de/rampro/activitydiary/helpers/JaroWinkler.java
focal_class.identifier: JaroWinkler
focal_class.class_method_signature: JaroWinkler.JaroWinkler()
focal_class.full_signature: public  JaroWinkler()
focal_class.identifier: JaroWinkler
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  JaroWinkler()
focal_class.class_method_signature: JaroWinkler.JaroWinkler(final double threshold)
focal_class.full_signature: public  JaroWinkler(final double threshold)
focal_class.identifier: JaroWinkler
focal_class.modifiers: public
focal_class.parameters: (final double threshold)
focal_class.signature:  JaroWinkler(final double threshold)
focal_class.class_method_signature: JaroWinkler.getThreshold()
focal_class.full_signature: public final double getThreshold()
focal_class.identifier: getThreshold
focal_class.modifiers: public final
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double getThreshold()
focal_class.class_method_signature: JaroWinkler.similarity(@NonNull final String s1, @NonNull final String s2)
focal_class.full_signature: public final double similarity(@NonNull final String s1, @NonNull final String s2)
focal_class.identifier: similarity
focal_class.modifiers: public final
focal_class.parameters: (@NonNull final String s1, @NonNull final String s2)
focal_class.return: double
focal_class.signature: double similarity(@NonNull final String s1, @NonNull final String s2)
focal_class.class_method_signature: JaroWinkler.distance(@NonNull final String s1, @NonNull final String s2)
focal_class.full_signature: public final double distance(@NonNull final String s1, @NonNull final String s2)
focal_class.identifier: distance
focal_class.modifiers: public final
focal_class.parameters: (@NonNull final String s1, @NonNull final String s2)
focal_class.return: double
focal_class.signature: double distance(@NonNull final String s1, @NonNull final String s2)
focal_class.class_method_signature: JaroWinkler.matches(@NonNull final String s1, @NonNull final String s2)
focal_class.full_signature: private int[] matches(@NonNull final String s1, @NonNull final String s2)
focal_class.identifier: matches
focal_class.modifiers: private
focal_class.parameters: (@NonNull final String s1, @NonNull final String s2)
focal_class.return: int[]
focal_class.signature: int[] matches(@NonNull final String s1, @NonNull final String s2)
focal_method.body: public final double similarity(@NonNull final String s1, @NonNull final String s2) {
          if (s1 == null) {
              throw new NullPointerException("s1 must not be null");
          }
  
          if (s2 == null) {
              throw new NullPointerException("s2 must not be null");
          }
  
          if (s1.equals(s2)) {
              return 1;
          }
  
          int[] mtp = matches(s1, s2);
          float m = mtp[0];
          if (m == 0) {
              return 0f;
          }
          double j = ((m / s1.length() + m / s2.length() + (m - mtp[1]) / m))
                  / THREE;
          double jw = j;
  
          if (j > getThreshold()) {
              jw = j + Math.min(JW_COEF, 1.0 / mtp[THREE]) * mtp[2] * (1 - j);
          }
          return jw;
      }
focal_method.class_method_signature: JaroWinkler.similarity(@NonNull final String s1, @NonNull final String s2)
focal_method.full_signature: public final double similarity(@NonNull final String s1, @NonNull final String s2)
focal_method.identifier: similarity
focal_method.invocations: equals matches length length getThreshold min
focal_method.modifiers: public final
focal_method.parameters: (@NonNull final String s1, @NonNull final String s2)
focal_method.return: double
focal_method.signature: double similarity(@NonNull final String s1, @NonNull final String s2)