<commit_before>#= require sinon
#= require application
#= require_tree ./support
#= require_tree ./factories

mocha.ui('bdd')
mocha.globals(['Ember', 'DS', 'App', 'MD5'])
mocha.timeout(0)
chai.Assertion.includeStack = true

# Useful for placing local test vars
window.Test ||= {}

# Shorthand
window.T = Test

# Shorthand for Yossarian
window.App = Yossarian

# Ember lookup
window.helper =
  container: Yossarian.__container__

  lookup: (name) ->
    name = "#{name}:main" unless name.match(':')

    helper.container.lookup(name)

# I want Chai to include stacktraces
ENV =
  TESTING: true

# Keep App in Konacha Iframe
Konacha.reset = Ember.K

# Avoid changes on the browser's URL
App.Router.reopen location: 'none'

# Prevent automatic scheduling of runloops. For tests, we
# want to have complete control of runloops.
Ember.testing = true

# Setup Ember test environment
App.setupForTesting()
App.injectTestHelpers()

Ember.Test.adapter       = Ember.Test.MochaAdapter.create()
Ember.ApplicationAdapter = DS.FixtureAdapter.create()

$.fx.off = true

# Setup
beforeEach (done) ->
  # Global store shorthand
  window.store = helper.lookup 'store:main'

  Factory.EmberStoreDriver.store = store

  Factory.driver = Factory.EmberStoreDriver

  # Fake XHR with Sinon
  window.server = sinon.fakeServer.create()

  # Reset all test variables
  window.Test = {}

  try
    Ember.run(App, App.advanceReadiness)
  catch error
    console.error("Error during example teardown: #{Ember.inspect(error)}")

  Ember.run -> done()

afterEach ->
  # Reset App
  try
    Ember.run -> App.reset()
  catch error
    console.error("Error during example teardown: #{Ember.inspect(error)}")
<commit_msg>Do not initialize Ember app<commit_after>#= require sinon
#= require application
#= require_tree ./support
#= require_tree ./factories

mocha.ui('bdd')
mocha.globals(['Ember', 'DS', 'App', 'MD5'])
mocha.timeout(0)
chai.Assertion.includeStack = true

# Useful for placing local test vars
window.Test ||= {}

# Shorthand
window.T = Test

# Shorthand for Yossarian
window.App = Yossarian

# Ember lookup
window.helper =
  container: Yossarian.__container__

  lookup: (name) ->
    name = "#{name}:main" unless name.match(':')

    helper.container.lookup(name)

# I want Chai to include stacktraces
ENV =
  TESTING: true

# Keep App in Konacha Iframe
Konacha.reset = Ember.K

# Avoid changes on the browser's URL
App.Router.reopen location: 'none'

# Prevent automatic scheduling of runloops. For tests, we
# want to have complete control of runloops.
Ember.testing = true

# Setup Ember test environment
App.setupForTesting()
App.injectTestHelpers()

Ember.Test.adapter       = Ember.Test.MochaAdapter.create()
Ember.ApplicationAdapter = Ember.Test.MochaAdapter.create()

$.fx.off = true

# Setup
beforeEach (done) ->
  # Global store shorthand
  window.store = helper.lookup 'store:main'

  Factory.EmberStoreDriver.store = store

  Factory.driver = Factory.EmberStoreDriver

  # Fake XHR with Sinon
  window.server = sinon.fakeServer.create()

  # Reset all test variables
  window.Test = {}

  try
    # Ember.run(App, App.advanceReadiness)
  catch error
    console.error("Error during example setup: #{Ember.inspect(error)}")

  Ember.run -> done()

afterEach ->
  # Reset App
  try
    # Ember.run -> App.reset()
  catch error
    console.error("Error during example teardown: #{Ember.inspect(error)}")

{'fraction_non_alphanumeric': 0.11929307805596466, 'fraction_numerical': 0.00117820324005891, 'mean_word_length': 4.008849557522124, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '3297527', 'n_tokens_mistral': 1150, 'n_tokens_neox': 1114, 'n_words': 298}