<commit_before>'use babel';

import {spawn} from 'child_process';
import {join, basename} from 'path';
import {CompositeDisposable} from 'atom';
import {create} from './file';
import {build} from './spec';
import reporter from './reporter';
import vm from 'vm';

import {allowUnsafeNewFunction} from 'loophole';
let test;
allowUnsafeNewFunction(function() {
  test = require('tape');
});

const commands = {'speck-runner:run': run};

function run() {
  let file;
  let specFile = create();
  let spec = build(specFile);
  allowUnsafeNewFunction(function() {
    file = require(specFile.name);
  });
  let sandbox = { file, test, reporter };
  let context = vm.createContext(sandbox);<commit_msg>removed unneeded imports<commit_after>'use babel';

import {join} from 'path';
import {CompositeDisposable} from 'atom';
import {create} from './file';
import {build} from './spec';
import reporter from './reporter';
import vm from 'vm';

import {allowUnsafeNewFunction} from 'loophole';
let test;
allowUnsafeNewFunction(function() {
  test = require('tape');
});

const commands = {'speck-runner:run': run};

function run() {
  let file;
  let specFile = create();
  let spec = build(specFile);
  allowUnsafeNewFunction(function() {
    file = require(specFile.name);
  });
  let sandbox = { file, test, reporter };
  let context = vm.createContext(sandbox);
{'fraction_non_alphanumeric': 0.1536189069423929, 'fraction_numerical': 0.0, 'mean_word_length': 5.159090909090909, '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': '4076890', 'n_tokens_mistral': 430, 'n_tokens_neox': 425, 'n_words': 126}