<commit_before>#!/usr/bin/env ts-node
import * as Sentry from '@sentry/node'
import dotenv = require('dotenv')
const packageJson = require('../package.json')
dotenv.config()

export { byline } from '@prisma/migrate'
export { Sentry }

// do this before facebook's yoga
import debugLib from 'debug'

const debug = debugLib('prisma')
process.on('uncaughtException', e => {
  debug(e)
})
process.on('unhandledRejection', e => {
  debug(e)
})

// warnings: no tanks
// hides ExperimentalWarning: The fs.promises API is experimental
process.env.NODE_NO_WARNINGS = '1'

// react: psst 🙊
process.env.NODE_ENV = 'production'

/**
 * Dependencies
 */
import { isError, HelpError } from '@prisma/cli'
import {
  LiftCommand,
  LiftSave,
  LiftUp,
  LiftDown,
  LiftWatch,
  LiftTmpPrepare,
  StudioCommand,
  handlePanic,
} from '@prisma/migrate'
import { CLI } from './CLI'
import { Introspect, Init } from '@prisma/introspection'
import { Dev } from './Dev'
import { Version } from './Version'
import { Generate } from './Generate'
import chalk from 'chalk'
import { Docs } from './Docs'
import { ProviderAliases } from '@prisma/sdk'
import { Validate } from './Validate'
export { Photon } from '@prisma/studio-transports'
import * as checkpoint from 'checkpoint-client'
import isCI from 'is-ci'

// aliases are only used by @prisma/studio, but not for users anymore,
// as they have to ship their own version of @prisma/client
const aliases: ProviderAliases = {
  'prisma-client-js': {
    generatorPath: eval(`require('path').join(__dirname, '../prisma-client/generator-build/index.js')`), // all evals are here for ncc
    outputPath: eval(`require('path').join(__dirname, '../prisma-client/')`),
  },
}

// because chalk ...
if (process.env.NO_COLOR) {
  chalk.level = 0
}

/**
 * Main function
 */
async function main(): Promise<number> {
  // create a new CLI with our subcommands
  const cli = CLI.new(
    {
      init: Init.new(),
      migrate: LiftCommand.new({
        save: LiftSave.new(),
        up: LiftUp.new(),
        down: LiftDown.new(),
        docs: Docs.new('migrate', 'https://github.com/prisma/prisma2/tree/master/docs'),<commit_msg>cleanup<commit_after>#!/usr/bin/env ts-node
import * as Sentry from '@sentry/node'
import dotenv = require('dotenv')
const packageJson = require('../package.json')
dotenv.config()

export { byline } from '@prisma/migrate'
export { Sentry }

// do this before facebook's yoga
import debugLib from 'debug'

const debug = debugLib('prisma')
process.on('uncaughtException', e => {
  debug(e)
})
process.on('unhandledRejection', e => {
  debug(e)
})

// warnings: no tanks
// hides ExperimentalWarning: The fs.promises API is experimental
process.env.NODE_NO_WARNINGS = '1'

// react: psst 🙊
process.env.NODE_ENV = 'production'

/**
 * Dependencies
 */
import { isError, HelpError } from '@prisma/cli'
import {
  LiftCommand,
  LiftSave,
  LiftUp,
  LiftDown,
  LiftWatch,
  LiftTmpPrepare,
  StudioCommand,
  handlePanic,
} from '@prisma/migrate'
import { CLI } from './CLI'
import { Introspect, Init } from '@prisma/introspection'
import { Dev } from './Dev'
import { Version } from './Version'
import { Generate } from './Generate'
import chalk from 'chalk'
import { Docs } from './Docs'
import { ProviderAliases } from '@prisma/sdk'
import { Validate } from './Validate'
import * as checkpoint from 'checkpoint-client'
import isCI from 'is-ci'

// aliases are only used by @prisma/studio, but not for users anymore,
// as they have to ship their own version of @prisma/client
const aliases: ProviderAliases = {
  'prisma-client-js': {
    generatorPath: eval(`require('path').join(__dirname, '../prisma-client/generator-build/index.js')`), // all evals are here for ncc
    outputPath: eval(`require('path').join(__dirname, '../prisma-client/')`),
  },
}

// because chalk ...
if (process.env.NO_COLOR) {
  chalk.level = 0
}

/**
 * Main function
 */
async function main(): Promise<number> {
  // create a new CLI with our subcommands
  const cli = CLI.new(
    {
      init: Init.new(),
      migrate: LiftCommand.new({
        save: LiftSave.new(),
        up: LiftUp.new(),
        down: LiftDown.new(),
        docs: Docs.new('migrate', 'https://github.com/prisma/prisma2/tree/master/docs'),
{'fraction_non_alphanumeric': 0.15335689045936396, 'fraction_numerical': 0.0014134275618374558, 'mean_word_length': 3.6710671067106713, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '622598', 'n_tokens_mistral': 1471, 'n_tokens_neox': 1419, 'n_words': 383}