Current Path: > > opt > alt > python312 > lib64 > python3.12 > 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-312.opt-1.pyc | File | 360 bytes | June 23 2025 14:00:19. | |
__init__.cpython-312.opt-2.pyc | File | 360 bytes | June 23 2025 14:00:19. | |
__init__.cpython-312.pyc | File | 360 bytes | June 23 2025 14:00:19. | |
__main__.cpython-312.opt-1.pyc | File | 291 bytes | June 23 2025 14:00:19. | |
__main__.cpython-312.opt-2.pyc | File | 291 bytes | June 23 2025 14:00:19. | |
__main__.cpython-312.pyc | File | 291 bytes | June 23 2025 14:00:19. | |
btm_matcher.cpython-312.opt-1.pyc | File | 7334 bytes | June 23 2025 14:00:19. | |
btm_matcher.cpython-312.opt-2.pyc | File | 5798 bytes | June 23 2025 14:00:28. | |
btm_matcher.cpython-312.pyc | File | 7334 bytes | June 23 2025 14:00:19. | |
btm_utils.cpython-312.opt-1.pyc | File | 11100 bytes | June 23 2025 14:00:19. | |
btm_utils.cpython-312.opt-2.pyc | File | 9634 bytes | June 23 2025 14:00:28. | |
btm_utils.cpython-312.pyc | File | 11100 bytes | June 23 2025 14:00:19. | |
fixer_base.cpython-312.opt-1.pyc | File | 7885 bytes | June 23 2025 14:00:19. | |
fixer_base.cpython-312.opt-2.pyc | File | 5217 bytes | June 23 2025 14:00:28. | |
fixer_base.cpython-312.pyc | File | 7885 bytes | June 23 2025 14:00:19. | |
fixer_util.cpython-312.opt-1.pyc | File | 21806 bytes | June 23 2025 14:00:19. | |
fixer_util.cpython-312.opt-2.pyc | File | 19798 bytes | June 23 2025 14:00:28. | |
fixer_util.cpython-312.pyc | File | 21806 bytes | June 23 2025 14:00:19. | |
main.cpython-312.opt-1.pyc | File | 14022 bytes | June 23 2025 14:00:23. | |
main.cpython-312.opt-2.pyc | File | 12296 bytes | June 23 2025 14:00:28. | |
main.cpython-312.pyc | File | 14076 bytes | June 23 2025 14:00:19. | |
patcomp.cpython-312.opt-1.pyc | File | 9424 bytes | June 23 2025 14:00:23. | |
patcomp.cpython-312.opt-2.pyc | File | 8950 bytes | June 23 2025 14:00:28. | |
patcomp.cpython-312.pyc | File | 9986 bytes | June 23 2025 14:00:19. | |
pygram.cpython-312.opt-1.pyc | File | 1908 bytes | June 23 2025 14:00:19. | |
pygram.cpython-312.opt-2.pyc | File | 1714 bytes | June 23 2025 14:00:28. | |
pygram.cpython-312.pyc | File | 1908 bytes | June 23 2025 14:00:19. | |
pytree.cpython-312.opt-1.pyc | File | 33198 bytes | June 23 2025 14:00:23. | |
pytree.cpython-312.opt-2.pyc | File | 24875 bytes | June 23 2025 14:00:28. | |
pytree.cpython-312.pyc | File | 34710 bytes | June 23 2025 14:00:19. | |
refactor.cpython-312.opt-1.pyc | File | 34269 bytes | June 23 2025 14:00:23. | |
refactor.cpython-312.opt-2.pyc | File | 30374 bytes | June 23 2025 14:00:28. | |
refactor.cpython-312.pyc | File | 34337 bytes | June 23 2025 14:00:19. |
� B[Yh� � �v � d Z dZddlZddlZddlmZ ddlmZ ddlm Z G d� d e � Z G d � de � Zi a d� Zy) 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 �8 � e Zd ZdZ ej � Zd� Zy)�BMNodez?Class for a node of the Aho-Corasick automaton used in matchingc �j � i | _ g | _ t t j � | _ d| _ y )N� )�transition_table�fixers�nextr �count�id�content��selfs �:/opt/alt/python312/lib64/python3.12/lib2to3/btm_matcher.py�__init__zBMNode.__init__ s( � � "�������v�|�|�$������ N)�__name__� __module__�__qualname__�__doc__� itertoolsr r � r r r r s � �I��I�O�O��E�r r c �. � e Zd ZdZd� Zd� Zd� Zd� Zd� Zy)� BottomMatcherzgThe main matcher class. After instantiating the patterns should be added using the add_fixer methodc � � t � | _ t � | _ | j g| _ g | _ t j d� | _ y )N�RefactoringTool) �set�matchr �root�nodesr �logging� getLogger�loggerr s r r zBottomMatcher.__init__ s; � ��U�� ��H�� ��i�i�[�� �����'�'�(9�:��r c � � | j j |� t |j � }|j � }| j || j �� }|D ] }|j j |� � y)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"