cityTest = tidy.tidy(
cityTraining,
tidy.mutate({
lengthTest: (d) => evaluate_compressed_size(test),
lengthTrainingTest: (d) =>
evaluate_compressed_size(`${d.text.trim()} ${test.toLowerCase()}`.trim()),
score: (d) =>
(d.lengthTrainingTest - Math.min(d.lengthTest, d.lengthTraining)) /
Math.max(d.lengthTest, d.lengthTraining),
scoreAlt: (d) => (d.lengthTrainingTest - d.lengthTraining) / d.lengthTest
})
)