<commit_before>[

    {
        "env" : { "baseFileName" : "src/test/data/Un.png",
                  "echo" : "http://localhost:8338/echo"
                },
        "POST" : "{echo}",
        "body" : { "binary" : "@{baseFileName}" },
        "headers" : { "Content-Type" : "image/png" },
        "bind" : { "binary" : "un" },
        "assert" : [
            { "binary" : "@{baseFileName}" },
            "un.length == 50245"
            ]
    },

    {
        "POST" : "{echo}",
        "body" : { "binary" : "@{baseFileName}.aa" },
        "headers" : { "Content-Type" : "application/octet-stream" },

        "bind" : { "binary" : "un_aa" },
        "assert" : [
            { "binary" : "@{baseFileName}.aa" },
            "un_aa.length == 10240",
            "un != un_aa"
            ]
    },

    {
        "POST" : "{echo}",
        "body" : { "binary" : "@{baseFileName}.ab" },
        "headers" : { "Content-Type" : "application/octet-stream" },

        "bind" : { "binary" : "un_ab" },
        "assert" : [
            { "binary" : "@{baseFileName}.ab" },
            "un_ab.length == 10240",
            "un != un_aa",
            "un_ab != un_aa"
            ]
    }

]<commit_msg>improve binary test with Groovy<commit_after>[

    {
        "env" : { "baseFileName" : "src/test/data/Un.png",
                  "echo" : "http://localhost:8338/echo"
                },
        "POST" : "{echo}",
        "body" : { "binary" : "@{baseFileName}" },
        "headers" : { "Content-Type" : "image/png" },
        "bind" : [ { "binary" : "un" },
                   { "groovy" : { "un_bytes" : "new File('{baseFileName}').bytes" }}
                 ],
        "assert" : [
            { "binary" : "@{baseFileName}" },
            "un.length == 50245",
            "un == un_bytes"
            ]
    },

    {
        "POST" : "{echo}",
        "body" : { "binary" : "@{baseFileName}.aa" },
        "headers" : { "Content-Type" : "application/octet-stream" },

        "bind" : [ { "binary" : "un_aa" },
                   { "groovy" : { "un_aa_bytes" : "new File('{baseFileName}.aa').bytes" }}
                 ],
        "assert" : [
            { "binary" : "@{baseFileName}.aa" },
            "un_aa.length == 10240",
            "un != un_aa",
            "un_aa == un_aa_bytes",
            "un_aa != un_bytes"
            ]
    },

    {
        "POST" : "{echo}",
        "body" : { "binary" : "@{baseFileName}.ab" },
        "headers" : { "Content-Type" : "application/octet-stream" },

        "bind" : [ { "binary" : "un_ab" },
                   { "groovy" : { "un_ab_bytes" : "new File('{baseFileName}.ab').bytes" }}
                 ],
        "assert" : [
            { "binary" : "@{baseFileName}.ab" },
            "un_ab.length == 10240",
            "un != un_aa",
            "un_ab != un_aa",
            "un_ab == un_ab_bytes",
            "un_ab != un_bytes"
            ]
    }

]
{'fraction_non_alphanumeric': 0.2109777015437393, 'fraction_numerical': 0.013036020583190394, 'mean_word_length': 1.4099173553719009, 'pattern_counts': {'":': 0, '<': 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': '1547391', 'n_tokens_mistral': 1016, 'n_tokens_neox': 962, 'n_words': 146}