<commit_before>class AppsController < ApplicationController
  after_action :verify_authorized, except: :index
  after_action :verify_policy_scoped, only: :index

  def index
    @apps = policy_scope(App)
  end

  def show
    @app = App.find(params[:id])
    authorize @app
  end
<commit_msg>Sort apps list by name<commit_after>class AppsController < ApplicationController
  after_action :verify_authorized, except: :index
  after_action :verify_policy_scoped, only: :index

  def index
    @apps = policy_scope(App).order(:name)
  end

  def show
    @app = App.find(params[:id])
    authorize @app
  end

{'fraction_non_alphanumeric': 0.0891089108910891, 'fraction_numerical': 0.0, 'mean_word_length': 4.419642857142857, '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': '7300353', 'n_tokens_mistral': 195, 'n_tokens_neox': 188, 'n_words': 50}