✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ server.blackpussy.asia ​🇻​♯➤ 5.14.0-611.20.1.el9_7.x86_64 #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 163.245.207.76 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.243
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗞 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ mail,mb_send_mail
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /usr/lib64/python3.9/lib2to3/__pycache__//btm_matcher.cpython-39.pyc
a

�i��@sldZdZddlZddlZddlmZddlmZddlm	Z	Gdd	�d	e
�ZGd
d�de
�Zia
d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@s eZdZdZe��Zdd�ZdS)�BMNodez?Class for a node of the Aho-Corasick automaton used in matchingcCs"i|_g|_ttj�|_d|_dS)N�)�transition_table�fixers�nextr�count�id�content��self�r�+/usr/lib64/python3.9/lib2to3/btm_matcher.py�__init__szBMNode.__init__N)�__name__�
__module__�__qualname__�__doc__�	itertoolsrrrrrrrsrc@s8eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�ZdS)
�
BottomMatcherzgThe main matcher class. After instantiating the patterns should
    be added using the add_fixer methodcCs0t�|_t�|_|jg|_g|_t�d�|_dS)NZRefactoringTool)	�set�matchr�rootZnodesr	�logging�	getLogger�loggerrrrrrs

zBottomMatcher.__init__cCsH|j�|�t|j�}|��}|j||jd�}|D]}|j�|�q2dS)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	�appendrZpattern_treeZget_linear_subpattern�addr)r�fixerZtreeZlinear�match_nodesZ
match_noderrr�	add_fixer%s
zBottomMatcher.add_fixerc	Cs�|s
|gSt|dt�r`g}|dD]6}|j||d�}|D]}|�|�|dd�|��q:q$|S|d|jvr�t�}||j|d<n|j|d}|dd�r�|j|dd�|d�}n|g}|SdS)z5Recursively adds a linear pattern to the AC automatonrrrN)�
isinstance�tupler"�extendrr)r�patternr r$�alternativeZ	end_nodes�endZ	next_noderrrr"1s"zBottomMatcher.addc	Cs�|j}tt�}|D]�}|}|rd|_|jD]$}t|tj�r*|jdkr*d|_qPq*|j	dkrb|j}n|j	}||j
vr�|j
|}|jD]}||�|�q�nH|j}|j
dur�|j
jr�q||j
vr�|j
|}|jD]}||�|�q�|j
}qq|S)auThe main interface with the bottom matcher. The tree is
        traversed from the bottom using the constructed
        automaton. Nodes are only checked once as the tree is
        retraversed. When the automaton fails, we give it one more
        shot(in case the above tree matches as a whole with the
        rejected leaf), then we break for the next leaf. There is the
        special case of multiple arguments(see code comments) where we
        recheck the nodes

        Args:
           The leaves of the AST tree to be matched

        Returns:
           A dictionary of node matches with fixers as the keys
        T�;FrN)rr�listZwas_checkedZchildrenr&rZLeaf�value�typerr	r!�parent)	rZleavesZcurrent_ac_node�resultsZleafZcurrent_ast_node�childZ
node_tokenr#rrr�runSs8





�



zBottomMatcher.runcs*td��fdd���|j�td�dS)z<Prints a graphviz diagram of the BM automaton(for debugging)z
digraph g{csZ|j��D]J}|j|}td|j|jt|�t|j�f�|dkrLt|j��|�q
dS)Nz%d -> %d [label=%s] //%sr)r�keys�printr�	type_repr�strr	r
)ZnodeZsubnode_keyZsubnode��
print_noderrr9�s
�
z*BottomMatcher.print_ac.<locals>.print_node�}N)r5rrrr8r�print_ac�s
zBottomMatcher.print_acN)	rrrrrr%r"r3r;rrrrrs"8rcCsDts8ddlm}|j��D]\}}t|�tkr|t|<qt�||�S)Nr)�python_symbols)�_type_reprsZpygramr<�__dict__�itemsr/�int�
setdefault)Ztype_numr<�name�valrrrr6�s
r6)r�
__author__rr�collectionsrrrZ	btm_utilsr�objectrrr=r6rrrr�<module>s	

Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]

Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
14 Aug 2026 4.57 AM
root / root
0755
__init__.cpython-39.opt-1.pyc
0.295 KB
12 Aug 2026 3.51 PM
root / root
0644
__init__.cpython-39.opt-2.pyc
0.295 KB
12 Aug 2026 3.51 PM
root / root
0644
__init__.cpython-39.pyc
0.295 KB
12 Aug 2026 3.51 PM
root / root
0644
__main__.cpython-39.opt-1.pyc
0.21 KB
12 Aug 2026 3.51 PM
root / root
0644
__main__.cpython-39.opt-2.pyc
0.21 KB
12 Aug 2026 3.51 PM
root / root
0644
__main__.cpython-39.pyc
0.21 KB
12 Aug 2026 3.51 PM
root / root
0644
btm_matcher.cpython-39.opt-1.pyc
4.763 KB
12 Aug 2026 3.51 PM
root / root
0644
btm_matcher.cpython-39.opt-2.pyc
3.229 KB
12 Aug 2026 3.51 PM
root / root
0644
btm_matcher.cpython-39.pyc
4.763 KB
12 Aug 2026 3.51 PM
root / root
0644
btm_utils.cpython-39.opt-1.pyc
6.004 KB
12 Aug 2026 3.51 PM
root / root
0644
btm_utils.cpython-39.opt-2.pyc
4.527 KB
12 Aug 2026 3.51 PM
root / root
0644
btm_utils.cpython-39.pyc
6.004 KB
12 Aug 2026 3.51 PM
root / root
0644
fixer_base.cpython-39.opt-1.pyc
6.108 KB
12 Aug 2026 3.51 PM
root / root
0644
fixer_base.cpython-39.opt-2.pyc
3.422 KB
12 Aug 2026 3.51 PM
root / root
0644
fixer_base.cpython-39.pyc
6.108 KB
12 Aug 2026 3.51 PM
root / root
0644
fixer_util.cpython-39.opt-1.pyc
11.885 KB
12 Aug 2026 3.51 PM
root / root
0644
fixer_util.cpython-39.opt-2.pyc
9.772 KB
12 Aug 2026 3.51 PM
root / root
0644
fixer_util.cpython-39.pyc
11.885 KB
12 Aug 2026 3.51 PM
root / root
0644
main.cpython-39.opt-1.pyc
8.468 KB
12 Aug 2026 3.51 PM
root / root
0644
main.cpython-39.opt-2.pyc
6.756 KB
12 Aug 2026 3.51 PM
root / root
0644
main.cpython-39.pyc
8.485 KB
12 Aug 2026 3.51 PM
root / root
0644
patcomp.cpython-39.opt-1.pyc
5.263 KB
12 Aug 2026 3.51 PM
root / root
0644
patcomp.cpython-39.opt-2.pyc
4.767 KB
12 Aug 2026 3.51 PM
root / root
0644
patcomp.cpython-39.pyc
5.474 KB
12 Aug 2026 3.51 PM
root / root
0644
pygram.cpython-39.opt-1.pyc
1.232 KB
12 Aug 2026 3.51 PM
root / root
0644
pygram.cpython-39.opt-2.pyc
1.032 KB
12 Aug 2026 3.51 PM
root / root
0644
pygram.cpython-39.pyc
1.232 KB
12 Aug 2026 3.51 PM
root / root
0644
pytree.cpython-39.opt-1.pyc
23.117 KB
12 Aug 2026 3.51 PM
root / root
0644
pytree.cpython-39.opt-2.pyc
14.618 KB
12 Aug 2026 3.51 PM
root / root
0644
pytree.cpython-39.pyc
23.726 KB
12 Aug 2026 3.51 PM
root / root
0644
refactor.cpython-39.opt-1.pyc
20.13 KB
12 Aug 2026 3.51 PM
root / root
0644
refactor.cpython-39.opt-2.pyc
16.179 KB
12 Aug 2026 3.51 PM
root / root
0644
refactor.cpython-39.pyc
20.159 KB
12 Aug 2026 3.51 PM
root / root
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF