<commit_before><?php
/**
 * Created by <NAME> <<EMAIL>>.
 * Author: <NAME> <<EMAIL>>
 * Project: jungle
 * IDE: PhpStorm
 * Date: 20.09.2016
 * Time: 13:49
 */
namespace Jungle\Util\Data\Validation {

	/**
	 * Class ExpertizeAbstract
	 * @package Jungle\Util\Data\Validation
	 */
	abstract class ExpertizeAbstract implements ExpertizeInterface{

		/** @var array */
		static $_not_parameters_properties = [ 'type', 'default_params'];

		/** @var  string */
		protected $type;

		/** @var array  */
		protected $default_params = [];

		/**
		 * @param $type
		 * @return $this
		 */
		public function setType($type){
			$this->type = $type;
			return $this;
		}

		/**
		 * @return string
		 */
		public function getType(){
			return $this->type;
		}

		/**
		 * Rule constructor.
		 * @param array $default_params
		 */
		public function __construct(array $default_params = []){
			$default = [];
			foreach(get_object_vars($this) as $name){
				if(!in_array($name,static::$_not_parameters_properties, true)){
					$default[$name] = $this->{$name};
				}
			}<commit_msg>Валидация, FIX ExpertizeAbstract<commit_after><?php
/**
 * Created by <NAME> <<EMAIL>>.
 * Author: <NAME> <<EMAIL>>
 * Project: jungle
 * IDE: PhpStorm
 * Date: 20.09.2016
 * Time: 13:49
 */
namespace Jungle\Util\Data\Validation {

	/**
	 * Class ExpertizeAbstract
	 * @package Jungle\Util\Data\Validation
	 */
	abstract class ExpertizeAbstract implements ExpertizeInterface{

		/** @var array */
		static $_not_parameters_properties = [ 'type', 'default_params'];

		/** @var  string */
		protected $type;

		/** @var array  */
		protected $default_params = [];

		/**
		 * @param $type
		 * @return $this
		 */
		public function setType($type){
			$this->type = $type;
			return $this;
		}

		/**
		 * @return string
		 */
		public function getType(){
			return $this->type;
		}

		/**
		 * Rule constructor.
		 * @param array $default_params
		 */
		public function __construct(array $default_params = []){
			$default = [];
			foreach(get_object_vars($this) as $name => $value){
				if(!in_array($name,static::$_not_parameters_properties, true)){
					$default[$name] = $value;
				}
			}
{'fraction_non_alphanumeric': 0.1678224687933426, 'fraction_numerical': 0.011095700416088766, 'mean_word_length': 3.21011673151751, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 21, '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': '4620002', 'n_tokens_mistral': 840, 'n_tokens_neox': 686, 'n_words': 155}