<commit_before>RootView = require 'root-view'
FuzzyFinder = require 'fuzzy-finder/lib/fuzzy-finder-view'
LoadPathsTask = require 'fuzzy-finder/lib/load-paths-task'
_ = require 'underscore'
$ = require 'jquery'
{$$} = require 'space-pen'
fs = require 'fs'

describe 'FuzzyFinder', ->
  [finderView] = []

  beforeEach ->
    new RootView(require.resolve('fixtures/sample.js'))
    rootView.enableKeymap()
    finderView = window.loadPackage("fuzzy-finder").packageMain.createView()

  afterEach ->
    rootView.deactivate()
<commit_msg>RootView.initialize no longer assigns window.rootView or calls open<commit_after>RootView = require 'root-view'
FuzzyFinder = require 'fuzzy-finder/lib/fuzzy-finder-view'
LoadPathsTask = require 'fuzzy-finder/lib/load-paths-task'
_ = require 'underscore'
$ = require 'jquery'
{$$} = require 'space-pen'
fs = require 'fs'

describe 'FuzzyFinder', ->
  [finderView] = []

  beforeEach ->
    window.rootView = new RootView
    rootView.open('sample.js')
    rootView.enableKeymap()
    finderView = window.loadPackage("fuzzy-finder").packageMain.createView()

  afterEach ->
    rootView.deactivate()

{'fraction_non_alphanumeric': 0.1437389770723104, 'fraction_numerical': 0.0, 'mean_word_length': 4.536585365853658, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '900486', 'n_tokens_mistral': 391, 'n_tokens_neox': 371, 'n_words': 67}