<commit_before>/*jshint node: true, -W106 */
'use strict';

/*
* Name : filterConditionModel.js
* Module : Lib::DataTier::FilterConditionModel
* Location : /lib/dataTier/flow
*
* History :
* 
* Version   Date         Programmer         Description
* =========================================================
* 0.0.1     2015-05-14   <NAME>    Initial code
* =========================================================
*/

var HF = require('../helpers/functionHelper.js');

function FilterConditionModel(cond) {
	if(cond===undefined || typeof cond !== 'string' || cond.trim().length<3){
		return 611;
	}
	var parsed=HF.parseCondition(cond);
	if(typeof parsed === 'number'){
		return 612;
	}
	this._key=parsed.key;
	this._operator=parsed.operator;
	this._value=parsed.value;
}
/*
FilterConditionModel.prototype={
	validateRecord: function(record){
		switch (this._operator) {<commit_msg>commit to test travis<commit_after>/*jshint node: true, -W106 */
'use strict';

/*
* Name : filterConditionModel.js
* Module : Lib::DataTier::FilterConditionModel
* Location : /lib/dataTier/flow
*
* History :
* 
* Version   Date         Programmer         Description
* =========================================================
* 0.0.1     2015-05-14   <NAME>    Initial code
* =========================================================
*/

var HF = require('../helpers/functionHelper.js');

function FilterConditionModel(cond) {
	if(cond===undefined || typeof cond !== 'string' || cond.trim().length<3){
		return 611;
	}
	var parsed=HF.parseCondition(cond);
	if(typeof parsed === 'number'){
		return 612;
	}
	this._key=parsed.key;
	this._operator=parsed.operator;
	this._value=parsed.value;
}
/*
FilterConditionModel.prototype={ 
	validateRecord: function(record){
		switch (this._operator) {
{'fraction_non_alphanumeric': 0.26591549295774647, 'fraction_numerical': 0.023661971830985916, 'mean_word_length': 4.674121405750799, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '4657136', 'n_tokens_mistral': 570, 'n_tokens_neox': 530, 'n_words': 101}