
    ZPh                     t    d Z  G d d          Zd                                Zd                                ZdS )z,Utilities for docstring in imbalanced-learn.c                       e Zd ZdZd Zd ZdS )SubstitutionzDecorate a function's or a class' docstring to perform string
    substitution on it.

    This decorator should be robust even if obj.__doc__ is None
    (for example, if -OO was passed to the interpreter)
    c                 >    |r|rt          d          |p|| _        d S )Nz+Only positional or keyword args are allowed)AssertionErrorparams)selfargskwargss      Y/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/imblearn/utils/_docstring.py__init__zSubstitution.__init__   s1     	PF 	P !NOOOnf    c                 L    |j         r |j         j        di | j        |_         |S )N )__doc__formatr   )r   objs     r
   __call__zSubstitution.__call__   s/    ; 	<,#+,;;t{;;CK
r   N)__name__
__module____qualname__r   r   r   r   r   r
   r   r      s<         % % %    r   r   a  random_state : int, RandomState instance, default=None
        Control the randomization of the algorithm.

        - If int, ``random_state`` is the seed used by the random number
          generator;
        - If ``RandomState`` instance, random_state is the random number
          generator;
        - If ``None``, the random number generator is the ``RandomState``
          instance used by ``np.random``.
    aH  n_jobs : int, default=None
        Number of CPU cores used during the cross-validation loop.
        ``None`` means 1 unless in a :obj:`joblib.parallel_backend` context.
        ``-1`` means using all processors. See
        `Glossary <https://scikit-learn.org/stable/glossary.html#term-n-jobs>`_
        for more details.
    N)r   r   rstrip_random_state_docstring_n_jobs_docstringr   r   r
   <module>r      sc    2 2       (	 	  	   r   