<commit_before>package org.dannil.scbapi.model.population.statistic;

public abstract class AbstractStatisticModel {

	protected String region;
	protected Integer year;

	protected AbstractStatisticModel() {

	}

	protected AbstractStatisticModel(String region, Integer year) {
		this();
		this.region = region;
		this.year = year;
	}

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

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

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

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

}<commit_msg>Added hashcode and equals methods<commit_after>package org.dannil.scbapi.model.population.statistic;

public abstract class AbstractStatisticModel {

	protected String region;
	protected Integer year;

	protected AbstractStatisticModel() {

	}

	protected AbstractStatisticModel(String region, Integer year) {
		this();
		this.region = region;
		this.year = year;
	}

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

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

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

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

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((this.region == null) ? 0 : this.region.hashCode());
		result = prime * result + ((this.year == null) ? 0 : this.year.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (!(obj instanceof AbstractStatisticModel)) {
			return false;
		}
		AbstractStatisticModel other = (AbstractStatisticModel) obj;
		if (this.region == null) {
			if (other.region != null) {
				return false;
			}
		} else if (!this.region.equals(other.region)) {
			return false;
		}
		if (this.year == null) {
			if (other.year != null) {
				return false;
			}
		} else if (!this.year.equals(other.year)) {
			return false;
		}
		return true;
	}

}
{'fraction_non_alphanumeric': 0.11903590752582391, 'fraction_numerical': 0.002459419576979833, 'mean_word_length': 3.530066815144766, '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': '1468376', 'n_tokens_mistral': 737, 'n_tokens_neox': 653, 'n_words': 176}