<commit_before>function BasePredicate(){}
BasePredicate.prototype = {};


function ChainablePredicate(matcher,parent,lhs){
  this.matcher = matcher;
  if(parent){
    this._parent = parent;
  }
  if(lhs){
    this._lhs = lhs;
  }
}

ChainablePredicate.prototype = new BasePredicate();

ChainablePredicate.prototype.matches = function(value,next){
  var self = this;
  next = next || function(val){return val;};
  if(this._parent){
    return this._parent.matches(value,function(val){
      return self.matcher.matches(val,next);
    });
  }
  if(this._lhs){
    return this.matcher.matches(value,function(val){
       return self._lhs.matches(val);
    },next);
  }
  return next(value);
};

ChainablePredicate.prototype.describe = function(description,next){
  var self = this;
  next = next || function(desc){return desc;};
  if(this._parent){
    return this._parent.describe(description,function(desc){
      return self.matcher.describe(desc,next);
    });
  }
  if(this._lhs){
    return this.matcher.describe(description,function(desc){
      return self._lhs.describe(desc);
    },next);
  }
  return next(description);
};

function CompositePredicate(matcher,lhs,rhs){
  this.matcher = matcher;
  this._lhs = lhs;
  this._rhs = rhs;
}<commit_msg>Cleaned up unused code<commit_after>function BasePredicate(){}
BasePredicate.prototype = {};


function ChainablePredicate(matcher,parent,lhs){
  this.matcher = matcher;
  if(parent){
    this._parent = parent;
  }
  if(lhs){
    this._lhs = lhs;
  }
}

ChainablePredicate.prototype = new BasePredicate();

ChainablePredicate.prototype.matches = function(value,next){
  var self = this;
  next = next || function(val){return val;};
  if(this._parent){
    return this._parent.matches(value,function(val){
      return self.matcher.matches(val,next);
    });
  }
  return next(value);
};

ChainablePredicate.prototype.describe = function(description,next){
  var self = this;
  next = next || function(desc){return desc;};
  if(this._parent){
    return this._parent.describe(description,function(desc){
      return self.matcher.describe(desc,next);
    });
  }
  return next(description);
};

function CompositePredicate(matcher,lhs,rhs){
  this.matcher = matcher;
  this._lhs = lhs;
  this._rhs = rhs;
}
{'fraction_non_alphanumeric': 0.14513274336283186, 'fraction_numerical': 0.0, 'mean_word_length': 4.270396270396271, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5485916', 'n_tokens_mistral': 759, 'n_tokens_neox': 751, 'n_words': 127}