<commit_before># frozen_string_literal: true

# Assorted helper methods
module DiscordHelpers
  def self.debug_notification(server, message)
    puts message
    debug_channel(server).send_message(message)
  end

  def self.discord_channel(server, channel_name)
    server.channels.select { |x| x.name == channel_name }.first
  end

  def self.check_last_message(channel, msg)
    channel.history(1).first.content.include?(msg)
  end

  def self.delete_last_message(channel)
    channel.history(1).first.delete
  end

  def self.debug_channel(server)
    discord_channel(server, "debug")
  end

  def self.misc_games_channel(server)
    discord_channel(server, "misc-games")
  end
end<commit_msg>removed unused functions<commit_after># frozen_string_literal: true

# Assorted helper methods
module DiscordHelpers

  def self.discord_channel(server, channel_name)
    server.channels.select { |x| x.name == channel_name }.first
  end

  def self.check_last_message(channel, msg)
    channel.history(1).first.content.include?(msg)
  end

  def self.delete_last_message(channel)
    channel.history(1).first.delete
  end
end
{'fraction_non_alphanumeric': 0.09634255129348795, 'fraction_numerical': 0.003568242640499554, 'mean_word_length': 4.695431472081219, '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': '567256', 'n_tokens_mistral': 367, 'n_tokens_neox': 360, 'n_words': 72}