<commit_before>'use strict';

module.exports = function (data) {
	if (data.minify !== 'css') {return data;}
	
	var CleanCSS = require('clean-css');
	var result = new CleanCSS({
		processImport: false,
		rebase: false,
		roundingPrecision: -1,
		advanced: true,
		aggressiveMerging: false,
		restructuring: false,
		shorthandCompacting: false
	}).minify(data.value);
	
	if (result.errors[0]) {
		throw new Error(result.errors[0]);<commit_msg>css minifing now does shorthand comptacting<commit_after>'use strict';

module.exports = function (data) {
	if (data.minify !== 'css') {return data;}
	
	var CleanCSS = require('clean-css');
	var result = new CleanCSS({
		processImport: false,
		rebase: false,
		roundingPrecision: -1,
		advanced: true,
		aggressiveMerging: false,
		restructuring: false,
		shorthandCompacting: true
	}).minify(data.value);
	
	if (result.errors[0]) {
		throw new Error(result.errors[0]);
{'fraction_non_alphanumeric': 0.14270032930845225, 'fraction_numerical': 0.006586169045005488, 'mean_word_length': 4.772151898734177, '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': '3051517', 'n_tokens_mistral': 340, 'n_tokens_neox': 308, 'n_words': 78}