<commit_before>{join}                  = require 'path'
processArgs             = require './args'
readOptionsFile         = require './options-file'
readOrGenerateInputFile = require './input-file'
showOpInfo              = require './printout'

module.exports = (options) ->

  op = # start with some default info
    options: basedir:'.', debug:true
    transforms: []
    #require: []
    quiet: false

  info = # defined when a module name is specified, true, or false when `not`
    include: undefined
    exin: {} # hold excluded/included modules

  # look at process's args and generate op and info values
  processArgs op, info, options

  # read the options file, if it exists, and put its info into `op`
  readOptionsFile op, info

  # prepare input for browserify by reading an input file or generating one
  readOrGenerateInputFile op, info

  # use the default if none specified
  op.outputFile ?= join op.options.basedir, 'package.browserified.js'

  # TODO: what should this be, really?
  op.mapPath ?= op.outputFile

  # show the op and info data
  showOpInfo op, info
<commit_msg>debug is false by default to avoid source map unless specified<commit_after>{join}                  = require 'path'
processArgs             = require './args'
readOptionsFile         = require './options-file'
readOrGenerateInputFile = require './input-file'
showOpInfo              = require './printout'

module.exports = (options) ->

  op = # start with some default info
    options: basedir:'.', debug:false
    transforms: []
    quiet: false

  info = # defined when a module name is specified, true, or false when `not`
    include: undefined
    exin: {} # hold excluded/included modules

  # look at process's args and generate op and info values
  processArgs op, info, options

  # read the options file, if it exists, and put its info into `op`
  readOptionsFile op, info

  # prepare input for browserify by reading an input file or generating one
  readOrGenerateInputFile op, info

  # use the default if none specified
  op.outputFile ?= join op.options.basedir, 'package.browserified.js'

  # TODO: what should this be, really?
  op.mapPath ?= op.outputFile

  # show the op and info data
  showOpInfo op, info

{'fraction_non_alphanumeric': 0.08613728129205922, 'fraction_numerical': 0.0, 'mean_word_length': 3.0035906642728905, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6569295', 'n_tokens_mistral': 627, 'n_tokens_neox': 604, 'n_words': 251}