<commit_before>package gov.nih.nci.cabig.caaers.domain;

import gov.nih.nci.cabig.caaers.rules.common.CaaersRuleUtil;
import gov.nih.nci.cabig.caaers.rules.common.RuleLevel;
import gov.nih.nci.cabig.caaers.rules.common.RuleType;
import gov.nih.nci.cabig.caaers.validation.ValidationErrors;
import org.apache.commons.lang.StringUtils;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;

import javax.persistence.*;
import java.io.Serializable;

/**
 * A rule-set. In general rule scan be configured at 4 levels
 *   a. Sponsor
 *   b. Institution
 *   c. Sponsor &amps; Study
 *   d. Institution &amps; Study
 *   
 * Also the system supports 3 kinds of rules
 *   a. SAE reporting rules
 *   b. Mandatory section rules
 *   c. Field validation rules
 */
@Entity
@Table(name = "rule_sets")//rule_sets
@GenericGenerator(name = "id-generator", strategy = "native", parameters = { @Parameter(name = "sequence", value = "seq_rule_set_id") })
public class RuleSet extends AbstractIdentifiableDomainObject implements Serializable  {

    public static final String STATUS_ENABLED= "Enabled";<commit_msg>CAAERS-5086 Unable to save rulesets in oracle<commit_after>package gov.nih.nci.cabig.caaers.domain;

import gov.nih.nci.cabig.caaers.rules.common.CaaersRuleUtil;
import gov.nih.nci.cabig.caaers.rules.common.RuleLevel;
import gov.nih.nci.cabig.caaers.rules.common.RuleType;
import gov.nih.nci.cabig.caaers.validation.ValidationErrors;
import org.apache.commons.lang.StringUtils;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;

import javax.persistence.*;
import java.io.Serializable;

/**
 * A rule-set. In general rule scan be configured at 4 levels
 *   a. Sponsor
 *   b. Institution
 *   c. Sponsor &amps; Study
 *   d. Institution &amps; Study
 *   
 * Also the system supports 3 kinds of rules
 *   a. SAE reporting rules
 *   b. Mandatory section rules
 *   c. Field validation rules
 */
@Entity
@Table(name = "rule_sets")//rule_sets
@GenericGenerator(name = "id-generator", strategy = "native", parameters = { @Parameter(name = "sequence", value = "seq_rule_sets_id") })
public class RuleSet extends AbstractIdentifiableDomainObject implements Serializable  {

    public static final String STATUS_ENABLED= "Enabled";
{'fraction_non_alphanumeric': 0.11024643320363164, 'fraction_numerical': 0.0034587116299178555, 'mean_word_length': 4.535885167464115, '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': '3143703', 'n_tokens_mistral': 761, 'n_tokens_neox': 740, 'n_words': 181}