<commit_before>module Bot
  module Commands
    # Command Name
    module Leaderboard
      extend Discordrb::Commands::CommandContainer
      command(
        [:leaderboard, :l, :leader],
        description: 'Responds with top 10 hunters',
        usage: 'leaderboard'
      ) do |event|
        # Stores the database in temp and sorts it by level
        temp = Database::Player.sort_by { |player| player.level }.reverse

        # Posts the leaderboard
        10.times { |i| event << "#{BOT.user(temp[i].discord_id).name} - #{temp[i].level}" }

        nil
      end
    end
  end
end<commit_msg>Update leaderboard.rb<commit_after>module Bot
  module Commands
    # Command Name
    module Leaderboard
      extend Discordrb::Commands::CommandContainer
      command(
        [:leaderboard, :l, :leader],
        description: 'Responds with top 10 hunters',
        usage: 'leaderboard'
      ) do |event|
        # Posts the leaderboard
        10.times { |i| event << "#{BOT.user($leaderboard[i].discord_id).name} - #{$leaderboard[i].level}" }
        nil
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.11192660550458716, 'fraction_numerical': 0.007339449541284404, 'mean_word_length': 2.4525316455696204, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1768426', 'n_tokens_mistral': 343, 'n_tokens_neox': 319, 'n_words': 89}