<commit_before>import camelcase = require('camelcase')
import loadNpmConf = require('npm-conf')
import npmTypes = require('npm-conf/lib/types')
import path = require('path')
import whichcb = require('which')

function which (cmd: string) {
  return new Promise<string>((resolve, reject) => {
    whichcb(cmd, (err: Error, resolvedPath: string) => err ? reject(err) : resolve(resolvedPath))
  })
}

export const types = Object.assign({
  'background': Boolean,
  'child-concurrency': Number,
  'fetching-concurrency': Number,
  'global-path': path,
  'ignore-pnpmfile': Boolean,
  'ignore-stop-requests': Boolean,
  'ignore-upload-requests': Boolean,
  'independent-leaves': Boolean,
  'lock': Boolean,
  'lock-stale-duration': Number,
  'network-concurrency': Number,
  'offline': Boolean,
  'package-import-method': ['auto', 'hardlink', 'reflink', 'copy'],
  'pending': Boolean,
  'port': Number,
  'prefer-offline': Boolean,
  'protocol': ['auto', 'tcp', 'ipc'],
  'reporter': String,
  'shamefully-flatten': Boolean,
  'shrinkwrap-only': Boolean,
  'side-effects-cache': Boolean,
  'side-effects-cache-readonly': Boolean,
  'store': path,
  'store-path': path, // DEPRECATE! store should be used<commit_msg>feat: add frozen-shrinkwrap and prefer-frozen-shrinkwrap configs<commit_after>import camelcase = require('camelcase')
import loadNpmConf = require('npm-conf')
import npmTypes = require('npm-conf/lib/types')
import path = require('path')
import whichcb = require('which')

function which (cmd: string) {
  return new Promise<string>((resolve, reject) => {
    whichcb(cmd, (err: Error, resolvedPath: string) => err ? reject(err) : resolve(resolvedPath))
  })
}

export const types = Object.assign({
  'background': Boolean,
  'child-concurrency': Number,
  'fetching-concurrency': Number,
  'frozen-shrinkwrap': Boolean,
  'global-path': path,
  'ignore-pnpmfile': Boolean,
  'ignore-stop-requests': Boolean,
  'ignore-upload-requests': Boolean,
  'independent-leaves': Boolean,
  'lock': Boolean,
  'lock-stale-duration': Number,
  'network-concurrency': Number,
  'offline': Boolean,
  'package-import-method': ['auto', 'hardlink', 'reflink', 'copy'],
  'pending': Boolean,
  'port': Number,
  'prefer-frozen-shrinkwrap': Boolean,
  'prefer-offline': Boolean,
  'protocol': ['auto', 'tcp', 'ipc'],
  'reporter': String,
  'shamefully-flatten': Boolean,
  'shrinkwrap-only': Boolean,
  'side-effects-cache': Boolean,
  'side-effects-cache-readonly': Boolean,
  'store': path,
  'store-path': path, // DEPRECATE! store should be used
{'fraction_non_alphanumeric': 0.17348544453186468, 'fraction_numerical': 0.0, 'mean_word_length': 5.202439024390244, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '2915098', 'n_tokens_mistral': 859, 'n_tokens_neox': 835, 'n_words': 194}