<commit_before>var fs = require("fs");
var path = require("path");

// https://github.com/octokit/rest.js
// https://octokit.github.io/rest.js/
const Octokit = require('@octokit/rest');

console.log("process.cwd():");
console.log(process.cwd());
console.log("path.resolve(\".\")");
console.log(path.resolve("."));

console.log("__dirname:");
console.log(__dirname);

const args = process.argv.slice(2);
console.log("args:");
console.log(args);

const envCommitSha = process.env.TRAVIS_COMMIT || process.env.APPVEYOR_REPO_COMMIT;

console.log("TRAVIS_COMMIT:");
console.log(envCommitSha);
if (!envCommitSha) {
    console.log("Missing TRAVIS_COMMIT! Abort.");
    process.exit(1);
    return;
}

console.log("TRAVIS_TAG:");
console.log(process.env.TRAVIS_TAG);
if (!process.env.TRAVIS_TAG) {<commit_msg>hotfix(CI): Octokit/rest API breaking change for Travis/AppVeyor automated build updates to GitHub (see https://github.com/octokit/rest.js/commit/c1d6c6a37ef4967753515c435f79bcedfcba29bf )<commit_after>var fs = require("fs");
var path = require("path");

// https://github.com/octokit/rest.js
// https://octokit.github.io/rest.js/
const { Octokit } = require('@octokit/rest');

console.log("process.cwd():");
console.log(process.cwd());
console.log("path.resolve(\".\")");
console.log(path.resolve("."));

console.log("__dirname:");
console.log(__dirname);

const args = process.argv.slice(2);
console.log("args:");
console.log(args);

const envCommitSha = process.env.TRAVIS_COMMIT || process.env.APPVEYOR_REPO_COMMIT;

console.log("TRAVIS_COMMIT:");
console.log(envCommitSha);
if (!envCommitSha) {
    console.log("Missing TRAVIS_COMMIT! Abort.");
    process.exit(1);
    return;
}

console.log("TRAVIS_TAG:");
console.log(process.env.TRAVIS_TAG);
if (!process.env.TRAVIS_TAG) {
{'fraction_non_alphanumeric': 0.19742007851934942, 'fraction_numerical': 0.014582164890633763, 'mean_word_length': 5.7320754716981135, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 5, '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': '5077781', 'n_tokens_mistral': 684, 'n_tokens_neox': 677, 'n_words': 92}