<commit_before>#!/usr/bin/env node
'use strict';

// Enable source map support
require('source-map-support').install();

// Polyfill Promise if necessary
if (global.Promise === undefined) {
  require('es6-promise').polyfill();
}

const pkg = require('../package.json');
const hibp = require('hibp');
const program = require('commander');
const prettyjson = require('prettyjson');
const Spinner = require('cli-spinner').Spinner;

// Configure the progress spinner
const fetchSpinner = new Spinner('Fetching data... %s');
fetchSpinner.setSpinnerString('|/-\\');

// Begin command-line argument configuration
program
    .usage(`${pkg.name} [option | command]`)
    .description('Each command has its own -h (--help) option.')<commit_msg>Switch to ES2015 module import syntax<commit_after>#!/usr/bin/env node

// Enable source map support
import 'source-map-support/register';

// Polyfill Promise if necessary
import {polyfill} from 'es6-promise';
if (global.Promise === undefined) {
  polyfill();
}

import hibp from 'hibp';
import program from 'commander';
import prettyjson from 'prettyjson';
import {Spinner} from 'cli-spinner';
import * as pkg from '../package.json';

// Configure the progress spinner
const fetchSpinner = new Spinner('Fetching data... %s');
fetchSpinner.setSpinnerString('|/-\\');

// Begin command-line argument configuration
program
    .usage(`${pkg.name} [option | command]`)
    .description('Each command has its own -h (--help) option.')
{'fraction_non_alphanumeric': 0.15961800818553887, 'fraction_numerical': 0.004092769440654843, 'mean_word_length': 4.620689655172414, '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': '7408691', 'n_tokens_mistral': 444, 'n_tokens_neox': 435, 'n_words': 131}