<commit_before>import knexModule from 'knex';
import bookshelfModule from 'bookshelf';

const bookshelf = function(bookshelfObj) {
  bookshelfObj.knex.schema.hasTable('users').then((exist) => {
    if (!exist) {
      bookshelfObj.knex.schema.createTableIfNotExists('users', (table) => {
        table.increments();
        table.string('email').notNullable().unique().index();
        table.string('first_name').notNullable();
        table.string('last_name').notNullable();
        table.string('phone_number').notNullable();
        table.string('password_hash').notNullable();
        table.boolean('is_admin').defaultTo(false);
        table.boolean('is_banned').defaultTo(false);
        table.boolean('is_active').defaultTo(true);
        table.timestamp('date_created').defaultTo(knex.fn.now());
        table.timestamp('date_updated').defaultTo(knex.fn.now());
      }).then(() => {
        console.log(('Created users table'));
      });
    }
  });
}

export default bookshelf;
<commit_msg>Removed double quotes<commit_after>import knexModule from 'knex';
import bookshelfModule from 'bookshelf';

const bookshelf = function(bookshelfObj) {
  bookshelfObj.knex.schema.hasTable('users').then((exist) => {
    if (!exist) {
      bookshelfObj.knex.schema.createTableIfNotExists('users', (table) => {
        table.increments();
        table.string('email').notNullable().unique().index();
        table.string('first_name').notNullable();
        table.string('last_name').notNullable();
        table.string('phone_number').notNullable();
        table.string('password_hash').notNullable();
        table.boolean('is_admin').defaultTo(false);
        table.boolean('is_banned').defaultTo(false);
        table.boolean('is_active').defaultTo(true);
        table.timestamp('date_created').defaultTo(knex.fn.now());
        table.timestamp('date_updated').defaultTo(knex.fn.now());
      }).then(() => {
        console.log('Created users table');
      });
    }
  });
}

export default bookshelf;

{'fraction_non_alphanumeric': 0.17512437810945275, 'fraction_numerical': 0.0, 'mean_word_length': 3.731764705882353, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '575593', 'n_tokens_mistral': 599, 'n_tokens_neox': 582, 'n_words': 70}