src/main/java/ch/uzh/ifi/seal/ase/cscc/index/KaVeRecommender.java
@Override
    public Set<Tuple<IMethodName, Double>> query(Context ctx) {
        ISST sst = ctx.getSST();
        ISSTNodeVisitor visitor = new IndexDocumentExtractionVisitor();
        List<IndexDocument> methodInvocations = new LinkedList<>();
        sst.accept(visitor, methodInvocations);
        IndexDocument mergedContexts = mergeContexts(methodInvocations);
        return query(mergedContexts);
    }
/**
     * Query proposals by providing a context.
     * <p>
     * NOTE: Since the CSCC algorithm works on single receiver objects of one specific type and not entire
     * contexts which may contain several method invocations on receiver objects of different types, this method
     * combines the contexts of all method invocations into one, then makes a recommendation based on this combined
     * context and the type of the last receiver object in the context. CSCC is not intended to be used this way
     * and the results may not be very meaningful.
     *
     * @param ctx the query as a Context
     * @return a sorted set of the proposed methods plus probability
     */
Query proposals by providing a context.

NOTE: Since the CSCC algorithm works on single receiver objects of one specific type and not entire
contexts which may contain several method invocations on receiver objects of different types, this method
combines the contexts of all method invocations into one, then makes a recommendation based on this combined
context and the type of the last receiver object in the context. CSCC is not intended to be used this way
and the results may not be very meaningful.

@param ctx the query as a Context
@return a sorted set of the proposed methods plus probability
Query proposals by providing a context . NOTE : Since the CSCC algorithm works on single receiver objects of one specific type and not entire contexts which may contain several method invocations on receiver objects of different types this method combines the contexts of all method invocations into one then makes a recommendation based on this combined context and the type of the last receiver object in the context . CSCC is not intended to be used this way and the results may not be very meaningful . @param ctx the query as a Context @return a sorted set of the proposed methods plus probability
@Override
    public Set<Tuple<IMethodName, Double>> query(Context ctx) {
        ISST sst = ctx.getSST();
        ISSTNodeVisitor visitor = new IndexDocumentExtractionVisitor();
        List<IndexDocument> methodInvocations = new LinkedList<>();
        sst.accept(visitor, methodInvocations);
        IndexDocument mergedContexts = mergeContexts(methodInvocations);
        return query(mergedContexts);
    }
@ Override public Set < Tuple < IMethodName , Double > > query ( Context ctx ) { ISST sst = ctx . getSST ( ) ; ISSTNodeVisitor visitor = new IndexDocumentExtractionVisitor ( ) ; List < IndexDocument > methodInvocations = new LinkedList < > ( ) ; sst . accept ( visitor , methodInvocations ) ; IndexDocument mergedContexts = mergeContexts ( methodInvocations ) ; return query ( mergedContexts ) ; }
Query proposals by providing a context.
Query proposals by providing a context .