<commit_before><!DOCTYPE html>
<html lang="en">
<head>
	<link type="text/css" rel="stylesheet" href="css/materialize.min.css"  media="screen,projection"/>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
	<link type="text/css" rel="stylesheet" href="css/estilo.css"  media="screen,projection"/>
	<title>Posgrados</title>
</head>
<body>
<script src="js/menu.js"></script>
<script>showSubNavBar('Posgrados')</script>
<div class="container">
	<div class="preloader-wrapper active" id="loader">
    	<div class="spinner-layer spinner-blue-only">
			<div class="circle-clipper left">
				<div class="circle"></div>
			</div>
			<div class="gap-patch">
				<div class="circle"></div>
			</div>
			<div class="circle-clipper right">
				<div class="circle"></div>
			</div>
		</div>
	</div>
	<ul class="collapsible" data-collapsible="accordion" id="ulPosgrados">

	</ul>
</div>
<div class="footer-copyright right-align">
	<div class="container">
		<i>© 2016 UTN FRVM</i>
	</div>
</div>
<script src="js/jquery-2.1.1.min.js"></script>
<script src="js/materialize.min.js"></script>
<script src="js/functions.js"></script>
<script>
const l = new Loader();
function getPosgrados()
{
	l.start();
	$.ajax({
		type:"POST",
		url: "http://extension.frvm.utn.edu.ar/graduadosApi/getPosgrados.php",
		success: function(response)
		{
			successGetPosgrados(parse(response));
		},
		error: function(msg)
		{
			l.stop();
			toasty('No se pudo obtener los cursos','error');
		}
	});
}

function successGetPosgrados(data)
{
	let htmlPosgrados = '';
	let leng = data.length;
	for(let i = 0; i < leng; i++)
	{
		let d = data[i];

		htmlPosgrados += `<li><div class="collapsible-header cursoHeader col xs12"><div class="row col s12"><div class="col s8 left-align"><strong>${d.nombre}</strong></div><div class="col s4 right-align"><strong>${d.regionalAbreviatura}</strong></div></div></div>`;
		htmlPosgrados += `<div class="collapsible-body cursoBody"><p>${d.descripcion}<br/>`;
		htmlPosgrados += (d.duracion != '') ? `<strong>Duración: </strong>${d.duracion}<br/>` : '';
		htmlPosgrados += `</p><div class="container col s12 center-align"><a class="waves-effect waves-light btn" onclick="interesCurso('${d.id}','${d.nombre}')"><i class="material-icons right">thumb_up</i>Me interesa</a><br/><br/></div></div></li>`;
	}
	l.stop();
	$('#ulPosgrados').html(htmlPosgrados);
}

function interesPosgrado(idPosgrado,nombre)
{
	l.start();
	const id = getItem('id');<commit_msg>Interes posgrado<commit_after><!DOCTYPE html>
<html lang="en">
<head>
	<link type="text/css" rel="stylesheet" href="css/materialize.min.css"  media="screen,projection"/>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
	<link type="text/css" rel="stylesheet" href="css/estilo.css"  media="screen,projection"/>
	<title>Posgrados</title>
</head>
<body>
<script src="js/menu.js"></script>
<script>showSubNavBar('Posgrados')</script>
<div class="container">
	<div class="preloader-wrapper active" id="loader">
    	<div class="spinner-layer spinner-blue-only">
			<div class="circle-clipper left">
				<div class="circle"></div>
			</div>
			<div class="gap-patch">
				<div class="circle"></div>
			</div>
			<div class="circle-clipper right">
				<div class="circle"></div>
			</div>
		</div>
	</div>
	<ul class="collapsible" data-collapsible="accordion" id="ulPosgrados">

	</ul>
</div>
<div class="footer-copyright right-align">
	<div class="container">
		<i>© 2016 UTN FRVM</i>
	</div>
</div>
<script src="js/jquery-2.1.1.min.js"></script>
<script src="js/materialize.min.js"></script>
<script src="js/functions.js"></script>
<script>
const l = new Loader();
function getPosgrados()
{
	l.start();
	$.ajax({
		type:"POST",
		url: "http://extension.frvm.utn.edu.ar/graduadosApi/getPosgrados.php",
		success: function(response)
		{
			successGetPosgrados(parse(response));
		},
		error: function(msg)
		{
			l.stop();
			toasty('No se pudo obtener los cursos','error');
		}
	});
}

function successGetPosgrados(data)
{
	let htmlPosgrados = '';
	let leng = data.length;
	for(let i = 0; i < leng; i++)
	{
		let d = data[i];

		htmlPosgrados += `<li><div class="collapsible-header cursoHeader col xs12"><div class="row col s12"><div class="col s8 left-align"><strong>${d.nombre}</strong></div><div class="col s4 right-align"><strong>${d.regionalAbreviatura}</strong></div></div></div>`;
		htmlPosgrados += `<div class="collapsible-body cursoBody"><p>${d.descripcion}<br/>`;
		htmlPosgrados += (d.duracion != '') ? `<strong>Duración: </strong>${d.duracion}<br/>` : '';
		htmlPosgrados += `</p><div class="container col s12 center-align"><a class="waves-effect waves-light btn" onclick="interesPosgrado('${d.id}','${d.nombre}')"><i class="material-icons right">thumb_up</i>Me interesa</a><br/><br/></div></div></li>`;
	}
	l.stop();
	$('#ulPosgrados').html(htmlPosgrados);
}

function interesPosgrado(idPosgrado,nombre)
{
	l.start();
	const id = getItem('id');
{'fraction_non_alphanumeric': 0.22069236821400473, 'fraction_numerical': 0.007474429583005508, 'mean_word_length': 5.2933168316831685, 'pattern_counts': {'":': 0, '<': 161, '<?xml version=': 0, '>': 159, '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': '5788196', 'n_tokens_mistral': 2032, 'n_tokens_neox': 1895, 'n_words': 328}