<commit_before>require 'rest-client'
require 'sentimental'
require 'nokogiri'
require 'open-uri'
require_relative './phrases'
require 'pry'

class RantParser
  include Phrases::InstanceMethods

  @@rants = {
    :positive => [],
    :negative => [],
    :neutral => []
  }

  @@prompt = "> "

  def initialize
    @analyzer = Sentimental.new
    Sentimental.load_defaults
    Sentimental.threshold = 0.0
    @power = "on"
    @commands = ["help", "list", "off", "export"]
  end

  def help
    puts "\n"
    puts "Rantbot accepts the following commands:"
    puts "- help   : displays this help menu"
    puts "- list   : displays a list of all of your rants"
    puts "- export : exports your rants to a text file"
    puts "- off    : turns off Rantbot"
  end

  def welcome<commit_msg>add launchy gem<commit_after>require 'rest-client'
require 'sentimental'
require 'nokogiri'
require 'open-uri'
require_relative './phrases'
require 'pry'
require 'launchy'

class RantParser
  include Phrases::InstanceMethods

  @@rants = {
    :positive => [],
    :negative => [],
    :neutral => []
  }

  @@prompt = "> "

  def initialize
    @analyzer = Sentimental.new
    Sentimental.load_defaults
    Sentimental.threshold = 0.0
    @power = "on"
    @commands = ["help", "list", "off", "export"]
  end

  def help
    puts "\n"
    puts "Rantbot accepts the following commands:"
    puts "- help   : displays this help menu"
    puts "- list   : displays a list of all of your rants"
    puts "- export : exports your rants to a text file"
    puts "- off    : turns off Rantbot"
  end

  def welcome
{'fraction_non_alphanumeric': 0.12280701754385964, 'fraction_numerical': 0.002506265664160401, 'mean_word_length': 2.904645476772616, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '7273679', 'n_tokens_mistral': 533, 'n_tokens_neox': 511, 'n_words': 161}