<commit_before>import * as fs from 'fs'
import * as os from 'os'
import * as path from 'path'
import * as slash from 'slash'

interface IContext {
  createdAt: string
  homepage: string
  node: string
  pkgDirectory?: string
  pkgHomepage?: string
  pkgName?: string
  platform: string
  runScriptPath: string
  version: string
}

// Used to identify scripts created by Husky
export const huskyIdentifier = '# husky'

// Experimental
const huskyrc = '~/.huskyrc'

// Render script
const render = ({
  createdAt,
  homepage,
  node,
  pkgDirectory,
  pkgHomepage,
  pkgName,
  platform,
  runScriptPath,
  version
}: IContext) => `#!/bin/sh
${huskyIdentifier}

# Hook created by Husky
#   Version: ${version}
#   At: ${createdAt}
#   See: ${homepage}

# From npm package
#   Name: ${pkgName}
#   Directory: ${pkgDirectory}
#   Homepage: ${pkgHomepage}

scriptPath="${runScriptPath}.js"
hookName=\`basename "$0"\`
gitParams="$*"

debug() {<commit_msg>Update debug comments<commit_after>import * as fs from 'fs'
import * as os from 'os'
import * as path from 'path'
import * as slash from 'slash'

interface IContext {
  createdAt: string
  homepage: string
  node: string
  pkgDirectory?: string
  pkgHomepage?: string
  pkgName?: string
  platform: string
  runScriptPath: string
  version: string
}

// Used to identify scripts created by Husky
export const huskyIdentifier = '# husky'

// Experimental
const huskyrc = '~/.huskyrc'

// Render script
const render = ({
  createdAt,
  homepage,
  node,
  pkgDirectory,
  pkgHomepage,
  pkgName,
  platform,
  runScriptPath,
  version
}: IContext) => `#!/bin/sh
${huskyIdentifier}

# Hook created by Husky
#   Version: ${version}
#   At: ${createdAt}
#   See: ${homepage}

# From
#   Directory: ${pkgDirectory}
#   Homepage: ${pkgHomepage}

scriptPath="${runScriptPath}.js"
hookName=\`basename "$0"\`
gitParams="$*"

debug() {
{'fraction_non_alphanumeric': 0.12973838761345435, 'fraction_numerical': 0.0010678056593699946, 'mean_word_length': 4.037634408602151, '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': '7456824', 'n_tokens_mistral': 643, 'n_tokens_neox': 623, 'n_words': 188}