<commit_before><?php
namespace  hqq\scenario;
class Scenarioo {
	protected static $scenario;
	protected static $rules;
	static  function getRules() {
		return self::$rules;
	}
	public static function setScenario( $scenario ) {
		self::$scenario =  $scenario;
	}
	public static function getScenario() {
		return self::$scenario;
	}
	public static function setRules( $rules ) {
		self::$rules = $rules;
	}
	public static function Rules() {
		$rl = [];

		foreach(self::getRules() as $rule => $item){
			if(!isset($item[1]) || $item[1] == self::getScenario()){
				$rl[$rule] = $item[0];
			 }
		}
		return $rl;
	}
}<commit_msg>multi scenario<commit_after><?php
namespace  hqq\scenario;
class Scenarioo {
	protected static $scenario = [];
	protected static $rules;
	static  function getRules() {
		return self::$rules;
	}
	public static function setScenario( $scenario ) {
		self::$scenario =  $scenario;
	}
	public static function getScenario() {
		return self::$scenario;
	}
	public static function setRules( $rules ) {
		self::$rules = $rules;
	}
	public static function Rules() {
		$rl = [];

		foreach(self::getRules() as $rule => $item){
			if(count($item[0]) > 0){
				if(!isset($item[1]) || count(array_diff ($item[1], self::getScenario())) <= 0){
					$rl[$rule] = $item[0];
				}
			}
		}
		return $rl;
	}
}	
{'fraction_non_alphanumeric': 0.17186311787072242, 'fraction_numerical': 0.006844106463878327, 'mean_word_length': 4.120622568093385, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '4356390', 'n_tokens_mistral': 499, 'n_tokens_neox': 465, 'n_words': 109}