<commit_before><?php

// These values depend on the server. We store the application and TMX paths in an ini file shared with Python
$ini_array = parse_ini_file(__DIR__ . '/config.ini');
define('DATAROOT',    $ini_array['root']);
define('HG',          $ini_array['local_hg'] . '/');
define('TMX',         DATAROOT .'/TMX/');
define('INSTALLROOT', $ini_array['install'] . '/');
define('WEBROOT',     INSTALLROOT . 'web/');
define('INC',         INSTALLROOT . 'web/inc/');
define('VIEWS',       INSTALLROOT . 'web/views/');
define('VERSION',     '1.6');

// Global Variables used on the site
$debug = (strstr(VERSION, 'dev') || isset($_GET['debug'])) ? true : false;
$web_service = (isset($_GET['json']) && !isset($web_service)) ? true : false;

// We may want to start speed and memory calculations here as well
if ($debug) {
    error_reporting(E_ALL);
}

// Utility functions
require_once INC . 'functions.php';

// Dispatch urls
require_once INC . 'dispatcher.php';<commit_msg>start 1.7 cycle<commit_after><?php

// These values depend on the server. We store the application and TMX paths in an ini file shared with Python
$ini_array = parse_ini_file(__DIR__ . '/config.ini');
define('DATAROOT',    $ini_array['root']);
define('HG',          $ini_array['local_hg'] . '/');
define('TMX',         DATAROOT .'/TMX/');
define('INSTALLROOT', $ini_array['install'] . '/');
define('WEBROOT',     INSTALLROOT . 'web/');
define('INC',         INSTALLROOT . 'web/inc/');
define('VIEWS',       INSTALLROOT . 'web/views/');
define('VERSION',     '1.7dev');

// Global Variables used on the site
$debug = (strstr(VERSION, 'dev') || isset($_GET['debug'])) ? true : false;
$web_service = (isset($_GET['json']) && !isset($web_service)) ? true : false;

// We may want to start speed and memory calculations here as well
if ($debug) {
    error_reporting(E_ALL);
}

// Utility functions
require_once INC . 'functions.php';

// Dispatch urls
require_once INC . 'dispatcher.php';
{'fraction_non_alphanumeric': 0.18186449312277128, 'fraction_numerical': 0.003056546102903719, 'mean_word_length': 3.95959595959596, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2176125', 'n_tokens_mistral': 653, 'n_tokens_neox': 625, 'n_words': 173}