<commit_before>fs = require 'fs-plus'
path = require 'path'
remote = require 'remote'
app = remote.require 'app'

@pkgJson = require 'package.json'

# Start the crash reporter before anything else.
require('crash-reporter').start(productName: @pkgJson.name, companyName: 'atom-shell-starter')

if global.loadSettings.exitWhenDone
  jasmineFn = require 'jasmine'
  jasmineFn(global.jasmine)

  reporter = new jasmineFn.ConsoleReporter
    print: (str) ->
      process.stdout.write(str)
    onComplete: (allPassed) ->
      app.exit(if allPassed then 0 else 1)

  jasmineEnv = jasmine.getEnv()
  jasmineEnv.addReporter(reporter)

  for specFilePath in fs.listTreeSync('spec/') when /-spec\.(coffee|js)$/.test specFilePath
    require specFilePath

  jasmineEnv.execute()
else
  link = document.createElement 'link'
  link.rel = 'stylesheet'
  link.href = '../vendor/jasmine/lib/jasmine-2.1.3/jasmine.css'
  document.head.appendChild link

  window.jasmineRequire = require '../vendor/jasmine/lib/jasmine-2.1.3/jasmine'
  require '../vendor/jasmine/lib/jasmine-2.1.3/jasmine-html'
  require '../vendor/jasmine/lib/jasmine-2.1.3/boot'

  for specFilePath in fs.listTreeSync('spec/') when /-spec\.(coffee|js)$/.test specFilePath
    require specFilePath

  window.jasmineExecute()<commit_msg>apm test use .spec.coffee files<commit_after>fs = require 'fs-plus'
path = require 'path'
remote = require 'remote'
app = remote.require 'app'

@pkgJson = require 'package.json'

# Start the crash reporter before anything else.
require('crash-reporter').start(productName: @pkgJson.name, companyName: 'atom-shell-starter')

if global.loadSettings.exitWhenDone
  jasmineFn = require 'jasmine'
  jasmineFn(global.jasmine)

  reporter = new jasmineFn.ConsoleReporter
    print: (str) ->
      process.stdout.write(str)
    onComplete: (allPassed) ->
      app.exit(if allPassed then 0 else 1)

  jasmineEnv = jasmine.getEnv()
  jasmineEnv.addReporter(reporter)

  for specFilePath in fs.listTreeSync('spec/') when /\.spec\.(coffee|js)$/.test specFilePath
    require specFilePath

  jasmineEnv.execute()
else
  link = document.createElement 'link'
  link.rel = 'stylesheet'
  link.href = '../vendor/jasmine/lib/jasmine-2.1.3/jasmine.css'
  document.head.appendChild link

  window.jasmineRequire = require '../vendor/jasmine/lib/jasmine-2.1.3/jasmine'
  require '../vendor/jasmine/lib/jasmine-2.1.3/jasmine-html'
  require '../vendor/jasmine/lib/jasmine-2.1.3/boot'

  for specFilePath in fs.listTreeSync('spec/') when /\.spec\.(coffee|js)$/.test specFilePath
    require specFilePath

  window.jasmineExecute()
{'fraction_non_alphanumeric': 0.137904468412943, 'fraction_numerical': 0.01078582434514638, 'mean_word_length': 3.984644913627639, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7430557', 'n_tokens_mistral': 931, 'n_tokens_neox': 861, 'n_words': 175}