+
    QV-j¨  ã                   ó¦   a € R t0 t R t^ RIt^ RIt^ RIHt ^RIHt ];'       g    Rs	] ^ k R R lt
R R ltR	 R
 lt ! R R]4      t]t]
tR tR# )aº  Utility helpers to handle progress bars in `datasets`.

Example:
    1. Use `datasets.utils.tqdm` as you would use `tqdm.tqdm` or `tqdm.auto.tqdm`.
    2. To disable progress bars, either use `disable_progress_bars()` helper or set the
       environment variable `HF_DATASETS_DISABLE_PROGRESS_BARS` to 1.
    3. To re-enable progress bars, use `enable_progress_bars()`.
    4. To check whether progress bars are disabled, use `are_progress_bars_disabled()`.

NOTE: Environment variable `HF_DATASETS_DISABLE_PROGRESS_BARS` has the priority.

Example:
    ```py
    from datasets.utils import (
        are_progress_bars_disabled,
        disable_progress_bars,
        enable_progress_bars,
        tqdm,
    )

    # Disable progress bars globally
    disable_progress_bars()

    # Use as normal `tqdm`
    for _ in tqdm(range(5)):
       do_something()

    # Still not showing progress bars, as `disable=False` is overwritten to `True`.
    for _ in tqdm(range(5), disable=False):
       do_something()

    are_progress_bars_disabled() # True

    # Re-enable progress bars globally
    enable_progress_bars()

    # Progress bar will be shown !
    for _ in tqdm(range(5)):
       do_something()
    ```
N)Útqdm)Ú!HF_DATASETS_DISABLE_PROGRESS_BARSFc                ó   € V ^8„  d   QhRR/# ©é   ÚreturnN© )Úformats   "Úd/Volumes/fast/ai/experiments/ui-tars-smoke/.venv/lib/python3.14/site-packages/datasets/utils/tqdm.pyÚ__annotate__r   =   s   € ÷ /ñ /˜tñ /ó    c                 óN   € \         RJ d   \        P                  ! R4       R# RsR# )z¼
Disable globally progress bars used in `datasets` except if `HF_DATASETS_DISABLE_PROGRESS_BARS` environment
variable has been set.

Use [`~utils.enable_progress_bars`] to re-enable them.
FzqCannot disable progress bars: environment variable `HF_DATASETS_DISABLE_PROGRESS_BARS=0` is set and has priority.NT©r   ÚwarningsÚwarnÚ#_hf_datasets_progress_bars_disabledr   r   r
   Údisable_progress_barsr   =   s(   € ô )¨EÓ1Ü�Šðô	
ñ 	à*.Ò'r   c                ó   € V ^8„  d   QhRR/# r   r   )r	   s   "r
   r   r   N   s   € ÷ 0ñ 0˜dñ 0r   c                 óN   € \         RJ d   \        P                  ! R4       R# RsR# )zº
Enable globally progress bars used in `datasets` except if `HF_DATASETS_DISABLE_PROGRESS_BARS` environment
variable has been set.

Use [`~utils.disable_progress_bars`] to disable them.
TzpCannot enable progress bars: environment variable `HF_DATASETS_DISABLE_PROGRESS_BARS=1` is set and has priority.NFr   r   r   r
   Úenable_progress_barsr   N   s(   € ô )¨DÓ0Ü�Šðô	
ñ 	à*/Ò'r   c                ó$   € V ^8„  d   QhR\         /# )r   r   )Úbool)r	   s   "r
   r   r   _   s   € ÷ /ñ /¤Dñ /r   c                 ó   € \         # )a  Return whether progress bars are globally disabled or not.

Progress bars used in `datasets` can be enable or disabled globally using [`~utils.enable_progress_bars`]
and [`~utils.disable_progress_bars`] or by setting `HF_DATASETS_DISABLE_PROGRESS_BARS` as environment variable.
)r   r   r   r
   Úare_progress_bars_disabledr   _   s
   € ô /Ð.r   c                   óN   a a€ ] tR t^it oRtV 3R ltV3R lV 3R lltRtVtV ;t	# )r   zŸ
Class to override `disable` argument in case progress bars are globally disabled.

Taken from https://github.com/tqdm/tqdm/issues/619#issuecomment-619639324.
c                óº   <€ \        4       '       d   R VR&   M3VP                  R4      f!   \        P                  ! R4      R8X  d   RVR&   \        SV `  ! V/ VB  R# )TÚdisableNÚTQDM_POSITIONz-1F)r   ÚgetÚosÚgetenvÚsuperÚ__init__)ÚselfÚargsÚkwargsÚ	__class__s   &*,€r
   r"   Útqdm.__init__p   sQ   ø€ Ü%×'Ò'Ø $ˆF�9ÒØ�Z‰Z˜	Ó"Ò*¬r¯yªy¸Ó/IÈTÔ/Qà %ˆF�9ÑÜ‰Ò˜$Ð) &Ô)r   c                ó$   <€ V ^8„  d   QhRS[ RR/# )r   Úattrr   N)Ústr)r	   Ú__classdict__s   "€r
   r   Útqdm.__annotate__x   s   ø€ ÷ ñ ¡ð ¨ñ r   c                ó\   <€  \         SV `  V4       R#   \         d    TR8w  d   h  R# i ; i)z;Fix for https://github.com/huggingface/datasets/issues/6066Ú_lockN)r!   Ú__delattr__ÚAttributeError)r#   r)   r&   s   &&€r
   r/   Útqdm.__delattr__x   s3   ø€ ð	Ü‰GÑ Ö%øÜô 	Ø�wŒØò ð	ús   ƒ ”+ª+r   )
Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r"   r/   Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r&   r+   s   @@r
   r   r   i   s   ù‡ € ñõ*÷÷ ó r   r   c                  ó    € \        4       '       * # )N)r   r   r   r
   Úis_progress_bar_enabledr;   †   s   € Ü)Ó+Ô+Ð+r   c                ó@   € V ^8„  d   Qh/ ^ \         9   d
   \        ;R&   # )r   r   )Ú__conditional_annotations__r   )r	   s   "r
   r   r      s!   € ÷ (ñ (÷r WÒ V¤TÑ Vòs(r   )r=   r6   r   r   Ú	tqdm.autor   Úold_tqdmÚconfigr   r   r   r   r   Úenable_progress_barÚdisable_progress_barr;   r   )r=   s   @r
   Ú<module>rC      s]   øðö(óT 
Û å &å 6ð -N×,VÐ,VÐQVÐ #Ó Võ/õ"0õ"/ôˆ8ô ð2 +Ð Ø,Ð ô,r   