AlkantarClanX12

Your IP : 3.145.95.233


Current Path : /opt/cloudlinux/venv/lib64/python3.11/site-packages/chardet/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/chardet/__pycache__/jpcntx.cpython-311.pyc

�

�܋f�i��p�ddlmZmZmZdZGd�d��ZGd�de��ZGd�de��Zd	S)
�)�List�Tuple�Union)S)Srrr�rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr�rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr)Sr�rrr�rrrr	rrrrrr	r	rr	rr	r	rrr	r	r	rrrrr	r	r�rr	rr	rr	r
r	rr	r
rrrr	rrr	r	rr	r	rrrrrr	rr	r	rrrrrr	r
r
r
r
rrrrrr	r)Srrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr)Srrrr
rr
rrrrr
rrr	r
r	r
rr
r	rr	rrr	rr	r	rr	r
rrr	r
r
r	r
r
r
r	r
r
r	rr
r
r	rr	rrr	rrrrrrrrr
r	rr	r
rrrrrr
rrr
rr
rrrrrr�Srrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr)Srr	rrrr	rr	rrr
rr	r	r	r	rr	r
rrr	r
rrr	rr	rrrrr
r	rrr	rr
r
rr
r
rrr
rr	rr	r	rr	r	rrrrr	r	rr
r	r	r	r
rrrr	rrrr	rr	r	rrrrr	r)Srrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr)Srrrr	rr	rrrr	rrr	rrrrrr	rr	r	r	r	r	rr	rr	r	r
r	r	rrr	rr
rr	r	r
rrr	rrr
rrrrrrrrrrrrrr
rrrrrr	rrrrrr	r
rr	rrrrrr	)Srrrrrrrrr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d
�Zdefd�Zde
eefdee
e
ffd�ZdS)�JapaneseContextAnalysis�����di�r�returnNc�t�d|_g|_d|_d|_d|_|���dS�NrrF)�
_total_rel�_rel_sample�_need_to_skip_char_num�_last_char_order�_done�reset��selfs �E/opt/cloudlinux/venv/lib64/python3.11/site-packages/chardet/jpcntx.py�__init__z JapaneseContextAnalysis.__init__s9�����&(���&'��#� "�����
��
�
������c�^�d|_dg|jz|_d|_d|_d|_dSr)r�NUM_OF_CATEGORYrrrrrs rrzJapaneseContextAnalysis.reset�s:������3��!5�5���'(��#� "�����
�
�
r�byte_str�	num_bytesc��|jrdS|j}||kr�|�|||dz���\}}||z
}||kr||z
|_d|_nl|dkr_|jdkrT|xjdz
c_|j|jkr	d|_dS|jt|j|xxdz
cc<||_||k��dSdS)NrrrT)rr�	get_orderrr�MAX_REL_THRESHOLDr�jp2_char_context)rr!r"�i�order�char_lens      r�feedzJapaneseContextAnalysis.feed�s
���:�	��F�
�'���)�m�m�"�n�n�X�a�!�a�%�i�-@�A�A�O�E�8�
��M�A��9�}�}�./�)�m��+�(*��%�%��R�K�K�d�&;�r�&A�&A��O�O�q�(�O�O����)?�?�?�%)��
����$�(��)>�?��F���������).��%��)�m�m�m�m�m�mrc�"�|j|jkS�N)r�ENOUGH_REL_THRESHOLDrs r�got_enough_dataz'JapaneseContextAnalysis.got_enough_data�s�����!:�:�:rc�j�|j|jkr|j|jdz
|jzS|jS)Nr)r�MINIMUM_DATA_THRESHOLDr�	DONT_KNOWrs r�get_confidencez&JapaneseContextAnalysis.get_confidence�s6���?�T�8�8�8��O�d�&6�q�&9�9�T�_�L�L��~�r�_c��dS)N�rr�)rr3s  rr$z!JapaneseContextAnalysis.get_order�s���ur�rN)�__name__�
__module__�__qualname__r r1r-r%r0rrr�bytes�	bytearray�intr*�boolr.�floatr2rr$r6rrr
r
xs��������O��I�����������
�
�
�
�.�U�5�)�#3�4�.��.��.�.�.�.�:;��;�;�;�;��������5��	�!1�2��u�S�#�X�������rr
c�l��eZdZd�fd�Zedefd���Zdeee	fde
eeffd�Z�xZ
S)�SJISContextAnalysisrNc�V��t�����d|_dS)N�	SHIFT_JIS)�superr�
_charset_name)r�	__class__s �rrzSJISContextAnalysis.__init__�s'���
��������(����rc��|jSr,)rErs r�charset_namez SJISContextAnalysis.charset_name�s���!�!rr!c��|sdS|d}d|cxkrdksnd|cxkrdkr#nn d}|dksd	|cxkrdkr
nn
d
|_nd}t|��dkr%|d}|dkrd|cxkrd
kr
nn|dz
|fSd|fS)Nr5r�����r���CP932r����r)rE�len�rr!�
first_charr)�second_chars     rr$zSJISContextAnalysis.get_order�s����	��5��a�[�
��J�&�&�&�&�$�&�&�&�&�D�J�,F�,F�,F�,F�$�,F�,F�,F�,F�,F��H��d�"�"��
�(B�(B�(B�(B�d�(B�(B�(B�(B�(B�%,��"���H��x�=�=�1���"�1�+�K��c�!�!���(C�(C�(C�(C�t�(C�(C�(C�(C�(C�"�T�)�8�3�3��8�|�rr7)r8r9r:r�property�strrHrr;r<rr=r$�
__classcell__)rFs@rrArA�s��������)�)�)�)�)�)��"�c�"�"�"��X�"��%��y�(8�"9��e�C��H�o��������rrAc�>�eZdZdeeefdeeeffd�ZdS)�EUCJPContextAnalysisr!rc���|sdS|d}|dksd|cxkrdkrnnd}n|dkrd}nd	}t|��d	kr%|d	}|d
krd|cxkrdkr
nn|dz
|fSd|fS)
Nr5r���r�r	r���r)rSrTs     rr$zEUCJPContextAnalysis.get_order�s����	��5��a�[�
��$���D�J�$>�$>�$>�$>�$�$>�$>�$>�$>�$>��H�H�
�4�
�
��H�H��H��x�=�=�1���"�1�+�K��d�"�"���)D�)D�)D�)D��)D�)D�)D�)D�)D�"�T�)�8�3�3��8�|�rN)	r8r9r:rr;r<rr=r$r6rrr[r[�sH�������%��y�(8�"9��e�C��H�o������rr[N)�typingrrrr&r
rAr[r6rr�<module>rds���8&�%�%�%�%�%�%�%�%�%�T��pB�B�B�B�B�B�B�B�J�����1����<�����2�����r