<commit_before><?php
// Emails form data to you and the person submitting the form and adds it to a database

// Make sure there is a db to write to
$db = new mysqli("DB_HOST","DB_USER","DB_PASSWORD","DB_NAME");
$sql = "SELECT id FROM form_submissions";
$result = $db->query($sql);
if (empty($result)) {
	$sql = "CREATE TABLE `form_submissions` (
		`id` int(11) NOT NULL AUTO_INCREMENT,
		`name` text COLLATE utf8_unicode_ci,
		`phone` text COLLATE utf8_unicode_ci,
		 `email` int(11) DEFAULT NULL,
		 `message` text COLLATE utf8_unicode_ci,
		 `submitted` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
		 PRIMARY KEY (`id`)
		 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci";
		$result = $db->query($sql);
}<commit_msg>Comment<commit_after><?php
// Emails form data to you and the person submitting the form and adds it to a database

// Test for db
$db = new mysqli("DB_HOST","DB_USER","DB_PASSWORD","DB_NAME");
$sql = "SELECT id FROM form_submissions";
$result = $db->query($sql);
if (empty($result)) {
	$sql = "CREATE TABLE `form_submissions` (
		`id` int(11) NOT NULL AUTO_INCREMENT,
		`name` text COLLATE utf8_unicode_ci,
		`phone` text COLLATE utf8_unicode_ci,
		 `email` int(11) DEFAULT NULL,
		 `message` text COLLATE utf8_unicode_ci,
		 `submitted` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
		 PRIMARY KEY (`id`)
		 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci";
		$result = $db->query($sql);
}
{'fraction_non_alphanumeric': 0.12934631432545202, 'fraction_numerical': 0.012517385257301807, 'mean_word_length': 5.123404255319149, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '5766747', 'n_tokens_mistral': 555, 'n_tokens_neox': 497, 'n_words': 152}