<commit_before>// defaults, types, and shorthands.


var path = require("path")
  , stdio = process.binding("stdio")
  , url = require("url")
  , Stream = require("stream").Stream
  , semver = require("semver")
  , stableFamily = semver.parse(process.version)
  , os = require("os")

if (!stableFamily || (+stableFamily[2] % 2)) stableFamily = null
else stableFamily = stableFamily[1] + "." + stableFamily[2]

exports.defaults =
  { argv : []
  , bindist : stableFamily
      && (stableFamily + "-" + process.platform + "-" + os.release())
    // are there others?
  , browser : process.platform === "darwin" ? "open" : "google-chrome"
  , cache : path.resolve( process.env.HOME
                        , process.platform === "win32"
                          ? "npm-cache" : ".npm")
  , color : true
  , depth: Infinity
  , description : true
  , dev : false
  , editor : process.env.EDITOR || "vi"
  , force : false
  , global : false
  , globalconfig : path.resolve(process.execPath, "..", "..", "etc", "npmrc")
  , group : process.env.SUDO_GID || process.getgid()
  , gzipbin : process.env.GZIPBIN || "gzip"
  , logfd : stdio.stderrFD
  , loglevel : "warn"
  , long : false
  , "node-version" : process.version
  , npaturl : "http://npat.npmjs.org/"
  , npat : false
  , "onload-script" : false
  , outfd : stdio.stdoutFD
  , parseable : false
  , pre: false
  , prefix : path.join(process.execPath, "..", "..")
  , proxy : process.env.HTTP_PROXY || process.env.http_proxy || null
  , "rebuild-bundle" : true
  , registry : "http://registry.npmjs.org/"
  , searchopts: ""
  , searchexclude: null
  , shell : process.env.SHELL || "bash"
  , tag : "latest"
  , tar : process.env.TAR || "tar"
  , tmp : (process.env.TMPDIR || "/tmp")
  , "unsafe-perm" : process.platform === "win32"
                  || process.platform === "cygwin"
                  || !( process.getuid && process.setuid
                     && process.getgid && process.setgid )
                  || process.getuid() !== 0
  , usage : false
  , user : "nobody"
  , username : ""
  , userconfig : path.resolve( process.env.HOME
                        , process.platform === "win32"
                          ? "npm-config" : ".npmrc")
  , version : false
  , viewer: "man"
  , _exit : true
  }

exports.types =
  { argv : NaN
  , bindist : [String, null]
  , browser : String
  , cache : path
  , color : ["always", Boolean]
  , depth : Number
  , description : Boolean
  , dev : Boolean
  , editor : path
  , force : Boolean
  , global : Boolean
  , globalconfig : path
  , group : [String, Number]
  , gzipbin : String
  , logfd : [Number, Stream]
  , loglevel : ["silent","win","error","warn","info","verbose","silly"]
  , long : Boolean
  , "node-version" : [false, String]
  , npaturl : url
  , npat : Boolean
  , "onload-script" : [false, String]
  , outfd : [Number, Stream]
  , parseable : Boolean
  , pre: Boolean
  , prefix: path
  , proxy : url
  , "rebuild-bundle" : Boolean
  , registry : url
  , searchopts : String<commit_msg>Don't load defs until loadConfig is called<commit_after>// defaults, types, and shorthands.


var path = require("path")
  , stdio = process.binding("stdio")
  , url = require("url")
  , Stream = require("stream").Stream
  , semver = require("semver")
  , stableFamily = semver.parse(process.version)
  , os = require("os")

if (!stableFamily || (+stableFamily[2] % 2)) stableFamily = null
else stableFamily = stableFamily[1] + "." + stableFamily[2]

var defaults
Object.defineProperty(exports, "defaults", {get: function () {
  if (defaults) return defaults
  return defaults =
    { argv : []
    , bindist : stableFamily
        && (stableFamily + "-" + process.platform + "-" + os.release())
      // are there others?
    , browser : process.platform === "darwin" ? "open" : "google-chrome"
    , cache : path.resolve( process.env.HOME
                          , process.platform === "win32"
                            ? "npm-cache" : ".npm")
    , color : true
    , depth: Infinity
    , description : true
    , dev : false
    , editor : process.env.EDITOR || "vi"
    , force : false
    , global : false
    , globalconfig : path.resolve(process.execPath, "..", "..", "etc", "npmrc")
    , group : process.env.SUDO_GID || process.getgid()
    , gzipbin : process.env.GZIPBIN || "gzip"
    , logfd : stdio.stderrFD
    , loglevel : "warn"
    , long : false
    , "node-version" : process.version
    , npaturl : "http://npat.npmjs.org/"
    , npat : false
    , "onload-script" : false
    , outfd : stdio.stdoutFD
    , parseable : false
    , pre: false
    , prefix : path.join(process.execPath, "..", "..")
    , proxy : process.env.HTTP_PROXY || process.env.http_proxy || null
    , "rebuild-bundle" : true
    , registry : "http://registry.npmjs.org/"
    , searchopts: ""
    , searchexclude: null
    , shell : process.env.SHELL || "bash"
    , tag : "latest"
    , tar : process.env.TAR || "tar"
    , tmp : (process.env.TMPDIR || "/tmp")
    , "unsafe-perm" : process.platform === "win32"
                    || process.platform === "cygwin"
                    || !( process.getuid && process.setuid
                       && process.getgid && process.setgid )
                    || process.getuid() !== 0
    , usage : false
    , user : "nobody"
    , username : ""
    , userconfig : path.resolve( process.env.HOME
                          , process.platform === "win32"
                            ? "npm-config" : ".npmrc")
    , version : false
    , viewer: "man"
    , _exit : true
    }
}})

exports.types =
  { argv : NaN
  , bindist : [String, null]
  , browser : String
  , cache : path
  , color : ["always", Boolean]
  , depth : Number
  , description : Boolean
  , dev : Boolean
  , editor : path
  , force : Boolean
  , global : Boolean
  , globalconfig : path
  , group : [String, Number]
  , gzipbin : String
  , logfd : [Number, Stream]
  , loglevel : ["silent","win","error","warn","info","verbose","silly"]
  , long : Boolean
  , "node-version" : [false, String]
  , npaturl : url
  , npat : Boolean
  , "onload-script" : [false, String]
  , outfd : [Number, Stream]
  , parseable : Boolean
  , pre: Boolean
  , prefix: path
  , proxy : url
  , "rebuild-bundle" : Boolean
  , registry : url
  , searchopts : String
{'fraction_non_alphanumeric': 0.1657634682817979, 'fraction_numerical': 0.0035065349059611095, 'mean_word_length': 2.4233496999454447, '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': '3794379', 'n_tokens_mistral': 2093, 'n_tokens_neox': 2029, 'n_words': 448}