§
    Ò¬¸j[  ã                  óT   — 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	dS )é    )ÚannotationsN)Úsettings)ÚParametricProfileNamesÚfastF)Úset_environmentÚprofileúParametricProfileNames | intr   ÚboolÚreturnÚNonec               ó¶  — dddœ}t          | ¦  «        }dD ]\  }}t          j        d
d|› �|dœ|¤Ž Œ|                     ¦   «         st	          j        d|¦  «        r<t          |                     dd	¦  «        ¦  «        }d|› �}t          j        d
||dœ|¤Ž d|                     dd	¦  «        › �}t          j        |¦  «         |rt          |¦  «         dS dS )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))r   é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)r   r   Úcommon_settingsÚprofile_namer   Ú
iterationsÚn_iterationss          úr/root/private/project/pallet_detection_v2/.venv/lib/python3.11/site-packages/polars/testing/parametric/profiles.pyr   r      sK  € ð6 &*°tÐ<Ð<€OÝ�w‘<”<€Lðð 	
ð 	
Ñˆˆjõ
 	Ô!ð 	
Ø!˜4Ð!Ð!Ø#ð	
ð 	
ð ð	
ð 	
ð 	
ð 	
ð ×ÒÑÔð 
¥¤Ð*DÀlÑ!SÔ!Sð 
Ý˜<×/Ò/Ð0@À"ÑEÔEÑFÔFˆØ6¨Ð6Ð6ˆÝÔ!ð 	
ØØ%ð	
ð 	
ð ð	
ð 	
ð 	
ð C˜\×1Ò1°)¸RÑ@Ô@ÐBÐB€LÝÔ˜,Ñ'Ô'Ð'àð "Ý�LÑ!Ô!Ð!Ð!Ð!ð"ð "ó    c                ó`  — t          | ¦  «                             d¦  «        d         }|                     dd¦  «                             ¦   «         rt          t	          |¦  «        ¦  «        }n1ddlm}  |t          ¦  «        }||vrd|›d|›�}t          |¦  «        ‚|t          j
        d	<   d
S )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˜|Ñ,Ô,Ñ-Ô-ˆˆð 	$Ð#Ð#Ð#Ð#Ð#à&˜hÕ'=Ñ>Ô>ÐØÐ2Ð2Ð2Øc¨,ÐcÐcÐL_ÐcÐcˆCÝ˜S‘/”/Ð!à.:…B„JÐ*Ñ+Ð+Ð+r%   )r   )r   r	   r   r
   r   r   )r   r	   r   r   )
Ú
__future__r   r/   r   Ú
hypothesisr   Úpolars._typingr   r   r   r   r%   r$   ú<module>r6      s—   ðØ "Ð "Ð "Ð "Ð "Ð "à 	€	€	€	Ø 	€	€	€	à Ð Ð Ð Ð Ð à 1Ð 1Ð 1Ð 1Ð 1Ð 1ð -3ð<"ØOTð<"ð <"ð <"ð <"ð <"ð <"ð~!;ð !;ð !;ð !;ð !;ð !;r%   