o
�J�h\� � @ s� d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl
Z
ddlZddlZddl
Z
ddlZddlZddlmZ ddlmZmZmZ ddlmZmZmZmZmZ ddlmZmZmZ dZ d d
� Z!G dd� de"�Z#d
eiZ$dd� Z%d$dd�Z&dd� Z'e�(� Z)G dd� de�Z*G dd� de+�Z,G dd� de+�Z-G dd� de-�Z.G dd� de�Z/G dd� de/�Z0G d d!� d!e�Z1 d%d"d#�Z2dS )&zo
A context object for caching a function's return value each time it
is called with the same input arguments.
� N� )�hashing)�CacheWarning�FileSystemStoreBackend�StoreBackendBase)�filter_args�format_call�format_signature�
get_func_code�
get_func_name)�Logger�format_time�pformatz
# first line:c C sR | � t�r#| �d�} t| d tt�d� �}d�| dd� �} | |fS d}| |fS )zUExtract the first line information from the function code
text if available.
�
r Nr �����)�
startswith�FIRST_LINE_TEXT�split�int�len�join)� func_code�
first_line� r �KC:\pinokio\api\whisper-webui.git\app\env\lib\site-packages\joblib\memory.py�extract_first_line9 s
�r c @ s e Zd ZdZdS )�JobLibCollisionWarningz@Warn that there might be a collision between names of functions.N)�__name__�
__module__�__qualname__�__doc__r r r r r F s r �localc C sD t | t�std�| ���|du st|t�std�|���|t| <