Your IP : 3.147.73.117


Current Path : /opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/chardet/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/chardet/chardistribution.pyc

�
�Rec@s*ddlmZmZmZddlmZmZmZddlm	Z	m
Z
mZddlm
Z
mZmZddlmZmZmZdefd��YZdefd	��YZd
efd��YZdefd
��YZdefd��YZdefd��YZdefd��YZdS(i(tEUCTW_CHAR_TO_FREQ_ORDERtEUCTW_TABLE_SIZEt EUCTW_TYPICAL_DISTRIBUTION_RATIO(tEUCKR_CHAR_TO_FREQ_ORDERtEUCKR_TABLE_SIZEt EUCKR_TYPICAL_DISTRIBUTION_RATIO(tGB2312_CHAR_TO_FREQ_ORDERtGB2312_TABLE_SIZEt!GB2312_TYPICAL_DISTRIBUTION_RATIO(tBIG5_CHAR_TO_FREQ_ORDERtBIG5_TABLE_SIZEtBIG5_TYPICAL_DISTRIBUTION_RATIO(tJIS_CHAR_TO_FREQ_ORDERtJIS_TABLE_SIZEtJIS_TYPICAL_DISTRIBUTION_RATIOtCharDistributionAnalysiscBsVeZdZdZdZdZd�Zd�Zd�Zd�Z	d�Z
d	�ZRS(
ig�G�z��?g{�G�z�?icCsDd|_d|_d|_d|_d|_d|_|j�dS(N(tNonet_char_to_freq_ordert_table_sizettypical_distribution_ratiot_donet_total_charst_freq_charstreset(tself((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/chardet/chardistribution.pyt__init__.s						cCst|_d|_d|_dS(sreset analyser, clear any stateiN(tFalseRRR(R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/chardet/chardistribution.pyR=s		cCs}|dkr|j|�}nd}|dkry|jd7_||jkryd|j|krv|jd7_qvqyndS(s"feed a character with known lengthii����iiiN(t	get_orderRRRR(Rtchartchar_lentorder((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/chardet/chardistribution.pytfeedFscCsu|jdks!|j|jkr(|jS|j|jkrn|j|j|j|j}||jkrn|Sn|jS(s(return confidence based on existing datai(RRtMINIMUM_DATA_THRESHOLDtSURE_NORtSURE_YES(Rtr((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/chardet/chardistribution.pytget_confidenceTs!cCs|j|jkS(N(RtENOUGH_DATA_THRESHOLD(R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/chardet/chardistribution.pytgot_enough_datadscCsdS(Ni����((Rtbyte_str((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/chardet/chardistribution.pyRis(t__name__t
__module__R%R"R!R RRRR$R&R(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/chardet/chardistribution.pyR(s						tEUCTWDistributionAnalysiscBseZd�Zd�ZRS(cCs2tt|�j�t|_t|_t|_dS(N(	tsuperR*RRRRRRR(R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/chardet/chardistribution.pyRrs		cCs6|d}|dkr.d|d|ddSdSdS(Nii�i^ii�i����((RR't
first_char((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/chardet/chardistribution.pyRxs
(R(R)RR(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/chardet/chardistribution.pyR*qs	tEUCKRDistributionAnalysiscBseZd�Zd�ZRS(cCs2tt|�j�t|_t|_t|_dS(N(	R+R-RRRRRRR(R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/chardet/chardistribution.pyR�s		cCs6|d}|dkr.d|d|ddSdSdS(Nii�i^ii�i����((RR'R,((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/chardet/chardistribution.pyR�s
(R(R)RR(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/chardet/chardistribution.pyR-�s	tGB2312DistributionAnalysiscBseZd�Zd�ZRS(cCs2tt|�j�t|_t|_t|_dS(N(	R+R.RRRRRRR(R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/chardet/chardistribution.pyR�s		cCsI|d|d}}|dkrA|dkrAd|d|dSdSdS(Niii�i�i^i����((RR'R,tsecond_char((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/chardet/chardistribution.pyR�s(R(R)RR(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/chardet/chardistribution.pyR.�s	tBig5DistributionAnalysiscBseZd�Zd�ZRS(cCs2tt|�j�t|_t|_t|_dS(N(	R+R0RR	RR
RRR(R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/chardet/chardistribution.pyR�s		cCsd|d|d}}|dkr\|dkrEd|d|ddSd|d|dSndSdS(	Niii�i�i�i?i@i����((RR'R,R/((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/chardet/chardistribution.pyR�s(R(R)RR(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/chardet/chardistribution.pyR0�s	tSJISDistributionAnalysiscBseZd�Zd�ZRS(cCs2tt|�j�t|_t|_t|_dS(N(	R+R1RRRR
RRR(R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/chardet/chardistribution.pyR�s		cCs�|d|d}}|dkr>|dkr>d|d}n1|dkrk|dkrkd|dd}nd	S||d
}|dkr�d	}n|S(Niii�i�i�i�i�ii����i@i((RR'R,R/R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/chardet/chardistribution.pyR�s	(R(R)RR(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/chardet/chardistribution.pyR1�s	tEUCJPDistributionAnalysiscBseZd�Zd�ZRS(cCs2tt|�j�t|_t|_t|_dS(N(	R+R2RRRR
RRR(R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/chardet/chardistribution.pyR�s		cCs6|d}|dkr.d|d|ddSdSdS(Nii�i^i�ii����((RR'R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/chardet/chardistribution.pyR�s
(R(R)RR(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/chardet/chardistribution.pyR2�s	N(t	euctwfreqRRRt	euckrfreqRRRt
gb2312freqRRRtbig5freqR	R
RtjisfreqRR
RtobjectRR*R-R.R0R1R2(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/chardet/chardistribution.pyt<module>sI

?>