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

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * This class holds a named list of data points. It is used to 
 * return expression values for a reporter.  The reporter name is set 
 * as the name of the vector and the DataPoint will contain the sample id
 * and the expression value. 
 * @author harrismic
 *
 */
public class DataPointVector implements Serializable {

	
	private static final long serialVersionUID = 1L;
	private List<DataPoint> dataPoints = new ArrayList<DataPoint>();
	private String name;
	public List<DataPoint> getDataPoints() {
		return dataPoints;
	}
	
	public  DataPointVector(String name) {
	  this.name = name;
	}
	
	public void setDataPoints(List<DataPoint> dataPoints) {
		this.dataPoints = dataPoints;
	}
	public String getName() {
		return name;
	}
	
	public void addDataPoint(DataPoint point) {
	  dataPoints.add(point);
	}
<commit_msg>Added size method.<commit_after>package gov.nih.nci.caintegrator.analysis.messaging;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * This class holds a named list of data points. It is used to 
 * return expression values for a reporter.  The reporter name is set 
 * as the name of the vector and the DataPoint will contain the sample id
 * and the expression value. 
 * @author harrismic
 *
 */
public class DataPointVector implements Serializable {

	
	private static final long serialVersionUID = 1L;
	private List<DataPoint> dataPoints = new ArrayList<DataPoint>();
	private String name;
	public List<DataPoint> getDataPoints() {
		return dataPoints;
	}
	
	public  DataPointVector(String name) {
	  this.name = name;
	}
	
	public void setDataPoints(List<DataPoint> dataPoints) {
		this.dataPoints = dataPoints;
	}
	public String getName() {
		return name;
	}
	
	public void addDataPoint(DataPoint point) {
	  dataPoints.add(point);
	}
	
	public int size() {
	  return dataPoints.size();
	}

{'fraction_non_alphanumeric': 0.08499005964214712, 'fraction_numerical': 0.0009940357852882703, 'mean_word_length': 4.122137404580153, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '2561991', 'n_tokens_mistral': 634, 'n_tokens_neox': 594, 'n_words': 201}