<commit_before>/* global test, expect */
const autoFallback = require("../src/download_all").autoFallback
const Quality = require("../src/download_all").DownloadQuality


// autoFallback
test("fallback if there a lower quality", () => {
    let mockData1 = [<commit_msg>chore (test): fixed a incorrect import<commit_after>/* global test, expect */
const autoFallback = require("../src/download_all").autoFallback
const Quality = require("../src/common").DownloadQuality


// autoFallback
test("fallback if there a lower quality", () => {
    let mockData1 = [
{'fraction_non_alphanumeric': 0.1520572450805009, 'fraction_numerical': 0.0035778175313059034, 'mean_word_length': 4.6, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4089592', 'n_tokens_mistral': 161, 'n_tokens_neox': 155, 'n_words': 43}