<commit_before><table class="table table-hover">
  <thead>
    <tr>
      <th>Option</th>
      <th>Value</th>
    </tr>
  </thead>
  <tbody>
<?php
$stmt =  $mysqli->stmt_init();
if ($stmt->prepare("SELECT * FROM BlueStats_config where plugin = ?")) {
  $stmt->bind_param("s", $_GET["plugin"]);
  $stmt->execute();
  $result = $stmt->get_result();
  $output=array();
  while ($row = $result->fetch_array(MYSQLI_ASSOC)){
    if (is_string(json_decode($row["value"]))){
      $value = json_decode($row["value"]);
    }else{
      $value = $row["value"];
    }
    ?>
      <tr>
        <td><?=$row["option"]?></td>
        <form action="?update&plugin=<?=htmlspecialchars($row["plugin"])?>" method="post">
        <td>
          <?php if (gettype(json_decode($row["value"]))=="array" || gettype(json_decode($row["value"]))=="object"): ?>
            <textarea name="value" id="" class="form-control" style="height:100px;"><?=htmlspecialchars($value)?></textarea>
          <?php else: ?>
          <input name="value" type="text" class="form-control" value="<?=htmlspecialchars($value)?>" style="width:100%;max-width:100%;">
          <?php endif;?>
        </td>
        <input type="hidden" name="option" value="<?=htmlspecialchars($row["option"])?>">
        <input type="hidden" name="plugin" value="<?=htmlspecialchars($row["plugin"])?>">
        <input type="hidden" name="type" value="<?=htmlspecialchars(gettype(json_decode($row["value"])))?>">
        </form>
      </tr>
    <?php
  }
  $stmt->close();
  }
?>

  </tbody>
</table><commit_msg>Made it possible to submit the textareas<commit_after><table class="table table-hover">
  <thead>
    <tr>
      <th>Option</th>
      <th>Value</th>
    </tr>
  </thead>
  <tbody>
<?php
$stmt =  $mysqli->stmt_init();
if ($stmt->prepare("SELECT * FROM BlueStats_config where plugin = ?")) {
  $stmt->bind_param("s", $_GET["plugin"]);
  $stmt->execute();
  $result = $stmt->get_result();
  $output=array();
  while ($row = $result->fetch_array(MYSQLI_ASSOC)){
    if (is_string(json_decode($row["value"]))){
      $value = json_decode($row["value"]);
    }else{
      $value = $row["value"];
    }
    ?>
      <tr>
        <td><?=$row["option"]?></td>
        <form action="?update&plugin=<?=htmlspecialchars($row["plugin"])?>" method="post">
        <td>
          <?php if (gettype(json_decode($row["value"]))=="array" || gettype(json_decode($row["value"]))=="object"): ?>
            <textarea name="value" id="" class="form-control" style="height:100px;"><?=htmlspecialchars($value)?></textarea>
            <input type="submit" class="btn btn-success pull-right" style="margin-top:5px">
          <?php else: ?>
          <input name="value" type="text" class="form-control" value="<?=htmlspecialchars($value)?>" style="width:100%;max-width:100%;">
          <?php endif;?>
        </td>
        <input type="hidden" name="option" value="<?=htmlspecialchars($row["option"])?>">
        <input type="hidden" name="plugin" value="<?=htmlspecialchars($row["plugin"])?>">
        <input type="hidden" name="type" value="<?=htmlspecialchars(gettype(json_decode($row["value"])))?>">
        </form>
      </tr>
    <?php
  }
  $stmt->close();
  }
?>

  </tbody>
</table>
{'fraction_non_alphanumeric': 0.24075799937868902, 'fraction_numerical': 0.005902454178316247, 'mean_word_length': 3.777448071216617, 'pattern_counts': {'":': 0, '<': 80, '<?xml version=': 0, '>': 94, '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': '475455', 'n_tokens_mistral': 1104, 'n_tokens_neox': 1086, 'n_words': 169}