<commit_before>"""
	Title:
		__init__.py

	Developed by:
		<NAME> (<EMAIL>)

	Description:
		This file imports all the files from the package's modules and it will only import the modules with the naming scheme
		"*_module.py". So when creating new modules make sure the naming scheme is correct. This will fail, if there is a
		compile error in the module you create.

	To use for a different package:
		- Change line 19* and use your package's name.
		- Change line 25* to specify where you want to log.
"""
from .abs_common import AbsCommon
import os, fnmatch, importlib, logging

packageName = "Object_group_cleaner"
LOG = logging.getLogger("tester")

def init_logger():
    logger = logging.getLogger("tester")
    fhandler = logging.FileHandler("/var/opt/ncs/packages/Object_group_cleaner/tests/modules.log")
    fhandler.setLevel(logging.DEBUG)
    logger.addHandler(fhandler)

def importLibs(packageName):
	currentDir = os.getcwd()
	oldDir = currentDir
	currentDir = currentDir + os.sep + "packages" + os.sep + packageName + os.sep + "tests" + os.sep + "modules" + os.sep
	for moduleNames in os.listdir(currentDir):
		os.chdir(currentDir)
		if fnmatch.fnmatch(moduleNames, '*_module.py'):
			LOG.info("\n\nThis is a module %s", moduleNames)
			moduleNames = moduleNames[:-3]
			my_module = importlib.import_module("modules." + moduleNames)
			LOG.info("\n\nSuccessfully load %s", moduleNames)
	os.chdir(oldDir)

init_logger()
importLibs(packageName)<commit_msg>Debugging<commit_after>"""
	Title:
		__init__.py

	Developed by:
		<NAME> (<EMAIL>)

	Description:
		This file imports all the files from the package's modules and it will only import the modules with the naming scheme
		"*_module.py". So when creating new modules make sure the naming scheme is correct. This will fail, if there is a
		compile error in the module you create.

	To use for a different package:
		- Change line 19* and use your package's name.
		- Change line 25* to specify where you want to log.
"""
from .abs_common import AbsCommon
import os, fnmatch, importlib, logging

packageName = "Object_group_cleaner"
LOG = logging.getLogger("tester")

def init_logger():
    logger = logging.getLogger("tester")
    fhandler = logging.FileHandler("/var/opt/ncs/packages/Object_group_cleaner/tests/modules.log")
    fhandler.setLevel(logging.DEBUG)
    logger.addHandler(fhandler)

def importLibs(packageName):
	currentDir = os.getcwd()
	oldDir = currentDir
	currentDir = currentDir + os.sep + "packages" + os.sep + packageName + os.sep + "tests" + os.sep + "modules" + os.sep
	for moduleNames in os.listdir(currentDir):
		os.chdir(currentDir)
		if fnmatch.fnmatch(moduleNames, '*_module.py'):
			LOG.info("\n\nThis is a module %s", moduleNames)
			moduleNames = moduleNames[:-3]
			my_module = importlib.import_module("modules." + moduleNames)
			LOG.info("\n\nSuccessfully load %s", moduleNames)
	os.chdir(oldDir)

importLibs(packageName)
{'fraction_non_alphanumeric': 0.11027397260273973, 'fraction_numerical': 0.003424657534246575, 'mean_word_length': 4.38929889298893, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7650967', 'n_tokens_mistral': 983, 'n_tokens_neox': 919, 'n_words': 286}