<commit_before><?php
	require_once(dirname(__FILE__) . '/../config.php');
	require_once(dirname(__FILE__) . '/functions.php');
	require_once(dirname(__FILE__) . '/classes/database.php');

	echo '<a href="index.php">Main Page</a><br><br>';

	$dbmap = new database(getPDO($config['database']));
	$accounts = $dbmap->getAccounts();

	$tags = array();
	$jsontags = array();
	echo '<pre>';
	foreach ($dbmap->getAllTags() as $t) {
		$tags[$t['tagid']] = $t['category'] . ' :: ' . $t['tag'];
		$jsontags[$t['category']][$t['tag']] = $t['tagid'];
		echo $t['tagid'], ' -> ', $tags[$t['tagid']], "\n";
	}
	echo '</pre>';

	foreach ($accounts as $account) {
		echo '<h1>', $account->getFullNumber(), '</h1>';

		echo '<table>';
		echo '<tr>';
		echo '<th>Date</th>';
		echo '<th>Type</th>';
		echo '<th>Description</th>';
		echo '<th>Amount</th>';
		echo '<th>Balance</th>';
		echo '<th>Hash</th>';
		echo '<th>Tags</th>';<commit_msg>Debug.php now shows account description<commit_after><?php
	require_once(dirname(__FILE__) . '/../config.php');
	require_once(dirname(__FILE__) . '/functions.php');
	require_once(dirname(__FILE__) . '/classes/database.php');

	echo '<a href="index.php">Main Page</a><br><br>';

	$dbmap = new database(getPDO($config['database']));
	$accounts = $dbmap->getAccounts();

	$tags = array();
	$jsontags = array();
	echo '<pre>';
	foreach ($dbmap->getAllTags() as $t) {
		$tags[$t['tagid']] = $t['category'] . ' :: ' . $t['tag'];
		$jsontags[$t['category']][$t['tag']] = $t['tagid'];
		echo $t['tagid'], ' -> ', $tags[$t['tagid']], "\n";
	}
	echo '</pre>';

	foreach ($accounts as $account) {
		echo '<h1>', $account->getFullNumber(), '<small><br>', $account->getDescriptionOrType(). '</small></h1>';

		echo '<table>';
		echo '<tr>';
		echo '<th>Date</th>';
		echo '<th>Type</th>';
		echo '<th>Description</th>';
		echo '<th>Amount</th>';
		echo '<th>Balance</th>';
		echo '<th>Hash</th>';
		echo '<th>Tags</th>';
{'fraction_non_alphanumeric': 0.2843086483687209, 'fraction_numerical': 0.0020714655618850335, 'mean_word_length': 4.944615384615385, 'pattern_counts': {'":': 0, '<': 56, '<?xml version=': 0, '>': 63, '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': '3663238', 'n_tokens_mistral': 750, 'n_tokens_neox': 720, 'n_words': 131}