<commit_before><?php
/**
 * Configuration for img.php, name the config file the same as your img.php and
 * append _config. If you are testing out some in imgtest.php then label that
 * config-file imgtest_config.php.
 *
 */



/**
 * Change to true to enable debug mode which logs additional information
 * to file. Only use for test and development. You must create the logfile
 * and make it writable by the webserver or log entries will silently fail.
 *
 * CIMAGE_DEBUG will be false by default, if its not defined.
 */
if (!defined("CIMAGE_DEBUG")) {
    define("CIMAGE_DEBUG", false);
    //define("CIMAGE_DEBUG", true);
    define("CIMAGE_DEBUG_FILE", "/tmp/cimage");
}



return array(

    /**
     * Set mode as 'strict', 'production' or 'development'.
     *
     * development: Development mode with verbose error reporting. Option
     *              &verbose and &status enabled.
     * production:  Production mode logs all errors to file, giving server
     *              error 500 for bad usage. Option &verbose and &status
     *              disabled.
     * strict:      Strict mode logs few errors to file, giving server error
     *              500 for bad usage. Stripped from comments and spaces.
     *              Option &verbose and &status disabled.
     *
     * Default values:
     *  mode: 'production'
     */
     //'mode' => 'production',
     //'mode' => 'development',
     //'mode' => 'strict',



    /**
     * Where to find the autoloader.
     *
     * Default values:
     *  autoloader:  null
     */
    'autoloader'   =>  __DIR__ . '/../autoload.php',



    /**
     * Paths, where are the images stored and where is the cache.
     * End all paths with a slash.
     *
     * Default values:
     *  image_path:     __DIR__ . '/img/'
     *  cache_path:     __DIR__ . '/../cache/'
     *  alias_path:     null
     */
    'image_path'        =>  __DIR__ . '/img/',
    'cache_path'        =>  __DIR__ . '/../cache/',
    //'alias_path'   =>  __DIR__ . '/img/alias/',



    /**
     * Fast track cache. Save a json representation of the image as a
     * fast track to the cached version of the image. This avoids some
     * processing and allows for quicker load times of cached images.
     *
     * Default values:
     *  fast_track_allow: false
     */
    'fast_track_allow' => true,



    /**<commit_msg>Make fast track cache disabled by default in the config file.<commit_after><?php
/**
 * Configuration for img.php, name the config file the same as your img.php and
 * append _config. If you are testing out some in imgtest.php then label that
 * config-file imgtest_config.php.
 *
 */



/**
 * Change to true to enable debug mode which logs additional information
 * to file. Only use for test and development. You must create the logfile
 * and make it writable by the webserver or log entries will silently fail.
 *
 * CIMAGE_DEBUG will be false by default, if its not defined.
 */
if (!defined("CIMAGE_DEBUG")) {
    define("CIMAGE_DEBUG", false);
    //define("CIMAGE_DEBUG", true);
    define("CIMAGE_DEBUG_FILE", "/tmp/cimage");
}



return array(

    /**
     * Set mode as 'strict', 'production' or 'development'.
     *
     * development: Development mode with verbose error reporting. Option
     *              &verbose and &status enabled.
     * production:  Production mode logs all errors to file, giving server
     *              error 500 for bad usage. Option &verbose and &status
     *              disabled.
     * strict:      Strict mode logs few errors to file, giving server error
     *              500 for bad usage. Stripped from comments and spaces.
     *              Option &verbose and &status disabled.
     *
     * Default values:
     *  mode: 'production'
     */
     //'mode' => 'production',
     //'mode' => 'development',
     //'mode' => 'strict',



    /**
     * Where to find the autoloader.
     *
     * Default values:
     *  autoloader:  null
     */
    'autoloader'   =>  __DIR__ . '/../autoload.php',



    /**
     * Paths, where are the images stored and where is the cache.
     * End all paths with a slash.
     *
     * Default values:
     *  image_path:     __DIR__ . '/img/'
     *  cache_path:     __DIR__ . '/../cache/'
     *  alias_path:     null
     */
    'image_path'        =>  __DIR__ . '/img/',
    'cache_path'        =>  __DIR__ . '/../cache/',
    //'alias_path'   =>  __DIR__ . '/img/alias/',



    /**
     * Fast track cache. Save a json representation of the image as a
     * fast track to the cached version of the image. This avoids some
     * processing and allows for quicker load times of cached images.
     *
     * Default values:
     *  fast_track_allow: false
     */
    //'fast_track_allow' => true,



    /**
{'fraction_non_alphanumeric': 0.1106694560669456, 'fraction_numerical': 0.002510460251046025, 'mean_word_length': 2.068677792041078, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '3358078', 'n_tokens_mistral': 1410, 'n_tokens_neox': 1353, 'n_words': 506}