<commit_before>const fs = require('fs')
const path = require('path')
const { Application } = require('probot')
const plugin = require('..')

const loadDiff = exports.loadDiff = filename => {
  return Promise.resolve({
    data: fs.readFileSync(path.join(__dirname, 'fixtures', 'diffs', filename + '.txt'), 'utf8'),
    headers: { 'content-length': 1 }
  })
}

exports.loadConfig = filename => {
  return Promise.resolve({
    data: {
      content: Buffer.from(fs.readFileSync(path.join(__dirname, 'fixtures', 'configs', filename + '.yml'), 'utf8'))
    }
  })
}

exports.gimmeApp = () => {
  const logger = {
    trace: jest.fn(),
    debug: jest.fn(),
    info: jest.fn(),<commit_msg>Fix borked config helper<commit_after>const fs = require('fs')
const path = require('path')
const { Application } = require('probot')
const plugin = require('..')

const loadDiff = exports.loadDiff = filename => {
  return Promise.resolve({
    data: fs.readFileSync(path.join(__dirname, 'fixtures', 'diffs', filename + '.txt'), 'utf8'),
    headers: { 'content-length': 1 }
  })
}

exports.loadConfig = filename => {
  return Promise.resolve({
    data: {
      content: fs.readFileSync(path.join(__dirname, 'fixtures', 'configs', filename + '.yml'), 'base64')
    }
  })
}

exports.gimmeApp = () => {
  const logger = {
    trace: jest.fn(),
    debug: jest.fn(),
    info: jest.fn(),
{'fraction_non_alphanumeric': 0.18731778425655976, 'fraction_numerical': 0.00510204081632653, 'mean_word_length': 3.78397212543554, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '1951818', 'n_tokens_mistral': 451, 'n_tokens_neox': 443, 'n_words': 100}