<commit_before><?php
// This sets initial path for the include. Further includes will be initialized through PathFinder
set_include_path('.'.PATH_SEPARATOR.'.'.DIRECTORY_SEPARATOR.'lib'.PATH_SEPARATOR.dirname(__FILE__).'/lib');
if (version_compare(PHP_VERSION, '5.3.0') < 0) {
    echo 'PHP 5.3.0 is required';
    exit;
}
require'static.php';<commit_msg>Loader: don't rely on current working directory<commit_after><?php
// This sets initial path for the include.
// Further includes will be initialized through PathFinder.
$places = array(
    dirname($_SERVER['PHP_SELF']),
    dirname($_SERVER['PHP_SELF']) . DIRECTORY_SEPARATOR . 'lib',
    __DIR__  . DIRECTORY_SEPARATOR . 'lib',
);
set_include_path(join(PATH_SEPARATOR, $places));

// check PHP version requirements
if (version_compare(PHP_VERSION, '5.3.0') < 0) {
    echo 'PHP 5.3.0 is required';
    exit;
}

// include some static functions
require'static.php';
{'fraction_non_alphanumeric': 0.1399132321041215, 'fraction_numerical': 0.015184381778741865, 'mean_word_length': 4.697530864197531, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2422459', 'n_tokens_mistral': 305, 'n_tokens_neox': 298, 'n_words': 77}