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

from subprocess import call

if __name__ == "__main__":

    name = raw_input("Input your name.\n")
    email = raw_input("Input your email.\n")

    call(["git", "config", "--global", "user.name", name])
    call(["git", "config", "--global", "user.email", email])

    call(["git", "config", "--global", "diff.tool", "meld"])
    call(["git", "config", "--global", "diff.external", "meldiff.py"])
    call(["git", "config", "--global", "push.default", "simple"])
<commit_msg>improving and porting git_configs to py3<commit_after>#!/usr/bin/env python3

from subprocess import call

def set_git_configs(name, email):

    call(["git", "config", "--global", "user.name", name])
    call(["git", "config", "--global", "user.email", email])

    call(["git", "config", "--global", "diff.tool", "meld"])
    call(["git", "config", "--global", "diff.external", "meldiff.py"])
    call(["git", "config", "--global", "push.default", "simple"])

if __name__ == "__main__":

    name = input("Input your name.\n")
    email = input("Input your email.\n")
    set_git_configs(name, email)
{'fraction_non_alphanumeric': 0.23724261414503134, 'fraction_numerical': 0.0017905102954341987, 'mean_word_length': 4.152073732718894, 'pattern_counts': {'":': 2, '<': 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': '7416873', 'n_tokens_mistral': 386, 'n_tokens_neox': 378, 'n_words': 94}