<commit_before>"use strict";
function mergeConfigurations(localConfiguration, globalConfiguration) {
  var finalConfiguration = {};
  
  Object.keys(globalConfiguration).forEach(function(key) {
    finalConfiguration[key] = globalConfiguration[key];
  });
  
  if(localConfiguration !== undefined) {
    Object.keys(localConfiguration).forEach(function(key) {
      finalConfiguration[key] = localConfiguration[key];
    });
  }
  return finalConfiguration;
}

function defaultConfiguration() {
  var versionRegex = /v([0-9]+)\.([0-9]+)\.([0-9]+)/;
  var version = process.version.match(versionRegex);
  
  var Promise = global.Promise;
  if(version[1] === '0' && version[2] < '11') {
    try {
      Promise = require('bluebird');
      Promise.setScheduler(function() {
        return global.setImmediate.apply(global, [].splice.call(arguments, 0));<commit_msg>Removed dependency to version, added to global state instead. If there is no global.Promise, zurvan will attempt to load bluebird<commit_after>"use strict";

var NodeVersion = require("./utils/NodeVersion");

function mergeConfigurations(localConfiguration, globalConfiguration) {
  var finalConfiguration = {};
  
  Object.keys(globalConfiguration).forEach(function(key) {
    finalConfiguration[key] = globalConfiguration[key];
  });
  
  if(localConfiguration !== undefined) {
    Object.keys(localConfiguration).forEach(function(key) {
      finalConfiguration[key] = localConfiguration[key];
    });
  }
  return finalConfiguration;
}

function defaultConfiguration() {
  var Promise = global.Promise;
  if(!Promise) {
    try {
      Promise = require('bluebird');
      Promise.setScheduler(function() {
        return global.setImmediate.apply(global, [].splice.call(arguments, 0));
{'fraction_non_alphanumeric': 0.13804905875641757, 'fraction_numerical': 0.007415858528237307, 'mean_word_length': 4.639871382636656, 'pattern_counts': {'":': 0, '<': 4, '<?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': '5359705', 'n_tokens_mistral': 488, 'n_tokens_neox': 484, 'n_words': 92}