<commit_before>class EventsController < ApplicationController


  before_filter :edit_events_user,  except: [:index, :show]

  def index
    @title = "Upcoming Events"
    @events = Event.where("event_date >= ?", Date.today)
                   .limit(30)
                   .order('event_date DESC')
  end

  def past
    @title = "Past Events"
    @events = Event.where("event_date < ?", Date.today)
                   .limit(30)
                   .order('event_date DESC')
  end<commit_msg>changed sort order of events<commit_after>class EventsController < ApplicationController


  before_filter :edit_events_user,  except: [:index, :show]

  def index
    @title = "Upcoming Events"
    @events = Event.where("event_date >= ?", Date.today)
                   .limit(30)
                   .order('event_date ASC')
  end

  def past
    @title = "Past Events"
    @events = Event.where("event_date < ?", Date.today)
                   .limit(30)
                   .order('event_date DESC')
  end
{'fraction_non_alphanumeric': 0.118, 'fraction_numerical': 0.008, 'mean_word_length': 2.1777777777777776, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '2347269', 'n_tokens_mistral': 317, 'n_tokens_neox': 289, 'n_words': 67}