<commit_before><?php
//propagate the test table with a lot of random data

$dbconn = pg_Connect("host=capstone06.cs.pdx.edu dbname=fake user=postgres password=<PASSWORD>");
if (!$dbconn) {
    die("Error connecting to database.");
}

$string = file_get_contents("http://capstone06.cs.pdx.edu/data/random.php");
$json = json_decode($string,true);

echo(json_encode($json));

foreach ($json['nodes'] as $source) {
    foreach ($source['influence'] as $target) {
	foreach ($target as $i) {
	    echo($source['name'] . " " . $target . " " . $target[$i] . "<br \>");
	}
    }
}
?><commit_msg>The JSON has been picked apart.<commit_after><?php
//propagate the test table with a lot of random data

$dbconn = pg_Connect("host=capstone06.cs.pdx.edu dbname=fake user=postgres password=<PASSWORD>");
if (!$dbconn) {
    die("Error connecting to database.");
}

$string = file_get_contents("http://capstone06.cs.pdx.edu/data/random.php");
$json = json_decode($string,true);

echo(json_encode($json));

foreach ($json['nodes'] as $node) {
    $source = $node['name'];
    foreach ($node['influence'] as $t) {
	foreach ($t as $target => $inf ) {
	    echo($source . " " . $target . " " . $inf . "<br \>");
	}
    }
}
?>
{'fraction_non_alphanumeric': 0.20149253731343283, 'fraction_numerical': 0.006633499170812604, 'mean_word_length': 4.225108225108225, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 10, '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': '494025', 'n_tokens_mistral': 433, 'n_tokens_neox': 424, 'n_words': 94}