Current File : //lib/python3/dist-packages/sos/cleaner/mappings/__pycache__/username_map.cpython-312.pyc
�

-�_g���&�ddlmZGd�de�Zy)�)�SoSMapc�"�eZdZdZdZdZdZd�Zy)�SoSUsernameMapaMapping to store usernames matched from ``lastlog`` output.

    Usernames are obfuscated as ``obfuscateduserX`` where ``X`` is a counter
    that gets incremented for every new username found.

    Note that this specifically obfuscates user_names_ and not UIDs.
    Trc���d|j��}|xjdz
c_||jj�vr|j|j	��S|S)z@Obfuscate a new username not currently found in the map
        �obfuscateduser�)�
name_count�dataset�values�
sanitize_item�lower)�self�item�ob_names   �C/usr/lib/python3/dist-packages/sos/cleaner/mappings/username_map.pyrzSoSUsernameMap.sanitize_itemsT��#�4�?�?�"3�4�����1����d�l�l�)�)�+�+��%�%�d�j�j�l�3�3���N)�__name__�
__module__�__qualname__�__doc__�ignore_short_items�match_full_words_onlyr	r�rrrrs����� ���J�rrN)�sos.cleaner.mappingsrrrrr�<module>rs��(��V�r