<commit_before>package ch.elexis.core.model.builder;

import java.time.LocalDate;

import ch.elexis.core.model.ICoverage;
import ch.elexis.core.model.IEncounter;
import ch.elexis.core.model.IMandator;
import ch.elexis.core.services.IModelService;

public class IEncounterBuilder extends AbstractBuilder<IEncounter> {


	public IEncounterBuilder(IModelService modelService, ICoverage coverage, IMandator mandator){
		super(modelService);
		
		object = modelService.create(IEncounter.class);
		object.setCoverage(coverage);
		object.setMandator(mandator);
	}
	
	public IEncounterBuilder date(LocalDate date){
		object.setDate(date);
		return this;
	}
}<commit_msg>[14501] IEncounterBuilder#date default to now<commit_after>package ch.elexis.core.model.builder;

import java.time.LocalDate;

import ch.elexis.core.model.ICoverage;
import ch.elexis.core.model.IEncounter;
import ch.elexis.core.model.IMandator;
import ch.elexis.core.services.IModelService;

public class IEncounterBuilder extends AbstractBuilder<IEncounter> {
	
	/**
	 * Create an {@link IEncounter} with the provided parameters, and {@link IEncounter#getDate()}
	 * now.
	 * 
	 * @param modelService
	 * @param coverage
	 * @param mandator
	 */
	public IEncounterBuilder(IModelService modelService, ICoverage coverage, IMandator mandator){
		super(modelService);
		
		object = modelService.create(IEncounter.class);
		object.setCoverage(coverage);
		object.setMandator(mandator);
		object.setDate(LocalDate.now());
	}
	
	public IEncounterBuilder date(LocalDate date){
		object.setDate(date);
		return this;
	}
}
{'fraction_non_alphanumeric': 0.1073015873015873, 'fraction_numerical': 0.0031746031746031746, 'mean_word_length': 5.539419087136929, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3439421', 'n_tokens_mistral': 544, 'n_tokens_neox': 512, 'n_words': 95}