<commit_before>class KDBlockingModalView extends KDModalView
  constructor:->
    super
    $(window).off "keydown.modal"

  putOverlay:->
    @$overlay = $ "<div/>",
      class : "kdoverlay"
    @$overlay.hide()
    @$overlay.appendTo "body"
    @$overlay.fadeIn 200
    @$overlay.bind "click", => @doBlockingAnimation()

  doBlockingAnimation:->
    @unsetClass "blocking-animation"
    @setClass   "blocking-animation"

    @$overlay.off "click"

    KD.utils.wait 200, =>
      @unsetClass "blocking-animation"
      @$overlay.bind "click", => @doBlockingAnimation()

  setDomElement:(cssClass)->
    @domElement = $ """
        <div class='kdmodal #{cssClass}'>
          <div class='kdmodal-shadow'>
            <div class='kdmodal-inner'><commit_msg>KDBlockingModalView: Overlay refactor.<commit_after>class KDBlockingModalView extends KDModalView

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

    super options, data

    $(window).off "keydown.modal" # to unbind ESC key

  putOverlay:->
    @overlay = new KDOverlayView
      isRemovable: no

    @overlay.on "click", =>
      @doBlockingAnimation()

  doBlockingAnimation:->
    @setClass "blocking-animation"

    KD.utils.wait 200, =>
      @unsetClass "blocking-animation"

  setDomElement:(cssClass)->
    @domElement = $ """
        <div class='kdmodal #{cssClass}'>
          <div class='kdmodal-shadow'>
            <div class='kdmodal-inner'>
{'fraction_non_alphanumeric': 0.14641080312722105, 'fraction_numerical': 0.006396588486140725, 'mean_word_length': 3.1169590643274856, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 23, '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': '2879977', 'n_tokens_mistral': 479, 'n_tokens_neox': 442, 'n_words': 86}