<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="gov.nih.nci.caintegrator2.domain.application">
    <typedef name="RegulationTypeEnum" class="gov.nih.nci.caintegrator2.common.GenericEnumUserType"> 
        <param name="enumClass">gov.nih.nci.caintegrator2.domain.application.RegulationTypeEnum</param> 
    </typedef> 
    <typedef name="BooleanOperatorEnum" class="gov.nih.nci.caintegrator2.common.GenericEnumUserType"> 
        <param name="enumClass">gov.nih.nci.caintegrator2.domain.application.BooleanOperatorEnum</param> 
    </typedef> 
    <typedef name="WildCardTypeEnum" class="gov.nih.nci.caintegrator2.common.GenericEnumUserType"> 
        <param name="enumClass">gov.nih.nci.caintegrator2.domain.application.WildCardTypeEnum</param> 
    </typedef> 
    <typedef name="EntityTypeEnum" class="gov.nih.nci.caintegrator2.common.GenericEnumUserType"> 
        <param name="enumClass">gov.nih.nci.caintegrator2.domain.application.EntityTypeEnum</param> 
    </typedef> 
    <class name="AbstractCriterion" table="ABSTRACT_CRITERION" lazy="false" polymorphism="explicit">
        <cache usage="read-write" />
        <id name="id" type="long" column="ID">
            <generator class="native" />
        </id>
        <!-- Attributes mapping for the AbstractCriterion class -->
        <!-- Associations mapping for the AbstractCriterion class -->
        <joined-subclass name="AbstractAnnotationCriterion" table="ABSTRACT_ANNOTATION_CRITERION" lazy="false">
            <key column="ID" />
            <!-- Attributes mapping for the AbstractAnnotationCriterion class -->
            <property name="entityType" type="EntityTypeEnum" column="ENTITY_TYPE"/>
            <!-- Associations mapping for the AbstractAnnotationCriterion class -->
            <many-to-one name="annotationDefinition" class="gov.nih.nci.caintegrator2.domain.annotation.AnnotationDefinition" column="ANNOTATION_DEFINITION_ID" lazy="proxy" cascade="none" />
            <joined-subclass name="NumericComparisonCriterion" table="NUMERIC_COMPARISON_CRITERION" lazy="false">
                <key column="ID" />
                <!-- Attributes mapping for the NumericComparisonCriterion class -->
                <property name="numericComparisonOperator" type="string" column="NUMERIC_COMPARISON_OPERATOR"/>
                <property name="numericValue" type="double" column="NUMERIC_VALUE"/>
            </joined-subclass>
            <joined-subclass name="StringComparisonCriterion" table="STRING_COMPARISON_CRITERION" lazy="false">
                <key column="ID" />
                <!-- Attributes mapping for the StringComparisonCriterion class -->
                <property name="stringValue" type="string" column="STRING_VALUE"/>
                <property name="wildCardType" type="WildCardTypeEnum" column="WILD_CARD_TYPE"/>
                <joined-subclass name="IdentifierCriterion" table="IDENTIFIER_CRITERION" lazy="false">
                    <key column="ID" />
                </joined-subclass>
            </joined-subclass>
            <joined-subclass name="SelectedValueCriterion" table="SELECTED_VALUE_CRITERION" lazy="false">
                <key column="ID" />
                <!-- Associations mapping for the SelectedValueCriterion class -->
                <set name="valueCollection" table="SELECTED_VALUE_CRITERIA_PERMISSIBLE_VALUES" lazy="true" cascade="save-update,merge" >
                    <cache usage="read-write" />
                    <key column="SELECTED_VALUE_CRITERION_ID" />
                    <many-to-many class="gov.nih.nci.caintegrator2.domain.annotation.AbstractPermissibleValue" column="ABSTRACT_PERMISSIBLE_VALUE_ID" />
                </set>
            </joined-subclass>
        </joined-subclass>
        <joined-subclass name="CompoundCriterion" table="COMPOUND_CRITERION" lazy="false">
            <key column="ID" />
            <!-- Attributes mapping for the CompoundCriterion class -->
            <property name="booleanOperator" type="BooleanOperatorEnum" column="BOOLEAN_OPERATOR"/>
            <!-- Associations mapping for the CompoundCriterion class -->
            <set name="criterionCollection" lazy="true" cascade="all" >
                <cache usage="read-write" />
                <key column="COMPOUND_CRITERION_ID" /><commit_msg>User Story 18644: Fixed NumericComparisonCriterion mapping. Peer reviewed by Ngoc.<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="gov.nih.nci.caintegrator2.domain.application">
    <typedef name="RegulationTypeEnum" class="gov.nih.nci.caintegrator2.common.GenericEnumUserType"> 
        <param name="enumClass">gov.nih.nci.caintegrator2.domain.application.RegulationTypeEnum</param> 
    </typedef> 
    <typedef name="BooleanOperatorEnum" class="gov.nih.nci.caintegrator2.common.GenericEnumUserType"> 
        <param name="enumClass">gov.nih.nci.caintegrator2.domain.application.BooleanOperatorEnum</param> 
    </typedef> 
    <typedef name="NumericComparisonOperatorEnum" class="gov.nih.nci.caintegrator2.common.GenericEnumUserType"> 
        <param name="enumClass">gov.nih.nci.caintegrator2.domain.application.NumericComparisonOperatorEnum</param> 
    </typedef> 
    <typedef name="WildCardTypeEnum" class="gov.nih.nci.caintegrator2.common.GenericEnumUserType"> 
        <param name="enumClass">gov.nih.nci.caintegrator2.domain.application.WildCardTypeEnum</param> 
    </typedef> 
    <typedef name="EntityTypeEnum" class="gov.nih.nci.caintegrator2.common.GenericEnumUserType"> 
        <param name="enumClass">gov.nih.nci.caintegrator2.domain.application.EntityTypeEnum</param> 
    </typedef> 
    <class name="AbstractCriterion" table="ABSTRACT_CRITERION" lazy="false" polymorphism="explicit">
        <cache usage="read-write" />
        <id name="id" type="long" column="ID">
            <generator class="native" />
        </id>
        <!-- Attributes mapping for the AbstractCriterion class -->
        <!-- Associations mapping for the AbstractCriterion class -->
        <joined-subclass name="AbstractAnnotationCriterion" table="ABSTRACT_ANNOTATION_CRITERION" lazy="false">
            <key column="ID" />
            <!-- Attributes mapping for the AbstractAnnotationCriterion class -->
            <property name="entityType" type="EntityTypeEnum" column="ENTITY_TYPE"/>
            <!-- Associations mapping for the AbstractAnnotationCriterion class -->
            <many-to-one name="annotationDefinition" class="gov.nih.nci.caintegrator2.domain.annotation.AnnotationDefinition" column="ANNOTATION_DEFINITION_ID" lazy="proxy" cascade="none" />
            <joined-subclass name="NumericComparisonCriterion" table="NUMERIC_COMPARISON_CRITERION" lazy="false">
                <key column="ID" />
                <!-- Attributes mapping for the NumericComparisonCriterion class -->
                <property name="numericComparisonOperator" type="NumericComparisonOperatorEnum" column="NUMERIC_COMPARISON_OPERATOR"/>
                <property name="numericValue" type="double" column="NUMERIC_VALUE"/>
            </joined-subclass>
            <joined-subclass name="StringComparisonCriterion" table="STRING_COMPARISON_CRITERION" lazy="false">
                <key column="ID" />
                <!-- Attributes mapping for the StringComparisonCriterion class -->
                <property name="stringValue" type="string" column="STRING_VALUE"/>
                <property name="wildCardType" type="WildCardTypeEnum" column="WILD_CARD_TYPE"/>
                <joined-subclass name="IdentifierCriterion" table="IDENTIFIER_CRITERION" lazy="false">
                    <key column="ID" />
                </joined-subclass>
            </joined-subclass>
            <joined-subclass name="SelectedValueCriterion" table="SELECTED_VALUE_CRITERION" lazy="false">
                <key column="ID" />
                <!-- Associations mapping for the SelectedValueCriterion class -->
                <set name="valueCollection" table="SELECTED_VALUE_CRITERIA_PERMISSIBLE_VALUES" lazy="true" cascade="save-update,merge" >
                    <cache usage="read-write" />
                    <key column="SELECTED_VALUE_CRITERION_ID" />
                    <many-to-many class="gov.nih.nci.caintegrator2.domain.annotation.AbstractPermissibleValue" column="ABSTRACT_PERMISSIBLE_VALUE_ID" />
                </set>
            </joined-subclass>
        </joined-subclass>
        <joined-subclass name="CompoundCriterion" table="COMPOUND_CRITERION" lazy="false">
            <key column="ID" />
            <!-- Attributes mapping for the CompoundCriterion class -->
            <property name="booleanOperator" type="BooleanOperatorEnum" column="BOOLEAN_OPERATOR"/>
            <!-- Associations mapping for the CompoundCriterion class -->
            <set name="criterionCollection" lazy="true" cascade="all" >
                <cache usage="read-write" />
                <key column="COMPOUND_CRITERION_ID" />
{'fraction_non_alphanumeric': 0.12752402548320915, 'fraction_numerical': 0.004643127092106684, 'mean_word_length': 3.172072072072072, 'pattern_counts': {'":': 0, '<': 137, '<?xml version=': 2, '>': 137, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3233901', 'n_tokens_mistral': 2677, 'n_tokens_neox': 2539, 'n_words': 409}