<commit_before>'use strict';

var compose        = require('es5-ext/function/#/compose')
  , ensureCallable = require('es5-ext/object/valid-callable')
  , DbjsError      = require('../_setup/error')
  , getMessage     = require('../_setup/utils/get-sub-error-message')

  , forEach = Array.prototype.forEach
  , map = Array.prototype.map
  , bind = Function.prototype.bind;

module.exports = function (operation1/*, ...operationn*/) {
	var errors = [], previousResult = {};
	forEach.call(arguments, ensureCallable);

	var result = bind.apply(compose, map.call(arguments, function (fn) {
		return function () {
			try {
				return (previousResult = (fn(previousResult) || previousResult));
			} catch (e) {
				errors.push(e);
			}<commit_msg>fix: in mergeValidation passthrough non dbjs errors<commit_after>'use strict';

var compose        = require('es5-ext/function/#/compose')
  , ensureCallable = require('es5-ext/object/valid-callable')
  , DbjsError      = require('../_setup/error')
  , getMessage     = require('../_setup/utils/get-sub-error-message')

  , forEach = Array.prototype.forEach
  , map = Array.prototype.map
  , bind = Function.prototype.bind;

module.exports = function (operation1/*, ...operationn*/) {
	var errors = [], previousResult = {};
	forEach.call(arguments, ensureCallable);

	var result = bind.apply(compose, map.call(arguments, function (fn) {
		return function () {
			try {
				return (previousResult = (fn(previousResult) || previousResult));
			} catch (e) {
				if (e.name !== "DbjsError") throw e;
				errors.push(e);
			}
{'fraction_non_alphanumeric': 0.16250799744081892, 'fraction_numerical': 0.003838771593090211, 'mean_word_length': 3.6272189349112427, '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': '3595022', 'n_tokens_mistral': 528, 'n_tokens_neox': 489, 'n_words': 95}