<commit_before>jQuery ($) ->
  # For missing placeholder support (IE9)
  unless 'placeholder' in document.createElement('input')
    $('.malmo-form input[placeholder]').focus ->
      if $(@).val() is $(@).attr('placeholder')
        $(@).val('')
        $(@).removeClass('placeholder')
    .blur ->
      setPlaceholder(this)

    setPlaceholder = (self) ->
      if $(self).val() is '' or $(self).val() is $(self).attr('placeholder')
        $(self).addClass('placeholder')
        $(self).val($(self).attr('placeholder'))

    # Set on load
    $('input[placeholder]').each ->
      setPlaceholder(@)

    $('input[placeholder]').parents('form').submit ->
      $(@).find('input[placeholder]').each ->
        if $(@).val() is $(@).attr('placeholder')
          $(@).val('')<commit_msg>Refactoring<commit_after>jQuery ($) ->
  # For missing placeholder support (IE9)
  unless 'placeholder' in document.createElement('input')
    setPlaceholder = (self) ->
      if $(self).val() is '' or $(self).val() is $(self).attr('placeholder')
        $(self).addClass('placeholder')
        $(self).val($(self).attr('placeholder'))

    # Bind events
    $('.malmo-form input[placeholder]').focus ->
      if $(@).val() is $(@).attr('placeholder')
        $(@).val('')
        $(@).removeClass('placeholder')
    .blur ->
      setPlaceholder(this)

    # Set on load
    $('input[placeholder]').each ->
      setPlaceholder(@)

    # Clear before submit
    $('input[placeholder]').parents('form').submit ->
      $(@).find('input[placeholder]').each ->
        if $(@).val() is $(@).attr('placeholder')
          $(@).val('')
{'fraction_non_alphanumeric': 0.2308641975308642, 'fraction_numerical': 0.0012345679012345679, 'mean_word_length': 2.9926108374384235, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '397008', 'n_tokens_mistral': 485, 'n_tokens_neox': 478, 'n_words': 90}