
    i)                    l    d Z ddlmZ ddlmZ dZ e ed             e edd            z   Zefd
dZ	y	)z"Stage 0: Binary content detection.    )annotations)DEFAULT_MAX_BYTESg{Gz?	          c                    | d| } | sy| j                  dt              }t        |       t        |      z
  }|t        |       z  t        kD  S )zReturn ``True`` if *data* appears to be binary (not text) content.

    :param data: The raw byte data to examine.
    :param max_bytes: Maximum number of bytes to scan.
    :returns: ``True`` if the data is classified as binary.
    NF)	translate_BINARY_DELETElen_BINARY_THRESHOLD)data	max_bytescleanbinary_counts       g/Users/bowang/.openclaw/workspace/ChatDev/.venv/lib/python3.12/site-packages/chardet/pipeline/binary.py	is_binaryr      sM     
DNN40Et9s5z)L#d)#&777    N)r   bytesr   intreturnbool)
__doc__
__future__r   chardet._utilsr   r   r   ranger
   r    r   r   <module>r      sA    ( " ,   uT{#eE$,=&>> -> 8r   