<commit_before>'use strict';

var fs = require('fs');
var cp = require('child_process');
var assert = require('assert');

var partialDependencies = {
  "concat-stream": "^1.4.7"
};
var fullDependencies = {
  "concat-stream": "^1.4.7",
  "try-thread-sleep": "^1.0.0"
};

var REQUIRES_UPDATE = false;
var pkg = JSON.parse(fs.readFileSync(__dirname + '/package.json', 'utf8'));
if (cp.spawnSync || __dirname.indexOf('node_modules') === -1) {
  try {
    assert.deepEqual(pkg.dependencies, partialDependencies);
  } catch (ex) {
    pkg.dependencies = partialDependencies;
    REQUIRES_UPDATE = true;
  }
} else {
  try {
    assert.deepEqual(pkg.dependencies, fullDependencies);<commit_msg>Added missing os-shim dependency<commit_after>'use strict';

var fs = require('fs');
var cp = require('child_process');
var assert = require('assert');

var partialDependencies = {
  "concat-stream": "^1.4.7",
  "os-shim": "^0.1.2"
};
var fullDependencies = {
  "concat-stream": "^1.4.7",
  "os-shim": "^0.1.2",
  "try-thread-sleep": "^1.0.0"
};

var REQUIRES_UPDATE = false;
var pkg = JSON.parse(fs.readFileSync(__dirname + '/package.json', 'utf8'));
if (cp.spawnSync || __dirname.indexOf('node_modules') === -1) {
  try {
    assert.deepEqual(pkg.dependencies, partialDependencies);
  } catch (ex) {
    pkg.dependencies = partialDependencies;
    REQUIRES_UPDATE = true;
  }
} else {
  try {
    assert.deepEqual(pkg.dependencies, fullDependencies);
{'fraction_non_alphanumeric': 0.1813759555246699, 'fraction_numerical': 0.019457956914523976, 'mean_word_length': 4.393258426966292, 'pattern_counts': {'":': 8, '<': 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': '2828409', 'n_tokens_mistral': 525, 'n_tokens_neox': 496, 'n_words': 98}