<commit_before>'use strict';

var Promise = require('bluebird');
var _ = require('lodash');
var Sequelize = require('sequelize');

var sq_config = require('../sequelize-config');
sq_config.options.define.schema = 's03';
var sq = new Sequelize(sq_config.database, sq_config.username, sq_config.password, sq_config.options);

var models = {
  account: sq.define('account', {
    id: {
      type: Sequelize.UUID,
      defaultValue: Sequelize.UUIDV4,
      validate: {
        isUUID: 4
      },
      primaryKey: true
    },
    name: {
      type: Sequelize.STRING(255),
      allowNull: false,
      validate: {
        isDate: true,
      }
    },
    age: {
      type: Sequelize.INTEGER.UNSIGNED,
      allowNull: false,
      validate: {
        notEmpty: true,
      }
    }
  }, {
  })
};

function add_data() {
  return Promise.all([
    models.account.create({ name: '<NAME>', age: 19 }),
    models.account.create({ name: '<NAME>', age: 27 }),<commit_msg>03-find-array-not-objects - invalid name column validation removed<commit_after>'use strict';

var Promise = require('bluebird');
var _ = require('lodash');
var Sequelize = require('sequelize');

var sq_config = require('../sequelize-config');
sq_config.options.define.schema = 's03';
var sq = new Sequelize(sq_config.database, sq_config.username, sq_config.password, sq_config.options);

var models = {
  account: sq.define('account', {
    id: {
      type: Sequelize.UUID,
      defaultValue: Sequelize.UUIDV4,
      validate: {
        isUUID: 4
      },
      primaryKey: true
    },
    name: {
      type: Sequelize.STRING(255),
      allowNull: false
    },
    age: {
      type: Sequelize.INTEGER.UNSIGNED,
      allowNull: false,
      validate: {
        notEmpty: true,
      }
    }
  }, {
  })
};

function add_data() {
  return Promise.all([
    models.account.create({ name: '<NAME>', age: 19 }),
    models.account.create({ name: '<NAME>', age: 27 }),
{'fraction_non_alphanumeric': 0.15253360910031025, 'fraction_numerical': 0.012409513960703205, 'mean_word_length': 2.786692759295499, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3433319', 'n_tokens_mistral': 656, 'n_tokens_neox': 650, 'n_words': 134}