<commit_before>require "discordrb"       # Discord API.
require "yaml"            # Config Files.

# GLOBAL CONSTANTS.
DIR      =  File.dirname(__FILE__)
DIR_DB   =  DIR+"/database"
DIR_DATA =  DIR+"/data"
DIR_LOG  =  DIR_DATA+"/logs"
CONFIG   =  YAML.load_file DIR+"/config/config.yml"

module Cygnus
  # Inclui todos os arquivos do diretório /modules
  # em seu determinado módulo.

  BOT = Discordrb::Commands::CommandBot.new \
    no_permission_message: "Não tenho permissão para fazer isso!",
    token: CONFIG["token"],
    client_id: CONFIG["client_id"],
    prefix: CONFIG["prefix"],
    help_command: false

  # Importa os módulos e inclui cada constante.
  Dir["#{DIR}/modules/*.rb"].each              { |file| require file }
  Dir["#{DIR}/modules/commands/**/*.rb"].each  { |file| require file }
  Dir["#{DIR}/modules/events/*.rb"].each       { |file| require file }

  Cygnus_Commands.constants.each do |command|
    BOT.include! Cygnus_Commands.const_get command
  end

  Cygnus_Events.constants.each do |event|
    BOT.include! Cygnus_Events.const_get event
  end

  BOT.run
end
<commit_msg>Rubocop<commit_after>require "discordrb"       # Discord API.
require "yaml"            # Config Files.

# GLOBAL CONSTANTS.
DIR      =  File.dirname(__FILE__)
DIR_DB   =  DIR + "/database"
DIR_DATA =  DIR + "/data"
DIR_LOG  =  DIR_DATA + "/logs"
CONFIG   =  YAML.load_file DIR + "/config/config.yml"

module Cygnus
  # Inclui todos os arquivos do diretório /modules
  # em seu determinado módulo.

  BOT = Discordrb::Commands::CommandBot.new \
    no_permission_message: "Não tenho permissão para fazer isso!",
    token: CONFIG["token"],
    client_id: CONFIG["client_id"],
    prefix: CONFIG["prefix"],
    help_command: false

  # Importa os módulos e inclui cada constante.
  Dir["#{DIR}/modules/*.rb"].each              { |file| require file }
  Dir["#{DIR}/modules/commands/**/*.rb"].each  { |file| require file }
  Dir["#{DIR}/modules/events/*.rb"].each       { |file| require file }

  Cygnus_Commands.constants.each do |command|
    BOT.include! Cygnus_Commands.const_get command
  end

  Cygnus_Events.constants.each do |event|
    BOT.include! Cygnus_Events.const_get event
  end

  BOT.run
end

{'fraction_non_alphanumeric': 0.13110307414104883, 'fraction_numerical': 0.0, 'mean_word_length': 3.2476007677543186, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1603050', 'n_tokens_mistral': 780, 'n_tokens_neox': 782, 'n_words': 176}