<commit_before>const fs = require('fs');
const assert = require('assert');

describe('build.js', () => {

  it('creates index file', () => {
    const _ = require('../build/index');
    assert('cloneDeepWith' in _, 'Method cloneDeepWith not found in index.js exports');
  });

  it('clones arguments for functions with varargs', () => {
    const invokeMapSource = fs.readFileSync('./build/invokeMap.js');

    assert.equal(invokeMapSource, `var _invokeMap = require('lodash/invokeMap');

module.exports = function invokeMap() {
  var length = arguments.length;
  var args = Array(length + 1);
  args[0] = this;
  for (var i = 0; i < length; ++i) {
    args[i + 1] = arguments[i];
  }
  return _invokeMap.apply(void 0, args);
};
`);
  });

  it('clones arguments for native functions', () => {
    const isArraySource = fs.readFileSync('./build/isArray.js');

    assert.equal(isArraySource, `var _isArray = require('lodash/isArray');

module.exports = function isArray() {
  var length = arguments.length;
  var args = Array(length + 1);
  args[0] = this;
  for (var i = 0; i < length; ++i) {
    args[i + 1] = arguments[i];
  }
  return _isArray.apply(void 0, args);
};
`);
  });

  it('creates simple for functions with named arguments', () => {
    const camelCaseSource = fs.readFileSync('./build/camelCase.js');

    assert.equal(camelCaseSource, `var _camelCase = require('lodash/camelCase');

module.exports = function camelCase() {
  return _camelCase(this);
};
`);
  });<commit_msg>Fixed tests for 'use strict'<commit_after>const fs = require('fs');
const assert = require('assert');

describe('build.js', () => {

  it('creates index file', () => {
    const _ = require('../build/index');
    assert('cloneDeepWith' in _, 'Method cloneDeepWith not found in index.js exports');
  });

  it('clones arguments for functions with varargs', () => {
    const invokeMapSource = fs.readFileSync('./build/invokeMap.js');

    assert.equal(invokeMapSource, `var _invokeMap = require('lodash/invokeMap');

module.exports = function invokeMap() {
  'use strict';
  var length = arguments.length;
  var args = Array(length + 1);
  args[0] = this;
  for (var i = 0; i < length; ++i) {
    args[i + 1] = arguments[i];
  }
  return _invokeMap.apply(void 0, args);
};
`);
  });

  it('clones arguments for native functions', () => {
    const isArraySource = fs.readFileSync('./build/isArray.js');

    assert.equal(isArraySource, `var _isArray = require('lodash/isArray');

module.exports = function isArray() {
  'use strict';
  var length = arguments.length;
  var args = Array(length + 1);
  args[0] = this;
  for (var i = 0; i < length; ++i) {
    args[i + 1] = arguments[i];
  }
  return _isArray.apply(void 0, args);
};
`);
  });

  it('creates simple for functions with named arguments', () => {
    const camelCaseSource = fs.readFileSync('./build/camelCase.js');

    assert.equal(camelCaseSource, `var _camelCase = require('lodash/camelCase');

module.exports = function camelCase() {
  'use strict';
  return _camelCase(this);
};
`);
  });
{'fraction_non_alphanumeric': 0.17361339021988842, 'fraction_numerical': 0.006563833278634723, 'mean_word_length': 3.861244019138756, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, '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': '1503783', 'n_tokens_mistral': 1021, 'n_tokens_neox': 994, 'n_words': 244}