<commit_before>import babel from 'babel'

export function translate (load) {
	let output = babel.transform(load.source, {whitelist: ['react'], sourceMap: true});
	load.source = output.code;
	load.metadata.sourceMap = output.map;
}<commit_msg>enable ES6 arrow functions temporarily<commit_after>import babel from 'babel'

export function translate (load) {
	let output = babel.transform(load.source, {whitelist: ['react', 'es6.arrowFunctions'], sourceMap: true});
	load.source = output.code;
	load.metadata.sourceMap = output.map;
}
{'fraction_non_alphanumeric': 0.13559322033898305, 'fraction_numerical': 0.003766478342749529, 'mean_word_length': 6.093333333333334, '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': '3640596', 'n_tokens_mistral': 167, 'n_tokens_neox': 163, 'n_words': 43}