<commit_before>// module dependencies
// ----------------------------------------

var express = require('express');
var mongoose = require('mongoose');
var bodyParser = require('body-parser');
var morgan = require('morgan');
var path = require('path');



// server configuration
// ----------------------------------------

// creates an express framework app
var app = express();

// get the configuration file
var config = require('./config');

// set the environment variable
app.set('env', config.env);

// connect to the data base
mongoose.connect(config.database);

// use body parser to get data from post and/or url parameters
app.use(bodyParser.urlencoded({ extended: false }));
app.use(bodyParser.json());

// use morgan to log requests to the console
app.use(morgan('dev'));

// set the view engine to jade and specify the views directory
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'jade');



// all routes
// ----------------------------------------

// add the root routes with the prefix /
app.use('/', require('./controllers/root'));

// add the images routes with the prefix /images<commit_msg>Correct spelling of a comment<commit_after>// module dependencies
// ----------------------------------------

var express = require('express');
var mongoose = require('mongoose');
var bodyParser = require('body-parser');
var morgan = require('morgan');
var path = require('path');



// server configuration
// ----------------------------------------

// creates an express framework app
var app = express();

// get the configuration file
var config = require('./config');

// set the environment variable
app.set('env', config.env);

// connect to the database
mongoose.connect(config.database);

// use body parser to get data from post and/or url parameters
app.use(bodyParser.urlencoded({ extended: false }));
app.use(bodyParser.json());

// use morgan to log requests to the console
app.use(morgan('dev'));

// set the view engine to jade and specify the views directory
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'jade');



// all routes
// ----------------------------------------

// add the root routes with the prefix /
app.use('/', require('./controllers/root'));

// add the images routes with the prefix /images
{'fraction_non_alphanumeric': 0.23836450630709005, 'fraction_numerical': 0.0, 'mean_word_length': 2.5603715170278636, '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': '1701678', 'n_tokens_mistral': 584, 'n_tokens_neox': 581, 'n_words': 216}