<commit_before>=content_for :javascript do
  =render :partial => 'shared/pubnub'
  =javascript_include_tag 'protips'
  =javascript_include_tag 'ember/dashboard'

  :javascript
    Coderwall.activityFeedController.loadSubscriptions(#{@subscribed_channels})
    Coderwall.activityFeedController.set('username', '#{current_user.username}')
    Coderwall.activityFeedController.set('skills', #{current_user.skills.map(&:name)})
    Coderwall.activityFeedController.set('achievements', #{current_user.badges.map(&:display_name)})
    Coderwall.activityFeedController.set('profileUrl', '#{profile_path(current_user.username)}')
    Coderwall.activityFeedController.set('protipsUrl', '#{my_protips_path}')
    Coderwall.activityFeedController.set('connectionsUrl', '#{followers_path(current_user.username)}')
    Coderwall.activityFeedController.loadEvents( #{current_user.activity.to_json})
    Coderwall.activityFeedController.releaseUnreadActivities()
    Coderwall.activityFeedController.updateStats(#{@stats})
    Coderwall.activityFeedController.start()

=content_for :body_id do
  activity

%section.activity
  #activity_feed

.sidebar
  %aside.profile-sidebar<commit_msg>Fix double rendering ?<commit_after>=content_for :javascript do
  =render :partial => 'shared/pubnub'
  =javascript_include_tag 'protips'
  =javascript_include_tag 'ember/dashboard'

  :javascript
    $ ->
      Coderwall.activityFeedController.loadSubscriptions(#{@subscribed_channels})
      Coderwall.activityFeedController.set('username', '#{current_user.username}')
      Coderwall.activityFeedController.set('skills', #{current_user.skills.map(&:name)})
      Coderwall.activityFeedController.set('achievements', #{current_user.badges.map(&:display_name)})
      Coderwall.activityFeedController.set('profileUrl', '#{profile_path(current_user.username)}')
      Coderwall.activityFeedController.set('protipsUrl', '#{my_protips_path}')
      Coderwall.activityFeedController.set('connectionsUrl', '#{followers_path(current_user.username)}')
      Coderwall.activityFeedController.loadEvents( #{current_user.activity.to_json})
      Coderwall.activityFeedController.releaseUnreadActivities()
      Coderwall.activityFeedController.updateStats(#{@stats})
      Coderwall.activityFeedController.start()

=content_for :body_id do
  activity

%section.activity
  #activity_feed

.sidebar
  %aside.profile-sidebar
{'fraction_non_alphanumeric': 0.1266778523489933, 'fraction_numerical': 0.0, 'mean_word_length': 6.819672131147541, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '5754729', 'n_tokens_mistral': 718, 'n_tokens_neox': 709, 'n_words': 76}