<commit_before>{% extends "master.html" %}
{% block breadcrumbs %}
<li class="breadcrumb-item"><a href="{% url 'lana_data:autonomous_systems' %}">Autonomous Systems</a></li>
<li class="breadcrumb-item active">{{ autonomous_system }}</li>
{% endblock %}
{% block content %}
	<h1>
		{{ autonomous_system }}
		{% if autonomous_system.private %}<span class="tag tag-default">Private</span>{% endif %}
	</h1>
	<div class="row">
		<div class="col-xs-12 col-lg-6">
			<table class="table">
				<tbody>
					<tr>
						<th>AS:</th>
						<td>{{ autonomous_system.as_number }}</td>
					</tr>
					<tr>
						<th>Comment:</th>
						<td>{{ autonomous_system.comment }}</td>
					</tr>
					<tr>
						<th>Institution:</th>
						<td>{% include 'fragments/institution_name.html' with institution=autonomous_system.institution %}</td>
					</tr>
				</tbody>
			</table>
			{% if can_edit %}
			<div class="m-b-1">
				<a class="btn btn-primary" href="{% url 'lana_data:autonomous_system-edit' autonomous_system.as_number %}">Edit Autonomous System</a>
				{% url 'lana_data:autonomous_system-delete' autonomous_system.as_number as delete_url %}
				{% include 'fragments/delete-confirm.html' with url=delete_url object_name='Autonomous System' %}
			</div>
			{% endif %}
		</div>
		{% if autonomous_system.has_geo %}
		<div class="col-xs-12 col-lg-6" style="min-height: 250px;">
			<div id="map"></div>
		</div>
		<script>
			$(function() {
				var map = LANA.createMap({{ autonomous_system.location_lat }}, {{ autonomous_system.location_lng }}, 9);
				LANA.loadGeoJSONPoints(map, '{% url 'lana_data:autonomous_system-details' autonomous_system.as_number %}');
			});
		</script>
		{% endif %}
	</div>

	<h2>Hosts</h2>
	<div class="row">
		<div class="col-xs-12 col-lg-8">
			{% include 'tables/host_list.html' with disable_autonomous_system=True empty_message='This institution does not have any hosts.' %}
			{% if can_edit %}
			<p>
				<a class="btn btn-primary" href="{% url 'lana_data:host-create' autonomous_system.as_number %}">Create Host</a>
			</p><commit_msg>Fixed message when an Autonomous System does not have any Hosts.<commit_after>{% extends "master.html" %}
{% block breadcrumbs %}
<li class="breadcrumb-item"><a href="{% url 'lana_data:autonomous_systems' %}">Autonomous Systems</a></li>
<li class="breadcrumb-item active">{{ autonomous_system }}</li>
{% endblock %}
{% block content %}
	<h1>
		{{ autonomous_system }}
		{% if autonomous_system.private %}<span class="tag tag-default">Private</span>{% endif %}
	</h1>
	<div class="row">
		<div class="col-xs-12 col-lg-6">
			<table class="table">
				<tbody>
					<tr>
						<th>AS:</th>
						<td>{{ autonomous_system.as_number }}</td>
					</tr>
					<tr>
						<th>Comment:</th>
						<td>{{ autonomous_system.comment }}</td>
					</tr>
					<tr>
						<th>Institution:</th>
						<td>{% include 'fragments/institution_name.html' with institution=autonomous_system.institution %}</td>
					</tr>
				</tbody>
			</table>
			{% if can_edit %}
			<div class="m-b-1">
				<a class="btn btn-primary" href="{% url 'lana_data:autonomous_system-edit' autonomous_system.as_number %}">Edit Autonomous System</a>
				{% url 'lana_data:autonomous_system-delete' autonomous_system.as_number as delete_url %}
				{% include 'fragments/delete-confirm.html' with url=delete_url object_name='Autonomous System' %}
			</div>
			{% endif %}
		</div>
		{% if autonomous_system.has_geo %}
		<div class="col-xs-12 col-lg-6" style="min-height: 250px;">
			<div id="map"></div>
		</div>
		<script>
			$(function() {
				var map = LANA.createMap({{ autonomous_system.location_lat }}, {{ autonomous_system.location_lng }}, 9);
				LANA.loadGeoJSONPoints(map, '{% url 'lana_data:autonomous_system-details' autonomous_system.as_number %}');
			});
		</script>
		{% endif %}
	</div>

	<h2>Hosts</h2>
	<div class="row">
		<div class="col-xs-12 col-lg-8">
			{% include 'tables/host_list.html' with disable_autonomous_system=True empty_message='There are not hosts in this Autonomous System.' %}
			{% if can_edit %}
			<p>
				<a class="btn btn-primary" href="{% url 'lana_data:host-create' autonomous_system.as_number %}">Create Host</a>
			</p>
{'fraction_non_alphanumeric': 0.1872309899569584, 'fraction_numerical': 0.00860832137733142, 'mean_word_length': 3.962040332147094, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 111, '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': '6202706', 'n_tokens_mistral': 1832, 'n_tokens_neox': 1461, 'n_words': 296}