<commit_before>﻿module.exports = (options) => {
	const vulcanize = {};

	if (options.polymerApp) {
		vulcanize.options = {
			excludes: ['build/public/bower-components/polymer/polymer.html'],
			inlineScripts: true,
			inlineCss: true,
			stripComments: true
		}

		vulcanize['splash-elements'] = {
			options: {
				csp: 'scripts/splash-elements.js'
			},
			files: {
				'build/public/splash-elements.html': 'build/public/splash-elements.html'
			}
		};

		vulcanize.elements = {
			options: {
				stripExcludes: [
					// Polymer
					'build/public/bower-components/polymer/polymer.html',

					// Paper-Styles
					'build/public/bower-components/paper-styles/color.html',
					'build/public/bower-components/paper-styles/shadow.html',
					'build/public/bower-components/font-roboto/roboto.html',

					// Paper-Material
					'build/public/bower-components/paper-material/paper-material.html',
					'build/public/bower-components/paper-material/paper-material-shared-styles.html',

					// Paper-Spinner
					'build/public/bower-components/paper-spinner/paper-spinner.html',
					'build/public/bower-components/paper-spinner/paper-spinner-behavior.html',
					'build/public/bower-components/paper-spinner/paper-spinner-styles.html',
					'build/public/bower-components/iron-flex-layout/iron-flex-layout.html',

					// Neon-Animation-Runner-Behavior
					'build/public/bower-components/neon-animation/neon-animation-runner-behavior.html',
					'build/public/bower-components/neon-animation/neon-animatable-behavior.html',
					'build/public/bower-components/iron-meta/iron-meta.html',

					// Reverse-Ripple-Animation
					'build/public/bower-components/neon-animation/animations/reverse-ripple-animation.html',
					'build/public/bower-components/neon-animation/neon-shared-element-animation-behavior.html',
					'build/public/bower-components/neon-animation/neon-animation-behavior.html',
					'build/public/bower-components/neon-animation/web-animations.html',
					'build/public/bower-components/web-animations-js/web-animations-next-lite.min.js'
				],
				csp: 'scripts/elements.js'
			},
			files: {
				'build/public/elements.html': 'build/public/elements.html'
			}
		}
	}

	return vulcanize;
};<commit_msg>Fix linting issues in vulcanize.js.<commit_after>﻿const bower = 'build/public/bower-components';

module.exports = (options) => {
	const vulcanize = {};

	if (options.polymerApp) {
		vulcanize.options = {
			excludes: [`${bower}/polymer/polymer.html`],
			inlineScripts: true,
			inlineCss: true,
			stripComments: true
		};

		vulcanize['splash-elements'] = {
			options: {
				csp: 'scripts/splash-elements.js'
			},
			files: {
				'build/public/splash-elements.html': 'build/public/splash-elements.html'
			}
		};

		vulcanize.elements = {
			options: {
				stripExcludes: [
					// Polymer
					`${bower}/polymer/polymer.html`,

					// Paper-Styles
					`${bower}/paper-styles/color.html`,
					`${bower}/paper-styles/shadow.html`,
					`${bower}/font-roboto/roboto.html`,

					// Paper-Material
					`${bower}/paper-material/paper-material.html`,
					`${bower}/paper-material/paper-material-shared-styles.html`,

					// Paper-Spinner
					`${bower}/paper-spinner/paper-spinner.html`,
					`${bower}/paper-spinner/paper-spinner-behavior.html`,
					`${bower}/paper-spinner/paper-spinner-styles.html`,
					`${bower}/iron-flex-layout/iron-flex-layout.html`,

					// Neon-Animation-Runner-Behavior
					`${bower}/neon-animation/neon-animation-runner-behavior.html`,
					`${bower}/neon-animation/neon-animatable-behavior.html`,
					`${bower}/iron-meta/iron-meta.html`,

					// Reverse-Ripple-Animation
					`${bower}/neon-animation/animations/reverse-ripple-animation.html`,
					`${bower}/neon-animation/neon-shared-element-animation-behavior.html`,
					`${bower}/neon-animation/neon-animation-behavior.html`,
					`${bower}/neon-animation/web-animations.html`,
					`${bower}/web-animations-js/web-animations-next-lite.min.js`
				],
				csp: 'scripts/elements.js'
			},
			files: {
				'build/public/elements.html': 'build/public/elements.html'
			}
		};
	}

	return vulcanize;
};
{'fraction_non_alphanumeric': 0.168408262454435, 'fraction_numerical': 0.0, 'mean_word_length': 3.2875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4309888', 'n_tokens_mistral': 1755, 'n_tokens_neox': 1414, 'n_words': 119}