Another CI formatting issue

This commit is contained in:
Bob Abeles 2023-10-23 20:40:51 -07:00
parent 892d89e8b7
commit 3f4332be80
1 changed files with 3 additions and 3 deletions

View File

@ -302,9 +302,9 @@ def compute_huffman_coding(qstrs, translation_name, translations, f, compression
# The set of candidates is pruned by estimating their relative value and
# picking to top 100 scores.
counter = sorted(
counter.items(), key=lambda x: math.log(x[1]) * len(x[0]), reverse=True
)[:100]
counter = sorted(counter.items(), key=lambda x: math.log(x[1]) * len(x[0]), reverse=True)[
:100
]
scores = sorted(
((s, -est_net_savings(s, occ)) for (s, occ) in counter if occ > 1),
key=lambda x: x[1],