File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -352,18 +352,17 @@ def __chain_b(self):
352
352
self .bpopular = popular = set ()
353
353
n = len (b )
354
354
355
- # Define the number of identical lines that must be included
356
- # in order to consider the string "popular" for the autojunk
357
- # strategy. Edited from upstream Python difflib to decrease
358
- # the number of lines as file sizes become larger
359
- if n >= 20000 :
360
- ntest = n // 10000 + 1
361
- elif n >= 2000 :
362
- ntest = n // 1000 + 1
363
- elif n >= 200 :
364
- ntest = n // 100 + 1
365
-
366
355
if self .autojunk and n >= 200 :
356
+ # Define the number of identical lines that must be included
357
+ # in order to consider the string "popular" for the autojunk
358
+ # strategy. Edited from upstream Python difflib to decrease
359
+ # the number of lines as file sizes become larger
360
+ if n >= 20000 :
361
+ ntest = n // 10000 + 1
362
+ elif n >= 2000 :
363
+ ntest = n // 1000 + 1
364
+ else :
365
+ ntest = n // 100 + 1
367
366
for elt , idxs in b2j .items ():
368
367
if len (idxs ) > ntest :
369
368
popular .add (elt )
You can’t perform that action at this time.
0 commit comments