§
    |ØjB	  ã                   ó@   — d Z ddlmZ ddlmZmZ dZdededz  fd„ZdS )	zæStage 1c: Pure ASCII detection (with null-separator tolerance).

Note: ``from __future__ import annotations`` is intentionally omitted because
this module is compiled with mypyc, which does not support PEP 563 string
annotations.
é    )Úcount_deleted)ÚASCII_TEXT_BYTESÚDetectionResultgš™™™™™©?ÚdataÚreturnNc                 óL  — | sdS |                       ¦   «         sdS t          | ¦  «        t          | t          ¦  «        z
  }|dk    rt	          ddd¬¦  «        S |                      d¦  «        }||k    rdS |t          | ¦  «        z  }|t          k    rt	          ddd¬¦  «        S dS )al  Return an ASCII result if all bytes are printable ASCII plus common whitespace.

    Tolerates sparse null bytes (``\x00``) up to ``_MAX_NULL_FRACTION`` of
    the data, returning confidence 0.99 instead of 1.0 to distinguish from
    pure ASCII.

    :param data: The raw byte data to examine.
    :returns: A :class:`DetectionResult` for ASCII, or ``None``.
    Nr   Úasciig      ð?)ÚencodingÚ
confidenceÚlanguageg®Gáz®ï?)ÚisasciiÚlenr   r   r   ÚcountÚ_MAX_NULL_FRACTION)r   Ú
disallowedÚ
null_countÚnull_fractions       ú‹/Users/tedpeters/Documents/Projects/Claude Projects/Misc Tools/notename-sheets/.venv/lib/python3.11/site-packages/chardet/pipeline/ascii.pyÚdetect_asciir      s¸   € ð ð Øˆtð �<Š<‰>Œ>ð Øˆtõ �T‘”�]¨4Õ1AÑBÔBÑB€JØ�Q‚€Ý¨¸CÈ$ÐOÑOÔOÐOØ—’˜A‘”€Jà�ZÒÐØˆtà¥ T¡¤Ñ*€MØÕ*Ò*Ð*Ý¨¸DÈ4ÐPÑPÔPÐPØˆ4ó    )	Ú__doc__Úchardet._utilsr   Úchardet.pipeliner   r   r   Úbytesr   © r   r   ú<module>r      st   ððð ð )Ð (Ð (Ð (Ð (Ð (Ø >Ð >Ð >Ð >Ð >Ð >Ð >Ð >ð Ð ð!�uð ! °4Ñ!7ð !ð !ð !ð !ð !ð !r   