<commit_before>module Espresso
  module Helpers
    inlude WillPaginate::ViewHelpers

    def simple_search
      form_tag(url_for(:action => :index), :method => :get, :class => 'b_search b_search-simple') do
        inform = returning '' do |result|
          result << text_field_tag(:q, params[:q])
          result << submit_tag(t('krasivotokak.espresso.find', :default => 'Find!'), :class => 'submit')
        end
        concat inform
      end
    end

    def will_paginate_with_i18n(collection, options = {})
      will_paginate_without_i18n(collection,
                                 options.merge({
        :class => 'b_pagination',
        :previous_label => t('krasivotokak.espresso.previous', :default => '← Previous'),
        :next_label =>     t('krasivotokak.espresso.next', :default => 'Next →')}))
    end
    alias_method_chain :will_paginate, :i18n
  end
end<commit_msg>fix in view helpers<commit_after>module Espresso
  module Helpers
    include WillPaginate::ViewHelpers

    def simple_search
      form_tag(url_for(:action => :index), :method => :get, :class => 'b_search b_search-simple') do
        inform = returning '' do |result|
          result << text_field_tag(:q, params[:q])
          result << submit_tag(t('krasivotokak.espresso.find', :default => 'Find!'), :class => 'submit')
        end
        concat inform
      end
    end

    def will_paginate_with_i18n(collection, options = {})
      will_paginate_without_i18n(collection,
                                 options.merge({
        :class => 'b_pagination',
        :previous_label => t('krasivotokak.espresso.previous', :default => '← Previous'),
        :next_label =>     t('krasivotokak.espresso.next', :default => 'Next →')}))
    end
    alias_method_chain :will_paginate, :i18n
  end
end
{'fraction_non_alphanumeric': 0.13147632311977717, 'fraction_numerical': 0.006685236768802228, 'mean_word_length': 2.821276595744681, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7451341', 'n_tokens_mistral': 573, 'n_tokens_neox': 568, 'n_words': 116}