<commit_before>#!/usr/bin/env python
import os
import json
import io

config_file_name = ".config.json"

from os.path import expanduser
home = expanduser("~")
directory = os.path.join(home, '.magpyFiles')

if not os.path.exists(directory):
    os.makedirs(directory)

path_to_config = os.path.join(directory, config_file_name)
if not os.path.exists(path_to_config):
    with open(path_to_config, "w") as cfg:
        data = {}
        data['droppedValue'] = 22222
        json.dump(data, cfg, ensure_ascii=False)
    with open(path_to_config, "r") as cfg:
        data = json.load(cfg)
else:
    with open(path_to_config, "r") as cfg:
        data = json.load(cfg)<commit_msg>Updated default config file<commit_after>#!/usr/bin/env python
import os
import json
import io

config_file_name = ".config.json"

from os.path import expanduser
home = expanduser("~")
directory = os.path.join(home, '.magpyFiles')

if not os.path.exists(directory):
    os.makedirs(directory)

path_to_config = os.path.join(directory, config_file_name)
if not os.path.exists(path_to_config):
    with open(path_to_config, "w") as cfg:
        data = {}
        data['droppedValue'] = 99999
        json.dump(data, cfg, ensure_ascii=False)
    with open(path_to_config, "r") as cfg:
        data = json.load(cfg)
else:
    with open(path_to_config, "r") as cfg:
        data = json.load(cfg)
{'fraction_non_alphanumeric': 0.13030746705710103, 'fraction_numerical': 0.007320644216691069, 'mean_word_length': 3.7465277777777777, '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': '6910547', 'n_tokens_mistral': 488, 'n_tokens_neox': 474, 'n_words': 112}