<commit_before>'use strict';

var express = require('express')
  , config  = require('./config/config')
  , db      = require('./app/models');

var app = express();

require('./config/express')(app);

db.sequelize
  .sync({ force : true})
  /* .sync() */
  .complete(function(err) {
    if(err)
        throw err[0];
    else
        app.listen(process.env.PORT || 3000);
});

exports = module.exports = app;
<commit_msg>changed to complete syncronization to promises<commit_after>'use strict';

var express = require('express')
  , config  = require('./config/config')
  , db      = require('./app/models');

var app = express();

require('./config/express')(app);

db.sequelize
  /* .sync({ force : true}) */
  .sync()
  .then(function() {
        app.listen(process.env.PORT || 3000);
});

exports = module.exports = app;

{'fraction_non_alphanumeric': 0.19515151515151516, 'fraction_numerical': 0.01090909090909091, 'mean_word_length': 3.1717171717171717, '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': '6087769', 'n_tokens_mistral': 274, 'n_tokens_neox': 265, 'n_words': 57}