403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/chardet/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/chardet/__pycache__/universaldetector.cpython-314.pyc
+
��3i:����Rt^RIt^RIt^RIt^RIHtHtHt^RIH	t	^RI
Ht^RIH
t
HtHt^RIHt^RIHt^RIHt^R	IHt^R
IHt^RIHt^RIHt!R
R4tR#)a
Module containing the UniversalDetector detector class, which is the primary
class a user of ``chardet`` should use.

:author: Mark Pilgrim (initial port to Python)
:author: Shy Shalom (original C code)
:author: Dan Blanchard (major refactoring for 3.0)
:author: Ian Cordasco
N)�List�Optional�Union)�CharSetGroupProber)�
CharSetProber)�
InputState�LanguageFilter�ProbingState)�EscCharSetProber)�Latin1Prober)�MacRomanProber)�MBCSGroupProber��
ResultDict)�SBCSGroupProber)�
UTF1632Proberc�a�]tRt^8toRtRt]P!R4t]P!R4t	]P!R4t
RRRR	R
RRR
RRRRRRRR/tRRRRRRRRRRRRRR/t]
PR3V3R lR!llt]V3R"lR#l4t]V3R$lR%l4t]V3R&lR'l4tV3R(lR)ltV3R*lR+ltV3R,lR-ltR.tVtR/#)0�UniversalDetectoraI
The ``UniversalDetector`` class underlies the ``chardet.detect`` function
and coordinates all of the different charset probers.

To get a ``dict`` containing an encoding and its confidence, you can simply
run:

.. code::

        u = UniversalDetector()
        u.feed(some_bytes)
        u.close()
        detected = u.result

g�������?s[�-�]s(|~{)s[�-�]z
iso-8859-1zWindows-1252z
iso-8859-2zWindows-1250z
iso-8859-5zWindows-1251z
iso-8859-6zWindows-1256z
iso-8859-7zWindows-1253z
iso-8859-8zWindows-1255z
iso-8859-9zWindows-1254ziso-8859-13zWindows-1257�asciiztis-620zISO-8859-11�gb2312�GB18030zeuc-kr�CP949zutf-16le�UTF-16Fc�*<�V^8�dQhRS[RS[RR/#)��lang_filter�should_rename_legacy�returnN)r�bool)�format�
__classdict__s"��;/usr/lib/python3/dist-packages/chardet/universaldetector.py�__annotate__�UniversalDetector.__annotate__ds)�����#��#��
�	�c�"�RVnRVn.VnRRRRRR/VnRVnRVn\PVnRVn	Wn
\P!\4VnRVnW nVP#4R#)N�encoding�
confidence��languageFr$)�_esc_charset_prober�_utf1632_prober�_charset_probers�result�done�	_got_datar�
PURE_ASCII�_input_state�
_last_charr�logging�	getLogger�__name__�logger�_has_win_bytesr�reset)�selfrrs&&&r!�__init__�UniversalDetector.__init__ds���
@D�� �8<���57������#���#
���
��	����&�1�1������&���'�'��1���#���$8�!��
�
�r$c� <�V^8�dQhRS[/#�rr)�int)rr s"�r!r"r#|s���!�!�S�!r$c��VP#�N)r1�r9s&r!�input_state�UniversalDetector.input_state{s��� � � r$c� <�V^8�dQhRS[/#r=)r)rr s"�r!r"r#�s���#�#�t�#r$c��VP#r@)r7rAs&r!�
has_win_bytes�UniversalDetector.has_win_bytess���"�"�"r$c�0<�V^8�dQhRS[S[,/#r=)rr)rr s"�r!r"r#�s���%�%��m�!4�%r$c��VP#r@)r,rAs&r!�charset_probers�!UniversalDetector.charset_probers�s���$�$�$r$c�<�V^8�dQhRR/#)rrN�)rr s"�r!r"r#�s�����t�r$c�x�RRRRRR/VnRVnRVnRVn\P
VnRVnVP'dVPP4VP'dVPP4VPFpVP4K	R#)z�
Reset the UniversalDetector and all of its probers back to their
initial states.  This is called by ``__init__``, so you only need to
call this directly in between analyses of different documents.
r&Nr'r(r)Fr$)r-r.r/r7rr0r1r2r*r8r+r,)r9�probers& r!r8�UniversalDetector.reset�s���"�4��s�J��M�����	����#���&�1�1�������#�#�#��$�$�*�*�,������ � �&�&�(��+�+�F��L�L�N�,r$c�:<�V^8�dQhRS[S[S[3,RR/#)r�byte_strrN)r�bytes�	bytearray)rr s"�r!r"r#�s)���A+�A+�U�5�)�#3�4�A+��A+r$c�
�VP'dR#V'gR#\V\4'g\V4pVP'Eg(VP	\
P4'dRRRRRR/VnM�VP	\
P\
P34'dRRRRRR/VnM�VP	R	4'dRR
RRRR/VnMgVP	R4'dRRRRRR/VnMBVP	\
P\
P34'dRR
RRRR/VnRVnVPR,e
RVnR#VP\P8Xd�VPP!V4'd\P"VnMfVP\P8XdHVP$P!VP&V,4'd\P(VnVRRVnVP*'g\-4VnVP*P.\0P28XdqVP*P5V4\0P68XdCRVP*P8RVP*P;4RR/VnRVnR#VP\P(8Xd�VP<'g\?VP@4VnVP<P5V4\0P68XdWRVP<P8RVP<P;4RVP<PB/VnRVnR#R#VP\P"8XEdYVPD'g�\GVP@4.Vn"VP@\HPJ,'d$VPDPM\O44VPDPM\Q44VPDPM\S44VPDF_pVP5V4\0P68XgK)RVP8RVP;4RVPB/VnRVnM	VPTP!V4'd
RVn+R#R#R#)a�
Takes a chunk of a document and feeds it through all of the relevant
charset probers.

After calling ``feed``, you can check the value of the ``done``
attribute to see if you need to continue feeding the
``UniversalDetector`` more data, or if it has made a prediction
(in the ``result`` attribute).

.. note::
   You should always call ``close`` when you're done feeding in your
   document if ``done`` is not already ``True``.
Nr&z	UTF-8-SIGr'��?r)�zUTF-32s��zX-ISO-10646-UCS-4-3412s��zX-ISO-10646-UCS-4-2143rT���),r.�
isinstancerTr/�
startswith�codecs�BOM_UTF8r-�BOM_UTF32_LE�BOM_UTF32_BE�BOM_LE�BOM_BEr1rr0�HIGH_BYTE_DETECTOR�search�	HIGH_BYTE�ESC_DETECTORr2�	ESC_ASCIIr+r�stater	�	DETECTING�feed�FOUND_IT�charset_name�get_confidencer*r
rr)r,r
r�NON_CJK�appendrrr�WIN_BYTE_DETECTORr7)r9rRrOs&& r!rh�UniversalDetector.feed�s-���9�9�9�����(�I�.�.� ��*�H��~�~�~��"�"�6�?�?�3�3��� �#������
�$�$�f�&9�&9�6�;N�;N�%O�P�P� *�8�\�3�
�TV�W����$�$�%8�9�9�� 8� �#���	����$�$�%8�9�9�� 8� �#���	����$�$�f�m�m�V�]�]�%C�D�D� *�8�\�3�
�TV�W���!�D�N��{�{�:�&�2� ��	�����
� 5� 5�5��&�&�-�-�h�7�7�$.�$8�$8��!��!�!�Z�%:�%:�:��%�%�,�,�T�_�_�x�-G�H�H�$.�$8�$8��!�"�2�3�-����#�#�#�#0�?�D� ����%�%��)?�)?�?��#�#�(�(��2�l�6K�6K�K��� 4� 4� A� A� �$�"6�"6�"E�"E�"G������
!��	�����
� 4� 4�4��+�+�+�+;�D�<L�<L�+M��(��'�'�,�,�X�6�,�:O�:O�O��� 8� 8� E� E� �$�":�":�"I�"I�"K��� 8� 8� A� A����
!��	�
P��
�
�*�"6�"6�
6��(�(�(�)8��9I�9I�)J�(K��%��#�#�n�&<�&<�<�<��)�)�0�0��1B�C��%�%�,�,�\�^�<��%�%�,�,�^�-=�>��/�/���;�;�x�(�L�,A�,A�A�"�F�$7�$7�$�f�&;�&;�&=�"�F�O�O�#�D�K�
!%�D�I��0��%�%�,�,�X�6�6�&*��#�7�#7r$c� <�V^8�dQhRS[/#r=r)rr s"�r!r"r#s���M�M�z�Mr$c	��VP'd
VP#RVnVP'gVPP	R4EMxVP
\P8XdRRRRRR/VnEMJVP
\P8XEd+R	pR
pR	pVPF)pV'gK
VP4pW8�gK%TpTpK+	V'd�W P8�d�VPpVfQhVP4pVP4pVPR4'd.VP'dVP P#We4pVP$'d5VP&P#T;'gRP4V4pRVRVRVP(/VnVPP+4\,P.8:d�VPR,f�VPP	R4VPF�pV'gK
\1V\24'dVVP4FCpVPP	R
VPVP(VP44KE	KxVPP	R
VPVP(VP44K�	VP#)z�
Stop analyzing the current document and come up with a final
prediction.

:returns:  The ``result`` attribute, a ``dict`` with the keys
           `encoding`, `confidence`, and `language`.
Tzno data received!r&rr'rVr)rWNr(ziso-8859z no probers hit minimum thresholdz%s %s confidence = %s)r.r-r/r6�debugr1rr0rcr,rk�MINIMUM_THRESHOLDrj�lowerrZr7�ISO_WIN_MAP�getr�
LEGACY_MAPr)�getEffectiveLevelr3�DEBUGrYr�probers)	r9�prober_confidence�max_prober_confidence�
max_proberrOrj�lower_charset_namer'�group_probers	&        r!�close�UniversalDetector.closesy���9�9�9��;�;����	��~�~�~��K�K���1�2��
�
�*�"7�"7�
7�%�w��c�:�r�R�D�K��
�
�*�"6�"6�
6� $��$'�!��J��/�/����$*�$9�$9�$;�!�$�<�,=�)�!'�J�
0��4�7M�7M�M�)�6�6��#�/�/�/�%1�%7�%7�%9�"�'�6�6�8�
�&�0�0��<�<��*�*�*�'+�'7�'7�';�';�.�(���,�,�,�#'�?�?�#6�#6�%�+�+��2�2�4�l�$�L��� �*��
� 3� 3�����;�;�(�(�*�g�m�m�;��{�{�:�&�.����!�!�"D�E�$(�$9�$9�L�'� �!�,�0B�C�C�&2�&:�&:�F� �K�K�-�-� 7� &� 3� 3� &��� &� 5� 5� 7�	�';����)�)�3�(�5�5�(�1�1�(�7�7�9�	�%:�$�{�{�r$)r,r*r/r7r1r2r+r.rr6r-rN)r5�
__module__�__qualname__�__firstlineno__�__doc__rs�re�compilerardrnrurwr�ALLr:�propertyrBrFrJr8rhr��__static_attributes__�__classdictcell__)r s@r!rr8s����� �����N�3���:�:�l�+�L��
�
�>�2���n��n��n��n��n��n��n��~�	�K�	���n��=��n��)��'��H��J�'5�&8�&8�%*���.�!��!��#��#��%��%���&A+�A+�FM�Mr$r)r�r[r3r��typingrrr�charsetgroupproberr�
charsetproberr�enumsrrr	�	escproberr
�latin1proberr�macromanproberr�mbcsgroupproberr
�
resultdictr�sbcsgroupproberr�
utf1632proberrrrMr$r!�<module>r�sH��8���	�(�(�2�(�;�;�'�&�*�,�"�,�(�r�rr$

Youez - 2016 - github.com/yon3zu
LinuXploit