<commit_before>'use strict'

# Polymer
Polymer

  is: 'cmi-select'

  behaviors: [
    Polymer.IronControlState,
    Polymer.IronFormElementBehavior
  ]

  properties:

    ###
    True if the dropdown is open. Otherwise, false.
    ###
    opened:
      type: Boolean
      notify: true
      value: false

    ###
    The label for the dropdown.
    ###
    label:
      type: String

    ###
    The selected for the menu.
    ###
    selected:
      type: String
      notify: true
      reflectToAttribute: true
      observer: '_onSelectedChange'

    ###
    The placeholder for the dropdown.
    ###
    placeholder:
      type: String

  _onCmiDropdownMenuSelect: ->
    @selected = @.$.menu.selectedItem.getAttribute('value')

  _onSelectedChange: ->
    @value = @selected<commit_msg>fire change event on cmi-select change<commit_after>'use strict'

# Polymer
Polymer

  is: 'cmi-select'

  behaviors: [
    Polymer.IronControlState,
    Polymer.IronFormElementBehavior
  ]

  properties:

    ###
    True if the dropdown is open. Otherwise, false.
    ###
    opened:
      type: Boolean
      notify: true
      value: false

    ###
    The label for the dropdown.
    ###
    label:
      type: String

    ###
    The selected for the menu.
    ###
    selected:
      type: String
      notify: true
      reflectToAttribute: true
      observer: '_onSelectedChange'

    ###
    The placeholder for the dropdown.
    ###
    placeholder:
      type: String

  _onCmiDropdownMenuSelect: ->
    @selected = @.$.menu.selectedItem.getAttribute('value')

  _onSelectedChange: ->
    @value = @selected
    @fire('change')
{'fraction_non_alphanumeric': 0.10519877675840979, 'fraction_numerical': 0.0, 'mean_word_length': 2.258964143426295, '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': '3217782', 'n_tokens_mistral': 506, 'n_tokens_neox': 481, 'n_words': 127}