<commit_before>'use strict';

var fs             =  require('fs')
  , path           =  require('path')
  , map            =  require('map-stream')
  , readdirp       =  require('readdirp')
  , log            =  require('npmlog')
  , cardinal       =  require('cardinal')
  , getResolvePath =  require('./lib/get-resolve-path')
  , prepareShims   =  require('./lib/prepare-shims')
  , makeBuild      =  require('./lib/make-build')
  , upgrade        =  require('./lib/upgrade')
  ;

module.exports = function upgradeProject(
      fullPathToRequireJsConfig
    , fullPathToBuildJs
    , relativePathToBundleJs
    , relativePathToEntryJs
    , options
    , cb) {

  var pathResolve = getResolvePath(fullPathToRequireJsConfig)
    , requireJSConfig = pathResolve.requireJSConfig
    , requirejsDir = path.dirname(fullPathToRequireJsConfig)
    , buildjsDir = path.dirname(fullPathToBuildJs)
    , errors = [];

  function readFile(entry, cb) {
    fs.readFile(entry.fullPath, 'utf-8', function (err, res) {
        if (err) return log.error('browserify-ftw', err);
        cb(null, { fullPath: entry.fullPath, src: res });<commit_msg>minor formatting fix in browserify-ftw<commit_after>'use strict';

var fs             =  require('fs')
  , path           =  require('path')
  , map            =  require('map-stream')
  , readdirp       =  require('readdirp')
  , log            =  require('npmlog')
  , cardinal       =  require('cardinal')
  , getResolvePath =  require('./lib/get-resolve-path')
  , prepareShims   =  require('./lib/prepare-shims')
  , makeBuild      =  require('./lib/make-build')
  , upgrade        =  require('./lib/upgrade')
  ;

module.exports = function upgradeProject(
      fullPathToRequireJsConfig
    , fullPathToBuildJs
    , relativePathToBundleJs
    , relativePathToEntryJs
    , options
    , cb) {

  var pathResolve     =  getResolvePath(fullPathToRequireJsConfig)
    , requireJSConfig =  pathResolve.requireJSConfig
    , requirejsDir    =  path.dirname(fullPathToRequireJsConfig)
    , buildjsDir      =  path.dirname(fullPathToBuildJs)
    , errors          =  [];

  function readFile(entry, cb) {
    fs.readFile(entry.fullPath, 'utf-8', function (err, res) {
        if (err) return log.error('browserify-ftw', err);
        cb(null, { fullPath: entry.fullPath, src: res });
{'fraction_non_alphanumeric': 0.12979732643380767, 'fraction_numerical': 0.0008624407072013799, 'mean_word_length': 2.7060702875399363, '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': '5349374', 'n_tokens_mistral': 730, 'n_tokens_neox': 726, 'n_words': 124}