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

require('pkginfo')(module); // for module.*

const fs = require('fs');
const commandLineArgs = require('command-line-args');
const _ = require('lodash');
const Promise = require('bluebird');
const latestVersion = require('latest-version');
const request = require('request');
const semver = require('semver');

const cli = require('./lib/cli');

cli.setUserAgent(`parse-on-buddy/${module.exports.version}/${process.version}/${process.platform}`);

// Promisify libraries
Promise.promisifyAll(request, { multiArgs: true });

function minimumVersionCheck() {
  return request.getAsync('https://parseonbuddy.blob.core.windows.net/cli/minimum.txt').spread((response, body) => {
    if (response.statusCode !== 200) {
      return Promise.reject(`Error: unable to fetch minimum CLI version (HTTP ${response.statusCode}). Contact Buddy Support.`);
    }

    const minVersion = semver.parse(body.trim());
    if (!minVersion) {<commit_msg>Use the proper [...].buddy.com URL.<commit_after>#!/usr/bin/env node

require('pkginfo')(module); // for module.*

const fs = require('fs');
const commandLineArgs = require('command-line-args');
const _ = require('lodash');
const Promise = require('bluebird');
const latestVersion = require('latest-version');
const request = require('request');
const semver = require('semver');

const cli = require('./lib/cli');

cli.setUserAgent(`parse-on-buddy/${module.exports.version}/${process.version}/${process.platform}`);

// Promisify libraries
Promise.promisifyAll(request, { multiArgs: true });

function minimumVersionCheck() {
  return request.getAsync('https://cdn.parse.buddy.com/cli/minimum.txt').spread((response, body) => {
    if (response.statusCode !== 200) {
      return Promise.reject(`Error: unable to fetch minimum CLI version (HTTP ${response.statusCode}). Contact Buddy Support.`);
    }

    const minVersion = semver.parse(body.trim());
    if (!minVersion) {
{'fraction_non_alphanumeric': 0.1763496143958869, 'fraction_numerical': 0.003084832904884319, 'mean_word_length': 5.119496855345912, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3029508', 'n_tokens_mistral': 583, 'n_tokens_neox': 570, 'n_words': 124}