__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

��g��B�SSKrSSKJrJr SSKrSSKrSSKrSSKrSSK	r
SSKr
SSKJ
r
 SSKr"SS\R 5r\S:XGa+\
R&R)5r\R+\
R,R/55 \R0"S5r\R55R75r\R:"5r\R?5 S\R@RB<S	\R@RDSRB<S
\<S3r#\"\$"\R@RJRM55\#\R:"5\5r'\'RQ5 gg!\a SSKJrJr GN|f=f!\a
 SSKJ
r
 GNpf=f)�N)�Empty�Queue)�urlopenc��\rSrSrSr"SS\R5rSSjrSr	SSjr
S	rSS
jrSSjr
SrS
rg)�
MirrorTest�z@Determines the best mirrors by perfoming ping and download test.c�(�\rSrSrSrSSjrSrSrg)�MirrorTest.PingWorker�z�Use the command line command ping to determine the server's
response time. Using multiple threads allows to run several
test simultaneously.c��XPlX`lX@lX0lXlX l[R"S5Ul[RRU5 g)Nz^rtt .* = [\.\d]+/([\.\d]+)/.*)�borders�mod�parent�id�jobs�results�re�compile�match_result�	threading�Thread�__init__)�selfrrrrr
rs       �?/usr/lib/python3/dist-packages/softwareproperties/MirrorTest.pyr�MirrorTest.PingWorker.__init__sF��"�L��H� �K��G��I�"�L� "�
�
�+L� M�D�����%�%�d�+�c���SnURR5(GdURRR	5(Ga�URRS5nURnURRSU-5 [R"SSSSSU/[R[RSS	9RnUR5nU(dO#[R"UR U5nM;[$R&R)5 [$=R*S-
slURR-[$R*[$R.UR0UR25 U(a*UR4R7[9US5UW/5 [$R&R;5 URR5(d-URRR	5(aGM�gggg!["a g URRS
W-5 GNQ=f)
NFz
Pinging %s...�pingz-qz-c 2z-W 1z-i 0.5T)�stdout�stderr�universal_newlineszSkipping %s�r)r�emptyr�running�isSet�get�hostname�
report_action�
subprocess�Popen�PIPE�STDOUTr�readliner�findallrrr�completed_lock�acquire�	completed�report_progress�todor
rr�append�float�release)r�result�mirror�host�commando�lines      r�run�MirrorTest.PingWorker.run#s����F��i�i�o�o�'�'�D�K�K�,?�,?�,E�,E�,G�,G�D�!�Y�Y�]�]�5�1�F�!�?�?�D��K�K�-�-�o��.D�E�)�/�/���v�v�x�Y]�0^�7A���7A�7H�7H�CG� I�JP����'�0�0�2��#�!�!#���D�,=�,=�t�!D��	��)�)�1�1�3��$�$��)�$����+�+�J�,@�,@�,6�O�O�,0�L�L�,0�H�H�6���L�L�'�'��v�a�y�)9�4��(H�I��)�)�1�1�3�9�i�i�o�o�'�'�D�K�K�,?�,?�,E�,E�,G�,G�'�,G�'�����D��K�K�-�-�m�d�.B�C�s�B H5�/#H5�5
I#�I#)r
rrrrrrN)�rr"�rr)�__name__�
__module__�__qualname__�__firstlineno__�__doc__rr<�__static_attributes__�rr�
PingWorkerr
s��	#�	,�	4rrGNc�h�[RRU5 SUlSUlX0lSUlX l/UlS[l
[R"5[l[U5[lXlU(d "5UlgX@lg)N�)rrgr)rrr�action�progress�event�best�	test_file�threadsrr1�Lockr/�lenr3�mirrors�Eventr$)rrRrNrLr$s     rr�MirrorTest.__init__Csy�����!�!�$�'����#��
��
���	�"����� �
��$-�N�N�$4�
�!��g�,�
�����$�?�?�,�D�L�"�Lrc�h�XlUR(aURR5 gg�N)rJrL�set)r�texts  rr(�MirrorTest.report_actionTs!�����:�:��J�J�N�N��rc��XS-X$S-USUSUS-
U-U--4UlUR(aURR5 gg)zISubclasses should override this method to receive
progress status updatesrr"N)rKrLrW)r�current�maxr
rs     rr2�MirrorTest.report_progressYs`��!�q�6�)��1�v�� ���w�q�z�G�A�J�'>�#�&E��&O�O�Q��
��:�:��J�J�N�N��rc
�p�URSSSS9n[UR5nUS:�arURSSUR[R
"SUS-
5/5 URSSUR[R
"SUS-
5/5 UR
UVs/sHo3SPM	 snS[R[R4S	9nUH"upV[S
UR<SU<35 M$ U(dgUSSRn[SU-5 U$s snf)
N�)r��?)r�)r\r
r�rr"�r`r")r
rzmirror: z	 - time: zand the winner is: %s)�
run_ping_testrQrRr4�random�randint�run_download_testrr3�printr')r�results_ping�size�rr�t�h�winners        r�
run_full_test�MirrorTest.run_full_testbs���)�)�a��u�)�M���4�<�<� ���!�8�����A�t�|�|�F�N�N�1�d�1�f�4M�'N� O�P�����A�t�|�|�F�N�N�1�d�1�f�4M�'N� O�P��(�(��)E��1�A�$��)E�19�.8�o�o�.8�o�o�.?�)�@���F�Q��Q�Z�Z��;�<�����Q�Z��]�+�+�F��)�F�2�3��M��*Fs�.D3c	��US:XaURn[5nUHnURU5 M /n[S5HEn[RXWX�X45n	URRU	5 U	R5 MG URHn	U	R5 M UR5 USU$)z�Performs ping tests of the given mirrors and returns the
best results (specified by max).
Mod and borders could be used to tweak the reported result if
the download test is only a part of a whole series of tests.N�r)rRr�put�rangerrGrOr4�start�join�sort)
rrRr\r
rr�mr�irls
          rrd�MirrorTest.run_ping_testws���
�d�?��l�l�G��w���A��H�H�Q�K�����r��A��%�%�d�Q�g�K�A��L�L����"�
�G�G�I��
���A�
�F�F�H��	�����q��~�rc�T^�U4SjnUS:XaTRn/nUHsnTRR5(d OSU"U5nUS:�aURX�/5 TR	URU5S-[
U5SU5 Mu UR5 USU$)z�Performs download tests of the given mirrors and returns the
best results (specified by max).
Mod and borders could be used to tweak the reported result if
the download test is only a part of a whole series of tests.c�>�UR5S<STR<3nTRSU-5 [R"5n[	USS9RS5 [R"5U-
$! g=f)Nr�/zDownloading %s...rb)�timeouti�)�
get_repo_urlsrNr(�timer�read)r8�urlrurs   �r�test_download_speed�9MirrorTest.run_download_test.<locals>.test_download_speed�sv���#�1�1�3�A�6�!�^�^�-�C����2�S�8�9��I�I�K�E�
���Q�'�,�,�V�4��y�y�{�U�*�*��
��s�0B�BNrr"rc)rRr$r%r4r2�indexrQrw)	rrRr\r
rr�rrx�
download_times	`        rrg�MirrorTest.run_download_test�s����		��d�?��l�l�G����A��<�<�%�%�'�'��/��2�M��q� ����
�1�2�� � ����q�!1�A�!5�s�7�|�X�s�S�
�	�����q��~�rc�b�UR5UlURR5 g)z/Complete test exercise, set self.best when doneN)rorMr$�clear)rs rr<�MirrorTest.run�s"���&�&�(��	������r)rJrMrLrRrKr$rNrOrV))r�dr?)NNr>r?)r@rArBrCrDrrrGrr(r2rordrgr<rErFrrrrsE��J�+4�Y�%�%�+4�Z#�"�
��*�.AF�#��<rr�__main__zdpkg --print-architecturezdists/r}z/binary-z/Packages.gz))r�queuerr�ImportErrorr�rr)�os�aptsources.distro�
aptsources�aptsources.sourceslist�urllib.requestr�urllib2rerrr@�distro�
get_distro�get_sources�sourceslist�SourcesList�popen�piper��strip�archrSr$rW�source_template�name�
componentsrN�list�
mirror_set�values�approrFrr�<module>r�sc���#�"��	��	��� �&��[��!�!�[�z�z��
�
�
�
)�
)�
+�F�
���z�-�-�9�9�;�<�
�8�8�/�0�D��9�9�;����D��o�o��G��K�K�M��'�'�,�,��'�'�2�2�1�5�:�:���I��T�&�0�0�;�;�B�B�D�E��	��� 1�7�<�C�������W�#�"�"�#��� ��� �s"�E9�F�9F�
F�F�F

Filemanager

Name Type Size Permission Actions
AptAuth.cpython-313.pyc File 5.21 KB 0644
CountryInformation.cpython-313.pyc File 2.14 KB 0644
MirrorTest.cpython-313.pyc File 10.88 KB 0644
SoftwareProperties.cpython-313.pyc File 46.85 KB 0644
__init__.cpython-313.pyc File 628 B 0644
cloudarchive.cpython-313.pyc File 7.36 KB 0644
distro.cpython-313.pyc File 1.48 KB 0644
ppa.cpython-313.pyc File 11.7 KB 0644
shortcuthandler.cpython-313.pyc File 37.76 KB 0644
shortcuts.cpython-313.pyc File 1.01 KB 0644
sourceslist.cpython-313.pyc File 2.03 KB 0644
sourceutils.cpython-313.pyc File 3.26 KB 0644
uri.cpython-313.pyc File 1.84 KB 0644
Filemanager