<commit_before>phrases, category, rulegroup, rulegroup.rule, rules, pattern,
category > rule {
    display: block;
    padding-bottom: 20;
    collapsible: yes;
}

category:before {
	content: "Category: "
	text-field(attribute, name,
                        columns, 30)
	collapser() " ";
}

phrase:before{
	content: "Id: " 
	text-field(attribute, id,
		columns, 20);
    font-size: smaller;		
	display:inline;
}					

phraseref:before{
	content: "Phrase ID: "
	text-field(attribute, idref);
    font-size: smaller;
	display:inline-block;
}					

pattern:before {
	content: "mark_from"
	number-field(attribute, mark_from,
	data-type, int, columns, 2)
	"mark_to"
	number-field(attribute, mark_to, 
	data-type, int, columns, 2)
	" case sensitive: "
	radio-buttons(attribute, case_sensitive,
		values, "yes\A no",
		checked-value, "no", 
		remove-value, "yes")
	insert-button()				
	collapser() " ";
}

marker, suggestion {
    display: inline;
    font-weight: bold;
}

phraseref, exception, token {
    display: block;
    font-size: smaller;
    padding: 1px; /* Needed to display the red border of the selection */
}

exception:before {
	display: inline-block;
	content: "Exception: "
			check-box(label, "negated"
				attribute, negate,
                checked-value, "yes",
                remove-value, "yes")
				check-box(label, "regexp", 
					   attribute, regexp, 
                       checked-value, "yes",
                       remove-value, "yes")
				check-box(label, "inflected", 
					   attribute, inflected, 
                       checked-value, "yes",
                       remove-value, "yes")
				check-box(label, "postag_regexp", 
					   attribute, postag_regexp, 
                       checked-value, "yes",
                       remove-value, "yes")
				text-field(attribute, postag,
					columns, 15)				
				check-box(label, "negated POS", 
					attribute, negate_pos,
                    checked-value, "yes",
                    remove-value, "yes")
				radio-buttons(attribute, scope,
					values, "current\A next",
					checked-value, "current")						
				;
			background-color: rgb(195, 217, 255);			
}

token:before {
	display: inline-block;
	content: "Token: "
				insert-before-button()
				check-box(label, "negated"
				attribute, negate,
                       checked-value, "yes",
                       remove-value, "yes")
				check-box(label, "regexp", 
					   attribute, regexp, 
                       checked-value, "yes",
                       remove-value, "yes")
				check-box(label, "inflected", 
					   attribute, inflected, 
                       checked-value, "yes",
                       remove-value, "yes")
				check-box(label, "postag_regexp", 
					   attribute, postag_regexp, 
                       checked-value, "yes",
                       remove-value, "yes")
				text-field(attribute, postag,
					columns, 15)
				check-box(label, "negated POS", <commit_msg>another nicer CSS version<commit_after>phrases, category, rulegroup, rulegroup.rule, rules, pattern,
category > rule {
    display: block;
    padding-bottom: 20;
    collapsible: yes;
}

category:before {
	content: "Category: "
	text-field(attribute, name,
                        columns, 30)
	collapser() " ";
}

phrase:before{
	content: "Id: " 
	text-field(attribute, id,
		columns, 20);
    font-size: smaller;		
	display:inline;
}					

phraseref:before{
	content: "Phrase ID: "
	text-field(attribute, idref);
    font-size: smaller;
	display:inline-block;
}					

pattern:before {
	content: "mark_from"
	number-field(attribute, mark_from,
	data-type, int, columns, 2,
	remove-value, "yes")
	"mark_to"
	number-field(attribute, mark_to, 
	data-type, int, columns, 2,
	remove-value, "yes")
	" case sensitive: "
	radio-buttons(attribute, case_sensitive,
		values, "yes\A no",
		checked-value, "no", 
		remove-value, "yes")
	insert-button()				
	collapser() " ";
}

marker, suggestion {
    display: inline;
    font-weight: bold;
}

phraseref, exception, token {
    display: block;
    font-size: smaller;
    padding: 1px; /* Needed to display the red border of the selection */
}

exception:before {
	display: inline-block;
	content: "Exception: "
			check-box(label, "negated"
				attribute, negate,
                checked-value, "yes",
                remove-value, "yes")
				check-box(label, "regexp", 
					   attribute, regexp, 
                       checked-value, "yes",
                       remove-value, "yes")
				check-box(label, "inflected", 
					   attribute, inflected, 
                       checked-value, "yes",
                       remove-value, "yes")
				check-box(label, "postag_regexp", 
					   attribute, postag_regexp, 
                       checked-value, "yes",
                       remove-value, "yes")
				text-field(attribute, postag,
					columns, 15)
                remove-attribute-button(attribute, postag)				
				check-box(label, "negated POS", 
					attribute, negate_pos,
                    checked-value, "yes",
                    remove-value, "yes")
				radio-buttons(attribute, scope,
					values, "current\A next",
					checked-value, "current")						
				;
			background-color: rgb(195, 217, 255);			
}

token:before {
	display: inline-block;
	content: "Token: "
				insert-before-button()
				check-box(label, "negated"
				attribute, negate,
                       checked-value, "yes",
                       remove-value, "yes")
				check-box(label, "regexp", 
					   attribute, regexp, 
                       checked-value, "yes",
                       remove-value, "yes")
				check-box(label, "inflected", 
					   attribute, inflected, 
                       checked-value, "yes",
                       remove-value, "yes")
				check-box(label, "postag_regexp", 
					   attribute, postag_regexp, 
                       checked-value, "yes",
                       remove-value, "yes")
				text-field(attribute, postag,
					columns, 15)
                remove-attribute-button(attribute, postag)									
				check-box(label, "negated POS", 
{'fraction_non_alphanumeric': 0.12774385212081202, 'fraction_numerical': 0.007261924409968642, 'mean_word_length': 2.0164260826281732, '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': '1200329', 'n_tokens_mistral': 2224, 'n_tokens_neox': 1840, 'n_words': 411}