<commit_before>module ElocalApiSupport
  module Actions
    module Index
      def index
        render json: {
            current_page:  current_page,
            per_page:      (params[:page].present? || params[:per_page].present?) ? filtered_objects.per_page : filtered_objects.total_count,
            total_entries: filtered_objects.total_count,
            total_pages:   (params[:page].present? || params[:per_page].present?) ? filtered_objects.total_pages : 1,
            records:       filtered_objects_for_json
          }
      end
    end
  end
end<commit_msg>Use correct value<commit_after>module ElocalApiSupport
  module Actions
    module Index
      def index
        render json: {
            current_page:  current_page,
            per_page:      (params[:page].present? || params[:per_page].present?) ? per_page : filtered_objects.total_count,
            total_entries: filtered_objects.total_count,
            total_pages:   (params[:page].present? || params[:per_page].present?) ? filtered_objects.total_pages : 1,
            records:       filtered_objects_for_json
          }
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.08898678414096917, 'fraction_numerical': 0.001762114537444934, 'mean_word_length': 2.506172839506173, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2543260', 'n_tokens_mistral': 315, 'n_tokens_neox': 310, 'n_words': 61}