403Webshell
Server IP : 65.108.144.40  /  Your IP : 216.73.217.165
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64
User : dev ( 1000)
PHP Version : 8.2.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/local/lib/python3.10/dist-packages/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/local/lib/python3.10/dist-packages/__pycache__/inflection.cpython-310.pyc
o

Teg�,�@s~dZddlZddlZdZgd�Zgd�Zhd�Zdeded	dfd
d�Zd;d
ede	d	efdd�Z
ded	efdd�Zded	efdd�Zde
d	efdd�Zde
d	efdd�Zd<d
eded	efdd�Zded	efdd �Zded	efd!d"�Zded	efd#d$�Zded	efd%d&�Zd
ed	efd'd(�Zded	efd)d*�Zed+d,�ed-d.�ed/d0�ed1d2�ed3d4�ed5d6�ed7d8�ed9d:�dS)=z�
    inflection
    ~~~~~~~~~~~~

    A port of Ruby on Rails' inflector to Python.

    :copyright: (c) 2012-2020 by Janne Vanhala

    :license: MIT, see LICENSE for more details.
�Nz0.5.0))z(?i)(quiz)$z\1zes)z(?i)^(oxen)$�\1)z
(?i)^(ox)$z\1en)�
(?i)(m|l)ice$�\1ice)z(?i)(m|l)ouse$r)z(?i)(passer)s?by$z\1sby)z(?i)(matr|vert|ind)(?:ix|ex)$z\1ices)z(?i)(x|ch|ss|sh)$�\1es)z(?i)([^aeiouy]|qu)y$z\1ies)z(?i)(hive)$z\1s)z(?i)([lr])f$�\1ves)z
(?i)([^f])fe$r)z(?i)sis$�ses)�(?i)([ti])a$�\1a)z
(?i)([ti])um$r	)z(?i)(buffal|potat|tomat)o$z\1oes)z
(?i)(bu)s$z\1ses)z(?i)(alias|status)$r)z(?i)(octop|vir)i$�\1i)z(?i)(octop|vir)us$r
)z(?i)^(ax|test)is$r)�(?i)s$�s)�$r)!)z(?i)(database)s$r)z(?i)(quiz)zes$r)z(?i)(matr)ices$z\1ix)z(?i)(vert|ind)ices$z\1ex)z(?i)(passer)sby$z\1by)z(?i)^(ox)enr)z(?i)(alias|status)(es)?$r)z(?i)(octop|vir)(us|i)$z\1us)z(?i)^(a)x[ie]s$z\1xis)z(?i)(cris|test)(is|es)$z\1is)z(?i)(shoe)s$r)z
(?i)(o)es$r)z(?i)(bus)(es)?$r)rz\1ouse)z(?i)(x|ch|ss|sh)es$r)z
(?i)(m)ovies$z\1ovie)z
(?i)(s)eries$z\1eries)z(?i)([^aeiouy]|qu)ies$z\1y)z(?i)([lr])ves$z\1f)z(?i)(tive)s$r)z(?i)(hive)s$r)z(?i)([^f])ves$z\1fe)z(?i)(t)he(sis|ses)$z\1hesis)z(?i)(s)ynop(sis|ses)$z	\1ynopsis)z(?i)(p)rogno(sis|ses)$z
\1rognosis)z(?i)(p)arenthe(sis|ses)$z\1arenthesis)z(?i)(d)iagno(sis|ses)$z
\1iagnosis)z(?i)(b)a(sis|ses)$z\1asis)z(?i)(a)naly(sis|ses)$z	\1nalysis)rz\1um)z(?i)(n)ews$z\1ews)z	(?i)(ss)$r)r�>	�fish�rice�jeans�money�sheep�series�species�	equipment�information�singular�plural�returnc
CsBdtdtfdd�}|d��|d��kr_t�dd�|d|dd��d	|dd�f�t�dd�|d|dd��d	|dd�f�t�dd�|d|dd��d	|dd�f�dSt�dd
�|d��||dd���|d��|dd�f�t�dd
�|d��||dd���|d��|dd�f�t�dd
�|d��||dd���|d��|dd�f�t�dd
�|d��||dd���|d��|dd�f�t�dd
�|d��||dd���|d��|dd�f�t�dd
�|d��||dd���|d��|dd�f�dS)z�
    A convenience function to add appropriate rules to plurals and singular
    for irregular words.

    :param singular: irregular word in singular form
    :param plural: irregular word in plural form
    �stringrcSsd�dd�|D��S)Nrcss$�|]
}d||��dVqdS)�[�]N)�upper)�.0�char�r!�5/usr/local/lib/python3.10/dist-packages/inflection.py�	<genexpr>ds�"z6_irregular.<locals>.caseinsensitive.<locals>.<genexpr>)�join)rr!r!r"�caseinsensitivecsz#_irregular.<locals>.caseinsensitiverz(?i)({}){}$�Nrz{}{}$)�strr�PLURALS�insert�format�	SINGULARS�lower)rrr%r!r!r"�
_irregular[sT��
��������
�r-Tr�uppercase_first_lettercCs2|rt�ddd�|�S|d��t|�dd�S)aC
    Convert strings to CamelCase.

    Examples::

        >>> camelize("device_type")
        'DeviceType'
        >>> camelize("device_type", False)
        'deviceType'

    :func:`camelize` can be thought of as a inverse of :func:`underscore`,
    although there are some cases where that does not hold::

        >>> camelize(underscore("IOError"))
        'IoError'

    :param uppercase_first_letter: if set to `True` :func:`camelize` converts
        strings to UpperCamelCase. If set to `False` :func:`camelize` produces
        lowerCamelCase. Defaults to `True`.
    z
(?:^|_)(.)cS�|�d���S�Nr&��groupr��mr!r!r"�<lambda>��zcamelize.<locals>.<lambda>rr&N)�re�subr,�camelize)rr.r!r!r"r9�sr9�wordcCs|�dd�S)z{Replace underscores with dashes in the string.

    Example::

        >>> dasherize("puni_puni")
        'puni-puni'

    �_�-)�replace�r:r!r!r"�	dasherize�s	r?cCsBt�dd|�}|�dd�}t�ddd�|�}t�dd	d�|�}|S)
a<
    Capitalize the first word and turn underscores into spaces and strip a
    trailing ``"_id"``, if any. Like :func:`titleize`, this is meant for
    creating pretty output.

    Examples::

        >>> humanize("employee_salary")
        'Employee salary'
        >>> humanize("author_id")
        'Author'

    z_id$rr;� z(?i)([a-z\d]*)cSr/r0)r2r,r3r!r!r"r5�r6zhumanize.<locals>.<lambda>z^\wcSr/)Nrr1r3r!r!r"r5�r6)r7r8r=r>r!r!r"�humanize�s
rA�numbercCs4tt|��}|ddvrdSdddd��|dd�S)	a�
    Return the suffix that should be added to a number to denote the position
    in an ordered sequence such as 1st, 2nd, 3rd, 4th.

    Examples::

        >>> ordinal(1)
        'st'
        >>> ordinal(2)
        'nd'
        >>> ordinal(1002)
        'nd'
        >>> ordinal(1003)
        'rd'
        >>> ordinal(-11)
        'th'
        >>> ordinal(-1021)
        'st'

    �d)���
�th�st�nd�rd)r&���
)�abs�int�get�rBr!r!r"�ordinal�s��rRcCsd�|t|��S)a�
    Turn a number into an ordinal string used to denote the position in an
    ordered sequence such as 1st, 2nd, 3rd, 4th.

    Examples::

        >>> ordinalize(1)
        '1st'
        >>> ordinalize(2)
        '2nd'
        >>> ordinalize(1002)
        '1002nd'
        >>> ordinalize(1003)
        '1003rd'
        >>> ordinalize(-11)
        '-11th'
        >>> ordinalize(-1021)
        '-1021st'

    z{}{})r*rRrQr!r!r"�
ordinalize�srSr<�	separatorcCsTt|�}t�d||�}|r&t�|�}t�d|||�}t�dj|d�d|�}|��S)z�
    Replace special characters in a string so that it may be used as part of a
    'pretty' URL.

    Example::

        >>> parameterize(u"Donald E. Knuth")
        'donald-e-knuth'

    z(?i)[^a-z0-9\-_]+z%s{2,}z(?i)^{sep}|{sep}$)�sepr)�
transliterater7r8�escaper*r,)rrT�re_sepr!r!r"�parameterizes
rYcCsD|r|��tvr
|StD]\}}t�||�rt�|||�Sq|S)a	
    Return the plural form of a word.

    Examples::

        >>> pluralize("posts")
        'posts'
        >>> pluralize("octopus")
        'octopi'
        >>> pluralize("sheep")
        'sheep'
        >>> pluralize("CamelOctopus")
        'CamelOctopi'

    )r,�UNCOUNTABLESr(r7�searchr8)r:�rule�replacementr!r!r"�	pluralizes�r^cCsRtD]}t�d||�r|SqtD]\}}t�||�r&t�|||�Sq|S)ac
    Return the singular form of a word, the reverse of :func:`pluralize`.

    Examples::

        >>> singularize("posts")
        'post'
        >>> singularize("octopi")
        'octopus'
        >>> singularize("sheep")
        'sheep'
        >>> singularize("word")
        'word'
        >>> singularize("CamelOctopi")
        'CamelOctopus'

    z(?i)\b(%s)\Z)rZr7r[r+r8)r:�
inflectionr\r]r!r!r"�singularize5s��r`cCstt|��S)as
    Create the name of a table like Rails does for models to table names. This
    method uses the :func:`pluralize` method on the last word in the string.

    Examples::

        >>> tableize('RawScaledScorer')
        'raw_scaled_scorers'
        >>> tableize('egg_and_ham')
        'egg_and_hams'
        >>> tableize('fancyCategory')
        'fancy_categories'
    )r^�
underscorer>r!r!r"�tableizeQsrbcCst�ddd�tt|�����S)a�
    Capitalize all the words and replace some characters in the string to
    create a nicer looking title. :func:`titleize` is meant for creating pretty
    output.

    Examples::

      >>> titleize("man from the boondocks")
      'Man From The Boondocks'
      >>> titleize("x-men: the last stand")
      'X Men: The Last Stand'
      >>> titleize("TheManWithoutAPast")
      'The Man Without A Past'
      >>> titleize("raiders_of_the_lost_ark")
      'Raiders Of The Lost Ark'

    z\b('?\w)cSr/r0)r2�
capitalize)�matchr!r!r"r5vr6ztitleize.<locals>.<lambda>)r7r8rAra�titler>r!r!r"�titleizebs
�rfcCst�d|�}|�dd��d�S)u5
    Replace non-ASCII characters with an ASCII approximation. If no
    approximation exists, the non-ASCII character is ignored. The string must
    be ``unicode``.

    Examples::

        >>> transliterate('älämölö')
        'alamolo'
        >>> transliterate('Ærøskøbing')
        'rskbing'

    �NFKD�ascii�ignore)�unicodedata�	normalize�encode�decode)r�
normalizedr!r!r"rV{srVcCs0t�dd|�}t�dd|�}|�dd�}|��S)aq
    Make an underscored, lowercase form from the expression in the string.

    Example::

        >>> underscore("DeviceType")
        'device_type'

    As a rule of thumb you can think of :func:`underscore` as the inverse of
    :func:`camelize`, though there are cases where that does not hold::

        >>> camelize(underscore("IOError"))
        'IoError'

    z([A-Z]+)([A-Z][a-z])z\1_\2z([a-z\d])([A-Z])r<r;)r7r8r=r,r>r!r!r"ra�sra�person�people�man�men�human�humans�child�children�sex�sexes�move�moves�cow�kine�zombie�zombies)T)r<)�__doc__r7rj�__version__r(r+rZr'r-�boolr9r?rArOrRrSrYr^r`rbrfrVrar!r!r!r"�<module>s8
$5 








Youez - 2016 - github.com/yon3zu
LinuXploit