<commit_before>'use strict'

var fs = require('fs')
var path = require('path')
var existFile = require('exists-file')

var minimistPath = path.join(__dirname, '..', 'node_modules', 'meow', 'node_modules', 'minimist')
var minimist = require(minimistPath)

var trimNewlinesPath = path.join(__dirname, '..', 'node_modules', 'meow', 'node_modules', 'trim-newlines')
var trimNewlines = require(trimNewlinesPath)

var FILENAME = 'worker-farm.opts'

function readConfig (filepath) {
  var yargs = process.argv.slice(2)
  if (yargs.length > 1) return yargs

  var filepath = path.resolve(yargs[0], FILENAME)<commit_msg>Add none yargs case<commit_after>'use strict'

var fs = require('fs')
var path = require('path')
var existFile = require('exists-file')

var minimistPath = path.join(__dirname, '..', 'node_modules', 'meow', 'node_modules', 'minimist')
var minimist = require(minimistPath)

var trimNewlinesPath = path.join(__dirname, '..', 'node_modules', 'meow', 'node_modules', 'trim-newlines')
var trimNewlines = require(trimNewlinesPath)

var FILENAME = 'worker-farm.opts'

function readConfig (filepath) {
  var yargs = process.argv.slice(2)
  if (yargs.length !== 1) return yargs

  var filepath = path.resolve(yargs[0], FILENAME)
{'fraction_non_alphanumeric': 0.15447154471544716, 'fraction_numerical': 0.004878048780487805, 'mean_word_length': 5.838888888888889, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '3338108', 'n_tokens_mistral': 429, 'n_tokens_neox': 415, 'n_words': 100}