<commit_before><?php 

namespace ATFApp;

use ATFApp\Exceptions as Exceptions;

// main config file
require_once '../config/base/main_config.php';
// fallback version
require_once '../config/base/main_config.default.php';

// error handling
require_once EXCEPTIONS_PATH . 'ExceptionHandler.php';
\ATFApp\Exceptions\ExceptionHandler::setEmailRecipients(unserialize(ADMIN_EMAILS));

// main project
require_once LIBS_PATH . 'project.php';

try {
	// change directory
	chdir ('../');
	
	// create project object and run
	$project = new ATFProject();
	$project->init();<commit_msg>removed chdir<commit_after><?php 

namespace ATFApp;

use ATFApp\Exceptions as Exceptions;

// change directory
// chdir ('../');

$cwd = realpath(dirname( getcwd() )) . DIRECTORY_SEPARATOR;
// main config file
require_once $cwd . 'config/base/main_config.php';
// fallback version
require_once $cwd . 'config/base/main_config.default.php';

// error handling
require_once EXCEPTIONS_PATH . 'ExceptionHandler.php';
\ATFApp\Exceptions\ExceptionHandler::setEmailRecipients(unserialize(ADMIN_EMAILS));

// main project
require_once LIBS_PATH . 'project.php';

try {
	// create project object and run
	$project = new ATFProject();
	$project->init();
{'fraction_non_alphanumeric': 0.13747954173486088, 'fraction_numerical': 0.0, 'mean_word_length': 4.768867924528302, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4758658', 'n_tokens_mistral': 405, 'n_tokens_neox': 396, 'n_words': 86}