<commit_before>module Mutant
  class Matcher
    class Method < Matcher
      # A classifier for input strings
      class Classifier
        TABLE = {
          '.' => Matcher::Method::Singleton,
          '#' => Matcher::Method::Instance
        }

        SCOPE_FORMAT = Regexp.new('\A([^#.]+)(\.|#)(.+)\z')

        private_class_method :new

        def self.run(input)
          match = SCOPE_FORMAT.match(input)
          raise ArgumentError,"Cannot determine subject from #{input.inspect}" unless match
          new(match).matcher
        end

        def matcher
          scope.new(constant_name,method_name)
        end

      private

        def initialize(match)
          @match = match
        end

        def constant_name
          @match[1]
        end

        def method_name
          @match[3]
        end

        def scope_name
          @match[2]
        end

        def scope
          TABLE.fetch(scope_name)
        end
      end
    end
  end
end<commit_msg>Rename method in classifier to be more explict<commit_after>module Mutant
  class Matcher
    class Method < Matcher
      # A classifier for input strings
      class Classifier
        TABLE = {
          '.' => Matcher::Method::Singleton,
          '#' => Matcher::Method::Instance
        }

        SCOPE_FORMAT = Regexp.new('\A([^#.]+)(\.|#)(.+)\z')

        private_class_method :new

        def self.run(input)
          match = SCOPE_FORMAT.match(input)
          raise ArgumentError,"Cannot determine subject from #{input.inspect}" unless match
          new(match).matcher
        end

        def matcher
          scope.new(constant_name,method_name)
        end

      private

        def initialize(match)
          @match = match
        end

        def constant_name
          @match[1]
        end

        def method_name
          @match[3]
        end

        def scope_symbol
          @match[2]
        end

        def scope
          TABLE.fetch(scope_symbol)
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.09014363546310054, 'fraction_numerical': 0.0029717682020802376, 'mean_word_length': 1.5634517766497462, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '4027783', 'n_tokens_mistral': 587, 'n_tokens_neox': 555, 'n_words': 136}