<commit_before>from clint.textui import colored, puts, indent
import os


def get_genome_directory_file():
    """
        
    """
    module_path = os.path.split(os.path.realpath(__file__))[0]
    return module_path + "/.genome_directory"


def get_genome_directory():
    genome_directory_file = get_genome_directory_file()
    if os.path.exists(genome_directory_file):
        with open(genome_directory_file, "r") as f:
            genome_directory = os.path.abspath(os.path.expanduser(f.read()))      
    else:
        with open(genome_directory_file, "w") as f:
            genome_directory = os.path.expanduser("~/.genome/")
            f.write(genome_directory)
    return genome_directory



def get_genome_list():<commit_msg>fix .genome folder<commit_after>from clint.textui import colored, puts, indent
import os


def get_genome_directory_file():
    """
        
    """
    module_path = os.path.split(os.path.realpath(__file__))[0]
    return module_path + "/.genome_directory"


def get_genome_directory():
    genome_directory_file = get_genome_directory_file()
    if os.path.exists(genome_directory_file):
        with open(genome_directory_file, "r") as f:
            genome_directory = os.path.abspath(os.path.expanduser(f.read()))      
    else:
        with open(genome_directory_file, "w") as f:
            genome_directory = os.path.expanduser("~/.genome/")
            f.write(genome_directory)
    # Create directory if not exists
    if not os.path.isdir(genome_directory):
        os.mkdir(genome_directory)
    return genome_directory



def get_genome_list():
{'fraction_non_alphanumeric': 0.1115987460815047, 'fraction_numerical': 0.0012539184952978057, 'mean_word_length': 3.2110817941952505, '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': '5793386', 'n_tokens_mistral': 531, 'n_tokens_neox': 490, 'n_words': 92}