<commit_before><?php
require_once 'functions.cms.php';
require_once 'functions.php';
require_once 'functions.omat.php';
$sub_page = 10;
$list = $db->query("SELECT tags.*, tags_parents.name AS parentname 
FROM tags JOIN tags_parents ON tags.parent = tags_parents.id ORDER BY tags.parent, tags.tag");
?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <?php echo $header ?>
    <title>Tags | <?php echo SITENAME ?></title>
    <style type="text/css">
      table {border:1px solid #ccc; width:100px;table-layout: fixed;}
      th, td { max-width:100px;white-space:nowrap; overflow:hidden; text-overflow: ellipsis; }<commit_msg>Remove tags 5<commit_after><?php
require_once 'functions.cms.php';
require_once 'functions.php';
require_once 'functions.omat.php';
$sub_page = 10;

if ($_GET['delete']) {
  $delete = (int)$_GET['delete'];
  $count = $db->query("SELECT * FROM tags_papers WHERE tag = $delete");
  if (count($count)) {
    die("Sorry, you can only delete a tag if there are no papers associated with it");
  }
  $db->query("DELETE FROM tags WHERE id = $delete LIMIT 1");
  $print = "Tag was deleted";
}

$list = $db->query("SELECT tags.*, tags_parents.name AS parentname 
FROM tags JOIN tags_parents ON tags.parent = tags_parents.id ORDER BY tags.parent, tags.tag");
?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <?php echo $header ?>
    <title>Tags | <?php echo SITENAME ?></title>
    <style type="text/css">
      table {border:1px solid #ccc; width:100px;table-layout: fixed;}
      th, td { max-width:100px;white-space:nowrap; overflow:hidden; text-overflow: ellipsis; }
{'fraction_non_alphanumeric': 0.16287878787878787, 'fraction_numerical': 0.012626262626262626, 'mean_word_length': 4.6007067137809186, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 25, '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': '7095460', 'n_tokens_mistral': 557, 'n_tokens_neox': 526, 'n_words': 148}