Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /lib/python2.7/site-packages/chardet/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python2.7/site-packages/chardet/sbcharsetprober.pyc
�
۝�Rc@s�ddlZddlmZddlmZddlmZdZdZdZ	d	Z
d
ZdZedZ
defd
��YZdS(i����Ni(t	constants(t
CharSetProber(twrap_ordi@igffffff�?g�������?i�itSingleByteCharSetProbercBs;eZedd�Zd�Zd�Zd�Zd�ZRS(cCs6tj|�||_||_||_|j�dS(N(Rt__init__t_mModelt
_mReversedt_mNameProbertreset(tselftmodeltreversedt
nameProber((s;/usr/lib/python2.7/site-packages/chardet/sbcharsetprober.pyR-s

			cCsEtj|�d|_dgt|_d|_d|_d|_dS(Ni�i(RRt_mLastOrdertNUMBER_OF_SEQ_CATt
_mSeqCounterst_mTotalSeqst_mTotalChart
_mFreqChar(R	((s;/usr/lib/python2.7/site-packages/chardet/sbcharsetprober.pyR6s
			cCs%|jr|jj�S|jdSdS(NtcharsetName(Rtget_charset_nameR(R	((s;/usr/lib/python2.7/site-packages/chardet/sbcharsetprober.pyR@s	
cCs�|jds|j|�}nt|�}|s;|j�Sx�|D]�}|jdt|�}|tkr}|jd7_n|tkr|jd7_|j	tkr|j
d7_
|js�|j	t|}|jd|}n"|t|j	}|jd|}|j|cd7<qn||_	qBW|j�t
jkr�|j
tkr�|j�}|tkr�t
jr�tjjd|jd|f�nt
j|_q�|tkr�t
jr�tjjd|jd|tf�nt
j|_q�q�n|j�S(NtkeepEnglishLettertcharToOrderMapitprecedenceMatrixs$%s confidence = %s, we have awinner
Rs9%s confidence = %s, below negativeshortcut threshhold %s
(Rtfilter_without_english_letterstlent	get_stateRtSYMBOL_CAT_ORDERRtSAMPLE_SIZERR
RRRRt
eDetectingtSB_ENOUGH_REL_THRESHOLDtget_confidencetPOSITIVE_SHORTCUT_THRESHOLDt_debugtsyststderrtwriteteFoundItt_mStatetNEGATIVE_SHORTCUT_THRESHOLDteNotMe(R	taBuftaLentctordertiR
tcf((s;/usr/lib/python2.7/site-packages/chardet/sbcharsetprober.pytfeedFsF


	
		
cCshd}|jdkrdd|jt|j|jd}||j|j}|dkrdd}qdn|S(Ng{�G�z�?ig�?tmTypicalPositiveRatiog�G�z��?(RRtPOSITIVE_CATRRR(R	tr((s;/usr/lib/python2.7/site-packages/chardet/sbcharsetprober.pyRps#N(	t__name__t
__module__tFalsetNoneRRRR/R(((s;/usr/lib/python2.7/site-packages/chardet/sbcharsetprober.pyR,s
		
		*(R"tRt
charsetproberRtcompatRRRR R'RRR1R(((s;/usr/lib/python2.7/site-packages/chardet/sbcharsetprober.pyt<module>s


ZeroDay Forums Mini