<commit_before>var semver = require('semver'),
	exec = require('child_process').exec,
	pkg = process.cwd() + '/package.json',
	fs = require('fs'),
	indent = require('detect-indent');

exports.bump = function(type){
	var current = require(pkg);

	current.version = semver.inc(current.version, type);

	var usedIndent = indent(fs.readFileSync(pkg, 'utf8')) || '  ';

	fs.writeFileSync(pkg, JSON.stringify(current, null, usedIndent));

	exec('git commit package.json -m "release ' + current.version + '"', function(err, stdout, stderr){
		if(err){
			console.log('commit', stderr);
		}else{
			console.log(current.version);
			exec('git tag v' + current.version, function(err, stdout, stderr){
				if(err){
					console.log(err);
				}
			});
		}
	});
};
<commit_msg>update message<commit_after>var semver = require('semver'),
	exec = require('child_process').exec,
	pkg = process.cwd() + '/package.json',
	fs = require('fs'),
	indent = require('detect-indent');

exports.bump = function(type){
	var current = require(pkg);

	current.version = semver.inc(current.version, type);

	var usedIndent = indent(fs.readFileSync(pkg, 'utf8')) || '  ';

	fs.writeFileSync(pkg, JSON.stringify(current, null, usedIndent));

	exec('git commit package.json -m "release v' + current.version + '"', function(err, stdout, stderr){
		if(err){
			console.log('commit', stderr);
		}else{
			exec('git tag v' + current.version, function(err, stdout, stderr){
				if(err){
					console.log(err);
				}else{
					console.log(current.version);
				}
			});
		}
	});
};

{'fraction_non_alphanumeric': 0.18664938431626701, 'fraction_numerical': 0.0012961762799740765, 'mean_word_length': 4.305841924398625, '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': '3324814', 'n_tokens_mistral': 587, 'n_tokens_neox': 529, 'n_words': 105}