<commit_before>require 'cinch/storage'

module Cinch::Plugins
  class Greet

    listen_to :join
    match /greet (\w+) with (.+)/, react_on: :private

    def initialize(*args)
      @storage = Cinch::Storage.new(config[:filename] || 'yaml/greets.yml')
      @storage.data ||= {}
    end
  
    def execute(m, user, message)
      @storage.data[user] = message
      @storage.save
    end

    def listen(m)
      if @storage.data.key?(m.user.nick)
        m.reply @storage.data[m.user.nick]
      end
    end
  end
end<commit_msg>sadsdasd<commit_after>require 'cinch/storage'

module Cinch::Plugins
  class Greet
    include Cinch::Plugin

    listen_to :join
    match /greet (\w+) with (.+)/, react_on: :private

    def initialize(*args)
      @storage = Cinch::Storage.new(config[:filename] || 'yaml/greets.yml')
      @storage.data ||= {}
    end

    def execute(m, user, message)
      @storage.data[user] = message
      @storage.save
    end

    def listen(m)
      if @storage.data.key?(m.user.nick)
        m.reply @storage.data[m.user.nick]
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.14219759926131118, 'fraction_numerical': 0.0, 'mean_word_length': 2.554098360655738, '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': '1522226', 'n_tokens_mistral': 387, 'n_tokens_neox': 374, 'n_words': 79}