<commit_before>'use strict';

var docopt = require('docopt').docopt;
var process = require('process');

var accumulatorClass = require('./accumulator');

var path = require('path');
var fs = require('fs');
var changeCase = require('change-case');
var protagonist = require('protagonist');
var child_process = require('child_process');
var util = require("util");
var helpers = require('./helpers').helpers;
var GoEchoV2Api = require('./goEchoV2Api');

let doc = `
Usage:
  apib2go <input_file> <output_dir>
  apib2go -h | --help | --version 
`

var docoptArgs = docopt(doc, {version: '0.0.2'});
var inputFile = docoptArgs['<input_file>'];
var outDir = docoptArgs['<output_dir>'];
var goPackageName = path.basename(outDir);

var fileContent = fs.readFileSync(inputFile);
var json = protagonist.parseSync(fileContent.toString());<commit_msg>Obtain version from the `package.json` file<commit_after>'use strict';

var docopt = require('docopt').docopt;
var process = require('process');
var packageJson = require('./package.json');

var accumulatorClass = require('./accumulator');

var path = require('path');
var fs = require('fs');
var changeCase = require('change-case');
var protagonist = require('protagonist');
var child_process = require('child_process');
var util = require("util");
var helpers = require('./helpers').helpers;
var GoEchoV2Api = require('./goEchoV2Api');

let doc = `
Usage:
  apib2go <input_file> <output_dir>
  apib2go -h | --help | --version 
`

var docoptArgs = docopt(doc, {version: packageJson.version});
var inputFile = docoptArgs['<input_file>'];
var outDir = docoptArgs['<output_dir>'];
var goPackageName = path.basename(outDir);

var fileContent = fs.readFileSync(inputFile);
var json = protagonist.parseSync(fileContent.toString());
{'fraction_non_alphanumeric': 0.1660056657223796, 'fraction_numerical': 0.006232294617563739, 'mean_word_length': 6.149797570850202, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '3759487', 'n_tokens_mistral': 565, 'n_tokens_neox': 563, 'n_words': 137}