<commit_before>// Map SIGINT & SIGTERM to process exit
// so that lockfiles are removed automatically
process
  .once('SIGINT', () => process.exit(0))
  .once('SIGTERM', () => process.exit(0))

// Patch the global fs module here at the app level
import chalk = require('chalk')
import fs = require('fs')
import gfs = require('graceful-fs')

gfs.gracefulify(fs)

import loudRejection from 'loud-rejection'
loudRejection()
import { getConfig, packageManager } from '@pnpm/cli-utils'
import {
  Config,
  types as allTypes,
} from '@pnpm/config'
import { scopeLogger } from '@pnpm/core-loggers'
import logger from '@pnpm/logger'
import parseCliArgs from '@pnpm/parse-cli-args'
import isCI = require('is-ci')
import R = require('ramda')
import checkForUpdates from './checkForUpdates'
import pnpmCmds, { getCommandFullName, getCliOptionsTypes, getRCOptionsTypes } from './cmd'
import './logging/fileLogger'
import initReporter, { ReporterType } from './reporter'

const GLOBAL_OPTIONS = R.pick(['color', 'filter', 'help', 'dir', 'prefix'], allTypes)

const RENAMED_OPTIONS = {
  'lockfile-directory': 'lockfile-dir',
  'prefix': 'dir',
  'shrinkwrap-directory': 'lockfile-dir',
  'store': 'store-dir',
}

export default async function run (inputArgv: string[]) {
  // tslint:disable
  const shortHands = {
    's': ['--reporter', 'silent'],
    'd': ['--loglevel', 'info'],
    'dd': ['--loglevel', 'verbose'],
    'ddd': ['--loglevel', 'silly'],
    'L': ['--latest'],
    'r': ['--recursive'],
    'silent': ['--reporter', 'silent'],
    'verbose': ['--loglevel', 'verbose'],
    'quiet': ['--loglevel', 'warn'],
    'q': ['--loglevel', 'warn'],
    'h': ['--usage'],
    'H': ['--usage'],<commit_msg>style: sort imports<commit_after>// Map SIGINT & SIGTERM to process exit
// so that lockfiles are removed automatically
process
  .once('SIGINT', () => process.exit(0))
  .once('SIGTERM', () => process.exit(0))

// Patch the global fs module here at the app level
import chalk = require('chalk')
import fs = require('fs')
import gfs = require('graceful-fs')

gfs.gracefulify(fs)

import loudRejection from 'loud-rejection'
loudRejection()
import { getConfig, packageManager } from '@pnpm/cli-utils'
import {
  Config,
  types as allTypes,
} from '@pnpm/config'
import { scopeLogger } from '@pnpm/core-loggers'
import logger from '@pnpm/logger'
import parseCliArgs from '@pnpm/parse-cli-args'
import isCI = require('is-ci')
import R = require('ramda')
import checkForUpdates from './checkForUpdates'
import pnpmCmds, {
  getCliOptionsTypes,
  getCommandFullName,
  getRCOptionsTypes,
} from './cmd'
import './logging/fileLogger'
import initReporter, { ReporterType } from './reporter'

const GLOBAL_OPTIONS = R.pick(['color', 'filter', 'help', 'dir', 'prefix'], allTypes)

const RENAMED_OPTIONS = {
  'lockfile-directory': 'lockfile-dir',
  'prefix': 'dir',
  'shrinkwrap-directory': 'lockfile-dir',
  'store': 'store-dir',
}

export default async function run (inputArgv: string[]) {
  // tslint:disable
  const shortHands = {
    's': ['--reporter', 'silent'],
    'd': ['--loglevel', 'info'],
    'dd': ['--loglevel', 'verbose'],
    'ddd': ['--loglevel', 'silly'],
    'L': ['--latest'],
    'r': ['--recursive'],
    'silent': ['--reporter', 'silent'],
    'verbose': ['--loglevel', 'verbose'],
    'quiet': ['--loglevel', 'warn'],
    'q': ['--loglevel', 'warn'],
    'h': ['--usage'],
    'H': ['--usage'],
{'fraction_non_alphanumeric': 0.198182351216652, 'fraction_numerical': 0.0011726766344180592, 'mean_word_length': 4.289922480620155, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '782071', 'n_tokens_mistral': 1176, 'n_tokens_neox': 1155, 'n_words': 303}