<commit_before><a href="#/jobs/add" class="btn btn-primary btn-lg">Add</a>

<div ng-controller="purgeController as purgeCtrl">
	<h1>{{purgeCtrl.title}}</h1>

	<table class="table table-border table-hover table-striped table-condensed">
		<thead>
		<tr>
			<th>Name</th>
			<th>Source</th>
			<th>Actions</th>
		</tr>
		</thead>
		<tbody>
		<tr ng-repeat="job in purgeCtrl.jobs">
			<td>{{job.name}}</td>
			<td>{{job.source}}</td>
			<td>
				<a href="#/jobs/{{job.id}}/logs" class="btn" title="View Logs">
					<i class="fa fa-file-text"></i>
				</a>
				<a href="#/jobs/{{job.id}}/edit" class="btn" title="Edit Job">
					<i class="fa fa-pencil"></i>
				</a>
				<a href="#/jobs/{{job.id}}/delete" class="btn" title="Delete Job">
					<i class="fa fa-trash"></i>
				</a>
			</td>
		</tr>
		</tbody>
	</table>
</div><commit_msg>added ability to filter by name, sort by column headers<commit_after>

<div ng-controller="purgeController as purgeCtrl">
	<h1>
		{{purgeCtrl.title}}
		<a href="#/jobs/add" class="btn btn-primary btn-lg">Add</a>
	</h1>

	<Label>Filter</Label>
	<input type="text" ng-model="filterBy.name" class="form-control" />
	<table class="table table-border table-hover table-striped table-condensed">
		<thead>
		<tr>
			<th ng-click="purgeCtrl.orderBy='name';reverse=!reverse">Name</th>
			<th ng-click="purgeCtrl.orderBy='source';reverse=!reverse">Source</th>
			<th>Actions</th>
		</tr>
		</thead>
		<tbody>
		<tr ng-repeat="job in purgeCtrl.jobs | filter: filterBy | orderBy: purgeCtrl.orderBy : reverse">
			<td>{{job.name}}</td>
			<td>{{job.source}}</td>
			<td>
				<a href="#/jobs/{{job.id}}/logs" class="btn" title="View Logs">
					<i class="fa fa-file-text"></i>
				</a>
				<a href="#/jobs/{{job.id}}/edit" class="btn" title="Edit Job">
					<i class="fa fa-pencil"></i>
				</a>
				<a href="#/jobs/{{job.id}}/delete" class="btn" title="Delete Job">
					<i class="fa fa-trash"></i>
				</a>
			</td>
		</tr>
		</tbody>
	</table>
</div>
{'fraction_non_alphanumeric': 0.23985801217038538, 'fraction_numerical': 0.002028397565922921, 'mean_word_length': 3.5671296296296298, 'pattern_counts': {'":': 0, '<': 86, '<?xml version=': 0, '>': 86, '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': '5509269', 'n_tokens_mistral': 913, 'n_tokens_neox': 769, 'n_words': 149}