<commit_before><form class="view-form" name="projectForm" novalidate>

	<div class="view-title-container flex-row">
		<h1>Edit Project &nbsp;&rsaquo;&nbsp; {{project.name}}<span class="placeholder-value" ng-if="!project.name">Untitled Project</span></h1>
		<div class="actions">
			<button class="btn btn-default btn-sm" ng-if="!isNew" ui-sref="p.detail">Cancel</button>
			<button class="btn btn-default btn-sm" ng-if="isNew" ui-sref="projects">Cancel</button>
			<button class="btn btn-primary btn-sm"
				ng-click="saveProject(projectForm.$valid)"
				ng-if="project.status !== 'Initiated'"
				type="submit">Save</button>
			<button class="btn btn-danger btn-sm"
              	ng-click="deleteProject()"
              	ng-if="!isNew && !project.isPublished && project.userCan.delete">
				<span class="glyphicon glyphicon-trash"></span><span>Delete Project</span></button>
			<button class="btn btn-success btn-sm"
				ng-click="submitProject(projectForm.$valid)"
				ng-if="project.status === 'Initiated'">Submit Project</button>
		</div>
	</div>

	<div class="view-body-container">
		<ul class="nav nav-tabs" ng-init="form.curTab = 'Project Details'">
			<li role="presentation" ng-class="{'active':form.curTab === 'Project Details'}" class="form-group" x-show-errors>
				<a ng-click="form.curTab = 'Project Details'" title="Edit Project Details" name="detailsForm">
					<span class="glyphicon glyphicon-exclamation-sign"></span>Project Details</a>
			</li>
			<li role="presentation" ng-class="{'active':form.curTab === 'Proponent Info'}" class="form-group" >
				<a ng-click="form.curTab = 'Proponent Info'" title="Edit Project Details" name="proponentForm">
					<span class="glyphicon glyphicon-exclamation-sign"></span>Proponent Info</a>
			</li>
			<li role="presentation" ng-class="{'active':form.curTab === 'Project Contacts'}" class="form-group" x-show-errors>
				<a ng-click="form.curTab = 'Project Contacts'" title="Edit Project Contacts" name="contactsForm">
					<span class="glyphicon glyphicon-exclamation-sign"></span>Contacts</a>
			</li>
		</ul>

		<div class="edit-project-form tab-pane active" ng-show="form.curTab === 'Project Details'" ng-form="detailsForm">
			
			<!-- PROJECT INFORMATION -->
			<fieldset>
				<legend>General Info</legend>
				<div class="form-group" x-show-errors>
					<label class="control-label" for="name">Project Name<em class="required">(Required)</em></label>
					<input class="form-control" title="Project Name" id="name" name="projectname"
						ng-model="project.name" ng-change="onChangeProjectName()" required />
				</div>
				<div class="row">
					<div class="col-sm-6 col-md-4 form-group" x-show-errors>
						<label class="control-label" for="type">Type<em class="required">(Required)</em></label>
						<select class="form-control" title="Project Type" id="type" name="type"
							ng-model="project.type"
							ng-change="project.sector = undefined"
							ng-options="type for type in types" required></select>
					</div>
					<div class="col-sm-6 col-md-4 form-group" x-show-errors>
						<label class="control-label" for="subtype">Sub-type<em class="required">(Required)</em></label>
						<select class="form-control" title="Project Sub-type" id="subtype" name="subtype"
							ng-model="project.sector"
							ng-options="subType for subType in subTypes[project.type]" required></select>
					</div>
					<div class="col-md-4 form-group" x-show-errors>
						<label class="control-label" for="build">Nature of Project<em class="required">(Required)</em></label>
						<select class="form-control" id="build" name="build"
						 	ng-model="project.build" required>
							<option value=""></option>
							<option value="new">New Construction</option>
							<option value="modification">Modification of Existing</option>
							<option value="dismantling">Dismantling or Abandonment</option>
						</select>
					</div>
				</div>
				<div class="form-group" x-show-errors>
					<label class="control-label" for="shortDesc">Project Description<em class="required">(Required)</em></label>
					<textarea title="Project Description"
						class="form-control"
						rows="5"
						id="shortDesc"
						name="projectdesc"
						ng-model="project.description" required></textarea>
				</div>
				<div class="row">
					<div class="col-md-4 form-group" x-show-errors>
						<label class="control-label" for="region">Region<em class="required">(Required)</em></label>
						<select class="form-control" if="region" id="region" name="region"
						 	ng-model='project.region'
							ng-options="key as value for (key, value) in regions" required></select>
					</div>
					<div class="col-sm-12 col-md-8 form-group" x-show-errors>
						<label class="control-label" for="location">Location Description<em class="required">(Required)</em></label>
						<input class="form-control" id="location" type="text" name="location"
							ng-model="project.location" required>
					</div>
				</div>
				<div class="row">
					<div class="lat-input col-sm-3 col-md-2 form-group" x-show-errors>
						<label class="control-label">Latitude<em class="required">(Required)</em></label>
						<input class="form-control" id="latitude" name="latitude" type="number" step="any"
							ng-model="project.lat" required />
					</div>
					<div class="long-input col-sm-3 col-md-2 form-group" x-show-errors>
						<label class="control-label">Longitude<em class="required">(Required)</em></label>
						<input class="form-control" id="longitude" name="longitude" type="number" step="any"
							ng-model="project.lon" required />
					</div>
				</div>
				<div class="row">
				<div class="col-md-4 form-group">
					<label class="control-label" for="eacDecision">Decision<em>(Optional)</em></label>
					<select class="form-control" name="eacDecision" id="eacDecision"
						ng-model="project.eacDecision"
						ng-options="d for d in eacDecisions">
					</select>
				</div>

			</fieldset>
			<!-- PROJECT INFORMATION -->

			<!-- CEAA INVOLVEMENT --><commit_msg>Fix latitude and longitude ranges for project detail page<commit_after><form class="view-form" name="projectForm" novalidate>

	<div class="view-title-container flex-row">
		<h1>Edit Project &nbsp;&rsaquo;&nbsp; {{project.name}}<span class="placeholder-value" ng-if="!project.name">Untitled Project</span></h1>
		<div class="actions">
			<button class="btn btn-default btn-sm" ng-if="!isNew" ui-sref="p.detail">Cancel</button>
			<button class="btn btn-default btn-sm" ng-if="isNew" ui-sref="projects">Cancel</button>
			<button class="btn btn-primary btn-sm"
				ng-click="saveProject(projectForm.$valid)"
				ng-if="project.status !== 'Initiated'"
				type="submit">Save</button>
			<button class="btn btn-danger btn-sm"
              	ng-click="deleteProject()"
              	ng-if="!isNew && !project.isPublished && project.userCan.delete">
				<span class="glyphicon glyphicon-trash"></span><span>Delete Project</span></button>
			<button class="btn btn-success btn-sm"
				ng-click="submitProject(projectForm.$valid)"
				ng-if="project.status === 'Initiated'">Submit Project</button>
		</div>
	</div>

	<div class="view-body-container">
		<ul class="nav nav-tabs" ng-init="form.curTab = 'Project Details'">
			<li role="presentation" ng-class="{'active':form.curTab === 'Project Details'}" class="form-group" x-show-errors>
				<a ng-click="form.curTab = 'Project Details'" title="Edit Project Details" name="detailsForm">
					<span class="glyphicon glyphicon-exclamation-sign"></span>Project Details</a>
			</li>
			<li role="presentation" ng-class="{'active':form.curTab === 'Proponent Info'}" class="form-group" >
				<a ng-click="form.curTab = 'Proponent Info'" title="Edit Project Details" name="proponentForm">
					<span class="glyphicon glyphicon-exclamation-sign"></span>Proponent Info</a>
			</li>
			<li role="presentation" ng-class="{'active':form.curTab === 'Project Contacts'}" class="form-group" x-show-errors>
				<a ng-click="form.curTab = 'Project Contacts'" title="Edit Project Contacts" name="contactsForm">
					<span class="glyphicon glyphicon-exclamation-sign"></span>Contacts</a>
			</li>
		</ul>

		<div class="edit-project-form tab-pane active" ng-show="form.curTab === 'Project Details'" ng-form="detailsForm">
			
			<!-- PROJECT INFORMATION -->
			<fieldset>
				<legend>General Info</legend>
				<div class="form-group" x-show-errors>
					<label class="control-label" for="name">Project Name<em class="required">(Required)</em></label>
					<input class="form-control" title="Project Name" id="name" name="projectname"
						ng-model="project.name" ng-change="onChangeProjectName()" required />
				</div>
				<div class="row">
					<div class="col-sm-6 col-md-4 form-group" x-show-errors>
						<label class="control-label" for="type">Type<em class="required">(Required)</em></label>
						<select class="form-control" title="Project Type" id="type" name="type"
							ng-model="project.type"
							ng-change="project.sector = undefined"
							ng-options="type for type in types" required></select>
					</div>
					<div class="col-sm-6 col-md-4 form-group" x-show-errors>
						<label class="control-label" for="subtype">Sub-type<em class="required">(Required)</em></label>
						<select class="form-control" title="Project Sub-type" id="subtype" name="subtype"
							ng-model="project.sector"
							ng-options="subType for subType in subTypes[project.type]" required></select>
					</div>
					<div class="col-md-4 form-group" x-show-errors>
						<label class="control-label" for="build">Nature of Project<em class="required">(Required)</em></label>
						<select class="form-control" id="build" name="build"
						 	ng-model="project.build" required>
							<option value=""></option>
							<option value="new">New Construction</option>
							<option value="modification">Modification of Existing</option>
							<option value="dismantling">Dismantling or Abandonment</option>
						</select>
					</div>
				</div>
				<div class="form-group" x-show-errors>
					<label class="control-label" for="shortDesc">Project Description<em class="required">(Required)</em></label>
					<textarea title="Project Description"
						class="form-control"
						rows="5"
						id="shortDesc"
						name="projectdesc"
						ng-model="project.description" required></textarea>
				</div>
				<div class="row">
					<div class="col-md-4 form-group" x-show-errors>
						<label class="control-label" for="region">Region<em class="required">(Required)</em></label>
						<select class="form-control" if="region" id="region" name="region"
						 	ng-model='project.region'
							ng-options="key as value for (key, value) in regions" required></select>
					</div>
					<div class="col-sm-12 col-md-8 form-group" x-show-errors>
						<label class="control-label" for="location">Location Description<em class="required">(Required)</em></label>
						<input class="form-control" id="location" type="text" name="location"
							ng-model="project.location" required>
					</div>
				</div>
				<div class="row">
					<div class="lat-input col-sm-3 col-md-2 form-group" x-show-errors>
						<label class="control-label">Latitude<em class="required">(Required)</em></label>
						<input class="form-control" id="latitude" name="latitude" type="number"  min="-90" max="90"
							ng-model="project.lat" required />
					</div>
					<div class="long-input col-sm-3 col-md-2 form-group" x-show-errors>
						<label class="control-label">Longitude<em class="required">(Required)</em></label>
						<input class="form-control" id="longitude" name="longitude" type="number" min="-180" max="180"
							ng-model="project.lon" required />
					</div>
				</div>
				<div class="row">
				<div class="col-md-4 form-group">
					<label class="control-label" for="eacDecision">Decision<em>(Optional)</em></label>
					<select class="form-control" name="eacDecision" id="eacDecision"
						ng-model="project.eacDecision"
						ng-options="d for d in eacDecisions">
					</select>
				</div>

			</fieldset>
			<!-- PROJECT INFORMATION -->

			<!-- CEAA INVOLVEMENT -->
{'fraction_non_alphanumeric': 0.18557382467156902, 'fraction_numerical': 0.0036354622820788233, 'mean_word_length': 3.989282769991756, 'pattern_counts': {'":': 0, '<': 289, '<?xml version=': 0, '>': 289, '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': '1564645', 'n_tokens_mistral': 4722, 'n_tokens_neox': 3813, 'n_words': 740}