<commit_before>class AdminController < ApplicationController
  def index
    @total_events = Event.count
    @total_future_events = Event.where("date >= ?", Date.today).count
    @total_venues = Venue.count
    @total_festivals = Festival.count
    @total_pages = Page.count
    @total_users = User.count
    @event_users = EventUser.all.count
    @number_submitted = UserEvent.all.count
    @recently_added_events = Event.order('updated_at DESC').limit(10)
    @new_events = 13
    @page_title = "Admin"
  end
end
<commit_msg>Show number of non archived user events on admin page<commit_after>class AdminController < ApplicationController
  def index
    @total_events = Event.count
    @total_future_events = Event.where("date >= ?", Date.today).count
    @total_venues = Venue.count
    @total_festivals = Festival.count
    @total_pages = Page.count
    @total_users = User.count
    @event_users = EventUser.where(archived: false).count
    @number_submitted = UserEvent.all.count
    @recently_added_events = Event.order('updated_at DESC').limit(10)
    @new_events = 13
    @page_title = "Admin"
  end
end

{'fraction_non_alphanumeric': 0.10332434860736747, 'fraction_numerical': 0.0071877807726864335, 'mean_word_length': 3.951111111111111, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4535383', 'n_tokens_mistral': 364, 'n_tokens_neox': 351, 'n_words': 72}