HEX
Server: Apache
System: Linux dinesh8189 5.15.98-grsec-sharedvalley-2.lc.el8.x86_64 #1 SMP Thu Mar 9 09:07:30 -03 2023 x86_64
User: cgmgerenciamento1 (814285)
PHP: 8.1.26
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //usr/lib/python3.6/site-packages/chardet/__pycache__/sbcharsetprober.cpython-36.pyc
3

`9Y�@s4ddlmZddlmZmZmZGdd�de�ZdS)�)�
CharSetProber)�CharacterCategory�ProbingState�SequenceLikelihoodcsbeZdZdZdZdZdZd�fdd�	Z�fd	d
�Ze	dd��Z
e	d
d��Zdd�Zdd�Z
�ZS)�SingleByteCharSetProber�@igffffff�?g�������?FNcsJtt|�j�||_||_||_d|_d|_d|_d|_	d|_
|j�dS)N)�superr�__init__�_model�	_reversed�_name_prober�_last_order�
_seq_counters�_total_seqs�_total_char�
_freq_char�reset)�self�model�reversedZname_prober)�	__class__��%/usr/lib/python3.6/sbcharsetprober.pyr	'sz SingleByteCharSetProber.__init__cs:tt|�j�d|_dgtj�|_d|_d|_d|_	dS)N��)
rrrr
rZget_num_categoriesrrrr)r)rrrr5szSingleByteCharSetProber.resetcCs|jr|jjS|jdSdS)N�charset_name)rrr
)rrrrr?sz$SingleByteCharSetProber.charset_namecCs|jr|jjS|jjd�SdS)N�language)rrr
�get)rrrrrFsz SingleByteCharSetProber.languagec	Csn|jds|j|�}|s|jS|jd}x�t|�D]�\}}||}|tjkrZ|jd7_||jkr�|jd7_|j	|jkr�|j
d7_
|js�|j	|j|}|jd|}n||j|j	}|jd|}|j|d7<||_	q2W|jd}|jt
jk�rh|j
|jk�rh|j�}||jk�r@|jjd||�t
j|_n(||jk�rh|jjd|||j�t
j|_|jS)NZkeep_english_letter�char_to_order_maprZprecedence_matrixrz$%s confidence = %s, we have a winnerz9%s confidence = %s, below negative shortcut threshhold %s)r
Zfilter_international_words�state�	enumeraterZCONTROLr�SAMPLE_SIZErr
rrrrZ	DETECTING�SB_ENOUGH_REL_THRESHOLD�get_confidence�POSITIVE_SHORTCUT_THRESHOLDZlogger�debugZFOUND_ITZ_state�NEGATIVE_SHORTCUT_THRESHOLDZNOT_ME)	rZbyte_strr�i�c�orderrrZ
confidencerrr�feedMsF







zSingleByteCharSetProber.feedcCsNd}|jdkrJd|jtj|j|jd}||j|j}|dkrJd}|S)Ng{�G�z�?rg�?Ztypical_positive_ratiog�G�z��?)rrrZPOSITIVEr
rr)r�rrrrr#|s
 z&SingleByteCharSetProber.get_confidence)FN)�__name__�
__module__�__qualname__r!r"r$r&r	r�propertyrrr*r#�
__classcell__rr)rrr!s
/rN)Z
charsetproberrZenumsrrrrrrrr�<module>s