<commit_before><?php namespace Rice\Rules;

class ComparingRules {

    /**
     * Check whether the value is in a range (inclusively).
     *
     * @param mixed $value
     * @param integer $min
     * @param integer $max
     * @return boolean
     */
    public function between($value, $min, $max)
    {
        return ($value >= $min) and ($max >= $value);
    }

    /**
     * Compare $left and $right (strict).
     *
     * @param mixed $left
     * @param mixed $right
     * @return boolean
     */
    public function equals($left, $right)
    {
        return ($left) === $right;
    }

    /**
     * Check whether the given value is higher than the minimum value.<commit_msg>add the type check in ::between<commit_after><?php namespace Rice\Rules;

class ComparingRules {

    /**
     * Check whether the value is in a range (inclusively).
     *
     * @param mixed $value
     * @param integer $min
     * @param integer $max
     * @return boolean
     */
    public function between($value, $min, $max)
    {
        return \is_numeric($value) and ($value >= $min) and ($max >= $value);
    }

    /**
     * Compare $left and $right (strict).
     *
     * @param mixed $left
     * @param mixed $right
     * @return boolean
     */
    public function equals($left, $right)
    {
        return ($left) === $right;
    }

    /**
     * Check whether the given value is higher than the minimum value.
{'fraction_non_alphanumeric': 0.13202247191011235, 'fraction_numerical': 0.0, 'mean_word_length': 2.0911062906724514, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4605760', 'n_tokens_mistral': 422, 'n_tokens_neox': 411, 'n_words': 140}