<commit_before>-# Dependencies
-use Bkwld\Decoy\Controllers\Elements
-use Illuminate\Support\Collection

-# Form tag
!=Former::open_vertical_for_files()->addClass('row')

-# Create navigation
.col.tab-sidebar
	%ul.nav.nav-stacked.nav-pills(role="tablist")
		-$first = 1
		-foreach($elements->groupBy('page_label') as $page => $sections)
			-$slug = Str::slug($page)
			%li(class=$first--?'active':null)
				%a.js-tooltip(href='#'.$slug data-slug=$slug data-toggle="tab" role="tab" title=$sections[0]->page_help data-placement="left")=$page

-# Create pages
.col.tab-content
	-$first = 1
	-foreach($elements->groupBy('page_label') as $page => $sections)
		-$sections = Collection::make($sections)->groupBy('section_label')
		.tab-pane(class=$first--?'active':null id=Str::slug($page))
			
			-# Create sections
			-foreach($sections as $section => $fields)
				%fieldset
					.legend
						%span.js-tooltip(title=$fields[0]->section_help)=$section

					-# Create pairs
					-foreach($fields as $el)
						!= Elements::renderField($el)

.controls.form-actions
	%button.btn.btn-success.save(type="submit")
		%span.glyphicon.glyphicon-file
		Save all tabs<commit_msg>Fixing a bug that was "activated" too many tabs<commit_after>-# Dependencies
-use Bkwld\Decoy\Controllers\Elements
-use Illuminate\Support\Collection

-# Form tag
!=Former::open_vertical_for_files()->addClass('row')

-# Create navigation
.col.tab-sidebar
	%ul.nav.nav-stacked.nav-pills(role="tablist")
		-$first = 0
		-foreach($elements->groupBy('page_label') as $page => $sections)
			-$slug = Str::slug($page)
			%li(class=$first++==0?'active':null)
				%a.js-tooltip(href='#'.$slug data-slug=$locale.'/'.$slug data-toggle="tab" role="tab" title=$sections[0]->page_help data-placement="left")=$page

-# Create pages
.col.tab-content
	-$first = 0
	-foreach($elements->groupBy('page_label') as $page => $sections)
		-$sections = Collection::make($sections)->groupBy('section_label')
		.tab-pane(class=$first++==0?'active':null id=Str::slug($page))
			
			-# Create sections
			-foreach($sections as $section => $fields)
				%fieldset
					.legend
						%span.js-tooltip(title=$fields[0]->section_help)=$section

					-# Create pairs
					-foreach($fields as $el)
						!= Elements::renderField($el)

.controls.form-actions
	%button.btn.btn-success.save(type="submit")
		%span.glyphicon.glyphicon-file
		Save all tabs
{'fraction_non_alphanumeric': 0.1907563025210084, 'fraction_numerical': 0.004201680672268907, 'mean_word_length': 4.589201877934272, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 21, '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': '6867621', 'n_tokens_mistral': 910, 'n_tokens_neox': 818, 'n_words': 131}