$64 GRAYBYTE WORDPRESS FILE MANAGER $67

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.157
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/python37/lib/python3.7/site-packages/chardet/__pycache__/

HOME
Current File : /opt/alt/python37/lib/python3.7/site-packages/chardet/__pycache__//universaldetector.cpython-37.pyc
B

<_9Y�0�@s�dZddlZddlZddlZddlmZddlmZmZm	Z	ddl
mZddlm
Z
ddlmZdd	lmZGd
d�de�ZdS)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�)�CharSetGroupProber)�
InputState�LanguageFilter�ProbingState)�EscCharSetProber)�Latin1Prober)�MBCSGroupProber)�SBCSGroupProberc	@sneZdZdZdZe�d�Ze�d�Ze�d�Z	dddd	d
ddd
d�Z
ejfdd�Z
dd�Zdd�Zdd�ZdS)�UniversalDetectoraq
    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Windows-1252zWindows-1250zWindows-1251zWindows-1256zWindows-1253zWindows-1255zWindows-1254zWindows-1257)z
iso-8859-1z
iso-8859-2z
iso-8859-5z
iso-8859-6z
iso-8859-7z
iso-8859-8z
iso-8859-9ziso-8859-13cCsNd|_g|_d|_d|_d|_d|_d|_||_t�	t
�|_d|_|�
�dS)N)�_esc_charset_prober�_charset_probers�result�done�	_got_data�_input_state�
_last_char�lang_filter�logging�	getLogger�__name__�logger�_has_win_bytes�reset)�selfr�r�J/opt/alt/python37/lib/python3.7/site-packages/chardet/universaldetector.py�__init__QszUniversalDetector.__init__cCsZdddd�|_d|_d|_d|_tj|_d|_|jr>|j�	�x|j
D]}|�	�qFWdS)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.
        Ng)�encoding�
confidence�languageF�)rrrrr�
PURE_ASCIIrrrrr
)r�proberrrrr^s
zUniversalDetector.resetcCs>|jr
dSt|�sdSt|t�s(t|�}|js�|�tj�rJdddd�|_nv|�tj	tj
f�rldddd�|_nT|�d�r�dddd�|_n:|�d	�r�d
ddd�|_n |�tjtjf�r�dddd�|_d|_|jd
dk	r�d|_dS|j
tjk�r.|j�|��rtj|_
n*|j
tjk�r.|j�|j|��r.tj|_
|dd�|_|j
tjk�r�|j�s^t|j�|_|j�|�tjk�r:|jj|j��|jjd�|_d|_n�|j
tjk�r:|j�s�t |j�g|_|jt!j"@�r�|j�#t$��|j�#t%��x@|jD]6}|�|�tjk�r�|j|��|jd�|_d|_P�q�W|j&�|��r:d|_'dS)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``.
        Nz	UTF-8-SIGg�?�)rrr zUTF-32s��zX-ISO-10646-UCS-4-3412s��zX-ISO-10646-UCS-4-2143zUTF-16Tr���)(r�len�
isinstance�	bytearrayr�
startswith�codecs�BOM_UTF8r�BOM_UTF32_LE�BOM_UTF32_BE�BOM_LE�BOM_BErrr"�HIGH_BYTE_DETECTOR�search�	HIGH_BYTE�ESC_DETECTORrZ	ESC_ASCIIrrr�feedrZFOUND_IT�charset_name�get_confidencer r
r	rZNON_CJK�appendr
r�WIN_BYTE_DETECTORr)rZbyte_strr#rrrr4os|





zUniversalDetector.feedc		Cs�|jr|jSd|_|js&|j�d�n�|jtjkrBdddd�|_n�|jtjkr�d}d}d}x,|j	D]"}|slqb|�
�}||krb|}|}qbW|r�||jkr�|j}|j�
�}|�
�}|�d	�r�|jr�|j�||�}|||jd�|_|j��tjk�rz|jd
dk�rz|j�d�xn|j	D]d}|�s �qt|t��rZxF|jD] }|j�d|j|j|�
���q4Wn|j�d|j|j|�
���qW|jS)
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!�asciig�?r$)rrr Ngziso-8859rz no probers hit minimum thresholdz%s %s confidence = %s)rrrr�debugrrr"r2r
r6�MINIMUM_THRESHOLDr5�lowerr)r�ISO_WIN_MAP�getr �getEffectiveLevelr�DEBUGr'rZprobers)	rZprober_confidenceZmax_prober_confidenceZ
max_proberr#r5Zlower_charset_namerZgroup_proberrrr�close�s`	

zUniversalDetector.closeN)r�
__module__�__qualname__�__doc__r;�re�compiler0r3r8r=rZALLrrr4rArrrrr3s"



mr)rDr*rrEZcharsetgroupproberrZenumsrrrZ	escproberrZlatin1proberrZmbcsgroupproberr	Zsbcsgroupproberr
�objectrrrrr�<module>$s


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 11.11 PM
root / linksafe
0755
__init__.cpython-37.opt-1.pyc
0.785 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
__init__.cpython-37.pyc
0.785 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
big5freq.cpython-37.opt-1.pyc
26.503 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
big5freq.cpython-37.pyc
26.503 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
big5prober.cpython-37.opt-1.pyc
1.055 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
big5prober.cpython-37.pyc
1.055 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
chardistribution.cpython-37.opt-1.pyc
6.119 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
chardistribution.cpython-37.pyc
6.119 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
charsetgroupprober.cpython-37.opt-1.pyc
2.136 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
charsetgroupprober.cpython-37.pyc
2.136 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
charsetprober.cpython-37.opt-1.pyc
3.317 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
charsetprober.cpython-37.pyc
3.317 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
codingstatemachine.cpython-37.opt-1.pyc
2.777 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
codingstatemachine.cpython-37.pyc
2.777 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
compat.cpython-37.opt-1.pyc
0.308 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
compat.cpython-37.pyc
0.308 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
cp949prober.cpython-37.opt-1.pyc
1.062 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
cp949prober.cpython-37.pyc
1.062 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
enums.cpython-37.opt-1.pyc
2.518 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
enums.cpython-37.pyc
2.518 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
escprober.cpython-37.opt-1.pyc
2.505 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
escprober.cpython-37.pyc
2.505 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
escsm.cpython-37.opt-1.pyc
6.861 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
escsm.cpython-37.pyc
6.861 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
eucjpprober.cpython-37.opt-1.pyc
2.317 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
eucjpprober.cpython-37.pyc
2.317 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
euckrfreq.cpython-37.opt-1.pyc
11.741 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
euckrfreq.cpython-37.pyc
11.741 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
euckrprober.cpython-37.opt-1.pyc
1.063 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
euckrprober.cpython-37.pyc
1.063 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
euctwfreq.cpython-37.opt-1.pyc
26.507 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
euctwfreq.cpython-37.pyc
26.507 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
euctwprober.cpython-37.opt-1.pyc
1.063 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
euctwprober.cpython-37.pyc
1.063 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
gb2312freq.cpython-37.opt-1.pyc
18.62 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
gb2312freq.cpython-37.pyc
18.62 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
gb2312prober.cpython-37.opt-1.pyc
1.07 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
gb2312prober.cpython-37.pyc
1.07 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
hebrewprober.cpython-37.opt-1.pyc
2.861 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
hebrewprober.cpython-37.pyc
2.861 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
jisfreq.cpython-37.opt-1.pyc
21.577 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
jisfreq.cpython-37.pyc
21.577 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
jpcntx.cpython-37.opt-1.pyc
37.084 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
jpcntx.cpython-37.pyc
37.084 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
langbulgarianmodel.cpython-37.opt-1.pyc
23.035 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
langbulgarianmodel.cpython-37.pyc
23.035 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
langcyrillicmodel.cpython-37.opt-1.pyc
28.363 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
langcyrillicmodel.cpython-37.pyc
28.363 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
langgreekmodel.cpython-37.opt-1.pyc
22.994 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
langgreekmodel.cpython-37.pyc
22.994 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
langhebrewmodel.cpython-37.opt-1.pyc
21.655 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
langhebrewmodel.cpython-37.pyc
21.655 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
langhungarianmodel.cpython-37.opt-1.pyc
23.024 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
langhungarianmodel.cpython-37.pyc
23.024 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
langthaimodel.cpython-37.opt-1.pyc
21.635 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
langthaimodel.cpython-37.pyc
21.635 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
langturkishmodel.cpython-37.opt-1.pyc
21.657 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
langturkishmodel.cpython-37.pyc
21.657 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
latin1prober.cpython-37.opt-1.pyc
2.819 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
latin1prober.cpython-37.pyc
2.819 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
mbcharsetprober.cpython-37.opt-1.pyc
2.141 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
mbcharsetprober.cpython-37.pyc
2.141 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
mbcsgroupprober.cpython-37.opt-1.pyc
1.058 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
mbcsgroupprober.cpython-37.pyc
1.058 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
mbcssm.cpython-37.opt-1.pyc
15.271 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
mbcssm.cpython-37.pyc
15.271 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
sbcharsetprober.cpython-37.opt-1.pyc
2.876 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
sbcharsetprober.cpython-37.pyc
2.876 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
sbcsgroupprober.cpython-37.opt-1.pyc
1.536 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
sbcsgroupprober.cpython-37.pyc
1.536 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
sjisprober.cpython-37.opt-1.pyc
2.343 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
sjisprober.cpython-37.pyc
2.343 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
universaldetector.cpython-37.opt-1.pyc
5.653 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
universaldetector.cpython-37.pyc
5.653 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
utf8prober.cpython-37.opt-1.pyc
1.885 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
utf8prober.cpython-37.pyc
1.885 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
version.cpython-37.opt-1.pyc
0.39 KB
14 Nov 2023 12.05 PM
root / linksafe
0644
version.cpython-37.pyc
0.39 KB
14 Nov 2023 12.05 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF