<commit_before><?php
/**
 * Widget Framework
 *
 * @copyright   Copyright (c) 2008-2013 <NAME>
 * @license     http://www.opensource.org/licenses/apache2.0.php Apache License
 */

namespace Widget\Validator;

/**
 * @package     Widget
 * @author      <NAME> <<EMAIL>>
 */
class Max extends AbstractValidator
{
    protected $max;
    
    protected $lessThanMessage = '%name% must be less or equal than %max%';

    public function __invoke($input, $max = null)
    {
        $max && $this->max = $max;
        
        if ($this->max < $input) {
            $this->addError('lessThan', array(
                'max' => $this->max
            ));
            return false;
        }
        
        return true;
    }
}<commit_msg>updated variable name<commit_after><?php
/**
 * Widget Framework
 *
 * @copyright   Copyright (c) 2008-2013 <NAME>
 * @license     http://www.opensource.org/licenses/apache2.0.php Apache License
 */

namespace Widget\Validator;

/**
 * @package     Widget
 * @author      <NAME> <<EMAIL>>
 */
class Max extends AbstractValidator
{
    protected $max;
    
    protected $maxMessage = '%name% must be less or equal than %max%';

    public function __invoke($input, $max = null)
    {
        $max && $this->max = $max;
        
        if ($this->max < $input) {
            $this->addError('max', array(
                'max' => $this->max
            ));
            return false;
        }
        
        return true;
    }
}
{'fraction_non_alphanumeric': 0.14500683994528044, 'fraction_numerical': 0.013679890560875513, 'mean_word_length': 1.943661971830986, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '897784', 'n_tokens_mistral': 451, 'n_tokens_neox': 435, 'n_words': 110}