<commit_before>FindModel = require './find-model'
FindView = require './find-view'
ProjectFindView = require './project-find-view'
{_, $$} = require 'atom'

module.exports =
  activate: ({viewState, projectViewState}={}) ->
    @projectFindView = new ProjectFindView(projectViewState)
    @findView = new FindView(viewState)

    rootView.command 'project-find:show', =>
      @findView.detach()
      @projectFindView.attach()

    rootView.command 'find-and-replace:show', =>
      @projectFindView.detach()
      @findView.showFind()

    rootView.command 'find-and-replace:show-replace', =>
      @projectFindView.detach()
      @findView.showReplace()

    rootView.on 'core:cancel', =>
      @findView.detach()
      @projectFindView.detach()
<commit_msg>Find and replace views close on core:close<commit_after>FindModel = require './find-model'
FindView = require './find-view'
ProjectFindView = require './project-find-view'
{_, $$} = require 'atom'

module.exports =
  activate: ({viewState, projectViewState}={}) ->
    @projectFindView = new ProjectFindView(projectViewState)
    @findView = new FindView(viewState)

    rootView.command 'project-find:show', =>
      @findView.detach()
      @projectFindView.attach()

    rootView.command 'find-and-replace:show', =>
      @projectFindView.detach()
      @findView.showFind()

    rootView.command 'find-and-replace:show-replace', =>
      @projectFindView.detach()
      @findView.showReplace()

    rootView.on 'core:cancel core:close', =>
      @findView.detach()
      @projectFindView.detach()

{'fraction_non_alphanumeric': 0.15108834827144688, 'fraction_numerical': 0.0, 'mean_word_length': 3.7652439024390243, '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': '2681307', 'n_tokens_mistral': 492, 'n_tokens_neox': 481, 'n_words': 81}