<commit_before>package com.intellij.lang.ant.psi.impl.reference;

import com.intellij.lang.ant.AntElementRole;
import com.intellij.lang.ant.psi.impl.AntElementImpl;
import com.intellij.openapi.project.Project;
import org.jetbrains.annotations.NotNull;

public class AntElementCompletionWrapper extends AntElementImpl {

  private final String myName;
  private final Project myProject;
  private final AntElementRole myRole;

  public AntElementCompletionWrapper(final String name, @NotNull final Project project, final AntElementRole role) {
    super(null, null);
    myName = name;
    myProject = project;
    myRole = role;
  }


  public boolean equals(final Object o) {
    if (this != o) {
      final AntElementCompletionWrapper that = (AntElementCompletionWrapper)o;
      if (!myName.equals(that.myName)) return false;
    }
    return true;<commit_msg>correct equals() implementation, avoiding CCE<commit_after>package com.intellij.lang.ant.psi.impl.reference;

import com.intellij.lang.ant.AntElementRole;
import com.intellij.lang.ant.psi.impl.AntElementImpl;
import com.intellij.openapi.project.Project;
import org.jetbrains.annotations.NotNull;

public final class AntElementCompletionWrapper extends AntElementImpl {

  private final String myName;
  private final Project myProject;
  private final AntElementRole myRole;

  public AntElementCompletionWrapper(final String name, @NotNull final Project project, final AntElementRole role) {
    super(null, null);
    myName = name;
    myProject = project;
    myRole = role;
  }


  public boolean equals(final Object o) {
    if (this == o) {
      return true;
    }
    if (o instanceof AntElementCompletionWrapper) {
      final AntElementCompletionWrapper that = (AntElementCompletionWrapper)o;
      return myName.equals(that.myName);
    }
    return false;
{'fraction_non_alphanumeric': 0.08351528384279476, 'fraction_numerical': 0.0, 'mean_word_length': 4.391176470588236, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6004374', 'n_tokens_mistral': 527, 'n_tokens_neox': 515, 'n_words': 136}