<commit_before>asynctest(
    'ChainPipelineTest',

    [
    'ephox.agar.api.Chain',
    'ephox.agar.api.RawAssertions',
    'global!setTimeout'
  ],

    function (Chain, RawAssertions, setTimeout) {
      var success = arguments[arguments.length-2];
      var failure = arguments[arguments.length-1];

      var cAcc = function (ch) {
        return Chain.on(function (input, next, die) {
          next(Chain.wrap(input + ch));
        });
      };

      Chain.pipeline([
        Chain.inject(1),
        cAcc(2),
        cAcc(3)
      ], function (result) {
          try {
            RawAssertions.assertEq('Expected result to be the sum', 6, result);
            success();
          } catch (err) {
              failure(err);
          }
      }, failure);
    }
  );<commit_msg>TINY-1421: fixed indentation<commit_after>asynctest(
  'ChainPipelineTest',

  [
    'ephox.agar.api.Chain',
    'ephox.agar.api.RawAssertions',
    'global!setTimeout'
  ],

  function (Chain, RawAssertions, setTimeout) {
    var success = arguments[arguments.length-2];
    var failure = arguments[arguments.length-1];

    var cAcc = function (ch) {
      return Chain.on(function (input, next, die) {
        next(Chain.wrap(input + ch));
      });
    };

    Chain.pipeline([
      Chain.inject(1),
      cAcc(2),
      cAcc(3)
    ], function (result) {
        try {
          RawAssertions.assertEq('Expected result to be the sum', 6, result);
          success();
        } catch (err) {
            failure(err);
        }
    }, failure);
  }
);
{'fraction_non_alphanumeric': 0.14221073044602456, 'fraction_numerical': 0.010342598577892695, 'mean_word_length': 2.047244094488189, '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': '3510141', 'n_tokens_mistral': 497, 'n_tokens_neox': 488, 'n_words': 94}