<commit_before>

module Wakame
  module Actor
    STATUS_RUNNING = 1
    STATUS_SUCCESS = 2
    STATUS_FAILED = 0
    STATUS_CANCELED = 3

    def self.included(klass)
      klass.extend ClassMethods
      klass.class_eval {
        attr_accessor :agent, :return_value
      }
    end

    module ClassMethods
      def expose(path, meth)
        @exposed ||= {}
        @exposed[path]=meth
      end

      def map_path
        @map_path ||= Util.snake_case(self.to_s.split('::').last)
      end
      
      def map_path=(name)
        @map_path=name
      end
    end
    
  end
end<commit_msg>Change methods for the actor base module. Similar with the commit "3000b823"<commit_after>

module Wakame
  module Actor
    STATUS_RUNNING = 1
    STATUS_SUCCESS = 2
    STATUS_FAILED = 0
    STATUS_CANCELED = 3

    def self.included(klass)
      klass.extend ClassMethods
      klass.class_eval {
        attr_accessor :agent, :return_value
      }
    end

    module ClassMethods
      def expose(path, meth)
        @exposed ||= {}
        @exposed[path]=meth
      end

      def map_path(path=nil)
        @map_path = path if path
        @map_path ||= Util.snake_case(self.to_s.split('::').last)
      end
    end
    
  end
end
{'fraction_non_alphanumeric': 0.08508914100486224, 'fraction_numerical': 0.012155591572123177, 'mean_word_length': 2.079800498753117, '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': '5353101', 'n_tokens_mistral': 431, 'n_tokens_neox': 406, 'n_words': 94}