<commit_before>const path = require('path');
const async = require('async');
const semver = require('semver');
const fs = require('fs');
const glob = require('globby');
const _ = require('lodash');
const git = require('simple-git');
const writeJsonFile = require('write-json-file');

// insert defaults here

var self = function(type='patch',options,done){
	if(typeof options === 'function'){
		done = options;
	}

	var defaults = {
		files:['bower.json','package.json'],
		dest:process.env.PWD,
		message:'new version'
	}

	if(!type || !semver.inc('0.0.1',type)) type = 'patch';

	var getFiles = function(files){
		return _.map(files,function(file){
			return path.join(options.dest,file);
		})
	}<commit_msg>node 5 compatible<commit_after>const path = require('path');
const async = require('async');
const semver = require('semver');
const fs = require('fs');
const glob = require('globby');
const _ = require('lodash');
const git = require('simple-git');
const writeJsonFile = require('write-json-file');

// insert defaults here

var self = function(type,options,done){
	if(typeof options === 'function'){
		done = options;
	}

	var defaults = {
		files:['bower.json','package.json'],
		dest:process.env.PWD,
		message:'new version'
	}

	if(!type || !semver.inc('0.0.1',type)) type = 'patch';

	var getFiles = function(files){
		return _.map(files,function(file){
			return path.join(options.dest,file);
		})
	}
{'fraction_non_alphanumeric': 0.18714689265536724, 'fraction_numerical': 0.0049435028248587575, 'mean_word_length': 5.134199134199134, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2413798', 'n_tokens_mistral': 488, 'n_tokens_neox': 461, 'n_words': 104}