<commit_before>'use strict';
var log = require('magic-log');

exports.render = {
  page: function renderPage(req, res, next) {
    var page     = ( req.params.page || 'index' )
      , app      = req.app
      , template = 'pages/' + page
      , pages    = app.get('pages') || []
      , data     = {}
      , views    = app.get('views')
    ;

    log('Rendering Page:', page, 'with template:', template);

    res.render(template, data, function (err, html) {
      if ( err ) { return next(err); }
      if ( ! html ) { return next();}
      res.send(html);
    });
  }<commit_msg>removed unneeded variables<commit_after>'use strict';
var log = require('magic-log');

exports.render = {
  page: function renderPage(req, res, next) {
    var page     = ( req.params.page || 'index' )
      , app      = req.app
      , template = 'pages/' + page
    ;
    log('magic-views', 'Rendering Page:', page);

    res.render(template, function (err, html) {
      if ( err ) { return next(err); }
      if ( ! html ) { return next();}
      res.send(html);
    });
  }
{'fraction_non_alphanumeric': 0.17685794920037629, 'fraction_numerical': 0.0, 'mean_word_length': 2.325, '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': '3030450', 'n_tokens_mistral': 350, 'n_tokens_neox': 344, 'n_words': 84}