<commit_before>window.CMI or= {}

class CMI.FormSelectBehavior extends Marionette.Behavior

  ui:
    selects: '.cmi-select-input'

  onRender: ->
    @ui.selects.each ->
      CMI.FormComponents.Select.reset($(this))

  onShow: ->
    @ui.selects.each ->
      CMI.FormComponents.Select.reset($(this))<commit_msg>add refresh trigger for FormSelectBehavior<commit_after>window.CMI or= {}

class CMI.FormSelectBehavior extends Marionette.Behavior

  ui:
    selects: '.cmi-select-input'

  onRender: ->
    @ui.selects.each ->
      CMI.FormComponents.Select.reset($(this))

  onShow: ->
    @ui.selects.each ->
      CMI.FormComponents.Select.reset($(this))

  #
  # To trigger a refresh, call triggerMethod('cmi:select:refresh') on
  # the view implementing the behavior.
  #
  onCmiSelectRefresh: ->
    @ui.selects.each ->
      CMI.FormComponents.Select.reset($(this))
{'fraction_non_alphanumeric': 0.14220183486238533, 'fraction_numerical': 0.0, 'mean_word_length': 3.343283582089552, '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': '6960390', 'n_tokens_mistral': 301, 'n_tokens_neox': 291, 'n_words': 48}