<commit_before>'use strict';

const Sequelize = require('sequelize');

const sequelize = new Sequelize({ url: process.env.DATABASE_URL, dialect: 'postgres', logging: false });

sequelize.authenticate().catch(() => {
  process.exit(1);
});

sequelize
  .query('DROP TABLE people;')
  .then(() => {
    console.log('Table dropped!');
    sequelize<commit_msg>Print message if can't connect to DB<commit_after>'use strict';

const Sequelize = require('sequelize');

const sequelize = new Sequelize({ url: process.env.DATABASE_URL, dialect: 'postgres', logging: false });

sequelize.authenticate().catch(error => {
  console.log("Can't connect to database", error);
  process.exit(1);
});

sequelize
  .query('DROP TABLE people;')
  .then(() => {
    console.log('Table dropped!');
    sequelize
{'fraction_non_alphanumeric': 0.1706700379266751, 'fraction_numerical': 0.0025284450063211127, 'mean_word_length': 5.0458015267175576, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1728145', 'n_tokens_mistral': 265, 'n_tokens_neox': 258, 'n_words': 60}