<commit_before># Homepage
class HomeController < ApplicationController
  caches_page :index
        
  # Show homepage
  # === Assigns
  # * upcoming_events: instance of UpcomingEvents with default parameters
  # * recent_results: Events with Results within last two weeks
  def index
    @upcoming_events = UpcomingEvents.find_all
    
    cutoff = Date.today - 31
    @recent_results = Standings.find(
      :all,
      :include => :event,
      :conditions => ['events.date > ? and events.sanctioned_by = ? and standings.type is null', cutoff, ASSOCIATION.short_name],
      :order => 'events.date desc'
    )
  end
  
  def auction
    @bid = Bid.highest
    render(:partial => 'auction')
  end<commit_msg>Upcomgin events, not recent results<commit_after># Homepage
class HomeController < ApplicationController
  caches_page :index
        
  # Show homepage
  # === Assigns
  # * upcoming_events: instance of UpcomingEvents with default parameters
  # * recent_results: Events with Results within last two weeks
  def index
    @upcoming_events = UpcomingEvents.find_all(:weeks => 5)
    
    cutoff = Date.today - 14
    @recent_results = Standings.find(
      :all,
      :include => :event,
      :conditions => ['events.date > ? and events.sanctioned_by = ? and standings.type is null', cutoff, ASSOCIATION.short_name],
      :order => 'events.date desc'
    )
  end
  
  def auction
    @bid = Bid.highest
    render(:partial => 'auction')
  end
{'fraction_non_alphanumeric': 0.09896907216494845, 'fraction_numerical': 0.003436426116838488, 'mean_word_length': 3.1481481481481484, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, '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': '4872096', 'n_tokens_mistral': 455, 'n_tokens_neox': 436, 'n_words': 120}