<commit_before>import { Client } from '../lib';

import * as assert from 'power-assert';
import * as fs from 'fs-extra-promise';
import * as tmp from 'temp-fs';


export function runCommonTests(client: Client) {
	function dateToString(d: Date) {
		return d && `${d.getFullYear()}-${d.getMonth() + 1}-${d.getDate()}`;
	}

	function timeToString(d: Date) {
		return d && `${d.getHours()}:${d.getMinutes()}:${d.getSeconds()}.${d.getMilliseconds()}`;
	}

	function dateTimeToString(d: Date) {
		return d && `${dateToString(d)} ${timeToString(d)}`;
	}


	describe('node-firebird-driver-native', function() {
		let tmpDir: string;
<commit_msg>Misc.<commit_after>import { Client } from '../lib';

import * as assert from 'power-assert';
import * as fs from 'fs-extra-promise';
import * as tmp from 'temp-fs';


export function runCommonTests(client: Client) {
	function dateToString(d: Date) {
		return d && `${d.getFullYear()}-${d.getMonth() + 1}-${d.getDate()}`;
	}

	function timeToString(d: Date) {
		return d && `${d.getHours()}:${d.getMinutes()}:${d.getSeconds()}.${d.getMilliseconds()}`;
	}

	function dateTimeToString(d: Date) {
		return d && `${dateToString(d)} ${timeToString(d)}`;
	}


	describe('node-firebird-driver', function() {
		let tmpDir: string;

{'fraction_non_alphanumeric': 0.20810166799046861, 'fraction_numerical': 0.0015885623510722795, 'mean_word_length': 4.8604651162790695, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2438258', 'n_tokens_mistral': 462, 'n_tokens_neox': 449, 'n_words': 96}