Linux vmi2545633.contaboserver.net 6.1.0-32-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.129-1 (2025-03-06) x86_64
Apache/2.4.62 (Debian)
Server IP : 127.0.0.1 & Your IP : 127.0.0.1
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3.11 /
lib2to3 /
__pycache__ /
Delete
Unzip
Name
Size
Permission
Date
Action
__init__.cpython-311.pyc
371
B
-rw-r--r--
2025-04-08 16:44
__main__.cpython-311.pyc
315
B
-rw-r--r--
2025-04-08 16:44
btm_matcher.cpython-311.pyc
7.62
KB
-rw-r--r--
2025-04-08 16:44
btm_utils.cpython-311.pyc
11.24
KB
-rw-r--r--
2025-04-08 16:44
fixer_base.cpython-311.pyc
8.22
KB
-rw-r--r--
2025-04-08 16:44
fixer_util.cpython-311.pyc
21.84
KB
-rw-r--r--
2025-04-08 16:44
main.cpython-311.pyc
14.89
KB
-rw-r--r--
2025-04-08 16:44
patcomp.cpython-311.pyc
10.46
KB
-rw-r--r--
2025-04-08 16:44
pygram.cpython-311.pyc
2.01
KB
-rw-r--r--
2025-04-08 16:44
pytree.cpython-311.pyc
36.11
KB
-rw-r--r--
2025-04-08 16:44
refactor.cpython-311.pyc
37.61
KB
-rw-r--r--
2025-04-08 16:44
Save
Rename
� ZQd� � � � 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 �*/usr/lib/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"