<commit_before>@extends('layouts.app')

@section('content')
	<div class="row">
		<div class="large-12 medium-12 small-12 columns">
			<div id="github-contribute">
				<a href="https://github.com/521dimensions/ipaddress-fyi" target="_blank">
					<img src="/img/github.svg"/> Contribute on GitHub
				</a>
			</div>
		</div>
	</div>
	<div class="row">
		<div class="large-12 medium-12 small-12 columns">
			<div id="logo">
				<img src="/img/bolt.svg"/> ipaddress.fyi <br>
				<div class="slogan">All the IP addresses that you’ll need, from one simple source</div>
			</div>
		</div>
	</div>
	<form id="select-ip-sources" name="select-ip-sources" method="POST" action="/generate-url">
		<div id="selection-container">
			<div class="row">
				<div class="large-12 medium-12 small-12 columns">
					<h2>Step 1: Select the service(s) that you would like the IP addresses from</h2>
				</div>
			</div>
			<div class="row">
				<div class="large-12 medium-12 small-12 columns">
					<div class="masonry">
						@foreach( $categories as $key => $ipAddresses )
							<div class="item">
								<h3 class="services-header">{{ $key }}</h3>
								@foreach( $ipAddresses as $ipAddress)
									<div class="service">
										<div class="service-selection">
											<input type="checkbox" name="service[]" value="{{ $ipAddress->app_name }}"/>
										</div>
										<div class="service-description">
											<img src="/img/logos/{{ $ipAddress->app_name }}.svg"/>
											<div class="service-meta">
												<span class="service-name">{{ $ipAddress->clean_name }}</span>
												<span class="last-updated">Last Updated: {{ date('m/d/Y g:i:s A', strtotime( $ipAddress->last_updated ) ) }}</span>
											</div>
										</div>
										<div style="clear: both;"></div>
									</div>
								@endforeach
							</div>
						@endforeach
					</div>
				</div>
			</div>
			<div class="row" id="form-footer-logo">
				<div class="large-12 medium-12 small-12 columns large-centered medium-centered footer-logo">
					Creatively crafted by: <a href="http://521dimensions.com" target="_blank"><img src="/img/521logo.svg"/></a>
				</div>
			</div>
		</div>
		{{ csrf_field() }}
	</form>
	<div id="generate-container">
		<div class="row">
			<div class="large-8 medium-9 small-12 columns large-centered medium-centered">
				<h2>Step 2: Create your address URL</h2>
				<p>We’ll generate a URL for you so that you can always reference the latest address information. We’ll make sure the addresses stay up to date for you.</p>
				<div id="selected-apps"></div>
				<a id="generate-url">Create My Address URL</a>
				<span class="interested">Interested in seeing how we get this information? <a href="https://github.com/521dimensions/ipaddress-fyi" target="_blank">Validate our sources on Github.</a></span>
			</div>
		</div>
		<div class="row">
			<div class="large-12 medium-12 small-12 columns large-centered medium-centered footer-logo">
				Creatively crafted by: <a href="http://521dimensions.com" target="_blank"><img src="/img/521logo.svg"/></a>
			</div>
		</div>
	</div>
@stop

@section('scripts')
	<script type="text/javascript">
		$(document).ready(function(){
			$('.service').on('click', function( e ){
				if( e.target.tagName != 'INPUT' ){
					if( $(this).find("input[type='checkbox']").is(':checked') ){
						$(this).find("input[type='checkbox']")
		          		   	   .prop('checked', false);
	          		}else{
	          			$(this).find("input[type='checkbox']")
	          		  		   .prop('checked', true);
	          		}
				}
				setClasses();
				setLogos();
			});

			$('#generate-url').on('click', function(){
				$('#select-ip-sources').submit();
			});
		});

		function setClasses(){
			$('.service').each( function(){
				if( $(this).find("input[type='checkbox']").is(':checked') ){
					$(this).addClass('service-checked');
				}else{
					$(this).removeClass('service-checked');
				}
			});
		}

		function setLogos(){
			$('#selected-apps').html('');

			$('input[type="checkbox"]').each( function(){
				if( $(this).is(':checked') ){
					$('#selected-apps').append('<img src="/img/logos/'+$(this).val()+'.svg"/>');
				}
			});
		}
	</script>
@stop<commit_msg>Removed creatively crafted from form<commit_after>@extends('layouts.app')

@section('content')
	<div class="row">
		<div class="large-12 medium-12 small-12 columns">
			<div id="github-contribute">
				<a href="https://github.com/521dimensions/ipaddress-fyi" target="_blank">
					<img src="/img/github.svg"/> Contribute on GitHub
				</a>
			</div>
		</div>
	</div>
	<div class="row">
		<div class="large-12 medium-12 small-12 columns">
			<div id="logo">
				<img src="/img/bolt.svg"/> ipaddress.fyi <br>
				<div class="slogan">All the IP addresses that you’ll need, from one simple source</div>
			</div>
		</div>
	</div>
	<form id="select-ip-sources" name="select-ip-sources" method="POST" action="/generate-url">
		<div id="selection-container">
			<div class="row">
				<div class="large-12 medium-12 small-12 columns">
					<h2>Step 1: Select the service(s) that you would like the IP addresses from</h2>
				</div>
			</div>
			<div class="row">
				<div class="large-12 medium-12 small-12 columns">
					<div class="masonry">
						@foreach( $categories as $key => $ipAddresses )
							<div class="item">
								<h3 class="services-header">{{ $key }}</h3>
								@foreach( $ipAddresses as $ipAddress)
									<div class="service">
										<div class="service-selection">
											<input type="checkbox" name="service[]" value="{{ $ipAddress->app_name }}"/>
										</div>
										<div class="service-description">
											<img src="/img/logos/{{ $ipAddress->app_name }}.svg"/>
											<div class="service-meta">
												<span class="service-name">{{ $ipAddress->clean_name }}</span>
												<span class="last-updated">Last Updated: {{ date('m/d/Y g:i:s A', strtotime( $ipAddress->last_updated ) ) }}</span>
											</div>
										</div>
										<div style="clear: both;"></div>
									</div>
								@endforeach
							</div>
						@endforeach
					</div>
				</div>
			</div>
		</div>
		{{ csrf_field() }}
	</form>
	<div id="generate-container">
		<div class="row">
			<div class="large-8 medium-9 small-12 columns large-centered medium-centered">
				<h2>Step 2: Create your address URL</h2>
				<p>We’ll generate a URL for you so that you can always reference the latest address information. We’ll make sure the addresses stay up to date for you.</p>
				<div id="selected-apps"></div>
				<a id="generate-url">Create My Address URL</a>
				<span class="interested">Interested in seeing how we get this information? <a href="https://github.com/521dimensions/ipaddress-fyi" target="_blank">Validate our sources on Github.</a></span>
			</div>
		</div>
		<div class="row">
			<div class="large-12 medium-12 small-12 columns large-centered medium-centered footer-logo">
				Creatively crafted by: <a href="http://521dimensions.com" target="_blank"><img src="/img/521logo.svg"/></a>
			</div>
		</div>
	</div>
@stop

@section('scripts')
	<script type="text/javascript">
		$(document).ready(function(){
			$('.service').on('click', function( e ){
				if( e.target.tagName != 'INPUT' ){
					if( $(this).find("input[type='checkbox']").is(':checked') ){
						$(this).find("input[type='checkbox']")
		          		   	   .prop('checked', false);
	          		}else{
	          			$(this).find("input[type='checkbox']")
	          		  		   .prop('checked', true);
	          		}
				}
				setClasses();
				setLogos();
			});

			$('#generate-url').on('click', function(){
				$('#select-ip-sources').submit();
			});
		});

		function setClasses(){
			$('.service').each( function(){
				if( $(this).find("input[type='checkbox']").is(':checked') ){
					$(this).addClass('service-checked');
				}else{
					$(this).removeClass('service-checked');
				}
			});
		}

		function setLogos(){
			$('#selected-apps').html('');

			$('input[type="checkbox"]').each( function(){
				if( $(this).is(':checked') ){
					$('#selected-apps').append('<img src="/img/logos/'+$(this).val()+'.svg"/>');
				}
			});
		}
	</script>
@stop
{'fraction_non_alphanumeric': 0.2048708848366173, 'fraction_numerical': 0.014686084934524538, 'mean_word_length': 3.0058823529411764, 'pattern_counts': {'":': 0, '<': 176, '<?xml version=': 0, '>': 186, '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': '7295713', 'n_tokens_mistral': 3443, 'n_tokens_neox': 2678, 'n_words': 591}