<commit_before><?php

if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
	exit;
}

// Remove plugin settings
delete_option( 'comment_popularity_prefs' );

global $wpdb;

// Remove User meta
$args = array(
	'meta_query' => array(
		array(
			'key'     => $wpdb->get_blog_prefix() . 'hmn_user_expert_status',
			'compare' => 'EXISTS',
		),
	),
	'fields'     => 'all',
);

// Delete user expert status
$user_query = new WP_User_Query( $args );

if ( ! empty( $user_query->results ) ) {

	foreach ( $user_query->results as $user ) {

		delete_user_meta( $user->ID, 'hmn_user_expert_status' );
		delete_user_option( $user->ID, 'hmn_user_expert_status' );

	}
<commit_msg>Delete version DB option on uninstall<commit_after><?php

if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
	exit;
}

// Remove plugin settings
delete_option( 'comment_popularity_prefs' );
delete_option( 'hmn_cp_plugin_version' );

global $wpdb;

// Remove User meta
$args = array(
	'meta_query' => array(
		array(
			'key'     => $wpdb->get_blog_prefix() . 'hmn_user_expert_status',
			'compare' => 'EXISTS',
		),
	),
	'fields'     => 'all',
);

// Delete user expert status
$user_query = new WP_User_Query( $args );

if ( ! empty( $user_query->results ) ) {

	foreach ( $user_query->results as $user ) {

		delete_user_meta( $user->ID, 'hmn_user_expert_status' );
		delete_user_option( $user->ID, 'hmn_user_expert_status' );

	}

{'fraction_non_alphanumeric': 0.16401734104046242, 'fraction_numerical': 0.0, 'mean_word_length': 4.187265917602996, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '2827141', 'n_tokens_mistral': 559, 'n_tokens_neox': 532, 'n_words': 103}