<commit_before>package ajuda.ai.model.institution;

import java.util.Set;

import javax.persistence.Column;
import javax.persistence.ElementCollection;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Pattern.Flag;
import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotBlank;

import ajuda.ai.model.Slug;
import ajuda.ai.model.billing.PaymentServiceEnum;
import ajuda.ai.model.extra.CreationInfo;

/**
 * Representa uma Instituição que será ajudada por seus {@link InstitutionHelper Ajudantes}
 * 
 * @author <NAME> - g0dkar
 *
 */
@Entity
public class Institution extends Slug {
	/** Serial Version UID */
	private static final long serialVersionUID = 1L;
	
	@Embedded
	private CreationInfo creation;
	
	@NotBlank
	@Size(max = 255)
	@Column(nullable = false, length = 255)
	private String name;
	
	@NotBlank
	@Size(max = 65535)
	@Column(nullable = false, columnDefinition = "MEDIUMTEXT")
	private String description;
	
	@ManyToOne(optional = false, fetch = FetchType.EAGER)
	private InstitutionPost pinnedPost;
	
	@OneToMany(mappedBy = "institution", orphanRemoval = true, fetch = FetchType.LAZY)
	private Set<InstitutionHelper> helpers;
	
	@ElementCollection
	@Column(length = 36)
	@Pattern(regexp = "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}", flags = { Flag.CASE_INSENSITIVE })
	private Set<String> leaders;
	
	@NotNull
	@Column(nullable = false)
	@Enumerated(EnumType.STRING)
	private PaymentServiceEnum paymentService;
	
	@NotBlank
	@Column(nullable = false, length = 1024)
	private String paymentServiceData;
<commit_msg>Corrigindo o modelo<commit_after>package ajuda.ai.model.institution;

import java.util.Set;

import javax.persistence.Column;
import javax.persistence.ElementCollection;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotBlank;

import ajuda.ai.model.Slug;
import ajuda.ai.model.billing.PaymentServiceEnum;
import ajuda.ai.model.extra.CreationInfo;

/**
 * Representa uma Instituição que será ajudada por seus {@link InstitutionHelper Ajudantes}
 * 
 * @author <NAME> - g0dkar
 *
 */
@Entity
public class Institution extends Slug {
	/** Serial Version UID */
	private static final long serialVersionUID = 1L;
	
	@Embedded
	private CreationInfo creation;
	
	@NotBlank
	@Size(max = 255)
	@Column(nullable = false, length = 255)
	private String name;
	
	@NotBlank
	@Size(max = 65535)
	@Column(nullable = false, columnDefinition = "MEDIUMTEXT")
	private String description;
	
	@ManyToOne(fetch = FetchType.EAGER)
	private InstitutionPost pinnedPost;
	
	@OneToMany(mappedBy = "institution", orphanRemoval = true, fetch = FetchType.LAZY)
	private Set<InstitutionHelper> helpers;
	
	@ElementCollection
	@Column(length = 36)
	private Set<String> leaders;
	
	@NotNull
	@Column(nullable = false)
	@Enumerated(EnumType.STRING)
	private PaymentServiceEnum paymentService;
	
	@NotBlank
	@Column(nullable = false, length = 1024)
	private String paymentServiceData;

{'fraction_non_alphanumeric': 0.10643633324045695, 'fraction_numerical': 0.015045973808860406, 'mean_word_length': 5.587155963302752, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2652211', 'n_tokens_mistral': 1205, 'n_tokens_neox': 1155, 'n_words': 256}