<commit_before>"""
Generator example.
"""

def generate(random):
    """
    Generate an instance of the problem

    Needs to return a list of files to copy to particular instance.
    """

    f = open("/tmp/key", "w")

    f.write(random.randint(0, 1000))

    f.close()

    return ["/tmp/key"]


<commit_msg>Fixed example generator bug.<commit_after>"""
Generator example.
"""

def generate(random):
    """
    Generate an instance of the problem

    Needs to return a list of files to copy to particular instance.
    """

    f = open("/tmp/key", "w")

    f.write(str(random.randint(0, 1000)))

    f.close()

    return {
        "resource_files": [("/tmp/key", "key")],
        "static_files": [("/tmp/key", "keyyo")]
    }



{'fraction_non_alphanumeric': 0.16260162601626016, 'fraction_numerical': 0.013550135501355014, 'mean_word_length': 2.6584158415841586, 'pattern_counts': {'":': 2, '<': 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': '1078493', 'n_tokens_mistral': 252, 'n_tokens_neox': 230, 'n_words': 70}