<commit_before>import urllib2
import os


def make_executable(path):
    mode = os.stat(path).st_mode
    mode |= (mode & 0o444) >> 2
    os.chmod(path, mode)


if __name__ == '__main__':
    response = urllib2.urlopen('https://github.com/thylong/ian/releases/download/ian-v0.2.1/ian-darwin-amd64')

    data = response.read()
    path = "/usr/local/bin/ian"

    directory = os.path.dirname("/usr/local/bin/")
    if not os.path.exists(directory):
        os.makedirs(directory)

    file_ = open(path, 'w+')
    file_.write(data)
    file_.close()

    make_executable(path)
<commit_msg>Ian: New version.<commit_after>import urllib2
import os


def make_executable(path):
    mode = os.stat(path).st_mode
    mode |= (mode & 0o444) >> 2
    os.chmod(path, mode)


if __name__ == '__main__':
    response = urllib2.urlopen('https://github.com/thylong/ian/releases/download/ian-v0.2.2/ian-darwin-amd64')

    data = response.read()
    path = "/usr/local/bin/ian"

    directory = os.path.dirname("/usr/local/bin/")
    if not os.path.exists(directory):
        os.makedirs(directory)

    file_ = open(path, 'w+')
    file_.write(data)
    file_.close()

    make_executable(path)

{'fraction_non_alphanumeric': 0.15905245346869712, 'fraction_numerical': 0.02030456852791878, 'mean_word_length': 3.079310344827586, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7176376', 'n_tokens_mistral': 465, 'n_tokens_neox': 438, 'n_words': 72}