<commit_before><?php $link = mysql_connect('192.168.59.103', 'admin', 'xuFjyn9NPeff'); ?>
<?php require 'vendor/autoload.php'; ?>
<html>
<head>
	<title>Hello world!</title>
	<style>
	body {
		background-color: white;
		text-align: center;
		padding: 50px;
		font-family: "Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
	}

	#logo {
		margin-bottom: 40px;
	}
	</style>
</head>
<body>
	<img id="logo" src="logo.png" />
	<h1><?php echo "Hello world!"; ?></h1>
	<?php if(!$link) { ?>
		<h2>Can't connect to local MySQL Server!</h2>
	<?php } else { ?>
		<h2>MySQL Server version: <?php echo mysql_get_server_info(); ?></h2>
	<?php } ?>
</body>
</html><commit_msg>update index<commit_after><?php $link = mysql_connect('192.168.59.103', 'admin', '3HAc6NreaLdH'); ?>
<?php 
require 'vendor/autoload.php'; 


$app = new \Slim\Slim();

$app->get('/hello/:name', function ($name) {
    // echo "Hello, $name";

    // $c = mysql_connect('192.168.59.103', 'admin', 'xuFjyn9NPeff');
	mysql_select_db("resultados");
	$query = "SELECT * FROM resultados WHERE rut=".$name;
	$resultado = mysql_query($query);
	$fila = mysql_fetch_assoc($resultado);
	header("Content-Type: application/json");
	$output = json_decode($fila['datos']);
	echo json_encode($output);
	exit;
	//echo htmlentities($fila['datos']);
});




$app->run();
?>
{'fraction_non_alphanumeric': 0.22348484848484848, 'fraction_numerical': 0.035606060606060606, 'mean_word_length': 4.845132743362832, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 3, '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': '5574625', 'n_tokens_mistral': 562, 'n_tokens_neox': 524, 'n_words': 100}