<commit_before>'use strict';
var getDurationDaysHours = require('./get-duration-days-hours-fine-grain'),
	db                   = require('../../db'),
	statisticsTimeRowOnClick = function (currentRow, businessProcessesOfRow, showUserName) {
		var jQuery = window.jQuery,
			detailRow = currentRow.next('.detail');

		if (detailRow.length === 0) {
			var rows = businessProcessesOfRow.map(function (bp, index) {

				var user = db.User.getById(bp.processor),
					userName = user === null ? bp.processor : user.fullName,
					lastTdContent = index === 0 ? span({
						onclick: function () {
							detailRow.hide();
						},
						class: 'cursor-pointer'
					}, 'x') : '',
					tdArr = [];

				tdArr.push(td({ class: 'background-secondary width-30' }, bp.businessName));
				if (showUserName) {
					tdArr.push(td({ class: 'background-secondary width-25' }, userName));
				}
				tdArr.push(td({ class: 'background-secondary ' }, getDurationDaysHours(bp.processingTime)));
				tdArr.push(td({ class: 'background-secondary' }, new db.DateTime(bp.processingStart)));
				tdArr.push(td({ class: 'background-secondary' }, new db.DateTime(bp.processingEnd)));
				tdArr.push(td({ class: 'background-secondary' }, lastTdContent));

				return tr(tdArr);
			});

			detailRow = jQuery(tr({
				class: 'detail',
				style: 'display:none'
			}, td({ colspan: 5 }, table(rows))));

			detailRow.insertAfter(currentRow);
		}

		detailRow.toggle();
		return jQuery;
	};

module.exports = function (step, props, showUserName) {
	if (step && step.businessProcesses.length !== 0) {
		props.class = 'cursor-pointer text-decoration-underline';
		props.onclick = function () {
			statisticsTimeRowOnClick(window.jQuery(this), step.businessProcesses, showUserName);
		};
	}
};<commit_msg>remove underline<commit_after>'use strict';
var getDurationDaysHours = require('./get-duration-days-hours-fine-grain'),
	db                   = require('../../db'),
	statisticsTimeRowOnClick = function (currentRow, businessProcessesOfRow, showUserName) {
		var jQuery = window.jQuery,
			detailRow = currentRow.next('.detail');

		if (detailRow.length === 0) {
			var rows = businessProcessesOfRow.map(function (bp, index) {

				var user = db.User.getById(bp.processor),
					userName = user === null ? bp.processor : user.fullName,
					lastTdContent = index === 0 ? span({
						onclick: function () {
							detailRow.hide();
						},
						class: 'cursor-pointer'
					}, 'x') : '',
					tdArr = [];

				tdArr.push(td({ class: 'background-secondary width-30' }, bp.businessName));
				if (showUserName) {
					tdArr.push(td({ class: 'background-secondary width-25' }, userName));
				}
				tdArr.push(td({ class: 'background-secondary ' }, getDurationDaysHours(bp.processingTime)));
				tdArr.push(td({ class: 'background-secondary' }, new db.DateTime(bp.processingStart)));
				tdArr.push(td({ class: 'background-secondary' }, new db.DateTime(bp.processingEnd)));
				tdArr.push(td({ class: 'background-secondary' }, lastTdContent));

				return tr(tdArr);
			});

			detailRow = jQuery(tr({
				class: 'detail',
				style: 'display:none'
			}, td({ colspan: 5 }, table(rows))));

			detailRow.insertAfter(currentRow);
		}

		detailRow.toggle();
		return jQuery;
	};

module.exports = function (step, props, showUserName) {
	if (step && step.businessProcesses.length !== 0) {
		props.class = 'cursor-pointer';
		props.onclick = function () {
			statisticsTimeRowOnClick(window.jQuery(this), step.businessProcesses, showUserName);
		};
	}
};
{'fraction_non_alphanumeric': 0.16718794427068523, 'fraction_numerical': 0.004549331816889394, 'mean_word_length': 3.6596026490066227, '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': '3618938', 'n_tokens_mistral': 1325, 'n_tokens_neox': 1089, 'n_words': 214}