<commit_before>Hummingbird.ApplicationController = Ember.Controller.extend
  routeChanged: (->

    # Track the last visited URL for redirection on sign in.
    unless window.location.href.match('/sign-in')
      window.lastVisitedURL = window.location.href

    # Track Google Analytics page view.
    if window._gaq
      if @afterFirstHit
        Em.run.schedule 'afterRender', -> _gaq.push(['_trackPageview'])
      else
        @afterFirstHit = true

    # Scroll to the top of the page.
    Ember.run.next ->
      window.scrollTo(0, 0)

  ).observes('currentPath')

  actions:
    signOut: ->
      Hummingbird.Session.signOut()
      window.location.href = window.location.href<commit_msg>Scroll down 120px on the user profile pages.<commit_after>Hummingbird.ApplicationController = Ember.Controller.extend
  routeChanged: (->

    # Track the last visited URL for redirection on sign in.
    unless window.location.href.match('/sign-in')
      window.lastVisitedURL = window.location.href

    # Track Google Analytics page view.
    if window._gaq
      if @afterFirstHit
        Em.run.schedule 'afterRender', -> _gaq.push(['_trackPageview'])
      else
        @afterFirstHit = true

    # Scroll to the top of the page.
    Ember.run.next ->
      if window.location.href.match('/users/')
        scrollAmount = 120
      else
        scrollAmount = 0
      window.scrollTo(0, scrollAmount)

  ).observes('currentPath')

  actions:
    signOut: ->
      Hummingbird.Session.signOut()
      window.location.href = window.location.href
{'fraction_non_alphanumeric': 0.10478654592496765, 'fraction_numerical': 0.00646830530401035, 'mean_word_length': 2.7457627118644066, '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': '2892797', 'n_tokens_mistral': 469, 'n_tokens_neox': 444, 'n_words': 109}