<commit_before><?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
    "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="org.openmrs">

	<class name="Obs" table="obs" batch-size="25">

		<id name="obsId" type="int" column="obs_id" unsaved-value="null">
			<generator class="native">
				<param name="sequence">obs_obs_id_seq</param>
			</generator>
		</id>

		<discriminator column="obs_id" insert="false" />

		<property name="uuid" type="java.lang.String"
			column="uuid" length="38" unique="true" />

		<property name="personId" type="java.lang.Integer" length="11" 
			column="person_id" not-null="true" insert="false" update="false" />
			
		<property name="obsDatetime" type="java.util.Date"
			column="obs_datetime" not-null="true" length="19" />
					
		<property name="valueGroupId" type="java.lang.Integer"
			column="value_group_id" length="11" />
		<property name="valueDatetime" type="java.util.Date"
			column="value_datetime" length="19" />
		<property name="valueNumeric" type="double"
			column="value_numeric" length="22" />
		<property name="valueModifier" type="java.lang.String"
			column="value_modifier" length="2" />
		<property name="valueText" type="java.lang.String"
			column="value_text" length="50" />
		<property name="valueComplex" type="java.lang.String"
		    column="value_complex" length="255" />
			
		<property name="comment" type="java.lang.String"
			column="comments" length="255" />
		<property name="accessionNumber" type="java.lang.String"
			column="accession_number" length="255" />
			
				
		<property name="dateCreated" type="java.util.Date"
			column="date_created" not-null="true" length="19" />
		<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" />

		<!-- Associations -->

		<many-to-one name="person" class="Person" not-null="true" column="person_id" />
		<many-to-one name="concept" class="Concept" not-null="true" column="concept_id" />
		<many-to-one name="valueCoded" class="Concept" column="value_coded" />
		<many-to-one name="valueCodedName" class="ConceptName" column="value_coded_name_id" />
		<many-to-one name="valueDrug" class="Drug" column="value_drug" />
		<many-to-one name="order" class="Order" column="order_id" />
		<many-to-one name="location" class="Location" not-null="false" column="location_id" />
		<many-to-one name="encounter" class="Encounter" column="encounter_id" />
		<many-to-one name="creator" class="User" not-null="true" />
		<many-to-one name="voidedBy" class="User" column="voided_by" />
		
		<!-- many-to-one association from this obs to its parent grouping obs -->
		<!-- insert/update=false because the groupMembers set is doing the saving for us -->
		<many-to-one name="obsGroup" class="Obs" column="obs_group_id" insert="true" update="true"/>
		
		<!-- one-to-many association to all obs in this grouping -->
		<set name="groupMembers" inverse="true" cascade="all" order-by="obs_id"
		access = "field">
			<key column="obs_group_id" />
			<one-to-many class="Obs" />
		</set> 
		<many-to-one name="previousVersion" class="Obs" column="previous_version" unique="true" />
	</class>
	
</hibernate-mapping>
<commit_msg>TRUNK-3224 : increase the length of value_text from 50 to 65535, to match the MySQL column type TEXT that backs it Author: jriley<commit_after><?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
    "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="org.openmrs">

	<class name="Obs" table="obs" batch-size="25">

		<id name="obsId" type="int" column="obs_id" unsaved-value="null">
			<generator class="native">
				<param name="sequence">obs_obs_id_seq</param>
			</generator>
		</id>

		<discriminator column="obs_id" insert="false" />

		<property name="uuid" type="java.lang.String"
			column="uuid" length="38" unique="true" />

		<property name="personId" type="java.lang.Integer" length="11" 
			column="person_id" not-null="true" insert="false" update="false" />
			
		<property name="obsDatetime" type="java.util.Date"
			column="obs_datetime" not-null="true" length="19" />
					
		<property name="valueGroupId" type="java.lang.Integer"
			column="value_group_id" length="11" />
		<property name="valueDatetime" type="java.util.Date"
			column="value_datetime" length="19" />
		<property name="valueNumeric" type="double"
			column="value_numeric" length="22" />
		<property name="valueModifier" type="java.lang.String"
			column="value_modifier" length="2" />
		<property name="valueText" type="java.lang.String"
			column="value_text" length="65535" />
		<property name="valueComplex" type="java.lang.String"
		    column="value_complex" length="255" />
			
		<property name="comment" type="java.lang.String"
			column="comments" length="255" />
		<property name="accessionNumber" type="java.lang.String"
			column="accession_number" length="255" />
			
				
		<property name="dateCreated" type="java.util.Date"
			column="date_created" not-null="true" length="19" />
		<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" />

		<!-- Associations -->

		<many-to-one name="person" class="Person" not-null="true" column="person_id" />
		<many-to-one name="concept" class="Concept" not-null="true" column="concept_id" />
		<many-to-one name="valueCoded" class="Concept" column="value_coded" />
		<many-to-one name="valueCodedName" class="ConceptName" column="value_coded_name_id" />
		<many-to-one name="valueDrug" class="Drug" column="value_drug" />
		<many-to-one name="order" class="Order" column="order_id" />
		<many-to-one name="location" class="Location" not-null="false" column="location_id" />
		<many-to-one name="encounter" class="Encounter" column="encounter_id" />
		<many-to-one name="creator" class="User" not-null="true" />
		<many-to-one name="voidedBy" class="User" column="voided_by" />
		
		<!-- many-to-one association from this obs to its parent grouping obs -->
		<!-- insert/update=false because the groupMembers set is doing the saving for us -->
		<many-to-one name="obsGroup" class="Obs" column="obs_group_id" insert="true" update="true"/>
		
		<!-- one-to-many association to all obs in this grouping -->
		<set name="groupMembers" inverse="true" cascade="all" order-by="obs_id"
		access = "field">
			<key column="obs_group_id" />
			<one-to-many class="Obs" />
		</set> 
		<many-to-one name="previousVersion" class="Obs" column="previous_version" unique="true" />
	</class>
	
</hibernate-mapping>

{'fraction_non_alphanumeric': 0.1804953127186232, 'fraction_numerical': 0.013152371624457815, 'mean_word_length': 4.318452380952381, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 2, '>': 99, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2495737', 'n_tokens_mistral': 2740, 'n_tokens_neox': 2324, 'n_words': 441}