<commit_before>require('colors');

var express = require('express'),
  app = express(),
  path = require('path');

app
  .disable('x-powered-by')
  .engine('html', require('ejs').renderFile)  
  
  .set('view engine', 'html')
  .set('port', process.env.PORT || 3001)
  .set('views', __dirname + '/views')
  
  .use(express.favicon())
  .use(express.logger('tiny'))
  .use(express.static(path.join(__dirname, 'public')))
  .use(express.bodyParser())
  .use(express.methodOverride())
  .use(express.cookieParser())
  .use(app.router);

app.get('/', function(req, res){
  res.render('index');
});

//stub routes
app.get('/views/:templateName', function(req, res) {
  console.log('view changed to: ' + req.params.templateName.green);
  res.render(req.params.templateName);
});

app.get('/test', function(req, res) {
  res.send({
    '3': [{
      id: '1',
      title: 'CSS features',
      location: 'k1-3 215',
      author: {
        id: 'tester',
        firstName: 'Sergey',<commit_msg>make use static more readable<commit_after>require('colors');

var express = require('express'),
  app = express(),
  path = require('path');

app
  .disable('x-powered-by')
  .engine('html', require('ejs').renderFile)  
  
  .set('view engine', 'html')
  .set('port', process.env.PORT || 3001)
  .set('views', __dirname + '/views')
  
  .use(express.favicon())
  .use(express.logger('tiny'))
  .use(express.static('public'))
  .use(express.bodyParser())
  .use(express.methodOverride())
  .use(express.cookieParser())
  .use(app.router);

app.get('/', function(req, res){
  res.render('index');
});

//stub routes
app.get('/views/:templateName', function(req, res) {
  console.log('view changed to: ' + req.params.templateName.green);
  res.render(req.params.templateName);
});

app.get('/test', function(req, res) {
  res.send({
    '3': [{
      id: '1',
      title: 'CSS features',
      location: 'k1-3 215',
      author: {
        id: 'tester',
        firstName: 'Sergey',
{'fraction_non_alphanumeric': 0.21443089430894308, 'fraction_numerical': 0.011178861788617886, 'mean_word_length': 3.632941176470588, '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': '5843626', 'n_tokens_mistral': 702, 'n_tokens_neox': 690, 'n_words': 124}