<commit_before>var preset = require('..'),
	es2015 = require('babel-preset-es2015'),
	assert = require('assert');

// strip a nested module path + filename down to just the innermost module's (file)name
function getModuleName(path) {
	return path.replace(/(?:(?:.+\/)?node_modules\/|\/|\.\.\/)((@[^\/]+\/)?[^\/]+)(\/.*)?$/g, '$1');
}

console.log(preset.plugins.map(function(p) {
	var name = getModuleName(( Array.isArray(p) ? p[0] : p )._original_name);<commit_msg>fix test<commit_after>var preset = require('..'),
	es2015 = require('babel-preset-es2015'),
	assert = require('assert');

// strip a nested module path + filename down to just the innermost module's (file)name
function getModuleName(path) {
	return String(path).replace(/(?:(?:.+\/)?node_modules\/|\/|\.\.\/)((@[^\/]+\/)?[^\/]+)(\/.*)?$/g, '$1');
}

console.log(preset.plugins.map(function(p) {
	var name = getModuleName(( Array.isArray(p) ? p[0] : p )._original_name);
{'fraction_non_alphanumeric': 0.25882352941176473, 'fraction_numerical': 0.0213903743315508, 'mean_word_length': 4.441860465116279, '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': '4066285', 'n_tokens_mistral': 354, 'n_tokens_neox': 339, 'n_words': 66}