<commit_before>class ArchivesController < ApplicationController
  def index
    @archives = Archive.paginate(:page => params[:page], :per_page => 10)
    if params[:search]
      @archives = Archive.search(params[:search]).order("created_at DESC").paginate(:page => params[:page], :per_page => 10)
    end
  end

  def new
  	@archive = Archive.new
  end

  def create
    @archive = Archive.new({
      :media => params[:archive]["media"],
      :title => params[:archive]["title"],
      :description => params[:archive]["description"],
      :date => params[:archive]["date"],<commit_msg>Important change<commit_after>class ArchivesController < ApplicationController
  def index
    @archives = Archive.paginate(:page => params[:page], :per_page => 10)
    if params[:search]
      @archives = Archive.search(params[:search])
        .order("created_at DESC")
        .paginate(:page => params[:page], :per_page => 10)
    end
  end

  def new
  	@archive = Archive.new
  end

  def create
    @archive = Archive.new({
      :media => params[:archive]["media"],
      :title => params[:archive]["title"],
      :description => params[:archive]["description"],
      :date => params[:archive]["date"],
{'fraction_non_alphanumeric': 0.1662510390689942, 'fraction_numerical': 0.006650041562759767, 'mean_word_length': 3.7777777777777777, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '6704126', 'n_tokens_mistral': 369, 'n_tokens_neox': 348, 'n_words': 76}