HEX

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit - prohibited by configuration in /home/u547966/brikov.ru/www/wp-content/plugins/admin-menu-editor/menu-editor.php on line 745
Server: Apache
System: Linux 4.19.0-0.bpo.9-amd64 x86_64 at red40
User: u547966 (5490)
PHP: 5.3.29-mh2
Disabled: syslog, dl, popen, proc_open, proc_nice, proc_get_status, proc_close, proc_terminate, posix_mkfifo, chown, chgrp, accelerator_reset, opcache_reset, accelerator_get_status, opcache_get_status, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
Upload Files
File: //usr/lib/python2.7/dist-packages/mercurial/similar.pyc
ó
ÛXc@@sgddlmZddlZddlmZddlmZmZmZd„Z	d„Z
d„ZdS(	i(tabsolute_importNi(t_(tbdifftmdifftutilc	c@s1t|ƒt|ƒ}i}xjt|ƒD]\\}}|jjtdƒ|d|dtdƒƒtj|jƒƒjƒ}|||<q)Wxˆt|ƒD]z\}}|jjtdƒ|t|ƒd|dtdƒƒtj|jƒƒjƒ}||kr–|||fVq–q–W|jjtdƒdƒdS(s¦find renamed files that have no changes

    Takes a list of new filectxs and a list of removed filectxs, and yields
    (before, after) tuples of exact matches.
    ssearching for exact renamesttotaltunittfilesN(
tlent	enumeratetuitprogressRthashlibtsha1tdatatdigesttNone(trepotaddedtremovedtnumfilesthashestitfctxth((s5/usr/lib/python2.7/dist-packages/mercurial/similar.pyt_findexactmatchess
"c
	#@s-i}xÐt|ƒD]Â\}‰|jjtdƒ|dt|ƒdtdƒƒtj‡fd†ƒ‰‡fd†}x[|D]S}|j|d	|fƒd}||j	ƒƒ}	|	|kr~ˆ|	f||<q~q~WqW|jjtdƒd	ƒx4|j
ƒD]&\}
}|\}}||
|fVqÿWd	S(
sÄfind potentially renamed files based on similar file content

    Takes a list of new filectxs and a list of removed filectxs, and yields
    (before, after, score) tuples of partial matches.
    ssearching for similar filesRRRc@sˆjƒ}|tj|ƒfS(N(RRt
splitnewlines(torig(tr(s5/usr/lib/python2.7/dist-packages/mercurial/similar.pyR:sc@sŽˆƒ\}}d}tj||ƒ}xB|D]:\}}}}x%|||!D]}	|t|	ƒ7}qNWq.Wt|ƒt|ƒ}
|d|
S(Nig@(RtblocksR(ttextRtlinestequaltmatchestx1tx2ty1ty2tlinetlengths(R(s5/usr/lib/python2.7/dist-packages/mercurial/similar.pytscore?sit	searchingN(R	R
RRRRt	cachefunctgetRRt	iteritems(
RRRt	thresholdtcopiesRR(tat	bestscoretmyscoretdesttvtsource((RRs5/usr/lib/python2.7/dist-packages/mercurial/similar.pyt_findsimilarmatches.s

cc@sJ|d}|d}tg|D]&}||jƒdkr||^qƒ}tg|D]2}||krW||jƒdkrW||^qWƒ}xSt|t|ƒt|ƒƒD]3\}	}
|j|
ƒ|	jƒ|
jƒdfVq±W|dkrFxOt|t|ƒt|ƒ|ƒD])\}	}
}|	jƒ|
jƒ|fVqWndS(s:find renamed files -- yields (before, after, score) tuplest.igð?N(RtsettsizeRtsortedtremovetpathR5(RRRR-t	parentctxt
workingctxtfpt
addedfilestremovedfilesR/tbR(((s5/usr/lib/python2.7/dist-packages/mercurial/similar.pytfindrenamesWs

)5	"
	((t
__future__RRti18nRtRRRRR5RB(((s5/usr/lib/python2.7/dist-packages/mercurial/similar.pyt<module>s		)