<commit_before><?php
include_once('connect.php');
header('Content-type:application/json; charset=UTF-8');
header('Access-Control-Allow-Origin: *');

$result=mysql_query("SELECT * FROM $dbtable WHERE url='$url'");
while($row=@mysql_fetch_array($result,MYSQL_ASSOC)){
    $row[]=array('row'=>array_map('htmlspecialchars',$row));
    $array=array('url'=>$row['url'],'title'=>$row['title'],'content'=>$row['content']);
    $json=str_replace('\'','\\',json_encode($array));//$url=$row['url'];$title=$row['title'];$content=$row['content'];echo "{\"url\":\"$url\",\"title\":\"$title\",\"content\":\"$content\"}";
    if($_GET['callback']){
    	echo $_GET['callback']."($json)"; // JSONP
    }else{
    	echo $json; // JSON
    }
}
mysql_close($conn);
?><commit_msg>Improved formatting.<commit_after><?php
include_once('connect.php');
header('Content-type:application/json; charset=UTF-8');
header('Access-Control-Allow-Origin: *');

$result=mysql_query("SELECT * FROM $dbtable WHERE url='$url'");
while($row=@mysql_fetch_array($result,MYSQL_ASSOC)){
    $row[]=array('row'=>array_map('htmlspecialchars',$row));
    $array=array('url'=>$row['url'],'title'=>$row['title'],'content'=>$row['content']);
    $json=str_replace('\'','\\',json_encode($array)); // $url=$row['url'];$title=$row['title'];$content=$row['content'];echo "{\"url\":\"$url\",\"title\":\"$title\",\"content\":\"$content\"}";
    if($_GET['callback']){
    	echo "{$_GET['callback']}($json)"; // JSONP
    }else{
    	echo $json;                        // JSON
    }
}
mysql_close($conn);
?>
{'fraction_non_alphanumeric': 0.28884590586718245, 'fraction_numerical': 0.0012894906511927789, 'mean_word_length': 6.21860465116279, 'pattern_counts': {'":': 6, '<': 5, '<?xml version=': 0, '>': 13, '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': '1473147', 'n_tokens_mistral': 534, 'n_tokens_neox': 532, 'n_words': 50}