<commit_before>package com.github.dannil.scbapi.model;

import java.util.Objects;

public abstract class AbstractRegionAndYearModel<R, Y> {

	protected R region;
	protected Y year;

	protected AbstractRegionAndYearModel() {
		// To enable derived classes to use their default constructor
	}

	protected AbstractRegionAndYearModel(R region, Y year) {
		this.region = region;
		this.year = year;
	}

	public R getRegion() {
		return this.region;
	}

	public void setRegion(R region) {
		this.region = region;
	}

	public Y getYear() {
		return this.year;
	}

	public void setYear(Y year) {
		this.year = year;
	}

	@Override
	public int hashCode() {
		return Objects.hash(this.region, this.year);
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (!(obj instanceof AbstractRegionAndYearModel<?, ?>)) {
			return false;
		}

		AbstractRegionAndYearModel<?, ?> other = (AbstractRegionAndYearModel<?, ?>) obj;
		return Objects.equals(this.region, other.region) && Objects.equals(this.year, other.year);
	}<commit_msg>Cleaned up equals in abstract class<commit_after>package com.github.dannil.scbapi.model;

import java.util.Objects;

public abstract class AbstractRegionAndYearModel<R, Y> {

	protected R region;
	protected Y year;

	protected AbstractRegionAndYearModel() {
		// To enable derived classes to use their default constructor
	}

	protected AbstractRegionAndYearModel(R region, Y year) {
		this.region = region;
		this.year = year;
	}

	public R getRegion() {
		return this.region;
	}

	public void setRegion(R region) {
		this.region = region;
	}

	public Y getYear() {
		return this.year;
	}

	public void setYear(Y year) {
		this.year = year;
	}

	@Override
	public int hashCode() {
		return Objects.hash(this.region, this.year);
	}

	@Override
	public boolean equals(Object obj) {
		AbstractRegionAndYearModel<?, ?> other = (AbstractRegionAndYearModel<?, ?>) obj;
		return Objects.equals(this.region, other.region) && Objects.equals(this.year, other.year);
	}
{'fraction_non_alphanumeric': 0.11596312469674915, 'fraction_numerical': 0.0, 'mean_word_length': 4.066339066339066, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '2018125', 'n_tokens_mistral': 720, 'n_tokens_neox': 661, 'n_words': 177}