<commit_before>/**
 * Module dependencies.
 */
var express     = require('express');
var fs          = require('fs');

/**
 * Main application entry file.
 * Please note that the order of loading is important.
 */

// Load Configurations

var env             = process.env.NODE_ENV = process.env.NODE_ENV || 'development';
var config          = require('./config/config');
var auth            = require('./config/middlewares/authorization');
var db              = require('./config/sequelize');
var passport        = require('./config/passport');

var app = express();

//Initialize Express
require('./config/express')(app, passport, db);

//Initialize Routes
require('./config/routes').init(app, passport, auth);

//db.sequelize.query('DROP TABLE Sessions');

//Start the app by listening on <port>
var port = process.env.PORT || config.port;

if(typeof config.ip !== 'undefined')
    app.listen(port, config.ip);
else
    app.listen(port);

console.log('Express app started on port ' + port);

db.Klass.findAll({include: [db.Category, db.User]}).success(function(ks){
    db.sequelize.query('select * from transactions').success(function(ts){
        _.each(ts, function(t){
            _.each(ks, function (k) {
                if(k.name != t.class) return;
                
                _.each(k.categories, function(c){
                    if(c.name != t.category) return;
                    <commit_msg>transaction db transfaer query added<commit_after>/**
 * Module dependencies.
 */
var express     = require('express');
var fs          = require('fs');

/**
 * Main application entry file.
 * Please note that the order of loading is important.
 */

// Load Configurations

var env             = process.env.NODE_ENV = process.env.NODE_ENV || 'development';
var config          = require('./config/config');
var auth            = require('./config/middlewares/authorization');
var db              = require('./config/sequelize');
var passport        = require('./config/passport');

var app = express();

//Initialize Express
require('./config/express')(app, passport, db);

//Initialize Routes
require('./config/routes').init(app, passport, auth);

//db.sequelize.query('DROP TABLE Sessions');

//Start the app by listening on <port>
var port = process.env.PORT || config.port;

if(typeof config.ip !== 'undefined')
    app.listen(port, config.ip);
else
    app.listen(port);

console.log('Express app started on port ' + port);

var _ = require('lodash');
db.Klass.findAll({include: [db.Category, db.User]}).success(function(ks){
    db.sequelize.query('select * from transactions').success(function(ts){
        _.each(ts, function(t){
            _.each(ks, function (k) {
                if(k.name != t.class) return;
                
                _.each(k.categories, function(c){
                    if(c.name != t.category) return;
                    
{'fraction_non_alphanumeric': 0.15577190542420027, 'fraction_numerical': 0.0, 'mean_word_length': 2.600750938673342, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7157212', 'n_tokens_mistral': 827, 'n_tokens_neox': 813, 'n_words': 206}