test_class.declarator: similarity
test_class.original_string: SimpleFeatureVectorSimilarity similarity;
test_class.type: SimpleFeatureVectorSimilarity
test_class.var_name: similarity
test_class.file: phenol-core/src/test/java/org/monarchinitiative/phenol/ontology/similarity/SimpleFeatureVectorSimilarityTest.java
test_class.identifier: SimpleFeatureVectorSimilarityTest
test_case.body: @Test
    public void testComputeSimilarities() {
      assertEquals(
          1.0,
          similarity.computeScore(
              Lists.newArrayList(
                  TermId.of("HP:0000008"),
                  TermId.of("HP:0000009")),
              Lists.newArrayList(TermId.of("HP:0000008"))),
          0.01);
      assertEquals(
          1.0,
          similarity.computeScore(
              Lists.newArrayList(
                  TermId.of("HP:0000008"),
                  TermId.of("HP:0000009")),
              Lists.newArrayList(
                  TermId.of("HP:0000008"),
                  TermId.of("HP:0000010"))),
          0.01);
      assertEquals(
          0.0,
          similarity.computeScore(
              Lists.newArrayList(TermId.of("HP:0000009")),
              Lists.newArrayList(
                  TermId.of("HP:0000008"),
                  TermId.of("HP:0000010"))),
          0.01);
    }
test_case.class_method_signature: SimpleFeatureVectorSimilarityTest.testComputeSimilarities()
test_case.full_signature: @Test public void testComputeSimilarities()
test_case.identifier: testComputeSimilarities
test_case.invocations: assertEquals computeScore newArrayList of of newArrayList of assertEquals computeScore newArrayList of of newArrayList of of assertEquals computeScore newArrayList of newArrayList of of
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testComputeSimilarities()
focal_class.file: phenol-core/src/main/java/org/monarchinitiative/phenol/ontology/similarity/SimpleFeatureVectorSimilarity.java
focal_class.identifier: SimpleFeatureVectorSimilarity
focal_class.interfaces: implements Similarity
focal_class.class_method_signature: SimpleFeatureVectorSimilarity.getName()
focal_class.full_signature: @Override public String getName()
focal_class.identifier: getName
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getName()
focal_class.class_method_signature: SimpleFeatureVectorSimilarity.getParameters()
focal_class.full_signature: @Override public String getParameters()
focal_class.identifier: getParameters
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getParameters()
focal_class.class_method_signature: SimpleFeatureVectorSimilarity.isSymmetric()
focal_class.full_signature: @Override public boolean isSymmetric()
focal_class.identifier: isSymmetric
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isSymmetric()
focal_class.class_method_signature: SimpleFeatureVectorSimilarity.computeScore(Collection<TermId> query, Collection<TermId> target)
focal_class.full_signature: @Override public double computeScore(Collection<TermId> query, Collection<TermId> target)
focal_class.identifier: computeScore
focal_class.modifiers: @Override public
focal_class.parameters: (Collection<TermId> query, Collection<TermId> target)
focal_class.return: double
focal_class.signature: double computeScore(Collection<TermId> query, Collection<TermId> target)
focal_method.body: @Override
    public double computeScore(Collection<TermId> query, Collection<TermId> target) {
      return Sets.intersection(Sets.newHashSet(query), Sets.newHashSet(target)).size();
    }
focal_method.class_method_signature: SimpleFeatureVectorSimilarity.computeScore(Collection<TermId> query, Collection<TermId> target)
focal_method.full_signature: @Override public double computeScore(Collection<TermId> query, Collection<TermId> target)
focal_method.identifier: computeScore
focal_method.invocations: size intersection newHashSet newHashSet
focal_method.modifiers: @Override public
focal_method.parameters: (Collection<TermId> query, Collection<TermId> target)
focal_method.return: double
focal_method.signature: double computeScore(Collection<TermId> query, Collection<TermId> target)