MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.144.29.213
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /lib/python2.7/site-packages/chardet/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //lib/python2.7/site-packages/chardet/sbcharsetprober.pyo
�
۝�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


MMCT - 2023