<commit_before>import test from 'ava';
import moment from 'moment';
import Promise from 'bluebird';
import sutils from '../lib/schedule/utils';
import putils from '../lib/utils';
import utils from './fixtures/_utils';
import db from '../lib/database';

const items = utils.generate();
const length = items.content.length;
const count = Math.floor(Math.random() * length);

test('Setup', t => {
  const item = count;
  const revision = items.content[item];
<commit_msg>:crystal_ball: Init database before running schedule<commit_after>import test from 'ava';
import moment from 'moment';
import Promise from 'bluebird';
import sutils from '../lib/schedule/utils';
import putils from '../lib/utils';
import utils from './fixtures/_utils';
import db from '../lib/database';

const items = utils.generate();
const length = items.content.length;
const count = Math.floor(Math.random() * length);

test.before(() => {
  return db.init();
});

test('Setup', t => {
  const item = count;
  const revision = items.content[item];

{'fraction_non_alphanumeric': 0.1568627450980392, 'fraction_numerical': 0.0, 'mean_word_length': 4.640883977900552, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '1954078', 'n_tokens_mistral': 292, 'n_tokens_neox': 294, 'n_words': 100}