<commit_before>import os
import serverboards

ID_RSA=os.path.expanduser("~/id_rsa")
CONFIG_FILE=os.path.expanduser("~/ssh_config")
KNOWN_HOSTS_FILE=os.path.expanduser("~/known_hosts")
ID_RSA_PUB=ID_RSA+'.pub'

def ensure_ID_RSA():
    if not os.path.exists(ID_RSA):
        serverboards.info("Generating new SSH key pair")
        os.system('ssh-keygen -f "%s" -N "" >&2'%(ID_RSA,))
    if not os.path.exists(CONFIG_FILE):
        serverboards.info("Creating the ssh config file")
        with open(CONFIG_FILE,"w+") as fd:
            fd.write("# Write here your custom configuration\n")<commit_msg>Ensure permissions on new SSH files<commit_after>import os
import serverboards

ID_RSA=os.path.expanduser("~/id_rsa")
CONFIG_FILE=os.path.expanduser("~/ssh_config")
KNOWN_HOSTS_FILE=os.path.expanduser("~/known_hosts")
ID_RSA_PUB=ID_RSA+'.pub'

def ensure_ID_RSA():
    if not os.path.exists(ID_RSA):
        serverboards.info("Generating new SSH key pair")
        os.system('ssh-keygen -f "%s" -N "" >&2'%(ID_RSA,))
        os.chmod(ID_RSA, 0o0600)
    if not os.path.exists(CONFIG_FILE):
        serverboards.info("Creating the ssh config file")
        with open(CONFIG_FILE,"w+") as fd:
            fd.write("# Write here your custom configuration\n")
        os.chmod(CONFIG_FILE, 0o0600)
{'fraction_non_alphanumeric': 0.14694508894044858, 'fraction_numerical': 0.009280742459396751, 'mean_word_length': 3.9389312977099236, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6243994', 'n_tokens_mistral': 493, 'n_tokens_neox': 451, 'n_words': 90}