<commit_before>class EventsController < ApplicationController
  before_filter :authenticate_user!
  load_and_authorize_resource

  #before_filter :event_from_params, only: [:edit, :update, :show, :destroy]
  before_filter :set_event_category, only: [:new, :create, :edit, :update]
  #before_filter :required_access, only: [:index, :create, :show, :edit, :update, :destroy]
  before_filter :set_param_for_activities, only: [:index, :new, :create, :show, :edit, :update, :destroy]

  def index<commit_msg>Fixing 401 error for images #172<commit_after>class EventsController < ApplicationController
  before_filter :authenticate_user!, except: [:show_image]
  load_and_authorize_resource except: [:show_image]

  #before_filter :event_from_params, only: [:edit, :update, :show, :destroy]
  before_filter :set_event_category, only: [:new, :create, :edit, :update]
  #before_filter :required_access, only: [:index, :create, :show, :edit, :update, :destroy]
  before_filter :set_param_for_activities, only: [:index, :new, :create, :show, :edit, :update, :destroy]

  def index
{'fraction_non_alphanumeric': 0.13271028037383178, 'fraction_numerical': 0.005607476635514018, 'mean_word_length': 7.637096774193548, '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': '7571538', 'n_tokens_mistral': 366, 'n_tokens_neox': 353, 'n_words': 90}