<commit_before>package org.codehaus.groovy.grails.orm.hibernate;

import org.codehaus.groovy.grails.commons.*

class TwoUnidirecitonalOneToManyTests extends AbstractGrailsHibernateTests {

	void testTwoUniOneToManys() {
		def mailing = ga.getDomainClass("Mailing").newInstance()
		def recipient = ga.getDomainClass("Recipient").newInstance()
		def doc1 = ga.getDomainClass("Document").newInstance()
		def doc2 = ga.getDomainClass("Document").newInstance()
		
		doc1.filename = "file1.txt"
		doc2.filename = "file2.txt"
		
		mailing.addDocument(doc1)
		mailing.save(true)
		
		recipient.addDocument(doc2)
		recipient.save(true)
	}
	

	
	void onSetUp() {
		this.gcl.parseClass('''
class Mailing {
	Long id
	Long version
	Set documents
	static hasMany = [documents:Document]
}
class Recipient {
	Long id
	Long version
	Set documents
	static hasMany = [documents:Document]
}
class Document {
	Long id
	Long version
	String filename
}
'''
		)
	}
	
	void onTearDown() {
		
	}
}<commit_msg>accidently committed. commented out test for now<commit_after>package org.codehaus.groovy.grails.orm.hibernate;

import org.codehaus.groovy.grails.commons.*

class TwoUnidirecitonalOneToManyTests extends AbstractGrailsHibernateTests {

	void testTwoUniOneToManys() {
	/*	def mailing = ga.getDomainClass("Mailing").newInstance()
		def recipient = ga.getDomainClass("Recipient").newInstance()
		def doc1 = ga.getDomainClass("Document").newInstance()
		def doc2 = ga.getDomainClass("Document").newInstance()
		
		doc1.filename = "file1.txt"
		doc2.filename = "file2.txt"
		
		mailing.addDocument(doc1)
		mailing.save(true)
		
		recipient.addDocument(doc2)
		recipient.save(true)*/
	}
	

	
	void onSetUp() {
	/*	this.gcl.parseClass('''
class Mailing {
	Long id
	Long version
	Set documents
	static hasMany = [documents:Document]
}
class Recipient {
	Long id
	Long version
	Set documents
	static hasMany = [documents:Document]
}
class Document {
	Long id
	Long version
	String filename
}
'''
		)*/
	}
	
	void onTearDown() {
		
	}
}
{'fraction_non_alphanumeric': 0.11498257839721254, 'fraction_numerical': 0.007964161274265804, 'mean_word_length': 4.4324324324324325, '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': '5532452', 'n_tokens_mistral': 764, 'n_tokens_neox': 681, 'n_words': 136}