✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ server366.web-hosting.com ​🇻​♯➤ 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 67.223.118.204 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.52
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /opt/alt/python34/lib64/python3.4/lib2to3/__pycache__//btm_matcher.cpython-34.pyc
�
j f��@s�dZdZddlZddlZddlmZddlmZddlm	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.eZdZdZej�Zdd�ZdS)�BMNodez?Class for a node of the Aho-Corasick automaton used in matchingcCs1i|_g|_ttj�|_d|_dS)N�)�transition_table�fixers�nextr�count�id�content)�self�r�8/opt/alt/python34/lib64/python3.4/lib2to3/btm_matcher.py�__init__s		zBMNode.__init__N)�__name__�
__module__�__qualname__�__doc__�	itertoolsrrrrrrrsrc@sReZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�ZdS)
�
BottomMatcherzgThe main matcher class. After instantiating the patterns should
    be added using the add_fixer methodcCsFt�|_t�|_|jg|_g|_tjd�|_dS)NZRefactoringTool)	�set�matchr�rootZnodesr	�loggingZ	getLoggerZlogger)rrrrrs
	zBottomMatcher.__init__cCsh|jj|�t|j�}|j�}|j|d|j�}x|D]}|jj|�qJWdS)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_fixercCs|s
|gSt|dt�r�g}x[|dD]O}|j|d|�}x1|D])}|j|j|dd�|��qSWq1W|S|d|jkr�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�patternrr ZalternativeZ	end_nodes�endZ	next_noderrrr1s"
+	"	zBottomMatcher.addc	Cs�|j}tt�}x�|D]y}|}xj|r�d|_x?|jD]4}t|tj�rD|jdkrDd|_PqDqDW|j	dkr�|j}n	|j	}||j
kr�|j
|}x�|jD]0}||kr�g||<n||j|�q�Wn�|j}|j
dk	r%|j
jr%Pn||j
kr�|j
|}xD|jD]6}||j�krpg||<n||j|�qKWn|j
}q+WqW|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�keys)	rZleavesZcurrent_ac_nodeZresultsZleafZcurrent_ast_nodeZchildZ
node_tokenrrrr�runSs>	
		!		

	

zBottomMatcher.runcs7td��fdd���|j�td�dS)z<Prints a graphviz diagram of the BM automaton(for debugging)z
digraph g{cs�xy|jj�D]h}|j|}td|j|jt|�t|j�f�|dkrnt|j�n�|�qWdS)Nz%d -> %d [label=%s] //%sr)rr,�printr�	type_repr�strr	r
)ZnodeZsubnode_keyZsubnode)�
print_noderrr1�s
)z*BottomMatcher.print_ac.<locals>.print_node�}N)r.r)rr)r1r�print_ac�s

zBottomMatcher.print_acN)	rrrrrr!rr-r3rrrrrs"=rcCshtsXddlm}x?|jj�D]+\}}t|�tkr&|t|<q&q&Wntj||�S)Nr)�python_symbols)�_type_reprsZpygramr4�__dict__�itemsr*�int�
setdefault)Ztype_numr4�name�valrrrr/�sr/)r�
__author__rr�collectionsrrrZ	btm_utilsr�objectrrr5r/rrrr�<module>s	�


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


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
1 May 2025 12.40 PM
root / linksafe
0755
__init__.cpython-34.pyc
0.133 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
__init__.cpython-34.pyo
0.133 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
__main__.cpython-34.pyc
0.228 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
__main__.cpython-34.pyo
0.228 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
btm_matcher.cpython-34.pyc
5.215 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
btm_matcher.cpython-34.pyo
5.215 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
btm_utils.cpython-34.pyc
6.685 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
btm_utils.cpython-34.pyo
6.685 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fixer_base.cpython-34.pyc
6.384 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fixer_base.cpython-34.pyo
6.384 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fixer_util.cpython-34.pyc
13.101 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fixer_util.cpython-34.pyo
13.101 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
main.cpython-34.pyc
9.026 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
main.cpython-34.pyo
8.988 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
patcomp.cpython-34.pyc
6.223 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
patcomp.cpython-34.pyo
5.933 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
pygram.cpython-34.pyc
1.229 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
pygram.cpython-34.pyo
1.229 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
pytree.cpython-34.pyc
26.365 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
pytree.cpython-34.pyo
25.529 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
refactor.cpython-34.pyc
22.388 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
refactor.cpython-34.pyo
22.347 KB
17 Apr 2024 5.10 PM
root / linksafe
0644

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