HEX
Server: Apache/2.4.54 (Unix) OpenSSL/1.0.2k-fips
System: Linux f17.eelserver.com 3.10.0-1160.80.1.el7.x86_64 #1 SMP Tue Nov 8 15:48:59 UTC 2022 x86_64
User: zulfiqar (1155)
PHP: 8.2.0
Disabled: mail, exec, system, popen, proc_open, shell_exec, passthru, show_source
Upload Files
File: //lib/python2.7/site-packages/chardet/sjisprober.pyo
�
j�Rc@s�ddlZddlmZddlmZddlmZddlmZddl	m
Z
ddlmZd	efd
��YZ
dS(i����Ni(tMultiByteCharSetProber(tCodingStateMachine(tSJISDistributionAnalysis(tSJISContextAnalysis(tSJISSMModel(t	constantst
SJISProbercBs5eZd�Zd�Zd�Zd�Zd�ZRS(cCsBtj|�tt�|_t�|_t�|_|j	�dS(N(
Rt__init__RRt
_mCodingSMRt_mDistributionAnalyzerRt_mContextAnalyzertreset(tself((s6/usr/lib/python2.7/site-packages/chardet/sjisprober.pyR&s

cCstj|�|jj�dS(N(RRR
(R((s6/usr/lib/python2.7/site-packages/chardet/sjisprober.pyR-s
cCsdS(Nt	SHIFT_JIS((R((s6/usr/lib/python2.7/site-packages/chardet/sjisprober.pytget_charset_name1scCs�t|�}x`td|�D]O}|jj||�}|tjkr�tjr{tjj	|j
�dt|�d�ntj|_
Pq|tjkr�tj|_
Pq|tjkr|jj�}|dkr|d|jd<|jj|jd||�|jj|j|�qk|jj||d||d|!|�|jj||d|d!|�qqW||d|jd<|j�tjkr�|jj�r�|j�tjkr�tj|_
q�n|j�S(Nis prober hit error at byte s
iii(tlentrangeRt
next_stateRteErrort_debugtsyststderrtwriteRtstrteNotMet_mStateteItsMeteFoundItteStarttget_current_charlent
_mLastCharR
tfeedR	t	get_statet
eDetectingtgot_enough_datatget_confidencetSHORTCUT_THRESHOLD(RtaBuftaLentitcodingStatetcharLen((s6/usr/lib/python2.7/site-packages/chardet/sjisprober.pyR4s:		"cCs+|jj�}|jj�}t||�S(N(R
R#R	tmax(RtcontxtCft	distribCf((s6/usr/lib/python2.7/site-packages/chardet/sjisprober.pyR#Xs(t__name__t
__module__RRRRR#(((s6/usr/lib/python2.7/site-packages/chardet/sjisprober.pyR%s
				$(RtmbcharsetproberRtcodingstatemachineRtchardistributionRtjpcntxRtmbcssmRtRR(((s6/usr/lib/python2.7/site-packages/chardet/sjisprober.pyt<module>s