<commit_before><div
	style="float: left; width: 40%; padding-top: 10px; border-right: thin solid #ddd;">

	<form>
		<table>
			<tbody>
				<tr>
					<td style="width: 30%; padding: 5px;"><select
						id="reportSearch"
						ng-options="definition as definition.name for definition in definitions |  orderBy: 'name' | filter: {qacheck:false}"
						ng-change="getReports(1, selectedDefinition, queryReport)"
						ng-model="selectedDefinition"></select>
					<td style="width: 62%; padding: 5px">
						<button class="btn btn-sm btn-primary"
							ng-click="getReports(1, null, queryReport); selectedDefinition = null;">Reset</button>
						<button ng-show="selectedDefinition != null"
							ng-click="generateNewReport(selectedDefinition)"
							class="btn btn-sm btn-primary">Generate</button>
					</td>
				</tr>
                
			</tbody>
		</table>
	</form>
    <div style="width: 100%; padding: 5px;" ng-show="selectedDefinition != null && selectedDefinition.description != ''">
        <strong>Description:</strong> 
        <div style="padding-left: 20px;word-wrap: break-word;"
            ng-bind-html="to_trusted(selectedDefinition.description)"></div>
    </div>
    
	<pagination ng-show="nReportPages > 1" total-items="nReports"
		page="reportPage" max-size="5" class="pagination-sm"
		boundary-links="true" rotate="true" num-pages="nReportPages"
		on-select-page="getReports(page, selectedDefinition, queryReport)"></pagination>

	<div ng-show="nReports != 0">

		<table class="table">

			<thead>
				<tr>
					<th style="width: 70%; padding: 5px;">Name</th>
					<th style="width: 25%; padding: 5px;">Date</th>
					<th style="width: 5%; padding: 5px;"></th>

				</tr>

			</thead>

			<tbody>

				<tr ng-repeat="report in reports">

					<td style="width: 70%; padding: 5px;"><a
						ng-show="report.id != reportDisplayed.id"
						ng-click="viewReport(report)">{{report.name}}</a> <span
						ng-show="report.id == reportDisplayed.id">{{report.name}}</span></td>
					<td style="width: 25%; padding: 5px;">{{report.timestamp |
						date: 'MM/dd/yyyy'}}</td>
					<td style="width: 5%;"><a title="Delete Report"
						ng-click="deleteReport(report, page, selectedDefinition, queryReport)"
						ng-show="report.owner.id == currentUser.id || currentRole == 'Administrator'">
							<i class="glyphicon glyphicon-remove"></i>
					</a></td>
			</tbody>

		</table>
	</div>
</div>

<div>
	<div style="float: right; width: 60%; padding: 10px"><commit_msg>Added clear command for displayed reports when a report is deleted.<commit_after><div
	style="float: left; width: 40%; padding-top: 10px; border-right: thin solid #ddd;">

	<form>
		<table>
			<tbody>
				<tr>
					<td style="width: 30%; padding: 5px;"><select
						id="reportSearch"
						ng-options="definition as definition.name for definition in definitions |  orderBy: 'name' | filter: {qacheck:false}"
						ng-change="getReports(1, selectedDefinition, queryReport)"
						ng-model="selectedDefinition"></select>
					<td style="width: 62%; padding: 5px">
						<button class="btn btn-sm btn-primary"
							ng-click="getReports(1, null, queryReport); selectedDefinition = null;">Reset</button>
						<button ng-show="selectedDefinition != null"
							ng-click="generateNewReport(selectedDefinition)"
							class="btn btn-sm btn-primary">Generate</button>
					</td>
				</tr>
                
			</tbody>
		</table>
	</form>
    <div style="width: 100%; padding: 5px;" ng-show="selectedDefinition != null && selectedDefinition.description != ''">
        <strong>Description:</strong> 
        <div style="padding-left: 20px;word-wrap: break-word;"
            ng-bind-html="to_trusted(selectedDefinition.description)"></div>
    </div>
    
	<pagination ng-show="nReportPages > 1" total-items="nReports"
		page="reportPage" max-size="5" class="pagination-sm"
		boundary-links="true" rotate="true" num-pages="nReportPages"
		on-select-page="getReports(page, selectedDefinition, queryReport)"></pagination>

	<div ng-show="nReports != 0">

		<table class="table">

			<thead>
				<tr>
					<th style="width: 70%; padding: 5px;">Name</th>
					<th style="width: 25%; padding: 5px;">Date</th>
					<th style="width: 5%; padding: 5px;"></th>

				</tr>

			</thead>

			<tbody>

				<tr ng-repeat="report in reports">

					<td style="width: 70%; padding: 5px;"><a
						ng-show="report.id != reportDisplayed.id"
						ng-click="viewReport(report)">{{report.name}}</a> <span
						ng-show="report.id == reportDisplayed.id">{{report.name}}</span></td>
					<td style="width: 25%; padding: 5px;">{{report.timestamp |
						date: 'MM/dd/yyyy'}}</td>
					<td style="width: 5%;"><a title="Delete Report"
						ng-click="deleteReport(report, page, selectedDefinition, queryReport); reportDisplayed = null;"
						ng-show="report.owner.id == currentUser.id || currentRole == 'Administrator'">
							<i class="glyphicon glyphicon-remove"></i>
					</a></td>
			</tbody>

		</table>
	</div>
</div>

<div>
	<div style="float: right; width: 60%; padding: 10px">
{'fraction_non_alphanumeric': 0.18542783402819138, 'fraction_numerical': 0.01588246972404209, 'mean_word_length': 3.617781851512374, 'pattern_counts': {'":': 0, '<': 123, '<?xml version=': 0, '>': 125, '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': '4259375', 'n_tokens_mistral': 2056, 'n_tokens_neox': 1603, 'n_words': 343}