<commit_before><?php

/**
 * first entrance for all http request
 * all it does is to include coslib/head.php
 * which then will bootstrap your application
 */

// define a base path
$path = dirname(__FILE__);

// make it work on both windows and unix
if (DIRECTORY_SEPARATOR != '/') {
    $path = str_replace ('\\', '/', $path);
}

// define _COS_PATH.
define('_COS_PATH',  $path);

/**
 * set include path
 * @ignore
 */


$ini_path = ini_get('include_path');
ini_set('include_path', 
    _COS_PATH . PATH_SEPARATOR . 
    _COS_PATH . '/vendor' . PATH_SEPARATOR .
    _COS_PATH . "/coslib" . PATH_SEPARATOR . 
    _COS_PATH . '/cosmod' . PATH_SEPARATOR . 
        $ini_path . PATH_SEPARATOR);


/**
 * specific composer autoload
 */
include 'vendor/autoload.php';
/**
 * coslib autoloader
 * @param type $classname
 */

function coslib_autoloader($classname) {
    $classname = ltrim($classname, '\\');
    $filename  = '';
    $namespace = '';
    if ($lastnspos = strripos($classname, '\\')) {
        $namespace = substr($classname, 0, $lastnspos);
        $classname = substr($classname, $lastnspos + 1);
        $filename  = str_replace('\\', '/', $namespace) . '/';
    }
    $filename = str_replace('_', '/', $classname) . '.php';
    include $filename;
}



/**
 * register the autoload on the stack
 */
spl_autoload_register('coslib_autoloader');

// include bootstrap file. 
include _COS_PATH . "/coslib/head.php";<commit_msg>fix alt-index<commit_after><?php


/**
 * first entrance for all http request
 * all it does is to include coslib/head.php
 * which then will bootstrap your application
 */

// define a base path
$path = dirname(__FILE__);
$path = realpath($path);

// make it work on both windows and unix
if (DIRECTORY_SEPARATOR != '/') {
    $path = str_replace ('\\', '/', $path);
}

// define _COS_PATH.
define('_COS_PATH',  $path);

// composer autoload
include 'vendor/autoload.php';

use diversen\boot;
$boot = new boot();
$boot->run();
{'fraction_non_alphanumeric': 0.1643765903307888, 'fraction_numerical': 0.0010178117048346056, 'mean_word_length': 3.218884120171674, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '7204390', 'n_tokens_mistral': 696, 'n_tokens_neox': 676, 'n_words': 167}