<commit_before>/* Expand Outlines - Multiple */

function duplicateOutline(obj, strokeW, color) {
}
function extraOutlines(objectGroup, strokeW, color) {
}
function buildOutlineStack(objectGroup) {
		$.writeln (objectGroup);
		var groups  = objectGroup.groupItems;
		for (i = 0; i < groups.length; i++) {
			$.writeln (groups[i]);
			var group = groups[i];
			
			var compounds = group.compoundPathItems;
			for (j = 0; j < compounds.length; j++) {
				$.writeln(compounds[j]);
				var compound = compounds[j];
				
				var paths = compound.pathItems;
				$.writeln (paths.length);
				for (k = 0; k < paths.length; k++) {
					$.writeln(paths[k]);
					var path = paths[k];
					path.strokeColor = path.fillColor;
					path.strokeWidth = 25.0;
				}
			}
		}
}

var doc = app.activeDocument;
var elements = doc.layers[0];
$.writeln (elements);
buildOutlineStack(elements);<commit_msg>Step 1: adding greyish stroke. (Still is much easier done in Illustrator itself)<commit_after>/* Expand Outlines - Multiple */

function duplicateOutline(compound, strokeW, color) {
	var paths = compound.pathItems;
	$.writeln (paths.length);
	for (k = 0; k < paths.length; k++) {
		$.writeln(paths[k]);
		var path = paths[k];
		path.strokeColor = color;
		path.fillColor = color;
		path.strokeWidth = strokeW;
	}
}
function extraOutlines(objectGroup, strokeW, color) {
	
	var compounds = objectGroup.compoundPathItems;
	for (j = 0; j < compounds.length; j++) {
		$.writeln(compounds[j]);
		var compoundObj = compounds[j];
		
		duplicateOutline(compoundObj, strokeW, color);
	}
}
function buildOutlineStack(objectGroup) {
	$.writeln (objectGroup);
	var groups  = objectGroup.groupItems;
	for (i = 0; i < groups.length; i++) {
		$.writeln (groups[i]);
		var group = groups[i];
		
		var grey = new RGBColor();
		grey.red = 144;
		grey.green = 172;
		grey.blue = 169;
		extraOutlines(group, 20.0, grey);
	}
}

var doc = app.activeDocument;
var elements = doc.layers[0];
$.writeln (elements);
buildOutlineStack(elements);
{'fraction_non_alphanumeric': 0.14842578710644677, 'fraction_numerical': 0.01199400299850075, 'mean_word_length': 3.824096385542169, 'pattern_counts': {'":': 0, '<': 9, '<?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': '5093772', 'n_tokens_mistral': 788, 'n_tokens_neox': 674, 'n_words': 171}