<commit_before><?php
    /*
    *  Copyright (c) Codiad & <NAME> (codiad.com), distributed
    *  as-is and without warranty under the MIT License. See
    *  [root]/license.txt for more. This information must remain intact.
    */
     
    Common::startSession();
               
    //////////////////////////////////////////////////////////////////
    // Common Class
    //////////////////////////////////////////////////////////////////
    
    class Common {

        //////////////////////////////////////////////////////////////////
        // PROPERTIES
        //////////////////////////////////////////////////////////////////
        
        public static $debugMessageStack = array();
        
        //////////////////////////////////////////////////////////////////
        // METHODS
        //////////////////////////////////////////////////////////////////

        // -----------------------------||----------------------------- //

        //////////////////////////////////////////////////////////////////
        // Construct
        //////////////////////////////////////////////////////////////////

        public static function construct(){
            global $cookie_lifetime;
            foreach (array("components","plugins") as $folder) {
                if(strpos($_SERVER['SCRIPT_FILENAME'], $folder)) {
                    foreach(explode("/", substr($_SERVER['SCRIPT_FILENAME'],strpos($_SERVER['SCRIPT_FILENAME'], $folder) + strlen($folder)+1)) as $part) {
                        if(!isset($path)){
                            $path = '../';
                        }else{
                            $path .= '../';
                        }
                    }
                    break;
                }
            }
            
            if(file_exists($path.'config.php')){ require_once($path.'config.php'); }
        
            if(!defined('BASE_PATH')) {
                define('BASE_PATH', rtrim(str_replace("index.php", "", $_SERVER['SCRIPT_FILENAME']),"/"));<commit_msg>initialize path<commit_after><?php
    /*
    *  Copyright (c) Codiad & <NAME> (codiad.com), distributed
    *  as-is and without warranty under the MIT License. See
    *  [root]/license.txt for more. This information must remain intact.
    */
     
    Common::startSession();
               
    //////////////////////////////////////////////////////////////////
    // Common Class
    //////////////////////////////////////////////////////////////////
    
    class Common {

        //////////////////////////////////////////////////////////////////
        // PROPERTIES
        //////////////////////////////////////////////////////////////////
        
        public static $debugMessageStack = array();
        
        //////////////////////////////////////////////////////////////////
        // METHODS
        //////////////////////////////////////////////////////////////////

        // -----------------------------||----------------------------- //

        //////////////////////////////////////////////////////////////////
        // Construct
        //////////////////////////////////////////////////////////////////

        public static function construct(){
            global $cookie_lifetime;
            $path = '';
            foreach (array("components","plugins") as $folder) {
                if(strpos($_SERVER['SCRIPT_FILENAME'], $folder)) {
                    foreach(explode("/", substr($_SERVER['SCRIPT_FILENAME'],strpos($_SERVER['SCRIPT_FILENAME'], $folder) + strlen($folder)+1)) as $part) {
                        if(!isset($path)){
                            $path = '../';
                        }else{
                            $path .= '../';
                        }
                    }
                    break;
                }
            }
            
            if(file_exists($path.'config.php')){ require_once($path.'config.php'); }
        
            if(!defined('BASE_PATH')) {
                define('BASE_PATH', rtrim(str_replace("index.php", "", $_SERVER['SCRIPT_FILENAME']),"/"));
{'fraction_non_alphanumeric': 0.38497307880567794, 'fraction_numerical': 0.0004894762604013706, 'mean_word_length': 0.6513131313131313, 'pattern_counts': {'":': 0, '<': 7, '<?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': '281460', 'n_tokens_mistral': 796, 'n_tokens_neox': 745, 'n_words': 131}