<commit_before># encoding: utf-8

class SearchesController < ApplicationController
  def show
    @branch = Branch.where(name: params[:branch], vendor: 'ALT Linux').first
    @branches = Branch.order('order_id').all
    if params[:query].nil? || params[:query].empty?
      redirect_to action: 'index'
    else
      @srpms = Srpm.search(params[:query], :order => :name, :max_matches => 10_000, :per_page => 10_000, :with => { :branch_id => @branch.id }, :include => :branch)
      redirect_to(srpm_path(@branch, @srpms.first), status: 302) if @srpms.count == 1
    end
  end
end<commit_msg>Cleanup<commit_after># encoding: utf-8

class SearchesController < ApplicationController
  def show
    @branch = Branch.where(name: params[:branch], vendor: 'ALT Linux').first
    @branches = Branch.order('order_id').all
    if params[:query].nil? || params[:query].empty?
      redirect_to action: 'index'
    else
      @srpms = Srpm.search(params[:query],
                           :order => :name,
                           :max_matches => 10_000,
                           :per_page => 10_000,
                           :with => { :branch_id => @branch.id },
                           :include => :branch)
      redirect_to(srpm_path(@branch, @srpms.first), status: 302) if @srpms.count == 1
    end
  end
end
{'fraction_non_alphanumeric': 0.14492753623188406, 'fraction_numerical': 0.02288329519450801, 'mean_word_length': 2.6243093922651934, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '2541572', 'n_tokens_mistral': 433, 'n_tokens_neox': 404, 'n_words': 91}