<commit_before>// User: Chosen business process main display

'use strict';

var _ = require('mano').i18n.bind('View: Business process summary'),
	loc = require('mano/lib/client/location'),
	documentsAndDataBrief = require('./_business-process-documents-and-data-brief.js');

exports._parent = require('./user');
exports._match = 'businessProcess';

exports['user-account-data'] = { class: { active: true } };
exports['user-account-content'] = function () {
	var businessSelect
	  , initialBusinessProcesses = this.user.initialBusinessProcesses;

	insert(_if(gt(initialBusinessProcesses._size, 1),
		[div({ class: "section-primary-sub" },
			p(label({ for: 'business-process-select' },
				_("Please select an entity in the selector below to display it documents and data"))),
			p({ class: 'user-account-selector' },
				businessSelect = select({ id: 'business-process-select' },
					option({ value: '/', selected: eq(loc._pathname, '/') },
						_("Select an entity to display its documents and data")),
					list(initialBusinessProcesses, function (process) {
						option({
							value: '/requests/' + process.__id__ + '/',<commit_msg>Add legend rule before user requests selector<commit_after>// User: Chosen business process main display

'use strict';

var _ = require('mano').i18n.bind('View: Business process summary'),
	loc = require('mano/lib/client/location'),
	documentsAndDataBrief = require('./_business-process-documents-and-data-brief.js');

exports._parent = require('./user');
exports._match = 'businessProcess';

exports['user-account-data'] = { class: { active: true } };
exports['user-account-content'] = function () {
	var businessSelect
	  , initialBusinessProcesses = this.user.initialBusinessProcesses;

	insert(_if(gt(initialBusinessProcesses._size, 1),
		[div({ class: "section-primary-sub" },
			p(label({ for: 'business-process-select', class: 'section-primary-legend' },
				_("Please select an entity in the selector below to display it documents and data"))),
			p({ class: 'user-account-selector' },
				businessSelect = select({ id: 'business-process-select' },
					option({ value: '/', selected: eq(loc._pathname, '/') },
						_("Select an entity to display its documents and data")),
					list(initialBusinessProcesses, function (process) {
						option({
							value: '/requests/' + process.__id__ + '/',
{'fraction_non_alphanumeric': 0.15850021303792075, 'fraction_numerical': 0.0025564550489987218, 'mean_word_length': 4.550827423167848, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4473876', 'n_tokens_mistral': 759, 'n_tokens_neox': 667, 'n_words': 170}