<commit_before><?
require_once("Container.php");
require_once("Iiterator.php");
require_once("Lex_rule.php");

class Lex_rules_container extends Container
{
	function Lex_rules_container($actName="")
	{
   parent::Container($actName);		
	}
	
 function setLexRules($actRules)
 {
  parent::setContents($actRules);
 }
 
 function &getLexRules()
 {
 	$contents = &parent::getContents();
  return $contents;
 }

 function createIterator()
 {
 	$iter = new Lex_rules_iterator($this);
 	return $iter;
 }
 
 function setElement($actRule,$actPos)
 {
 	$rules = &$this->getLexRules();
 	if(($actPos < count($rules)) && ($actPos>=0))
 	{
 	 $rules[$actPos] = $actRule;
 	 return true;
 	}<commit_msg>Update Lex_rules_container.php<commit_after><?
require_once("Container.php");
require_once("Iiterator.php");
require_once("Lex_rule.php");

class Lex_rules_container extends Container
{
	function __construct($actName="")
	{
   parent::__construct($actName);		
	}
	
 function setLexRules($actRules)
 {
  parent::setContents($actRules);
 }
 
 function &getLexRules()
 {
 	$contents = &parent::getContents();
  return $contents;
 }

 function createIterator()
 {
 	$iter = new Lex_rules_iterator($this);
 	return $iter;
 }
 
 function setElement($actRule,$actPos)
 {
 	$rules = &$this->getLexRules();
 	if(($actPos < count($rules)) && ($actPos>=0))
 	{
 	 $rules[$actPos] = $actRule;
 	 return true;
 	}
{'fraction_non_alphanumeric': 0.16918646508279336, 'fraction_numerical': 0.0014398848092152627, 'mean_word_length': 5.233183856502242, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6510914', 'n_tokens_mistral': 504, 'n_tokens_neox': 460, 'n_words': 77}