<commit_before><% tabindex_on '#search_field' %>

<% content_for :discovery_insert do %>
  <%= auto_discovery_link_tag(:atom, formatted_search_events_url('atom', :query => @query), :title => "Atom: Search Results for '#{@query}'" )%>
<% end -%>
<%= render :partial => 'search_section', :locals => {:description => "current", :events => @grouped_events[:current]} %>
<%= render :partial => 'search_section', :locals => {:description => "past", :events => @grouped_events[:past]} %>

<div id='list_filters' class='sidebar'>
  <h3>Subscribe to</h3>
  <ul>
    <li><%= link_to "iCalendar feed", url_for(:action => "search", :protocol => "webcal", :only_path => false, :query => @query, :format => "ics") %></li>
    <li><%= link_to "Atom feed", formatted_search_events_url("atom", :query => @query) %></li>
  </ul>

  <h3>Export to</h3>
    <li><%= link_to "iCalendar file", formatted_search_events_url("ics", :query => @query) %></li>
    <li><%= link_to "Google Calendar", "http://www.google.com/calendar/render?cid="+formatted_search_events_url("ics", :query => @query) %></li>
    <li><%= link_to "My Yahoo!", "http://add.my.yahoo.com/content?.intl=us&amp;url="+formatted_search_events_url("ics", :query => @query) %></li>
  <ul>
  </ul>
</div>
<commit_msg>Added URL-encoding to search feed URLs being sent to google and yahoo calendars.<commit_after><% tabindex_on '#search_field' %>

<% content_for :discovery_insert do %>
  <%= auto_discovery_link_tag(:atom, formatted_search_events_url('atom', :query => @query), :title => "Atom: Search Results for '#{@query}'" )%>
<% end -%>
<%= render :partial => 'search_section', :locals => {:description => "current", :events => @grouped_events[:current]} %>
<%= render :partial => 'search_section', :locals => {:description => "past", :events => @grouped_events[:past]} %>

<div id='list_filters' class='sidebar'>
  <h3>Subscribe to</h3>
  <ul>
    <li><%= link_to "iCalendar feed", url_for(:action => "search", :protocol => "webcal", :only_path => false, :query => @query, :format => "ics") %></li>
    <li><%= link_to "Atom feed", formatted_search_events_url("atom", :query => @query) %></li>
  </ul>

  <h3>Export to</h3>
    <li><%= link_to "iCalendar file", formatted_search_events_url("ics", :query => @query) %></li>
    <li><%= link_to "Google Calendar", "http://www.google.com/calendar/render?cid="+CGI::escape(formatted_search_events_url("ics", :query => @query)) %></li>
    <li><%= link_to "My Yahoo!", "http://add.my.yahoo.com/content?.intl=us&amp;url="+CGI::escape(formatted_search_events_url("ics", :query => @query)) %></li>
  <ul>
  </ul>
</div>

{'fraction_non_alphanumeric': 0.23245109321058688, 'fraction_numerical': 0.0030686612965093976, 'mean_word_length': 5.84514435695538, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 103, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1056828', 'n_tokens_mistral': 973, 'n_tokens_neox': 921, 'n_words': 196}