<commit_before><?php
namespace Sooh\Base;
/**
 * ErrorException
 *
 * @author <NAME> <<EMAIL>>
 */
class ErrException extends \ErrorException{
	public static function factory($msg,$code)
	{
		$e = new ErrException($message, $code);
		return $e;
	}
	
	protected $isWrote=false;
	public function __toString()
	{
		if($this->isWrote===false){
			$this->isWrote=true;
			return $this->getMessage()."[Sooh_Base_Error]".$this->getTraceAsString();
		}else{
			return parent::__toString();
		}
	}
	
}<commit_msg>add some common error const-string<commit_after><?php
namespace Sooh\Base;
/**
 * ErrorException
 *
 * @author <NAME> <<EMAIL>>
 */
class ErrException extends \ErrorException{
	const msgErrorArg='arg_error';
	const msgServerBusy='server_busy';
	const msgLocked='record_locked';
	public static function factory($msg,$code)
	{
		$e = new ErrException($message, $code);
		return $e;
	}
	
	protected $isWrote=false;
	public function __toString()
	{
		if($this->isWrote===false){
			$this->isWrote=true;
			return $this->getMessage()."[Sooh_Base_Error]".$this->getTraceAsString();
		}else{
			return parent::__toString();
		}
	}
	
}
{'fraction_non_alphanumeric': 0.16710875331564987, 'fraction_numerical': 0.0, 'mean_word_length': 4.9267015706806285, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 17, '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': '6588689', 'n_tokens_mistral': 417, 'n_tokens_neox': 390, 'n_words': 76}