<commit_before><?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
        "-//Hibernate/Hibernate Mapping DTD 3.1//EN"
        "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >

<hibernate-mapping package="org.openmrs.module.allergyapi">

    <class name="Allergy" table="allergy">

        <id name="allergyId" type="int" column="allergy_id">
        </id>
        <property name="patient" type="org.openmrs.Patient" column="patient_id" not-null="true"/>
        <property name="allergen" type="org.openmrs.module.allergyapi.Allergen" column="allergen_id" not-null="true"/>
        <property name="severity" type="org.openmrs.Concept" column="severity_concept_id" not-null="true"/>
        <property name="comment" type="java.lang.String" column="comment"/>
        <property name="creator" type="org.openmrs.User" column="creator" not-null="true"/>
        <property name="dateCreated" type="java.util.Date" column="date_created" not-null="true"/>
        <property name="voided" type="java.lang.Boolean" column="voided"
                  length="1" not-null="true"/>
        <property name="dateVoided" type="java.util.Date"
                  column="date_voided" length="19"/>
        <property name="voidReason" type="java.lang.String"
                  column="void_reason" length="255"/>
        <many-to-one name="voidedBy" column="voided_by"/>
        <property name="uuid" type="java.lang.String" column="uuid" length="38" unique="true"/>
    </class>

</hibernate-mapping><commit_msg>RA-358 Create hibernate mapping file for Allergy object<commit_after><?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
        "-//Hibernate/Hibernate Mapping DTD 3.1//EN"
        "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >

<hibernate-mapping package="org.openmrs.module.allergyapi">

    <class name="Allergy" table="allergy">

        <id name="allergyId" type="int" column="allergy_id">
            <generator class="native"/>
        </id>
        <discriminator column="allergy_id" insert="false"/>
        <many-to-one name="patient" column="patient_id" class="org.openmrs.Patient" not-null="true"/>
        <many-to-one name="allergen" column="allergen_id" class="org.openmrs.module.allergyapi.Allergen" not-null="true"/>
        <many-to-one name="severity" column="severity_concept_id" class="org.openmrs.Concept" not-null="true"/>
        <property name="comment" column="comment" type="java.lang.String" length="1024"/>
        <many-to-one name="creator" column="creator" class="org.openmrs.User" not-null="true"/>
        <property name="dateCreated" type="java.util.Date" column="date_created" not-null="true"/>
        <property name="voided" type="java.lang.Boolean" column="voided" length="1" not-null="true"/>
        <property name="dateVoided" type="java.util.Date" column="date_voided" length="19"/>
        <property name="voidReason" type="java.lang.String" column="void_reason" length="255"/>
        <many-to-one name="voidedBy" column="voided_by" class="org.openmrs.User"/>
        <property name="uuid" type="java.lang.String" column="uuid" length="38" unique="true"/>
    </class>
</hibernate-mapping>
{'fraction_non_alphanumeric': 0.17791798107255521, 'fraction_numerical': 0.011041009463722398, 'mean_word_length': 3.870967741935484, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 2, '>': 43, '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': '2217890', 'n_tokens_mistral': 1059, 'n_tokens_neox': 994, 'n_words': 165}