<commit_before>const DefaultFileLoader = require('./DefaultFileLoader');
const DefaultActionLoader = require('./DefaultActionLoader');

function ActionsManager(controllerPath) {
  this.actions = {};
  this.controllerPath = controllerPath;
  this.fileLoader = new DefaultFileLoader();
  this.actionLoader = new DefaultActionLoader();
}

ActionsManager.prototype.setPath = function(controllerPath) {
  this.controllerPath = controllerPath;
}

ActionsManager.prototype.getAction = function(handlerName) {
  if(isValid(handlerName)) {
    var controllerName = getControllerName(handlerName);
    if(this.hasController(controllerName)) {
      return this.loadAction(this.getController(controllerName), getActionName(handlerName));
    }
  }
}

ActionsManager.prototype.loadAction = function(controller, actionName) {<commit_msg>Remove unused variable.<commit_after>const DefaultFileLoader = require('./DefaultFileLoader');
const DefaultActionLoader = require('./DefaultActionLoader');

function ActionsManager(controllerPath) {
  this.controllerPath = controllerPath;
  this.fileLoader = new DefaultFileLoader();
  this.actionLoader = new DefaultActionLoader();
}

ActionsManager.prototype.setPath = function(controllerPath) {
  this.controllerPath = controllerPath;
}

ActionsManager.prototype.getAction = function(handlerName) {
  if(isValid(handlerName)) {
    var controllerName = getControllerName(handlerName);
    if(this.hasController(controllerName)) {
      return this.loadAction(this.getController(controllerName), getActionName(handlerName));
    }
  }
}

ActionsManager.prototype.loadAction = function(controller, actionName) {
{'fraction_non_alphanumeric': 0.10995723885155773, 'fraction_numerical': 0.0, 'mean_word_length': 6.513761467889908, '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': '6398606', 'n_tokens_mistral': 424, 'n_tokens_neox': 423, 'n_words': 69}