X7ROOT File Manager
Current Path:
/opt/alt/python312/lib/python3.12/site-packages/pip/_vendor/chardet
opt
/
alt
/
python312
/
lib
/
python3.12
/
site-packages
/
pip
/
_vendor
/
chardet
/
ðŸ“
..
📄
__init__.py
(4.68 KB)
ðŸ“
__pycache__
📄
big5freq.py
(30.54 KB)
📄
big5prober.py
(1.72 KB)
📄
chardistribution.py
(9.8 KB)
📄
charsetgroupprober.py
(3.82 KB)
📄
charsetprober.py
(5.29 KB)
ðŸ“
cli
📄
codingstatemachine.py
(3.64 KB)
📄
codingstatemachinedict.py
(542 B)
📄
cp949prober.py
(1.82 KB)
📄
enums.py
(1.64 KB)
📄
escprober.py
(3.91 KB)
📄
escsm.py
(11.89 KB)
📄
eucjpprober.py
(3.84 KB)
📄
euckrfreq.py
(13.25 KB)
📄
euckrprober.py
(1.71 KB)
📄
euctwfreq.py
(36.05 KB)
📄
euctwprober.py
(1.71 KB)
📄
gb2312freq.py
(20.25 KB)
📄
gb2312prober.py
(1.72 KB)
📄
hebrewprober.py
(14.2 KB)
📄
jisfreq.py
(25.19 KB)
📄
johabfreq.py
(41.5 KB)
📄
johabprober.py
(1.71 KB)
📄
jpcntx.py
(26.42 KB)
📄
langbulgarianmodel.py
(102.11 KB)
📄
langgreekmodel.py
(96.18 KB)
📄
langhebrewmodel.py
(95.89 KB)
📄
langhungarianmodel.py
(98.99 KB)
📄
langrussianmodel.py
(125.03 KB)
📄
langthaimodel.py
(100.37 KB)
📄
langturkishmodel.py
(93.14 KB)
📄
latin1prober.py
(5.25 KB)
📄
macromanprober.py
(5.93 KB)
📄
mbcharsetprober.py
(3.63 KB)
📄
mbcsgroupprober.py
(2.08 KB)
📄
mbcssm.py
(29.68 KB)
ðŸ“
metadata
📄
py.typed
(0 B)
📄
resultdict.py
(402 B)
📄
sbcharsetprober.py
(6.25 KB)
📄
sbcsgroupprober.py
(4.04 KB)
📄
sjisprober.py
(3.91 KB)
📄
universaldetector.py
(14.5 KB)
📄
utf1632prober.py
(8.31 KB)
📄
utf8prober.py
(2.75 KB)
📄
version.py
(244 B)
Editing: enums.py
""" All of the Enums that are used throughout the chardet package. :author: Dan Blanchard (dan.blanchard@gmail.com) """ from enum import Enum, Flag class InputState: """ This enum represents the different states a universal detector can be in. """ PURE_ASCII = 0 ESC_ASCII = 1 HIGH_BYTE = 2 class LanguageFilter(Flag): """ This enum represents the different language filters we can apply to a ``UniversalDetector``. """ NONE = 0x00 CHINESE_SIMPLIFIED = 0x01 CHINESE_TRADITIONAL = 0x02 JAPANESE = 0x04 KOREAN = 0x08 NON_CJK = 0x10 ALL = 0x1F CHINESE = CHINESE_SIMPLIFIED | CHINESE_TRADITIONAL CJK = CHINESE | JAPANESE | KOREAN class ProbingState(Enum): """ This enum represents the different states a prober can be in. """ DETECTING = 0 FOUND_IT = 1 NOT_ME = 2 class MachineState: """ This enum represents the different states a state machine can be in. """ START = 0 ERROR = 1 ITS_ME = 2 class SequenceLikelihood: """ This enum represents the likelihood of a character following the previous one. """ NEGATIVE = 0 UNLIKELY = 1 LIKELY = 2 POSITIVE = 3 @classmethod def get_num_categories(cls) -> int: """:returns: The number of likelihood categories in the enum.""" return 4 class CharacterCategory: """ This enum represents the different categories language models for ``SingleByteCharsetProber`` put characters into. Anything less than CONTROL is considered a letter. """ UNDEFINED = 255 LINE_BREAK = 254 SYMBOL = 253 DIGIT = 252 CONTROL = 251
Upload File
Create Folder