<commit_before>

var fuzzerUndoManager = (function() {

  // DOMTransaction is a "callback interface" -- one that is considered "implemented" by any non-platform object.
  // XXX make a general concept of custom lists
  var transactionIndexes = [];
  function anyTransaction() {
    if (!transactionIndexes.length)
      return null;
    return "o[" + Random.index(transactionIndexes) + "]";
  }

  function addTransactionFunction(t)
  {
    var funName = Random.index(["executeAutomatic", "execute", "redo", "undo"]);
    var lvalue = t + "." + funName;
    return t + "." + funName + " = " + transactionFunction(funName) + ";";
  }

  function transactionFunction(funName)
  {
    switch(rnd(3)) {
      case 0:  return Things.anyFunction();
      case 1:  return "null";
      /// XXX best if it does *several* actions
      default: return "function " + funName + "() { " + fuzzSubCommand("transaction-" + funName) + " }";
    }
  }

  function makeCommand()<commit_msg>Ignore spurious hangs<commit_after>

var fuzzerUndoManager = (function() {

  // DOMTransaction is a "callback interface" -- one that is considered "implemented" by any non-platform object.
  // XXX make a general concept of custom lists
  var transactionIndexes = [];
  function anyTransaction() {
    if (!transactionIndexes.length)
      return null;
    return "o[" + Random.index(transactionIndexes) + "]";
  }

  function addTransactionFunction(t)
  {
    var funName = Random.index(["executeAutomatic", "execute", "redo", "undo"]);
    var lvalue = t + "." + funName;
    return t + "." + funName + " = /*KEEPLISTENER*/ " + transactionFunction(funName) + ";";
  }

  function transactionFunction(funName)
  {
    switch(rnd(3)) {
      case 0:  return Things.anyFunction();
      case 1:  return "null";
      /// XXX best if it does *several* actions
      default: return "function " + funName + "() { " + fuzzSubCommand("transaction-" + funName) + " }";
    }
  }

  function makeCommand()
{'fraction_non_alphanumeric': 0.1429295489102889, 'fraction_numerical': 0.0030410542321338066, 'mean_word_length': 3.236051502145923, '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': '1537764', 'n_tokens_mistral': 613, 'n_tokens_neox': 587, 'n_words': 160}