<commit_before>'use strict'

let dotenv = require('dotenv')
let knex = require('knex')

// Load environment variables from .env file
dotenv.load()

let connection = knex({
  client: 'mysql2',
  connection: {
    host: process.env.DB_HOST,
    user: process.env.DB_USER,
    password: <PASSWORD>,
    database: process.env.DB_NAME,
    port: process.env.DB_PORT
  }
})

module.exports = connection<commit_msg>Starting test fixture<commit_after>'use strict'

let dotenv = require('dotenv')
let knex = require('knex')

// Load environment variables from .env file
dotenv.load()

let connection

if (process.env.NODE_ENV === 'test') {
  connection = {}
} else {
  connection = knex({
    client: 'mysql2',
    connection: {
      host: process.env.DB_HOST,
      user: process.env.DB_USER,
      password: <PASSWORD>,
      database: process.env.DB_NAME,
      port: process.env.DB_PORT
    }
  })
}


module.exports = connection
{'fraction_non_alphanumeric': 0.13405405405405404, 'fraction_numerical': 0.002162162162162162, 'mean_word_length': 3.451923076923077, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4699016', 'n_tokens_mistral': 308, 'n_tokens_neox': 305, 'n_words': 73}