관리-도구
편집 파일: md.cpython-311.pyc
� Q�DgG � �� � d dl mZ d dlmZmZ ddlmZmZ ddlm Z m Z mZmZm Z mZmZmZmZmZmZmZmZmZmZ G d� d� � Z G d� d e� � Z G d � de� � Z G d� d e� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z dee! dee! de"fd�Z# ed�� � d%d e!d!e$d"e"de$fd#�� � Z%d$S )&� )� lru_cache)�List�Optional� )�COMMON_SAFE_ASCII_CHARACTERS�UNICODE_SECONDARY_RANGE_KEYWORD)�is_accentuated�is_ascii�is_case_variable�is_cjk�is_emoticon� is_hangul�is_hiragana�is_katakana�is_latin�is_punctuation�is_separator� is_symbol�is_thai� remove_accent� unicode_rangec �V � e Zd ZdZdedefd�Zdeddfd�Zd d�Ze de fd�� � ZdS ) �MessDetectorPluginzy Base abstract class used for mess detection plugins. All detectors MUST extend and implement given methods. � character�returnc � � t �)z@ Determine if given character should be fed in. ��NotImplementedError��selfr s �u/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/charset_normalizer/md.py�eligiblezMessDetectorPlugin.eligible � � � "�!� Nc � � t �)z� The main routine to be executed upon character. Insert the logic in witch the text would be considered chaotic. r r s r! �feedzMessDetectorPlugin.feed$ s � � "�!r$ c � � t �)zB Permit to reset the plugin to the initial state. r �r s r! �resetzMessDetectorPlugin.reset+ r# r$ c � � t �)z� Compute the chaos ratio based on what your feed() has seen. Must NOT be lower than 0.; No restriction gt 0. r r( s r! �ratiozMessDetectorPlugin.ratio1 s � � "�!r$ �r N)�__name__� __module__�__qualname__�__doc__�str�boolr"