Apply ruff flake8-comprehensions (#21694)

This commit is contained in:
Aaron Gokaslan
2023-02-22 03:14:54 -05:00
committed by GitHub
parent df06fb1f0b
commit 5e8c8eb5ba
230 changed files with 971 additions and 955 deletions

View File

@@ -114,7 +114,7 @@ def char_token_ratio(example):
def preprocess(example):
"""Chain all preprocessing steps into one function to not fill cache."""
results = dict()
results = {}
results.update(get_hash(example))
results.update(line_stats(example))
results.update(alpha_stats(example))