<commit_before># command_resolver - classCommandResolver

require_relative 'echo'
require_relative 'cat'
require_relative 'bad'

class CommandResolver
  class << self
  def [] cmd
    return Echo.new if cmd == :echo
    return Cat.new if cmd == :cat
    return Bad.new if cmd == :bad
    Command.new cmd
  end
  end
end
<commit_msg>\'added Function storage to CommandResolver, functions shadow builtins\'<commit_after># command_resolver - classCommandResolver - returns obj that responds to call

require_relative 'echo'
require_relative 'cat'
require_relative 'bad'

class CommandResolver
  @@storage = {}
  class << self
  def [] cmd
    return @@storage[cmd] if @@storage.has_key? cmd
    return Echo.new if cmd == :echo
    return Cat.new if cmd == :cat
    return Bad.new if cmd == :bad
    Command.new cmd
  end
  def []=(key, value)
    @@storage[key] = value
  end
  
  end
end

{'fraction_non_alphanumeric': 0.09706546275395034, 'fraction_numerical': 0.0, 'mean_word_length': 3.5487179487179485, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5079276', 'n_tokens_mistral': 277, 'n_tokens_neox': 269, 'n_words': 95}