<commit_before>'use strict';

Object.defineProperty(exports, "__esModule", {
   value: true
});

var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

exports.default = obex;

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function obex(obj) {
   return {
      map: function map(keyMapper, valueMapper) {
         return extend(Object.keys(obj).reduce(function (acc, cur) {
            return _extends({}, acc, _defineProperty({}, keyMapper(cur, obj[cur]), valueMapper(obj[cur], cur)));
         }, {}));
      },
      mapKeys: function mapKeys(keyMapper) {
         return extend(Object.keys(obj).reduce(function (acc, cur) {
            return _extends({}, acc, _defineProperty({}, keyMapper(cur, obj[cur]), obj[cur]));
         }, {}));
      },
      mapValues: function mapValues(valueMapper) {
         return extend(Object.keys(obj).reduce(function (acc, cur) {
            return _extends({}, acc, _defineProperty({}, cur, valueMapper(obj[cur], cur)));
         }, {}));
      },
      filter: function filter(fn) {
         return extend(Object.keys(obj).reduce(function (acc, cur) {
            return _extends({}, acc, fn(cur, obj[cur]) ? _defineProperty({}, cur, obj[cur]) : {});
         }, {}));
      },
      raw: function raw() {
         return removeProperties(obj);
      }
   };
}

function extend(obj) {
   var result = _extends({}, obj);
   Object.defineProperty(result, 'map', {
      configurable: true,
      value: obex(result).map
   });
   Object.defineProperty(result, 'mapKeys', {
      configurable: true,
      value: obex(result).mapKeys
   });
   Object.defineProperty(result, 'mapValues', {
      configurable: true,
      value: obex(result).mapValues
   });
   Object.defineProperty(result, 'filter', {
      configurable: true,
      value: obex(result).filter
   });
   Object.defineProperty(result, 'raw', {
      configurable: true,
      value: obex(result).raw
   });
   return result;
}

function removeProperties(obj) {
   var result = _extends({}, obj);
   delete result.map;
   delete result.mapKeys;
   delete result.mapValues;
   delete result.filter;
   delete result.raw;
   return result;
}<commit_msg>Rebuild<commit_after>"use strict";

Object.defineProperty(exports, "__esModule", {
   value: true
});

var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

exports.default = obex;

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function obex(obj) {
   var entryTransformer = function entryTransformer(entryFunction) {
      return extend(Object.keys(obj).reduce(function (acc, cur) {
         return _extends({}, acc, entryFunction(cur));
      }, {}));
   };
   return {
      map: function map(keyMapper, valueMapper) {
         return entryTransformer(function (key) {
            return _defineProperty({}, keyMapper(key, obj[key]), valueMapper(obj[key], key));
         });
      },
      mapKeys: function mapKeys(keyMapper) {
         return entryTransformer(function (key) {
            return _defineProperty({}, keyMapper(key, obj[key]), obj[key]);
         });
      },
      mapValues: function mapValues(valueMapper) {
         return entryTransformer(function (key) {
            return _defineProperty({}, key, valueMapper(obj[key], key));
         });
      },
      filter: function filter(testFunction) {
         return entryTransformer(function (key) {
            return _extends({}, testFunction(key, obj[key]) ? _defineProperty({}, key, obj[key]) : {});
         });
      },
      raw: function raw() {
         return removeProperties(obj);
      }
   };
}

var addedPropertyNames = Object.keys(obex({}));

function extend(obj) {
   var result = _extends({}, obj);
   addedPropertyNames.forEach(function (propName) {
      Object.defineProperty(result, propName, {
         configurable: true,
         value: obex(result)[propName]
      });
   });
   return result;
}

function removeProperties(obj) {
   var result = _extends({}, obj);
   addedPropertyNames.forEach(function (propName) {
      return delete result[propName];
   });
   return result;
}
{'fraction_non_alphanumeric': 0.1536850921273032, 'fraction_numerical': 0.0004187604690117253, 'mean_word_length': 3.1940298507462686, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6968876', 'n_tokens_mistral': 1420, 'n_tokens_neox': 1425, 'n_words': 339}