<commit_before>#!/usr/bin/env node

import os from 'os'
import path from 'path'
import colors from 'colors'
import {spawn} from 'child_process'
import fs from 'fs-extra'
import inquirer from 'inquirer'
import program from 'commander'

const PKG = require('../package.json')
const CONFIG_PATH = path.join(os.homedir(), `.${PKG.name}.json`)
const DEFAULT_CONFIG = {
    boilerplates: []
}

program
    .version(PKG.version)
    .usage('[options] [boilerplate name] [location]')
    .option('-a, --add', 'Save given path as boilerplate')
    .option('-f, --force', 'Force copying the boilerplate to destination')
    .option('-l, --list', 'Returns the list of boilerplates')<commit_msg>Do not use os.homedir() for backwards compatibility<commit_after>#!/usr/bin/env node

import os from 'os'
import path from 'path'
import colors from 'colors'
import {spawn} from 'child_process'
import fs from 'fs-extra'
import inquirer from 'inquirer'
import program from 'commander'

const PKG = require('../package.json')
const HOMEDIR = process.env[(process.platform === 'win32') ? 'USERPROFILE' : 'HOME']
const CONFIG_PATH = path.join(HOMEDIR, `.${PKG.name}.json`)
const DEFAULT_CONFIG = {
    boilerplates: []
}

program
    .version(PKG.version)
    .usage('[options] [boilerplate name] [location]')
    .option('-a, --add', 'Save given path as boilerplate')
    .option('-f, --force', 'Force copying the boilerplate to destination')
    .option('-l, --list', 'Returns the list of boilerplates')
{'fraction_non_alphanumeric': 0.15633423180592992, 'fraction_numerical': 0.0013477088948787063, 'mean_word_length': 4.4, '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': '6836240', 'n_tokens_mistral': 502, 'n_tokens_neox': 481, 'n_words': 147}