[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.17.165.235: ~ $
U

��,a��@shdZddlZddlZddlmZddlmZddlmZGdd�de	�Z
Gd	d
�d
e	�Ziadd�Z
dS)
z+George Boutsioukis <gboutsioukis@gmail.com>�N)�defaultdict�)�pytree)�reduce_treec@seZdZe��Zdd�ZdS)�BMNodecCs"i|_g|_ttj�|_d|_dS)N�)�transition_table�fixers�nextr�count�id�content��self�r�8/opt/alt/python38/lib64/python3.8/lib2to3/btm_matcher.py�__init__szBMNode.__init__N)�__name__�
__module__�__qualname__�	itertoolsrrrrrrrsrc@s4eZdZdd�Zdd�Zdd�Zdd�Zd	d
�ZdS)�
BottomMatchercCs0t�|_t�|_|jg|_g|_t�d�|_dS)NZRefactoringTool)	�set�matchr�rootZnodesr	�loggingZ	getLoggerZloggerrrrrrs

zBottomMatcher.__init__cCsH|j�|�t|j�}|��}|j||jd�}|D]}|j�|�q2dS)N��start)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|jkr�t�}||j|d<n|j|d}|dd�r�|j|dd�|d�}n|g}|SdS)Nrrr)�
isinstance�tupler�extendrr)r�patternrr!ZalternativeZ	end_nodes�endZ	next_noderrrr1s"zBottomMatcher.addc	Cs�|j}tt�}|D]�}|}|rd|_|jD]$}t|tj�r*|jdkr*d|_qPq*|j	dkrb|j}n|j	}||j
kr�|j
|}|jD]}||�|�q�nH|j}|j
dk	r�|j
jr�q||j
kr�|j
|}|jD]}||�|�q�|j
}qq|S)NT�;Fr)rr�listZwas_checkedZchildrenr#rZLeaf�value�typerr	r�parent)	rZleavesZcurrent_ac_nodeZresultsZleafZcurrent_ast_nodeZchildZ
node_tokenr rrr�runSs8





�



zBottomMatcher.runcs*td��fdd���|j�td�dS)Nz
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_noderrr3�s
�
z*BottomMatcher.print_ac.<locals>.print_node�})r/rrrr2r�print_ac�s
zBottomMatcher.print_acN)rrrrr"rr-r5rrrrrs
"8rcCsDts8ddlm}|j��D]\}}t|�tkr|t|<qt�||�S)Nr)�python_symbols)�_type_reprsZpygramr6�__dict__�itemsr+�int�
setdefault)Ztype_numr6�name�valrrrr0�s
r0)�
__author__rr�collectionsrrrZ	btm_utilsr�objectrrr7r0rrrr�<module>s	

Filemanager

Name Type Size Permission Actions
__init__.cpython-38.opt-1.pyc File 144 B 0644
__init__.cpython-38.opt-2.pyc File 144 B 0644
__init__.cpython-38.pyc File 144 B 0644
__main__.cpython-38.opt-1.pyc File 228 B 0644
__main__.cpython-38.opt-2.pyc File 228 B 0644
__main__.cpython-38.pyc File 228 B 0644
btm_matcher.cpython-38.opt-1.pyc File 4.78 KB 0644
btm_matcher.cpython-38.opt-2.pyc File 3.24 KB 0644
btm_matcher.cpython-38.pyc File 4.78 KB 0644
btm_utils.cpython-38.opt-1.pyc File 6.02 KB 0644
btm_utils.cpython-38.opt-2.pyc File 4.54 KB 0644
btm_utils.cpython-38.pyc File 6.02 KB 0644
fixer_base.cpython-38.opt-1.pyc File 6.12 KB 0644
fixer_base.cpython-38.opt-2.pyc File 3.43 KB 0644
fixer_base.cpython-38.pyc File 6.12 KB 0644
fixer_util.cpython-38.opt-1.pyc File 11.93 KB 0644
fixer_util.cpython-38.opt-2.pyc File 9.81 KB 0644
fixer_util.cpython-38.pyc File 11.93 KB 0644
main.cpython-38.opt-1.pyc File 8.39 KB 0644
main.cpython-38.opt-2.pyc File 6.68 KB 0644
main.cpython-38.pyc File 8.42 KB 0644
patcomp.cpython-38.opt-1.pyc File 5.29 KB 0644
patcomp.cpython-38.opt-2.pyc File 4.79 KB 0644
patcomp.cpython-38.pyc File 5.52 KB 0644
pygram.cpython-38.opt-1.pyc File 1.25 KB 0644
pygram.cpython-38.opt-2.pyc File 1.04 KB 0644
pygram.cpython-38.pyc File 1.25 KB 0644
pytree.cpython-38.opt-1.pyc File 23.12 KB 0644
pytree.cpython-38.opt-2.pyc File 14.62 KB 0644
pytree.cpython-38.pyc File 23.79 KB 0644
refactor.cpython-38.opt-1.pyc File 19.94 KB 0644
refactor.cpython-38.opt-2.pyc File 15.99 KB 0644
refactor.cpython-38.pyc File 19.98 KB 0644