o
    x”·i¤  ć                   @   s$   d dl Z dd Zdd Zdd ZdS )é    Nc                 C   s.   |   d”}|d d dd |dd  D ” S )NŚ_r   Ś c                 s   s     | ]}|r
|  ” nd V  qdS )r   N)Śtitle)Ś.0Śx© r   śZ/home/ubuntu/.local/lib/python3.10/site-packages/wandb/vendor/gql-0.2.0/wandb_gql/utils.pyŚ	<genexpr>
   s    z to_camel_case.<locals>.<genexpr>é   )ŚsplitŚjoin)Ś	snake_strŚ
componentsr   r   r   Śto_camel_case   s   
$r   c                 C   s    t  dd| ”}t  dd|” ” S )Nz(.)([A-Z][a-z]+)z\1_\2z([a-z0-9])([A-Z]))ŚreŚsubŚlower)ŚnameŚs1r   r   r   Śto_snake_case   s   r   c                 C   s   t  dd| ” ” S )Nz[\W|^]+r   )r   r   Śupper)Śstringr   r   r   Śto_const   s   r   )r   r   r   r   r   r   r   r   Ś<module>   s    	