Hacked By AnonymousFox

Current Path : /proc/thread-self/root/proc/thread-self/root/lib64/python2.7/Demo/scripts/
Upload File :
Current File : //proc/thread-self/root/proc/thread-self/root/lib64/python2.7/Demo/scripts/markov.pyc

�
Afc@s6ddd��YZd�Zedkr2e�ndS(tMarkovcBs,eZd�Zd�Zd�Zd�ZRS(cCs||_||_i|_dS(N(thistsizetchoicettrans(tselfRR((s+/usr/lib64/python2.7/Demo/scripts/markov.pyt__init__s		cCs |jj|g�j|�dS(N(Rt
setdefaulttappend(Rtstatetnext((s+/usr/lib64/python2.7/Demo/scripts/markov.pytadd	scCs�|j}|j}|d|d �xFtt|��D]2}||td||�|!|||d!�q6W||t|�|d�dS(Nii(RR
tNonetrangetlentmax(RtseqtnR
ti((s+/usr/lib64/python2.7/Demo/scripts/markov.pytputs		0cCs�|j}|j}|j}||d�}xQtr~|tdt|�|�}||}||�}|sqPn||7}q.W|S(Ni(RRRRtTrueRR
(RRRRRtsubseqtoptionsR	((s+/usr/lib64/python2.7/Demo/scripts/markov.pytgets				
(t__name__t
__module__RR
RR(((s+/usr/lib64/python2.7/Demo/scripts/markov.pyRs			cCs�ddl}ddl}ddl}|jd}y|j|d�\}}Wnm|jk
r�d|jdGHdGHdGHdGHd	GHd
GHdGHdGHd
GHdGHdGHdGHdGH|jd�nXd}t}d}x�|D]�\}}	d|ko�dknrt|d�}n|dkr&t}n|dkr?|d7}n|dkrTd}n|dkr�t}q�q�W|sdg}nt	||j
�}
y�x�|D]�}|dkr�|j}|j�r�dGHq�q�nt
|d�}|r�dG|GdGHn|j�}
|j�|
jd�}xh|D]`}|dkr;dGHn|j�}|r!|rbt|�}nd j|�}|
j|�q!q!Wq�WWntk
r�d!GHnX|
js�d"GHdS|r�d#GHn|dkrIxN|
jj�D]=}|dkst|�|kr�t|�G|
j|GHq�q�W|dkrEtd$�G|
jd$GHnHnx�tr�|
j�}|rm|}n|j�}d}d%}xF|D]>}|t|�|kr�Hd}n|G|t|�d7}q�WHHqLWdS(&Ni����it0123456789cdwqs"Usage: %s [-#] [-cddqw] [file] ...isOptions:s$-#: 1-digit history size (default 2)s-c: characters (default)s	-w: wordss-d: more debugging outputs-q: no debugging outputs3Input files (default stdin) are split in paragraphss1separated blank lines and each paragraph is splits0in words by whitespace, then reconcatenated withs#exactly one space separating words.s0Output consists of paragraphs separated by blanks4lines, where lines are no longer than 72 characters.is-0s-9s-cs-ds-qs-wt-sSorry, need stdin from filetrt
processings...s

sfeeding ...t s-Interrupted -- continue with data read so farsNo valid input filessdone.tiH(tsystrandomtgetopttargvterrortexittFalsetintRRRtstdintisattytopentreadtclosetsplitttupletjoinRtKeyboardInterruptRtkeysRR
treprR(RR R!targstoptsRtdo_wordstdebugtotatmtfilenametfttexttparalisttparatwordstdatatkeyRtlimittw((s+/usr/lib64/python2.7/Demo/scripts/markov.pyttest#s�$
	
	

		


				
	t__main__N((RRCR(((s+/usr/lib64/python2.7/Demo/scripts/markov.pyt<module>s 	U

Hacked By AnonymousFox1.0, Coded By AnonymousFox