<commit_before>package de.sb.messenger.persistence;
import java.util.Collections;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.validation.constraints.Min;

@Entity
@Table(schema="messenger", name = "BaseEntity")
@Inheritance(strategy=InheritanceType.JOINED)
@DiscriminatorColumn(name = "discriminator", discriminatorType=DiscriminatorType.STRING, length=20)
public class BaseEntity implements Comparable<BaseEntity> {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "identity")
	private long identiy;
	
	@Column(name = "version")
	@Min(1)
	private int version;
	
	@Column(name = "creationTimestamp")
	private long creationTimestamp;
	
	@OneToMany(mappedBy = "subject", cascade=CascadeType.REMOVE)
	private Set<Message> messagesCaused;

	public BaseEntity() {
		this.identiy = 0;
		this.version = 1;
		this.creationTimestamp = System.currentTimeMillis();
		messagesCaused = Collections.emptySet();
	}

	public long getIdentiy() {
		return identiy;
	}

	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}<commit_msg>BaseEntity  JAX-B Annotations<commit_after>package de.sb.messenger.persistence;
import java.util.Collections;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.validation.constraints.Min;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;

@Entity
@Table(schema="messenger", name = "BaseEntity")
@Inheritance(strategy=InheritanceType.JOINED)
@DiscriminatorColumn(name = "discriminator", discriminatorType=DiscriminatorType.STRING, length=20)
@XmlAccessorType(XmlAccessType.NONE)
@XmlType(name="BaseEntity")
@XmlSeeAlso({Message.class, Person.class, Document.class})
public class BaseEntity implements Comparable<BaseEntity> {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "identity")
	@XmlElement
	private long identiy;
	
	@Column(name = "version")
	@Min(1)
	@XmlElement
	private int version;
	
	@Column(name = "creationTimestamp")
	@XmlElement
	private long creationTimestamp;
	
	@OneToMany(mappedBy = "subject", cascade=CascadeType.REMOVE)
	private Set<Message> messagesCaused;

	public BaseEntity() {
		this.identiy = 0;
		this.version = 1;
		this.creationTimestamp = System.currentTimeMillis();
		messagesCaused = Collections.emptySet();
	}

	public long getIdentiy() {
		return identiy;
	}

	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}
{'fraction_non_alphanumeric': 0.10686805357651753, 'fraction_numerical': 0.002849814762040467, 'mean_word_length': 6.564655172413793, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 5}, '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': '6639205', 'n_tokens_mistral': 1112, 'n_tokens_neox': 1070, 'n_words': 214}