<commit_before>import Utils from "backburner/utils";
import { Queue } from "backburner/queue";

var each = Utils.each;
var isString = Utils.isString;

function DeferredActionQueues(queueNames, options) {
  var queues = this.queues = {};
  this.queueNames = queueNames = queueNames || [];

  this.options = options;

  each(queueNames, function(queueName) {
    queues[queueName] = new Queue(this, queueName, options);
  });
}

DeferredActionQueues.prototype = {
  queueNames: null,
  queues: null,
  options: null,

  schedule: function(name, target, method, args, onceFlag, stack) {
    var queues = this.queues;
    var queue = queues[name];

    if (!queue) { throw new Error("You attempted to schedule an action in a queue (" + queueName + ") that doesn't exist"); }
    if (!queue) { noSuchQueue(name); }

    if (onceFlag) {
      return queue.pushUnique(target, method, args, stack);
    } else {
      return queue.push(target, method, args, stack);<commit_msg>reduce AST size to facilitate improved inlining<commit_after>import Utils from "backburner/utils";
import { Queue } from "backburner/queue";

var each = Utils.each;
var isString = Utils.isString;

function DeferredActionQueues(queueNames, options) {
  var queues = this.queues = {};
  this.queueNames = queueNames = queueNames || [];

  this.options = options;

  each(queueNames, function(queueName) {
    queues[queueName] = new Queue(this, queueName, options);
  });
}

function noSuchQueue(name) {
  throw new Error("You attempted to schedule an action in a queue (" + name + ") that doesn't exist");
}

DeferredActionQueues.prototype = {
  queueNames: null,
  queues: null,
  options: null,

  schedule: function(name, target, method, args, onceFlag, stack) {
    var queues = this.queues;
    var queue = queues[name];

    if (!queue) { noSuchQueue(name); }

    if (onceFlag) {
      return queue.pushUnique(target, method, args, stack);
    } else {
      return queue.push(target, method, args, stack);
{'fraction_non_alphanumeric': 0.12670368500757193, 'fraction_numerical': 0.0, 'mean_word_length': 4.030456852791878, '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': '7378377', 'n_tokens_mistral': 633, 'n_tokens_neox': 618, 'n_words': 175}