AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/chardet/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /lib/python3/dist-packages/chardet/__pycache__/chardistribution.cpython-310.pyc
o

�H�_�$�@s�ddlmZmZmZddlmZmZmZddlm	Z	m
Z
mZddlm
Z
mZmZddlmZmZmZGdd�de�ZGdd	�d	e�ZGd
d�de�ZGdd
�d
e�ZGdd�de�ZGdd�de�ZGdd�de�ZdS)�)�EUCTW_CHAR_TO_FREQ_ORDER�EUCTW_TABLE_SIZE� EUCTW_TYPICAL_DISTRIBUTION_RATIO)�EUCKR_CHAR_TO_FREQ_ORDER�EUCKR_TABLE_SIZE� EUCKR_TYPICAL_DISTRIBUTION_RATIO)�GB2312_CHAR_TO_FREQ_ORDER�GB2312_TABLE_SIZE�!GB2312_TYPICAL_DISTRIBUTION_RATIO)�BIG5_CHAR_TO_FREQ_ORDER�BIG5_TABLE_SIZE�BIG5_TYPICAL_DISTRIBUTION_RATIO)�JIS_CHAR_TO_FREQ_ORDER�JIS_TABLE_SIZE�JIS_TYPICAL_DISTRIBUTION_RATIOc@sLeZdZdZdZdZdZdd�Zdd�Zd	d
�Z	dd�Z
d
d�Zdd�ZdS)�CharDistributionAnalysisig�G�z��?g{�G�z�?�cCs0d|_d|_d|_d|_d|_d|_|��dS�N)�_char_to_freq_order�_table_size�typical_distribution_ratio�_done�_total_chars�_freq_chars�reset��self�r�:/usr/lib/python3/dist-packages/chardet/chardistribution.py�__init__.sz!CharDistributionAnalysis.__init__cCsd|_d|_d|_dS)zreset analyser, clear any stateF�N)rrrrrrrr=s
zCharDistributionAnalysis.resetcCsd|dkr
|�|�}nd}|dkr,|jd7_||jkr.d|j|kr0|jd7_dSdSdSdS)z"feed a character with known length����r riN)�	get_orderrrrr)r�char�char_len�orderrrr�feedFs
�zCharDistributionAnalysis.feedcCsT|jdks|j|jkr|jS|j|jkr'|j|j|j|j}||jkr'|S|jS)z(return confidence based on existing datar )rr�MINIMUM_DATA_THRESHOLD�SURE_NOr�SURE_YES)r�rrrr�get_confidenceTs�
z'CharDistributionAnalysis.get_confidencecCs|j|jkSr)r�ENOUGH_DATA_THRESHOLDrrrr�got_enough_datadsz(CharDistributionAnalysis.got_enough_datacCsdS)Nr"r)r�byte_strrrrr#isz"CharDistributionAnalysis.get_orderN)
�__name__�
__module__�__qualname__r-r*r)r(rrr'r,r.r#rrrrr(s	rc�$eZdZ�fdd�Zdd�Z�ZS)�EUCTWDistributionAnalysisc�$tt|���t|_t|_t|_dSr)	�superr4rrrrrrrr��	__class__rrrr�
z"EUCTWDistributionAnalysis.__init__cC�,|d}|dkrd|d|ddSdS)Nr ���^r�r"r�rr/�
first_charrrrr#x�z#EUCTWDistributionAnalysis.get_order�r0r1r2rr#�
__classcell__rrr7rr4q�r4cr3)�EUCKRDistributionAnalysiscr5r)	r6rDrrrrrrrrr7rrr�r9z"EUCKRDistributionAnalysis.__init__cCr:)Nr �r<rr=r"rr>rrrr#�r@z#EUCKRDistributionAnalysis.get_orderrArrr7rrD�rCrDcr3)�GB2312DistributionAnalysiscr5r)	r6rFrrrr	rr
rrr7rrr�r9z#GB2312DistributionAnalysis.__init__cCs:|d|d}}|dkr|dkrd|d|dSdS)Nr rrEr=r<r"r�rr/r?�second_charrrrr#�sz$GB2312DistributionAnalysis.get_orderrArrr7rrF�rCrFcr3)�Big5DistributionAnalysiscr5r)	r6rIrrrrrr
rrr7rrr�r9z!Big5DistributionAnalysis.__init__cCsR|d|d}}|dkr'|dkrd|d|ddSd|d|dSdS)	Nr r�r=��?�@r"rrGrrrr#�sz"Big5DistributionAnalysis.get_orderrArrr7rrI�rCrIcr3)�SJISDistributionAnalysiscr5r)	r6rNrrrrrrrrr7rrr�r9z!SJISDistributionAnalysis.__init__cCsr|d|d}}|dkr|dkrd|d}n|dkr)|dkr)d|dd}nd	S||d
}|dkr7d	}|S)Nr r��������r"rM�r)rr/r?rHr&rrrr#�sz"SJISDistributionAnalysis.get_orderrArrr7rrN�rCrNcr3)�EUCJPDistributionAnalysiscr5r)	r6rVrrrrrrrrr7rrr�r9z"EUCJPDistributionAnalysis.__init__cCs,|d}|dkrd|d|ddSdS)Nr �r<r=rr"r)rr/r$rrrr#�r@z#EUCJPDistributionAnalysis.get_orderrArrr7rrV�rCrVN)�	euctwfreqrrr�	euckrfreqrrr�
gb2312freqrr	r
�big5freqrrr
�jisfreqrrr�objectrr4rDrFrIrNrVrrrr�<module>sI

Anon7 - 2022
AnonSec Team