<commit_before>'use strict'

const cli = require('../index.js')
const stream = require('stream')

module.exports = function jspath (strings, values) {
  const params = [].concat.apply([], strings.map(x => x.replace(/'/g, '').split(' ')))

  if (!~params.indexOf('jspath')) throw new Error('Needs to emulate a call to jspath.')

  const filter = ['|', 'jspath', 'cat', 'echo']
  const argv = params.filter(x => x && !~filter.indexOf(x))

  let stdoutContent = ''
  let stderrContent = ''

  const stdin = new stream.Readable()
  stdin.readable = true
  stdin.destroy = () => {}
  values && stdin.push(values)
  stdin.push(null)
  const stdout = new stream.Writable({<commit_msg>Standard fixes<commit_after>'use strict'

const cli = require('../index.js')
const stream = require('stream')

module.exports = function jspath (strings, values) {
  const params = [].concat.apply([], strings.map((x) => x.replace(/'/g, '').split(' ')))

  if (!~params.indexOf('jspath')) throw new Error('Needs to emulate a call to jspath.')

  const filter = ['|', 'jspath', 'cat', 'echo']
  const argv = params.filter((x) => x && !~filter.indexOf(x))

  let stdoutContent = ''
  let stderrContent = ''

  const stdin = new stream.Readable()
  stdin.readable = true
  stdin.destroy = () => {}
  values && stdin.push(values)
  stdin.push(null)
  const stdout = new stream.Writable({
{'fraction_non_alphanumeric': 0.19131714495952906, 'fraction_numerical': 0.0, 'mean_word_length': 4.074626865671642, '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': '3182633', 'n_tokens_mistral': 467, 'n_tokens_neox': 453, 'n_words': 116}