<commit_before>import json
import sys
import subprocess

grappa_srun = '../../bin/grappa_srun'

cmd_template = """{0} \
                        --ppn={{ppn}} \
                        --nnode={{nnode}} \
                        -- \
                        ./{{exe}} \
                        --tuples_per_core={{tuples_per_core}} \
                        2>&1""".format(grappa_srun)

for trial in [1, 2, 3]:
    for transformation in ["fused", "split"]:
        params = {
            'exe': "grappa_loop_prefix_sum_{0}.exe".format(transformation),
            'transformation': transformation,
            'ppn': 12,
            'nnode': 10,
            'trial': trial,
            'tuples_per_core': 1024*1024*50,
            'vtag': 'v3'
        }

        paramsjson = json.dumps(params)
        print "PARAMS{0}PARAMS".format(paramsjson)

        cmd = cmd_template.format(**params)
        subprocess.check_call(cmd, shell=True)<commit_msg>fix up imports<commit_after>import json
import subprocess

grappa_srun = '../../bin/grappa_srun'

cmd_template = """{0} \
                        --ppn={{ppn}} \
                        --nnode={{nnode}} \
                        -- \
                        ./{{exe}} \
                        --tuples_per_core={{tuples_per_core}} \
                        2>&1""".format(grappa_srun)

for trial in [1, 2, 3]:
    for transformation in ["fused", "split"]:
        params = {
            'exe': "grappa_loop_prefix_sum_{0}.exe".format(transformation),
            'transformation': transformation,
            'ppn': 12,
            'nnode': 10,
            'trial': trial,
            'tuples_per_core': 1024*1024*50,
            'vtag': 'v3'
        }

        paramsjson = json.dumps(params)
        print "PARAMS{0}PARAMS".format(paramsjson)

        cmd = cmd_template.format(**params)
        subprocess.check_call(cmd, shell=True)


{'fraction_non_alphanumeric': 0.1472457627118644, 'fraction_numerical': 0.024364406779661018, 'mean_word_length': 1.4953764861294583, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6110982', 'n_tokens_mistral': 614, 'n_tokens_neox': 565, 'n_words': 97}