<commit_before>
# For starting the runtime used in test
try
  child_process = require 'child_process'
catch err
  return

common = require './common'
debug = require('debug')('fbp-spec:subprocess')

exports.start = (command, options, callback) ->
  options.timeout = 2000 if not options.timeout?

  started = false
  stderr = ""
  stdout = ""

  # FIXME: using sh to interpret command will Unix-specific
  prog = 'sh'
  args = [ '-c', command ]
  child = child_process.spawn prog, args

  debug 'spawned', "'#{prog} #{args.join(' ')}'"<commit_msg>subprocess: Default timeout higher<commit_after>
# For starting the runtime used in test
try
  child_process = require 'child_process'
catch err
  return

common = require './common'
debug = require('debug')('fbp-spec:subprocess')

exports.start = (command, options, callback) ->
  options.timeout = 4000 if not options.timeout?

  started = false
  stderr = ""
  stdout = ""

  # FIXME: using sh to interpret command will Unix-specific
  prog = 'sh'
  args = [ '-c', command ]
  child = child_process.spawn prog, args

  debug 'spawned', "'#{prog} #{args.join(' ')}'"
{'fraction_non_alphanumeric': 0.13721973094170403, 'fraction_numerical': 0.007174887892376682, 'mean_word_length': 3.982142857142857, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3475875', 'n_tokens_mistral': 366, 'n_tokens_neox': 343, 'n_words': 111}