<commit_before>/*
	32/64 bits A-Chaos Lib in openFrameworks	
	(c) s373.net/x 2004, 2012, 2015
	http://s373.net/code/A-Chaos-Lib/A-Chaos.html
	programmed by <NAME>, revised 2015
	License: MIT
*/
#pragma once

// comment for 64bits version (not all objects support)
#define ACHAOS32

#ifdef ACHAOS32
// 32bit	
	typedef float REAL;
	#define SIN sinf
	#define COS cosf

#else
// 64bit	
	typedef double REAL;
	#define SIN sin
	#define COS cos

#endif



class AChaosBase {
public:
	AChaosBase(){}
	virtual ~AChaosBase(){}	

	vector<REAL> iv;	
	vector<REAL> ov;

	virtual void setup(REAL * params = NULL, int numiv=1, int numov=1){
		iv.clear();
		ov.clear();
		for(int i=0; i<numiv; i++){
			iv.push_back(0.0f);
		}
		for(int i=0; i<numov; i++){
			ov.push_back(0.0f);
		}
		cout << "A-Chaos Lib (c) s373.net/x 2004, 2012, 2015 " << __DATE__ << " " __TIME__ << endl;
	}
	virtual void reset(){cout << "reset base" << endl;}
	void set(vector<REAL> &params){
		iv.clear();
		for(int i=0; i<params.size();i++){
			iv.push_back( params[i] );			
		}
		reset();
	}
	void set(REAL * params){
		for(int i=0; i<iv.size();i++){
			iv[i] = params[i] ;		
		}
		reset();
	}
	REAL * update(){ calc(); return get(); }
	virtual void calc(){cout << "calc base" << endl;}
	REAL * get(){ return &ov[0];}
	vector<REAL> & getVec(){return ov;}	
};<commit_msg>proper copyrights<commit_after>/*
	32/64 bits A-Chaos Lib in openFrameworks	
	(c) s373.net/x 2004, 2012, 2015
	http://s373.net/code/A-Chaos-Lib/A-Chaos.html
	programmed by <NAME>, revised 2015
	License: MIT
*/
#pragma once

// comment for 64bits version (not all objects support)
#define ACHAOS32

#ifdef ACHAOS32
// 32bit	
	typedef float REAL;
	#define SIN sinf
	#define COS cosf

#else
// 64bit	
	typedef double REAL;
	#define SIN sin
	#define COS cos

#endif



class AChaosBase {
public:
	AChaosBase(){}
	virtual ~AChaosBase(){}	

	vector<REAL> iv;	
	vector<REAL> ov;

	virtual void setup(REAL * params = NULL, int numiv=1, int numov=1){
		iv.clear();
		ov.clear();
		for(int i=0; i<numiv; i++){
			iv.push_back(0.0f);
		}
		for(int i=0; i<numov; i++){
			ov.push_back(0.0f);
		}
		cout << "A-Chaos Lib (c) <NAME> 1996, (c) <NAME> 2004, 2012, 2015 " << __DATE__ << " " __TIME__ << endl;
	}
	virtual void reset(){cout << "reset base" << endl;}
	void set(vector<REAL> &params){
		iv.clear();
		for(int i=0; i<params.size();i++){
			iv.push_back( params[i] );			
		}
		reset();
	}
	void set(REAL * params){
		for(int i=0; i<iv.size();i++){
			iv[i] = params[i] ;		
		}
		reset();
	}
	REAL * update(){ calc(); return get(); }
	virtual void calc(){cout << "calc base" << endl;}
	REAL * get(){ return &ov[0];}
	vector<REAL> & getVec(){return ov;}	
};
{'fraction_non_alphanumeric': 0.1855169839492348, 'fraction_numerical': 0.04665920119447555, 'mean_word_length': 3.519392917369309, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 15, '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': '7439594', 'n_tokens_mistral': 1289, 'n_tokens_neox': 1103, 'n_words': 286}