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: licenses_controller.rb
    path of file: ./repos/libraries.io/app/controllers
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class LicensesController < ApplicationController
  def index
    @licenses = Project.popular_licenses(facet_limit: 300)
  end

  def show
    find_license
    scope = Project.license(@license.id).maintained
    @created = scope.few_versions.order("projects.created_at DESC").limit(5).includes(:repository)
    @updated = scope.many_versions.order("projects.latest_release_published_at DESC").limit(5).includes(:repository)
    
    
  def show
    find_license
    scope = Project.license(@license.id).maintained
    @created = scope.few_versions.order("projects.created_at DESC").limit(5).includes(:repository)
    @updated = scope.many_versions.order("projects.latest_release_published_at DESC").limit(5).includes(:repository)
    @popular = scope.order("projects.rank DESC NULLS LAST").limit(5).includes(:repository)
    @dependend = scope.most_dependents.limit(5).includes(:repository)

    facets = Project.facets(filters: { normalized_licenses: @license.id }, facet_limit: 10)

    @languages = facets[:languages].language.buckets
    @platforms = facets[:platforms].platform.buckets
    @keywords = facets[:keywords].keywords_array.buckets
  end