<commit_before>package gov.nih.nci.caintegrator.analysis.messaging;


/**
 * This class is sent back from the analysis server in response 
 * to a lookup request.
 * @author harrismic
 *
 */
public class ExpressionLookupResult extends AnalysisResult {

	private static final long serialVersionUID = 1L;
	
	private DataPointVector dataPoints = null;
	
	public ExpressionLookupResult(String sessionId, String taskId) {
		super(sessionId, taskId);		
	}

	@Override
	public String toString() {
		int numDataPoints = 0;
		if (dataPoints != null) {
		  numDataPoints = dataPoints.size();
		}
		return "ExpressionLookupResult sessionId=" + getSessionId() + " taskId=" + getTaskId() + " numDataPoints=" + numDataPoints; 
	}

	public DataPointVector getDataPoints() {
		return dataPoints;
	}

	public void setDataPoints(DataPointVector dataPoints) {
		this.dataPoints = dataPoints;
	}
	
	public int getNumDataPoints() { 
	  int numDataPoints = 0;
	  if (dataPoints!=null) {
	    numDataPoints = dataPoints.size();
	  }
	  return numDataPoints;
	}
	
	

}<commit_msg>Changed to handle multiple reporters.<commit_after>package gov.nih.nci.caintegrator.analysis.messaging;

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


/**
 * This class is sent back from the analysis server in response 
 * to a lookup request.
 * @author harrismic
 *
 */
public class ExpressionLookupResult extends AnalysisResult {

	private static final long serialVersionUID = 1L;
	
	private List<DataPointVector> dataVectors = new ArrayList<DataPointVector>();
	
	public ExpressionLookupResult(String sessionId, String taskId) {
		super(sessionId, taskId);		
	}

	@Override
	public String toString() {
		int numDataVectors = 0;
		if (dataVectors != null) {
		  numDataVectors = dataVectors.size();
		}
		return "ExpressionLookupResult sessionId=" + getSessionId() + " taskId=" + getTaskId() + " numDataPoints=" + numDataVectors; 
	}

	
	
	public List<DataPointVector> getDataVectors() {
		return dataVectors;
	}

	public void setDataVectors(List<DataPointVector> dataVectors) {
		this.dataVectors = dataVectors;
	}
	
	public void addDataVector(DataPointVector vector) {
	  dataVectors.add(vector);
	}
	
	

}
{'fraction_non_alphanumeric': 0.09705611775528979, 'fraction_numerical': 0.0022999080036798527, 'mean_word_length': 4.357142857142857, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '1696798', 'n_tokens_mistral': 733, 'n_tokens_neox': 664, 'n_words': 170}