And formatting, again

This commit is contained in:
Bob Abeles 2023-10-23 20:43:57 -07:00
parent 3f4332be80
commit 6725be4259

View File

@ -303,7 +303,7 @@ def compute_huffman_coding(qstrs, translation_name, translations, f, compression
# picking to top 100 scores.
counter = sorted(counter.items(), key=lambda x: math.log(x[1]) * len(x[0]), reverse=True)[
:100
:100
]
scores = sorted(
((s, -est_net_savings(s, occ)) for (s, occ) in counter if occ > 1),