<commit_before>module AbAdmin
  module Views
    module AdminNavigationHelpers

      def search_admin_form_for(object, *args, &block)
        params[:q] ||= {}
        options = args.extract_options!
        options[:html] ||= {}
        options[:html][:id] ||= 'search_form'
        options[:html][:class] ||= 'pjax-form'
        options[:builder] ||= ::AbAdmin::Views::SearchFormBuilder
        options[:compact_labels] = settings.dig(:search_form, :compact_labels)
        options[:method] ||= :get
        options[:as] ||= 'q'
        form_for([:admin, object].flatten, *(args << options), &block)
      end

      def list_sort_link(attribute, options={})
        adapter = options[:adapter] || @search
        if adapter && adapter.klass == resource_class
          sort_link(adapter, attribute, options)
        else
          options[:title] || (attribute.is_a?(Symbol) ? ha(attribute) : attribute)
        end
      end

      def sort_link(adapter, attribute, options={})
        name = options[:title] || (attribute.is_a?(Symbol) ? ha(attribute) : attribute)
        return name unless adapter
        search_params = (params[:q] || {}).to_h.with_indifferent_access
        attr_name = (options.delete(:column) || attribute).to_s
        default_order = options.delete :default_order
<commit_msg>Remove title from sort link url<commit_after>module AbAdmin
  module Views
    module AdminNavigationHelpers

      def search_admin_form_for(object, *args, &block)
        params[:q] ||= {}
        options = args.extract_options!
        options[:html] ||= {}
        options[:html][:id] ||= 'search_form'
        options[:html][:class] ||= 'pjax-form'
        options[:builder] ||= ::AbAdmin::Views::SearchFormBuilder
        options[:compact_labels] = settings.dig(:search_form, :compact_labels)
        options[:method] ||= :get
        options[:as] ||= 'q'
        form_for([:admin, object].flatten, *(args << options), &block)
      end

      def list_sort_link(attribute, options={})
        adapter = options[:adapter] || @search
        if adapter && adapter.klass == resource_class
          sort_link(adapter, attribute, options)
        else
          options[:title] || (attribute.is_a?(Symbol) ? ha(attribute) : attribute)
        end
      end

      def sort_link(adapter, attribute, options={})
        name = options.delete(:title) || (attribute.is_a?(Symbol) ? ha(attribute) : attribute)
        return name unless adapter
        search_params = (params[:q] || {}).to_h.with_indifferent_access
        attr_name = (options.delete(:column) || attribute).to_s
        default_order = options.delete :default_order

{'fraction_non_alphanumeric': 0.14274895872775464, 'fraction_numerical': 0.0, 'mean_word_length': 3.009104704097117, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5518054', 'n_tokens_mistral': 762, 'n_tokens_neox': 757, 'n_words': 155}