ok

Mini Shell

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

�

�܋f�
��b�ddlmZddlmZddlmZddlmZmZddl	m
Z
Gd�de��Zd	S)
�)�Union�)�
CharSetProber)�CodingStateMachine)�MachineState�ProbingState)�
UTF8_SM_MODELc���eZdZdZd�fd�Zd�fd�Zedefd���Zedefd���Z	de
eefde
fd	�Zdefd
�Z�xZS)�
UTF8Proberg�?�returnNc���t�����tt��|_d|_|���dS�Nr)�super�__init__rr	�	coding_sm�
_num_mb_chars�reset��self�	__class__s ��I/opt/cloudlinux/venv/lib64/python3.11/site-packages/chardet/utf8prober.pyrzUTF8Prober.__init__'sA���
��������+�M�:�:�������
�
������c���t�����|j���d|_dSr)rrrrrs �rrzUTF8Prober.reset-s6���
���
�
���������������rc��dS)Nzutf-8��rs r�charset_namezUTF8Prober.charset_name2s���wrc��dS)N�rrs r�languagezUTF8Prober.language6s���rr�byte_strc���|D]�}|j�|��}|tjkrtj|_na|tjkrtj|_n>|tj	kr-|j�
��dkr|xjdz
c_��|jtj
kr.|���|jkrtj|_|jS)N�r)r�
next_stater�ERRORr�NOT_ME�_state�ITS_ME�FOUND_IT�START�get_current_charlenr�state�	DETECTING�get_confidence�SHORTCUT_THRESHOLD)rr!�c�coding_states    r�feedzUTF8Prober.feed:s����
	,�
	,�A��>�4�4�Q�7�7�L��|�1�1�1�*�1������|�2�2�2�*�3������|�1�1�1��>�5�5�7�7�1�<�<��&�&�!�+�&�&���:��/�/�/��"�"�$�$�t�'>�>�>�*�3����z�rc�N�d}|jdkr||j|jzz}d|z
S|S)Ng�G�z��?�g�?)r�
ONE_CHAR_PROB)r�unlikes  rr.zUTF8Prober.get_confidenceMs9�������!�!��d�(�$�*<�<�<�F���<���
r)rN)�__name__�
__module__�__qualname__r5rr�property�strrr r�bytes�	bytearrayrr2�floatr.�
__classcell__)rs@rrr$s���������M�������������
��c�����X����#�����X���U�5�)�#3�4�������&���������rrN)�typingr�
charsetproberr�codingstatemachiner�enumsrr�mbcssmr	rrrr�<module>rEs���8������(�(�(�(�(�(�2�2�2�2�2�2�-�-�-�-�-�-�-�-�!�!�!�!�!�!�.�.�.�.�.��.�.�.�.�.r

Zerion Mini Shell 1.0