<commit_before>

/* Hides the required content that is just needed for display on 
 xslt-conref for topic, ol/li, ul/li, table */
*[class~="topic/topic"][*|xsl]:not([conaction]) > *[class~="topic/topic"],
*[class~="topic/table"][*|xsl]:not([conaction]) > *[class~="topic/table"],
*[class~="topic/ol"][*|xsl]:not([conaction]) > *[class~="topic/ol"],
*[class~="topic/ul"][*|xsl]:not([conaction]) > *[class~="topic/ul"],
*[class~="topic/dl"][*|xsl]:not([conaction]) > *[class~="topic/dl"],
*[class~="topic/prodinfo"][*|xsl]:not([conaction]) > *[class~="topic/prodinfo"],
*[class~="topic/ph"][*|xsl]:not([conaction]) > *[class~="topic/ph"],
*[class~="topic/dlentry"][*|xsl]:not([conaction]) > *[class~="topic/dlentry"] {
    display : inherit;
}

*[class~="topic/simpletable"][*|xsl]:not([conaction]) > *[class~="topic/simpletable"] {
    display : table;
}

*[class~="topic/table"][*|xsl]:not([conaction]) > *,    
*[class~="topic/simpletable"][*|xsl]:not([conaction]) > *,
*[class~="topic/ol"][*|xsl]:not([conaction]) > *,
*[class~="topic/ul"][*|xsl]:not([conaction]) > *, 
*[class~="topic/topic"][*|xsl]:not([conaction]) > *,
*[class~="topic/dl"][*|xsl]:not([conaction]) > *,
*[class~="topic/prodinfo"][*|xsl]:not([conaction]) > *,
*[class~="topic/ph"][*|xsl]:not([conaction]) > *,
*[class~="topic/dlentry"][*|xsl]:not([conaction]) > * {
    display : none;
}

/* avoid double border on conref reference table */
*[class~="topic/simpletable"][conref]:not([conaction]),
*[class~="topic/simpletable"][conkeyref]:not([conaction]),
*[class~="topic/simpletable"][*|xsl]:not([conaction]),
*[class~="topic/tgroup"][conref]:not([conaction]),
*[class~="topic/tgroup"][conkeyref]:not([conaction]),
*[class~="topic/tgroup"][*|xsl]:not([conaction]) {
	border: none;
}

/* Remove static text, no margins */
*[*|xsl]:not([conaction]):before {
    content:	"";
    display:	inline;
    margin:		0px;
}


*[class~="topic/table"][*|xsl]:not([conaction])
*[class~="topic/simpletable"][*|xsl]:not([conaction]){
    display : block;
}

*[class~="topic/dd"][*|xsl] > * {
	margin-left: 0;
}

*[class~="topic/row"][*|xsl] {
  	content: "" !important;
}


/* Modify Header before xslt-conref  */

@OpenXsltConrefScriptButton: 
		oxy_button(
			action, oxy_action(
		            name, 			'Open Script', 
		            description, 	'Open XSLT-Conref XSL Script file', 
		            icon, 			url('../img/openScript.png'), 
		            operation, 		'org.DitaSemia.Oxygen.XsltConref.OpenXsltConrefFile'
		            arg-filetype,	'script'),
			transparent, 				true,
			showIcon, 					true,
			enableInReadOnlyContext, 	true);
			
@OpenXsltConrefSourceButton: 
		oxy_button(
  			action, oxy_action(
		            name, 			'Open Source', 
		            description, 	'Open XSLT-Conref XML Source file', 
		            icon, 			url('../img/openSource.png'), 
		            operation, 		'org.DitaSemia.Oxygen.XsltConref.OpenXsltConrefFile'
		            arg-filetype,	'source'),
			transparent, 				true,
			showIcon, 					true,
			enableInReadOnlyContext, 	true);

@XsltConrefRefreshButton: 
  		oxy_button(
  			action, oxy_action(
		            name, 			'Refresh', 
		            description, 	'Refresh the XSLT-Conref', 
		            icon, 			url('../img/refreshReference.png'), 
		            operation, 		'org.DitaSemia.Oxygen.XsltConref.RefreshXsltConref'),
			transparent, 				true,
			showIcon, 					true,
			enableInReadOnlyContext, 	true);

*[*|xsl] > oxy|error:before,
*[*|xsl] > oxy|reference:before {
    background-color: rgb(240, 240, 240) !important;
	display: -oxy-morph !important;
  	content: 
  		@OpenXsltConrefScriptButton
  		@XsltConrefRefreshButton
  		!important;
}

*[*|xsl][*|source] > oxy|error:before,
*[*|xsl][*|source] > oxy|reference:before {
  	content: 
  		@OpenXsltConrefScriptButton
  		@OpenXsltConrefSourceButton
  		@XsltConrefRefreshButton
  		!important; 
}

*[*|xsl] > oxy|error:before,<commit_msg>don't display button to open source when source is explicitly set to empty<commit_after>

/* Hides the required content that is just needed for display on 
 xslt-conref for topic, ol/li, ul/li, table */
*[class~="topic/topic"][*|xsl]:not([conaction]) > *[class~="topic/topic"],
*[class~="topic/table"][*|xsl]:not([conaction]) > *[class~="topic/table"],
*[class~="topic/ol"][*|xsl]:not([conaction]) > *[class~="topic/ol"],
*[class~="topic/ul"][*|xsl]:not([conaction]) > *[class~="topic/ul"],
*[class~="topic/dl"][*|xsl]:not([conaction]) > *[class~="topic/dl"],
*[class~="topic/prodinfo"][*|xsl]:not([conaction]) > *[class~="topic/prodinfo"],
*[class~="topic/ph"][*|xsl]:not([conaction]) > *[class~="topic/ph"],
*[class~="topic/dlentry"][*|xsl]:not([conaction]) > *[class~="topic/dlentry"] {
    display : inherit;
}

*[class~="topic/simpletable"][*|xsl]:not([conaction]) > *[class~="topic/simpletable"] {
    display : table;
}

*[class~="topic/table"][*|xsl]:not([conaction]) > *,    
*[class~="topic/simpletable"][*|xsl]:not([conaction]) > *,
*[class~="topic/ol"][*|xsl]:not([conaction]) > *,
*[class~="topic/ul"][*|xsl]:not([conaction]) > *, 
*[class~="topic/topic"][*|xsl]:not([conaction]) > *,
*[class~="topic/dl"][*|xsl]:not([conaction]) > *,
*[class~="topic/prodinfo"][*|xsl]:not([conaction]) > *,
*[class~="topic/ph"][*|xsl]:not([conaction]) > *,
*[class~="topic/dlentry"][*|xsl]:not([conaction]) > * {
    display : none;
}

/* avoid double border on conref reference table */
*[class~="topic/simpletable"][conref]:not([conaction]),
*[class~="topic/simpletable"][conkeyref]:not([conaction]),
*[class~="topic/simpletable"][*|xsl]:not([conaction]),
*[class~="topic/tgroup"][conref]:not([conaction]),
*[class~="topic/tgroup"][conkeyref]:not([conaction]),
*[class~="topic/tgroup"][*|xsl]:not([conaction]) {
	border: none;
}

/* Remove static text, no margins */
*[*|xsl]:not([conaction]):before {
    content:	"";
    display:	inline;
    margin:		0px;
}


*[class~="topic/table"][*|xsl]:not([conaction])
*[class~="topic/simpletable"][*|xsl]:not([conaction]){
    display : block;
}

*[class~="topic/dd"][*|xsl] > * {
	margin-left: 0;
}

*[class~="topic/row"][*|xsl] {
  	content: "" !important;
}


/* Modify Header before xslt-conref  */

@OpenXsltConrefScriptButton: 
		oxy_button(
			action, oxy_action(
		            name, 			'Open Script', 
		            description, 	'Open XSLT-Conref XSL Script file', 
		            icon, 			url('../img/openScript.png'), 
		            operation, 		'org.DitaSemia.Oxygen.XsltConref.OpenXsltConrefFile'
		            arg-filetype,	'script'),
			transparent, 				true,
			showIcon, 					true,
			enableInReadOnlyContext, 	true);
			
@OpenXsltConrefSourceButton: 
		oxy_button(
  			action, oxy_action(
		            name, 			'Open Source', 
		            description, 	'Open XSLT-Conref XML Source file', 
		            icon, 			url('../img/openSource.png'), 
		            operation, 		'org.DitaSemia.Oxygen.XsltConref.OpenXsltConrefFile'
		            arg-filetype,	'source'),
			transparent, 				true,
			showIcon, 					true,
			enableInReadOnlyContext, 	true);

@XsltConrefRefreshButton: 
  		oxy_button(
  			action, oxy_action(
		            name, 			'Refresh', 
		            description, 	'Refresh the XSLT-Conref', 
		            icon, 			url('../img/refreshReference.png'), 
		            operation, 		'org.DitaSemia.Oxygen.XsltConref.RefreshXsltConref'),
			transparent, 				true,
			showIcon, 					true,
			enableInReadOnlyContext, 	true);

*[*|xsl] > oxy|error:before,
*[*|xsl] > oxy|reference:before {
    background-color: rgb(240, 240, 240) !important;
	display: -oxy-morph !important;
  	content: 
  		@OpenXsltConrefScriptButton
  		@XsltConrefRefreshButton
  		!important;
}

*[*|xsl][*|source]:not([*|source=""]) > oxy|error:before,
*[*|xsl][*|source]:not([*|source=""]) > oxy|reference:before {
  	content: 
  		@OpenXsltConrefScriptButton
  		@OpenXsltConrefSourceButton
  		@XsltConrefRefreshButton
  		!important; 
}

*[*|xsl] > oxy|error:before,
{'fraction_non_alphanumeric': 0.22173200554645153, 'fraction_numerical': 0.0027732257657884785, 'mean_word_length': 4.202622950819672, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 51, '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': '509172', 'n_tokens_mistral': 3313, 'n_tokens_neox': 3029, 'n_words': 387}