<commit_before><?php

namespace Slim\Middleware;
use Intervention\Image\Image;

/**
 * Provides automagical image resizing.
 *
 * @package    Slim
 * @author     <NAME> <<EMAIL>>
 */
class ImageResize extends \Slim\Middleware {

    public $options;

    public function __construct($options = null) {

        /* Default options. */
        $this->options = array(
            "extensions" => array("jpg", "jpeg", "png", "gif"),
            "cache" => "cache",
            "quality" => 90,
            "sizes" => null,
            "secret" => null
        );

        if ($options) {<commit_msg>Update header<commit_after><?php

/*
 * Automagical image resizing from Slim
 *
 * Copyright (c) 2013-2014 <NAME>
 *
 * Licensed under the MIT license:
 *   http://www.opensource.org/licenses/mit-license.php
 *
 * Project home:
 *   https://github.com/tuupola/slim-image-resize
 *
 */

namespace Slim\Middleware;
use Intervention\Image\Image;

class ImageResize extends \Slim\Middleware {

    public $options;

    public function __construct($options = null) {

        /* Default options. */
        $this->options = array(
            "extensions" => array("jpg", "jpeg", "png", "gif"),
            "cache" => "cache",
            "quality" => 90,
            "sizes" => null,
            "secret" => null
        );

        if ($options) {
{'fraction_non_alphanumeric': 0.15361670395227442, 'fraction_numerical': 0.008948545861297539, 'mean_word_length': 2.210526315789474, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 19, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, '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': '5882292', 'n_tokens_mistral': 414, 'n_tokens_neox': 400, 'n_words': 96}