<commit_before>var app = require('express')();
var http = require('http').Server(app);
var consolidate = require('consolidate');

// Server IP
app.set(
  'ip'
, process.env.OPENSHIFT_NODEJS_IP
  || process.env.IP
  || '127.0.0.1'
);

// Server Port
app.set(
  'port'
, process.env.OPENSHIFT_NODEJS_PORT
  || process.env.PORT
  || '3000'
);

// View Engine
app.engine('hjs', consolidate.hogan);
app.set('view engine', 'hjs');
app.set('views', path.join(__dirname, '/views'));

// Loading routes
app.use('/', require('./routes/home'));


http.listen(app.get('port'), app.get('ip'), function() {
  console.log("Server listening on " + app.get('ip') + ":" + app.get('port'));
  return;
});<commit_msg>Set static directory.<commit_after>var express = require('express');
var app = express();
var http = require('http').Server(app);
var consolidate = require('consolidate');

// Server IP
app.set(
  'ip'
, process.env.OPENSHIFT_NODEJS_IP
  || process.env.IP
  || '127.0.0.1'
);

// Server Port
app.set(
  'port'
, process.env.OPENSHIFT_NODEJS_PORT
  || process.env.PORT
  || '3000'
);

// Static Directory
app.use(express.static(path.join(__dirname, '/public')));

// View Engine
app.engine('hjs', consolidate.hogan);
app.set('view engine', 'hjs');
app.set('views', path.join(__dirname, '/views'));

// Loading routes
app.use('/', require('./routes/home'));


http.listen(app.get('port'), app.get('ip'), function() {
  console.log("Server listening on " + app.get('ip') + ":" + app.get('port'));
  return;
});
{'fraction_non_alphanumeric': 0.22539893617021275, 'fraction_numerical': 0.013297872340425532, 'mean_word_length': 4.452898550724638, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '3759574', 'n_tokens_mistral': 550, 'n_tokens_neox': 535, 'n_words': 101}