<commit_before><div ng-controller="EntityImageController" id="theimage" class="row fullscreenrow">

	<!-- message for anonymous users -->
	<div ng-if="!allow" class="col-md-12 text-right alert alert-info">
		Sie müssen angemeldet sein um dieses Bild in hoher Auflösung betrachten zu können.<span class="glyphicon glyphicon-share-alt" style="-webkit-transform:rotate(90deg) scaleX(-1); transform:rotate(90deg) scaleX(-1); margin: 0 75px 0 10px; font-size: 20px;"></span>
	</div>

	<!-- image viewer -->
	<div zoomifyimg ng-if="allow && imageProperties.width"
			entityid="{{imageId}}"
			imageProperties="{{imageProperties}}"
			zoomifyHeight="{{imageProperties.height}}"
			zoomifiyTilesize="{{imageProperties.tilesize}}"
			style="height:100%">
	</div>

	<!-- toolbox in upper right corner -->
	<div ng-if="allow && entity" 
			class="btn-group-vertical"
			style="opacity:0.8; position:absolute; right:10px; top:60px;">
		<a class="btn btn-default btn-sm" href="entity/{{entity.entityId}}{{currentQuery.toString()}}">
			<div style="max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height:inherit;" ng-if="entity.title != ''">
				{{entity.title}}<br><i>anzeigen</i>
			</div>
		</a>
		<a class="btn btn-default btn-sm"  ng-click="downloadImage()">
			<i class="glyphicon glyphicon-download-alt"></i> Download
		</a>
		<a class="btn btn-default btn-sm" ng-href="entity/{{imageId}}">
			Bild-Metadaten
		</a>
		<button class="btn btn-default btn-sm" ng-click="requestFullscreen()">
			<span class="glyphicon glyphicon-fullscreen"></span> Vollbild
		</button>
		<a ng-if="entity.images.length > 1"
				ng-href="entity/{{entity.entityId}}/images"
				 class="btn btn-default btn-sm ">
			<span class="glyphicon glyphicon-th"></span> Alle Bilder ({{entity.images.length}})
		</a>
	</div>

	<!-- paging -->
	<div ng-if="allow && entity.images"
			style="opacity:0.8; position:absolute; bottom:10px; left:50%; margin-left:-80px">

		<a ng-if="imageIndex == 0"
				class="btn btn-link disabled"
				style="font-size:30px">
			<span class="glyphicon glyphicon-circle-arrow-left"></span><commit_msg>fix and translate buttons in image view (closes #2023)<commit_after><div ng-controller="EntityImageController" id="theimage" class="row fullscreenrow">

	<!-- message for anonymous users -->
	<div ng-if="!allow" class="col-md-12 text-right alert alert-info">
		Sie müssen angemeldet sein um dieses Bild in hoher Auflösung betrachten zu können.<span class="glyphicon glyphicon-share-alt" style="-webkit-transform:rotate(90deg) scaleX(-1); transform:rotate(90deg) scaleX(-1); margin: 0 75px 0 10px; font-size: 20px;"></span>
	</div>

	<!-- image viewer -->
	<div zoomifyimg ng-if="allow && imageProperties.width"
			entityid="{{imageId}}"
			imageProperties="{{imageProperties}}"
			zoomifyHeight="{{imageProperties.height}}"
			zoomifiyTilesize="{{imageProperties.tilesize}}"
			style="height:100%">
	</div>

	<!-- toolbox in upper right corner -->
	<div ng-if="allow && entity" 
			class="btn-group-vertical"
			style="opacity:0.8; position:absolute; right:10px; top:60px;">
		<a class="btn btn-default btn-sm" href="entity/{{entity.entityId}}{{currentQuery.toString()}}">
			<div style="max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height:inherit;" ng-if="entity.title != ''">
				<span class="glyphicon glyphicon-arrow-left"></span>
				{{ 'entity.image.back_to' | transl8 }}<br>{{entity.title}}<br>
			</div>
		</a>
		<a class="btn btn-default btn-sm"  ng-click="downloadImage()">
			<span class="glyphicon glyphicon-download-alt"></span> {{ 'entity.image.download' | transl8 }}
		</a>
		<a class="btn btn-default btn-sm" ng-href="entity/{{imageId}}" ng-hide="entity.type == 'Bilder'">
			<span class="glyphicon glyphicon-list"></span> {{ 'entity.image.metadata' | transl8 }}
		</a>
		<button class="btn btn-default btn-sm" ng-click="requestFullscreen()">
			<span class="glyphicon glyphicon-fullscreen"></span> {{ 'entity.image.fullscreen' | transl8 }}
		</button>
		<a ng-if="entity.images.length > 1"
				ng-href="entity/{{entity.entityId}}/images"
				 class="btn btn-default btn-sm ">
			<span class="glyphicon glyphicon-th"></span> {{ 'entity.image.all_images' | transl8 }} ({{entity.images.length}})
		</a>
	</div>

	<!-- paging -->
	<div ng-if="allow && entity.images"
			style="opacity:0.8; position:absolute; bottom:10px; left:50%; margin-left:-80px">

		<a ng-if="imageIndex == 0"
				class="btn btn-link disabled"
				style="font-size:30px">
			<span class="glyphicon glyphicon-circle-arrow-left"></span>
{'fraction_non_alphanumeric': 0.19342191243737747, 'fraction_numerical': 0.01938575473752995, 'mean_word_length': 4.74, 'pattern_counts': {'":': 0, '<': 82, '<?xml version=': 0, '>': 84, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5870012', 'n_tokens_mistral': 1756, 'n_tokens_neox': 1537, 'n_words': 314}