<commit_before>function(doc, req) {
  var mustache = require("lib/mustache"),
      debug = ('debug' in req.query
          ? req.query.debug === 'true' || req.query.debug === "1"
          : false),
      mustache_view = {
        page: doc,
        active: doc._id,
        is_active: function() {
          return function (param) {
            if (param == this.active) {
              return 'active';
            }
          }
        },
        site: {
          base_url: '/' + req.path.slice(0,3).join('/') + '/_rewrite/'
        },
        req: (debug ? JSON.stringify(req, null, '\t') : '')
      };

  return mustache.to_html(this.templates.html, mustache_view);
}<commit_msg>removed _rewrite as base url<commit_after>function(doc, req) {
  var mustache = require("lib/mustache"),
      debug = ('debug' in req.query
          ? req.query.debug === 'true' || req.query.debug === "1"
          : false),
      mustache_view = {
        page: doc,
        active: doc._id,
        is_active: function() {
          return function (param) {
            if (param == this.active) {
              return 'active';
            }
          }
        },
        site: {
          /*base_url: '/' + req.path.slice(0,3).join('/') + '/_rewrite/'*/
        },
        req: (debug ? JSON.stringify(req, null, '\t') : '')
      };

  return mustache.to_html(this.templates.html, mustache_view);
}
{'fraction_non_alphanumeric': 0.16917562724014337, 'fraction_numerical': 0.004301075268817204, 'mean_word_length': 1.7106796116504854, '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': '5471531', 'n_tokens_mistral': 437, 'n_tokens_neox': 434, 'n_words': 86}