<commit_before>/*
 * Copyright (c) 2007 Mockito contributors
 * This program is made available under the terms of the MIT License.
 */
package org.mockito.internal.matchers;

import org.hamcrest.Description;
import org.mockito.ArgumentMatcher;


public class Equals extends ArgumentMatcher<Object> {

    private final Object wanted;

    public Equals(Object wanted) {
        this.wanted = wanted;
    }

    public boolean matches(Object actual) {
        if (this.wanted == null) {
            return actual == null;
        }
        return wanted.equals(actual);
    }

    public void describeTo(Description description) {
        appendQuoting(description);
        description.appendText(wanted.toString());<commit_msg>fixed code (oups:)<commit_after>/*
 * Copyright (c) 2007 Mockito contributors
 * This program is made available under the terms of the MIT License.
 */
package org.mockito.internal.matchers;

import org.hamcrest.Description;
import org.mockito.ArgumentMatcher;


public class Equals extends ArgumentMatcher<Object> {

    private final Object wanted;

    public Equals(Object wanted) {
        this.wanted = wanted;
    }

    public boolean matches(Object actual) {
        if (this.wanted == null) {
            return actual == null;
        }
        return wanted.equals(actual);
    }

    public void describeTo(Description description) {
        appendQuoting(description);
        if (wanted == null) {
            description.appendText("null");
        } else {
            description.appendText(wanted.toString());
        }
{'fraction_non_alphanumeric': 0.09259259259259259, 'fraction_numerical': 0.005108556832694764, 'mean_word_length': 2.821951219512195, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6531825', 'n_tokens_mistral': 424, 'n_tokens_neox': 396, 'n_words': 118}