<commit_before>import child_process from 'child_process';
import Config from '../lib/config';

export default function() {
  let config = Config.create();

  child_process.spawn('http-server', [
    config.get('path.destination'),
    '-p ' + config.get('server.port'),
    '-d',
    '-c-1'
  ], {
    stdio: 'inherit'
  });
}<commit_msg>use local copy of http-server when spinning up yarn serve<commit_after>import child_process from 'child_process';
import path from 'path';
import Config from '../lib/config';

export default function() {
  const config = Config.create();

  const httpServerPath = path.resolve(
    __dirname,
    '../node_modules/.bin/http-server'
  );

  child_process.spawn(httpServerPath, [
    config.get('path.destination'),
    '-p ' + config.get('server.port'),
    '-d',
    '-c-1'
  ], {
    stdio: 'inherit'
  });
}
{'fraction_non_alphanumeric': 0.17001180637544275, 'fraction_numerical': 0.0023612750885478157, 'mean_word_length': 3.4166666666666665, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3335870', 'n_tokens_mistral': 275, 'n_tokens_neox': 268, 'n_words': 62}