<commit_before>kd                  = require 'kd'
KDButtonView        = kd.ButtonView
KDCustomHTMLView    = kd.CustomHTMLView
KDHitEnterInputView = kd.HitEnterInputView
KDMultipleChoice    = kd.MultipleChoice
JView               = require 'app/jview'
_                   = require 'lodash'
keycode             = require 'keycode'

module.exports = class AceFindAndReplaceView extends JView

  constructor: (options = {}, data) ->

    options.cssClass = 'ace-find-replace-view'

    super options, data

    @mode = null

    @createElements()


  handleKeyDown: (isFind, e) ->

    code = e.which or e.keyCode
    key  = keycode code

    switch key
      when 'esc' then @close()
      when 'enter'<commit_msg>AceFindAndReplaceView: include missing jquery<commit_after>kd                  = require 'kd'
KDButtonView        = kd.ButtonView
KDCustomHTMLView    = kd.CustomHTMLView
KDHitEnterInputView = kd.HitEnterInputView
KDMultipleChoice    = kd.MultipleChoice
JView               = require 'app/jview'
_                   = require 'lodash'
$                   = require 'jquery'
keycode             = require 'keycode'

module.exports = class AceFindAndReplaceView extends JView

  constructor: (options = {}, data) ->

    options.cssClass = 'ace-find-replace-view'

    super options, data

    @mode = null

    @createElements()


  handleKeyDown: (isFind, e) ->

    code = e.which or e.keyCode
    key  = keycode code

    switch key
      when 'esc' then @close()
      when 'enter'
{'fraction_non_alphanumeric': 0.0903010033444816, 'fraction_numerical': 0.0, 'mean_word_length': 2.309734513274336, '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': '4142005', 'n_tokens_mistral': 474, 'n_tokens_neox': 445, 'n_words': 110}