<commit_before>package org.lnu.is.resource.enrolment;

import java.text.MessageFormat;
import java.util.Date;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import org.lnu.is.annotation.CrudableResource;
import org.lnu.is.resource.ApiResource;

/**
 * Enrolment Resource.
 * 
 * @author kushnir
 *
 */
@CrudableResource
public class EnrolmentResource extends ApiResource {

	@Min(value = 1, message = "Minimal value is 1")
	private Long parentId;

	@NotNull(message = "Field required")
	@Min(value = 1, message = "Minimal value is 1")
	private Long personId;

	@NotNull(message = "Field required")
	@Min(value = 1, message = "Minimal value is 1")
	private Long specOfferId;

	@NotNull(message = "Field required")
	@Min(value = 1, message = "Minimal value is 1")
	private Long departmentId;

	@NotNull(message = "Field required")
	@Min(value = 1, message = "Minimal value is 1")
	private Long personPaperId;

	@NotNull(message = "Field required")
	@Min(value = 1, message = "Minimal value is 1")
	private Long enrolmentTypeId;

	@NotNull(message = "Field required")
	private Double mark;

	@NotNull(message = "Field required")
	private String docSeries;

	@NotNull(message = "Field required")
	private String docNum;

	@NotNull(message = "Field required")
	private String docText;

	@NotNull(message = "Field required")
	@Min(value = 0, message = "Minimal value is 0")
	@Max(value = 1, message = "Maximal value is 1")
	private Integer isState;

	@NotNull(message = "Field required")
	@Min(value = 0, message = "Minimal value is 0")
	@Max(value = 1, message = "Maximal value is 1")
	private Integer isContract;

	@NotNull(message = "Field required")
	@Min(value = 0, message = "Minimal value is 0")<commit_msg>delete notNull<commit_after>package org.lnu.is.resource.enrolment;

import java.text.MessageFormat;
import java.util.Date;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import org.lnu.is.annotation.CrudableResource;
import org.lnu.is.resource.ApiResource;

/**
 * Enrolment Resource.
 * 
 * @author kushnir
 *
 */
@CrudableResource
public class EnrolmentResource extends ApiResource {

	@Min(value = 1, message = "Minimal value is 1")
	private Long parentId;

	@NotNull(message = "Field required")
	@Min(value = 1, message = "Minimal value is 1")
	private Long personId;

	@NotNull(message = "Field required")
	@Min(value = 1, message = "Minimal value is 1")
	private Long specOfferId;

	@NotNull(message = "Field required")
	@Min(value = 1, message = "Minimal value is 1")
	private Long departmentId;

	@NotNull(message = "Field required")
	@Min(value = 1, message = "Minimal value is 1")
	private Long personPaperId;

	@NotNull(message = "Field required")
	@Min(value = 1, message = "Minimal value is 1")
	private Long enrolmentTypeId;

	@NotNull(message = "Field required")
	private Double mark;

	@NotNull(message = "Field required")
	private String docSeries;

	@NotNull(message = "Field required")
	private String docNum;

	private String docText;

	@NotNull(message = "Field required")
	@Min(value = 0, message = "Minimal value is 0")
	@Max(value = 1, message = "Maximal value is 1")
	private Integer isState;

	@NotNull(message = "Field required")
	@Min(value = 0, message = "Minimal value is 0")
	@Max(value = 1, message = "Maximal value is 1")
	private Integer isContract;

	@NotNull(message = "Field required")
	@Min(value = 0, message = "Minimal value is 0")
{'fraction_non_alphanumeric': 0.12305955405023991, 'fraction_numerical': 0.012418854078464579, 'mean_word_length': 4.91652754590985, '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': '4245585', 'n_tokens_mistral': 1196, 'n_tokens_neox': 1121, 'n_words': 347}