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

"use strict"

const install = require("./install"),
    path = require("path"),
    request = require('request'),
    unzip = require('unzipper'),
    fs = require('fs'),
    packageJsonPath = path.join(__dirname, "..", "package.json"),
    binPath = "./bin";


var downloadAndExtract = async function(version) {
    console.log(`Fetching download url for Gauge version ${version}`);
    let url = await install.getBinaryUrl(version);
    let gaugeExecutable = process.platform === "win32" ? "gauge.exe" : "gauge"
    console.log(`Downloading ${url} to ${binPath}`);
    unzip.Open.url(request, url).then((d) => {<commit_msg>Ensure that errors from post install propagate to npm<commit_after>#!/usr/bin/env node

"use strict"

const install = require("./install"),
    path = require("path"),
    request = require('request'),
    unzip = require('unzipper'),
    fs = require('fs'),
    packageJsonPath = path.join(__dirname, "..", "package.json"),
    binPath = "./bin";


var downloadAndExtract = async function(version) {
    console.log(`Fetching download url for Gauge version ${version}`);
    let url = await install.getBinaryUrl(version);
    let gaugeExecutable = process.platform === "win32" ? "gauge.exe" : "gauge"
    console.log(`Downloading ${url} to ${binPath}`);
    return unzip.Open.url(request, url).then((d) => {
{'fraction_non_alphanumeric': 0.17238860482103727, 'fraction_numerical': 0.0029218407596785976, 'mean_word_length': 4.074074074074074, '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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1642324', 'n_tokens_mistral': 427, 'n_tokens_neox': 419, 'n_words': 103}