<commit_before>module Actionators

    def list_engine_actionators(engine)
    return @system_api.load_actionators(container)
    
      rescue StandardError => e
          log_exception(e,'list_actionators',engine)
    end
    
    def perform_engine_action(engine_name,actionator_name,params)
      SystemDebug.debug(SystemDebug.actions,engine_name,actionator_name,params)
     engine = loadManagedEngine(engine_name)
    return engine.perform_action(actionator_name,params) if engine.is_running?
     @last_error = "Engine not running"
     return false
      rescue StandardError => e
          log_exception( e,'perform_engine_action',engine_name,actionator_name,params)
    end
    
  
  def list_service_actionators(service)
    if service.is_a?(Hash)
      SoftwareServiceDefinition.software_service_definition(service)
    else
      service_def = SoftwareServiceDefinition.find(service.type_path,service.publisher_namespace)
    end
  #  SystemDebug.debug(SystemDebug.actions,'service_def',service_def)
    #  SystemDebug.debug(SystemDebug.actions,service.container_name,service_def[:actionators])
     unless service_def.is_a?(Hash)
       log_error_mesg('list_actionators not a service def ',service_def)
       return false
  end
    unless service_def.key?(:actionators)
      log_error_mesg('list_actionators no actionators',service_def)
      return  false
    end
     unless service_def[:actionators].is_a?(Array)
       #    SystemDebug.debug(SystemDebug.actions,service.container_name,service_def[:actionators],service_def)
       return service_def[:actionators]
     end
    # SystemDebug.debug(SystemDebug.actions,service.container_name,service_def[:actionators],service_def)
    return service_def[:actionators]
      
    rescue StandardError => e
        log_exception(e,'list_actionators',service)
  end
  
  def perform_service_action(service_name,actionator_name,params)
    SystemDebug.debug(SystemDebug.actions,service_name,actionator_name,params)
   service = loadManagedService(service_name)
  return service.perform_action(actionator_name,params) if service.is_running?
   @last_error = "Service not running"
   return false
    rescue StandardError => e
        log_exception( e,'perform_service_action',service_name,actionator_name,params)
  end
  
end<commit_msg>corect call<commit_after>module Actionators

    def list_engine_actionators(engine)
    return @system_api.load_engine_actionators(engine)
    
      rescue StandardError => e
          log_exception(e,'list_actionators',engine)
    end
    
    def perform_engine_action(engine_name,actionator_name,params)
      SystemDebug.debug(SystemDebug.actions,engine_name,actionator_name,params)
     engine = loadManagedEngine(engine_name)
    return engine.perform_action(actionator_name,params) if engine.is_running?
     @last_error = "Engine not running"
     return false
      rescue StandardError => e
          log_exception( e,'perform_engine_action',engine_name,actionator_name,params)
    end
    
  
  def list_service_actionators(service)
    if service.is_a?(Hash)
      SoftwareServiceDefinition.software_service_definition(service)
    else
      service_def = SoftwareServiceDefinition.find(service.type_path,service.publisher_namespace)
    end
  #  SystemDebug.debug(SystemDebug.actions,'service_def',service_def)
    #  SystemDebug.debug(SystemDebug.actions,service.container_name,service_def[:actionators])
     unless service_def.is_a?(Hash)
       log_error_mesg('list_actionators not a service def ',service_def)
       return false
  end
    unless service_def.key?(:actionators)
      log_error_mesg('list_actionators no actionators',service_def)
      return  false
    end
     unless service_def[:actionators].is_a?(Array)
       #    SystemDebug.debug(SystemDebug.actions,service.container_name,service_def[:actionators],service_def)
       return service_def[:actionators]
     end
    # SystemDebug.debug(SystemDebug.actions,service.container_name,service_def[:actionators],service_def)
    return service_def[:actionators]
      
    rescue StandardError => e
        log_exception(e,'list_actionators',service)
  end
  
  def perform_service_action(service_name,actionator_name,params)
    SystemDebug.debug(SystemDebug.actions,service_name,actionator_name,params)
   service = loadManagedService(service_name)
  return service.perform_action(actionator_name,params) if service.is_running?
   @last_error = "Service not running"
   return false
    rescue StandardError => e
        log_exception( e,'perform_service_action',service_name,actionator_name,params)
  end
  
end
{'fraction_non_alphanumeric': 0.08039982616253803, 'fraction_numerical': 0.0, 'mean_word_length': 4.696782178217822, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '5928709', 'n_tokens_mistral': 1335, 'n_tokens_neox': 1344, 'n_words': 196}