Files
wg-backend-django/dell-env/lib/python3.11/site-packages/idna/__pycache__/intranges.cpython-311.pyc

24 lines
2.9 KiB
Plaintext
Raw Normal View History

2023-10-30 14:40:43 +07:00
<EFBFBD>
<06>]dY<00><00><><00>dZddlZddlmZmZdeedeedffd<07>Zded edefd
<EFBFBD>Zd edeeeffd <0C>Zd edeedfde fd<0F>Z
dS)a 
Given a list of integers, made up of (hopefully) a small number of long runs
of consecutive integers, compute a representation of the form
((start1, end1), (start2, end2) ...). Then answer the question "was x present
in the original list?" in time O(log(# runs)).
<EFBFBD>N)<02>List<73>Tuple<6C>list_<74>return.c<00>j<00>t|<00><00>}g}d}tt|<01><00><00><00>D]u}|dzt|<01><00>kr||||dzdz
kr<01>1||dz|dz<00>}|<02>t |d|ddz<00><00><00><00>|}<03>vt |<02><00>S)aRepresent a list of integers as a sequence of ranges:
((start_0, end_0), (start_1, end_1), ...), such that the original
integers are exactly those x such that start_i <= x < end_i for some i.
Ranges are encoded as single integers (start << 32 | end), not as tuples.
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>r)<06>sorted<65>range<67>len<65>append<6E> _encode_range<67>tuple)r<00> sorted_list<73>ranges<65>
last_write<EFBFBD>i<> current_ranges <20>g/home/infidel/Sync/TIP/WireGuard/ocp-wg-backend/dell-env/lib/python3.11/site-packages/idna/intranges.py<70>intranges_from_listr s<><00><00><19><15>-<2D>-<2D>K<EFBFBD> <0F>F<EFBFBD><13>J<EFBFBD> <12>3<EFBFBD>{<7B>#<23>#<23> $<24> $<24><17><17><01> <0C>Q<EFBFBD>3<EFBFBD><13>[<5B>!<21>!<21> !<21> !<21><1A>1<EFBFBD>~<7E><1B>Q<EFBFBD>q<EFBFBD>S<EFBFBD>!1<>!<21>!3<>3<>3<><18>#<23>J<EFBFBD>q<EFBFBD>L<EFBFBD><11>1<EFBFBD><13>$4<>5<> <0A><0E> <0A> <0A>m<EFBFBD>M<EFBFBD>!<21>$4<>m<EFBFBD>B<EFBFBD>6G<36>!<21>6K<36>L<>L<>M<>M<>M<><16>
<EFBFBD>
<EFBFBD> <10><16>=<3D>=<3D><18><00>start<72>endc<00><00>|dz|zS)N<> <00>)rrs rrr s<00><00> <11>R<EFBFBD>K<EFBFBD>3<EFBFBD> <1E>r<00>rc<00><00>|dz |dzfS)Nrl<00><EFBFBD>r)rs r<00> _decode_ranger#s<00><00> <0A><12>G<EFBFBD>q<EFBFBD>M<EFBFBD>*<2A> +<2B>+r<00>int_rc<00><00>t|d<01><00>}tj||<02><00>}|dkr-t||dz
<00><00>\}}||cxkr|krnndS|t |<01><00>kr t||<00><00>\}}||krdSdS)z=Determine if `int_` falls into one of the ranges in `ranges`.rr TF)r<00>bisect<63> bisect_leftrr )r r<00>tuple_<65>pos<6F>left<66>right<68>_s r<00>intranges_containr)'s<><00><00> <1A>4<EFBFBD><11> #<23> #<23>F<EFBFBD>
<10>
<1C>V<EFBFBD>V<EFBFBD>
,<2C>
,<2C>C<EFBFBD> <0B>Q<EFBFBD>w<EFBFBD>w<EFBFBD>#<23>F<EFBFBD>3<EFBFBD>q<EFBFBD>5<EFBFBD>M<EFBFBD>2<>2<> <0B><04>e<EFBFBD> <0F>4<EFBFBD> <1F> <1F> <1F> <1F>%<25> <1F> <1F> <1F> <1F> <1F><17>4<EFBFBD>
<EFBFBD>S<EFBFBD><16>[<5B>[<5B><18><18><1F><06>s<EFBFBD> <0B>,<2C>,<2C><07><04>a<EFBFBD> <0F>4<EFBFBD><<3C><<3C><17>4<EFBFBD> <10>5r) <0B>__doc__r"<00>typingrr<00>intrrr<00>boolr)rrr<00><module>r.s<><00><01><04><04><0E> <0A> <0A> <0A><1E><1E><1E><1E><1E><1E><1E><1E><19>t<EFBFBD>C<EFBFBD>y<EFBFBD><19>U<EFBFBD>3<EFBFBD><03>8<EFBFBD>_<EFBFBD><19><19><19><19>*<1F><13><1F>3<EFBFBD><1F>3<EFBFBD><1F><1F><1F><1F>,<2C>S<EFBFBD>,<2C>U<EFBFBD>3<EFBFBD><03>8<EFBFBD>_<EFBFBD>,<2C>,<2C>,<2C>,<2C><11>C<EFBFBD><11><15>s<EFBFBD>C<EFBFBD>x<EFBFBD><1F><11>T<EFBFBD><11><11><11><11><11>r