<commit_before>Sks.UsersView = Ember.View.extend
  elementId: 'kudos-users-view'

  didInsertElement: ->
    showRow = ($row) ->
      $active = $row.siblings('.form-visible')

      # first hide all the active element
      $active.toggleView()

      #then show the clicked one
      if $row.get() isnt $active.get()
        $row.find('.more span').toggleClass 'glyphicon-chevron-down', 'glyphicon-chevron-up'
        $row
          .toggleView {}, ->
            $row.ScrollTo(offsetTop: 90)

    # show hidden content on more button click
    @.$('#users-list').on 'click', '.more', (event) ->
      $row = $(this).parents '.coworker'
      showRow $row

      return false

    @.$('#users-list').on 'click', '.content', (event) ->
      $this = $ this

      if $(event.target).is '.btn-add'
        event.preventDefault()
        return

      showRow $this.closest('.coworker') unless event.target is $this.get()

      return false

    @.$('#users-list').on 'focus', '.kudos-comment', ->
      width = $(window).width()
      $('#dashboard').fadeOut() if width <= 768

    @.$('#users-list').on 'blur', '.kudos-comment', ->
      width = $(window).width()
      $('#dashboard').fadeIn() if width <= 768<commit_msg>fixed header jumps around on ios when text field has focus<commit_after>Sks.UsersView = Ember.View.extend
  elementId: 'kudos-users-view'

  didInsertElement: ->
    showRow = ($row) ->
      $active = $row.siblings('.form-visible')

      # first hide all the active element
      $active.toggleView()

      #then show the clicked one
      if $row.get() isnt $active.get()
        $row.find('.more span').toggleClass 'glyphicon-chevron-down', 'glyphicon-chevron-up'
        $row
          .toggleView {}, ->
            $row.ScrollTo(offsetTop: 90)

    # show hidden content on more button click
    @.$('#users-list').on 'click', '.more', (event) ->
      $row = $(this).parents '.coworker'
      showRow $row

      return false

    @.$('#users-list').on 'click', '.content', (event) ->
      $this = $ this

      if $(event.target).is '.btn-add'
        event.preventDefault()
        return

      showRow $this.closest('.coworker') unless event.target is $this.get()

      return false

    @.$('#users-list').on 'focusin', '.kudos-comment', ->
      width = $(window).width()
      $('#dashboard').css(position: 'absolute', top: 0) if width < 980

    @.$('#users-list').on 'focusout', '.kudos-comment', ->
      width = $(window).width()
      $('#dashboard').css(position: 'fixed', top: 0) if width < 980
{'fraction_non_alphanumeric': 0.1840346047974833, 'fraction_numerical': 0.007078254030672434, 'mean_word_length': 2.4897119341563787, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6264673', 'n_tokens_mistral': 834, 'n_tokens_neox': 797, 'n_words': 191}