<commit_before>
require 'discordrb'

require 'han-bot'
require 'han-lib'

module HanBot::Modules::Utilities
  extend Discordrb::EventContainer

  @@coin_phrases = [
    "I chose **@@@@** for you.",
    "**@@@@** it is.",
    "My dice said **@@@@**.",
    "My coin said **@@@@**.",
    "My DnD dice said **@@@@**.",
    "Roll for initiative! **@@@@**.",
    "Sorry I was so fast, I lost my coin. It seems to be **@@@@**.",
    "**@@@@**.",
    "**@@@@**.",
    "**@@@@**.",
    "**@@@@**.",
    "**@@@@**.",
    "**@@@@**.",
    "**@@@@**.",
    "**@@@@**.",
    "For the n+1-th time, it's **@@@@**.",
    "***Sy*ste*m malfu*nct*ion. Pl*ease t*rqy aqqqgain.***"
  ]

  # builds a coin presentation phrase, where the announced coin result is the given value
  def self.coin_phrase(val)
    @@coin_phrases.sample.gsub /@@@@/, val.to_s
  end

  # gives you every single fucking rolled dice
  def self.dice_rolls(num_dices, dice_eyecount)
    (1..num_dices).map{ |i| [ i, (1..dice_eyecount).to_a.sample ] }
  end

  ready do |event|
    event.bot.game = "with this one itself"<commit_msg>Adding random game names to the bot<commit_after>
require 'discordrb'

require 'han-bot'
require 'han-lib'

module HanBot::Modules::Utilities
  extend Discordrb::EventContainer

  @@coin_phrases = [
    "I chose **@@@@** for you.",
    "**@@@@** it is.",
    "My dice said **@@@@**.",
    "My coin said **@@@@**.",
    "My DnD dice said **@@@@**.",
    "Roll for initiative! **@@@@**.",
    "Sorry I was so fast, I lost my coin. It seems to be **@@@@**.",
    "**@@@@**.",
    "**@@@@**.",
    "**@@@@**.",
    "**@@@@**.",
    "**@@@@**.",
    "**@@@@**.",
    "**@@@@**.",
    "**@@@@**.",
    "For the n+1-th time, it's **@@@@**.",
    "***Sy*ste*m malfu*nct*ion. Pl*ease t*rqy aqqqgain.***"
  ]

  @@games = [
    "Factorio",
    "Factorio",
    "Factorio",
    "Factorio",
    "Factorio",
    "Factorio",
    "Factorio",
    "Factorio",
    "Factorio",
    "Factorio",
    "Factorio",
    "World of Tanks",
    "World of Tanks",
    "World of Tanks",
    "World of Tanks",
    "Dark Souls III",
    "World of Warcraft",
    "Sins of a Solar Empire",
    "Gothic II (No Cheat Run)",
    "Battlefleet Gothic",
    "Age of Empires II",
    "Street Fighter Arcade Deluxe Ultimate Ultra Ω Z",
    "<NAME>",
    "<NAME> The Division",
    "<NAME>'s Ghost Recon Advanced Warfighter",
    "<NAME>'s Splinter Cell",
    "Hearthstone - Heroes of Warcraft",
    "Warcraft III",
    "DotA 2",
    "Minecraft"
  ]

  # builds a coin presentation phrase, where the announced coin result is the given value
  def self.coin_phrase(val)
    @@coin_phrases.sample.gsub /@@@@/, val.to_s
  end

  # gives you every single fucking rolled dice
  def self.dice_rolls(num_dices, dice_eyecount)
    (1..num_dices).map{ |i| [ i, (1..dice_eyecount).to_a.sample ] }
  end

  ready do |event|
    event.bot.game = @@games.sample
{'fraction_non_alphanumeric': 0.2341531001039141, 'fraction_numerical': 0.0024246622791825423, 'mean_word_length': 2.902702702702703, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4910859', 'n_tokens_mistral': 1116, 'n_tokens_neox': 1090, 'n_words': 269}