src/main/java/ch/uzh/ifi/seal/ase/cscc/CompletionModel/CompletionModelEvaluator.java
public void evaluate(IndexDocument document) {
        Recommender recommender = model.getRecommender(document);

        recommendationsRequested++;

        if (recommender.containsTopThree(document)) {
            recommendationsMade++;
            recommendationsRelevant++;
        } else if (recommender.contains(document)) {
            recommendationsMade++;
        }
    }
/**
     * Test if our model recommends the given method.
     *
     * @param document The ground truth method to test against. If this method is in our recommendation then we
     *                 consider this recommendation as correct.
     */
Test if our model recommends the given method.
@param document The ground truth method to test against. If this method is in our recommendation then we
consider this recommendation as correct.
Test if our model recommends the given method . @param document The ground truth method to test against . If this method is in our recommendation then we consider this recommendation as correct .
public void evaluate(IndexDocument document) {
        Recommender recommender = model.getRecommender(document);
        recommendationsRequested++;
        if (recommender.containsTopThree(document)) {
            recommendationsMade++;
            recommendationsRelevant++;
        } else if (recommender.contains(document)) {
            recommendationsMade++;
        }
    }
public void evaluate ( IndexDocument document ) { Recommender recommender = model . getRecommender ( document ) ; recommendationsRequested ++ ; if ( recommender . containsTopThree ( document ) ) { recommendationsMade ++ ; recommendationsRelevant ++ ; } else if ( recommender . contains ( document ) ) { recommendationsMade ++ ; } }
Test if our model recommends the given method.
Test if our model recommends the given method .