<commit_before><!DOCTYPE pdf SYSTEM "%resources%/dtd/doctype.dtd">
<pdf>
	<dynamic-page page-size="a4">
		<div class="logo"><img src="{{ pdf_image('SwoCommonsBundle:swo_logo_big.png') }}" width="200"/></div>
		<div class="title">Aufwandsreport</div>
		{% if report.project != null %}
			<div class="title description">Projekt: {{ report.project.name }}</div>
			<!--<div>{{ report.project.description|nl2br }}<br/><br/></div>-->
		{% endif %}
		{% if report.start and report.end %}
			<div class="title description">Von: {{ report.start|date("d.m.Y") }}
		                                   bis: {{ report.end|date("d.m.Y") }}</div>{% endif %}
		{% if report.start and not report.end %}
			<div class="title description">Von: {{ report.start|date("d.m.Y") }}</div>{% endif %}
		{% if report.employee != null %}
			<div class="title description">Report für {{ report.employee.fullname }}</div>{% endif %}
		<table class="maintable">
			<tr class="thead">
				<td class="firstrow">Datum</td>
				<td class="secondrow">Bezeichnung</td>
				<td class="thirdrow number">Anzahl</td>
				<td class="fourthrow">Einheit</td>
			</tr>
			{% for slice in report.timeslices %}
				<tr class="tbody">
					<td class="firstrow">{{ slice.startedAt|date('d.m.Y') }}</td>
					<td class="secondrow">{{ slice.activity.service.name }}</td>
					<td class="thirdrow number">{{ slice.serializeValue(false) }}</td>
					<td class="fourthrow">{{ slice.activity.rateUnitType.name }}</td>
				</tr>
			{% endfor %}
		</table>
		<div class="title">Gesamt Stunden: {{ report.getSumHours() }}</div>
	</dynamic-page>
</pdf><commit_msg>only show total if employee is selected<commit_after><!DOCTYPE pdf SYSTEM "%resources%/dtd/doctype.dtd">
<pdf>
	<dynamic-page page-size="a4">
		<div class="logo"><img src="{{ pdf_image('SwoCommonsBundle:swo_logo_big.png') }}" width="200"/></div>
		<div class="title">Aufwandsreport</div>
		{% if report.project != null %}
			<!--<div class="title description">Projekt: {{ report.project.name }}</div>-->
			<div class="title description">Projekt: {{ report.project.description|nl2br }}</div>
		{% endif %}
		{% if report.start and report.end %}
			<div class="title description">Von: {{ report.start|date("d.m.Y") }}
		                                   bis: {{ report.end|date("d.m.Y") }}</div>{% endif %}
		{% if report.start and not report.end %}
			<div class="title description">Von: {{ report.start|date("d.m.Y") }}</div>{% endif %}
		{% if report.employee != null %}
			<div class="title description">Report für {{ report.employee.fullname }}</div>{% endif %}
		<table class="maintable">
			<tr class="thead">
				<td class="firstrow">Datum</td>
				<td class="secondrow">Bezeichnung</td>
				<td class="thirdrow number">Anzahl</td>
				<td class="fourthrow">Einheit</td>
			</tr>
			{% for slice in report.timeslices %}
				<tr class="tbody">
					<td class="firstrow">{{ slice.startedAt|date('d.m.Y') }}</td>
					<td class="secondrow">{{ slice.activity.service.name }}</td>
					<td class="thirdrow number">{{ slice.serializeValue(false) }}</td>
					<td class="fourthrow">{{ slice.activity.rateUnitType.name }}</td>
				</tr>
			{% endfor %}
		</table>
		{% if report.employee != null %}
			<div class="title">Gesamt Stunden: {{ report.getSumHours() }}</div>
		{% endif %}
	</dynamic-page>
</pdf>
{'fraction_non_alphanumeric': 0.22064594023543616, 'fraction_numerical': 0.003018412315122246, 'mean_word_length': 3.8521229868228404, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 95, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2370823', 'n_tokens_mistral': 1325, 'n_tokens_neox': 1129, 'n_words': 223}