<commit_before>{ 
    "#": [
        "JSON doesn't allow for multi-line strings, so all outputs are presented ",
        "here as arrays of strings. It's up to the test generator to join the ", 
        "lines together with line breaks.",
        "",
        "The tests are divided into two groups: ",
        "* Grepping a single file",
        "* Grepping multiple files at once",
        "",
        "The language track implementing this exercise should",
        "ensure that when the tests run, three files are created",
        "with the following contents. The file names and their",
        "contents are listed in the 'files' section below."
    ],
    "files": [
        {
            "name": "iliad.txt",
            "contents": [
                "Achilles sing, O Goddess! Peleus' son;",
                "His wrath pernicious, who ten thousand woes",
                "Caused to Achaia's host, sent many a soul",
                "Illustrious into Ades premature,",
                "And Heroes gave (so stood the will of Jove)",
                "To dogs and to all ravening fowls a prey,",
                "When fierce dispute had separated once",
                "The noble Chief Achilles from the son",
                "Of Atreus, Agamemnon, King of men."
            ]
        },        
        {
            "name": "midsummer-night.txt",
            "contents": [
                "I do entreat your grace to pardon me.",
                "I know not by what power I am made bold,",
                "Nor how it may concern my modesty,",
                "In such a presence here to plead my thoughts;",
                "But I beseech your grace that I may know",
                "The worst that may befall me in this case,",
                "If I refuse to wed Demetrius."
            ]
        },
        {
            "name": "paradise-lost.txt",
            "contents": [
                "Of Mans First Disobedience, and the Fruit",
                "Of that Forbidden Tree, whose mortal tast",
                "Brought Death into the World, and all our woe,",
                "With loss of Eden, till one greater Man",
                "Restore us, and regain the blissful Seat,",
                "Sing Heav'nly Muse, that on the secret top",
                "Of Oreb, or of Sinai, didst inspire",
                "That Shepherd, who first taught the chosen Seed"
            ]
        }
    ],
    "single-file": {
        "description": ["Test grepping a single file"],
        "cases": [
            {
                "description": "One file, one match, no flags",
                "pattern": "Agamemnon",
                "flags": [],
                "files": ["iliad.txt"],
                "expected": [
                    "Of Atreus, Agamemnon, King of men."
                ]
            },
            {
                "description": "One file, one match, print file names flag",
                "pattern": "Forbidden",
                "flags": ["-l"],
                "files": ["paradise-lost.txt"],
                "expected": [
                    "paradise-lost.txt"
                ]
            },
            {
                "description": "One file, one match, match entire lines flag",
                "pattern": "With loss of Eden, till one greater Man",
                "flags": ["-x"],
                "files": ["paradise-lost.txt"],
                "expected": [
                    "With loss of Eden, till one greater Man"
                ]
            },
            {
                "description": "One file, one match, multiple flags",
                "pattern": "OF ATREUS, Agamemnon, KIng of MEN.",
                "flags": ["-n", "-i", "-x"],
                "files": ["iliad.txt"],
                "expected": [
                    "9:Of Atreus, Agamemnon, King of men."
                ]
            },
            {
                "description": "One file, several matches, no flags",
                "pattern": "may",
                "flags": [],<commit_msg>Add a couple more grep tests<commit_after>{ 
    "#": [
        "JSON doesn't allow for multi-line strings, so all outputs are presented ",
        "here as arrays of strings. It's up to the test generator to join the ", 
        "lines together with line breaks.",
        "",
        "The tests are divided into two groups: ",
        "* Grepping a single file",
        "* Grepping multiple files at once",
        "",
        "The language track implementing this exercise should",
        "ensure that when the tests run, three files are created",
        "with the following contents. The file names and their",
        "contents are listed in the 'files' section below."
    ],
    "files": [
        {
            "name": "iliad.txt",
            "contents": [
                "Achilles sing, O Goddess! Peleus' son;",
                "His wrath pernicious, who ten thousand woes",
                "Caused to Achaia's host, sent many a soul",
                "Illustrious into Ades premature,",
                "And Heroes gave (so stood the will of Jove)",
                "To dogs and to all ravening fowls a prey,",
                "When fierce dispute had separated once",
                "The noble Chief Achilles from the son",
                "Of Atreus, Agamemnon, King of men."
            ]
        },        
        {
            "name": "midsummer-night.txt",
            "contents": [
                "I do entreat your grace to pardon me.",
                "I know not by what power I am made bold,",
                "Nor how it may concern my modesty,",
                "In such a presence here to plead my thoughts;",
                "But I beseech your grace that I may know",
                "The worst that may befall me in this case,",
                "If I refuse to wed Demetrius."
            ]
        },
        {
            "name": "paradise-lost.txt",
            "contents": [
                "Of Mans First Disobedience, and the Fruit",
                "Of that Forbidden Tree, whose mortal tast",
                "Brought Death into the World, and all our woe,",
                "With loss of Eden, till one greater Man",
                "Restore us, and regain the blissful Seat,",
                "Sing Heav'nly Muse, that on the secret top",
                "Of Oreb, or of Sinai, didst inspire",
                "That Shepherd, who first taught the chosen Seed"
            ]
        }
    ],
    "single-file": {
        "description": ["Test grepping a single file"],
        "cases": [
            {
                "description": "One file, one match, no flags",
                "pattern": "Agamemnon",
                "flags": [],
                "files": ["iliad.txt"],
                "expected": [
                    "Of Atreus, Agamemnon, King of men."
                ]
            },
            {
                "description": "One file, one match, print line numbers flag",
                "pattern": "Forbidden",
                "flags": ["-n"],
                "files": ["paradise-lost.txt"],
                "expected": [
                    "2:Of that Forbidden Tree, whose mortal tast"
                ]
            },
            {
                "description": "One file, one match, case-insensitive flag",
                "pattern": "FORBIDDEN",
                "flags": ["-i"],
                "files": ["paradise-lost.txt"],
                "expected": [
                    "Of that Forbidden Tree, whose mortal tast"
                ]
            },
            {
                "description": "One file, one match, print file names flag",
                "pattern": "Forbidden",
                "flags": ["-l"],
                "files": ["paradise-lost.txt"],
                "expected": [
                    "paradise-lost.txt"
                ]
            },
            {
                "description": "One file, one match, match entire lines flag",
                "pattern": "With loss of Eden, till one greater Man",
                "flags": ["-x"],
                "files": ["paradise-lost.txt"],
                "expected": [
                    "With loss of Eden, till one greater Man"
                ]
            },
            {
                "description": "One file, one match, multiple flags",
                "pattern": "OF ATREUS, Agamemnon, KIng of MEN.",
                "flags": ["-n", "-i", "-x"],
                "files": ["iliad.txt"],
                "expected": [
                    "9:Of Atreus, Agamemnon, King of men."
                ]
            },
            {
                "description": "One file, several matches, no flags",
                "pattern": "may",
                "flags": [],
{'fraction_non_alphanumeric': 0.11125129028558321, 'fraction_numerical': 0.0003440761555224223, 'mean_word_length': 1.25614489003881, 'pattern_counts': {'":': 78, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4719598', 'n_tokens_mistral': 2337, 'n_tokens_neox': 2165, 'n_words': 817}