<commit_before>$(document).one('deviceready', function()
{
	cordova.plugins.diagnostic.isLocationAvailable(function()
	{
	  navigator.notification.alert('apto gps');
	}, function()
	{
	  $('#geolocMask').css("display","flex");
	  navigator.notification.alert('ligar gps');
	});
});


$(document).ready(function()
{
	var user_i = $('#user');
	var senha_i = $('#senha');
	var lembra_login = $('#lembrarLogin');

	$('#cadastrarBtn').on('click', function(event)
	{
		showMask();
		$.ajax(
		{
			url: basePepUrl + "cadastro.php",
			data:
			{
				email : $('#cad_email').val(),
				senha : $('#cad_senha').val(),
				nome : $('#cad_nome').val()
			},
			success: function OnAjaxSuccess(data, textStatus, jqXHR)
			{
				if(data.result === true)
				{
					navigator.notification.alert(data.message);
				}
				else
				{
					navigator.notification.alert(data.message);
				}
			},
			error: function OnAjaxError(jqXHR, textStatus, errorThrown)
			{
				console.log(jqXHR, textStatus, errorThrown);
			},<commit_msg>teste plugin umberto<commit_after>$(document).one('deviceready', function(){
  cordova.plugins.diagnostic.isLocationAvailable(function(){
  navigator.notification.alert('apto gps');
	},function(){
   $('#geolocMask').css("display","flex");
	});
  navigator.notification.alert('ligar gps');

  //outro verificador de GPS -> testar aula do humberto
  // link https://github.com/fastrde/cordova-plugin-fastrde-checkgps
  // instalar yourAppDir$ phonegap plugin add https://github.com/fastrde/phonegap-checkGPS.git
  // CheckGPS.check(function(){
  //   //GPS is enabled!
  //   navigator.notification.alert('2o plugin apto');
  // },
  // function(){
  //   //GPS is disabled!
  //   $('#geolocMask').css("display","flex");
  //   navigator.notification.alert('2o plugin, erro GPS');
  // });
});


$(document).ready(function(){
	var user_i = $('#user');
	var senha_i = $('#senha');
	var lembra_login = $('#lembrarLogin');

	$('#cadastrarBtn').on('click', function(event)
	{
		showMask();
		$.ajax(
		{
			url: basePepUrl + "cadastro.php",
			data:
			{
				email : $('#cad_email').val(),
				senha : $('#cad_senha').val(),
				nome : $('#cad_nome').val()
			},
			success: function OnAjaxSuccess(data, textStatus, jqXHR)
			{
				if(data.result === true)
				{
					navigator.notification.alert(data.message);
				}
				else
				{
					navigator.notification.alert(data.message);
				}
			},
			error: function OnAjaxError(jqXHR, textStatus, errorThrown)
			{
				console.log(jqXHR, textStatus, errorThrown);
			},
{'fraction_non_alphanumeric': 0.19524752475247525, 'fraction_numerical': 0.0007920792079207921, 'mean_word_length': 3.6433823529411766, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 2, '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': '5660243', 'n_tokens_mistral': 1033, 'n_tokens_neox': 886, 'n_words': 136}