Ë
    ¦ÙbiÔ  ã                   óf   — d dl Z d dlmZmZ d dlmZ d dlmZmZm	Z	 ddl
mZ e G d„ d«      «       Zy)	é    N)Ú	dataclassÚfield)ÚPath)ÚAnyÚOptionalÚUnioné   )Úconfigc                   ój  ‡ — e Zd ZU dZdZeeeef      e	d<   dZ
ee	d<   dZee	d<   dZee	d<   dZee   e	d<   dZee   e	d	<   dZee	d
<   dZee	d<   dZee	d<   dZee	d<   dZee	d<   dZee   e	d<   dZee	d<   dZeeeef      e	d<    ee¬«      Zeeef   e	d<   dZee   e	d<   dZee	d<   dd„Zˆ fd„Z ˆ xZ!S )ÚDownloadConfiga\	  Configuration for our cached path manager.

    Attributes:
        cache_dir (`str` or `Path`, *optional*):
            Specify a cache directory to save the file to (overwrite the
            default cache dir).
        force_download (`bool`, defaults to `False`):
            If `True`, re-download the file even if it's already cached in
            the cache dir.
        resume_download (`bool`, defaults to `False`):
            If `True`, resume the download if an incompletely received file is
            found.
        proxies (`dict`, *optional*):
        user_agent (`str`, *optional*):
            Optional string or dict that will be appended to the user-agent on remote
            requests.
        extract_compressed_file (`bool`, defaults to `False`):
            If `True` and the path point to a zip or tar file,
            extract the compressed file in a folder along the archive.
        force_extract (`bool`, defaults to `False`):
            If `True` when `extract_compressed_file` is `True` and the archive
            was already extracted, re-extract the archive and override the folder where it was extracted.
        delete_extracted (`bool`, defaults to `False`):
            Whether to delete (or keep) the extracted files.
        extract_on_the_fly (`bool`, defaults to `False`):
            If `True`, extract compressed files while they are being read.
        use_etag (`bool`, defaults to `True`):
            Whether to use the ETag HTTP response header to validate the cached files.
        num_proc (`int`, *optional*):
            The number of processes to launch to download the files in parallel.
        max_retries (`int`, default to `1`):
            The number of times to retry an HTTP request if it fails.
        token (`str` or `bool`, *optional*):
            Optional string or boolean to use as Bearer token
            for remote files on the Datasets Hub. If `True`, or not specified, will get token from `~/.huggingface`.
        storage_options (`dict`, *optional*):
            Key/value pairs to be passed on to the dataset file-system backend, if any.
        download_desc (`str`, *optional*):
            A description to be displayed alongside with the progress bar while downloading the files.
        disable_tqdm (`bool`, defaults to `False`):
            Whether to disable the individual files download progress bar
    NÚ	cache_dirFÚforce_downloadÚresume_downloadÚlocal_files_onlyÚproxiesÚ
user_agentÚextract_compressed_fileÚforce_extractÚdelete_extractedÚextract_on_the_flyTÚuse_etagÚnum_procé   Úmax_retriesÚtoken)Údefault_factoryÚstorage_optionsÚdownload_descÚdisable_tqdmc                 ó°   —  | j                   di | j                  j                  «       D ci c]  \  }}|t        j                  |«      “Œ c}}¤ŽS c c}}w )N© )Ú	__class__Ú__dict__ÚitemsÚcopyÚdeepcopy)ÚselfÚkÚvs      ú\/home/cdr/jupyterlab/.venv/lib/python3.12/site-packages/datasets/download/download_config.pyr%   zDownloadConfig.copyH   sC   € Øˆt~‰~ÑXÀÇÁ×ATÑATÓAV× W¹¸¸A ¤D§M¡M°!Ó$4Ñ!4Ó WÑXÐXùÓ Ws   ¬ Ac                 ó   •— |dk(  rht        | dd «      [d| j                  vr!|t        j                  dœ| j                  d<   n,t        | j                  d   dd «      €|| j                  d   d<   t        ‰|   ||«       y )Nr   r   Úhf)r   Úendpoint)Úgetattrr   r
   ÚHF_ENDPOINTÚsuperÚ__setattr__)r'   ÚnameÚvaluer"   s      €r*   r1   zDownloadConfig.__setattr__K   s€   ø€ Ø7Š?œw tÐ->ÀÓEÐQØ˜4×/Ñ/Ñ/Ø7<Ì&×J\ÑJ\Ñ-]×$Ñ$ TÒ*Ü˜×-Ñ-¨dÑ3°W¸dÓCÐKØ6;×$Ñ$ TÑ*¨7Ñ3Ü‰Ñ˜D %Õ(ó    )Úreturnr   )"Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   Ústrr   Ú__annotations__r   Úboolr   r   r   Údictr   r   r   r   r   r   r   Úintr   r   r   r   r   r   r   r%   r1   Ú__classcell__)r"   s   @r*   r   r   	   s  ø… ñ)ðV -1€Iˆx˜˜c 4˜iÑ(Ñ)Ó0Ø €NDÓ Ø!€OTÓ!Ø"ÐdÓ"Ø"€GˆXd‰^Ó"Ø $€J˜‘Ó$Ø$)Ð˜TÓ)Ø€M4ÓØ"ÐdÓ"Ø$Ð˜Ó$Ø€HˆdÓØ"€Hˆhs‰mÓ"Ø€KÓØ(,€Eˆ8E˜#˜t˜)Ñ$Ñ%Ó,Ù&+¸DÔ&A€OT˜#˜s˜(‘^ÓAØ#'€M8˜C‘=Ó'Ø€L$ÓóY÷)ð )r4   r   )r%   Údataclassesr   r   Úpathlibr   Útypingr   r   r   Ú r
   r   r!   r4   r*   ú<module>rD      s3   ðÛ ß (Ý ß 'Ñ 'å ð ÷G)ð G)ó ñG)r4   