-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/bzrlib/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/bzrlib/estimate_compressed_size.pyc

ó
î:ïNc@@s<dZddlmZddlZdefd„ƒYZdS(s'Code to estimate the entropy of contenti(tabsolute_importNt
ZLibEstimatorcB@s5eZdZdd„Zd„Zd„Zd„ZRS(s2Uses zlib.compressobj to estimate compressed size.g@cC@s@||_tjƒ|_d|_d|_d|_d|_dS(sCreate a new estimator.

        :param target_size: The desired size of the compressed content.
        :param min_compression: Estimated minimum compression. By default we
            assume that the content is 'text', which means a min compression of
            about 2:1.
        ig@N(t_target_sizetzlibtcompressobjt_compressort_uncompressed_size_addedt_compressed_size_addedt_unflushed_size_addedt_estimated_compression(tselfttarget_sizetmin_compression((sC/usr/lib/python2.7/dist-packages/bzrlib/estimate_compressed_size.pyt__init__s				cC@sb|jt|ƒ7_|jt|ƒ7_t|jj|ƒƒ}|dkr^|j|ƒndS(Ni(RtlenRRtcompresst
_record_z_len(R
tcontenttz_size((sC/usr/lib/python2.7/dist-packages/bzrlib/estimate_compressed_size.pytadd_content*s
cC@s5|j|7_d|_t|jƒ|j|_dS(Ni(RRtfloatRR	(R
tcount((sC/usr/lib/python2.7/dist-packages/bzrlib/estimate_compressed_size.pyR1s	cC@ss|jrc|j|j}|j|j}||krct|jjtjƒƒ}|j	|ƒqcn|j|jkS(s Have we reached the target size?(
RRRR	RRtflushRtZ_SYNC_FLUSHR(R
tremaining_sizet
est_z_sizeR((sC/usr/lib/python2.7/dist-packages/bzrlib/estimate_compressed_size.pytfull:s	
(t__name__t
__module__t__doc__R
RRR(((sC/usr/lib/python2.7/dist-packages/bzrlib/estimate_compressed_size.pyRs
			(Rt
__future__RRtobjectR(((sC/usr/lib/python2.7/dist-packages/bzrlib/estimate_compressed_size.pyt<module>s

Copyright © 2017 || Recoded By Mr.Bumblebee