/opt/alt/python38/lib/python3.8/site-packages/chardet/__pycache__
NameSizeModeActions
big5freq.cpython-38.opt-1.pyc271430644editdlrm
big5freq.cpython-38.pyc271430644editdlrm
big5prober.cpython-38.opt-1.pyc10980644editdlrm
big5prober.cpython-38.pyc10980644editdlrm
chardistribution.cpython-38.opt-1.pyc61840644editdlrm
chardistribution.cpython-38.pyc61840644editdlrm
charsetgroupprober.cpython-38.opt-1.pyc22150644editdlrm
charsetgroupprober.cpython-38.pyc22150644editdlrm
charsetprober.cpython-38.opt-1.pyc34470644editdlrm
charsetprober.cpython-38.pyc34470644editdlrm
codingstatemachine.cpython-38.opt-1.pyc28740644editdlrm
codingstatemachine.cpython-38.pyc28740644editdlrm
compat.cpython-38.opt-1.pyc3190644editdlrm
compat.cpython-38.pyc3190644editdlrm
cp949prober.cpython-38.opt-1.pyc11050644editdlrm
cp949prober.cpython-38.pyc11050644editdlrm
enums.cpython-38.opt-1.pyc26120644editdlrm
enums.cpython-38.pyc26120644editdlrm
escprober.cpython-38.opt-1.pyc25970644editdlrm
escprober.cpython-38.pyc25970644editdlrm
escsm.cpython-38.opt-1.pyc74380644editdlrm
escsm.cpython-38.pyc74380644editdlrm
eucjpprober.cpython-38.opt-1.pyc24150644editdlrm
eucjpprober.cpython-38.pyc24150644editdlrm
euckrfreq.cpython-38.opt-1.pyc120270644editdlrm
euckrfreq.cpython-38.pyc120270644editdlrm
euckrprober.cpython-38.opt-1.pyc11060644editdlrm
euckrprober.cpython-38.pyc11060644editdlrm
euctwfreq.cpython-38.opt-1.pyc271470644editdlrm
euctwfreq.cpython-38.pyc271470644editdlrm
euctwprober.cpython-38.opt-1.pyc11060644editdlrm
euctwprober.cpython-38.pyc11060644editdlrm
gb2312freq.cpython-38.opt-1.pyc190710644editdlrm
gb2312freq.cpython-38.pyc190710644editdlrm
gb2312prober.cpython-38.opt-1.pyc11140644editdlrm
gb2312prober.cpython-38.pyc11140644editdlrm
hebrewprober.cpython-38.opt-1.pyc29870644editdlrm
hebrewprober.cpython-38.pyc29870644editdlrm
jisfreq.cpython-38.opt-1.pyc220990644editdlrm
jisfreq.cpython-38.pyc220990644editdlrm
jpcntx.cpython-38.opt-1.pyc375720644editdlrm
jpcntx.cpython-38.pyc375720644editdlrm
langbulgarianmodel.cpython-38.opt-1.pyc235960644editdlrm
langbulgarianmodel.cpython-38.pyc235960644editdlrm
langcyrillicmodel.cpython-38.opt-1.pyc290600644editdlrm
langcyrillicmodel.cpython-38.pyc290600644editdlrm
langgreekmodel.cpython-38.opt-1.pyc235540644editdlrm
langgreekmodel.cpython-38.pyc235540644editdlrm
langhebrewmodel.cpython-38.opt-1.pyc221810644editdlrm
langhebrewmodel.cpython-38.pyc221810644editdlrm
langhungarianmodel.cpython-38.opt-1.pyc235850644editdlrm
langhungarianmodel.cpython-38.pyc235850644editdlrm
langthaimodel.cpython-38.opt-1.pyc221600644editdlrm
langthaimodel.cpython-38.pyc221600644editdlrm
langturkishmodel.cpython-38.opt-1.pyc221830644editdlrm
langturkishmodel.cpython-38.pyc221830644editdlrm
latin1prober.cpython-38.opt-1.pyc33670644editdlrm
latin1prober.cpython-38.pyc33670644editdlrm
mbcharsetprober.cpython-38.opt-1.pyc22300644editdlrm
mbcharsetprober.cpython-38.pyc22300644editdlrm
mbcsgroupprober.cpython-38.opt-1.pyc10950644editdlrm
mbcsgroupprober.cpython-38.pyc10950644editdlrm
mbcssm.cpython-38.opt-1.pyc167180644editdlrm
mbcssm.cpython-38.pyc167180644editdlrm
sbcharsetprober.cpython-38.opt-1.pyc29830644editdlrm
sbcharsetprober.cpython-38.pyc29830644editdlrm
sbcsgroupprober.cpython-38.opt-1.pyc15930644editdlrm
sbcsgroupprober.cpython-38.pyc15930644editdlrm
sjisprober.cpython-38.opt-1.pyc24510644editdlrm
sjisprober.cpython-38.pyc24510644editdlrm
universaldetector.cpython-38.opt-1.pyc57950644editdlrm
universaldetector.cpython-38.pyc57950644editdlrm
utf8prober.cpython-38.opt-1.pyc19560644editdlrm
utf8prober.cpython-38.pyc19560644editdlrm
version.cpython-38.opt-1.pyc4030644editdlrm
version.cpython-38.pyc4030644editdlrm
__init__.cpython-38.opt-1.pyc8140644editdlrm
__init__.cpython-38.pyc8140644editdlrm
Edit: /opt/alt/python38/lib/python3.8/site-packages/chardet/__pycache__/chardistribution.cpython-38.pyc (6184B)
U <_9Y$@sddlmZmZmZddlmZmZmZddlm Z m Z m Z ddl m Z mZmZddlmZmZmZGdddeZGdd d eZGd d d eZGd d d eZGdddeZGdddeZGdddeZdS))EUCTW_CHAR_TO_FREQ_ORDEREUCTW_TABLE_SIZE EUCTW_TYPICAL_DISTRIBUTION_RATIO)EUCKR_CHAR_TO_FREQ_ORDEREUCKR_TABLE_SIZE EUCKR_TYPICAL_DISTRIBUTION_RATIO)GB2312_CHAR_TO_FREQ_ORDERGB2312_TABLE_SIZE!GB2312_TYPICAL_DISTRIBUTION_RATIO)BIG5_CHAR_TO_FREQ_ORDERBIG5_TABLE_SIZEBIG5_TYPICAL_DISTRIBUTION_RATIO)JIS_CHAR_TO_FREQ_ORDERJIS_TABLE_SIZEJIS_TYPICAL_DISTRIBUTION_RATIOc@sLeZdZdZdZdZdZddZddZd d Z d d Z d dZ ddZ dS)CharDistributionAnalysisigGz?g{Gz?cCs0d|_d|_d|_d|_d|_d|_|dSN)_char_to_freq_order _table_sizetypical_distribution_ratio_done _total_chars _freq_charsresetselfrI/opt/alt/python38/lib/python3.8/site-packages/chardet/chardistribution.py__init__.sz!CharDistributionAnalysis.__init__cCsd|_d|_d|_dS)zreset analyser, clear any stateFN)rrrrrrrr=szCharDistributionAnalysis.resetcCsX|dkr||}nd}|dkrT|jd7_||jkrTd|j|krT|jd7_dS)z"feed a character with known lengthr riN) get_orderrrrr)rcharZchar_lenorderrrrfeedFs  zCharDistributionAnalysis.feedcCsT|jdks|j|jkr|jS|j|jkrN|j|j|j|j}||jkrN|S|jS)z(return confidence based on existing datar )rrMINIMUM_DATA_THRESHOLDSURE_NOrSURE_YES)rrrrrget_confidenceTs  z'CharDistributionAnalysis.get_confidencecCs |j|jkSr)rENOUGH_DATA_THRESHOLDrrrrgot_enough_datadsz(CharDistributionAnalysis.got_enough_datacCsdS)Nr"r)rbyte_strrrrr#isz"CharDistributionAnalysis.get_orderN) __name__ __module__ __qualname__r,r)r(r'rrr&r+r-r#rrrrr(s rcs$eZdZfddZddZZS)EUCTWDistributionAnalysiscs$tt|t|_t|_t|_dSr) superr2rrrrrrrr __class__rrrrsz"EUCTWDistributionAnalysis.__init__cCs0|d}|dkr(d|d|ddSdSdS)Nr ^rr"rrr. first_charrrrr#xsz#EUCTWDistributionAnalysis.get_orderr/r0r1rr# __classcell__rrr4rr2qs r2cs$eZdZfddZddZZS)EUCKRDistributionAnalysiscs$tt|t|_t|_t|_dSr) r3r=rrrrrrrrr4rrrsz"EUCKRDistributionAnalysis.__init__cCs0|d}|dkr(d|d|ddSdSdS)Nr r7rr8r"rr9rrrr#sz#EUCKRDistributionAnalysis.get_orderr;rrr4rr=s r=cs$eZdZfddZddZZS)GB2312DistributionAnalysiscs$tt|t|_t|_t|_dSr) r3r?rrrr rr rrr4rrrsz#GB2312DistributionAnalysis.__init__cCs>|d|d}}|dkr6|dkr6d|d|dSdSdS)Nr rr>r8r7r"rrr.r: second_charrrrr#sz$GB2312DistributionAnalysis.get_orderr;rrr4rr?s r?cs$eZdZfddZddZZS)Big5DistributionAnalysiscs$tt|t|_t|_t|_dSr) r3rBrr rr rr rrr4rrrsz!Big5DistributionAnalysis.__init__cCsX|d|d}}|dkrP|dkr:d|d|ddSd|d|dSndSdS) Nr rr8?@r"rr@rrrr#s z"Big5DistributionAnalysis.get_orderr;rrr4rrBs rBcs$eZdZfddZddZZS)SJISDistributionAnalysiscs$tt|t|_t|_t|_dSr) r3rGrrrrrrrrr4rrrsz!SJISDistributionAnalysis.__init__cCsr|d|d}}|dkr0|dkr0d|d}n&|dkrR|dkrRd|dd}nd S||d }|d krnd }|S) Nr rr"rFr)rr.r:rAr%rrrr#s z"SJISDistributionAnalysis.get_orderr;rrr4rrGs rGcs$eZdZfddZddZZS)EUCJPDistributionAnalysiscs$tt|t|_t|_t|_dSr) r3rOrrrrrrrrr4rrrsz"EUCJPDistributionAnalysis.__init__cCs0|d}|dkr(d|d|ddSdSdS)Nr r7r8rr"r)rr.r$rrrr#sz#EUCJPDistributionAnalysis.get_orderr;rrr4rrOs rON)Z euctwfreqrrrZ euckrfreqrrrZ gb2312freqrr r Zbig5freqr r r Zjisfreqrrrobjectrr2r=r?rBrGrOrrrrsI