<commit_before>package com.drumonii.loltrollbuild.model;

import lombok.*;
import org.apache.commons.lang3.builder.CompareToBuilder;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * League of Legend Version (patch).
 *
 * @see <a href="http://leagueoflegends.wikia.com/wiki/Patch">Patch</a>
 */
@Entity
@Table(name = "VERSION")
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(of = { "patch" })
@ToString
public class Version implements Serializable, Comparable<Version> {

	public Version(String patch) {
		String[] versioning = patch.split("\\.");
		this.patch = patch;
		this.major = Integer.parseInt(versioning[0]);
		this.minor = Integer.parseInt(versioning[1]);
		this.revision = Integer.parseInt(versioning[2]);
	}

	@Id
	@Column(name = "PATCH", nullable = false)
	@Getter @Setter private String patch;

	@Column(name = "MAJOR", nullable = false)
	@Getter @Setter private int major;

	@Column(name = "MINOR", nullable = false)
	@Getter @Setter private int minor;

	@Column(name = "REVISION", nullable = false)
	@Getter @Setter private int revision;

	@Override
	public int compareTo(Version o) {
		return new CompareToBuilder()
				.append(major, o.getMajor())
				.append(minor, o.getMinor())
				.append(revision, o.getRevision())
				.toComparison();
	}<commit_msg>JsonProperty to Version<commit_after>package com.drumonii.loltrollbuild.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;
import org.apache.commons.lang3.builder.CompareToBuilder;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * League of Legend Version (patch).
 *
 * @see <a href="http://leagueoflegends.wikia.com/wiki/Patch">Patch</a>
 */
@Entity
@Table(name = "VERSION")
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(of = { "patch" })
@ToString
public class Version implements Serializable, Comparable<Version> {

	public Version(String patch) {
		String[] versioning = patch.split("\\.");
		this.patch = patch;
		this.major = Integer.parseInt(versioning[0]);
		this.minor = Integer.parseInt(versioning[1]);
		this.revision = Integer.parseInt(versioning[2]);
	}

	@Id
	@Column(name = "PATCH", nullable = false)
	@JsonProperty("patch")
	@Getter @Setter private String patch;

	@Column(name = "MAJOR", nullable = false)
	@JsonProperty("major")
	@Getter @Setter private int major;

	@Column(name = "MINOR", nullable = false)
	@JsonProperty("minor")
	@Getter @Setter private int minor;

	@Column(name = "REVISION", nullable = false)
	@JsonProperty("revision")
	@Getter @Setter private int revision;

	@Override
	public int compareTo(Version o) {
		return new CompareToBuilder()
				.append(major, o.getMajor())
				.append(minor, o.getMinor())
				.append(revision, o.getRevision())
				.toComparison();
	}
{'fraction_non_alphanumeric': 0.14343570705366182, 'fraction_numerical': 0.0026999662504218697, 'mean_word_length': 5.162162162162162, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '6985370', 'n_tokens_mistral': 1012, 'n_tokens_neox': 960, 'n_words': 216}