<commit_before><template>
<div class="admin-user-accounts-detail">
	<div class="container">
		<h1 class="display-4">
			{{ $t('adminUserAccountsDetail.title') }}
			<small class="text-muted">{{ email }}</small>
		</h1>
		<hr>
		<div v-if="!isLoading">
			<table class="table table-striped" v-if="userAccount.email">
				<tbody>
					<tr>
						<th scope="row">{{ $t('adminUserAccountsDetail.fields.email') }}</th>
						<td>{{ userAccount.email }}</td>
					</tr>
					<tr>
						<th scope="row">{{ $t('adminUserAccountsDetail.fields.userRole') }}</th>
						<td>
							<button class="btn btn-sm btn-primary translucent" @click="switchRole" v-if="userAccount.userRole !== 'ROLE_ADMIN' && !userIsViewingHimself">ADMIN</button>
							<button class="btn btn-sm btn-primary no-pointer" v-if="userAccount.userRole === 'ROLE_ADMIN'">ADMIN</button>
							<button class="btn btn-sm btn-primary translucent" @click="switchRole" v-if="userAccount.userRole !== 'ROLE_USER' && !userIsViewingHimself">USER</button>
							<button class="btn btn-sm btn-primary no-pointer" v-if="userAccount.userRole === 'ROLE_USER'">USER</button>
						</td>
					</tr>
					<tr>
						<th scope="row">{{ $t('adminUserAccountsDetail.fields.creationDate') }}</th>
						<td>{{ userAccount.creationDate | moment(dateFormat) }}</td>
					</tr>
					<tr>
						<th scope="row">{{ $t('adminUserAccountsDetail.fields.balance') }}</th>
						<td>{{ userAccount.balance }}</td>
					</tr>
					<tr>
						<th scope="row">{{ $t('adminUserAccountsDetail.fields.deleted') }}</th>
						<td>
							<span v-html="userAccount.deleted ? $t('adminUserAccountsDetail.deletedYes') : $t('adminUserAccountsDetail.deletedNo')"></span>
							<button v-if="!userAccount.deleted && !userIsViewingHimself" class="btn btn-danger btn-sm" @click="deleteUser">
								<i class="fa fa-times"></i>
								{{ $t('adminUserAccountsDetail.deleteButton') }}
							</button>
							<button v-if="userAccount.deleted && !userIsViewingHimself" class="btn btn-success btn-sm" @click="undeleteUser">
								<i class="fa fa-undo"></i>
								{{ $t('adminUserAccountsDetail.undeleteButton') }}
							</button>
						</td>
					</tr>
					<tr>
						<th scope="row">{{ $t('adminUserAccountsDetail.fields.account') }}</th>
						<td>
							<span v-if="userAccount.accountPublicKeyClient" class="short-key-extended">
								{{ userAccount.accountPublicKeyClient }}
							</span>
							<span v-else>
								<i class="fa fa-minus"></i>
							</span>
						</td>
					</tr><commit_msg>link user account details' account row to details page of account<commit_after><template>
<div class="admin-user-accounts-detail">
	<div class="container">
		<h1 class="display-4">
			{{ $t('adminUserAccountsDetail.title') }}
			<small class="text-muted">{{ email }}</small>
		</h1>
		<hr>
		<div v-if="!isLoading">
			<table class="table table-striped" v-if="userAccount.email">
				<tbody>
					<tr>
						<th scope="row">{{ $t('adminUserAccountsDetail.fields.email') }}</th>
						<td>{{ userAccount.email }}</td>
					</tr>
					<tr>
						<th scope="row">{{ $t('adminUserAccountsDetail.fields.userRole') }}</th>
						<td>
							<button class="btn btn-sm btn-primary translucent" @click="switchRole" v-if="userAccount.userRole !== 'ROLE_ADMIN' && !userIsViewingHimself">ADMIN</button>
							<button class="btn btn-sm btn-primary no-pointer" v-if="userAccount.userRole === 'ROLE_ADMIN'">ADMIN</button>
							<button class="btn btn-sm btn-primary translucent" @click="switchRole" v-if="userAccount.userRole !== 'ROLE_USER' && !userIsViewingHimself">USER</button>
							<button class="btn btn-sm btn-primary no-pointer" v-if="userAccount.userRole === 'ROLE_USER'">USER</button>
						</td>
					</tr>
					<tr>
						<th scope="row">{{ $t('adminUserAccountsDetail.fields.creationDate') }}</th>
						<td>{{ userAccount.creationDate | moment(dateFormat) }}</td>
					</tr>
					<tr>
						<th scope="row">{{ $t('adminUserAccountsDetail.fields.balance') }}</th>
						<td>{{ userAccount.balance }}</td>
					</tr>
					<tr>
						<th scope="row">{{ $t('adminUserAccountsDetail.fields.deleted') }}</th>
						<td>
							<span v-html="userAccount.deleted ? $t('adminUserAccountsDetail.deletedYes') : $t('adminUserAccountsDetail.deletedNo')"></span>
							<button v-if="!userAccount.deleted && !userIsViewingHimself" class="btn btn-danger btn-sm" @click="deleteUser">
								<i class="fa fa-times"></i>
								{{ $t('adminUserAccountsDetail.deleteButton') }}
							</button>
							<button v-if="userAccount.deleted && !userIsViewingHimself" class="btn btn-success btn-sm" @click="undeleteUser">
								<i class="fa fa-undo"></i>
								{{ $t('adminUserAccountsDetail.undeleteButton') }}
							</button>
						</td>
					</tr>
					<tr>
						<th scope="row">{{ $t('adminUserAccountsDetail.fields.account') }}</th>
						<td>
							<span v-if="userAccount.accountPublicKeyClient" class="short-key-extended">
								<router-link :to="{ name: 'admin-accounts-detail', params: { publicKeyClient: userAccount.accountPublicKeyClient } }">
									{{ userAccount.accountPublicKeyClient }}
								</router-link>
							</span>
							<span v-else>
								<i class="fa fa-minus"></i>
							</span>
						</td>
					</tr>
{'fraction_non_alphanumeric': 0.19596267377642354, 'fraction_numerical': 0.0011426394972386211, 'mean_word_length': 3.4245998315080035, 'pattern_counts': {'":': 0, '<': 147, '<?xml version=': 0, '>': 147, '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': '4259717', 'n_tokens_mistral': 2316, 'n_tokens_neox': 1773, 'n_words': 305}