<commit_before># Import python modules
import json
import traceback
import sys
import glob
import os
import logging

logger = logging.getLogger("infolog")

# Import core modules
from core import path

# Load core config for startup
cur_conf = {}
try:
	core_config_f = open(path.main()+"core/config.json", "r")
	cur_conf["core"] = json.load(core_config_f)
	core_config_f.close()
except:
	logger.critical("failed  to load core config")
	logger.critical("failed to startup")
	logger.critical(traceback.format_exc())
	sys.exit(1)

# Import core modules
from core import yapi

cfg_ver = 0

def updateConfigItems(holder, new):
	for item in new:
		holder[item] = new[item]

def updateConfig(holder, new):
	for item in new:
		if item == "core":
			updateConfigItems(holder["core"], new)
		else:
			holder[item] = new[item]
<commit_msg>fixed bug<commit_after># Import python modules
import json
import traceback
import sys
import glob
import os
import logging

logger = logging.getLogger("infolog")

# Import core modules
from core import path

# Load core config for startup
cur_conf = {}
try:
	core_config_f = open(path.main()+"core/config.json", "r")
	cur_conf["core"] = json.load(core_config_f)
	core_config_f.close()
except:
	logger.critical("failed  to load core config")
	logger.critical("failed to startup")
	logger.critical(traceback.format_exc())
	sys.exit(1)

# Import core modules
from core import yapi

cfg_ver = 0

def updateConfigItems(holder, new):
	for item in new:
		holder[item] = new[item]

def updateConfig(holder, new):
	for item in new:
		if item == "core":
			updateConfigItems(holder["core"], new[item])
		else:
			holder[item] = new[item]

{'fraction_non_alphanumeric': 0.11714975845410629, 'fraction_numerical': 0.0024154589371980675, 'mean_word_length': 5.137037037037037, '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': '1837099', 'n_tokens_mistral': 570, 'n_tokens_neox': 547, 'n_words': 165}