<commit_before>class Spree::Admin::BookingsController < Spree::Admin::ResourceController

  #resource_controller
  #inherited_resources
  #layout 'spree/layouts/admin'

  #respond_to :html, :json

  #destroy.success.wants.js { render_js_for_destroy }

  def index
    #@inquiries = Spree::Inquiry.all
    respond_with(@collection) do |format|
      format.html
      format.json { render :json => json_data }
    end
  end

  protected

  def collection
    debugger
    return @collection if @collection.present?
    unless request.xhr?
      params[:q] ||= {}
      params[:q][:s] ||= "ascend_by_email"
      # @search = Spree::Inquiry.search(params[:q])

      #set order by to default or form result
      #@search.order ||= "ascend_by_email"

      #@collection = @search.page(params[:page]).per(Spree::Config[:orders_per_page])
      # @collection = @search.result.page(params[:page]).per(Spree::Config[:orders_per_page])

    else
      @collection = Spree::Booking.find(:all, :limit => (params[:limit] || 100))
    end
  end

end<commit_msg>remove debugger<commit_after>class Spree::Admin::BookingsController < Spree::Admin::ResourceController

  #resource_controller
  #inherited_resources
  #layout 'spree/layouts/admin'

  #respond_to :html, :json

  #destroy.success.wants.js { render_js_for_destroy }

  def index
    #@inquiries = Spree::Inquiry.all
    respond_with(@collection) do |format|
      format.html
      format.json { render :json => json_data }
    end
  end

  protected

  def collection
    return @collection if @collection.present?
    unless request.xhr?
      params[:q] ||= {}
      params[:q][:s] ||= "ascend_by_email"
      # @search = Spree::Inquiry.search(params[:q])

      #set order by to default or form result
      #@search.order ||= "ascend_by_email"

      #@collection = @search.page(params[:page]).per(Spree::Config[:orders_per_page])
      # @collection = @search.result.page(params[:page]).per(Spree::Config[:orders_per_page])

    else
      @collection = Spree::Booking.find(:all, :limit => (params[:limit] || 100))
    end
  end

end
{'fraction_non_alphanumeric': 0.14183037853378055, 'fraction_numerical': 0.0028749401054144704, 'mean_word_length': 3.7346938775510203, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '7314452', 'n_tokens_mistral': 699, 'n_tokens_neox': 672, 'n_words': 127}