<commit_before>$:.unshift File.join(File.dirname(__FILE__), "..", "lib")
require 'rubygems'
require 'bundler'
require 'director'
require 'specifics'
Bundler.setup

class Actor
  include Specifics

  def initialize this_type_of_role, directed_by=Director.new
    @director = directed_by
    get_ready_to_perform this_type_of_role
  end
  
  def perform described_task, *with_these_details
    get_ready_to_perform described_task
    details_required = with_these_details[0]
    understand_the details_required unless details_required.nil?
    perform_task 
  end
  alias :answer :perform

  def get_ready_to_perform something
    extend( @director.how_do_i_perform something )
  end
end<commit_msg>Refactoring: Actor is even easier to read and understand<commit_after>$:.unshift File.join(File.dirname(__FILE__), "..", "lib")
require 'rubygems'
require 'bundler'
require 'director'
require 'specifics'
Bundler.setup

class Actor
  include Specifics

  def initialize this_type_of_role, directed_by=Director.new
    @director = directed_by
    get_ready_to_perform this_type_of_role
  end
  
  def perform described_task, *details
    get_ready_to_perform described_task
    understand_the *details unless details.empty?
    perform_task 
  end
  alias :answer :perform

  def get_ready_to_perform something
    extend( @director.how_do_i_perform something )
  end
end
{'fraction_non_alphanumeric': 0.06808199121522694, 'fraction_numerical': 0.0007320644216691069, 'mean_word_length': 4.995614035087719, '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': '3456478', 'n_tokens_mistral': 446, 'n_tokens_neox': 424, 'n_words': 105}