<commit_before>package toulousemusee

class DemandeVisite {

	String code
	Date dateDebutPeriode
	Date dateFinPeriode
	int nbPersonne
	String statut

	static hasMany = [
		demandesVisitesMusees: DemandeVisiteMusee
	]

	static constraints = {
		code unique: true, matches: "CODE-[0-9]+"
		dateDebutPeriode (validator: {val, obj -> val?.after(new Date() - 1)})
		dateFinPeriode (validator: {val, obj -> val?.after(obj.dateDebutPeriode)})
		nbPersonne range: 1..6
		statut inList: [
			"En cours de traitement",
			"Confirmée",
			"Refusée"
		]
	}
	
	static mapping = {
		demandesVisitesMusees fetch: 'join'
	}

	String toString(){
		return code
	}
}<commit_msg>Delete mapping fetch for DemandeVisite<commit_after>package toulousemusee

class DemandeVisite {

	String code
	Date dateDebutPeriode
	Date dateFinPeriode
	int nbPersonne
	String statut

	static hasMany = [
		demandesVisitesMusees: DemandeVisiteMusee
	]

	static constraints = {
		code unique: true, matches: "CODE-[0-9]+"
		dateDebutPeriode (validator: {val, obj -> val?.after(new Date() - 1)})
		dateFinPeriode (validator: {val, obj -> val?.after(obj.dateDebutPeriode)})
		nbPersonne range: 1..6
		statut inList: [
			"En cours de traitement",
			"Confirmée",
			"Refusée"
		]
	}

	String toString(){
		return code
	}
}
{'fraction_non_alphanumeric': 0.1109375, 'fraction_numerical': 0.0078125, 'mean_word_length': 4.103585657370518, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '525289', 'n_tokens_mistral': 529, 'n_tokens_neox': 473, 'n_words': 113}