<commit_before><div class="container">
	<div class="row" ng-controller="eventController">
		<div class="col-sm-4">
			<div class="well">
				<form name="eventForm" novalidate ng-submit="addEvent(newEvent)">
					<div class="form-group row">
						<label>Event Name:</label>
						<input name="eventName" class="form-control" type="text" ng-model="newEvent.name" required>
					</div>
					<div class="form-group row">
						<label>Start Date (mm/dd/yy):</label>
						<p class="input-group">
							<input type="text" class="form-control" datepicker-popup="shortDate" ng-model="newEvent.start_date" is-open="openedS" min-date="dt" datepicker-options="dateOptions" ng-required="true" close-text="Close"/>
	              			<span class="input-group-btn">
	                			<button type="button" class="btn btn-default" ng-click="openS($event)">
	                				<i class="glyphicon glyphicon-calendar"></i>
	                			</button>
	              			</span>
              			</p>
					</div>
					<div class="form-group row">
						<label>End Date (mm/dd/yy):</label>
						<p class="input-group">
							<input type="text" class="form-control" datepicker-popup="shortDate" ng-model="newEvent.end_date" is-open="openedE" min-date="newEvent.start_date" datepicker-options="dateOptions" ng-required="true" close-text="Close" />
	              			<span class="input-group-btn">
	                			<button type="button" class="btn btn-default" ng-click="openE($event)">
	                				<i class="glyphicon glyphicon-calendar"></i>
	                			</button>
	              			</span>
              			</p>
					</div>
					<div class="form-group row">
						<label>Location:</label>
						<input name="location" class="form-control" type="text" ng-model="newEvent.location" required>
					</div>
					<button type="submit" class="btn btn-primary" ng-disabled="eventForm.$invalid">Add Event</button>
				</form>
			</div>
		</div>

  		<div class="col-sm-8">
	  		<h2>Event List</h2>
	  		<table ng-table="tableParams" class="table table-bordered frank-main-view">
	  			<tr ng-repeat="event in $data">
	  				<td data-title="'Name'">
	  					{{event.name}}
	  				</td>
	  				<td data-title="'Start Date'">
	  					{{event.start_date | date:'shortDate'}}
	  				</td>
	  				<td data-title="'End Date'">
	  					{{event.end_date | date:'shortDate'}}
	  				</td>
	  				<td data-title="'Location'">
	  					{{event.location}}
	  				</td>
	  				<td data-title="'Remove'">
	  					<input type="button" value="Remove" class="btn btn-primary" ng-click="deleteEvent(event)" />
	  				</td>
	  			</tr>
	  		</table>
  		</div>
  	</div>
</div><commit_msg>added editing functionallity to the events table, however it is not saving to db right now<commit_after><div class="container">
	<div class="row" ng-controller="eventController">
		<div class="col-sm-4">
			<div class="well">
				<form name="eventForm" novalidate ng-submit="addEvent(newEvent)">
					<div class="form-group row">
						<label>Event Name:</label>
						<input name="eventName" class="form-control" type="text" ng-model="newEvent.name" required>
					</div>
					<div class="form-group row">
						<label>Start Date (mm/dd/yy):</label>
						<p class="input-group">
							<input type="text" class="form-control" datepicker-popup="shortDate" ng-model="newEvent.start_date" is-open="openedS" min-date="dt" datepicker-options="dateOptions" ng-required="true" close-text="Close"/>
	              			<span class="input-group-btn">
	                			<button type="button" class="btn btn-default" ng-click="openS($event)">
	                				<i class="glyphicon glyphicon-calendar"></i>
	                			</button>
	              			</span>
              			</p>
					</div>
					<div class="form-group row">
						<label>End Date (mm/dd/yy):</label>
						<p class="input-group">
							<input type="text" class="form-control" datepicker-popup="shortDate" ng-model="newEvent.end_date" is-open="openedE" min-date="newEvent.start_date" datepicker-options="dateOptions" ng-required="true" close-text="Close" />
	              			<span class="input-group-btn">
	                			<button type="button" class="btn btn-default" ng-click="openE($event)">
	                				<i class="glyphicon glyphicon-calendar"></i>
	                			</button>
	              			</span>
              			</p>
					</div>
					<div class="form-group row">
						<label>Location:</label>
						<input name="location" class="form-control" type="text" ng-model="newEvent.location" required>
					</div>
					<button type="submit" class="btn btn-primary" ng-disabled="eventForm.$invalid">Add Event</button>
				</form>
			</div>
		</div>

  		<div class="col-sm-8">
	  		<h2>Event List</h2>
	  		<table ng-table="tableParams" class="table table-bordered frank-main-view">
	  			<tr ng-repeat="event in $data">
	  				<td data-title="'Name'">
	  					<span ng-if="!event.$edit">{{event.name}}</span>
	  					<div ng-if="event.$edit">
	  						<input class="form-control" type="text" ng-model="event.name" />
	  					</div>
	  				</td>
	  				<td data-title="'Start Date'">
	  					{{event.start_date | date:'shortDate'}}
	  				</td>
	  				<td data-title="'End Date'">
	  					{{event.end_date | date:'shortDate'}}
	  				</td>
	  				<td data-title="'Location'">
	  					<span ng-if="!event.$edit">{{event.location}}</span>
	  					<div ng-if="event.$edit">
	  						<input class="form-control" type="text" ng-model="event.location" />
	  					</div>
	  				</td>
	  				<td data-title="'Remove'">
	  					<input type="button" value="Remove" class="btn btn-default btn-xs" ng-click="deleteEvent(event)" />
	  				</td>
	  				<td data-title="'Actions'" width="200">
                		<a ng-if="!event.$edit" href="" class="btn btn-default btn-xs" ng-click="event.$edit = true">Edit</a>
                		<a ng-if="event.$edit" href="" class="btn btn-primary btn-xs" ng-click="event.$edit = false">Save</a>
            		</td>
	  			</tr>
	  		</table>
  		</div>
  	</div>
</div>
{'fraction_non_alphanumeric': 0.18616581168293894, 'fraction_numerical': 0.0018202879364554029, 'mean_word_length': 2.4875937680323137, 'pattern_counts': {'":': 0, '<': 153, '<?xml version=': 0, '>': 153, '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': '2488459', 'n_tokens_mistral': 2449, 'n_tokens_neox': 2008, 'n_words': 363}