<commit_before><div>
	<div class="panel panel-default">
		<div class="panel-heading clearfix">
			<div class="row">
				<div class="col-md-6">
					<h3><i class="fa fa-university"></i> Municípios</h3>
				</div>
				<div class="col-md-6">
					<a ng-if="identity.can('tenants.manage')" ui-sref="pending_tenant_signups" class="btn btn-raised btn-primary pull-right"><i class="fa fa-question-circle"></i> Adesões municipais</a>
				</div>
			</div>
		</div>
		<div class="panel-body">

			<table class="table table-striped table-hover">
				<thead>
					<tr>
						<th><column-sorter on-change="refresh" model="query.sort" field="'name'">Nome</column-sorter></th>
						<th><column-sorter on-change="refresh" model="query.sort" field="'registered_at'">Adesão</column-sorter></th>
						<th><column-sorter on-change="refresh" model="query.sort" field="'last_activity_at'">Atividade</column-sorter></th>
						<th>Gestor político</th>
						<th>Coordenador operacional</th>
						<th ng-if="identity.can('tenants.manage')">Opções</th>
					</tr>
					<tr class="simple-filter">
						<th><input type="text" class="form-control" ng-model="query.filter.name" ng-change="refresh()" placeholder="Filtrar por nome..." /></th>
						<th>
							<select class="form-control" ng-model="query.filter.created_at" ng-change="refresh()">
								<option value="">Todos</option>
								<option value="7">Últimos 7 dias</option>
								<option value="30">Últimos 30 dias</option>
								<option value="60">Últimos 60 dias</option>
								<option value="90">Últimos 90 dias</option>
							</select>
						</th>
						<th>
							<select class="form-control" ng-model="query.filter.last_activity_at" ng-change="refresh()">
								<option value="">Todos</option>
								<option value="7">Últimos 7 dias</option>
								<option value="30">Últimos 30 dias</option>
								<option value="60">Últimos 60 dias</option>
								<option value="90">Últimos 90 dias</option>
							</select>
						</th>
						<th><input type="text" class="form-control" ng-model="query.filter.political_admin" ng-change="refresh()" placeholder="Filtrar por nome..." /></th>
						<th><input type="text" class="form-control" ng-model="query.filter.operational_admin" ng-change="refresh()" placeholder="Filtrar por nome..." /></th>
						<th></th>
					</tr>
				</thead>
				<tbody>
					<tr ng-repeat="(i, tenant) in tenants.data">
						<td width="35%"><strong ng-bind="tenant.name"></strong><br /></td>
						<td width="10%">
							<span class="label label-success" uib-tooltip-html="tenant.registered_at">{{tenant.registered_at | amCalendar}}</span>
						</td>
						<td width="10%">
							<span ng-show="tenant.activity_status === 'active'">
								<span class="label label-success" uib-tooltip-html="tenant.last_active_at | amTimeAgo">Ativo</span>
							</span>
							<span ng-show="tenant.activity_status === 'inactive_30d'">
								<span class="label label-yellow" uib-tooltip-html="tenant.last_active_at | amTimeAgo">Inativo (30+ dias)</span>
							</span>
							<span ng-show="tenant.activity_status === 'inactive_60d'">
								<span class="label label-warning" uib-tooltip-html="tenant.last_active_at | amTimeAgo">Inativo (60+ dias)</span>
							</span>
							<span ng-show="tenant.activity_status === 'inactive_120d'">
								<span class="label label-danger" uib-tooltip-html="tenant.last_active_at | amTimeAgo">Inativo (120+ dias)</span>
							</span>
							<span ng-show="tenant.activity_status === 'inactive_never'">
								<span class="label label-info" uib-tooltip-html="tenant.last_active_at | amTimeAgo">Inativo (nunca utilizado)</span>
							</span>
						</td>
						<td width="5%">
							<div ng-show="tenant.political_admin" class="{{tenant.political_admin.deleted_at ? 'text-danger' : ''}}">
								<span ng-show="tenant.political_admin">{{tenant.political_admin.name}}</span> <i class="fa fa-ban" uib-tooltip="Usuário suspenso" ng-show="tenant.political_admin.deleted_at"></i><br />
								<span class="label label-default"><i class="fa fa-envelope"></i> {{tenant.political_admin.email}}</span>
							</div>

							<div class="label label-default" ng-show="!tenant.political_admin">Gestor não cadastrado</div>
						</td>
						<td width="5%">
							<div ng-show="tenant.operational_admin" ng-class="{'text-danger': tenant.operational_admin.deleted_at}">
								<span ng-show="tenant.operational_admin">{{tenant.operational_admin.name}}</span> <i class="fa fa-ban" uib-tooltip="Usuário suspenso" ng-show="tenant.operational_admin.deleted_at"></i><br />
								<span class="label label-default"><i class="fa fa-envelope"></i> {{tenant.operational_admin.email}}</span>
							</div>

							<div class="label label-default" ng-show="!tenant.operational_admin">Gestor não cadastrado</div>
						</td>
						<td width="5%" ng-if="identity.can('tenants.manage')">
							<a class="btn btn-sm btn-raised btn-danger"
							   ng-click="disableTenant(tenant)"
							   uib-tooltip="Ao desativar um município, todos os acessos à ele serão cancelados,
							   e ele passará a figurar novamente na lista de municípios disponíveis para adesão.
							   Os contadores e métricas não serão removidos."
							>
								<i class="fa fa-ban"></i> Desativar
							</a>
						</td><commit_msg>Tenant browser: changed missing users label styling<commit_after><div>
	<div class="panel panel-default">
		<div class="panel-heading clearfix">
			<div class="row">
				<div class="col-md-6">
					<h3><i class="fa fa-university"></i> Municípios</h3>
				</div>
				<div class="col-md-6">
					<a ng-if="identity.can('tenants.manage')" ui-sref="pending_tenant_signups" class="btn btn-raised btn-primary pull-right"><i class="fa fa-question-circle"></i> Adesões municipais</a>
				</div>
			</div>
		</div>
		<div class="panel-body">

			<table class="table table-striped table-hover">
				<thead>
					<tr>
						<th><column-sorter on-change="refresh" model="query.sort" field="'name'">Nome</column-sorter></th>
						<th><column-sorter on-change="refresh" model="query.sort" field="'registered_at'">Adesão</column-sorter></th>
						<th><column-sorter on-change="refresh" model="query.sort" field="'last_activity_at'">Atividade</column-sorter></th>
						<th>Gestor político</th>
						<th>Coordenador operacional</th>
						<th ng-if="identity.can('tenants.manage')">Opções</th>
					</tr>
					<tr class="simple-filter">
						<th><input type="text" class="form-control" ng-model="query.filter.name" ng-change="refresh()" placeholder="Filtrar por nome..." /></th>
						<th>
							<select class="form-control" ng-model="query.filter.created_at" ng-change="refresh()">
								<option value="">Todos</option>
								<option value="7">Últimos 7 dias</option>
								<option value="30">Últimos 30 dias</option>
								<option value="60">Últimos 60 dias</option>
								<option value="90">Últimos 90 dias</option>
							</select>
						</th>
						<th>
							<select class="form-control" ng-model="query.filter.last_activity_at" ng-change="refresh()">
								<option value="">Todos</option>
								<option value="7">Últimos 7 dias</option>
								<option value="30">Últimos 30 dias</option>
								<option value="60">Últimos 60 dias</option>
								<option value="90">Últimos 90 dias</option>
							</select>
						</th>
						<th><input type="text" class="form-control" ng-model="query.filter.political_admin" ng-change="refresh()" placeholder="Filtrar por nome..." /></th>
						<th><input type="text" class="form-control" ng-model="query.filter.operational_admin" ng-change="refresh()" placeholder="Filtrar por nome..." /></th>
						<th></th>
					</tr>
				</thead>
				<tbody>
					<tr ng-repeat="(i, tenant) in tenants.data">
						<td width="35%"><strong ng-bind="tenant.name"></strong><br /></td>
						<td width="10%">
							<span class="label label-success" uib-tooltip-html="tenant.registered_at">{{tenant.registered_at | amCalendar}}</span>
						</td>
						<td width="10%">
							<span ng-show="tenant.activity_status === 'active'">
								<span class="label label-success" uib-tooltip-html="tenant.last_active_at | amTimeAgo">Ativo</span>
							</span>
							<span ng-show="tenant.activity_status === 'inactive_30d'">
								<span class="label label-yellow" uib-tooltip-html="tenant.last_active_at | amTimeAgo">Inativo (30+ dias)</span>
							</span>
							<span ng-show="tenant.activity_status === 'inactive_60d'">
								<span class="label label-warning" uib-tooltip-html="tenant.last_active_at | amTimeAgo">Inativo (60+ dias)</span>
							</span>
							<span ng-show="tenant.activity_status === 'inactive_120d'">
								<span class="label label-danger" uib-tooltip-html="tenant.last_active_at | amTimeAgo">Inativo (120+ dias)</span>
							</span>
							<span ng-show="tenant.activity_status === 'inactive_never'">
								<span class="label label-info" uib-tooltip-html="tenant.last_active_at | amTimeAgo">Inativo (nunca utilizado)</span>
							</span>
						</td>
						<td width="5%">
							<div ng-show="tenant.political_admin" class="{{tenant.political_admin.deleted_at ? 'text-danger' : ''}}">
								<span ng-show="tenant.political_admin">{{tenant.political_admin.name}}</span> <i class="fa fa-ban" uib-tooltip="Usuário suspenso" ng-show="tenant.political_admin.deleted_at"></i><br />
								<span class="label label-default"><i class="fa fa-envelope"></i> {{tenant.political_admin.email}}</span>
							</div>

							<div class="label label-warning" ng-show="!tenant.political_admin">Gestor não cadastrado</div>
						</td>
						<td width="5%">
							<div ng-show="tenant.operational_admin" ng-class="{'text-danger': tenant.operational_admin.deleted_at}">
								<span ng-show="tenant.operational_admin">{{tenant.operational_admin.name}}</span> <i class="fa fa-ban" uib-tooltip="Usuário suspenso" ng-show="tenant.operational_admin.deleted_at"></i><br />
								<span class="label label-default"><i class="fa fa-envelope"></i> {{tenant.operational_admin.email}}</span>
							</div>

							<div class="label label-warning" ng-show="!tenant.operational_admin">Gestor não cadastrado</div>
						</td>
						<td width="5%" ng-if="identity.can('tenants.manage')">
							<a class="btn btn-sm btn-raised btn-danger"
							   ng-click="disableTenant(tenant)"
							   uib-tooltip="Ao desativar um município, todos os acessos à ele serão cancelados,
							   e ele passará a figurar novamente na lista de municípios disponíveis para adesão.
							   Os contadores e métricas não serão removidos."
							>
								<i class="fa fa-ban"></i> Desativar
							</a>
						</td>
{'fraction_non_alphanumeric': 0.18401731927710843, 'fraction_numerical': 0.010353915662650603, 'mean_word_length': 3.523201362281822, 'pattern_counts': {'":': 0, '<': 307, '<?xml version=': 0, '>': 307, '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': '2737875', 'n_tokens_mistral': 4671, 'n_tokens_neox': 3569, 'n_words': 639}