ó
    ¦ñ:ið  ã                   óH   • S r SSKJr  SSKJr  SSKr " S S5      rS rS rg)	az  global_random_seed fixture

The goal of this fixture is to prevent tests that use it to be sensitive
to a specific seed value while still being deterministic by default.

See the documentation for the SKLEARN_TESTS_GLOBAL_RANDOM_SEED
variable for insrtuctions on how to use this fixture.

https://scikit-learn.org/dev/computing/parallelism.html#sklearn-tests-global-random-seed
é    )Úenviron)ÚRandomNc                   ó   • \ rS rSrSS jrSrg)Ú
XDistHooksé   Nc                 óV   • UR                   R                  S5      nX!R                  S'   g )NÚrandom_seeds)ÚconfigÚ	getoptionÚworkerinput)ÚselfÚnoder	   s      Ú\/srv/projetos/modelo_ml_acdoc/venv/lib/python3.13/site-packages/sklearn/tests/random_seed.pyÚpytest_configure_nodeÚ XDistHooks.pytest_configure_node   s$   € Ø—{‘{×,Ñ,¨^Ó<ˆØ+7×Ñ˜Ò(ó    © )ÚreturnN)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r   Ú__static_attributes__r   r   r   r   r      s   † ÷8r   r   c                 ó  ^• U R                   R                  S5      (       a#  U R                   R                  [        5       5        [	        [        S5      5      n[        R                  " S5      n[        U S5      (       a   SU R                  ;   a  U R                  S   mO­Uc  S/mO¦US:X  a  [        5       R                  U5      /mO…US:X  a  UmO|S	U;   a>  UR                  S	5      u  p4[	        [        [        U5      [        U5      S
-   5      5      mO[        U5      /m[        T5      S:  d  [        T5      S:”  a  [!        SU 35      eTU R"                  l         " U4S jS5      nU R                   R                  U" 5       5        g )NÚxdistéd   Ú SKLEARN_TESTS_GLOBAL_RANDOM_SEEDr   r	   é*   ÚanyÚallÚ-é   r   éc   z�The value(s) of the environment variable SKLEARN_TESTS_GLOBAL_RANDOM_SEED must be in the range [0, 99] (or 'any' or 'all'), got: c                   óD   >• \ rS rSr\R
                  "  Y S9S 5       rSrg)Ú0pytest_configure.<locals>.GlobalRandomSeedPluginé9   )Úparamsc              3   ó(   #   • UR                   v •  g7f)a‘  Fixture to ask for a random yet controllable random seed.

All tests that use this fixture accept the contract that they should
deterministically pass for any seed value from 0 to 99 included.

See the documentation for the SKLEARN_TESTS_GLOBAL_RANDOM_SEED
variable for insrtuctions on how to use this fixture.

https://scikit-learn.org/dev/computing/parallelism.html#sklearn-tests-global-random-seed
N)Úparam)r   Úrequests     r   Úglobal_random_seedÚCpytest_configure.<locals>.GlobalRandomSeedPlugin.global_random_seed:   s   é € ð —-‘-Óùs   ‚r   N)r   r   r   r   ÚpytestÚfixturer+   r   )r	   s   €r   ÚGlobalRandomSeedPluginr%   9   s   ø† Ø	�Š™|Ñ	,ñ	 ó 
-ó	 r   r/   )ÚpluginmanagerÚ	haspluginÚregisterr   ÚlistÚranger   ÚgetÚhasattrr   r   ÚchoiceÚsplitÚintÚminÚmaxÚ
ValueErrorÚoptionr	   )r
   ÚRANDOM_SEED_RANGEÚrandom_seed_varÚstartÚstopr/   r	   s         @r   Úpytest_configurerB      sZ  ø€ Ø×Ñ×%Ñ% g×.Ñ.Ø×Ñ×%Ñ%¤j£lÔ3äœU 3›ZÓ(ÐÜ—k’kÐ"DÓE€OÜˆv�}×%Ñ%¨.¸F×<NÑ<NÓ*Nà×)Ñ)¨.Ñ9‰Ø	Ñ	 à�t‰Ø	˜EÓ	!ä›Ÿ™Ð(9Ó:Ð;‰Ø	˜EÓ	!Ø(‰à�/Ó!Ø)×/Ñ/°Ó4‰KˆEÜ¤¤c¨%£j´#°d³)¸a±-Ó @ÓA‰Lä Ó0Ð1ˆLäˆ|Ó˜qÓ ¤C¨Ó$5¸Ó$:Üð-à-<Ð,=ð?óð ð
 ".€F‡M�MÔ÷ ô  ð ×Ñ×!Ñ!Ñ"8Ó":Õ;r   c                 ó|   • [         R                  " S5      nUS:X  a   SSU R                  R                  S    S3S/$ g )Nr   r   zCTo reproduce this test run, set the following environment variable:z&    SKLEARN_TESTS_GLOBAL_RANDOM_SEED="r   Ú"z]See: https://scikit-learn.org/dev/computing/parallelism.html#sklearn-tests-global-random-seed)r   r5   r=   r	   )r
   r?   s     r   Úpytest_report_headerrE   K   sN   € Ü—k’kÐ"DÓE€OØ˜%ÓàQØ4°V·]±]×5OÑ5OÐPQÑ5RÐ4SÐSTÐUð4ð	
ð 	
ð  r   )	Ú__doc__Úosr   Úrandomr   r-   r   rB   rE   r   r   r   Ú<module>rI      s*   ðñ	õ Ý ã ÷8ñ 8ò/<ód

r   