<commit_before>class ConferencesController < ApplicationController

  # these methods don't need a conference
  skip_before_filter :load_conference, only: [:new, :index]

  before_filter :authenticate_user!
  before_filter :not_submitter!
  load_and_authorize_resource

  # GET /conferences
  # GET /conferences.xml
  def index
    if params.has_key?(:term) and not params[:term].empty?
      @search = Conference.with_query(params[:term]).search(params[:q])
    else
      @search = Conference.search(params[:q])
    end<commit_msg>closes #53: conference#create shouldn't use the load_conference before_filter<commit_after>class ConferencesController < ApplicationController

  # these methods don't need a conference
  skip_before_filter :load_conference, only: [:new, :index, :create]

  before_filter :authenticate_user!
  before_filter :not_submitter!
  load_and_authorize_resource

  # GET /conferences
  # GET /conferences.xml
  def index
    if params.has_key?(:term) and not params[:term].empty?
      @search = Conference.with_query(params[:term]).search(params[:q])
    else
      @search = Conference.search(params[:q])
    end
{'fraction_non_alphanumeric': 0.10184372256365233, 'fraction_numerical': 0.001755926251097454, 'mean_word_length': 4.9067357512953365, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '6258741', 'n_tokens_mistral': 352, 'n_tokens_neox': 339, 'n_words': 79}