<commit_before>/*
 * Bootstrap mold.
 */
function (out, skipper) {
	function genIcon(icon, type) {
		out.push('<span id="', uuid, '-', type, '" class="panel-icon glyphicon glyphicon-', icon, '" />')
	};
	
	var uuid = this.uuid,
		title = this.getTitle(),
		caption = this.caption,
		sclass = this.getSclass() || 'panel-primary',
		contentStyle = this.getContentStyle(),
		contentSclass = this.getContentSclass();

	out.push('<div class="panel ', sclass, '" ', this.domAttrs_({domClass:1}), '>');
	
	if (caption || title) {
		out.push('<div id="', uuid, '-cap" class="panel-heading">');
		
		if (caption) {
			var vis = caption.isVisible(),
				title2 = vis ? caption.getLabel() : null;
			
			if (title2) {
				if (title) {
					title += ' - ' + title2;
				} else {
					title = title2;
				}
			}
			
			var w = caption.firstChild;
			
			if (w) {
				out.push('<div class="panel-caption ', caption.getSclass(), '" ', caption.domAttrs_({domClass:1}), '>');
	
				for (; w; w = w.nextSibling)
					w.redraw(out);
				
				out.push('</div>');
			}
		}
		
		if (this._closable) {
			genIcon('remove', 'close');
		}
		
		if (this._maximizable) {
			genIcon(this._maximized ? 'resize-small' : 'resize-full', 'max');
		}
		
		if (this._minimizable) {
			genIcon('plus', 'min');
		}
		
		if (title) {
			out.push('<span class="panel-title">', zUtl.encodeXML(title), '</span>');
		}
		
		out.push('</div>');
	} 
	
	out.push('<span id="', uuid, '-cave" class="');
	
	if (contentSclass)
		out.push(contentSclass, ' ');
	
	out.push('panel-content" ');
	
	if (contentStyle)
		out.push(' style="', contentStyle, '"');
	
	out.push('>');

	if (!skipper)
		for (var w = this.firstChild; w; w = w.nextSibling)
			if (w != caption)
				w.redraw(out);
	
	out.push('</span></div>');
}<commit_msg>Fix bootstrap mold anomalies.<commit_after>/*
 * Bootstrap mold.
 */
function (out, skipper) {
	function genIcon(icon, type) {
		out.push('<span id="', uuid, '-', type, '" class="panel-icon glyphicon glyphicon-', icon, '" />')
	};
	
	var uuid = this.uuid,
		title = this.getTitle(),
		caption = this.caption,
		sclass = this.getSclass() || 'panel-primary',
		contentStyle = this.getContentStyle(),
		contentSclass = this.getContentSclass();

	out.push('<div class="panel ', sclass, '" ', this.domAttrs_({domClass:1}), '>');
	
	if (caption || title) {
		out.push('<div id="', uuid, '-cap" class="panel-heading">');
		
		if (caption) {
			var vis = caption.isVisible(),
				title2 = vis ? caption.getLabel() : null;
			
			if (title2) {
				if (title) {
					title += ' - ' + title2;
				} else {
					title = title2;
				}
			}
			
			var w = caption.firstChild;
			
			if (w) {
				out.push('<div class="panel-caption ', caption.getSclass(), '" ', caption.domAttrs_({domClass:1}), '>');
	
				for (; w; w = w.nextSibling)
					w.redraw(out);
				
				out.push('</div>');
			}
		}
		
		if (this._closable) {
			genIcon('remove', 'close');
		}
		
		if (this._maximizable) {
			genIcon(this._maximized ? 'resize-small' : 'resize-full', 'max');
		}
		
		if (this._minimizable) {
			genIcon('minus', 'min');
		}
		
		if (title) {
			out.push('<span class="panel-title">', zUtl.encodeXML(title), '</span>');
		}
		
		out.push('</div>');
	} 
	
	out.push('<div id="', uuid, '-cave" class="');
	
	if (contentSclass)
		out.push(contentSclass, ' ');
	
	out.push('panel-content" ');
	
	if (contentStyle)
		out.push(' style="', contentStyle, '"');
	
	out.push('>');

	if (!skipper)
		for (var w = this.firstChild; w; w = w.nextSibling)
			if (w != caption)
				w.redraw(out);
	
	out.push('</div></div>');
}
{'fraction_non_alphanumeric': 0.21814617754130497, 'fraction_numerical': 0.0033604032483898066, 'mean_word_length': 3.0089786756453423, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '4156366', 'n_tokens_mistral': 1589, 'n_tokens_neox': 1318, 'n_words': 255}