<commit_before>(function (tempura, compiler) {
  var core = {
    toString: Object.prototype.toString,

    isObject: function (obj) {
      return obj === Object(obj);
    },

    isArray: (function () {
      if (Array.isArray) {
        return Array.isArray;
      }
      return function (obj) {
        return core.toString.call(obj) === '[object Array]';
      }
    }()),

    extend: function (target) {
      var len = arguments.length;
      var i;
      var source;
      var key;
      if (target == null) {
        return target;
      }
      for (i = 1; i < len; i++) {
        source = arguments[i];
        if (source != null) {
          for (key in source) {
            if (target[key] === void 0) {
              target[key] = source[key];
            }
          }
        }
      }
      return target;
    },

    escape: (function () {
      var map = {
        '&': '&amp;',
        '"': '&quot;',
        "'": '&#39;',
        '<': '&lt;',
        '>': '&gt;'
      };
      return function (value) {
        if (value == null) {
          return '';
        }
        value = String(value);
        return value.replace(/[&"'<>]/g, function (s) {
          return map[s];
        });
      }
    }()),

    compile: typeof compiler !== 'undefined' ? compiler.compile : function () {},

    handleBlock: function (context, contextStack, value, fn) {
      var result = '';
      var i;
      var len;
      var element;
      if (core.isArray(value)) {
        len = value.length;
        for (i = 0; i < len; i++) {
          element = value[i];
          contextStack.push(element);
          result += fn(element, contextStack, i, i + 1 < len);
          contextStack.pop();
        }
      } else if (core.isObject(value)) {
        contextStack.push(value);
        result = fn(value, contextStack);
        contextStack.pop();
      } else if (value) {
        result = fn(context, contextStack);
      }
      return result;
    },

    handleInverse: function (context, contextStack, value, fn) {
      var result = '';
      if (!value) {
        result = fn(context, contextStack);
      } else if ((core.isArray(value) && value.length === 0)) {
        result = fn(context, contextStack);
      }
      return result;
    },

    handlePartial: function (context, contextStack, value, partial, partialName, templateContext) {
      var template = partial;
      if (typeof partial !== 'function') {
        template = compiler.compile(partial);
        templateContext.partials[partialName] = template;
      }
      return template.call(templateContext, value);
    },

    prepare: function (source, options) {
      var template = typeof source === 'string' ? compiler.compile(source) : source;
      var templateContext = {
        escape: core.escape,
        compile: core.compile,
        handleBlock: core.handleBlock,
        handleInverse: core.handleInverse,
        noSuchValue: options.noSuchValue,
        noSuchPartial: options.noSuchPartial,
        noSuchProcessor: options.noSuchProcessor,<commit_msg>refactor.<commit_after>(function (tempura, compiler) {
  var core = {
    isObject: function (obj) {
      return obj === Object(obj);
    },

    isArray: Array.isArray || function (obj) {
      return Object.prototype.toString.call(obj) === '[object Array]';
    },

    extend: function (target) {
      var len = arguments.length;
      var i;
      var source;
      var key;
      if (target == null) {
        return target;
      }
      for (i = 1; i < len; i++) {
        source = arguments[i];
        if (source != null) {
          for (key in source) {
            if (target[key] === void 0) {
              target[key] = source[key];
            }
          }
        }
      }
      return target;
    },

    escape: (function () {
      var map = {
        '&': '&amp;',
        '"': '&quot;',
        "'": '&#39;',
        '<': '&lt;',
        '>': '&gt;'
      };
      return function (value) {
        if (value == null) {
          return '';
        }
        value = String(value);
        return value.replace(/[&"'<>]/g, function (s) {
          return map[s];
        });
      }
    }()),

    compile: typeof compiler !== 'undefined' ? compiler.compile : function () {
      throw new Error("The tempura.runtime.js doesn't support the partial.");
    },

    handleBlock: function (context, contextStack, value, fn) {
      var result = '';
      var i;
      var len;
      var element;
      if (core.isArray(value)) {
        len = value.length;
        for (i = 0; i < len; i++) {
          element = value[i];
          contextStack.push(element);
          result += fn(element, contextStack, i, i + 1 < len);
          contextStack.pop();
        }
      } else if (core.isObject(value)) {
        contextStack.push(value);
        result = fn(value, contextStack);
        contextStack.pop();
      } else if (value) {
        result = fn(context, contextStack);
      }
      return result;
    },

    handleInverse: function (context, contextStack, value, fn) {
      var result = '';
      if (!value) {
        result = fn(context, contextStack);
      } else if ((core.isArray(value) && value.length === 0)) {
        result = fn(context, contextStack);
      }
      return result;
    },

    prepare: function (source, options) {
      var template = typeof source === 'string' ? core.compile(source) : source;
      var templateContext = {
        escape: core.escape,
        compile: core.compile,
        handleBlock: core.handleBlock,
        handleInverse: core.handleInverse,
        noSuchValue: options.noSuchValue,
        noSuchPartial: options.noSuchPartial,
        noSuchProcessor: options.noSuchProcessor,
{'fraction_non_alphanumeric': 0.1456768558951965, 'fraction_numerical': 0.002445414847161572, 'mean_word_length': 1.8687374749498997, 'pattern_counts': {'":': 2, '<': 13, '<?xml version=': 0, '>': 7, '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': '1508003', 'n_tokens_mistral': 1676, 'n_tokens_neox': 1651, 'n_words': 416}