<commit_before>/* eslint-disable no-undef */
// eslint-disable-next-line func-names
$(window).ready(() => {
	function getPayload(tableRow) {
		const data = tableRow.find('td[data-payload]').data('payload');
		const json = JSON.parse(decodeURIComponent(atob(data).split('').map((value) => '%' + (`00${value.charCodeAt(0).toString(16)}`).slice(-2)).join('')));
		return json;
	}

	function displayModalTeamMembers(headline, content) {
		const $memberModal = $('.member-modal');

		populateModal($memberModal, '.modal-title', headline);
		populateModal($memberModal, '#member-modal-body', content);

		$memberModal.appendTo('body').modal('show');
	}

	$('.btn-show-members').on('click', function showMemebers(e) {
		e.preventDefault();

		const parent = $(this).closest('tr');
		const { members } = getPayload(parent);

		let teamMembers = '<NAME>';
		if ((members || []).length !== 0) {
			teamMembers = '<ol>';
			members.forEach((member) => {
				const { user } = member; // userId was populated
				if (user.fullName) {
					teamMembers = `${teamMembers}<li>${user.fullName} (${
						member.role
					})</li>`;
				} else {
					teamMembers = `${teamMembers}<li>${user.firstName} ${
						user.lastName<commit_msg>Fix regarding to code quality<commit_after>/* eslint-disable no-undef */
// eslint-disable-next-line func-names
$(window).ready(() => {
	function getPayload(tableRow) {
		const data = tableRow.find('td[data-payload]').data('payload');
		const json = JSON.parse(decodeURIComponent(atob(data).split('').map((value) => {
			const germanLetter = `00${value.charCodeAt(0).toString(16)}`;
			return `%${(germanLetter).slice(-2)}`}).join('')));
		return json;
	}

	function displayModalTeamMembers(headline, content) {
		const $memberModal = $('.member-modal');

		populateModal($memberModal, '.modal-title', headline);
		populateModal($memberModal, '#member-modal-body', content);

		$memberModal.appendTo('body').modal('show');
	}

	$('.btn-show-members').on('click', function showMemebers(e) {
		e.preventDefault();

		const parent = $(this).closest('tr');
		const { members } = getPayload(parent);

		let teamMembers = '<NAME>';
		if ((members || []).length !== 0) {
			teamMembers = '<ol>';
			members.forEach((member) => {
				const { user } = member; // userId was populated
				if (user.fullName) {
					teamMembers = `${teamMembers}<li>${user.fullName} (${
						member.role
					})</li>`;
				} else {
					teamMembers = `${teamMembers}<li>${user.firstName} ${
						user.lastName
{'fraction_non_alphanumeric': 0.20728291316526612, 'fraction_numerical': 0.0056022408963585435, 'mean_word_length': 4.307855626326964, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 19, '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': '4539924', 'n_tokens_mistral': 926, 'n_tokens_neox': 806, 'n_words': 139}