Skip to content

Commit 892d89e

Browse files
author
Bob Abeles
committed
Fix CI detected line-length issue
1 parent 2e99658 commit 892d89e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

py/maketranslationdata.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def remove_offset(c):
222222
f"Translation {translation_name} expected to fit in 8 bits but required 16 bits"
223223
)
224224

225-
# Prune the qstrs to only those longer than 3 characters that appear in the texts
225+
# Prune the qstrs to only those that appear in the texts
226226
qstr_counters = collections.Counter()
227227
qstr_extractor = TextSplitter(qstr_strs)
228228
for t in texts:
@@ -302,7 +302,9 @@ def est_net_savings(s, occ):
302302
# The set of candidates is pruned by estimating their relative value and
303303
# picking to top 100 scores.
304304

305-
counter = sorted(counter.items(), key=lambda x: math.log(x[1]) * len(x[0]), reverse=True)[:100]
305+
counter = sorted(
306+
counter.items(), key=lambda x: math.log(x[1]) * len(x[0]), reverse=True
307+
)[:100]
306308
scores = sorted(
307309
((s, -est_net_savings(s, occ)) for (s, occ) in counter if occ > 1),
308310
key=lambda x: x[1],

0 commit comments

Comments
 (0)