<commit_before><?php
/**
 * Functionality to manage the plugin's custom database table.
 *
 * @package McAvoy
 * @author  <NAME>
 */

namespace McAvoy;

define( 'MCAVOY_DB_VERSION', 1 );

/**
 * Create the custom database table.
 *
 * @global $wpdb
 */
function create_database_table() {
	global $wpdb;

	$table   = $wpdb->prefix . 'mcavoy_searches';
	$charset = $wpdb->get_charset_collate();
	$sql     = "CREATE TABLE IF NOT EXISTS $table (
		`id` tinyint(11) unsigned NOT NULL AUTO_INCREMENT,
		`term` varchar(255) NOT NULL DEFAULT '',
		`metadata` text,
		`created_at` datetime NOT NULL,
		PRIMARY KEY (`id`),
		KEY `term` (`term`),
		KEY `created_at` (`created_at`)<commit_msg>Move the database name into a constant<commit_after><?php
/**
 * Functionality to manage the plugin's custom database table.
 *
 * @package McAvoy
 * @author  <NAME>
 */

namespace McAvoy;

define( 'MCAVOY_DB_SEARCHES_TABLE', 'mcavoy_searches' );
define( 'MCAVOY_DB_VERSION', 1 );

/**
 * Create the custom database table.
 *
 * @global $wpdb
 */
function create_database_table() {
	global $wpdb;

	$table   = $wpdb->prefix . MCAVOY_DB_SEARCHES_TABLE;
	$charset = $wpdb->get_charset_collate();
	$sql     = "CREATE TABLE IF NOT EXISTS $table (
		`id` tinyint(11) unsigned NOT NULL AUTO_INCREMENT,
		`term` varchar(255) NOT NULL DEFAULT '',
		`metadata` text,
		`created_at` datetime NOT NULL,
		PRIMARY KEY (`id`),
		KEY `term` (`term`),
		KEY `created_at` (`created_at`)
{'fraction_non_alphanumeric': 0.14334941419710545, 'fraction_numerical': 0.008270158511371467, 'mean_word_length': 4.28, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '2079738', 'n_tokens_mistral': 564, 'n_tokens_neox': 518, 'n_words': 142}