<commit_before>

/*
 *  Copyright (C) 2004  The Concord Consortium, Inc.,
 *  10 Concord Crossing, Concord, MA 01741
 *
 *  Web Site: http://www.concord.org
 *  Email: <EMAIL>
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation; either
 *  version 2.1 of the License, or (at your option) any later version.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */
/*
 * Last modification information:
 * $Revision: 1.6 $
 * $Date: 2004-11-12 18:40:24 $
 * $Author: eblack $
 *
 * Licence Information
 * Copyright 2004 The Concord Consortium 
*/
package org.concord.framework.data.stream;


/**
 * DataStreamEvent
 * Class name and description
 *
 * Date created: Aug 24, 2004
 *
 * @author imoncada<p>
 *
 */
public class DataStreamEvent extends DataEvent
{
	public static final int DATA_RECEIVED 		= 1000;
	public static final int DATA_COLLECTING 	= 1001;
	public static final int DATA_READY_TO_START = 1002;
	public static final int DATA_STOPPED        = 1003;
	public static final int DATA_DESC_CHANGED   = 1004;
	public static final int DATA_DESC_RESET     = 1005;
	public static final int DATA_DESC_ERROR     = 1006;

	public int type;

	public float 	[]data = null;
	public int		numSamples = 1;
	public int	 	[]intData = null;
	public float    refVal = 0;

    public int [] pTimes = new int [10];
    public int numPTimes = 0;
    
    Object      source;
    Object      additionalInfo;


	public DataStreamEvent()
	{
		this(DATA_RECEIVED, null, null, null);
	}

	public DataStreamEvent(int type)
	{
		this(type, null, null, null);
	}

	public DataStreamEvent(int type, float[] data, DataStreamDescription dataDesc)
	{
		this(type, data, null, dataDesc);
	}
	
	public DataStreamEvent(int type, float[] data, int[] intData, DataStreamDescription dataDesc)
	{
		this.type 		= type;
		this.data 		= data;
		this.intData 	= intData;
		this.dataDesc 	= dataDesc;
	}
	
	public void setData(float[] data)
	{
		this.data = data;
	}

	public float[] getData()
	{
		return data;
	}

	public void setIntData(int[] data)
	{
		this.intData = data;
	}

	public int[] getIntData()
	{
		return intData;
	}

	public void setNumSamples(int numSamples)
	{
		this.numSamples = numSamples;
	}

	public int getNumSamples()
	{
		return numSamples;
	}
	
    public Object getSource(){return source;}
    
    public void setSource(Object source){this.source = source;}

    public Object getAdditionalInfo(){return additionalInfo;}

    public void  setAdditionalInfo(Object additionalInfo){this.additionalInfo = additionalInfo;}
	
	
}
<commit_msg>Cleaning up some unused profiling fields<commit_after>

/*
 *  Copyright (C) 2004  The Concord Consortium, Inc.,
 *  10 Concord Crossing, Concord, MA 01741
 *
 *  Web Site: http://www.concord.org
 *  Email: <EMAIL>
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation; either
 *  version 2.1 of the License, or (at your option) any later version.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */
/*
 * Last modification information:
 * $Revision: 1.7 $
 * $Date: 2004-12-01 20:21:17 $
 * $Author: scytacki $
 *
 * Licence Information
 * Copyright 2004 The Concord Consortium 
*/
package org.concord.framework.data.stream;


/**
 * DataStreamEvent
 * Class name and description
 *
 * Date created: Aug 24, 2004
 *
 * @author imoncada<p>
 *
 */
public class DataStreamEvent extends DataEvent
{
	public static final int DATA_RECEIVED 		= 1000;
	public static final int DATA_COLLECTING 	= 1001;
	public static final int DATA_READY_TO_START = 1002;
	public static final int DATA_STOPPED        = 1003;
	public static final int DATA_DESC_CHANGED   = 1004;
	public static final int DATA_DESC_RESET     = 1005;
	public static final int DATA_DESC_ERROR     = 1006;

	public int type;

	public float 	[]data = null;
	public int		numSamples = 1;
	public int	 	[]intData = null;
	public float    refVal = 0;

	// hooks for storing profile data
	// as the event is processed timestamps might be stored here which
	// could be logged latter.  This would be an ideal use for AspectJ
    // public int [] pTimes = new int [10];
    // public int numPTimes = 0;
    
    Object      source;
    Object      additionalInfo;


	public DataStreamEvent()
	{
		this(DATA_RECEIVED, null, null, null);
	}

	public DataStreamEvent(int type)
	{
		this(type, null, null, null);
	}

	public DataStreamEvent(int type, float[] data, DataStreamDescription dataDesc)
	{
		this(type, data, null, dataDesc);
	}
	
	public DataStreamEvent(int type, float[] data, int[] intData, DataStreamDescription dataDesc)
	{
		this.type 		= type;
		this.data 		= data;
		this.intData 	= intData;
		this.dataDesc 	= dataDesc;
	}
	
	public void setData(float[] data)
	{
		this.data = data;
	}

	public float[] getData()
	{
		return data;
	}

	public void setIntData(int[] data)
	{
		this.intData = data;
	}

	public int[] getIntData()
	{
		return intData;
	}

	public void setNumSamples(int numSamples)
	{
		this.numSamples = numSamples;
	}

	public int getNumSamples()
	{
		return numSamples;
	}
	
    public Object getSource(){return source;}
    
    public void setSource(Object source){this.source = source;}

    public Object getAdditionalInfo(){return additionalInfo;}

    public void  setAdditionalInfo(Object additionalInfo){this.additionalInfo = additionalInfo;}
	
	
}

{'fraction_non_alphanumeric': 0.08785892634207242, 'fraction_numerical': 0.026841448189762796, 'mean_word_length': 3.4261049723756907, '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': '934609', 'n_tokens_mistral': 2226, 'n_tokens_neox': 1979, 'n_words': 709}