Current Path: > > opt > alt > python311 > lib64 > python3.11 > lib2to3 > __pycache__
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__init__.cpython-311.opt-1.pyc | File | 387 bytes | June 23 2025 15:48:01. | |
__init__.cpython-311.opt-2.pyc | File | 387 bytes | June 23 2025 15:48:01. | |
__init__.cpython-311.pyc | File | 387 bytes | June 23 2025 15:48:01. | |
__main__.cpython-311.opt-1.pyc | File | 331 bytes | June 23 2025 15:48:01. | |
__main__.cpython-311.opt-2.pyc | File | 331 bytes | June 23 2025 15:48:01. | |
__main__.cpython-311.pyc | File | 331 bytes | June 23 2025 15:48:01. | |
btm_matcher.cpython-311.opt-1.pyc | File | 7814 bytes | June 23 2025 15:48:01. | |
btm_matcher.cpython-311.opt-2.pyc | File | 6264 bytes | June 23 2025 15:48:05. | |
btm_matcher.cpython-311.pyc | File | 7814 bytes | June 23 2025 15:48:01. | |
btm_utils.cpython-311.opt-1.pyc | File | 11530 bytes | June 23 2025 15:48:01. | |
btm_utils.cpython-311.opt-2.pyc | File | 10056 bytes | June 23 2025 15:48:05. | |
btm_utils.cpython-311.pyc | File | 11530 bytes | June 23 2025 15:48:01. | |
fixer_base.cpython-311.opt-1.pyc | File | 8431 bytes | June 23 2025 15:48:01. | |
fixer_base.cpython-311.opt-2.pyc | File | 5752 bytes | June 23 2025 15:48:06. | |
fixer_base.cpython-311.pyc | File | 8431 bytes | June 23 2025 15:48:01. | |
fixer_util.cpython-311.opt-1.pyc | File | 22381 bytes | June 23 2025 15:48:01. | |
fixer_util.cpython-311.opt-2.pyc | File | 20368 bytes | June 23 2025 15:48:06. | |
fixer_util.cpython-311.pyc | File | 22381 bytes | June 23 2025 15:48:01. | |
main.cpython-311.opt-1.pyc | File | 15220 bytes | June 23 2025 15:48:03. | |
main.cpython-311.opt-2.pyc | File | 13484 bytes | June 23 2025 15:48:05. | |
main.cpython-311.pyc | File | 15266 bytes | June 23 2025 15:48:01. | |
patcomp.cpython-311.opt-1.pyc | File | 10223 bytes | June 23 2025 15:48:03. | |
patcomp.cpython-311.opt-2.pyc | File | 9744 bytes | June 23 2025 15:48:05. | |
patcomp.cpython-311.pyc | File | 10725 bytes | June 23 2025 15:48:01. | |
pygram.cpython-311.opt-1.pyc | File | 2070 bytes | June 23 2025 15:48:01. | |
pygram.cpython-311.opt-2.pyc | File | 1873 bytes | June 23 2025 15:48:05. | |
pygram.cpython-311.pyc | File | 2070 bytes | June 23 2025 15:48:01. | |
pytree.cpython-311.opt-1.pyc | File | 35210 bytes | June 23 2025 15:48:03. | |
pytree.cpython-311.opt-2.pyc | File | 26861 bytes | June 23 2025 15:48:05. | |
pytree.cpython-311.pyc | File | 36993 bytes | June 23 2025 15:48:01. | |
refactor.cpython-311.opt-1.pyc | File | 38444 bytes | June 23 2025 15:48:03. | |
refactor.cpython-311.opt-2.pyc | File | 34539 bytes | June 23 2025 15:48:05. | |
refactor.cpython-311.pyc | File | 38526 bytes | June 23 2025 15:48:01. |
� !A?h� � � � d Z dZddlZddlZddlmZ ddlmZ ddlm Z G d� d e � � Z G d � de � � Zi a d� ZdS ) a� A bottom-up tree matching algorithm implementation meant to speed up 2to3's matching process. After the tree patterns are reduced to their rarest linear path, a linear Aho-Corasick automaton is created. The linear automaton traverses the linear paths from the leaves to the root of the AST and returns a set of nodes for further matching. This reduces significantly the number of candidate nodes.z+George Boutsioukis <gboutsioukis@gmail.com>� N)�defaultdict� )�pytree)�reduce_treec �6 � e Zd ZdZ ej � � Zd� ZdS )�BMNodez?Class for a node of the Aho-Corasick automaton used in matchingc �l � i | _ g | _ t t j � � | _ d| _ d S )N� )�transition_table�fixers�nextr �count�id�content��selfs �:/opt/alt/python311/lib64/python3.11/lib2to3/btm_matcher.py�__init__zBMNode.__init__ s- � � "�������v�|�$�$�������� N)�__name__� __module__�__qualname__�__doc__� itertoolsr r � r r r r s8 � � � � � �I�I��I�O���E�� � � � r r c �0 � e Zd ZdZd� Zd� Zd� Zd� Zd� ZdS )� BottomMatcherzgThe main matcher class. After instantiating the patterns should be added using the add_fixer methodc � � t � � | _ t � � | _ | j g| _ g | _ t j d� � | _ d S )N�RefactoringTool) �set�matchr �root�nodesr �logging� getLogger�loggerr s r r zBottomMatcher.__init__ sA � ��U�U�� ��H�H�� ��i�[�� �����'�(9�:�:����r c � � | j � |� � t |j � � }|� � � }| � || j �� � }|D ]}|j � |� � �dS )z�Reduces a fixer's pattern tree to a linear path and adds it to the matcher(a common Aho-Corasick automaton). The fixer is appended on the matching states and called when they are reached��startN)r �appendr �pattern_tree�get_linear_subpattern�addr"