test_class.declarator: similarity
test_class.modifier: private
test_class.original_string: private PrecomputingPairwiseResnikSimilarity similarity;
test_class.type: PrecomputingPairwiseResnikSimilarity
test_class.var_name: similarity
test_class.file: phenol-core/src/test/java/org/monarchinitiative/phenol/ontology/similarity/PrecomputingPairwiseResnikSimilarityTest.java
test_class.identifier: PrecomputingPairwiseResnikSimilarityTest
test_class.superclass: extends VegetableOntologyTestBase
test_case.body: @Test
    public void testComputeSimilarities() {
      assertEquals(0.405, similarity.computeScore(idBeet, idBeet), 0.01);
      assertEquals(0.0, similarity.computeScore(idBeet, idCarrot), 0.01);
      assertEquals(0.0, similarity.computeScore(idBeet, idBlueCarrot), 0.01);
      assertEquals(0.0, similarity.computeScore(idBeet, idPumpkin), 0.01);
      assertEquals(0.405, similarity.computeScore(idBeet, idLeafVegetable), 0.01);
  
      assertEquals(0.0, similarity.computeScore(idCarrot, idBeet), 0.01);
      assertEquals(0.405, similarity.computeScore(idCarrot, idCarrot), 0.01);
      assertEquals(0.405, similarity.computeScore(idCarrot, idBlueCarrot), 0.01);
      assertEquals(0.0, similarity.computeScore(idCarrot, idPumpkin), 0.01);
      assertEquals(0.0, similarity.computeScore(idCarrot, idLeafVegetable), 0.01);
  
      assertEquals(1.098, similarity.computeScore(idBlueCarrot, idBlueCarrot), 0.01);
      assertEquals(0.405, similarity.computeScore(idBlueCarrot, idCarrot), 0.01);
      assertEquals(0.0, similarity.computeScore(idBlueCarrot, idBeet), 0.01);
      assertEquals(0.0, similarity.computeScore(idBlueCarrot, idPumpkin), 0.01);
      assertEquals(0.0, similarity.computeScore(idBlueCarrot, idLeafVegetable), 0.01);
  
      assertEquals(0.405, similarity.computeScore(idPumpkin, idPumpkin), 0.01);
      assertEquals(0.0, similarity.computeScore(idPumpkin, idCarrot), 0.01);
      assertEquals(0.0, similarity.computeScore(idPumpkin, idBlueCarrot), 0.01);
      assertEquals(0.0, similarity.computeScore(idPumpkin, idBeet), 0.01);
      assertEquals(0.0, similarity.computeScore(idPumpkin, idLeafVegetable), 0.01);
  
      assertEquals(0.405, similarity.computeScore(idLeafVegetable, idLeafVegetable), 0.01);
      assertEquals(0.0, similarity.computeScore(idLeafVegetable, idPumpkin), 0.01);
      assertEquals(0.0, similarity.computeScore(idLeafVegetable, idCarrot), 0.01);
      assertEquals(0.0, similarity.computeScore(idLeafVegetable, idBlueCarrot), 0.01);
      assertEquals(0.405, similarity.computeScore(idLeafVegetable, idBeet), 0.01);
    }
test_case.class_method_signature: PrecomputingPairwiseResnikSimilarityTest.testComputeSimilarities()
test_case.full_signature: @Test public void testComputeSimilarities()
test_case.identifier: testComputeSimilarities
test_case.invocations: assertEquals computeScore assertEquals computeScore assertEquals computeScore assertEquals computeScore assertEquals computeScore assertEquals computeScore assertEquals computeScore assertEquals computeScore assertEquals computeScore assertEquals computeScore assertEquals computeScore assertEquals computeScore assertEquals computeScore assertEquals computeScore assertEquals computeScore assertEquals computeScore assertEquals computeScore assertEquals computeScore assertEquals computeScore assertEquals computeScore assertEquals computeScore assertEquals computeScore assertEquals computeScore assertEquals computeScore assertEquals computeScore
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testComputeSimilarities()
focal_class.declarator: serialVersionUID = -350622665214125471L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = -350622665214125471L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: LOGGER =
        LoggerFactory.getLogger(PrecomputingPairwiseResnikSimilarity.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER =
        LoggerFactory.getLogger(PrecomputingPairwiseResnikSimilarity.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: precomputedScores
focal_class.modifier: private final
focal_class.original_string: private final PrecomputedScores precomputedScores;
focal_class.type: PrecomputedScores
focal_class.var_name: precomputedScores
focal_class.declarator: numThreads
focal_class.modifier: private final
focal_class.original_string: private final int numThreads;
focal_class.type: int
focal_class.var_name: numThreads
focal_class.declarator: chunkSize = 100
focal_class.modifier: private final
focal_class.original_string: private final int chunkSize = 100;
focal_class.type: int
focal_class.var_name: chunkSize
focal_class.file: phenol-core/src/main/java/org/monarchinitiative/phenol/ontology/similarity/PrecomputingPairwiseResnikSimilarity.java
focal_class.identifier: PrecomputingPairwiseResnikSimilarity
focal_class.interfaces: implements PairwiseSimilarity, Serializable
focal_class.class_method_signature: PrecomputingPairwiseResnikSimilarity.PrecomputingPairwiseResnikSimilarity(
      Ontology ontology, Map<TermId, Double> termToIc, int numThreads)
focal_class.full_signature: public  PrecomputingPairwiseResnikSimilarity(
      Ontology ontology, Map<TermId, Double> termToIc, int numThreads)
focal_class.identifier: PrecomputingPairwiseResnikSimilarity
focal_class.modifiers: public
focal_class.parameters: (
      Ontology ontology, Map<TermId, Double> termToIc, int numThreads)
focal_class.signature:  PrecomputingPairwiseResnikSimilarity(
      Ontology ontology, Map<TermId, Double> termToIc, int numThreads)
focal_class.class_method_signature: PrecomputingPairwiseResnikSimilarity.PrecomputingPairwiseResnikSimilarity(
        Ontology ontology, Map<TermId, Double> termToIc)
focal_class.full_signature: public  PrecomputingPairwiseResnikSimilarity(
        Ontology ontology, Map<TermId, Double> termToIc)
focal_class.identifier: PrecomputingPairwiseResnikSimilarity
focal_class.modifiers: public
focal_class.parameters: (
        Ontology ontology, Map<TermId, Double> termToIc)
focal_class.signature:  PrecomputingPairwiseResnikSimilarity(
        Ontology ontology, Map<TermId, Double> termToIc)
focal_class.class_method_signature: PrecomputingPairwiseResnikSimilarity.precomputeScores(Ontology ontology, Map<TermId, Double> termToIc)
focal_class.full_signature: private void precomputeScores(Ontology ontology, Map<TermId, Double> termToIc)
focal_class.identifier: precomputeScores
focal_class.modifiers: private
focal_class.parameters: (Ontology ontology, Map<TermId, Double> termToIc)
focal_class.return: void
focal_class.signature: void precomputeScores(Ontology ontology, Map<TermId, Double> termToIc)
focal_class.class_method_signature: PrecomputingPairwiseResnikSimilarity.computeScore(TermId query, TermId target)
focal_class.full_signature: @Override public double computeScore(TermId query, TermId target)
focal_class.identifier: computeScore
focal_class.modifiers: @Override public
focal_class.parameters: (TermId query, TermId target)
focal_class.return: double
focal_class.signature: double computeScore(TermId query, TermId target)
focal_method.body: @Override
    public double computeScore(TermId query, TermId target) {
      return precomputedScores.get(query, target);
    }
focal_method.class_method_signature: PrecomputingPairwiseResnikSimilarity.computeScore(TermId query, TermId target)
focal_method.full_signature: @Override public double computeScore(TermId query, TermId target)
focal_method.identifier: computeScore
focal_method.invocations: get
focal_method.modifiers: @Override public
focal_method.parameters: (TermId query, TermId target)
focal_method.return: double
focal_method.signature: double computeScore(TermId query, TermId target)