<commit_before><script type="text/javascript">
  $(document).ready(function () {
    activate_menu_item();
    bind_multiyear_nav_controls();
  });

  function bind_multiyear_nav_controls() {
    $('#menu li.event.active a.year').click(function(e) {
      e.preventDefault();
      $(e.target).parents('li.events').toggleClass('expanded');
    });

    $(document).bind('click', function(e) {
        if (! $(e.target).parents().hasClass("events"))
            $("#menu li.events").removeClass('expanded');
    });
  }

  // Highlight the active menu item. Works by adding an 'active' class to a
  // menu item based on the current URL. Status is reported via 'console.log'
  // if the JavaScript interpreter provides one.
  function activate_menu_item () {
      var debug = function (message) {
        if (typeof console == "object") console.log('activate_menu_item: ' + message);
      };

      // Names of menu item classes and regexp fragments that activate them:
      var menu_items_and_activation_patterns = [
        ["about", "about"],
        ["blog", "(blog|archive)"],
        ["video", "video"],
        ["get-involved", "get-involved"],
        ["attend", "(attend|register)"],
        ["bofs", "events/.+?bof/.+"],
        ["proposals_or_sessions", "(events/.+?/)?(proposals|sessions)"],
        ["schedule", "events/.+?/schedule"],
        ["speakers", "events/.+?/speakers"],
        ["wiki", "wiki"],
        ["sponsors", "sponsors"]
      ];

      // Get the URL pathname from the browser:
      var pathname = window.location.pathname;
      // Or set a specific one when developing:
      //    var pathname = "/events/2009/speakers";
      var menu_item_matched = null;

      // Match the first pattern:
      for (var i in menu_items_and_activation_patterns) {
        var menu_item = menu_items_and_activation_patterns[i][0];
        var pattern = menu_items_and_activation_patterns[i][1];
        var re = new RegExp("^/" + pattern + "(?:/.*)?$");
        if (pathname.match(re)) {
          menu_item_matched = menu_item;
          debug('Matched menu item "'+menu_item+'" based on pattern: '+ pattern);
          break;
        }
      }

      // Activate the menu item:
      if (menu_item_matched) {
          $('#menu .'+menu_item_matched).addClass('active');
      } else {
          debug("No match for pathname: " + pathname);
      }
  }
</script>

<div id="header">
 <div class='inner_container'>
    <h1 id="site-title"><span><a href="<%= SETTINGS.public_url %>" title="<%= SETTINGS.organization %>" rel="home"><%= SETTINGS.organization %></a></span></h1>
    <div id="site-description">
       <h2>The conference for open source citizens</h2>
       <p id='conference-date-location'>June 26&ndash;29, 2012 <span class='separator'>|</span> Portland, Oregon</p>
    </div>
  </div>
</div>

<div class="skip-link">
  <a href="#content" title="Skip to content">Skip to content</a>
</div>

<div class='inner_container'>
<ul id='menu'>
  <li class='global'>
    <ul>
      <li><a href='/about/' class='about'>About</a></li>
      <li><a href='/blog/' class='blog'>Blog</a></li>
      <% if false %><li><a href='/video/' class='video'>Video</a></li><% end -%>
      <li><a href='/get-involved' class='get-involved'>Get Involved</a></li>
    </ul>
  </li>
  <li class='events'>
    <ul>
    <% for event in assigned_nonchild_events_by_date.reverse %>
      <% content_tag :li, :id => "event-#{event.slug}",
          :class => "event #{flag_event_as_active?(event) ? 'active' : ''}".strip do %>
        <%= link_to event.slug, "/#{event.slug}", :class => 'year' %>
        <ul>
          <% if event.current? %>
          <li><%= link_to 'Attend', '/attend' , :class => 'attend' %></li>
          <% end -%>

          <li><%= link_to nav_title(event), nav_path(event), :class => 'proposals_or_sessions' %></li>

          <% if event.schedule_published? %>
          <li><%= link_to 'Schedule', event_schedule_path(event), :class => 'schedule' %></li>
          <% end -%>

          <% if event.proposal_status_published? %>
          <li><%= link_to 'Speakers', speakers_event_path(event), :class => 'speakers' %></li>
          <% end -%>

          <% if bof = event.children.first(:conditions => ['slug LIKE ?', '%bof']) %>
            <li><%= link_to 'BoFs', "/events/#{bof.slug}/#{bof.proposal_status_published? ? 'sessions' : 'proposals' }", :class => 'bofs' %></li>
          <% end %>
<commit_msg>THEME, bridgepdx: Update top-level event slug link to use "y" prefix to support WordPress 3.x inability to use numeric slugs.<commit_after><script type="text/javascript">
  $(document).ready(function () {
    activate_menu_item();
    bind_multiyear_nav_controls();
  });

  function bind_multiyear_nav_controls() {
    $('#menu li.event.active a.year').click(function(e) {
      e.preventDefault();
      $(e.target).parents('li.events').toggleClass('expanded');
    });

    $(document).bind('click', function(e) {
        if (! $(e.target).parents().hasClass("events"))
            $("#menu li.events").removeClass('expanded');
    });
  }

  // Highlight the active menu item. Works by adding an 'active' class to a
  // menu item based on the current URL. Status is reported via 'console.log'
  // if the JavaScript interpreter provides one.
  function activate_menu_item () {
      var debug = function (message) {
        if (typeof console == "object") console.log('activate_menu_item: ' + message);
      };

      // Names of menu item classes and regexp fragments that activate them:
      var menu_items_and_activation_patterns = [
        ["about", "about"],
        ["blog", "(blog|archive)"],
        ["video", "video"],
        ["get-involved", "get-involved"],
        ["attend", "(attend|register)"],
        ["bofs", "events/.+?bof/.+"],
        ["proposals_or_sessions", "(events/.+?/)?(proposals|sessions)"],
        ["schedule", "events/.+?/schedule"],
        ["speakers", "events/.+?/speakers"],
        ["wiki", "wiki"],
        ["sponsors", "sponsors"]
      ];

      // Get the URL pathname from the browser:
      var pathname = window.location.pathname;
      // Or set a specific one when developing:
      //    var pathname = "/events/2009/speakers";
      var menu_item_matched = null;

      // Match the first pattern:
      for (var i in menu_items_and_activation_patterns) {
        var menu_item = menu_items_and_activation_patterns[i][0];
        var pattern = menu_items_and_activation_patterns[i][1];
        var re = new RegExp("^/" + pattern + "(?:/.*)?$");
        if (pathname.match(re)) {
          menu_item_matched = menu_item;
          debug('Matched menu item "'+menu_item+'" based on pattern: '+ pattern);
          break;
        }
      }

      // Activate the menu item:
      if (menu_item_matched) {
          $('#menu .'+menu_item_matched).addClass('active');
      } else {
          debug("No match for pathname: " + pathname);
      }
  }
</script>

<div id="header">
 <div class='inner_container'>
    <h1 id="site-title"><span><a href="<%= SETTINGS.public_url %>" title="<%= SETTINGS.organization %>" rel="home"><%= SETTINGS.organization %></a></span></h1>
    <div id="site-description">
       <h2>The conference for open source citizens</h2>
       <p id='conference-date-location'>June 26&ndash;29, 2012 <span class='separator'>|</span> Portland, Oregon</p>
    </div>
  </div>
</div>

<div class="skip-link">
  <a href="#content" title="Skip to content">Skip to content</a>
</div>

<div class='inner_container'>
<ul id='menu'>
  <li class='global'>
    <ul>
      <li><a href='/about/' class='about'>About</a></li>
      <li><a href='/blog/' class='blog'>Blog</a></li>
      <% if false %><li><a href='/video/' class='video'>Video</a></li><% end -%>
      <li><a href='/get-involved' class='get-involved'>Get Involved</a></li>
    </ul>
  </li>
  <li class='events'>
    <ul>
    <% for event in assigned_nonchild_events_by_date.reverse %>
      <% content_tag :li, :id => "event-#{event.slug}",
          :class => "event #{flag_event_as_active?(event) ? 'active' : ''}".strip do %>
        <%= link_to event.slug, "/y#{event.slug}", :class => 'year' %>
        <ul>
          <% if event.current? %>
          <li><%= link_to 'Attend', '/attend' , :class => 'attend' %></li>
          <% end -%>

          <li><%= link_to nav_title(event), nav_path(event), :class => 'proposals_or_sessions' %></li>

          <% if event.schedule_published? %>
          <li><%= link_to 'Schedule', event_schedule_path(event), :class => 'schedule' %></li>
          <% end -%>

          <% if event.proposal_status_published? %>
          <li><%= link_to 'Speakers', speakers_event_path(event), :class => 'speakers' %></li>
          <% end -%>

          <% if bof = event.children.first(:conditions => ['slug LIKE ?', '%bof']) %>
            <li><%= link_to 'BoFs', "/events/#{bof.slug}/#{bof.proposal_status_published? ? 'sessions' : 'proposals' }", :class => 'bofs' %></li>
          <% end %>

{'fraction_non_alphanumeric': 0.19413268140904544, 'fraction_numerical': 0.004111567951994666, 'mean_word_length': 2.851091142490372, 'pattern_counts': {'":': 0, '<': 163, '<?xml version=': 0, '>': 181, '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': '2389388', 'n_tokens_mistral': 3007, 'n_tokens_neox': 2892, 'n_words': 639}