<commit_before>global.expect = require('chai').use(require('sinon-chai')).expect
{Kakashi} = require 'kakashi'

beforeEach ->
  @kakashi = new Kakashi(httpd: false)

afterEach (done) ->
  @kakashi.stop().then(done, done)<commit_msg>add sinon create & restore<commit_after>global.expect = require('chai').use(require('sinon-chai')).expect
sinon = require 'sinon'
{Kakashi} = require 'kakashi'

beforeEach ->
  @kakashi = new Kakashi(httpd: false)
  @sinon = sinon.sandbox.create()

afterEach (done) ->
  @sinon.restore()
  @kakashi.stop().then(done, done)
{'fraction_non_alphanumeric': 0.17689530685920576, 'fraction_numerical': 0.0, 'mean_word_length': 5.607142857142857, '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': '1831138', 'n_tokens_mistral': 210, 'n_tokens_neox': 209, 'n_words': 36}