�
���g� � �� � d Z ddlZddlZddlZ ej d� � Z ej d� � Z ej d� � Z ej d� � ZdZ dZ
d � Zd
� Zd� Z
d� Zdd
�Zdd�ZdS )zUtilities for file names.� Nz([A-Z]+)([A-Z][a-z])z([a-z\d])([A-Z])z(?<!_)_(?!_)z(_{2,})z
^\w+(\.\w+)*$z<>:/\|?*c � � t � d| � � } t � d| � � } | � � � S )z(Convert camel-case string to snake-case.z\1_\2)�_uppercase_uppercase_re�sub�_lowercase_uppercase_re�lower��names �_/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/datasets/naming.py�camelcase_to_snakecaser "