<commit_before>module Lbaas2
  module Loadbalancers
    module Listeners
      module L7policies
        class L7rulesController < AjaxController
          authorization_context 'lbaas2'
          authorization_required

          def index
            limit = (params[:limit] || 9999).to_i
            sort_key = (params[:sort_key] || 'type')
            sort_dir = (params[:sort_dir] || 'asc')
            pagination_options = { sort_key: sort_key, sort_dir: sort_dir, limit: limit + 1 }
            pagination_options[:marker] = params[:marker] if params[:marker]
<commit_msg>forgotten<commit_after>module Lbaas2
  module Loadbalancers
    module Listeners
      module L7policies
        class L7rulesController < ::AjaxController
          authorization_context 'lbaas2'
          authorization_required

          def index
            limit = (params[:limit] || 9999).to_i
            sort_key = (params[:sort_key] || 'type')
            sort_dir = (params[:sort_dir] || 'asc')
            pagination_options = { sort_key: sort_key, sort_dir: sort_dir, limit: limit + 1 }
            pagination_options[:marker] = params[:marker] if params[:marker]

{'fraction_non_alphanumeric': 0.09515570934256055, 'fraction_numerical': 0.015570934256055362, 'mean_word_length': 2.582043343653251, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4337670', 'n_tokens_mistral': 342, 'n_tokens_neox': 332, 'n_words': 74}