<commit_before><?php
/**
 * Core configuration file
 *
 * Use to configure the behavior of ResqueBoard
 *
 * PHP version 5
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @author        <NAME> <<EMAIL>>
 * @copyright     Copyright 2012, <NAME> <<EMAIL>>
 * @link          http://resqueboard.kamisama.me
 * @package       resqueboard
 * @subpackage	  resqueboard.config
 * @since         1.0.0
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */


    /**
     * General settings
     *
     * Uncomment to override the default settings.
     *
     * $resquePrefix is the prefix php-resque prepends to all its keys.
     *
     * @var array
     */
    $settings = array(
            /*'mongo' => array(
             	'host' => 'localhost',
                'port' => 27017,
                'database' => 'cube_development'
            ),*/
            /*'redis' => array(
             	'host' => '127.0.0.1',
             	'port' => 6379,
             	'database' => 0
            ),*/
            'cube' => array(
                'host' => '127.0.0.1',
                'port' => 1081
            ),
            /*'resquePrefix' => 'resque',*/
            'readOnly' => true,
            'resqueConfig' => __DIR__ . DIRECTORY_SEPARATOR . './resque.ini',
            /*'timezone' => 'America/Montreal'*/
    );

    /**
     * Datas used for instanciating a Slim object
     *
     * @see http://www.slimframework.com/documentation/stable#settings
     * @var array
     */
    $config = array(
                'debug' => false,
                'view' => 'ResqueBoard\View\MyView',
                'templates.path' => ROOT . DS .'View'
            );


    /**
     * Map a log level to an html/css class name
     *
     * @var array
     */
    $logLevels = array(
            100 => array('class' => 'label-success', 'name' => 'debug'),
            200 => array('class' => 'label-info', 'name' => 'info'),
            300 => array('class' => 'label-warning', 'name' => 'warning'),
            400 => array('class' => 'label-important', 'name' => 'error'),
            500 => array('class' => 'label-inverse', 'name' => 'critical'),
            550 => array('class' => 'label-inverse', 'name' => 'alert')
    );

    /**
     * List of events type
     *
     * @var array
     */
    $logTypes = array('start', 'got', 'process', 'fork', 'done', 'fail', 'sleep', 'prune', 'stop', 'pause', 'resume');

    date_default_timezone_set(isset($settings['timezone']) ? $settings['timezone'] : date_default_timezone_get());

    /**
     * Default number of items to display for pagination
     *
     * @var int
     */
    define('PAGINATION_LIMIT', 15);


    /**
     * Default application name
     *
     * @used for the website title
     * @var string
     */
    define('APPLICATION_NAME', 'ResqueBoard');


    /**
     * Cube server address without the scheme (http, https, ws, ...)
     *
     * @since  1.5.1
     * @var string
     */
    define('CUBE_URL', $settings['cube']['host'] . ':' . $settings['cube']['port']);

    /**
     * Separator between the website name and other text, in the page title
     *
     * @var string
     */
    define('TITLE_SEP', ' | ');

    require dirname(dirname(ROOT)) . DS . 'vendor' . DS . 'autoload.php';<commit_msg>Don't connect to Cube with local url via public API<commit_after><?php
/**
 * Core configuration file
 *
 * Use to configure the behavior of ResqueBoard
 *
 * PHP version 5
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @author        <NAME> <<EMAIL>>
 * @copyright     Copyright 2012, <NAME> <<EMAIL>>
 * @link          http://resqueboard.kamisama.me
 * @package       resqueboard
 * @subpackage	  resqueboard.config
 * @since         1.0.0
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */


    /**
     * General settings
     *
     * Uncomment to override the default settings.
     *
     * $resquePrefix is the prefix php-resque prepends to all its keys.
     *
     * @var array
     */
    $settings = array(
            /*'mongo' => array(
             	'host' => 'localhost',
                'port' => 27017,
                'database' => 'cube_development'
            ),*/
            /*'redis' => array(
             	'host' => '127.0.0.1',
             	'port' => 6379,
             	'database' => 0
            ),*/
            'cube' => array(
                'host' => '127.0.0.1',
                'port' => 1081
            ),
            /*'resquePrefix' => 'resque',*/
            'readOnly' => true,
            'resqueConfig' => __DIR__ . DIRECTORY_SEPARATOR . './resque.ini',
            /*'timezone' => 'America/Montreal'*/
    );

    /**
     * Datas used for instanciating a Slim object
     *
     * @see http://www.slimframework.com/documentation/stable#settings
     * @var array
     */
    $config = array(
                'debug' => false,
                'view' => 'ResqueBoard\View\MyView',
                'templates.path' => ROOT . DS .'View'
            );


    /**
     * Map a log level to an html/css class name
     *
     * @var array
     */
    $logLevels = array(
            100 => array('class' => 'label-success', 'name' => 'debug'),
            200 => array('class' => 'label-info', 'name' => 'info'),
            300 => array('class' => 'label-warning', 'name' => 'warning'),
            400 => array('class' => 'label-important', 'name' => 'error'),
            500 => array('class' => 'label-inverse', 'name' => 'critical'),
            550 => array('class' => 'label-inverse', 'name' => 'alert')
    );

    /**
     * List of events type
     *
     * @var array
     */
    $logTypes = array('start', 'got', 'process', 'fork', 'done', 'fail', 'sleep', 'prune', 'stop', 'pause', 'resume');

    date_default_timezone_set(isset($settings['timezone']) ? $settings['timezone'] : date_default_timezone_get());

    /**
     * Default number of items to display for pagination
     *
     * @var int
     */
    define('PAGINATION_LIMIT', 15);


    /**
     * Default application name
     *
     * @used for the website title
     * @var string
     */
    define('APPLICATION_NAME', 'ResqueBoard');


    /**
     * Cube server address without the scheme (http, https, ws, ...)
     *
     * @since  1.5.1
     * @var string
     */
    define('CUBE_URL', substr($_SERVER['HTTP_HOST'], 0, strpos($_SERVER['HTTP_HOST'], ':')) . ':' . $settings['cube']['port']);

    /**
     * Separator between the website name and other text, in the page title
     *
     * @var string
     */
    define('TITLE_SEP', ' | ');

    require dirname(dirname(ROOT)) . DS . 'vendor' . DS . 'autoload.php';
{'fraction_non_alphanumeric': 0.16752387950036737, 'fraction_numerical': 0.01689933872152829, 'mean_word_length': 1.8632730332351704, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 87, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 4, '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': '795583', 'n_tokens_mistral': 2196, 'n_tokens_neox': 2062, 'n_words': 506}