<commit_before>package model.organization.id;

import static model.organization.validation.Checks.checkNotNull;

import javax.inject.Inject;
import javax.validation.constraints.NotNull;

import com.google.inject.assistedinject.Assisted;

class LongId<T> extends AbstractId<T> {

	private static final long serialVersionUID = 8542765061773217208L;
	private final Long id;
	private transient Integer hashCode = null;
	private transient String toString = null;

	@Inject
	LongId(@NotNull @Assisted final Class<T> type, @NotNull @Assisted final Long id) {
		super(type);
		checkNotNull(id, "id"); //$NON-NLS-1$
		this.id = id;
	}

	@Override
	public boolean equals(final Object object) {
		if (object instanceof LongId) {
			final LongId<?> otherId = (LongId<?>) object;
			return id == otherId.id;
		}
		return false;
	}

	@Override
	public int hashCode() {
		if (hashCode == null) {
			hashCode = id.hashCode();
		}
		return hashCode;
	}

	@Override
	public String toString() {
		if (toString == null) {
			toString = String.valueOf(id);
		}
		return toString;
	}

}<commit_msg>changed comparison from == to equals() method<commit_after>package model.organization.id;

import static model.organization.validation.Checks.checkNotNull;

import javax.inject.Inject;
import javax.validation.constraints.NotNull;

import com.google.inject.assistedinject.Assisted;

class LongId<T> extends AbstractId<T> {

	private static final long serialVersionUID = 8542765061773217208L;
	private final Long id;
	private transient Integer hashCode = null;
	private transient String toString = null;

	@Inject
	LongId(@NotNull @Assisted final Class<T> type, @NotNull @Assisted final Long id) {
		super(type);
		checkNotNull(id, "id"); //$NON-NLS-1$
		this.id = id;
	}

	@Override
	public boolean equals(final Object object) {
		if (object instanceof LongId) {
			final LongId<?> otherId = (LongId<?>) object;
			return id.equals(otherId.id);
		}
		return false;
	}

	@Override
	public int hashCode() {
		if (hashCode == null) {
			hashCode = id.hashCode();
		}
		return hashCode;
	}

	@Override
	public String toString() {
		if (toString == null) {
			toString = String.valueOf(id);
		}
		return toString;
	}

}
{'fraction_non_alphanumeric': 0.11557788944723618, 'fraction_numerical': 0.01827318410232983, 'mean_word_length': 4.2898550724637685, 'pattern_counts': {'":': 0, '<': 13, '<?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': '4760061', 'n_tokens_mistral': 780, 'n_tokens_neox': 706, 'n_words': 192}