<commit_before>import sys
import os

if "NEW_VERSION" not in os.environ:
    print "[ERROR] Missing NEW_VERSION environment variable"
    sys.exit(1)

NEW_VERSION = os.environ["NEW_VERSION"]

PROJECT_DIR = os.path.realpath(os.path.dirname(__file__) + "/../")

with open(PROJECT_DIR + "/VERSION") as f:
    VERSION = f.read().strip()

with open(PROJECT_DIR + "/VERSION", "w") as f:
    f.write(NEW_VERSION)

with open(PROJECT_DIR + "/setup.py") as f:
    setup_file = f.read()

with open(PROJECT_DIR + "/setup.py", "w") as f:<commit_msg>Takes the new version from the first argument passed<commit_after>import sys
import os

NEW_VERSION = sys.argv[1]

PROJECT_DIR = os.path.realpath(os.path.dirname(__file__) + "/../")

with open(PROJECT_DIR + "/VERSION") as f:
    VERSION = f.read().strip()

with open(PROJECT_DIR + "/VERSION", "w") as f:
    f.write(NEW_VERSION)

with open(PROJECT_DIR + "/setup.py") as f:
    setup_file = f.read()

with open(PROJECT_DIR + "/setup.py", "w") as f:
{'fraction_non_alphanumeric': 0.1617497456765005, 'fraction_numerical': 0.002034587995930824, 'mean_word_length': 4.072164948453608, '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': '1168654', 'n_tokens_mistral': 360, 'n_tokens_neox': 358, 'n_words': 89}