<commit_before>import pyitect                                                                                                                                                                                                                                         
import json                                                                                                                                                                                                                                            
cfgfile = open("config.json")                                                                                                                                                                                                                                            
cfg = json.load(cfgfile)                                                                                                                                                                                                                                            
system = pyitect.System(cfg)                                                                                                                                                                                                                                            
system.search("test/plugins")                                                                                                                                                                                                                                            
bar = system.load("bar")
bar()<commit_msg>modifiny test to be run from anyware<commit_after>import os
import sys
folder_path = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.dirname(folder_path))

import pyitect                                                                                                                                                                                                                                   
import json                                                                                                                                                                                                                                            
cfgfile = open(os.path.join(folder_path, "config.json"))                                                                                                                                                                                                                                            
cfg = json.load(cfgfile)                                                                                                                                                                                                                                            
system = pyitect.System(cfg)                                                                                                                                                                                                                                            
system.search(os.path.join(folder_path, "plugins"))                                                                                                                                                                                                                                            
bar = system.load("bar")
bar()
{'fraction_non_alphanumeric': 0.025783767946088484, 'fraction_numerical': 0.0, 'mean_word_length': 0.17927461139896372, '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': 132, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6471362', 'n_tokens_mistral': 218, 'n_tokens_neox': 217, 'n_words': 42}