<commit_before>/*
 * Carrot2 Project Copyright (C) 2002-2005, <NAME> Portions (C)
 * Contributors listed in carrot2.CONTRIBUTORS file. All rights reserved.
 * 
 * Refer to the full license file "carrot2.LICENSE" in the root folder of the
 * CVS checkout or at: http://www.cs.put.poznan.pl/dweiss/carrot2.LICENSE
 */
package com.stachoodev.carrot.filter.lingo.local;

import java.util.ArrayList;
import java.util.List;

import com.dawidweiss.carrot.core.local.clustering.RawCluster;
import com.dawidweiss.carrot.core.local.clustering.RawClusterBase;
import com.dawidweiss.carrot.core.local.clustering.RawDocument;
import com.stachoodev.carrot.filter.lingo.common.Cluster;
import com.stachoodev.carrot.filter.lingo.common.Snippet;

/**
 * 
 * @author <NAME>
 * @version $Revision$
 */
public final class RawClusterInterfaceAdapter extends RawClusterBase {

	private List originalDocuments;
	private Cluster cluster;
	
	/**
	 * @param cluster
	 * @param documents
	 */
	RawClusterInterfaceAdapter(Cluster cluster, List originalDocuments) {
		this.originalDocuments = originalDocuments;
		this.cluster = cluster;
		if (cluster.isJunk())
			super.setProperty( RawCluster.PROPERTY_JUNK_CLUSTER, Boolean.TRUE );
	}

	/*
	 * @see com.dawidweiss.carrot.core.local.clustering.RawCluster#getClusterDescription()
	 */<commit_msg>Cluster score is now set properly.<commit_after>/*
 * Carrot2 Project Copyright (C) 2002-2005, <NAME> Portions (C)
 * Contributors listed in carrot2.CONTRIBUTORS file. All rights reserved.
 * 
 * Refer to the full license file "carrot2.LICENSE" in the root folder of the
 * CVS checkout or at: http://www.cs.put.poznan.pl/dweiss/carrot2.LICENSE
 */
package com.stachoodev.carrot.filter.lingo.local;

import java.util.ArrayList;
import java.util.List;

import com.dawidweiss.carrot.core.local.clustering.RawCluster;
import com.dawidweiss.carrot.core.local.clustering.RawClusterBase;
import com.dawidweiss.carrot.core.local.clustering.RawDocument;
import com.stachoodev.carrot.filter.lingo.common.Cluster;
import com.stachoodev.carrot.filter.lingo.common.Snippet;

/**
 * 
 * @author <NAME>
 * @version $Revision$
 */
public final class RawClusterInterfaceAdapter extends RawClusterBase {

	private List originalDocuments;
	private Cluster cluster;
	
	/**
	 * @param cluster
	 * @param documents
	 */
	RawClusterInterfaceAdapter(Cluster cluster, List originalDocuments) {
		this.originalDocuments = originalDocuments;
		this.cluster = cluster;
        setScore(cluster.getScore());
		if (cluster.isJunk())
			super.setProperty( RawCluster.PROPERTY_JUNK_CLUSTER, Boolean.TRUE );
	}

	/*
	 * @see com.dawidweiss.carrot.core.local.clustering.RawCluster#getClusterDescription()
	 */
{'fraction_non_alphanumeric': 0.11251392499071668, 'fraction_numerical': 0.008911994058670627, 'mean_word_length': 4.744136460554371, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5941972', 'n_tokens_mistral': 934, 'n_tokens_neox': 861, 'n_words': 178}