<commit_before>import { readFileSync } from 'fs';
import buble from 'rollup-plugin-buble';
import nodeResolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import json from 'rollup-plugin-json';

var pkg = JSON.parse( readFileSync( 'package.json', 'utf-8' ) );

var commitHash = (function () {
	try {
		return readFileSync( '.commithash', 'utf-8' );
	} catch ( err ) {
		return 'unknown';
	}
})();

var banner = readFileSync( 'src/banner.js', 'utf-8' )
	.replace( '${version}', pkg.version )
	.replace( '${time}', new Date() )
	.replace( '${commitHash}', commitHash );

export default {
	entry: 'src/node-entry.js',
	plugins: [
		json(),

		buble({
			include: [ 'src/**', 'node_modules/acorn/**' ],
			target: {
				node: '0.12'
			}
		}),

		nodeResolve({
			jsnext: true
		}),

		commonjs()
	],
	external: [
		'fs',
		'path'
	],
	banner: banner,
	sourceMap: true,
	moduleName: 'rollup',
	targets: [
		{ dest: 'dist/rollup.js', format: 'cjs' },
		{ dest: 'dist/rollup.es.js', format: 'es' }
	]
};<commit_msg>update config, squelch warnings. closes #1544<commit_after>import { readFileSync } from 'fs';
import buble from 'rollup-plugin-buble';
import nodeResolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import json from 'rollup-plugin-json';

var pkg = JSON.parse( readFileSync( 'package.json', 'utf-8' ) );

var commitHash = (function () {
	try {
		return readFileSync( '.commithash', 'utf-8' );
	} catch ( err ) {
		return 'unknown';
	}
})();

var banner = readFileSync( 'src/banner.js', 'utf-8' )
	.replace( '${version}', pkg.version )
	.replace( '${time}', new Date() )
	.replace( '${commitHash}', commitHash );

export default {
	entry: 'src/node-entry.js',
	plugins: [
		json(),

		buble({
			include: [ 'src/**', 'node_modules/acorn/**' ],
			target: {
				node: '0.12'
			}
		}),

		nodeResolve({
			jsnext: true
		}),

		commonjs()
	],
	external: [
		'fs',
		'path',
		'events',
		'module'
	],
	banner,
	sourceMap: true,
	moduleName: 'rollup',
	targets: [
		{ dest: 'dist/rollup.js', format: 'cjs' },
		{ dest: 'dist/rollup.es.js', format: 'es' }
	]
};
{'fraction_non_alphanumeric': 0.20093457943925233, 'fraction_numerical': 0.007476635514018692, 'mean_word_length': 3.6951754385964914, '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': '4286131', 'n_tokens_mistral': 886, 'n_tokens_neox': 824, 'n_words': 182}