<commit_before><?php
/**
 * CloudLib :: Lightweight MVC PHP Framework
 *
 * @author      <NAME> <<EMAIL>>
 * @copyright   Copyright (c) 2011 <NAME> <<EMAIL>>
 * @license     MIT License (http://www.opensource.org/licenses/mit-license.php)
 * @package     cloudlib
 */

/**
 * Environment: False for Development and True for Production.
 */
define('PRODUCTION', false);

/**
 * Default configuration.
 */
define('CONF', 'default');

/**
 * Default controller.
 */
define('CONTROLLER', 'index');

/**
 * Logging: True allows logging and false does not.
 */
define('LOGGING', true);

/**
 * RewriteBase from .htaccess. Default should be '/'
 */
define('RWBASE', '/cloudlib/');

/**
 * Define the root directory and the directory separator.
 */
define('DS', DIRECTORY_SEPARATOR);
define('ROOT', dirname(__FILE__));

/**
 * Define the first-level directories.
 */
define('LIB', ROOT . DS . 'lib' . DS);
define('PUB', ROOT . DS . 'pub' . DS);
define('APP', ROOT . DS . 'app' . DS);

/**
 * Define sub-level directories of the Application directory,
 * directories for controllers, models and views.
 */
define('CTRLS', APP . 'controllers' . DS);
define('MODELS', APP . 'models' . DS);
define('VIEWS', APP . 'views' . DS);

/**
 * Sub-level directory of views for layouts.
 */
define('LAYOUTS', VIEWS . 'layouts' . DS);

/**
 * Define sub-level directories of the Library directory,
 * directories for classes, config and log files.
 */
define('CLASSES', LIB . 'classes' . DS);
define('CONFIG', LIB . 'config' . DS);
define('LOGS', LIB . 'log' . DS);

/**
 * Define sub-level directories of the Class directory,
 * directories for core and helper classes.
 */
define('CORE', CLASSES . 'core' . DS);
define('HELPERS', CLASSES . 'helpers' . DS);

/**
 * Define directory paths for CSS, JavaScript and Image files.
 */
define('CSS', RWBASE . 'pub/css' . DS);
define('JS', RWBASE . 'pub/js' . DS);
define('IMG', RWBASE . 'pub/img' . DS);

/**
 * File extensions for files and classes.
 */
define('EXT', '.php');

/**
 * Check PHP version and available extensions and functions.
 */
// if(file_exists('tests.php')) { require 'tests.php'; exit(); }

/**
 * Require the bootstrap.
 */<commit_msg>removed constant RWBASE added URLPATH<commit_after><?php
/**
 * CloudLib :: Lightweight MVC PHP Framework
 *
 * @author      <NAME> <<EMAIL>>
 * @copyright   Copyright (c) 2011 <NAME> <<EMAIL>>
 * @license     MIT License (http://www.opensource.org/licenses/mit-license.php)
 * @package     cloudlib
 */

/**
 * Environment: False for Development and True for Production.
 */
define('PRODUCTION', false);

/**
 * Default configuration.
 */
define('CONF', 'default');

/**
 * Default controller.
 */
define('CONTROLLER', 'index');

/**
 * Logging: True allows logging and false does not.
 */
define('LOGGING', true);

/**
 * Define the root directory and the directory separator.
 */
define('DS', DIRECTORY_SEPARATOR);
define('ROOT', dirname(__FILE__));

/**
 * Define the first-level directories.
 */
define('LIB', ROOT . DS . 'lib' . DS);
define('PUB', ROOT . DS . 'pub' . DS);
define('APP', ROOT . DS . 'app' . DS);

/**
 * Define sub-level directories of the Application directory,
 * directories for controllers, models and views.
 */
define('CTRLS', APP . 'controllers' . DS);
define('MODELS', APP . 'models' . DS);
define('VIEWS', APP . 'views' . DS);

/**
 * Sub-level directory of views for layouts.
 */
define('LAYOUTS', VIEWS . 'layouts' . DS);

/**
 * Define sub-level directories of the Library directory,
 * directories for classes, config and log files.
 */
define('CLASSES', LIB . 'classes' . DS);
define('CONFIG', LIB . 'config' . DS);
define('LOGS', LIB . 'log' . DS);

/**
 * Define sub-level directories of the Class directory,
 * directories for core and helper classes.
 */
define('CORE', CLASSES . 'core' . DS);
define('HELPERS', CLASSES . 'helpers' . DS);

/**
 * Define the URL path.
 */
define('URLPATH', substr(substr($_SERVER['SCRIPT_FILENAME'], 0, -9),
        strlen($_SERVER['DOCUMENT_ROOT'])));

/**
 * Define paths for CSS, JavaScript and Image files.
 */
define('CSS', URLPATH . 'pub/css' . DS);
define('JS', URLPATH . 'pub/js' . DS);
define('IMG', URLPATH . 'pub/img' . DS);

/**
 * File extensions for files and classes.
 */
define('EXT', '.php');

/**
 * Check PHP version and available extensions and functions.
 */
// if(file_exists('tests.php')) { require 'tests.php'; exit(); }

/**
 * Require the bootstrap.
 */
{'fraction_non_alphanumeric': 0.18628777627424448, 'fraction_numerical': 0.0022552999548940008, 'mean_word_length': 3.5580678314491263, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '438447', 'n_tokens_mistral': 1453, 'n_tokens_neox': 1387, 'n_words': 432}