<commit_before><?php
// lib/php/plugins/about.php 20150101 - 20170317
// Copyright (C) 2015-2017 <NAME> <<EMAIL>> (AGPL-3.0)

class Plugins_About extends Plugin
{
    public function list() : string
    {
error_log(__METHOD__);

        $buf = '
      <div class="col-12">
        <h3>About</h3>
        <p class="columns">
This is an example of a simple PHP7 "framework" to provide the core
structure for further experimental development with both the framework
design and some of the new features of PHP7.
        </p>
        <form method="post">
          <p class="text-center">
            <a class="btn btn-success" href="?o=about&l=success:Howdy, all is okay.">Success Message</a>
            <a class="btn btn-danger" href="?o=about&l=danger:Houston, we have a problem.">Danger Message</a>
            <a class="btn btn-secondary" href="#" onclick="ajax(\'1\')">JSON</a>
            <a class="btn btn-secondary" href="#" onclick="ajax(\'\')">HTML</a>
            <a class="btn btn-secondary" href="#" onclick="ajax(\'foot\')">FOOT</a>
          </p>
        </form>
        <pre id="dbg"></pre>
      </div>
      <script>
function ajax(a) {
alert("a=" + a)
  if (window.XMLHttpRequest)  {
    var x = new XMLHttpRequest();
    x.open("POST", "", true);
    x.onreadystatechange = function() {
      if (x.readyState == 4 && x.status == 200) {
        document.getElementById("dbg").innerHTML = x.responseText
          .replace(/</g,"&lt;")
          .replace(/>/g,"&gt;")
          .replace(/\\\n/g,"\n")
          .replace(/\\\/g,"");
    }}
    x.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
    x.send("o=about&x="+a);
    return false;
  }
}
      </script>';
        return $this->t->list(['buf' => $buf]);
    }
}

?><commit_msg>lib/php/plugins/about.php : alter comment section<commit_after><?php
// lib/php/plugins/about.php 20150101 - 20170317
// Copyright (C) 2015-2017 <NAME> <<EMAIL>> (AGPL-3.0)

class Plugins_About extends Plugin
{
    public function list() : string
    {
error_log(__METHOD__);
/*
        $buf = '
      <div class="col-12">
        <h3>About</h3>
        <p class="columns">
This is an example of a simple PHP7 "framework" to provide the core
structure for further experimental development with both the framework
design and some of the new features of PHP7.
        </p>
        <form method="post">
          <p class="text-center">
            <a class="btn btn-success" href="?o=about&l=success:Howdy, all is okay.">Success Message</a>
            <a class="btn btn-danger" href="?o=about&l=danger:Houston, we have a problem.">Danger Message</a>
            <a class="btn btn-secondary" href="#" onclick="ajax(\'1\')">JSON</a>
            <a class="btn btn-secondary" href="#" onclick="ajax(\'\')">HTML</a>
            <a class="btn btn-secondary" href="#" onclick="ajax(\'foot\')">FOOT</a>
          </p>
        </form>
        <pre id="dbg"></pre>
      </div>
      <script>
function ajax(a) {
alert("a=" + a)
  if (window.XMLHttpRequest)  {
    var x = new XMLHttpRequest();
    x.open("POST", "", true);
    x.onreadystatechange = function() {
      if (x.readyState == 4 && x.status == 200) {
        document.getElementById("dbg").innerHTML = x.responseText
          .replace(/</g,"&lt;")
          .replace(/>/g,"&gt;")
          .replace(/\\\n/g,"\n")
          .replace(/\\\/g,"");
    }}
    x.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
    x.send("o=about&x="+a);
    return false;
  }
}
      </script>';
        return $this->t->list(['buf' => $buf]);
*/
    }
}

?>
{'fraction_non_alphanumeric': 0.19442119944211994, 'fraction_numerical': 0.020641562064156207, 'mean_word_length': 2.50880626223092, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 67, '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': '4300627', 'n_tokens_mistral': 1238, 'n_tokens_neox': 1176, 'n_words': 269}