<commit_before><?php

if(isset($_POST['gj_hidden']) && $_POST['gj_hidden'] == 'gj_maps_delete') {

  $adminFunctions = new gjMapsAdmin();

  $response = $adminFunctions->deleteData($_POST);

} 

var_dump($response);

if($response['status'] === 'success') {

  echo '<div id="message" class="updated"><p>'.$response['message'].'</p></div>';

} else if ($response['status'] === 'error') {

  echo '<div id="message" class="error"><p>'.$response['message'].'</p></div>';

} ?>


<div class="wrap">
  <h4>Are you sure you want to delete all data?</h4>
  <form name="gj_maps_delete" method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>">
    <input type="hidden" name="gj_hidden" value="gj_maps_delete">
    <table class="form-table">
      <tr>
        <th><label for="delete">Select Data</label></th>
        <td>
          <select name="delete">
            <option value="default" selected>Do Not Delete</option>
            <option value="delete_categories">Delete All Categories</option>
            <option value="delete_maps">Delete All Maps</option>
            <option value="delete_poi">Delete All POI</option>
            <option value="delete_all">Delete All Data</option>
          </select>
        </td>
      </tr>
    </table>
    <button class="btn button" type="submit">Delete Data</button>
  </form>
</div><commit_msg>Commented out non-functional delete methods<commit_after><?php

if(isset($_POST['gj_hidden']) && $_POST['gj_hidden'] == 'gj_maps_delete') {

  $adminFunctions = new gjMapsAdmin();

  $response = $adminFunctions->deleteData($_POST);

  if($response['status'] === 'success') {

    echo '<div id="message" class="updated"><p>'.$response['message'].'</p></div>';

  } else if ($response['status'] === 'error') {

    echo '<div id="message" class="error"><p>'.$response['message'].'</p></div>';

  } 

} ?>


<div class="wrap">
  <h4>Are you sure you want to delete all data?</h4>
  <form name="gj_maps_delete" method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>">
    <input type="hidden" name="gj_hidden" value="gj_maps_delete">
    <table class="form-table">
      <tr>
        <th><label for="delete">Select Data</label></th>
        <td>
          <select name="delete">
            <option value="default" selected>Do Not Delete</option>
<!--             <option value="delete_categories">Delete All Categories</option>
            <option value="delete_maps">Delete All Maps</option>
            <option value="delete_poi">Delete All POI</option> -->
            <option value="delete_all">Delete All Data</option>
          </select>
        </td>
      </tr>
    </table>
    <button class="btn button" type="submit">Delete Data</button>
  </form>
</div>
{'fraction_non_alphanumeric': 0.20484980094100616, 'fraction_numerical': 0.002171552660152009, 'mean_word_length': 3.668918918918919, 'pattern_counts': {'":': 0, '<': 86, '<?xml version=': 0, '>': 88, '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': '2815706', 'n_tokens_mistral': 881, 'n_tokens_neox': 868, 'n_words': 178}