<commit_before><?php
/**
 * Munee: Optimising Your Assets
 *
 * @copyright <NAME> 2012
 * @license http://opensource.org/licenses/mit-license.php
 */

namespace munee\asset\type;

use munee\Request;
use munee\asset\Base;
use munee\asset\NotFoundException;
use munee\asset\type\image\Filter;

/**
 * Handles Images
 *
 * @author <NAME>
 */
class Image extends Base
{
    /**
     * Overload the _getFileContent of Base and handle images a bit different
     *
     * @param string $image
     *
     * @return string
     *
     * @throws NotFoundException
     */
    protected function _getFileContent($image)
    {

        if (! file_exists($image)) {
            throw new NotFoundException('Image could not be found: ' . str_replace(WEBROOT, '', $image));<commit_msg>Removing unneeded code.<commit_after><?php
/**
 * Munee: Optimising Your Assets
 *
 * @copyright <NAME> 2012
 * @license http://opensource.org/licenses/mit-license.php
 */

namespace munee\asset\type;

use munee\asset\Base;
use munee\asset\NotFoundException;
use munee\asset\type\image\Filter;

/**
 * Handles Images
 *
 * @author <NAME>
 */
class Image extends Base
{
    /**
     * Overload the _getFileContent of Base and handle images a bit different
     *
     * @param string $image
     *
     * @return string
     *
     * @throws NotFoundException
     */
    protected function _getFileContent($image)
    {
        if (! file_exists($image)) {
            throw new NotFoundException('Image could not be found: ' . str_replace(WEBROOT, '', $image));
{'fraction_non_alphanumeric': 0.12451108213820078, 'fraction_numerical': 0.005215123859191656, 'mean_word_length': 2.9158163265306123, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '220674', 'n_tokens_mistral': 489, 'n_tokens_neox': 471, 'n_words': 119}