<commit_before><?php

/**
 * @file
 * General options page.
 *
 * Created by: Topsitemakers
 * http://www.topsitemakers.com/
 */
custom_debug_admin_page_save_handle();
$page = array(
  'title' => __('Custom debugging options'),
  'form' => TRUE,
  'fieldset' => array(
    
    /**
     * Logging settings.
     */
    array(
      'title' => __('Debugging information on front end'),
      'fields' => array(
        // Tab one content.
        array(
          'id' => 'rows_to_display',
          'type' => 'select',
          'label' => __('Rows to display'),
          'help' => __('Select how many rows should be displayed in the debugging bar displayed from the admin bar.'),
          'options' => array(5 => 5, 10 => 10, 15 => 15, 20 => 20, 30 => 30, 50 => 50),
          'value' => get_option(CUSTOM_DEBUG_SHORTNAME . 'rows_to_display'),
        ),
        array(
          'id' => 'submit_email_general',
          'class' => 'last',
          'type' => 'submit',
          'value' => __('Save settings'),
        ),
      ),
    ),
    // Logging settings end.
    
    /**
     * General settings.
     */
    array(
      'title' => __('General settings'),
      'fields' => array(
        // Tab one content.
        array(
          'id' => 'login_errors_enabled',
          'type' => 'checkbox',
          'label' => __('Override login errors'),
          'help' => __('By default, WordPress tells the user which part of login information is incorrect. This is a potential security issue and it is better to replace that text with a generic error message. By enabling this feature, the message can be customized in the textarea below.'),
          'value' => get_option(CUSTOM_DEBUG_SHORTNAME . 'login_errors_enabled'),
        ),
        array(
          'id' => 'login_error_text',
          'type' => 'textarea',
          'label' => __('Error text'),
          'help' => __('This text will be displayed instead of default WordPress error messages on unsuccessful user login.'),
          'value' => get_option(CUSTOM_DEBUG_SHORTNAME . 'login_error_text'),
        ),
        array(
          'id' => 'submit_email_general',
          'class' => 'last',
          'type' => 'submit',
          'value' => __('Save settings'),
        ),
      ),
    ),
    // General settings end.

  ),
);
custom_debug_generate_admin_page($page);<commit_msg>Updating comments and IDs on admin form<commit_after><?php

/**
 * @file
 * General options page.
 *
 * Created by: Topsitemakers
 * http://www.topsitemakers.com/
 */
custom_debug_admin_page_save_handle();
$page = array(
  'title' => __('Custom debugging options'),
  'form' => TRUE,
  'fieldset' => array(
    
    /**
     * Logging settings.
     */
    array(
      'title' => __('Debugging information on front end'),
      'fields' => array(
        // Tab one content.
        array(
          'id' => 'rows_to_display',
          'type' => 'select',
          'label' => __('Rows to display'),
          'help' => __('Select how many rows should be displayed in the debugging bar displayed from the admin bar.'),
          'options' => array(5 => 5, 10 => 10, 15 => 15, 20 => 20, 30 => 30, 50 => 50),
          'value' => get_option(CUSTOM_DEBUG_SHORTNAME . 'rows_to_display'),
        ),
        array(
          'id' => 'debug_front_submit',
          'class' => 'last',
          'type' => 'submit',
          'value' => __('Save settings'),
        ),
      ),
    ),
    // Logging settings end.
    
    /**
     * Login errors.
     */
    array(
      'title' => __('Login errors'),
      'fields' => array(
        // Tab one content.
        array(
          'id' => 'login_errors_enabled',
          'type' => 'checkbox',
          'label' => __('Override login errors'),
          'help' => __('By default, WordPress tells the user which part of login information is incorrect. This is a potential security issue and it is better to replace that text with a generic error message. By enabling this feature, the message can be customized in the textarea below.'),
          'value' => get_option(CUSTOM_DEBUG_SHORTNAME . 'login_errors_enabled'),
        ),
        array(
          'id' => 'login_error_text',
          'type' => 'textarea',
          'label' => __('Error text'),
          'help' => __('This text will be displayed instead of default WordPress error messages on unsuccessful user login.'),
          'value' => get_option(CUSTOM_DEBUG_SHORTNAME . 'login_error_text'),
        ),
        array(
          'id' => 'login_errors_submit',
          'class' => 'last',
          'type' => 'submit',
          'value' => __('Save settings'),
        ),
      ),
    ),
    // Login errors end.

  ),
);
custom_debug_generate_admin_page($page);
{'fraction_non_alphanumeric': 0.14903947646189572, 'fraction_numerical': 0.009288579269579903, 'mean_word_length': 2.1398277004638833, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 77, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4642050', 'n_tokens_mistral': 1419, 'n_tokens_neox': 1359, 'n_words': 403}