<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.cananolab.domain.common" auto-import="false">
	<class name="File" table="file" lazy="true" polymorphism="explicit">
		<cache usage="read-write" />
		<id name="id" type="long" column="file_pk_id">
			<generator class="hilo">
                          <param name="table">hibernate_unique_key</param>
                          <param name="column">next_hi</param>
                        </generator>
		</id>
		<!-- Attributes mapping for the File class -->
		<property name="createdBy" type="string" column="created_by"/>
		<property name="createdDate" type="java.util.Date" column="created_date"/>
		<property name="description" type="string" column="description"/>
		<property name="name" type="string" column="file_name"/>
		<property name="title" type="string" column="title"/>
		<property name="type" type="string" column="file_type"/>
		<property name="uri" type="string" column="file_uri"/>
		<property name="uriExternal" type="boolean" column="is_uri_external"/>
		<!-- Associations mapping for the File class -->
		<set name="keywordCollection" table="keyword_file" lazy="true" inverse="false">
			<cache usage="read-write" />
			<key column="file_pk_id" />
			<many-to-many class="gov.nih.nci.cananolab.domain.common.Keyword" column="keyword_pk_id" />
		</set>
		<set name="findingCollection" table="finding_file" lazy="true" inverse="false">
			<cache usage="read-write" />
			<key column="file_pk_id" />
			<many-to-many class="gov.nih.nci.cananolab.domain.common.Finding" column="finding_pk_id" />
		</set>
		<set name="datumCollection" lazy="true">
			<cache usage="read-write" />
			<key column="file_pk_id" />
			<one-to-many class="gov.nih.nci.cananolab.domain.common.Datum"/>
		</set>
		<joined-subclass name="gov.nih.nci.cananolab.domain.common.Publication" table="publication" lazy="true">
			<key column="publication_pk_id" />
			<!-- Attributes mapping for the Publication class -->
			<property name="category" type="string" column="category"/>
			<property name="digitalObjectId" type="string" column="digital_object_id"/>
			<property name="endPage" type="string" column="end_page"/>
			<property name="journalName" type="string" column="journal_name"/>
			<property name="pubMedId" type="long" column="pubmed_id"/>
			<property name="researchArea" type="string" column="research_area"/>
			<property name="startPage" type="string" column="start_page"/>
			<property name="status" type="string" column="publication_status"/>
			<property name="volume" type="string" column="volume"/>
			<property name="year" type="integer" column="year"/>
			<!-- Associations mapping for the Publication class -->
			<set name="studyCollection" table="study_publication" lazy="true" inverse="true">
				<cache usage="read-write" />
				<key column="publication_pk_id" />
				<many-to-many class="gov.nih.nci.cananolab.domain.common.Study" column="study_pk_id" />
			</set>
			<set name="sampleCollection" table="sample_publication" lazy="true" inverse="false">
				<cache usage="read-write" />
				<key column="publication_pk_id" />
				<many-to-many class="gov.nih.nci.cananolab.domain.common.Sample" column="sample_pk_id" />
			</set>
			<set name="authorCollection" table="author_publication" lazy="true" inverse="true">
				<cache usage="read-write" />
				<key column="publication_pk_id" />
				<many-to-many class="gov.nih.nci.cananolab.domain.common.Author" column="author_pk_id" />
			</set>

		</joined-subclass>
	</class>
</hibernate-mapping><commit_msg>updated inverse and cascade<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.cananolab.domain.common" auto-import="false">
	<class name="File" table="file" lazy="true" polymorphism="explicit">
		<cache usage="read-write" />
		<id name="id" type="long" column="file_pk_id">
			<generator class="hilo">
                          <param name="table">hibernate_unique_key</param>
                          <param name="column">next_hi</param>
                        </generator>
		</id>
		<!-- Attributes mapping for the File class -->
		<property name="createdBy" type="string" column="created_by"/>
		<property name="createdDate" type="java.util.Date" column="created_date"/>
		<property name="description" type="string" column="description"/>
		<property name="name" type="string" column="file_name"/>
		<property name="title" type="string" column="title"/>
		<property name="type" type="string" column="file_type"/>
		<property name="uri" type="string" column="file_uri"/>
		<property name="uriExternal" type="boolean" column="is_uri_external"/>
		<!-- Associations mapping for the File class -->
		<set name="keywordCollection" table="keyword_file" lazy="true">
			<cache usage="read-write" />
			<key column="file_pk_id" />
			<many-to-many class="gov.nih.nci.cananolab.domain.common.Keyword" column="keyword_pk_id" />
		</set>
		<set name="findingCollection" table="finding_file" lazy="true" inverse="true">
			<cache usage="read-write" />
			<key column="file_pk_id" />
			<many-to-many class="gov.nih.nci.cananolab.domain.common.Finding" column="finding_pk_id" />
		</set>
		<set name="datumCollection" lazy="true">
			<cache usage="read-write" />
			<key column="file_pk_id" />
			<one-to-many class="gov.nih.nci.cananolab.domain.common.Datum"/>
		</set>
		<joined-subclass name="gov.nih.nci.cananolab.domain.common.Publication" table="publication" lazy="true">
			<key column="publication_pk_id" />
			<!-- Attributes mapping for the Publication class -->
			<property name="category" type="string" column="category"/>
			<property name="digitalObjectId" type="string" column="digital_object_id"/>
			<property name="endPage" type="string" column="end_page"/>
			<property name="journalName" type="string" column="journal_name"/>
			<property name="pubMedId" type="long" column="pubmed_id"/>
			<property name="researchArea" type="string" column="research_area"/>
			<property name="startPage" type="string" column="start_page"/>
			<property name="status" type="string" column="publication_status"/>
			<property name="volume" type="string" column="volume"/>
			<property name="year" type="integer" column="year"/>
			<!-- Associations mapping for the Publication class -->
			<set name="studyCollection" table="study_publication" lazy="true" inverse="true">
				<cache usage="read-write" />
				<key column="publication_pk_id" />
				<many-to-many class="gov.nih.nci.cananolab.domain.common.Study" column="study_pk_id" />
			</set>
			<set name="sampleCollection" table="sample_publication" lazy="true">
				<cache usage="read-write" />
				<key column="publication_pk_id" />
				<many-to-many class="gov.nih.nci.cananolab.domain.common.Sample" column="sample_pk_id" />
			</set>
			<set name="authorCollection" table="author_publication" lazy="true" cascade="all-delete-orphan">
				<cache usage="read-write" />
				<key column="publication_pk_id" />
				<many-to-many class="gov.nih.nci.cananolab.domain.common.Author" column="author_pk_id" />
			</set>

		</joined-subclass>
	</class>
</hibernate-mapping>
{'fraction_non_alphanumeric': 0.1797085806799784, 'fraction_numerical': 0.0018888289260658392, 'mean_word_length': 4.755434782608695, 'pattern_counts': {'":': 0, '<': 143, '<?xml version=': 2, '>': 143, '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': '1893732', 'n_tokens_mistral': 2642, 'n_tokens_neox': 2331, 'n_words': 426}