<commit_before>{{!
 modpage.mustache -- the moderator panel when logged in
 template parameters:
 - prefix ( the site's prefix )

}}
<html>
  <head>
    <link rel="stylesheet" href="{{prefix}}static/site.css"></link>
    <!-- yes it uses js -->
    <script type="text/javascript" src="{{prefix}}static/mod.js"></script>
    <title> nntpchan mod page </title>
  </head>
  <body>
    <div>
      <div> post actions </div>
      <hr />
      <div>
        <label for="nntpchan_mod_target">target</label>
        <input id="nntpchan_mod_target" type="text" />
      </div>
      <div>
        <button onclick="nntpchan_ban()">ban (url)</button>
        <button onclick="nntpchan_delete()">delete (url)</button>
        <button onclick="nntpchan_unban()">unban (ip)</button>
      </div>
    </div>
    <div>
      <button onclick="nntpchan_admin('template.reload', {})">reload all templates</button>
      <button onclick="nntpchan_admin('frontend.regen', {})">regenerate all pages</button>
    </div>  
    <div id="nntpchan_mod_result"></div>
    <noscript>
      <b>enable js to use the mod panel kthx</b>
    </noscript>
  </body>
</html><commit_msg>add more info in mod panel, add admin action to rethumb<commit_after>{{!
 modpage.mustache -- the moderator panel when logged in
 template parameters:
 - prefix ( the site's prefix )

}}
<html>
  <head>
    <link rel="stylesheet" href="{{prefix}}static/site.css"></link>
    <!-- yes it uses js -->
    <script type="text/javascript" src="{{prefix}}static/mod.js"></script>
    <title> nntpchan mod page </title>
  </head>
  <body>
    <div>
      <div> post actions </div>
      <hr />
      <div>
        <label for="nntpchan_mod_target">target</label>
        <input id="nntpchan_mod_target" type="text" />
      </div>
      <div>
        <button onclick="nntpchan_ban()">ban (url)</button>
        <button onclick="nntpchan_delete()">delete (url)</button>
        <button onclick="nntpchan_unban()">unban (ip)</button>
      </div>
    </div>
    <hr />
    <div>
      <button onclick="nntpchan_admin('template.reload', {})">reload all templates</button>
    </div>
    <div>
      <label>very load heavy actions, use with care</label>
      <button onclick="nntpchan_admin('frontend.regen', {})">regenerate all pages</button>
      <button onclick="nntpchan_admin('thumbnail.regen', {})">regenerate all thumbnails</button>
    </div>  
    <div id="nntpchan_mod_result"></div>
    <noscript>
      <b>enable js to use the mod panel kthx</b>
    </noscript>
  </body>
</html>
{'fraction_non_alphanumeric': 0.1774002370604504, 'fraction_numerical': 0.0, 'mean_word_length': 3.0970873786407767, 'pattern_counts': {'":': 0, '<': 96, '<?xml version=': 0, '>': 96, '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': '4429325', 'n_tokens_mistral': 856, 'n_tokens_neox': 845, 'n_words': 192}