<commit_before>require 'cinch'

class Help
  include Cinch::Plugin

  match /^!help ?(.*)/i

  def execute(msg, query)
    if query.empty?
      msg.reply "I can currently do:"
      msg.reply "!yo (name), !karma (username), !fuck (name)"
      msg.reply "I also grab titles from links :)"
    end

    if ['fuck', 'yo', 'karma'].include? query
      help_fuck(msg) if query.eql? 'fuck'
      help_yo(msg) if query.eql? 'yo'
      help_karma(msg) if query.eql? 'karma'
    else
      msg.reply "I don't know how to do that."
    end
  end

  def help_fuck(msg)
    msg.reply "Usage: !fuck (username)"
    msg.reply "For when you are really pissed off at someone"
  end

  def help_karma(msg)
    msg.reply "Usage: !karma (username)"
    msg.reply "Grabs the reddit karma for the specified user. Either you or the username"
  end<commit_msg>Help is now man page to stop conflicts<commit_after>require 'cinch'

class ManPage
  include Cinch::Plugin

  match /^!man ?(.*)/i

  def execute(msg, query)
    if query.empty?
      msg.reply "I can currently do:"
      msg.reply "!yo (name), !karma (username), !fuck (name)"
      msg.reply "I also grab titles from links :)"
    end

    if ['fuck', 'yo', 'karma', 'up'].include? query
      help_fuck(msg) if query.eql? 'fuck'
      help_yo(msg) if query.eql? 'yo'
      help_karma(msg) if query.eql? 'karma'
      msg.reply "Man up, you whiney, little bitch!" if query.eql? 'up'
    else
      msg.reply "I don't know how to do that."
    end
  end

  def help_fuck(msg)
    msg.reply "Usage: !fuck (username)"
    msg.reply "For when you are really pissed off at someone"
  end

  def help_karma(msg)
    msg.reply "Usage: !karma (username)"
    msg.reply "Grabs the reddit karma for the specified user. Either you or the username"
  end
{'fraction_non_alphanumeric': 0.12387892376681614, 'fraction_numerical': 0.0, 'mean_word_length': 2.8552915766738662, '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': '766275', 'n_tokens_mistral': 638, 'n_tokens_neox': 623, 'n_words': 217}