<commit_before>'use strict';

const levelco = require('level-co');
const memdown = require('memdown');
const model = require('../');

var attributes = {
  username: 'me',
  email: '<EMAIL>',
  password: '<PASSWORD>'
};
const properties = Object.keys(attributes);
const User = model.createMolde('User', properties);

<commit_msg>[improve] Create database reference and add static methods to model.<commit_after>'use strict';

const levelco = require('level-co');
const memdown = require('memdown');
const model = require('../');
const db = levelco.deferred(
  'db',
  {
    db: function (l) {
      return new (memdown)(l);
    }
  }
);

var attributes = {
  username: 'me',
  email: '<EMAIL>',
  password: '<PASSWORD>'
};
const properties = Object.keys(attributes);
const User = model.createModel('User', properties);
const access = {
  get: function *() { yield null; },
  put: function *() { yield null; },
  del: function *() { yield null; }
};

{'fraction_non_alphanumeric': 0.17932489451476794, 'fraction_numerical': 0.0, 'mean_word_length': 4.361581920903955, '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': '4579483', 'n_tokens_mistral': 297, 'n_tokens_neox': 295, 'n_words': 85}