<commit_before>require 'rest-client'
require 'faye/websocket'
require 'eventmachine'

require 'discordrb/endpoints/endpoints'

require 'discordrb/events/message'
require 'discordrb/events/typing'
require 'discordrb/events/lifetime'
require 'discordrb/events/presence'
require 'discordrb/events/voice-state-update'
require 'discordrb/events/channel-create'
require 'discordrb/events/channel-update'
require 'discordrb/events/channel-delete'
require 'discordrb/events/guild-member-update'
require 'discordrb/events/guild-role-create'
require 'discordrb/events/guild-role-delete'
require 'discordrb/events/guild-role-update'

require 'discordrb/api'

require 'discordrb/exceptions'
require 'discordrb/data'

module Discordrb
  class Bot
    include Discordrb::Events

    attr_reader :bot_user

    def initialize(email, password, debug = false)
      # Make sure people replace the login details in the example files...
      if email.end_with? "example.com"
        puts "You have to replace the login details in the example files with your own!"
        exit
      end

      @debug = debug

      @email = email
      @password = password

      @token = login

      @event_handlers = {}
<commit_msg>Make the token public so other classes can use the API directly<commit_after>require 'rest-client'
require 'faye/websocket'
require 'eventmachine'

require 'discordrb/endpoints/endpoints'

require 'discordrb/events/message'
require 'discordrb/events/typing'
require 'discordrb/events/lifetime'
require 'discordrb/events/presence'
require 'discordrb/events/voice-state-update'
require 'discordrb/events/channel-create'
require 'discordrb/events/channel-update'
require 'discordrb/events/channel-delete'
require 'discordrb/events/guild-member-update'
require 'discordrb/events/guild-role-create'
require 'discordrb/events/guild-role-delete'
require 'discordrb/events/guild-role-update'

require 'discordrb/api'

require 'discordrb/exceptions'
require 'discordrb/data'

module Discordrb
  class Bot
    include Discordrb::Events

    attr_reader :bot_user, :token

    def initialize(email, password, debug = false)
      # Make sure people replace the login details in the example files...
      if email.end_with? "example.com"
        puts "You have to replace the login details in the example files with your own!"
        exit
      end

      @debug = debug

      @email = email
      @password = password

      @token = login

      @event_handlers = {}

{'fraction_non_alphanumeric': 0.0958570268074736, 'fraction_numerical': 0.0, 'mean_word_length': 4.057494866529774, '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': '4782868', 'n_tokens_mistral': 763, 'n_tokens_neox': 750, 'n_words': 194}