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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/kunden/usr/lib/python3/dist-packages/breezy/bzr/__pycache__/btree_index.cpython-313.pyc
�

p��g�����SrSSKJr SSKJr \"\"5S5 SSKJrJrJrJ	r	J
r
JrJr SSKJ
r SS	K
JrJrJr S
rSrSrS
rSrSrSrSr"SS5r"SS\5r"SS\5r"SS\R:5r"SS\5r "SS5r!"SS5r"\ r#SS KJ$r% \%RLr#g"!\'a"r(\
RR"\(5 SS!KJ*r% S"r(C(g"S"r(C(ff=f)#zB+Tree indices.�)�BytesIO�)�lazy_importz7
import bisect
import math
import tempfile
import zlib
)�chunk_writer�debug�
fifo_cache�	lru_cache�osutils�trace�	transport�)�index)�_OPTION_KEY_ELEMENTS�_OPTION_LEN�_OPTION_NODE_REFSsB+Tree Graph Index 2
srow_lengths=s
type=leaf
stype=internal
soffset=�xii�c�(�\rSrSrSrSrSSjrSrg)�_BuilderRow�3z�The stored state accumulated while writing out a row in the index.

:ivar spool: A temporary file used to accumulate nodes for this row
    in the tree.
:ivar nodes: The count of nodes emitted so far.
c�.�SUlSUlSUlg)zCreate a _BuilderRow.rN��nodes�spool�writer��selfs �8/usr/lib/python3/dist-packages/breezy/bzr/btree_index.py�__init__�_BuilderRow.__init__;s����
���
����c��URR5up#nURS:Xa2[5UlURRS[-5 ORURS:XaB[RSS9nURURR55 XPlSnU(dU(aUS	UnURRU5 URR5U-[-nUS:wa)[SURR5SU35eU=RS-
slSUlg)	Nr�r
zbzr-index-row-��prefix���zincorrect node length: z, )r�finishrrr�write�_RESERVED_HEADER_BYTES�tempfile�
TemporaryFile�getvalue�
writelines�tell�
_PAGE_SIZE�AssertionError)r�pad�
byte_lines�_�paddingr�
skipped_bytes�	remainders        r�finish_node�_BuilderRow.finish_nodeAs
��!%���!3�!3�!5��
�w��:�:��?� ��D�J��J�J���W�'=�=�>�
�Z�Z�1�_��*�*�2B�*�C�E��K�K��
�
�+�+�-�.��J��
��w��2��#�M��
�
���j�)��Z�Z�_�_�&��6�*�D�	���>� �)�$�*�*�/�/�*;�)<�B�y�k�J��
�	
�
�
�a��
���r rN�T)�__name__�
__module__�__qualname__�__firstlineno__�__doc__rr6�__static_attributes__�r rrr3s����r rc�"�\rSrSrSrSSjrSrg)�_InternalBuilderRow�Zz=The stored state accumulated while writing out internal rows.c�R�U(d[S5e[RU5 g)NzMust pad internal nodes only.)r/rr6)rr0s  rr6�_InternalBuilderRow.finish_node]s��� �!@�A�A�����%r r?Nr8)r9r:r;r<r=r6r>r?r rrArAZs
��G�&r rAc��\rSrSrSrSrg)�_LeafBuilderRow�cz;The stored state accumulated while writing out a leaf rows.r?N)r9r:r;r<r=r>r?r rrFrFcs��Er rFc��\rSrSrSrSSjrSSjrSrSrSr	Sr
S	rS
rSSjr
SSjrS
rSrSrSrSrSrSrSrSrg)�BTreeBuilder�ga�A Builder for B+Tree based Graph indices.

The resulting graph has the structure:

_SIGNATURE OPTIONS NODES
_SIGNATURE     := 'B+Tree Graph Index 1' NEWLINE
OPTIONS        := REF_LISTS KEY_ELEMENTS LENGTH
REF_LISTS      := 'node_ref_lists=' DIGITS NEWLINE
KEY_ELEMENTS   := 'key_elements=' DIGITS NEWLINE
LENGTH         := 'len=' DIGITS NEWLINE
ROW_LENGTHS    := 'row_lengths' DIGITS (COMMA DIGITS)*
NODES          := NODE_COMPRESSED*
NODE_COMPRESSED:= COMPRESSED_BYTES{4096}
NODE_RAW       := INTERNAL | LEAF
INTERNAL       := INTERNAL_FLAG POINTERS
LEAF           := LEAF_FLAG ROWS
KEY_ELEMENT    := Not-whitespace-utf8
KEY            := KEY_ELEMENT (NULL KEY_ELEMENT)*
ROWS           := ROW*
ROW            := KEY NULL ABSENT? NULL REFERENCES NULL VALUE NEWLINE
ABSENT         := 'a'
REFERENCES     := REFERENCE_LIST (TAB REFERENCE_LIST){node_ref_lists - 1}
REFERENCE_LIST := (REFERENCE (CR REFERENCE)*)?
REFERENCE      := KEY
VALUE          := no-newline-no-null-bytes
c��[RRXUS9 X0l/Ul0UlSUlSUlg)z�See GraphIndexBuilder.__init__.

:param spill_at: Optional parameter controlling the maximum number
    of nodes that BTreeBuilder will hold in memory.
)�reference_lists�key_elementsNF)�
_mod_index�GraphIndexBuilderr�	_spill_at�_backing_indices�_nodes�
_nodes_by_key�_optimize_for_size)rrLrM�spill_ats    rr�BTreeBuilder.__init__�sH��	�$�$�-�-���	.�	
�"�� "������!���"'��r c�r�[U5nURXU5upEXR;a[R"X5eXB4URU'UR
b"URS:�aURXU5 [UR5UR:agUR5 g)a�Add a node to the index.

If adding the node causes the builder to reach its spill_at threshold,
disk spilling will be triggered.

:param key: The key. keys are non-empty tuples containing
    as many whitespace-free utf8 bytestrings as the key length
    defined for this index.
:param references: An iterable of iterables of keys. Each is a
    reference to another key.
:param value: The value to associate with the key. It may be any
    bytes as long as it does not contain \\0 or \\n.
Nr
)�tuple�_check_key_ref_valuerRrN�BadIndexDuplicateKeyrS�_key_length�_update_nodes_by_key�lenrP�_spill_mem_keys_to_disk)r�key�value�
references�	node_refsr2s      r�add_node�BTreeBuilder.add_node�s����C�j���0�0��%�H��	��+�+���1�1�#�<�<�%�-����C�����)�d�.>�.>��.B��%�%�c�)�<��t�{�{��d�n�n�,���$�$�&r c��UR(aUR5upnOUR5up[[R
"S5SU5nXlUR(ad[UR5W:XaURRS5 X@RU'[U5HnSURU'M OURRU5 0UlSUlg)a�Write the in memory keys down to disk to cap memory consumption.

If we already have some keys written to disk, we will combine them so
as to preserve the sorted order.  The algorithm for combining uses
powers of two.  So on the first spill, write all mem nodes into a
single index. On the second spill, combine the mem nodes with the nodes
on disk to create a 2x sized disk index and get rid of the first index.
On the third spill, create a single new disk index, which will contain
the mem nodes, and preserve the existing 2x sized index.  On the fourth,
combine mem with the first and second indexes, creating a new one of
size 4x. On the fifth create a single new one, etc.
�.z<temp>N)
�_combine_backing_indices�_spill_mem_keys_and_combine�!_spill_mem_keys_without_combining�BTreeGraphIndexr�get_transport_from_path�_filer]rQ�append�rangerRrS)r�new_backing_file�size�backing_pos�new_backing�bps      rr^�$BTreeBuilder._spill_mem_keys_to_disk�s����(�(�48�4T�4T�4V�1�
�[�%)�%K�%K�%M�"��&��-�-�c�2�H�d�
��-���(�(��4�(�(�)�[�8��%�%�,�,�T�2�1<�!�!�+�.��K�(��,0��%�%�b�)�)�
�!�!�(�(��5����!��r c�>�URUR5SS9$)NF��allow_optimize)�_write_nodes�_iter_mem_nodesrs rri�.BTreeBuilder._spill_mem_keys_without_combining�s!��� � ��!5�!5�!7�� �N�Nr c�
�UR5/nSn[UR5H.up#UcUS-n O#URUR	55 M0 US-nURUR
U5SS9upVXVU4$)Nr%r
Frv)ry�	enumeraterQrm�iter_all_entriesrx�_iter_smallest)r�iterators_to_combine�pos�backingrqrorps       rrh�(BTreeBuilder._spill_mem_keys_and_combine�s��� $� 4� 4� 6�7����%�d�&;�&;�<�L�C����q���� �'�'��(@�(@�(B�C�	=�
�A�g��!%�!2�!2���� 4�5�e�"3�"
��� �{�2�2r c��UR(aUHup#nURX#U5 M gUHup#URX#5 M g)z^Add nodes to the index.

:param nodes: An iterable of (key, node_refs, value) entries to add.
N)rLrc)rrr_r`rbs     r�	add_nodes�BTreeBuilder.add_nodes�sD��
���).�%��I��
�
�c�)�4�*/�$�
���
�
�c�)�$r c#�# �URnUR(a[U5HnXup4XXC4v� M g[U5HnXup4XU4v� M g7f)z&Iterate over the nodes held in memory.N)rRrL�sorted)rrr_rar`s     rry�BTreeBuilder._iter_mem_nodes�s_�����������e�}��$)�J�!�
���2�2�%��e�}��$)�J�!�
���&�&�%�s�AAc#�D# �[U5S:XaUSShv�N g/nUHnUR[U55 M  Sn[	U5Vs/sHnUScMUSSU4PM nn[U5(dg[U5nUSnXGSS:Xa[R"X@5eUSSnU4USSS-v� USn[X5X('M�N�![a URS5 M�f=fs snf![a SX('N;f=f7f)Nr
r)r]rm�next�
StopIterationr|�minrNrZ)	rr�current_values�iterator�last�item�
candidates�selectedr�s	         rr~�BTreeBuilder._iter_smallest�sX����#�$��)�+�A�.�.�.����,�H�
,��%�%�d�8�n�5�-�
���&�n�5��5�D���7�#��a����T�"�5�
��
�z�?�?���:��H���{�H���{�1�~�%� �5�5�d�A�A��A�;�q�>�D��'�H�Q�K���O�+�+��1�+�C�
+�&*�+?�+D�&E��#�'�
/��!�
,��%�%�d�+�
,��
��$!�
+�&*��#�
+�si�D �C#�D �C%�D �
D�$D�2AD �D�!D �%D�D �D�D �D�D �D�D c���SnUSRGc5Sn[USS5H�upgURbM[nURS:Xa	U[-nU(a
UR
n	OSn	[R"USU	S9UlURR[5 URR[SX6S-R--5 M� [nUSRS:Xa	U[-n[R"X�R
S9USlUSRR[5 USRRU5(GaU(a[R"U5eUSR5 US	-n
Sn[USS5H7nURRU
5(aUR5 M5Sn O U(a�S
[ R";a[$R&"S5 [)5nSn
UR+SU5 [R"[[-
U
UR
S9UlURR[5 URR[SUSRS-
--5 URRU
5 UR-XX4S9 gg)
aAdd a key to the current chunk.

:param string_key: The key to add.
:param line: The fully serialised key and value.
:param allow_optimize: If set to False, prevent setting the optimize
    flag when writing out. This is used by the _spill_mem_keys_to_disk
    functionality.
Fr%NTr)�optimize_for_sizes%d
r
�
rzInserting new global row.rv)rr|r.rr(rTr�ChunkWriterr'�_INTERNAL_FLAG�_INTERNAL_OFFSET�
_LEAF_FLAGrN�BadIndexKeyr6�reversedr�debug_flagsr�mutterrA�insert�_add_key)r�
string_key�line�rowsrw�new_leafr��internal_row�lengthr��key_line�new_row�row�reserved_bytess              rr��BTreeBuilder._add_keys�������8�?�?�"��H�%.�t�C�R�y�%9�!�� �&�&�.�'�F�#�)�)�Q�.��"8�8��%�,0�,C�,C�)�,1�)�*6�*B�*B���5F�+�L�'�!�'�'�-�-�n�=� �'�'�-�-�(�7�T��'�]�5H�5H�+H�H��&:�& �F��B�x�~�~��"��0�0��*�6�6��*A�*A��D��H�O�
��H�O�O�!�!�*�-���8�?�?� � ��&�&�� �,�,�Z�8�8���H� � �"�!�E�)�H��G���S�b�	�*���:�:�#�#�H�-�-��O�O�%�$�G��+���e�/�/�/��L�L�!<�=�-�/��!"�����A�w�'�!-�!9�!9��!7�7�"�&*�&=�&=�"���
���$�$�^�4����$�$�%5��4��7�=�=�ST�CT�8U�%U�V����$�$�X�.��M�M�*�D�M�P�M'r c	�j�/nSn/UlUHYnUS:XaUR[55 US-
n[R"XPR
5upgUR
XgX2S9 M[ [U5H'n[U[5(+n	URU	S9 M) [/n
U
RS[UR
4-5 U
RS[UR4-5 U
RS[U4-5 UVs/sHo�RPM nnU
R[ SR#[%[&U55R)S5-S-5 U(aUS	S:�a[*R-S
S9nO
[/5nUR1U
5 [3[%[4U
55n
U
[6:�a[9SU
S
[635eUGHn[6nUR:R=5 UR:R?S5 UR:RA[B5nUREX^S5 [5U5[B:XaURESX�-
-5 Sn
[FRH"UR:U5nX�RS-
[B-:wdM�[U[5(aM�[9SURS-
[B-SU35e UR=5 URK5nUR?S5 UU4$s snf)a�Write node_iterator out as a B+Tree.

:param node_iterator: An iterator of sorted nodes. Each node should
    match the output given by iter_all_entries.
:param allow_optimize: If set to False, prevent setting the optimize
    flag when writing out. This is used by the _spill_mem_keys_to_disk
    functionality.
:return: A file handle for a temporary file containing a B+Tree for
    the nodes.
rr
rv)r0s%s%d
�,�asciir�r%z
bzr-index-r#z0Could not fit the header in the reserved space: z > Nr"z*Incorrect amount of data copied expected: z, got: )&�row_lengthsrmrF�_btree_serializer�
_flatten_noderLr�r��
isinstancer6�_BTSIGNATURErrr[rr�_OPTION_ROW_LENGTHS�join�map�str�encoder)�NamedTemporaryFilerr,�sumr]r(r/r�flush�seek�readr.r'r
�pumpfiler-)r�
node_iteratorrwr��	key_count�noder�r�r�r0�linesr��result�position�reserved�
copied_lenrps                 rrx�BTreeBuilder._write_nodesls������	����
"�D��A�~����O�-�.���N�I�0�>�>��*�*� ��J�
�M�M�*�D�M�P�"��D�>�C� ��o�6�6�C��O�O��O�$�"����
���Y�"3�T�5I�5I�!J�J�K�
���Y�"6��8H�8H�!I�I�J�
���Y�+�y�!9�9�:�,0�1�D�S�y�y�D��1�
�����h�h�s�3��,�-�4�4�W�=�
>��
�	
�
�;�r�?�Q�.��0�0��0�E�F��Y�F����%� ��s�3���'���,�,� �$�$,�:�S�1G�0H�J��
�
�C�-�H��I�I�O�O���I�I�N�N�1���9�9�>�>�*�-�D��L�L��i��)��4�y�J�&����W��(;�<�=��H� �)�)�#�)�)�V�<�J��i�i�!�m�z�9�9�!�#��7�7�(�&�'*�y�y�1�}�
�&B�%C�7�:�,�X����$	�����{�{�}�����A���t�|���O2s�L0c�F�URUR55S$)znFinalise the index.

:return: A file handle for a temporary file containing the nodes added
    to the index.
r)rxr}rs rr&�BTreeBuilder.finish�s#��� � ��!6�!6�!8�9�!�<�<r c�2�S[R;a[R"SS5 UR	5/nUR
H'nUcMUR
UR55 M) [U5S:XaUS$URU5$)z�Iterate over all keys within the index.

:return: An iterable of (index, key, value, reference_lists). There is
    no defined order for the result iteration - it will be in the most
    efficient order for the index (in this case dictionary hash order).
�evil��-iter_all_entries scales with size of history.r
r)
rr�r�mutter_callsiteryrQrmr}r]r~)r�	iteratorsr�s   rr}�BTreeBuilder.iter_all_entries�s����U�&�&�&��!�!�!�%T�U��)�)�+�,�	��,�,�G��"�� � ��!9�!9�!;�<�-��y�>�Q���Q�<���"�"�9�-�-r c#��# �[U5nURnUVs/sHo3U;dM
UPM nnUR(aUHnX#nXUSUS4v� M OUHnX#nXUS4v� M UR(dgUR	U5 URHHnUcMU(d gURU5H"nUR
US5 U4USS-v� M$ MJ gs snf7f)a7Iterate over keys within the index.

:param keys: An iterable providing the keys to be retrieved.
:return: An iterable of (index, key, value, reference_lists). There is
    no defined order for the result iteration - it will be in the most
    efficient order for the index (keys iteration order in this case).
r
rN)�setrRrLrQ�difference_update�iter_entries�remove)r�keysrr_�
local_keysr�r�s       rr��BTreeBuilder.iter_entries�s�����4�y������%)�:�T�c�E�\�c�T�
�:����!���z����a��$�q�'�1�1�"�"���z����a��(�(�"�
�$�$�����z�*��,�,�G�������,�,�T�2�����D��G�$��g��Q�R��(�(�3�-��;�s�C6�	C1�C1�CC6c#�# �[U5nU(dgURH+nUcMURU5HnU4USS-v� M M- URS:XaYUHRn[R
"X5 URUnUR(aXUSUS4v� MIXUS4v� MT gUR5n[R"XU5Shv�N g![a M�f=fN7f)aIterate over keys within the index using prefix matching.

Prefix matching is applied within the tuple of a key, not to within
the bytestring of each key element. e.g. if you have the keys ('foo',
'bar'), ('foobar', 'gam') and do a prefix search for ('foo', None) then
only the former key is returned.

:param keys: An iterable providing the key prefixes to be retrieved.
    Each key prefix takes the form of a tuple the length of a key, but
    with the last N elements 'None' rather than a regular bytestring.
    The first element cannot be 'None'.
:return: An iterable as per iter_all_entries, but restricted to the
    keys with a matching prefix to those supplied. No additional keys
    will be returned, and every match that is in the index will be
    returned.
Nr
r)r�rQ�iter_entries_prefixr[rN�_sanity_check_keyrR�KeyErrorrL�_get_nodes_by_key�_iter_entries_prefix)rr�r�r�r_�nodes_by_keys      rr�� BTreeBuilder.iter_entries_prefixs���"�4�y�����,�,�G�����3�3�D�9���g��Q�R��(�(�:�-�
���q� ����,�,�T�7���;�;�s�+�D��'�'��T�!�W�d�1�g�5�5��T�!�W�,�,��
��-�-�/���2�2�4�t�L�L�L�� �����	M�s7�A:C=�=C*�AC=�$C;�%C=�*
C8�4C=�7C8�8C=c��URc�0nUR(aPURR5H1unup4UnUSSHnUR	U05nM X$U4XRS'M3 ONURR5H0unuptUnUSSHnUR	U05nM X$4XRS'M2 XlUR$)Nr%)rSrLrR�items�
setdefault)rr�r_rar`�key_dict�subkey�_referencess        rr��BTreeBuilder._get_nodes_by_key*s������%��L��#�#�04���0A�0A�0C�,�C�,�*�+�H�"%�c�r�(��#+�#6�#6�v�r�#B��#+�(+�J�(>�H��W�%�	1D�26���1B�1B�1D�-�C�-�+�+�H�"%�c�r�(��#+�#6�#6�v�r�#B��#+�(+�
�H��W�%�	2E�
".���!�!�!r c�f�[UR5[SUR55-$)zgReturn an estimate of the number of keys in this index.

For InMemoryGraphIndex the estimate is exact.
c3�L# �UHnUcMUR5v� M g7f�N)r�)�.0r�s  r�	<genexpr>�)BTreeBuilder.key_count.<locals>.<genexpr>As(���&
�0���
 �G�����0�s�$�$)r]rRr�rQrs rr��BTreeBuilder.key_count<s4��
�4�;�;��#�&
��0�0�&
�#
�
�	
r c��g)z9In memory index's have no known corruption at the moment.Nr?rs r�validate�BTreeBuilder.validateGs�r c��[U[U55(aURUR:$[U[5(ag[e)NF)r��typerRrj�	TypeError�r�others  r�__lt__�BTreeBuilder.__lt__Js;���e�T�$�Z�(�(��;�;����-�-��e�_�-�-���r )rQrRrSrTrPr�N)rr
i��)r?r8)r9r:r;r<r=rrcr^rirhr�ryr~r�rxr&r}r�r�r�r�r�r�r>r?r rrIrIgsm���6(�"'�6!"�FO�3�
*�
'� +�DMQ�^P�d=�.�&')�R&M�P"�$	
�H�r rIc�<^�\rSrSrSrSrU4SjrSrSrSr	U=r
$)�	_LeafNodeiSz*A leaf node for a serialised B+Tree index.)�_keys�max_key�min_keyc��>�[R"XU5nU(aUSSUlUSSUlOS=UlUl[TU]U5 [
U5Ulg)z)Parse bytes to create a leaf node object.rr%N)r��_parse_leaf_linesr�r��superr�dictr�)r�bytes�
key_length�ref_list_length�key_list�	__class__s     �rr�_LeafNode.__init__Xsc���%�6�6���
���#�A�;�q�>�D�L�#�B�<��?�D�L�*.�.�D�L�4�<�
����"��$�Z��
r c�8�[UR55nU$)z3Return a sorted list of (key, (value, refs)) items.)r�r�)rr�s  r�	all_items�_LeafNode.all_itemsfs���t�z�z�|�$���r c�8�[UR55nU$)z!Return a sorted list of all keys.)r�r�)rr�s  r�all_keys�_LeafNode.all_keysks���d�i�i�k�"���r )r9r:r;r<r=�	__slots__rr	rr>�
__classcell__)rs@rr�r�Ss���4�/�I� ��
�r r�c�(�\rSrSrSrSrSrSrSrg)�
_InternalNodeiqz/An internal node for a serialised B+Tree index.)r��offsetc�N�URURS55Ulg)z.Parse bytes to create an internal node object.r�N)�_parse_lines�splitr�)rrs  rr�_InternalNode.__init__vs���%�%�e�k�k�%�&8�9��	r c��/n[USSS5UlUSSH5nUS:Xa U$UR[UR	S555 M7 U$)Nr
�rr r")�intrrmrXr)rr�rr�s    rr�_InternalNode._parse_lines{s_�����%��(�1�2�,�'����!�"�I�D��s�{����
�L�L��t�z�z�%�0�1�2���r N)	r9r:r;r<r=rrrr>r?r rrrqs��9�"�I�:�
r rc���\rSrSrSrS$SjrSrSrSrSr	Sr
S	rS
rSr
SrS
rSrSrSrSrSrSrSrSrSr\S5rSrSrSrSrSrSr Sr!Sr"S r#S!r$S"r%g#)%rji�z�Access to nodes via the standard GraphIndex interface for B+Tree's.

Individual nodes are held in a LRU cache. This holds the root node in
memory except when very large walks are done.
c�h�XlX lX0lSUlUR	5UlSUlXPl[Ul	SUl
U(a0Ul0UlO:[R"[5Ul[ R""S5UlSUlSUlSUlg)a�Create a B+Tree index object on the index name.

:param transport: The transport to read data for the index from.
:param name: The file name of the index on transport.
:param size: Optional size of the index in bytes. This allows
    compatibility with the GraphIndex API, as well as ensuring that
    the initial read (to read the root node header) can be done
    without over-reading even on empty indices, and on small indices
    allows single-IO to read the entire index.
:param unlimited_cache: If set to True, then instead of using an
    LRUCache with size _NODE_CACHE_SIZE, we will use a dict and always
    cache all leaf nodes.
:param offset: The start of the btree index data isn't byte 0 of the
    file. Instead it starts at some point later.
N�d)�
_transport�_name�_sizerl�_compute_recommended_pages�_recommended_pages�
_root_node�_base_offsetr��
_leaf_factory�_leaf_value_cache�_leaf_node_cache�_internal_node_cacher	�LRUCache�_NODE_CACHE_SIZEr�	FIFOCache�
_key_count�_row_lengths�_row_offsets)rr�namerp�unlimited_cachers      rr�BTreeGraphIndex.__init__�s��� $���
��
���
�"&�"A�"A�"C������"��&���!%����$&�D�!�(*�D�%�$-�$6�$6�7G�$H�D�!�)3�(<�(<�S�(A�D�%���� ��� ��r c��[U5$r�)�idrs r�__hash__�BTreeGraphIndex.__hash__�s���$�x�r c���[U[U55=(aY URUR:H=(a9 URUR:H=(a URUR:H$)z@Equal when self and other were created with the same parameters.)r�r�rrr r�s  r�__eq__�BTreeGraphIndex.__eq__�sZ��
�t�T�%�[�)�
*����5�#3�#3�3�
*��
�
�e�k�k�)�
*��
�
�e�k�k�)�		
r c���[U[U55(a1URUR4URUR4:$[U[5(ag[
e)NT)r�r�rr rIr�r�s  rr��BTreeGraphIndex.__lt__�sM���e�T�$�Z�(�(��J�J��
�
�+�u�{�{�E�K�K�.H�H�H��e�\�*�*���r c�.�URU5(+$r�)r7r�s  r�__ne__�BTreeGraphIndex.__ne__�s���;�;�u�%�%�%r c���0nSnUR[U55HJupEUS:XaXPlO4UcURSnXC:aXPRU'OXPR
U'XRU'ML U$)a�Read nodes and cache them in the lru.

The nodes list supplied is sorted and then read from disk, each node
being inserted it into the _node_cache.

Note: Asking for more nodes than the _node_cache can contain will
result in some of the results being immediately discarded, to prevent
this an assertion is raised if more nodes are asked for than are
cachable.

:return: A dict of {node_pos: node}
Nr���)�_read_nodesr�r#r.r(r')rr�found�start_of_leaves�node_posr�s      r�_get_and_cache_nodes�$BTreeGraphIndex._get_and_cache_nodes�s{������"�.�.�v�e�}�=�N�H��1�}�"&��"�*�&*�&7�&7��&;�O��-�:>�-�-�h�7�6:�)�)�(�3�"�(�O�>��r c��URR5n[[R	U[
-55nU$)z�Convert transport's recommended_page_size into btree pages.

recommended_page_size is in bytes, we want to know how many _PAGE_SIZE
pages fit in that length.
)r�recommended_page_sizer�math�ceilr.)r�recommended_read�recommended_pagess   rr!�*BTreeGraphIndex._compute_recommended_pages�s7�� �?�?�@�@�B����	�	�*:�Z�*G� H�I�� � r c���URc[S5eURbURS$[	[
R
UR[-55nU$)z�How many pages are in the index.

If we have read the header we will use the value stored there.
Otherwise it will be computed based on the length of the index.
zJ_compute_total_pages_in_index should not be called when self._size is Noner%)r r/r#r.rrHrIr.)r�total_pagess  r�_compute_total_pages_in_index�-BTreeGraphIndex._compute_total_pages_in_index�sa���:�:�� �2��
��?�?�&��$�$�R�(�(��$�)�)�D�J�J��$;�<�=���r c�^�S[R;a"[R"SURU5 [U5UR:�aAS[R;a+[R"S[U5UR5 U$URc,S[R;a[R"S5 U$UR5nUR5nU[U5-
UR::akU(a#[U5Vs/sHoDU;dM
UPM nnO[[U55nS[R;a[R"SU5 U$URcUnOq[UR5n[U5U:a;[U5S:Xa,S[R;a[R"S5 U$URXU5n[U5nS[R;a[R"SU5 U$s snf)	a�Find extra pages to download.

The idea is that we always want to make big-enough requests (like 64kB
for http), so that we don't waste round trips. So given the entries
that we already have cached and the new pages being downloaded figure
out what other pages we might want to read.

See also doc/developers/btree_index_prefetch.txt for more details.

:param offsets: The offsets to be read
:return: A list of offsets to download
rzexpanding: %s	offsets: %sz(  not expanding large request (%s >= %s)z*  not expanding without knowing index sizez  reading all unread pages: %sr
z  not expanding on first readsz
expanded:  %s)rr�rr�rr]r"r rO�_get_offsets_to_cached_pagesrn�listr#r-�_expand_to_neighborsr�)r�offsetsrN�cached_offsets�x�expanded�
final_offsets�
tree_depths        r�_expand_offsets�BTreeGraphIndex._expand_offsetss����e�'�'�'��L�L�5�t�z�z�7�K��w�<�4�2�2�2��%�+�+�+����>���L��+�+��
�N��:�:���%�+�+�+����I�J��N��8�8�:���:�:�<����^�,�,��0G�0G�G��',�[�'9�U�'9�!�n�=T�A�'9��U����k� 2�3���%�+�+�+����=�x�H��O��?�?�"�$�M��T�.�.�/�J��>�"�Z�/�C��L�A�4E��e�/�/�/��L�L�!A�B��� �5�5����M��}�-�
��e�'�'�'��L�L��-�8����CVs�	H*�'H*c���[U5nS=pV[U5n[U5UR:a�U(a�[5nUHvn	UcURU	5upVU	S-
n
U
S:�a X�;aX�;aX�:�aUR	U
5 U	S-nX�:dMPX�;dMWX�;dM^X�:dMeUR	U5 Mx URU5 Un[U5UR:a	U(aM�U$)a�Expand requests to neighbors until we have enough pages.

This is called from _expand_offsets after policy has determined that we
want to expand.
We only want to expand requests within a given layer. We cheat a little
bit and assume all requests will be in the same layer. This is true
given the current design, but if it changes this algorithm may perform
oddly.

:param offsets: requested offsets
:param cached_offsets: offsets for pages we currently have cached
:return: A set() of offsets after expansion
Nr
r)r�r]r"�_find_layer_first_and_end�add�update)rrUrVrNrY�first�end�new_tips�	next_tipsr��previous�afters            rrT�$BTreeGraphIndex._expand_to_neighborsKs����G��
�����}�%���-� �4�#:�#:�:�x���I����=�!%�!?�!?��!D�J�E���7���q�L� �6� �5� �)��M�M�(�+��a����'��3��2����M�M�%�(�% �2
� � ��+� �H�9�-� �4�#:�#:�:�x�x�:�r c�8�URR5 g)z�Clear out any cached/memoized values.

This can be called at any time, but generally it is used when we have
extracted some information, but don't expect to be requesting any more
from this index.
N)r'�clearrs r�clear_cache�BTreeGraphIndex.clear_cache{s��	
���#�#�%r c�N�URcUR5 US-UR:�a[SUSURS35e[	5n[	5nUR5H.nUR
US5 URUSU5 M0 X2-
$)Nr
�No ref list �, index has �
 ref listsr�)r#�_get_root_node�node_ref_lists�
ValueErrorr�r}r_r`)r�ref_list_numr��refsr�s     r�external_references�#BTreeGraphIndex.external_references�s����?�?�"����!��!��d�1�1�1���|�n�L��9L�9L�8M�Z�X��
��u���u���)�)�+�D��H�H�T�!�W���K�K��Q���-�.�,��{�r c�N�S=p#URHnUnUnX:dM X#4$ X#4$)z�Find the start/stop nodes for the layer corresponding to offset.

:return: (first, end)
    first is the first node in this layer
    end is the first node of the next layer
r)r.)rrrarb�roffsets     rr^�)BTreeGraphIndex._find_layer_first_and_end�s@������(�(�G��E��C�����z��)�
�z�r c��[UR5nURURR	55 UR
bUR
S5 U$)z,Determine what nodes we already have cached.r)r�r(r`r'r�r#r_)rrVs  rrR�,BTreeGraphIndex._get_offsets_to_cached_pages�sM���T�6�6�7�����d�3�3�8�8�:�;��?�?�&����q�!��r c�X�URcURS/5 UR$�Nr)r#�_get_internal_nodesrs rrp�BTreeGraphIndex._get_root_node�s&���?�?�"��$�$�a�S�)����r c�.�0n/nUH.nUS:XaURbURUS'M'XX5'M0 U(dU$URU5nUR	URU55 U$![a URU5 M�f=fr})r#r�rmr[r`rD)r�cache�node_indexesrA�needed�idxs      r�
_get_nodes�BTreeGraphIndex._get_nodes�s��������C��a�x�D�O�O�7��?�?��a���
#�"�Z��
� ���L��%�%�f�-��
���T�.�.�v�6�7����
�
#��
�
�c�"�
#�s�A5�5B�Bc�:�URURU5$)zLGet a node, from cache or disk.

After getting it, the node will be cached.
)r�r()rr�s  rr~�#BTreeGraphIndex._get_internal_nodes�s��
���t�8�8�,�G�Gr c��URbQUR5H<nUR5H%up4X0R;a M*X@RU'M' M> gg)z5Cache directly from key => value, skipping the btree.N)r&�valuesr	)rrr�r_r`s     r�_cache_leaf_values�"BTreeGraphIndex._cache_leaf_values�sU���!�!�-������"&�.�.�"2�J�C��4�4�4��27�*�*�3�/�#3�'�.r c�`�URURU5nURU5 U$)z)Get a bunch of nodes, from cache or disk.)r�r'r�)rr�rAs   r�_get_leaf_nodes�BTreeGraphIndex._get_leaf_nodes�s+������ 5� 5�|�D������&��r c#�# �S[R;a[R"SS5 UR	5(dgUR
SS:XakUR(a-URR5Hunup#XX#4v� M gURR5Hunup$XU4v� M gUR
SnUR
Sn[[XV55nUS/:XaSUR4/nOURU5nUR(a.UH'up�U
R5Hunup#XX#4v� M M) gUH'up�U
R5Hunup$XU4v� M M) g7f)	a�Iterate over all keys within the index.

:return: An iterable of (index, key, value) or
    (index, key, value, reference_lists).
    The former tuple is used when there are no reference lists in the
    index, making the API compatible with simple key:value index types.
    There is no defined order for the result iteration - it will be in
    the most efficient order for the index.
r�r�r�Nr%r
r?r)rr�rr�r�r.rqr#r	rSrnr@)rr_r`rt�_refsrB�
end_of_leaves�needed_offsetsrr2r�s           rr}� BTreeGraphIndex.iter_all_entries�sw����U�&�&�&��!�!�!�%T�U��~�~�������R� �A�%��"�"�*.�/�/�*C�*C�*E�&�C��%��e�2�2�+F�

�,0�?�?�+D�+D�+F�'�C��%��e�,�,�,G���+�+�B�/���)�)�"�-�
��e�O�C�D���a�S� �����)�*�E��$�$�^�4�E���� ���*.�.�.�*:�&�C��%��e�2�2�+;�!�!���+/�>�>�+;�'�C��%��e�,�,�,<�!�s�FF	c���U(d/$U(dSU4/$[U5S:Xa[RXS5U4/$[U5n[	U5n[U5n[U5upV"SS[5n"SS[5n/n	/n
XF:a?/nX[4n
U	RU
5 XF:a$URU5 [U5nXF:aM$XF:�a[U5upVXF:�aMM`![anX|eSnAff=f![anX�eSnAff=f!Ua U	$Ua6 U/nURU5 [U5U4n
U	RU
5 U	$f=f)a?Find the positions where each 'in_key' would fit in fixed_keys.

This is equivalent to doing "bisect_right" on each in_key into
fixed_keys

:param in_keys: A sorted list of keys to match with fixed_keys
:param fixed_keys: A sorted list of keys to match against
:return: A list of (integer position, [key list]) tuples.
rr
c��\rSrSrSrg)�6BTreeGraphIndex._multi_bisect_right.<locals>.InputDonei/r?N�r9r:r;r<r>r?r r�	InputDoner�/���r r�c��\rSrSrSrg)�6BTreeGraphIndex._multi_bisect_right.<locals>.FixedDonei2r?Nr�r?r r�	FixedDoner�2r�r r�N)
r]�bisect�bisect_right�iterr|r��	Exceptionrmr��extend)
�in_keys�
fixed_keys�in_keys_iter�fixed_keys_iter�
cur_in_key�cur_fixed_offset�
cur_fixed_keyr�r��output�cur_out�cur_keys�excs
             r�_multi_bisect_right�#BTreeGraphIndex._multi_bisect_rights�����I����L�>�!��w�<�1���(�(��Q�Z�@�'�J�K�K��G�}��#�J�/���,�'�
�*.��*?�'��	�	�	�	�	�	�����	#���-�!�H�/�:�G��M�M�'�*�$�4� ���
�3�5�)-�l�);�J�%�4�!�1�1�:>��:O�7�(�!�1��� -�5�"+�4��5��)�1�'�0��1���	���
��	#�#�|�H��O�O�L�)��:���1�G��M�M�'�"��
�	#�sl�2D�C2�D�D�
D�)D�0D�2
D�<C>�>D�D�
D�D�D�D�E�#7E�Ec
���S[U54/n[URSS5H�up4UVVs/sHupVUPM	 nnnURU5n/n	UH\up�X�nUR	X�R
5n
XLR-nU	RU
VVs/sHup�X�-U4PM
 snn5 M^ U	nM� UVVs/sHupVUPM	 nnnURU5nX�4$s snnfs snnfs snnf)aTake the given set of keys, and find the corresponding LeafNodes.

:param keys: An unsorted iterable of keys to search for
:return: (nodes, index_and_keys)
    nodes is a dict mapping {index: LeafNode}
    keys_at_index is a list of tuples of [(index, [keys for Leaf])]
rr
r%)	r�r|r.r~r�r�rr�r�)rr��
keys_at_index�_row_pos�next_row_startr��s_keysr�r�next_nodes_and_keys�
node_index�sub_keysr��	positions�node_offsetr�s                r�_walk_through_internal_nodes�,BTreeGraphIndex._walk_through_internal_nodes]s���V�D�\�*�+�
�(1�$�2C�2C�A�b�2I�(J�$�H�3@�A�=�K�C�C�=�L�A��,�,�\�:�E�"$��(5�$�
��(�� �4�4�X�y�y�I�	�,�{�{�:��#�*�*�DM�N�I�[�S�k�'��0�I�N��	)6�0�M�)K�0=�=�}����}��=��$�$�\�2���#�#��%B��O��>s�C'�C-�C3c#�# �[U5nU(dgUR5(dg/nURcUnO^UHXnURRUS5nUb%UupEUR(aXXE4v� M?XU4v� MGURU5 MZ UnU(dgUR
U5upgUHGup�U	(dMXhn
U	H/nX�;dM
X�upEUR(aXXE4v� M)XU4v� M1 MI g7f)a Iterate over keys within the index.

:param keys: An iterable providing the keys to be retrieved.
:return: An iterable as per iter_all_entries, but restricted to the
    keys supplied. No additional keys will be returned, and every
    key supplied that is in the index will be returned.
N)�	frozensetr�r&�getrqrmr�)rr��needed_keysr_r`rtr�nodes_and_keysr�r�r��next_sub_keys            rr��BTreeGraphIndex.iter_entriess��� �������~�~�������!�!�)��K����.�.�2�2�3��=���$�"'�K�E��*�*�#�%�6�6�#�%�0�0��&�&�s�+������ $� A� A�+� N���$2� �J����$�D� (���'�"&�"4�K�E��*�*�#�5�?�?�#�5�9�9�
!)�	%3�s�CD�.Dc��UR5(dURU5 [5$X R:�a[	SUSURS35eURU5upV[5nUGH#up�U	(dMXXn
[5nU	H:nX�;aUR
U5 MX�up�X�nX�U'URU5 M< URU5nU(dMw[5nUH�nUU
;a"U
Uup�X�nX�U'URU5 M+UU
R:aUR
U5 MNUU
R:�aUR
U5 MqUR
U5 M� URU5nU(aM�GM& URU5RU5nU$)a�Find the parent_map information for the set of keys.

This populates the parent_map dict and missing_keys set based on the
queried keys. It also can fill out an arbitrary number of parents that
it finds while searching for the supplied keys.

It is unlikely that you want to call this directly. See
"CombinedGraphIndex.find_ancestry()" for a more appropriate API.

:param keys: A keys whose ancestry we want to return
    Every key will either end up in 'parent_map' or 'missing_keys'.
:param ref_list_num: This index in the ref_lists is the parents we
    care about.
:param parent_map: {key: parent_keys} for keys that are present in this
    index. This may contain more entries than were in 'keys', that are
    reachable ancestors of the keys requested.
:param missing_keys: keys which are known to be missing in this index.
    This may include parents that were not directly requested, but we
    were able to determine that they are not present in this index.
:return: search_keys    parents that were found but not queried to know
    if they are missing or present. Callers can re-query this index for
    those keys, and they will be placed into parent_map or missing_keys
rmrnro)
r�r`r�rqrrr�r_�
differencer�r�)rr�rs�
parent_map�missing_keysrr��parents_not_on_pager�r�r��parents_to_checkr�r`rt�parent_keys�next_parents_to_checkr_�search_keyss                   r�_find_ancestors�BTreeGraphIndex._find_ancestors�s���0�~�~���
����%��5�L��.�.�.���|�n�L��9L�9L�8M�Z�X��
�!%� A� A�$� G���,"�e��$2� �J����$�D�"�u�� (���+� �$�$�\�2�"&�"4�K�E�"&�"4�K�/:�|�,�$�+�+�K�8�!)� 0�:�:�:�F��
#�"�(+��%�+�C��d�{�&*�3�i���&*�&8��*5�3��-�4�4�[�A�����-�0�3�3�C�8� �4�<�<�/�0�3�3�C�8�)�,�,�S�1�?,�@$9�#C�#C�J�#O� �E#�"�-%3�z*�4�4�Z�@�K�K��
���r c#�# �[[U55nU(dgURcUR5 0nUR(axUR
S:Xa UR
5Hup4pVXV4X$'M
 O�0nUR
5H1up4pVXEU4nUn	USSHn
U	RU
05n	M X�US'M3 OuUR
S:XaUR
5H
up4nXRU'M OF0nUR
5H0up4nXE4nUn	USSHn
U	RU
05n	M X�US'M2 UR
S:XaHUHAn[R"X5 UR(aX$up[XX[4v� M9XX$4v� MC g[R"UWU5Shv�N g![a Mtf=fN7f)a�Iterate over keys within the index using prefix matching.

Prefix matching is applied within the tuple of a key, not to within
the bytestring of each key element. e.g. if you have the keys ('foo',
'bar'), ('foobar', 'gam') and do a prefix search for ('foo', None) then
only the former key is returned.

WARNING: Note that this method currently causes a full index parse
unconditionally (which is reasonably appropriate as it is a means for
thunking many small indices into one larger one and still supplies
iter_all_entries at the thunk layer).

:param keys: An iterable providing the key prefixes to be retrieved.
    Each key prefix takes the form of a tuple the length of a key, but
    with the last N elements 'None' rather than a regular bytestring.
    The first element cannot be 'None'.
:return: An iterable as per iter_all_entries, but restricted to the
    keys with a matching prefix to those supplied. No additional keys
    will be returned, and every match that is in the index will be
    returned.
Nr
r%)r�r�r,rprqr[r}r�rNr�r�r�)rr�r�_1r_r`rtr��	key_valuer�r�rbs            rr��#BTreeGraphIndex.iter_entries_prefix7s����,�c�$�i� �����?�?�"����!���������1�$�,0�,A�,A�,C�(�B�U�!&��E�J�-D� "��,0�,A�,A�,C�(�B�U� #�D� 0�I� ,�H�"%�c�r�(��#+�#6�#6�v�r�#B��#+�(1�S��W�%�-D����1�$�&*�&;�&;�&=�N�B�U�!&�#�J�'>� "��&*�&;�&;�&=�N�B�U� #�
�I� ,�H�"%�c�r�(��#+�#6�#6�v�r�#B��#+�(1�S��W�%�'>����q� ����,�,�T�7���*�*�+0�:�(��"��9�9�"���3�3��
��2�2�4��t�L�L�L�� �����	M�sB�E%G�(F5�G�F5� G�/G�0G�5
G�?G�G�Gc�T�URcUR5 UR$)z�Return an estimate of the number of keys in this index.

For BTreeGraphIndex the estimate is exact as it is contained in the
header.
)r,rprs rr��BTreeGraphIndex.key_count�s$���?�?�"����!����r c��/nSnURHnURU5 X#-
nM URU5 Xlg)z:Fill out the _row_offsets attribute based on _row_lengths.rN)r-rmr.)rrU�
row_offsetr�s    r�_compute_row_offsets�$BTreeGraphIndex._compute_row_offsets�sD�����
��$�$�C��N�N�:�&���J�%�	���z�"�#�r c	���US[UR55nX R5:Xd%[R"UR[
5eU[UR55SR
5nUSnUR[5(d[R"U5e[U[[5S5UlUSnUR[5(d[R"U5e[U[[5S5UlUSnUR[5(d[R"U5e[U[[5S5UlUSnUR["5(d[R"U5eU[["5SR%S5Vs/sHnU(dM[U5PM snUlUR)5 [U5[+[-[USS55-S-nXqUS4$![an[R"U5UeSnAff=f![an[R"U5UeSnAff=f![an[R"U5UeSnAff=fs snf![an[R"U5UeSnAff=f)z�Parse the header from a region of bytes.

:param bytes: The data to parse.
:return: An offset, data tuple such as readv yields, for the unparsed
    data. (which may be of length 0).
rNr
rr��,�)r]�
_signaturerN�BadIndexFormatSignaturerrj�
splitlines�
startswithr�BadIndexOptionsrrqrrrr[rr,r�rr-r�r�r�)rr�	signaturer��options_line�er��
header_ends        r�_parse_header_from_bytes�(BTreeGraphIndex._parse_header_from_bytes�s����!�c�$�/�/�"3�4�5�	��O�O�-�-��4�4�T�Z�Z��Q�Q��c�$�/�/�+�,�.�/�:�:�<���Q�x���&�&�'8�9�9��,�,�T�2�2�	:�"%�l�3�7H�3I�3K�&L�"M�D���Q�x���&�&�';�<�<��,�,�T�2�2�	:�"�<��4H�0I�0K�#L�M�D���Q�x���&�&�{�3�3��,�,�T�2�2�	:�!�,�s�;�/?�/A�"B�C�D�O��Q�x���&�&�':�;�;��,�,�T�2�2�	:�+�3�/B�+C�+E�F�L�L�T�R�!�R�F����F��R�!�D��	
�!�!�#���^�c�#�c�5��1�:�*>�&?�?�!�C�
����-�-�-��?�	:��,�,�T�2��9��	:���	:��,�,�T�2��9��	:���	:��,�,�T�2��9��	:��!��
�	:��,�,�T�2��9��	:�sx�5 I� I*�! J�7#K�J<�)J<�8K�
I'�I"�"I'�*
J�4J�J�
J9�J4�4J9�<K�
K'�K"�"K'c
#�# �Sn/nURnUGHnU[-n[nUS:Xa�UR(a[[UR5nO�URRUR5n[U5nX�-
Ul[XH[5V	s/sHn	U	[[X�-
54PM nn	 OeX`R:�a$[SRX`R55e[XpRU-
5nURXF-U45 GM U(dgUbUV	Vs/sH
up�X�X�U-4PM n
n	nO�URc'URRURU5n
OS/n
UHKupgURRU5 U
RX`RRU545 MM U
H�upkXd-nUS:Xa$UR!U5upk[U5S:XaM3["R%U5nUR'[(5(a'UR+X R,UR.5nO@UR'[05(a[3U5nO[SRU55eU[-U4v� M� gs sn	fs snn	f7f)avRead some nodes from disk into the LRU cache.

This performs a readv to get the node data into memory, and parses each
node, then yields it to the caller. The nodes are requested in the
supplied order. If possible doing sort() on the list before requesting
a read may improve performance.

:param nodes: The nodes to read. 0 - first node, 1 - second node etc.
:return: None
Nrz.tried to read past the end of the file {} > {}zUnknown node type for {!r})r$r.r r�r�	get_bytesrr]rnr/�formatrmrl�readvr�r�r��zlib�
decompressr�r�r%r[rqr�r)
rrr�ranges�base_offsetrrrp�	num_bytes�start�data_ranges�datar�s
             rr@�BTreeGraphIndex._read_nodes�s}��������'�'���E��Z�'�F��D���z��:�:��z�4�:�:�6�D�!�O�O�5�5�d�j�j�A�E� #�E�
�I�!*�!8�D�J�&+�;�:�%N��%N�E���J�	�0A� B�C�%N�����J�J�&�(�H�O�O�"�J�J����
�4���f�!4�5���M�M�;�/��6�7�7�8��
�
�IO��HN����e�d�l�3�4��
��K��Z�Z�
��/�/�/�/��
�
�F�C�K��K� &����
�
����'��"�"�F�J�J�O�O�D�,A�#B�C�!'�(�L�F��!�F���{�#�<�<�T�B����t�9��>���O�O�D�)�E����
�+�+��)�)�%�1A�1A�4�CV�CV�W���!�!�.�1�1�$�U�+��$�%A�%H�%H��%O�P�P��J�&��,�,�(��9��$�s �B#K�%J8�A9K�<J=�E3Kc��[$)z'The file signature for this index type.)r�rs rr��BTreeGraphIndex._signatures���r c���UR5 [UR5S:�aURSnOSnURSnUR	[[
X555HnM g)z6Validate that everything in the index can be accessed.r
r%N)rpr]r-r.r@rSrn)r�
start_node�node_end�_nodes    rr��BTreeGraphIndex.validatesm��	
�����t� � �!�A�%��*�*�1�-�J��J��$�$�R�(���%�%�d�5��+F�&G�H�E��Ir )r$rlr(r,r[r%r'r&rr"r#r-r.r rrqN)Fr)&r9r:r;r<r=rr4r7r�r<rDr!rOr[rTrjrur^rRrpr�r~r�r�r}�staticmethodr�r�r�r�r�r�r�r�r@r�r�r>r?r rrjrj�s����%!�N�
��&��8!��&F�P.�`&��
����"H�	8��)-�V�R��R�h $�D5:�n�BHM�T�$�/.�bI-�V�r rj)�_btree_serializer_pyx)�_btree_serializer_pyN)+r=�iorr�globals�rrrr	r
rrrrNrrrr�r�r�r�r�r(r.r*rrArFrOrIrr�rrj�_gcchk_factoryr�r��_parse_into_chk�ImportErrorr��failed_to_load_extensionr�r?r r�<module>rs��$��%���I���U�T�T�!�G�G�(��%��
�
�#������
�
���$�$�N&�+�&�F�k�F�i�:�/�/�i�X���<��([�[�|��<�<�&�6�6�N���<��$�$�Q�'�;�;��<�s�&B9�9C!�?C�C!

Youez - 2016 - github.com/yon3zu
LinuXploit