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

/**
 * Clone all repositories of a given user at GitHub,
 * by ordering them according to fork/contributing/mine
 *
 * @see https://developer.github.com/v3/repos/#list-user-repositories
 */
'use strict';

const fs = require('fs'),
	path = require('path'),
  spawnSync = require('child_process').spawnSync;

const mkdirp = require('mkdirp').sync,
  ghGot = require('gh-got'),
  commander = require('commander');

var pjson = fs.readFileSync(path.join(__dirname, 'package.json'), 'utf8');
var info = parseJson(pjson);

console.log(info.name + ' - Clone all GitHub repositories of a given user');

commander
  .version('v' + info.version + ' licensed under ' + info.license)
  .usage('[options] <username> <target path>')
  .option('-t, --token', 'GitHub API personal authentication token')
  .option('-s, --save-json', 'Save API calls as JSON files, possibly for debugging')
 // .option('-x, --exclude', 'Exclude certain type of repositories, [fork]')
  .parse(process.argv);<commit_msg>Remember to have license header<commit_after>#!/usr/bin/env node

/**
 * maezato
 * https://github.com/paazmaya/maezato
 *
 * Clone all repositories of a given user at GitHub,
 * by ordering them according to fork/contributing/mine
 * @see https://developer.github.com/v3/repos/#list-user-repositories
 *
 * Copyright (c) <NAME>
 * Licensed under the MIT license
 */

'use strict';

const fs = require('fs'),
	path = require('path'),
  spawnSync = require('child_process').spawnSync;

const mkdirp = require('mkdirp').sync,
  ghGot = require('gh-got'),
  commander = require('commander');

var pjson = fs.readFileSync(path.join(__dirname, 'package.json'), 'utf8');
var info = parseJson(pjson);

console.log(info.name + ' - Clone all GitHub repositories of a given user');

commander
  .version('v' + info.version + ' licensed under ' + info.license)
  .usage('[options] <username> <target path>')
  .option('-t, --token', 'GitHub API personal authentication token')
  .option('-s, --save-json', 'Save API calls as JSON files, possibly for debugging')
 // .option('-x, --exclude', 'Exclude certain type of repositories, [fork]')
  .parse(process.argv);
{'fraction_non_alphanumeric': 0.1662062615101289, 'fraction_numerical': 0.001841620626151013, 'mean_word_length': 4.392059553349876, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 3, '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': '150680', 'n_tokens_mistral': 724, 'n_tokens_neox': 689, 'n_words': 191}