<commit_before>import json
import os
import sys

PWD = os.path.abspath(os.path.dirname(__file__))
LANGUAGES = ('en', 'es', 'eo')

#BASE_PATH = "/Users/Jeremy/Projects/calloncongress/audio/%s/%s.%s"


def pathify(p):
    p = os.path.expanduser(p)
    p = os.path.expandvars(p)
    p = os.path.abspath(p)
    return p

if len(sys.argv) < 2:
    print "Usage: renameaudio.py <path to originals>"
    sys.exit(1)

src_path = pathify(sys.argv[1])
dst_path = os.path.abspath(os.path.join(PWD, '..', 'static', 'audio'))
script_path = os.path.abspath(os.path.join(PWD, '..', 'data', 'script.json'))

script = json.loads(open(script_path).read())<commit_msg>remove commented out path<commit_after>import json
import os
import sys

PWD = os.path.abspath(os.path.dirname(__file__))
LANGUAGES = ('en', 'es', 'eo')


def pathify(p):
    p = os.path.expanduser(p)
    p = os.path.expandvars(p)
    p = os.path.abspath(p)
    return p

if len(sys.argv) < 2:
    print "Usage: renameaudio.py <path to originals>"
    sys.exit(1)

src_path = pathify(sys.argv[1])
dst_path = os.path.abspath(os.path.join(PWD, '..', 'static', 'audio'))
script_path = os.path.abspath(os.path.join(PWD, '..', 'data', 'script.json'))

script = json.loads(open(script_path).read())
{'fraction_non_alphanumeric': 0.1909750201450443, 'fraction_numerical': 0.004834810636583401, 'mean_word_length': 4.090163934426229, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3781436', 'n_tokens_mistral': 515, 'n_tokens_neox': 507, 'n_words': 92}