<commit_before>import { readFileSync } from 'fs';
import { dirname } from 'path';
import { expect } from 'chai';
import Sequelize from 'sequelize';
import typescript from 'typescript';
import coffeescript from 'coffee-script';
import helper from '../helper';
import Migration from '../../src/migration';
import Umzug from '../../src/index';

describe('custom resolver', () => {
    beforeEach(function () {
        helper.clearTmp();
        this.storagePath = __dirname + '/../tmp/storage.sqlite';
        this.sequelize = new Sequelize('database', 'username', 'password', {
            dialect: 'sqlite',
            storage: this.storagePath,
            logging: false
        });

        this.umzug = () => {
            if (!this.path || !this.pattern) {
                throw new Error('patch and pattern must be defined');
            }
            return new Umzug({<commit_msg>chore: fix typo - 'patch' -> 'path'<commit_after>import { readFileSync } from 'fs';
import { dirname } from 'path';
import { expect } from 'chai';
import Sequelize from 'sequelize';
import typescript from 'typescript';
import coffeescript from 'coffee-script';
import helper from '../helper';
import Umzug from '../../src';

describe('custom resolver', () => {
    beforeEach(function () {
        helper.clearTmp();
        this.storagePath = __dirname + '/../tmp/storage.sqlite';
        this.sequelize = new Sequelize('database', 'username', 'password', {
            dialect: 'sqlite',
            storage: this.storagePath,
            logging: false
        });

        this.umzug = () => {
            if (!this.path || !this.pattern) {
                throw new Error('path and pattern must be defined');
            }
            return new Umzug({
{'fraction_non_alphanumeric': 0.14833906071019473, 'fraction_numerical': 0.0, 'mean_word_length': 2.432220039292731, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '3478095', 'n_tokens_mistral': 491, 'n_tokens_neox': 488, 'n_words': 137}