<commit_before>'use strict';

var express = require('express'),
    fs = require('fs'),
    routes = require('./util/routes_util.js');

var app = express();
var endpoint = require('./config/endpoints.js').endpoints;

// app.all('/', function(req, res, next){
//     console.log('all!!!!!');
//     console.log(next);
//     next();
// }); 

require('./config/config_express.js').core(app,express);


routes.create(__dirname + endpoint.root.directory, endpoint.root.route, app, express.Router());
routes.create(__dirname + endpoint.api.v1.directory, endpoint.api.v1.route, app, express.Router());


app.listen(app.get("port"), function() {
    return console.log("Express server listening on port " + app.get("port"));
});<commit_msg>code organization improved<commit_after>'use strict';

var express = require('express'),
    routes = require('./util/routes_util.js'),
    endpoint = require('./config/endpoints.js').endpoints;
    
var app = express();
 

// app.all('/', function(req, res, next){
//     console.log('all!!!!!');
//     console.log(next);
//     next();
// }); 

require('./config/config_express.js').core(app,express);


routes.create(__dirname + endpoint.root.directory, endpoint.root.route, app, express.Router());
routes.create(__dirname + endpoint.api.v1.directory, endpoint.api.v1.route, app, express.Router());


app.listen(app.get("port"), function() {
    return console.log("Express server listening on port " + app.get("port"));
});
{'fraction_non_alphanumeric': 0.20944558521560575, 'fraction_numerical': 0.0027378507871321013, 'mean_word_length': 4.240143369175628, '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': '3693540', 'n_tokens_mistral': 446, 'n_tokens_neox': 445, 'n_words': 83}