<commit_before><?php

use munee\asset\Registry;

// DIRECTORY_SEPARATOR alias
define('DS' , DIRECTORY_SEPARATOR);
// Folder where munee is located
define('MUNEE_FOLDER', dirname(__DIR__));
// Define Webroot if hasn't already been defined
defined('WEBROOT') || define('WEBROOT', $_SERVER['DOCUMENT_ROOT']);
// Define the cache path
define('CACHE', MUNEE_FOLDER . DS . 'cache');

/**
 * Register the CSS Asset Class with the extensions .css and .less
 */
Registry::register(array('css', 'less'), function (\munee\Request $Request) {
    $Css = new \munee\asset\type\Css($Request);

    return $Css;
});

/**
 * Register the JavaScript Asset Class with the extension .js
 */
Registry::register('js', function (\munee\Request $Request) {
    $JavaScript = new \munee\asset\type\JavaScript($Request);

    return $JavaScript;
});

/**
 * Register the Image Asset Class with the extensions .jpg, .jpeg, .gif, and .png
 */
Registry::register(array('jpg', 'jpeg', 'gif', 'png'), function (\munee\Request $Request) {
    $Request->minify = true;
    $Image = new \munee\asset\type\Image($Request);

    return $Image;
});<commit_msg>splitting out the image work into another branch.<commit_after><?php

use munee\asset\Registry;

// DIRECTORY_SEPARATOR alias
define('DS' , DIRECTORY_SEPARATOR);
// Folder where munee is located
define('MUNEE_FOLDER', dirname(__DIR__));
// Define Webroot if hasn't already been defined
defined('WEBROOT') || define('WEBROOT', $_SERVER['DOCUMENT_ROOT']);
// Define the cache path
define('CACHE', MUNEE_FOLDER . DS . 'cache');

/**
 * Register the CSS Asset Class with the extensions .css and .less
 */
Registry::register(array('css', 'less'), function (\munee\Request $Request) {
    $Css = new \munee\asset\type\Css($Request);

    return $Css;
});

/**
 * Register the JavaScript Asset Class with the extension .js
 */
Registry::register('js', function (\munee\Request $Request) {
    $JavaScript = new \munee\asset\type\JavaScript($Request);

    return $JavaScript;
});
{'fraction_non_alphanumeric': 0.16082164328657314, 'fraction_numerical': 0.0, 'mean_word_length': 4.456284153005464, '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': '4698053', 'n_tokens_mistral': 652, 'n_tokens_neox': 617, 'n_words': 176}