Ë
    	êñi[  ã                  ó\   — d dl mZ d dlZd dlZd dlmZ d dlmZ 	 d	ddœ	 	 	 	 	 d
d„Zdd„Z	y)é    )ÚannotationsN)Úsettings)ÚParametricProfileNamesF)Úset_environmentc               óš  — dddœ}t        | «      }dD ]   \  }}t        j                  d
d|› �|dœ|¤Ž Œ" |j                  «       st	        j
                  d|«      r8t        |j                  dd	«      «      }d|› �}t        j                  d
||dœ|¤Ž d|j                  dd	«      › �}t        j                  |«       |rt        |«       yy)ae  
    Load a named (or custom) hypothesis profile for use with the parametric tests.

    .. warning::
        This functionality is currently considered **unstable**. It may be
        changed at any point without it being considered a breaking change.

    Parameters
    ----------
    profile : {str, int}, optional
        Name of the profile to load; one of "fast", "balanced", "expensive", or
        the integer number of iterations to run (which will create and register
        a custom profile with that value).

    set_environment : bool, default False
        If True, also set the environment variable `POLARS_HYPOTHESIS_PROFILE`
        to the given profile name/value.

    Examples
    --------
    >>> # load a custom profile that will run with 1500 iterations
    >>> from polars.testing.parametric import load_profile
    >>> load_profile(1500)
    TN)Ú
print_blobÚdeadline))Úfastéd   )Úbalancediè  )Ú	expensivei'  zpolars.)ÚnameÚmax_exampleszpolars\.custom\.[\d_]+$zpolars.custom.Ú © )
Ústrr   Úregister_profileÚisdigitÚreÚmatchÚintÚreplaceÚload_profileÚset_profile)Úprofiler   Úcommon_settingsÚprofile_namer   Ú
iterationsÚn_iterationss          úd/var/www/pod-logistic/pod-ai/venv/lib/python3.12/site-packages/polars/testing/parametric/profiles.pyr   r      sö   € ð6 &*°tÑ<€OÜ�w“<€Lðò 	
Ñˆˆjô
 	×!Ñ!ð 	
Ø˜4˜&Ð!Ø#ñ	
ð ó	
ð	
ð ×ÑÔ¤§¡Ð*DÀlÔ!SÜ˜<×/Ñ/Ð0@À"ÓEÓFˆØ'¨ ~Ð6ˆÜ×!Ñ!ð 	
ØØ%ñ	
ð ò	
ð ˜\×1Ñ1°)¸RÓ@ÐAÐB€LÜ×Ñ˜,Ô'áÜ�LÕ!ð ó    c                ó   — t        | «      j                  d«      d   }|j                  dd«      j                  «       rt        t	        |«      «      }n)ddlm}  |t        «      }||vrd|›d|›�}t        |«      ‚|t        j                  d	<   y
)aÆ  
    Set the env var `POLARS_HYPOTHESIS_PROFILE` to the given profile name/value.

    .. warning::
        This functionality is currently considered **unstable**. It may be
        changed at any point without it being considered a breaking change.

    Parameters
    ----------
    profile : {str, int}, optional
        Name of the profile to load; one of "fast", "balanced", "expensive", or
        the integer number of iterations to run (which will create and register
        a custom profile with that value).

    Examples
    --------
    >>> # prefer the 'balanced' profile for running parametric tests
    >>> from polars.testing.parametric import set_profile
    >>> set_profile("balanced")
    ú.éÿÿÿÿÚ_r   r   )Úget_argszinvalid profile name z; expected one of ÚPOLARS_HYPOTHESIS_PROFILEN)r   Úsplitr   r   r   Útypingr&   r   Ú
ValueErrorÚosÚenviron)r   r   r&   Úvalid_profile_namesÚmsgs        r    r   r   J   sŽ   € ô* �w“<×%Ñ% cÓ*¨2Ñ.€LØ×Ñ˜C Ó$×,Ñ,Ô.Üœ3˜|Ó,Ó-‰õ 	$á&Ô'=Ó>ÐØÐ2Ñ2Ø)¨,Ð)9Ð9KÐL_ÐKbÐcˆCÜ˜S“/Ð!à.:„B‡J�JÐ*Ò+r!   )r
   )r   úParametricProfileNames | intr   ÚboolÚreturnÚNone)r   r/   r1   r2   )
Ú
__future__r   r+   r   Ú
hypothesisr   Úpolars._typingr   r   r   r   r!   r    ú<module>r6      sD   ðÝ "ã 	Û 	å å 1ð -3ð<"ØOTñ<"Ø)ð<"ØHLð<"à	ó<"ô~!;r!   