<commit_before><div class="top-pad"></div>

<div class="content-padding">

	<h1 class="subltitle"><i class="fa fa-database"></i>&nbsp;&nbsp;<span>{{server.name}}</span></h1>
	<div class="box-content2 box-content-table">
		<table>
			<tr>
				<th>Hostname</th>
				<td>{{server.hostname}}</td>
			</tr>
			<tr>
				<th>IP</th>
				<td>{{server.ip}}</td>
			</tr>
			<tr>
				<th>Script</th>
				<td>{{server.script}}</td>
			</tr>
			<tr>
				<th>Params</th>
				<td>{{server.params}}</td>
			</tr>
			<tr>
				<th>Git Repo</th>
				<td><a href="https://github.com/{{server.repo}}" target="_system">{{server.repo}}</a></td>
			</tr>
			<tr>
				<th>Requires Travis Validation</th>
				<td>{{server.travis == '1' ? 'Yes' : 'No'}}</td>
			</tr>
			<tr>
				<th>Requires Git Tag</th>
				<td>{{server.tag == '1' ? 'Yes' : 'No'}}</td>
			</tr>
			<tr>
				<th>Last Update</th>
				<td><span ng-if="server.version.timestamp">{{server.version.timestamp*1000 | date:'MM/dd @ HH:mm'}}</span></td>
			</tr>
			<tr>
				<th>Last Git Version</th>
				<td><a href="https://github.com/{{server.repo}}/commit/{{server.version.version}}" target="_system">{{server.version.version}}</a></td>
			</tr>
		</table>
	</div>
	
	<div ng-if="account.user.permissions['SERVER-DEPLOY-ADMIN']">
		<h1 class="subltitle "><i class="fa fa-bolt"></i>&nbsp;&nbsp;<span>Deploy a Version</span></h1>
		<div class="box-content2 box-content-table">
			<table>
				<tr>
					<th>Date</th>
					<td><input type="datetime" ng-model="deploy.date"></td>
				</tr>
				<tr>
					<th>Git&nbsp;Version</th>
					<td>
						<select ng-model="deploy.version" class="deploy-commit-select">
							<option value="master">master</option>
							<option ng-repeat="commit in commits" value="{{commit.commit}}" ng-disabled="server.travis == '1' && commit.status != 'passed'">[{{commit.status | uppercase}}] {{commit.commit}} / {{commit.author}} / {{commit.date | date:'MM/dd @ HH:mm'}} / {{commit.note}}</option>
						</select>
						<span ng-if="commitLoad">&nbsp;&nbsp;<i class="fa fa-refresh fa-spin"></i></span>
						<span ng-if="!commitLoad">&nbsp;&nbsp;<a href="" ng-click="updateCommits()">refresh</a></span>
					</td>
				</tr>
				<tr>
					<td colspan="2"><button class="button orange" ng-click="saveDeploy()">Deploy</button></td>
				</tr>
			</table>
		</div>
	</div>


	<h1 class="subltitle "><i class="fa fa-bookmark"></i>&nbsp;&nbsp;<span>Versions</span></h1><commit_msg>even more strict travis<commit_after><div class="top-pad"></div>

<div class="content-padding">

	<h1 class="subltitle"><i class="fa fa-database"></i>&nbsp;&nbsp;<span>{{server.name}}</span></h1>
	<div class="box-content2 box-content-table">
		<table>
			<tr>
				<th>Hostname</th>
				<td>{{server.hostname}}</td>
			</tr>
			<tr>
				<th>IP</th>
				<td>{{server.ip}}</td>
			</tr>
			<tr>
				<th>Script</th>
				<td>{{server.script}}</td>
			</tr>
			<tr>
				<th>Params</th>
				<td>{{server.params}}</td>
			</tr>
			<tr>
				<th>Git Repo</th>
				<td><a href="https://github.com/{{server.repo}}" target="_system">{{server.repo}}</a></td>
			</tr>
			<tr>
				<th>Requires Travis Validation</th>
				<td>{{server.travis == '1' ? 'Yes' : 'No'}}</td>
			</tr>
			<tr>
				<th>Requires Git Tag</th>
				<td>{{server.tag == '1' ? 'Yes' : 'No'}}</td>
			</tr>
			<tr>
				<th>Last Update</th>
				<td><span ng-if="server.version.timestamp">{{server.version.timestamp*1000 | date:'MM/dd @ HH:mm'}}</span></td>
			</tr>
			<tr>
				<th>Last Git Version</th>
				<td><a href="https://github.com/{{server.repo}}/commit/{{server.version.version}}" target="_system">{{server.version.version}}</a></td>
			</tr>
		</table>
	</div>
	
	<div ng-if="account.user.permissions['SERVER-DEPLOY-ADMIN']">
		<h1 class="subltitle "><i class="fa fa-bolt"></i>&nbsp;&nbsp;<span>Deploy a Version</span></h1>
		<div class="box-content2 box-content-table">
			<table>
				<tr>
					<th>Date</th>
					<td><input type="datetime" ng-model="deploy.date"></td>
				</tr>
				<tr>
					<th>Git&nbsp;Version</th>
					<td>
						<select ng-model="deploy.version" class="deploy-commit-select" ng-disabled="commitLoad">
							<option value="master" ng-disabled="server.travis == '1'">master</option>
							<option ng-repeat="commit in commits" value="{{commit.commit}}" ng-disabled="server.travis == '1' && commit.status != 'passed'">[{{commit.status | uppercase}}] {{commit.commit}} / {{commit.author}} / {{commit.date | date:'MM/dd @ HH:mm'}} / {{commit.note}}</option>
						</select>
						<span ng-if="commitLoad">&nbsp;&nbsp;<i class="fa fa-refresh fa-spin"></i></span>
						<span ng-if="!commitLoad">&nbsp;&nbsp;<a href="" ng-click="updateCommits()">refresh</a></span>
					</td>
				</tr>
				<tr ng-if="server.id_deploy_server && (server.travis != '1' || (server.travis == '1' && deploy.version != 'master'))">
					<td colspan="2"><button class="button orange" ng-click="saveDeploy()">Deploy</button></td>
				</tr>
			</table>
		</div>
	</div>


	<h1 class="subltitle "><i class="fa fa-bookmark"></i>&nbsp;&nbsp;<span>Versions</span></h1>
{'fraction_non_alphanumeric': 0.25948616600790514, 'fraction_numerical': 0.00691699604743083, 'mean_word_length': 3.5967302452316074, 'pattern_counts': {'":': 0, '<': 251, '<?xml version=': 0, '>': 251, 'https://': 4, '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': '7059589', 'n_tokens_mistral': 2342, 'n_tokens_neox': 1904, 'n_words': 294}