HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.60.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 5 05:00:59 EST 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //lib/python3.9/site-packages/tuned/profiles/functions/__pycache__/repository.cpython-39.opt-1.pyc
a

,�g��@sVddlmZddlmZddlmZddlZddlm	Z	ej
��ZGdd�de�Z
dS)�)�ClassLoader)�Parser)�FunctionNcsTeZdZdZ�fdd�Zedd��Zdd�Zdd	�Zd
d�Z	dd
�Z
dd�Z�ZS)�
Repositoryzk
	Repository of functions used within TuneD profiles.
	The functions are loaded lazily (when first used).
	cstt|���i|_dS�N)�superr�__init__�
_functions��self��	__class__��G/usr/lib/python3.9/site-packages/tuned/profiles/functions/repository.pyrszRepository.__init__cCs|jSr)r	r
rrr�	functionsszRepository.functionscCsd|_tj|_t|_dS)Nztuned.profiles.functions)Z
_namespace�constsZFUNCTION_PREFIX�_prefixrZ
_interfacer
rrr�_set_loader_parameterssz!Repository._set_loader_parameterscCs,t�d|�|�|�}|�}||j|<|S)Nzcreating function %s)�log�debugZ
load_classr	)r�
function_nameZfunction_clsZfunction_instancerrr�creates


zRepository.createcCs||jvr|�|�S|j|Sr)r	r)rrrrr�	load_func%s

zRepository.load_funccCs:t�d|�t|j���D]\}}||kr|j|=qdS)Nzremoving function %s)rr�listr	�items)r�function�k�vrrr�delete*szRepository.deletecCst|��|�Sr)r�expand)r�srrrr1szRepository.expand)
�__name__�
__module__�__qualname__�__doc__r�propertyrrrrrr�
__classcell__rrrrr	s
	r)Ztuned.utils.class_loaderrZtuned.profiles.functions.parserrZtuned.profiles.functions.baserZ
tuned.logsZtunedZtuned.constsrZlogs�getrrrrrr�<module>s