<commit_before>'use strict';
'use babel';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.capture = capture;
const extractionRegex = /at (.*?) \((.*?):(\d+):(\d+)\)/;

function capture() {
  const toReturn = [];
  const stack = new Error().stack.split('\n');

  stack.shift();
  stack.forEach(function (entry) {
    const matches = extractionRegex.exec(entry);
    if (matches !== null) {
      toReturn.push({
        function: matches[1],
        file: matches[2],
        line: parseInt(matches[3]) || 1,
        col: parseInt(matches[4]) || 1
      });
    }
  });
  // Remove self from the stack
  toReturn.shift();

  return toReturn;
}<commit_msg>:arrow_up: Upgrade dist file<commit_after>'use strict';
'use babel';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.capture = capture;
exports.fromStack = fromStack;
const extractionRegex = /at (.*?) \((.*?):(\d+):(\d+)\)/;

function capture() {
  const traces = fromStack(new Error().stack);
  // Remove self from the stack
  traces.shift();
  return traces;
}

function fromStack(stack) {
  const stackChunks = stack.split('\n');
  const traces = [];

  stackChunks.forEach(function (entry) {
    const matches = extractionRegex.exec(entry);
    if (matches !== null) {
      traces.push({
        function: matches[1],
        file: matches[2],
        line: parseInt(matches[3]) || 1,
        col: parseInt(matches[4]) || 1
      });
    }
  });

  return traces;
}
{'fraction_non_alphanumeric': 0.18292682926829268, 'fraction_numerical': 0.008130081300813009, 'mean_word_length': 3.1841359773371103, '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': '3979510', 'n_tokens_mistral': 479, 'n_tokens_neox': 475, 'n_words': 111}