<commit_before>module Command
  module Matcher
    def self.parse(string)
      all.each do |matcher|
        command = matcher.build_with_match(string)
        return command if command
      end
      nil
    end

    def self.all
      constants(false).reject! { |const| const == :Base }.map { |const| const_get(const) }
    end
  end
end<commit_msg>Fix bug in Command::Matcher (hidden dependancy)<commit_after>require './lib/toy_robot_simulator/command/matcher/base'
require './lib/toy_robot_simulator/command/matcher/place'

module Command
  module Matcher
    def self.parse(string)
      all.each do |matcher|
        command = matcher.build_with_match(string)
        return command if command
      end
      nil
    end

    def self.all
      constants(false).reject! { |const| const == :Base }.map { |const| const_get(const) }
    end
  end
end
{'fraction_non_alphanumeric': 0.09813084112149532, 'fraction_numerical': 0.0, 'mean_word_length': 2.8088888888888888, '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': '6031587', 'n_tokens_mistral': 272, 'n_tokens_neox': 270, 'n_words': 68}