<commit_before><template name="eventPage">
	<div class="course_event_detail" id="coursedetails">
		{{#if course}}
			<p>
				<a href="{{pathFor 'showCourse' _id=course._id}}">
					<span class="glyphicon glyphicon-arrow-left"></span>
					{{mf 'course.event.detail.back' 'Back to course'}} "{{course.name}}"
				</a>
			</p>
		{{/if}}
		{{> event}}
	</div>
</template>

<template name="eventNotFound">
	<h4>{{mf "event.no_event" "Sorry, we couldn't find this event, it must have been deleted or it never existed in the first place."}}</h4>
</template>

<template name="event">
	{{#if editing}}
		{{> eventEdit}}
	{{else}}
		{{> eventDisplay}}
	{{/if}}
</template>

<template name="eventDisplay">
	<div class="course_event">
		<div class="course_event_date">
				<span class="day">{{weekday start}}</span><br>
				<span class="date">
					<span class="glyphicon glyphicon-calendar"></span>
					{{dateformat_mini_fullmonth start}}
				</span>
		</div>
		<div class="course_event_lower_section">
			<div class="head">
				<div class="course_event_title">
					<h3>{{this.title}}</h3>
					{{> groupList}}
				</div>
				{{#if location.name}}
					<div class="course_event_location">
						{{#if location._id}}
							<a class="location_link" href="{{pathFor 'locationDetails' data=location}}">
								<span class="glyphicon glyphicon-home"></span>
								{{location.name}}
							</a>
						{{else}}
							<span class="glyphicon glyphicon-home"></span>
							{{location.name}}
						{{/if}}
						{{#if room}}
							&nbsp; &nbsp;
							<span class="fa fa-map-signs"></span>
							{{room}}
						{{/if}}
					</div>
				{{/if}}
				{{#if location.address}}
					<div>
						<span class="fa fa-map-marker"></span>
						{{location.address}}
					</div>
				{{/if}}
				<div class="course_event_time">
					<span class="glyphicon glyphicon-time"></span>
					{{timeformat start}} - {{timeformat end}}
				</div>
			</div>
			{{#if haveLocation}}
				<div class="mapBox">
					{{>map markers=eventMarkers height=150}}
				</div>
			{{/if}}
		</div>
		<div class="event_detail_description">
			<p>{{{description}}}</p>
		</div>
		{{#if files}}
			<div class="event_detail_description">
				<p>Related Files:</p>
				<ul style="list-style-type:none">
					{{#each files}}
						{{> eventAttachments}}
					{{/each}}
				</ul>
			</div>
		{{/if}}
		{{#if mayEdit}}
			<div class="eventEdit_buttons">
				<div class="btn-toolbar" role="toolbar">
					<div class="btn-group" role="group">
						<button type="button" class="eventEdit btn btn-success" role="button">
							<span class="glyphicon glyphicon-edit"></span>
							{{mf 'course.details.edit_btn' 'Edit'}}
						</button>
						{{#if replicating}}
							<button type="button" class="-closeReplication btn btn-warning" role="button">
								<span class="glyphicon glyphicon-minus"></span>
								{{mf 'course.details.repl_menu_btn'}}
							</button>
						{{else}}
							<button type="button" class="-openReplication btn btn-warning" role="button">
								<span class="glyphicon glyphicon-plus"></span>
								{{mf 'course.details.repl_menu_btn' 'Repeat'}}
							</button>
						{{/if}}
					</div>
					<div class="btn-group" role="group">
						<button type="button" class="eventDelete btn btn-danger" role="button">
							<span class="glyphicon glyphicon-remove"></span>
							{{mf 'course.details.del_btn' 'Delete'}}
						</button>
					</div>
				</div>
			</div>
			{{#if replicating}}
				{{>eventReplication}}
			{{/if}}
		{{/if}}
	</div>
	{{> groupListing}}
	<div class="event_options">
		<a href="{{pathFor 'calEvent' this}}">
			<button
				type="button"
				class="calendar_download"
				href="#"
				data-toggle="tooltip"
				data-placement="bottom"
				data-html="true"
				data-delay='{"show":"500", "hide":"0"}'
				data-original-title="{{mf 'course.events.download.tooltip' 'Download as vCalendar for your favorite calendar application'}}"
				>
				<span class="glyphicon glyphicon-download"></span>&nbsp;
				{{mf 'course.download_cal' 'Download events to my calendar'}}
			</button>
		</a>
		{{> report}}
	</div>
</template>

<template name="eventAttachments">
<li>
	<p>
		<a href="{{file}}" target="_blank">{{filename}}</a>
	</p>
</li>
</template>
<commit_msg>Change mf string for event_download button if in event detail view<commit_after><template name="eventPage">
	<div class="course_event_detail" id="coursedetails">
		{{#if course}}
			<p>
				<a href="{{pathFor 'showCourse' _id=course._id}}">
					<span class="glyphicon glyphicon-arrow-left"></span>
					{{mf 'course.event.detail.back' 'Back to course'}} "{{course.name}}"
				</a>
			</p>
		{{/if}}
		{{> event}}
	</div>
</template>

<template name="eventNotFound">
	<h4>{{mf "event.no_event" "Sorry, we couldn't find this event, it must have been deleted or it never existed in the first place."}}</h4>
</template>

<template name="event">
	{{#if editing}}
		{{> eventEdit}}
	{{else}}
		{{> eventDisplay}}
	{{/if}}
</template>

<template name="eventDisplay">
	<div class="course_event">
		<div class="course_event_date">
				<span class="day">{{weekday start}}</span><br>
				<span class="date">
					<span class="glyphicon glyphicon-calendar"></span>
					{{dateformat_mini_fullmonth start}}
				</span>
		</div>
		<div class="course_event_lower_section">
			<div class="head">
				<div class="course_event_title">
					<h3>{{this.title}}</h3>
					{{> groupList}}
				</div>
				{{#if location.name}}
					<div class="course_event_location">
						{{#if location._id}}
							<a class="location_link" href="{{pathFor 'locationDetails' data=location}}">
								<span class="glyphicon glyphicon-home"></span>
								{{location.name}}
							</a>
						{{else}}
							<span class="glyphicon glyphicon-home"></span>
							{{location.name}}
						{{/if}}
						{{#if room}}
							&nbsp; &nbsp;
							<span class="fa fa-map-signs"></span>
							{{room}}
						{{/if}}
					</div>
				{{/if}}
				{{#if location.address}}
					<div>
						<span class="fa fa-map-marker"></span>
						{{location.address}}
					</div>
				{{/if}}
				<div class="course_event_time">
					<span class="glyphicon glyphicon-time"></span>
					{{timeformat start}} - {{timeformat end}}
				</div>
			</div>
			{{#if haveLocation}}
				<div class="mapBox">
					{{>map markers=eventMarkers height=150}}
				</div>
			{{/if}}
		</div>
		<div class="event_detail_description">
			<p>{{{description}}}</p>
		</div>
		{{#if files}}
			<div class="event_detail_description">
				<p>Related Files:</p>
				<ul style="list-style-type:none">
					{{#each files}}
						{{> eventAttachments}}
					{{/each}}
				</ul>
			</div>
		{{/if}}
		{{#if mayEdit}}
			<div class="eventEdit_buttons">
				<div class="btn-toolbar" role="toolbar">
					<div class="btn-group" role="group">
						<button type="button" class="eventEdit btn btn-success" role="button">
							<span class="glyphicon glyphicon-edit"></span>
							{{mf 'course.details.edit_btn' 'Edit'}}
						</button>
						{{#if replicating}}
							<button type="button" class="-closeReplication btn btn-warning" role="button">
								<span class="glyphicon glyphicon-minus"></span>
								{{mf 'course.details.repl_menu_btn'}}
							</button>
						{{else}}
							<button type="button" class="-openReplication btn btn-warning" role="button">
								<span class="glyphicon glyphicon-plus"></span>
								{{mf 'course.details.repl_menu_btn' 'Repeat'}}
							</button>
						{{/if}}
					</div>
					<div class="btn-group" role="group">
						<button type="button" class="eventDelete btn btn-danger" role="button">
							<span class="glyphicon glyphicon-remove"></span>
							{{mf 'course.details.del_btn' 'Delete'}}
						</button>
					</div>
				</div>
			</div>
			{{#if replicating}}
				{{>eventReplication}}
			{{/if}}
		{{/if}}
	</div>
	{{> groupListing}}
	<div class="event_options">
		<a href="{{pathFor 'calEvent' this}}">
			<button
				type="button"
				class="calendar_download"
				href="#"
				data-toggle="tooltip"
				data-placement="bottom"
				data-html="true"
				data-delay='{"show":"500", "hide":"0"}'
				data-original-title="{{mf 'course.events.download.tooltip' 'Download as vCalendar for your favorite calendar application'}}"
				>
				<span class="glyphicon glyphicon-download"></span>&nbsp;
				{{mf 'event.detail.download_cal' 'Download event to my calendar'}}
			</button>
		</a>
		{{> report}}
	</div>
</template>

<template name="eventAttachments">
<li>
	<p>
		<a href="{{file}}" target="_blank">{{filename}}</a>
	</p>
</li>
</template>

{'fraction_non_alphanumeric': 0.2032967032967033, 'fraction_numerical': 0.0025718961889174656, 'mean_word_length': 3.264705882352941, 'pattern_counts': {'":': 4, '<': 217, '<?xml version=': 0, '>': 235, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 13, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1544063', 'n_tokens_mistral': 3800, 'n_tokens_neox': 2865, 'n_words': 606}