<commit_before>'use strict';

var fs        = require('fs');
var path      = require('path');
var Sequelize = require('sequelize');
require('sequelize-hierarchy')(Sequelize);
var basename  = path.basename(module.filename);
var env       = process.env.NODE_ENV || 'development';
var db        = {};

if (process.env.HEROKU_POSTGRESQL_PURPLE_URL) {
    // the application is executed on Heroku ... use the postgres database
    console.log('process.env.HEROKU_POSTGRESQL_BRONZE_URL: ', typeof process.env.HEROKU_POSTGRESQL_BRONZE_URL);
    sequelize = new Sequelize(process.env.HEROKU_POSTGRESQL_BRONZE_URL, {
      dialect:  'postgres',
      protocol: 'postgres'
    })
  } else {
  var config    = require(__dirname + '/../config/config.json')[env];
  var sequelize = new Sequelize(config.database, config.username, config.password, config);
}

fs
  .readdirSync(__dirname)<commit_msg>updated path<commit_after>'use strict';

var fs        = require('fs');
var path      = require('path');
var Sequelize = require('sequelize');
require('sequelize-hierarchy')(Sequelize);
var basename  = path.basename(module.filename);
var env       = process.env.NODE_ENV || 'development';
var db        = {};

if (process.env.HEROKU_POSTGRESQL_PURPLE_URL) {
    // the application is executed on Heroku ... use the postgres database
    console.log('process.env.HEROKU_POSTGRESQL_BRONZE_URL: ', typeof process.env.HEROKU_POSTGRESQL_PURPLE_URL);
    sequelize = new Sequelize(process.env.HEROKU_POSTGRESQL_PURPLE_URL, {
      dialect:  'postgres',
      protocol: 'postgres'
    })
  } else {
  var config    = require(__dirname + '/../config/config.json')[env];
  var sequelize = new Sequelize(config.database, config.username, config.password, config);
}

fs
  .readdirSync(__dirname)
{'fraction_non_alphanumeric': 0.13325804630152457, 'fraction_numerical': 0.0, 'mean_word_length': 4.034090909090909, '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': '5073305', 'n_tokens_mistral': 604, 'n_tokens_neox': 596, 'n_words': 114}