AlkantarClanX12

Your IP : 3.16.137.229


Current Path : /usr/lib/python2.7/site-packages/pip/_vendor/chardet/
Upload File :
Current File : //usr/lib/python2.7/site-packages/pip/_vendor/chardet/sbcharsetprober.pyo

�
��abc@sFddlmZddlmZmZmZdefd��YZdS(i(t
CharSetProber(tCharacterCategorytProbingStatetSequenceLikelihoodtSingleByteCharSetProbercBsheZdZdZdZdZed
d�Zd�Z	e
d��Ze
d��Zd�Z
d	�ZRS(i@igffffff�?g�������?cCsitt|�j�||_||_||_d|_d|_d|_	d|_
d|_|j�dS(N(
tsuperRt__init__t_modelt	_reversedt_name_probertNonet_last_ordert
_seq_counterst_total_seqst_total_chart
_freq_chartreset(tselftmodeltreversedtname_prober((sG/usr/lib/python2.7/site-packages/pip/_vendor/chardet/sbcharsetprober.pyR's								cCsQtt|�j�d|_dgtj�|_d|_d|_d|_	dS(Ni�i(
RRRRRtget_num_categoriesRR
RR(R((sG/usr/lib/python2.7/site-packages/pip/_vendor/chardet/sbcharsetprober.pyR5s			cCs"|jr|jjS|jdSdS(Ntcharset_name(R	RR(R((sG/usr/lib/python2.7/site-packages/pip/_vendor/chardet/sbcharsetprober.pyR?s	
cCs'|jr|jjS|jjd�SdS(Ntlanguage(R	RRtget(R((sG/usr/lib/python2.7/site-packages/pip/_vendor/chardet/sbcharsetprober.pyRFs	
c	Cs�|jds|j|�}n|s,|jS|jd}x�t|�D]�\}}||}|tjkr}|jd7_n||jkr+|jd7_|j	|jkr+|j
d7_
|js�|j	|j|}|jd|}n%||j|j	}|jd|}|j|cd7<q+n||_	qFW|jd}|jt
jkr�|j
|jkr�|j�}||jkr�|jjd||�t
j|_q�||jkr�|jjd|||j�t
j|_q�q�n|jS(Ntkeep_english_lettertchar_to_order_mapitprecedence_matrixRs$%s confidence = %s, we have a winners9%s confidence = %s, below negative shortcut threshhold %s(Rtfilter_international_wordststatet	enumerateRtCONTROLRtSAMPLE_SIZERRR
RRRt	DETECTINGtSB_ENOUGH_REL_THRESHOLDtget_confidencetPOSITIVE_SHORTCUT_THRESHOLDtloggertdebugtFOUND_ITt_statetNEGATIVE_SHORTCUT_THRESHOLDtNOT_ME(	Rtbyte_strRtitctorderRRt
confidence((sG/usr/lib/python2.7/site-packages/pip/_vendor/chardet/sbcharsetprober.pytfeedMsF


	



cCskd}|jdkrgd|jtj|j|jd}||j|j}|dkrgd}qgn|S(Ng{�G�z�?ig�?ttypical_positive_ratiog�G�z��?(R
RRtPOSITIVERRR(Rtr((sG/usr/lib/python2.7/site-packages/pip/_vendor/chardet/sbcharsetprober.pyR#|s&N(t__name__t
__module__R R"R$R)tFalseR
RRtpropertyRRR0R#(((sG/usr/lib/python2.7/site-packages/pip/_vendor/chardet/sbcharsetprober.pyR!s	
	/N(t
charsetproberRtenumsRRRR(((sG/usr/lib/python2.7/site-packages/pip/_vendor/chardet/sbcharsetprober.pyt<module>s