add-determinism 0.7.3

RPM buildroot helper to strip nondeterministic bits in files
Documentation
B

��^��@s�ddlTddlZGdd�de�ZGdd�de�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
d$dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd �Zd!Zd"Zed#kr�e�Ze�dS)%�)�*Nc@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�BlockcCsF||_tj|ddd�|��|�|ddd�|�d�|��dS)NZsquareF)�shapeZvisibleg�?��black)�size�Turtle�__init__Zpu�	shapesize�	fillcolor�st)�selfr�r�2/usr/lib64/python3.7/turtledemo/sorting_animate.pyr	s
zBlock.__init__cCs|�d�dS)NZred)r)r
rrr�glowsz
Block.glowcCs|�d�dS)Nr)r)r
rrr�unglow"szBlock.unglowcCsd�|j�S)NzBlock size: {0})�formatr)r
rrr�__repr__%szBlock.__repr__N)�__name__�
__module__�__qualname__r	rrrrrrrrsrc@s<eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
S)�ShelfcCs||_d|_dS)Nij���)�y�x)r
rrrrr	+szShelf.__init__cCsP|��\}}}|dd}|�|j|�|�|jdt|��|�|�dS)Nr��")r
�setyr�setxr�len�append)r
�d�width�_�y_offsetrrr�push0s
z
Shelf.pushcCs4x.||d�D]}|��\}}|�|d�qWdS)Nr)�posr)r
�i�b�xposr"rrr�_close_gap_from_i8szShelf._close_gap_from_icCs4x.||d�D]}|��\}}|�|d�qWdS)Nr)r%r)r
r&r'r(r"rrr�_open_gap_from_i=szShelf._open_gap_from_icCs,t�||�}|��|�d�|�|�|S)N��)�list�poprrr))r
�keyr'rrrr-Bs


z	Shelf.popcCsb|�|�t�|||�|�|jd|�|��\}}}|dd}|�|j|�|��dS)Nrrr)	r*r,�insertrrr
rrr)r
r.r'r!r"r#rrrr/Is
zShelf.insertN)	rrrr	r$r)r*r-r/rrrrr)srcCsdt|�}xVtd|�D]H}|}x,|dkrH||j||djkrH|d}qW|�||�|��qWdS)N�r)r�rangerr/r-)�shelf�lengthr&Zholerrr�isortSs"r4cCsrt|�}xdtd|d�D]R}|}x.t|d|�D]}||j||jkr0|}q0W||kr|�||�|��qWdS)Nrr0)rr1rr/r-)r2r3�jZiminr&rrr�ssort\sr6cCsr||}|�||�|��|}x<t||�D].}||j|jkr*|�||�|��|d}q*W|�||�|��|S)Nr0)r/r-r1r)r2�left�right�pivot_indexZpivotZstore_indexr&rrr�	partitionfsr:cCs>||kr:|}t||||�}t|||d�t||d|�dS)Nr0)r:�qsort)r2r7r8r9Zpivot_new_indexrrrr;qs
r;cCs�t�t�ttd��}t�|�xPt|�D]D\}}x:t|tt��D](}t|j	|dkrDt�
|t�|��qDWq,Wtt
�ttdd�t�dS)N�
r0)�line)�disable_keys�clearr,r1�randomZshuffle�	enumerater�srr/r-�	show_text�
instructions1�
instructions2�enable_keys)�targetr&�tr5rrr�	randomizexs
rIcCs(d|}tdd|�t|ddd�dS)Nrri����center)ZCourier�Zbold)ZalignZfont)Zgoto�write)�textr=rrrrC�srCcCs@t�t�td�tt�t�tt�ttdd�t�dS)NzSelection Sortr0)r=)r>r?rCr6rBrDrErFrrrr�start_ssort�srNcCs@t�t�td�tt�t�tt�ttdd�t�dS)NzInsertion Sortr0)r=)r>r?rCr4rBrDrErFrrrr�start_isort�srOcCsLt�t�td�ttdtt�d�t�tt�ttdd�t�dS)NZ	Quicksortrr0)r=)	r>r?rCr;rBrrDrErFrrrr�start_qsort�srPcCs,td�ad}x|D]}t�t|��qWdS)Ni8���)
�r��	r0�r<���)rrBr$r)Zvalsr&rrr�
init_shelf�s
rXcCs,tdd�tdd�tdd�tdd�dS)NrBr&�q�r)�onkeyrrrrr>�s


r>cCs6ttd�ttd�ttd�ttd�ttd�dS)Nr&rBrYrZZspace)r[rOrNrPrIZbyerrrrrF�s




rFcCs@t���t�t�t�tt�ttdd�t�t	�dS)Nr0)r=Z	EVENTLOOP)
Z	getscreenZclearscreenZhtZpenuprXrCrDrErFZlistenrrrr�main�s
r\zApress i for insertion sort, s for selection sort, q for quicksortz spacebar to quit, r to randomize�__main__)r)Zturtler@rrr,rr4r6r:r;rIrCrNrOrPrXr>rFr\rDrEr�msgZmainlooprrrr�<module>s**