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_sample_need_to_skip_char_num_last_char_order_donereset)selfr?/opt/alt/python37/lib/python3.7/site-packages/chardet/jpcntx.py__init__{s z JapaneseContextAnalysis.__init__cCs*d|_dg|j|_d|_d|_d|_dS)Nrr F)r NUM_OF_CATEGORYr r rr)rrrrrs zJapaneseContextAnalysis.resetcCs|jr dS|j}x||kr||||d\}}||7}||krV|||_d|_q|dkr|jdkr|jd7_|j|jkrd|_P|jt|j|d7<||_qWdS)Nrr rT)rr get_orderrr MAX_REL_THRESHOLDr jp2CharContext)rbyte_strZ num_bytesiorderchar_lenrrrfeeds     zJapaneseContextAnalysis.feedcCs |j|jkS)N)r ENOUGH_REL_THRESHOLD)rrrrgot_enough_datasz'JapaneseContextAnalysis.got_enough_datacCs,|j|jkr"|j|jd|jS|jSdS)Nr)r MINIMUM_DATA_THRESHOLDr DONT_KNOW)rrrrget_confidences z&JapaneseContextAnalysis.get_confidencecCsdS)N)r rr)rrrrrrsz!JapaneseContextAnalysis.get_orderN)__name__ __module__ __qualname__rr!rrr rrrrr"rrrrrrts rcs0eZdZfddZeddZddZZS)SJISContextAnalysiscstt|d|_dS)NZ SHIFT_JIS)superr&r _charset_name)r) __class__rrrszSJISContextAnalysis.__init__cCs|jS)N)r()rrrr charset_namesz SJISContextAnalysis.charset_namecCs|sdS|d}d|kr$dks>nd|kr:dkrjnn,d}|dksbd |kr^dkrnnqnd |_nd }t|d kr|d }|d krd|krd krnn |d|fSd|fS)N)r rrrZCP932rr )r(len)rr first_charr second_charrrrrs.    zSJISContextAnalysis.get_order)r#r$r%rpropertyr*r __classcell__rr)r)rr&s  r&c@seZdZddZdS)EUCJPContextAnalysiscCs|sdS|d}|dks0d|kr,dkr6nnd}n|dkrDd}nd }t|d kr|d }|d krd|krxd krnn |d|fSd |fS) N)r rrrrrr )r3)rrr4rr5rrrrs    zEUCJPContextAnalysis.get_orderN)r#r$r%rrrrrr8sr8N)robjectrr&r8rrrrsUC