<commit_before>var express = require('express');
var path = require('path');
var logger = require('morgan');
var session = require('express-session');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
//= DATABASE_REQUIRE
//= PASSPORT_REQUIRE
//= SASS_MIDDLEWARE_REQUIRE
//= LESS_MIDDLEWARE_REQUIRE

var app = express();
//= DATABASE_CONNECTION
//= TEMPLATE_ENGINE

app.set('port', process.env.PORT || 3000);
//= SASS_MIDDLEWARE
//= LESS_MIDDLEWARE
app.use(logger('dev'));
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
app.use(cookieParser());
app.use(session({
  secret: 'keyboard cat',
  resave: true,
  saveUninitialized: true
}));
//= PASSPORT_MIDDLEWARE
app.use(express.static(path.join(__dirname, 'public')));
//= BASE_ROUTE

// development error handler
if (app.get('env') === 'development') {
  app.use(function(err, req, res, next) {
    res.status(err.status || 500);
    // TODO: replace if no template engine provided
    // TODO: need to replace for other engines?
    res.render('error', {
      message: err.message,
      error: err
    });
  });
}

// production error handler
app.use(function(err, req, res, next) {
  res.status(err.status || 500);
  res.render('error', {
    message: err.message,
    error: {}
  });
});

app.listen(app.get('port'), function() {
  console.log('Express server listening on port ' + app.get('port'));
});
<commit_msg>Use just a single template string CSS_PREPROCESSOR<commit_after>var express = require('express');
var path = require('path');
var logger = require('morgan');
var session = require('express-session');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
//= DATABASE_REQUIRE
//= PASSPORT_REQUIRE
//= CSS_PREPROCESSOR_MIDDLEWARE_REQUIRE

var app = express();
//= DATABASE_CONNECTION
//= TEMPLATE_ENGINE

app.set('port', process.env.PORT || 3000);
//= CSS_PREPROCESSOR_MIDDLEWARE
app.use(logger('dev'));
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
app.use(cookieParser());
app.use(session({
  secret: 'keyboard cat',
  resave: true,
  saveUninitialized: true
}));
//= PASSPORT_MIDDLEWARE
app.use(express.static(path.join(__dirname, 'public')));
//= BASE_ROUTE

// development error handler
if (app.get('env') === 'development') {
  app.use(function(err, req, res, next) {
    res.status(err.status || 500);
    // TODO: replace if no template engine provided
    // TODO: need to replace for other engines?
    res.render('error', {
      message: err.message,
      error: err
    });
  });
}

// production error handler
app.use(function(err, req, res, next) {
  res.status(err.status || 500);
  res.render('error', {
    message: err.message,
    error: {}
  });
});

app.listen(app.get('port'), function() {
  console.log('Express server listening on port ' + app.get('port'));
});

{'fraction_non_alphanumeric': 0.17836156239198064, 'fraction_numerical': 0.0069132388524023505, 'mean_word_length': 4.450094161958568, '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': '6252939', 'n_tokens_mistral': 999, 'n_tokens_neox': 981, 'n_words': 208}