<commit_before>#!/usr/bin/env python

#!/usr/bin/env python

from __future__ import print_function
import sys
import json
import os
import subprocess
from simcity_client.util import expandfilename, copyglob

if __name__ == '__main__':
    print("Input:")
    print(sys.argv)
    
    tmp_dir = sys.argv[1]
    in_dir = sys.argv[2]
    out_dir = sys.argv[3]
    
    with open(os.path.join(in_dir, 'input.json'), 'r') as f:
        params = json.load(f)
    
    src = expandfilename(('~', 'transims-us101'))
    dst = expandfilename((tmp_dir, 'transims-us101'))
    
    dirnames = ['control', 'input', 'output', 'ArcGis']
    dirs = {name: expandfilename([dst, name]) for name in dirnames}

    os.mkdir(dst)
    for dstdir in dirs.values():
        os.mkdir(dstdir)
    
    # Set up runtime directories
    copyglob((src, 'control', '*.ctl'), dirs['control'])
    copyglob((src, 'input', '*'), dirs['input'])
    <commit_msg>TRANSIMS use case now correctly copies all files<commit_after>#!/usr/bin/env python

#!/usr/bin/env python

from __future__ import print_function
import sys
import json
import os
import subprocess
from simcity_client.util import expandfilename, copyglob

if __name__ == '__main__':
    print("Input:")
    print(sys.argv)
    
    tmp_dir = sys.argv[1]
    in_dir = sys.argv[2]
    out_dir = sys.argv[3]
    
    with open(os.path.join(in_dir, 'input.json'), 'r') as f:
        params = json.load(f)
    
    src = expandfilename(('~', 'transims-us101'))
    dst = expandfilename((tmp_dir, 'transims-us101'))
    
    dirnames = ['control', 'input', 'output', 'ArcGis']
    dirs = {name: expandfilename([dst, name]) for name in dirnames}

    os.mkdir(dst)
    for dstdir in dirs.values():
        os.mkdir(dstdir)
    
    # Set up runtime directories
    copyglob((src, 'control', '*.ctl'), dirs['control'])
    copyglob((src, 'control', '*.sh'), dirs['control'])
    copyglob((src, 'input', '*'), dirs['input'])
    
{'fraction_non_alphanumeric': 0.15870570107858242, 'fraction_numerical': 0.009244992295839754, 'mean_word_length': 3.319290465631929, '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': '3283856', 'n_tokens_mistral': 691, 'n_tokens_neox': 667, 'n_words': 163}