<commit_before><!-- header -->
<%= content_for :header do %>
<% end %>

<!-- left column -->
<%= content_for :left_column do %>
  <%= render :partial => "home/snippets/user_li", :locals => { :user => @user } %>
  <%= render :partial => "channels/channels", :locals => {:user => @user } %>
<% end %>

<!-- right-column -->
<%= content_for :right_column do %>
  <%= render :partial => "channels/related_users",
             :locals => {
               :related_users => @channel.related_users(:without=>[current_graph_user]).andand.map{|x| x.user },
               :excluded_users => [@channel.andand.created_by.andand.user]
              } %>
<% end %>

<%= content_for :javascript do %>
  <%= javascript_include_tag "models/channel.js" %>
  <%= javascript_include_tag "collections/channels.js" %>
  <%= javascript_include_tag "collections/facts.js" %>
  <%= javascript_include_tag "views/channel_menu_view.js" %>
  <%= javascript_include_tag "views/channel_app_view.js" %>
  <%= javascript_include_tag "router.js" %>
  
  <script>    
    var Router = new Workspace();
    
    Backbone.history.start({pushState:true, silent:true});
    
    Channels.reset(<%= @user.graph_user.channels.map{|ch| ChannelsHelper::ChannelModelView.new(ch) }.to_json.html_safe%>);
  </script>
  
  <script>
  	$('.follow-channel').bind('click', function() {
  		$.ajax({
  		  url: $(this).data('follow-url'),
  			dataType: "script",
  		  success: function(){
  				console.log("Succes");
  		  }
  		});

  		return false;
  	});
  </script><commit_msg>Reformat<commit_after><!-- header -->
<%= content_for :header do %>
<% end %>

<!-- left column -->
<%= content_for :left_column do %>
  <%= render :partial => "home/snippets/user_li", :locals => {:user => @user} %>
  <%= render :partial => "channels/channels", :locals => {:user => @user} %>
<% end %>

<!-- right-column -->
<%= content_for :right_column do %>
  <%= render :partial => "channels/related_users",
             :locals => {
                     :related_users => @channel.related_users(:without=>[current_graph_user]).andand.map { |x| x.user },
                     :excluded_users => [@channel.andand.created_by.andand.user]
             } %>
<% end %>

<%= content_for :javascript do %>
  <%= javascript_include_tag "models/channel.js" %>
  <%= javascript_include_tag "collections/channels.js" %>
  <%= javascript_include_tag "collections/facts.js" %>
  <%= javascript_include_tag "views/channel_menu_view.js" %>
  <%= javascript_include_tag "views/channel_app_view.js" %>
  <%= javascript_include_tag "router.js" %>

  <script>
    var Router = new Workspace();

    Backbone.history.start({pushState:true, silent:true});

    Channels.reset(<%= @user.graph_user.channels.map{|ch| ChannelsHelper::ChannelModelView.new(ch) }.to_json.html_safe %>);
  </script>

  <script>
    $('.follow-channel').bind('click', function() {
      $.ajax({
        url: $(this).data('follow-url'),
        dataType: "script",
        success: function() {
          console.log("Succes");
        }
      });

      return false;
    });
  </script>
{'fraction_non_alphanumeric': 0.19714656290531776, 'fraction_numerical': 0.0, 'mean_word_length': 3.2260273972602738, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 73, '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': '5512885', 'n_tokens_mistral': 1131, 'n_tokens_neox': 1011, 'n_words': 158}