<commit_before>kd            = require 'kd'
KDListView    = kd.ListView
KDModalView   = kd.ModalView


module.exports = class KodingListView extends KDListView


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

    options.cssClass = kd.utils.curry 'koding-listview', options.cssClass

    super options, data


  askForConfirm: (options) ->

    { title, description, callback, cssClass } = options

    if not title or not description
      return kd.warn 'You should pass title or description for confirm modal'

    modal = KDModalView.confirm
      title       : title
      description : description
      ok          :
        title     : 'Yes'
        callback  : ->
          callback { status : yes, modal }
      cancel      :
        title     : 'Cancel'
        callback  : ->
          modal.destroy()
          callback { status : no }<commit_msg>KodingListView: Remove unused cssClass variable<commit_after>kd            = require 'kd'
KDListView    = kd.ListView
KDModalView   = kd.ModalView


module.exports = class KodingListView extends KDListView


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

    options.cssClass = kd.utils.curry 'koding-listview', options.cssClass

    super options, data


  askForConfirm: (options) ->

    { title, description, callback } = options

    if not title or not description
      return kd.warn 'You should pass title or description for confirm modal'

    modal = KDModalView.confirm
      title       : title
      description : description
      ok          :
        title     : 'Yes'
        callback  : ->
          callback { status : yes, modal }
      cancel      :
        title     : 'Cancel'
        callback  : ->
          modal.destroy()
          callback { status : no }
{'fraction_non_alphanumeric': 0.08439306358381503, 'fraction_numerical': 0.0, 'mean_word_length': 2.0262237762237763, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '5555576', 'n_tokens_mistral': 491, 'n_tokens_neox': 453, 'n_words': 139}