<commit_before>

/*
 * Carrot2 Project
 * Copyright (C) 2002-2003, <NAME>
 * Portions (C) Contributors listen in carrot2.CONTRIBUTORS file.
 * All rights reserved.
 * 
 * Refer to full text of the licence "carrot2.LICENCE" in the root folder
 * of CVS checkout or at: 
 * http://www.cs.put.poznan.pl/dweiss/carrot2.LICENCE
 */


package com.dawidweiss.carrot.adapters.localfilter;


import java.util.Iterator;


/**
 * Adapter for a clustering filter.
 */
public interface ClusteringFilterAdapter
{
    /**
     * Sets a named parameter sent to the filter component as part of the query.
     */
    public void setParameter(String name, String value);


    /**
     * Clusters a sequence of <code>Hit</code> objects and returns an iterator of
     * <code>Cluster</code> objects at the top level of the hierarchy of clusters.
     *
     * @param hits An iterator over the hit list.
     * @param query Query provides hints for the clustering filter. It may be null, but if it
     *        exists, it will increase the quality of clusters.
     *
     * @throws RuntimeException In case of problems.
     */
    public Iterator clusterHits(Iterator hits, String query)
        throws RuntimeException;
    ;
}<commit_msg>removed trailing semicolon.<commit_after>

/*
 * Carrot2 Project
 * Copyright (C) 2002-2003, <NAME>
 * Portions (C) Contributors listen in carrot2.CONTRIBUTORS file.
 * All rights reserved.
 * 
 * Refer to full text of the licence "carrot2.LICENCE" in the root folder
 * of CVS checkout or at: 
 * http://www.cs.put.poznan.pl/dweiss/carrot2.LICENCE
 */


package com.dawidweiss.carrot.adapters.localfilter;


import java.util.Iterator;


/**
 * Adapter for a clustering filter.
 */
public interface ClusteringFilterAdapter
{
    /**
     * Sets a named parameter sent to the filter component as part of the query.
     */
    public void setParameter(String name, String value);


    /**
     * Clusters a sequence of <code>Hit</code> objects and returns an iterator of
     * <code>Cluster</code> objects at the top level of the hierarchy of clusters.
     *
     * @param hits An iterator over the hit list.
     * @param query Query provides hints for the clustering filter. It may be null, but if it
     *        exists, it will increase the quality of clusters.
     *
     * @throws RuntimeException In case of problems.
     */
    public Iterator clusterHits(Iterator hits, String query)
        throws RuntimeException;
}
{'fraction_non_alphanumeric': 0.08631921824104234, 'fraction_numerical': 0.009771986970684038, 'mean_word_length': 2.943820224719101, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '382824', 'n_tokens_mistral': 742, 'n_tokens_neox': 701, 'n_words': 272}