<commit_before><?php
/**
 * Document searches classes
 *
 * @author Anakeen 2000 
 * @version $Id: Class.DocSearch.php,v 1.56 2008/11/19 08:47:46 eric Exp $
 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License
 * @package FREEDOM
 */
 /**
 */



include_once("FDL/Class.Doc.php");


 Class DocCollection extends Doc {
    var $top=array(  

		 "~*"=>array("label"=>"include",
			     "operand"=>array("left","right"),
			     "dynlabel"=>"{left} include {right}", # _("{left} include {right}")
			     "slabel"=>array("file"=>"filename or type include",#_("filename or type include")
					     "image"=>"filename or type include",
					     "array"=>"one value include"), #_("one value include")
			     "sdynlabel"=>array("file"=>"{left} filename or type include {right}",#_("{left} filename or type include {right}")
						"image"=>"{left} filename or type include {right}",
						"array"=>"one value of {left} include {right}"), #_("one value of {left} include {right}")
			     "type"=>array("text","longtext","htmltext","ifile","array","file","image","fulltext")),		   
		 "=~*"=>array("label"=>"last or first name include",
			     "operand"=>array("left","right"),
			     "dynlabel"=>"{left} last or first name include {right}", # _("{left} last or first name include {right}")
			     "slabel"=>array("docid"=>"title include"), #_("title include") _("last or first name include")
			     "sdynlabel"=>array("docid"=>"{left} title include {right}"), #_("{left} title include {right}")
			     "type"=>array("uid","docid")),
		 "@@"=>array("label"=>"content file word",
			     "operand"=>array("left","right"),
			     "dynlabel"=>"file {left} contain the word {right}", # _("file {left} contain the word {right}")
			     "type"=>array("file")),

		 "~@"=>array("label"=>"content file expression",
			     "operand"=>array("left","right"),
			     "dynlabel"=>"file {left} contain the expression {right}", # _("file {left} contain the expression {right}")
			     "type"=>array("file")),
		 
		 "=" => array("label"=>"equal",
			      "operand"=>array("left","right"),
			      "dynlabel"=>"{left} equal {right}", # _("{left} equal {right}")
			      "slabel"=>array("docid"=>"identificator equal","uid"=>"system identifiant equal"), #_("identificator equal") _("system identifiant equal")
			      "sdynlabel"=>array("docid"=>"{left} identificator equal {right}","uid"=>"{left} system identificator equal {right}"), #_("{left} identificator equal {right}") _("{left} system identificator equal {right}")
			      "type"=>array("text","longtext","htmltext","enum","date","time","timestamp","money","color","docid","uid")),  
		 "~^" => array("label"=>"begin by",
			       "operand"=>array("left","right"),
			       "dynlabel"=>"{left} begin by {right}", # _("{left} begin by {right}")
			       "type"=>array("text","longtext")),            
		 "!=" => array("label"=>"not equal",
			       "operand"=>array("left","right"),
			       "dynlabel"=>"{left} is not equal {right}", # _("{left} is not equal {right}")
			     "sdynlabel"=>array("docid"=>"{left} identificator not equal {right}","uid"=>"{left} system identificator not equal {right}"), #_("{left} identificator not equal {right}") _("{left} system identificator not equal {right}")
			        "slabel"=>array("docid"=>"identificator not equal","uid"=>"system identificator not equal"), #_("identificator not equal") _("system identificator not equal")
			       "type"=>array("text","longtext","htmltext","enum","date","time","timestamp","money","color","docid","uid")),       
		 "!~*" => array("label"=>"not include",
				"operand"=>array("left","right"),
				"dynlabel"=>"{left} not include {right}", # _("{left} not include {right}")
				"slabel"=>array("file"=>"filename or type not include",
						"fulltext"=>"any value include",  #_("any value include")
						"image"=>"filename or type not include",  #_("filename or type not include")
						"array"=>"no value include"), #_("no value include")<commit_msg>correct equal operator filter (closes #1298)<commit_after><?php
/**
 * Document searches classes
 *
 * @author Anakeen 2000 
 * @version $Id: Class.DocSearch.php,v 1.56 2008/11/19 08:47:46 eric Exp $
 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License
 * @package FREEDOM
 */
 /**
 */



include_once("FDL/Class.Doc.php");


 Class DocCollection extends Doc {
    var $top=array(  

		 "~*"=>array("label"=>"include",
			     "operand"=>array("left","right"),
			     "dynlabel"=>"{left} include {right}", # _("{left} include {right}")
			     "slabel"=>array("file"=>"filename or type include",#_("filename or type include")
					     "image"=>"filename or type include",
					     "array"=>"one value include"), #_("one value include")
			     "sdynlabel"=>array("file"=>"{left} filename or type include {right}",#_("{left} filename or type include {right}")
						"image"=>"{left} filename or type include {right}",
						"array"=>"one value of {left} include {right}"), #_("one value of {left} include {right}")
			     "type"=>array("text","longtext","htmltext","ifile","array","file","image","fulltext")),		   
		 "=~*"=>array("label"=>"last or first name include",
			     "operand"=>array("left","right"),
			     "dynlabel"=>"{left} last or first name include {right}", # _("{left} last or first name include {right}")
			     "slabel"=>array("docid"=>"title include"), #_("title include") _("last or first name include")
			     "sdynlabel"=>array("docid"=>"{left} title include {right}"), #_("{left} title include {right}")
			     "type"=>array("uid","docid")),
		 "@@"=>array("label"=>"content file word",
			     "operand"=>array("left","right"),
			     "dynlabel"=>"file {left} contain the word {right}", # _("file {left} contain the word {right}")
			     "type"=>array("file")),

		 "~@"=>array("label"=>"content file expression",
			     "operand"=>array("left","right"),
			     "dynlabel"=>"file {left} contain the expression {right}", # _("file {left} contain the expression {right}")
			     "type"=>array("file")),
		 
		 "=" => array("label"=>"equal",
			      "operand"=>array("left","right"),
			      "dynlabel"=>"{left} equal {right}", # _("{left} equal {right}")
			      "slabel"=>array("docid"=>"identificator equal","uid"=>"system identifiant equal"), #_("identificator equal") _("system identifiant equal")
			      "sdynlabel"=>array("docid"=>"{left} identificator equal {right}","uid"=>"{left} system identificator equal {right}"), #_("{left} identificator equal {right}") _("{left} system identificator equal {right}")
			      "type"=>array("text","integer","int","double","enum","date","time","timestamp","money","color","docid","uid")),  
		 "~^" => array("label"=>"begin by",
			       "operand"=>array("left","right"),
			       "dynlabel"=>"{left} begin by {right}", # _("{left} begin by {right}")
			       "type"=>array("text","longtext")),            
		 "!=" => array("label"=>"not equal",
			       "operand"=>array("left","right"),
			       "dynlabel"=>"{left} is not equal {right}", # _("{left} is not equal {right}")
			     "sdynlabel"=>array("docid"=>"{left} identificator not equal {right}","uid"=>"{left} system identificator not equal {right}"), #_("{left} identificator not equal {right}") _("{left} system identificator not equal {right}")
			        "slabel"=>array("docid"=>"identificator not equal","uid"=>"system identificator not equal"), #_("identificator not equal") _("system identificator not equal")
			       "type"=>array("text","integer","int","double","enum","date","time","timestamp","money","color","docid","uid")),       
		 "!~*" => array("label"=>"not include",
				"operand"=>array("left","right"),
				"dynlabel"=>"{left} not include {right}", # _("{left} not include {right}")
				"slabel"=>array("file"=>"filename or type not include",
						"fulltext"=>"any value include",  #_("any value include")
						"image"=>"filename or type not include",  #_("filename or type not include")
						"array"=>"no value include"), #_("no value include")
{'fraction_non_alphanumeric': 0.22923095914084682, 'fraction_numerical': 0.006172077521293668, 'mean_word_length': 4.496607869742198, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 139, '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': '5878930', 'n_tokens_mistral': 2885, 'n_tokens_neox': 2551, 'n_words': 586}