<commit_before>header.toolbar.toolbar-header(ng-cloak, ng-hide="state.loading")
	a.btn.btn-full-height(
		href,
		ng-click="ui.leftMenuShown = true"
		tooltip='#{translate("menu")}',
		tooltip-placement="bottom",
		tooltip-append-to-body="true"
	)
		i.fa.fa-fw.fa-bars
	a(
		href="/project"
		tooltip="#{translate('back_to_projects')}",
		tooltip-placement="bottom",
		tooltip-append-to-body="true"
	)
		i.fa.fa-fw.fa-level-up
	span(ng-controller="PdfViewToggleController")
		a(
			href,
			ng-show="ui.pdfLayout == 'flat' && fileTreeClosed",
			tooltip="PDF",
			tooltip-placement="bottom",
			tooltip-append-to-body="true",
			ng-click="togglePdfView()",
			ng-class="{ 'active': ui.view == 'pdf' }"
		)
			i.fa.fa-file-pdf-o

	.toolbar-center.project-name(ng-controller="ProjectNameController")
		span.name(
			ng-dblclick="startRenaming()",
			ng-show="!state.renaming"
		) {{ project.name }}

		input.form-control(
			type="text"
			ng-model="inputs.name",
			ng-show="state.renaming",
			on-enter="finishRenaming()",
			ng-blur="finishRenaming()",
			select-name-when="state.renaming"
		)

		a.rename(
			href='#',
			tooltip-placement="bottom",
			tooltip="#{translate('rename')}",
			tooltip-append-to-body="true",
			ng-click="startRenaming()",
			ng-show="!state.renaming"
		)
			i.fa.fa-pencil

	.toolbar-right
		span.online-users(
			ng-show="onlineUsersArray.length > 0"
			ng-controller="OnlineUsersController"
		)
			span.online-user(
				ng-repeat="user in onlineUsersArray",
				ng-style="{ 'background-color': 'hsl({{ getHueForUserId(user.user_id) }}, 70%, 50%)' }",
				popover="{{ user.name }}"
				popover-placement="bottom"<commit_msg>don't allow renaming in client if user is not owner<commit_after>header.toolbar.toolbar-header(ng-cloak, ng-hide="state.loading")
	a.btn.btn-full-height(
		href,
		ng-click="ui.leftMenuShown = true"
		tooltip='#{translate("menu")}',
		tooltip-placement="bottom",
		tooltip-append-to-body="true"
	)
		i.fa.fa-fw.fa-bars
	a(
		href="/project"
		tooltip="#{translate('back_to_projects')}",
		tooltip-placement="bottom",
		tooltip-append-to-body="true"
	)
		i.fa.fa-fw.fa-level-up
	span(ng-controller="PdfViewToggleController")
		a(
			href,
			ng-show="ui.pdfLayout == 'flat' && fileTreeClosed",
			tooltip="PDF",
			tooltip-placement="bottom",
			tooltip-append-to-body="true",
			ng-click="togglePdfView()",
			ng-class="{ 'active': ui.view == 'pdf' }"
		)
			i.fa.fa-file-pdf-o

	.toolbar-center.project-name(ng-controller="ProjectNameController")
		span.name(
			ng-dblclick="!permissions.admin || startRenaming()",
			ng-show="!state.renaming"
		) {{ project.name }}

		input.form-control(
			type="text"
			ng-model="inputs.name",
			ng-show="state.renaming",
			on-enter="finishRenaming()",
			ng-blur="finishRenaming()",
			select-name-when="state.renaming"
		)

		a.rename(
			ng-if="permissions.admin",
			href='#',
			tooltip-placement="bottom",
			tooltip="#{translate('rename')}",
			tooltip-append-to-body="true",
			ng-click="startRenaming()",
			ng-show="!state.renaming"
		)
			i.fa.fa-pencil

	.toolbar-right
		span.online-users(
			ng-show="onlineUsersArray.length > 0"
			ng-controller="OnlineUsersController"
		)
			span.online-user(
				ng-repeat="user in onlineUsersArray",
				ng-style="{ 'background-color': 'hsl({{ getHueForUserId(user.user_id) }}, 70%, 50%)' }",
				popover="{{ user.name }}"
				popover-placement="bottom"
{'fraction_non_alphanumeric': 0.19770857814336076, 'fraction_numerical': 0.002937720329024677, 'mean_word_length': 4.0594353640416045, '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': '1454485', 'n_tokens_mistral': 1454, 'n_tokens_neox': 1256, 'n_words': 148}