<commit_before>// std
import { notStrictEqual, ok, strictEqual } from 'assert';

// 3p
import { createConnection, Entity, getConnection, getManager } from 'typeorm';

// FoalTS
import { Group, Permission, UserWithPermissions } from '../entities';
import { fetchUserWithPermissions } from './fetch-user-with-permissions.util';

function testSuite(type: 'mysql' | 'mariadb' | 'postgres' | 'sqlite') {

  describe(`with ${type}`, () => {

    @Entity()
    class User extends UserWithPermissions { }

    let user: User;

    before(async () => {
      switch (type) {
        case 'mysql':
        case 'mariadb':
          await createConnection({
            database: 'test',
            dropSchema: true,<commit_msg>[Github Page] Increase mocha timeout<commit_after>// std
import { notStrictEqual, ok, strictEqual } from 'assert';

// 3p
import { createConnection, Entity, getConnection, getManager } from 'typeorm';

// FoalTS
import { Group, Permission, UserWithPermissions } from '../entities';
import { fetchUserWithPermissions } from './fetch-user-with-permissions.util';

function testSuite(type: 'mysql' | 'mariadb' | 'postgres' | 'sqlite') {

  describe(`with ${type}`, () => {

    @Entity()
    class User extends UserWithPermissions { }

    let user: User;

    before(async function() {
      switch (type) {
        case 'mysql':
        case 'mariadb':
          // Increase timeout to make the test pass on Github Actions VM.
          this.timeout(4000);
          await createConnection({
            database: 'test',
            dropSchema: true,
{'fraction_non_alphanumeric': 0.13456632653061223, 'fraction_numerical': 0.003826530612244898, 'mean_word_length': 3.033419023136247, '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': '16520', 'n_tokens_mistral': 463, 'n_tokens_neox': 453, 'n_words': 128}