<commit_before>"use strict";
var Promise = require('bluebird');
var app = {};
app.rootDir = __dirname;

app.config = require('config');

//Logging
var Log = require('logfilename');
app.log = new Log(app.config.log);
var log = require('logfilename')(__filename);

var SchemaValidator = require('jsonschema').Validator;
app.schemaValidator = new SchemaValidator();

app.utils = require(__dirname + '/lib/utils')(app);
app.error = app.utils.error;


app.data = require(__dirname + '/lib/data')(app);

app.plugins = require('./plugins/')(app);

app.http = require(__dirname + '/lib/http')(app);
app.server = require(__dirname + '/lib/server.js')(app);
app.socketio = require('./lib/socketio')(app, app.server);
app.schemaPath = (__dirname + '/../spec/src/');
app.api = require(__dirname + '/lib/api')(app);
app.error = app.utils.error;

var plugins = [
  app.data,
  app.server
];

app.start = function() {
  log.info("start");<commit_msg>add log option<commit_after>"use strict";
var Promise = require('bluebird');
var app = {};
app.rootDir = __dirname;

app.config = require('config');

//Logging

var logOptions = {
  console: {
    level: 'info',
    timestamp: true,
    colorize: true
  }
};

var log = require('logfilename')(__filename, logOptions);

var SchemaValidator = require('jsonschema').Validator;
app.schemaValidator = new SchemaValidator();

app.utils = require(__dirname + '/lib/utils')(app);
app.error = app.utils.error;


app.data = require(__dirname + '/lib/data')(app);

app.plugins = require('./plugins/')(app);

app.http = require(__dirname + '/lib/http')(app);
app.server = require(__dirname + '/lib/server.js')(app);
app.socketio = require('./lib/socketio')(app, app.server);
app.schemaPath = (__dirname + '/../spec/src/');
app.api = require(__dirname + '/lib/api')(app);
app.error = app.utils.error;

var plugins = [
  app.data,
  app.server
];

app.start = function() {
  log.info("start");
{'fraction_non_alphanumeric': 0.19958202716823406, 'fraction_numerical': 0.0, 'mean_word_length': 4.6158357771261, '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': '7078241', 'n_tokens_mistral': 634, 'n_tokens_neox': 633, 'n_words': 127}