<commit_before>function()
{
  var app = $$(this).app;
  var box = this;
  var docid = this.parentNode.getAttribute("docid");
  app.db.openDoc(docid, {
      success: function(d)
      {
        if(box.checked)
        {
          d["status"] = "done";
        }
        else
        {
          d["status"] = "wip";
        }
        app.db.saveDoc(d, {
          success: function(r)
          {
            $('li[docid|="'+docid+'"]').slideUp("fast");
          }
        });
      }
  });
}
<commit_msg>implement "completed_at" tagging<commit_after>function()
{
  var app = $$(this).app;
  var box = this;
  var docid = this.parentNode.getAttribute("docid");
  app.db.openDoc(docid, {
      success: function(doc)
      {
        if(box.checked)
        {
          var d = new Date();
          var today = (d.getMonth() + 1) + "/" + d.getDate() + "/" + d.getFullYear();
          doc["completed_at"] = today;
          doc["status"] = "done";
        }
        else
        {
          doc["status"] = "wip";
          doc["completed_at"] = "";
        }
        app.db.saveDoc(doc, {
          success: function(r)
          {
            $('li[docid|="'+docid+'"]').slideUp("fast");
          }
        });
      }
  });
}

{'fraction_non_alphanumeric': 0.1886178861788618, 'fraction_numerical': 0.0008130081300813008, 'mean_word_length': 1.5486542443064182, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2493673', 'n_tokens_mistral': 418, 'n_tokens_neox': 417, 'n_words': 61}