<commit_before>    			
			<div class="mdl-textfield mdl-js-textfield is-upgraded is-focused mdl-textfield--floating-label @if ($errors->has('country')) is-invalid is-dirty @endif"" data-upgraded="eP">
         		{!!Form::text('country', $contact->country, ['id' => 'country', 'class' => 'mdl-textfield__input immybox immybox_witharrow', 'autocomplete' => 'off'])!!}
                {!!Form::label('country', Lang::get('general.country'), ['class' => 'mdl-color-text--primary-contrast mdl-textfield__label is-dirty'])!!}
                <span class="mdl-textfield__error">{{ $errors->first('country') }}</span>
			</div>
			
			<div class="mdl-textfield mdl-js-textfield is-upgraded is-focused mdl-textfield--floating-label @if ($errors->has('state')) is-invalid is-dirty @endif"" data-upgraded="eP">
         		{!!Form::text('state', $contact->state, ['id' => 'state', 'class' => 'mdl-textfield__input immybox immybox_witharrow', 'autocomplete' => 'off'])!!}
                {!!Form::label('state', Lang::get('general.state'), ['class' => 'mdl-color-text--primary-contrast mdl-textfield__label is-dirty'])!!}
				<span class="mdl-textfield__error">{{ $errors->first('state') }}</span>
			</div>
			
			<div class="mdl-textfield mdl-js-textfield is-upgraded is-focused mdl-textfield--floating-label @if ($errors->has('city')) is-invalid is-dirty @endif"" data-upgraded="eP">
         		{!!Form::text('city', $contact->city, ['id' => 'city', 'class' => 'mdl-textfield__input immybox immybox_witharrow', 'autocomplete' => 'off'])!!}
				{!!Form::label('city', Lang::get('general.city'), ['class' => 'mdl-color-text--primary-contrast mdl-textfield__label is-dirty'])!!}
				<span class="mdl-textfield__error">{{ $errors->first('city') }}</span>
			</div>
			
			<div class="mdl-textfield mdl-js-textfield is-upgraded is-focused mdl-textfield--floating-label @if ($errors->has('address')) is-invalid is-dirty @endif"" data-upgraded="eP">
         		{!!Form::text('address', $contact->address, ['class' => 'mdl-textfield__input'])!!}
				{!!Form::label('address', Lang::get('general.address'), ['class' => 'mdl-color-text--primary-contrast mdl-textfield__label is-dirty'])!!}
				<span class="mdl-textfield__error">{{ $errors->first('address') }}</span>
			</div>
			
			<div class="mdl-textfield mdl-js-textfield is-upgraded is-focused mdl-textfield--floating-label @if ($errors->has('phone')) is-invalid is-dirty @endif"" data-upgraded="eP">
         		{!!Form::tel('phone', $contact->phone, ['class' => 'mdl-textfield__input'])!!}
				{!!Form::label('phone', Lang::get('general.phone'), ['class' => 'mdl-color-text--primary-contrast mdl-textfield__label is-dirty'])!!}
				<span class="mdl-textfield__error">{{ $errors->first('phone') }}</span>
			</div>
			
			<div class="mdl-textfield mdl-js-textfield is-upgraded is-focused mdl-textfield--floating-label @if ($errors->has('license_no')) is-invalid is-dirty @endif"" data-upgraded="eP">
         		{!!Form::number('license_no', $contact->license_no, ['class' => 'mdl-textfield__input'])!!}
				{!!Form::label('license_no', Lang::get('general.license_no'), ['class' => 'mdl-color-text--primary-contrast mdl-textfield__label is-dirty'])!!}
				<span class="mdl-textfield__error">{{ $errors->first('license_no') }}</span>
			</div>

<script>
	$( document ).ready(function() {


		function fillCountries(data) {
			var countries = [];
			$.each(data.geonames, function (index, country) {
		        item = {}
		        item ["text"] = country.countryName;
		        item ["value"] = country.geonameId;
		        countries.push(item);
			});
			$('#country').immybox({
			    choices: countries
			});
			$('#state').immybox({choices: []});
			$('#city').immybox({choices: []});
		};

		var urlCountries = "http://api.geonames.org/countryInfoJSON?username={{config('app.geonames_username')}}&lang={!!Lang::get('masks.geoname')!!}";
		$.ajax({
		    url: urlCountries,
		    type: 'GET',
		    crossDomain: true,
		    dataType: 'jsonp',
		    success: fillCountries,
		    error: function() { console.log('Failed!'); }
		});

		function fillStates(data){
			var states = [];
			$.each(data.geonames, function (index, state) {
				item = {}
		        item ["text"] = state.toponymName;
		        item ["value"] = state.geonameId;
		        states.push(item);
			});
			$('#state').immybox('setChoices', states);
		}

		$('#country').on('update', function(){
			var urlStates = "http://api.geonames.org/childrenJSON?geonameId=" + 
								$('#country').immybox('getValue') + 
								"&username={{config('app.geonames_username')}}&lang={!!Lang::get('masks.geoname')!!}";
			$.ajax({
			    url: urlStates,
			    type: 'GET',
			    crossDomain: true,
			    dataType: 'jsonp',
			    success: fillStates,
			    error: function() { console.log('Failed!'); }
			});
		});

		function fillCities(data){
			var cities = [];
			$.each(data.geonames, function (index, city) {
				item = {}
		        item ["text"] = city.toponymName;
		        item ["value"] = city.geonameId;
		        cities.push(item);
			});
			$('#city').immybox('setChoices', cities);
		}

		$('#state').on('update', function(){
			var urlCities = "http://api.geonames.org/childrenJSON?geonameId=" + 
								$('#state').immybox('getValue') + 
								"&username={{config('app.geonames_username')}}&lang={!!Lang::get('masks.geoname')!!}";
			$.ajax({
			    url: urlCities,
			    type: 'GET',
			    crossDomain: true,
			    dataType: 'jsonp',
			    success: fillCities,
			    error: function() { console.log('Failed!'); }
			});
		});

	});
</script>
<commit_msg>Filtro de localidades no formulário de contacts<commit_after>    			
			<div class="mdl-textfield mdl-js-textfield is-upgraded is-focused mdl-textfield--floating-label @if ($errors->has('country')) is-invalid is-dirty @endif"" data-upgraded="eP">
         		{!!Form::text('country', $contact->country, ['id' => 'country', 'class' => 'mdl-textfield__input immybox immybox_witharrow', 'autocomplete' => 'off'])!!}
                {!!Form::label('country', Lang::get('general.country'), ['class' => 'mdl-color-text--primary-contrast mdl-textfield__label is-dirty'])!!}
                <span class="mdl-textfield__error">{{ $errors->first('country') }}</span>
			</div>
			
			<div class="mdl-textfield mdl-js-textfield is-upgraded is-focused mdl-textfield--floating-label @if ($errors->has('state')) is-invalid is-dirty @endif"" data-upgraded="eP">
         		{!!Form::text('state', $contact->state, ['id' => 'state', 'class' => 'mdl-textfield__input immybox immybox_witharrow', 'autocomplete' => 'off'])!!}
                {!!Form::label('state', Lang::get('general.state'), ['class' => 'mdl-color-text--primary-contrast mdl-textfield__label is-dirty'])!!}
				<span class="mdl-textfield__error">{{ $errors->first('state') }}</span>
			</div>
			
			<div class="mdl-textfield mdl-js-textfield is-upgraded is-focused mdl-textfield--floating-label @if ($errors->has('city')) is-invalid is-dirty @endif"" data-upgraded="eP">
         		{!!Form::text('city', $contact->city, ['id' => 'city', 'class' => 'mdl-textfield__input immybox immybox_witharrow', 'autocomplete' => 'off'])!!}
				{!!Form::label('city', Lang::get('general.city'), ['class' => 'mdl-color-text--primary-contrast mdl-textfield__label is-dirty'])!!}
				<span class="mdl-textfield__error">{{ $errors->first('city') }}</span>
			</div>
			
			<div class="mdl-textfield mdl-js-textfield is-upgraded is-focused mdl-textfield--floating-label @if ($errors->has('address')) is-invalid is-dirty @endif"" data-upgraded="eP">
         		{!!Form::text('address', $contact->address, ['class' => 'mdl-textfield__input'])!!}
				{!!Form::label('address', Lang::get('general.address'), ['class' => 'mdl-color-text--primary-contrast mdl-textfield__label is-dirty'])!!}
				<span class="mdl-textfield__error">{{ $errors->first('address') }}</span>
			</div>
			
			<div class="mdl-textfield mdl-js-textfield is-upgraded is-focused mdl-textfield--floating-label @if ($errors->has('phone')) is-invalid is-dirty @endif"" data-upgraded="eP">
         		{!!Form::tel('phone', $contact->phone, ['class' => 'mdl-textfield__input'])!!}
				{!!Form::label('phone', Lang::get('general.phone'), ['class' => 'mdl-color-text--primary-contrast mdl-textfield__label is-dirty'])!!}
				<span class="mdl-textfield__error">{{ $errors->first('phone') }}</span>
			</div>
			
			<div class="mdl-textfield mdl-js-textfield is-upgraded is-focused mdl-textfield--floating-label @if ($errors->has('license_no')) is-invalid is-dirty @endif"" data-upgraded="eP">
         		{!!Form::number('license_no', $contact->license_no, ['class' => 'mdl-textfield__input'])!!}
				{!!Form::label('license_no', Lang::get('general.license_no'), ['class' => 'mdl-color-text--primary-contrast mdl-textfield__label is-dirty'])!!}
				<span class="mdl-textfield__error">{{ $errors->first('license_no') }}</span>
			</div>

<script>
	$( document ).ready(function() {


		function fillCountries(data) {
			var countries = [];
			var countryVal = $('#country').val();
			$.each(data.geonames, function (index, country) {
		        item = {}
		        item ["text"] = country.countryName;
		        item ["value"] = country.countryCode;
		        countries.push(item);
			});
			$('#country').immybox({
			    choices: countries
			});
			$('#country').val(countryVal);
		};

		$('#country').on('keyup', function(){

			if($('#country').val().length < 3) {
				return;
			}

			var urlCountries = "http://api.geonames.org/searchJSON?name_startsWith="+
                        		$('#country').val()+'&fcode=pcli'+
                    			"&username={{config('app.geonames_username')}}&lang={!!Lang::get('masks.geoname')!!}";

    		$.ajax({
    		    url: urlCountries,
    		    type: 'GET',
    		    crossDomain: true,
    		    dataType: 'jsonp',
    		    success: fillCountries,
    		    error: function() { console.log('Failed!'); }
    		});
		});
		
		function fillStates(data){
			var states = [];
			var stateVal = $('#state').val();
			$.each(data.geonames, function (index, state) {
				item = {}
		        item ["text"] = state.toponymName;
		        item ["value"] = state.name;
		        states.push(item);
			});
			$('#state').immybox({
			    choices: states
			});
			$('#state').val(stateVal);
		}

		$('#state').on('keyup', function(){

			if($('#state').val().length < 3) {
				return;
			}

			var urlStates = "http://api.geonames.org/searchJSON?name_startsWith="+
								encodeURIComponent($('#state').val())+
								'&country='+$('#country').immybox('getValue')+
								'&fcode=ADM1'+
                    			"&username={{config('app.geonames_username')}}&lang={!!Lang::get('masks.geoname')!!}";

    		$.ajax({
    		    url: urlStates,
    		    type: 'GET',
    		    crossDomain: true,
    		    dataType: 'jsonp',
    		    success: fillStates,
    		    error: function() { console.log('Failed!'); }
    		});
		});

		function fillCities(data){
			var cities = [];
			var cityVal = $('#city').val();
			$.each(data.geonames, function (index, city) {
				item = {}
		        item ["text"] = city.toponymName;
		        item ["value"] = city.geonameId;
		        cities.push(item);
			});
			$('#city').immybox({
			    choices: cities
			});
			$('#city').val(cityVal);
		}

		$('#city').on('keyup', function(){

			if($('#city').val().length < 3) {
				return;
			}

			var urlCities = "http://api.geonames.org/searchJSON?q="+encodeURIComponent($('#state').immybox('getValue'))+
                        		"&name_startsWith="+encodeURIComponent($('#city').val())+
                        		'&country='+encodeURIComponent($('#country').immybox('getValue'))+
                        		'&fcode=ADM2'+
                    			"&username={{config('app.geonames_username')}}&lang={!!Lang::get('masks.geoname')!!}";

    		$.ajax({
    		    url: urlCities,
    		    type: 'GET',
    		    crossDomain: true,
    		    dataType: 'jsonp',
    		    success: fillCities,
    		    error: function() { console.log('Failed!'); }
    		});
		});

	});
</script>

{'fraction_non_alphanumeric': 0.2193018820993284, 'fraction_numerical': 0.0004145593234391841, 'mean_word_length': 3.4361897756528137, 'pattern_counts': {'":': 0, '<': 58, '<?xml version=': 0, '>': 127, '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': '6712200', 'n_tokens_mistral': 4534, 'n_tokens_neox': 4040, 'n_words': 637}