<commit_before><?php
/*  Copyright (c) 2000-2008 hamcrest.org
 */
namespace Hamcrest;

/**
 * Calculates the logical negation of a matcher.
 */
class IsNot extends BaseMatcher  {
    private $matcher;

    public function __construct(Matcher $matcher) {
        $this->matcher = $matcher;
    }

    public function matches($arg) {
        return !$this->matcher->matches($arg);
    }

    public function describeTo(Description $description) {
        $description->appendText('not ')->appendDescriptionOf($matcher);
    }
}

/**
 * Inverts the rule.
 */
function not($matcherOrValue) {
    if ($matcherOrValue instanceof Matcher) {
        return new IsNot($matcherOrValue);
    } else {
        return new IsNot(IsEqual::equalTo($matcherOrValue));
    }<commit_msg>- Fix.<commit_after><?php
/*  Copyright (c) 2000-2008 hamcrest.org
 */
namespace Hamcrest;

/**
 * Calculates the logical negation of a matcher.
 */
class IsNot extends BaseMatcher  {
    private $matcher;

    public function __construct(Matcher $matcher) {
        $this->matcher = $matcher;
    }

    public function matches($arg) {
        return !$this->matcher->matches($arg);
    }

    public function describeTo(Description $description) {
        $description->appendText('not ')->appendDescriptionOf($matcher);
    }
}

/**
 * Inverts the rule.
 */
function not($matcherOrValue) {
    if ($matcherOrValue instanceof Matcher) {
        return new IsNot($matcherOrValue);
    } else {
        return new IsNot(equalTo($matcherOrValue));
    }
{'fraction_non_alphanumeric': 0.13026315789473683, 'fraction_numerical': 0.010526315789473684, 'mean_word_length': 3.1557377049180326, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '5505567', 'n_tokens_mistral': 477, 'n_tokens_neox': 456, 'n_words': 107}