<commit_before>class EventsController < ApplicationController
  active_scaffold :event do |config|
    config.list.sorting = {:start_time => :desc}
    config.list.columns = [:url, :title, :description, :start_time, :venue]
    config.columns = [:url, :title, :description, :start_time, :venue, :created_at, :updated_at]
    config.show.link.inline = false
    config.update.link.inline = false
  end
  
  def index
    @events = Event.find(:all)
  end
  
end<commit_msg>Reordered events in the index view to display all upcoming items in ascending order.<commit_after>class EventsController < ApplicationController
  active_scaffold :event do |config|
    config.list.sorting = {:start_time => :desc}
    config.list.columns = [:url, :title, :description, :start_time, :venue]
    config.columns = [:url, :title, :description, :start_time, :venue, :created_at, :updated_at]
    config.show.link.inline = false
    config.update.link.inline = false
  end
  
  def index
    @events = Event.find(:all, :conditions => [ 'start_time > ?', Time.now ], :order => 'start_time')
  end
  
end
{'fraction_non_alphanumeric': 0.13007380073800737, 'fraction_numerical': 0.0, 'mean_word_length': 4.14218009478673, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '7302816', 'n_tokens_mistral': 347, 'n_tokens_neox': 343, 'n_words': 87}