You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: snippets_controller.rb
    path of file: ./repos/gitlabhq/app/controllers/projects
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class Projects::SnippetsController < Projects::Snippets::ApplicationController
  extend ::Gitlab::Utils::Override
  include SnippetsActions
  include ToggleAwardEmoji
  include SpammableActions::AkismetMarkAsSpamAction

  before_action :check_snippets_available!

  before_action 
    
  def index
    @snippet_counts = ::Snippets::CountService
      .new(current_user, project: @project)
      .execute

    @snippets = SnippetsFinder.new(current_user, project: @project, scope: params[:scope], sort: sort_param)
      .execute
      .page(params[:page])
      .inc_author
      .inc_statistics

    return if redirect_out_of_range(@snippets)

    @noteable_meta_data = noteable_meta_data(@snippets, 'Snippet')
  end