add-determinism 0.7.3

RPM buildroot helper to strip nondeterministic bits in files
Documentation
3

�
�^S
�@s�dZddlTddlmZmZddlmZmZd*Zd	ed
ed�Z	dd
�Z
dd�Zdd�Zdd�Z
d+dd�Zdd�Zdd�Zdd�Zdd�Zdded,d	fd d!�Zefd"d#�Zd$d%�Zed&kr�e�Ze�d'S)-a�       xturtle-example-suite:

          xtx_kites_and_darts.py

Constructs two aperiodic penrose-tilings,
consisting of kites and darts, by the method
of inflation in six steps.

Starting points are the patterns "sun"
consisting of five kites and "star"
consisting of five darts.

For more information see:
 http://en.wikipedia.org/wiki/Penrose_tiling
 -------------------------------------------
�)�*)�cos�pi)�clock�sleep�g�?�g@���
cCsTt|}td�t|�td�t|�td�t|�td�t|�td�dS)N�$�l�)�f�lt�fd�rt)�l�fl�r�*/usr/lib64/python3.6/turtledemo/penrose.py�kitesrcCsTt|}td�t|�td�t|�td�t|�td�t|�td�dS)Nrr)rrrr)rrrrr�dart%srcCs�|dkrFt�\}}tt��t|d�t|d�}}}dt|||f<dSt|}td�t||d�t|�t	d�t
||d�td�t|t�t	d�t
||d�td�t|�t	d	�t||d�td�dS)
Nrr
Trrr���)�pos�int�heading�round�tiledictrr�inflatedartrr�inflatekite�d)r�n�px�py�h�x�yrrrrr"1s(
"r"cCs�|dkrFt�\}}tt��t|d�t|d�}}}dt|||f<dSt|}t||d�td�t|�t	d�t
||d�td�t|t�t	d�t
||d�t|�t	d	�dS)
Nrr
Frrr�6�~r)rrrrr rr"rrrr!r#)rr$r%r&r'r(r)rrrrr!Gs"
"r!cCs�t�|t|}t|d|d|�x\tD]T}|\}}}t||�t|�t|rhtd�tdd�ntd�tdd�t�q,WdS)	NgY@r�blackr��?r)rr-r)r-rr)	�clearrZ	shapesizer Zsetpos�
setheading�shapeZcolorZstamp)rr$�th�kr'r(r)rrr�drawZs



r3cCs(x"td�D]}t||�td�q
WdS)Nr�H)�ranger"r)rr$�irrr�sunjs
r7cCs(x"td�D]}t||�td�q
WdS)Nrr4)r5r!r)rr$r6rrr�staros
r8cCsTtd�t�td�t�tdt��t�td�t�tdt��td�dS)Nr�drrr)�tracerZ
begin_polyrZend_polyZregister_shapeZget_polyrrrrr�
makeshapestsr;cCs$t�t�t�t�td�dS)N�user)�resetZhtZpur;Z
resizemoderrrr�start�s
r>���c
Cs�t|�td�iat�}td�|||�t�}t|||�td�t�}tdd�tD��}tdd�tD��}	td||	||	f�dS)NrrcSsg|]}t|r|�qSr)r )�.0r(rrr�
<listcomp>�sztest.<locals>.<listcomp>cSsg|]}t|s|�qSr)r )rAr(rrrrB�sz"%d kites and %d darts = %d pieces.)�gotor/r rr:r3�len�print)
rr$�fun�startposr1�a�b�cZnkZndrrr�test�s
rKcCsPt�xDtd�D]8}t�}td||�t�}||}|dkrtd|�qWdS)N�i,r	)r>r5rrKr)rFr6rHrI�trrr�demo�srNcCsjtd�tddd�tt�td�tt�td�tdd�tddd�td	d
dd�t	dddd�dS)NZlogog333333�?rr	r,r?gffffff�?rzPlease wait...�center�Arial Blackr�bold)ZalignZfontiXrL�F�u)rGZDonei8���)rPrrQ)rRrS)
�modeZbgcolorrNr7rr8ZpencolorrC�writerKrrrr�main�s

rV�__main__Ng����w�@gP�/7���?gP�/7���?)r	)rr)�__doc__ZturtleZmathrrZtimerrrr#rrr"r!r3r7r8r;r>rKrNrV�__name__�msgZmainlooprrrr�<module>s(