<commit_before>class EventsController < ApplicationController
	before_action :auth_user
	
	# before_action :set_event, only: [:show, :edit, :update, :destroy]
  # GET /events
  # GET /events.json
  def index
    @events = Event.all
  end

  def myevents
    @events = current_user.events.order('date').uniq <commit_msg>fix my events filter<commit_after>class EventsController < ApplicationController
	before_action :auth_user
	
	# before_action :set_event, only: [:show, :edit, :update, :destroy]
  # GET /events
  # GET /events.json
  def index
    @events = Event.all
  end

  def myevents
    @events = Event.find_by_sql("select * from events where events.id not in (select user_events.event_id from user_events where user_events.user_id = #{current_user.id} and user_events.liked != 'yes' and user_events.liked != 'no') and events.id in (select user_events.event_id from user_events where user_events.user_id = #{current_user.id}) order by events.date")
{'fraction_non_alphanumeric': 0.1044932079414838, 'fraction_numerical': 0.0, 'mean_word_length': 4.60233918128655, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '4250461', 'n_tokens_mistral': 307, 'n_tokens_neox': 298, 'n_words': 85}