<commit_before>@(currentPage: model.Page[model.User], user: securesocial.core.SocialUser, currentOrderBy: Int = 0, currentFilter: String = "")(implicit flash: Flash, request: Request[AnyContent], lang: Lang)

@import helper._
@import tags._

@****************************************
* Helper generating navigation links    *
****************************************@
@link(newPage: Int, newOrderBy: Option[Int] = None) = @{
    routes.User.index(newPage, newOrderBy.map { orderBy =>
        if(orderBy == scala.math.abs(currentOrderBy)) -currentOrderBy else orderBy
    }.getOrElse(currentOrderBy), currentFilter)
    
}

@**********************************
* Helper generating table headers *
***********************************@
@header(orderBy: Int, title: String) = {
        <a href="@link(0, Some(orderBy))">
        @Messages("users." + title + ".label")
        <i class="@if(scala.math.abs(currentOrderBy) == orderBy) @{if(currentOrderBy < 0) "icon-chevron-down" else "icon-chevron-up"}"></i>
        </a>
}

@scripts = {
    <script src="@routes.Assets.at("javascripts/users-update.js")" type="text/javascript"></script>
    <script src="@routes.JsMessagesFeed.jsMessages" type="text/javascript"></script>
}

@main(Messages("users.title"), Some(user), nav = "users", scripts) {
    
    <div class="container">

		<div class="page-header">
			<h1>@Messages("users.title")</h1>
    	</div>
    	
    	<div id="actions">
        
        @form(action=routes.User.index()) {
            <input type="search" name="filter" value="@currentFilter" placeholder="@Messages("users.filter.placeholder")" style="vertical-align: top">
            <input type="submit" value="@Messages("users.filter.label")" class="btn btn-primary">
        }
        
    	</div>
    	
    	@Option(currentPage.items).filterNot(_.isEmpty).map { users =>

        <table class="table table-condensed">
            <thead>
                <tr>
                	<th class="header">@header(1, "name")
                	<th class="header">@header(2, "email")
                    <th class="header">@header(3, "githubUsername")
                    <th class="header">@header(4, "twitterAccount")
                    <th class="header">@header(5, "isAdmin")
                    <th class="header">@header(5, "isBlocked")
                    <th class="header">@Messages("users.actions.label")</th>
                </tr>
            </thead>
            <tbody><commit_msg>added missing closing </th> tags<commit_after>@(currentPage: model.Page[model.User], user: securesocial.core.SocialUser, currentOrderBy: Int = 0, currentFilter: String = "")(implicit flash: Flash, request: Request[AnyContent], lang: Lang)

@import helper._
@import tags._

@****************************************
* Helper generating navigation links    *
****************************************@
@link(newPage: Int, newOrderBy: Option[Int] = None) = @{
    routes.User.index(newPage, newOrderBy.map { orderBy =>
        if(orderBy == scala.math.abs(currentOrderBy)) -currentOrderBy else orderBy
    }.getOrElse(currentOrderBy), currentFilter)
    
}

@**********************************
* Helper generating table headers *
***********************************@
@header(orderBy: Int, title: String) = {
        <a href="@link(0, Some(orderBy))">
        @Messages("users." + title + ".label")
        <i class="@if(scala.math.abs(currentOrderBy) == orderBy) @{if(currentOrderBy < 0) "icon-chevron-down" else "icon-chevron-up"}"></i>
        </a>
}

@scripts = {
    <script src="@routes.Assets.at("javascripts/users-update.js")" type="text/javascript"></script>
    <script src="@routes.JsMessagesFeed.jsMessages" type="text/javascript"></script>
}

@main(Messages("users.title"), Some(user), nav = "users", scripts) {
    
    <div class="container">

		<div class="page-header">
			<h1>@Messages("users.title")</h1>
    	</div>
    	
    	<div id="actions">
        
        @form(action=routes.User.index()) {
            <input type="search" name="filter" value="@currentFilter" placeholder="@Messages("users.filter.placeholder")" style="vertical-align: top">
            <input type="submit" value="@Messages("users.filter.label")" class="btn btn-primary">
        }
        
    	</div>
    	
    	@Option(currentPage.items).filterNot(_.isEmpty).map { users =>

        <table class="table table-condensed">
            <thead>
                <tr>
                	<th class="header">@header(1, "name")</th>
                	<th class="header">@header(2, "email")</th>
                    <th class="header">@header(3, "githubUsername")</th>
                    <th class="header">@header(4, "twitterAccount")</th>
                    <th class="header">@header(5, "isAdmin")</th>
                    <th class="header">@header(5, "isBlocked")</th>
                    <th class="header">@Messages("users.actions.label")</th>
                </tr>
            </thead>
            <tbody>
{'fraction_non_alphanumeric': 0.22759457819138176, 'fraction_numerical': 0.004450738417964798, 'mean_word_length': 3.072487644151565, 'pattern_counts': {'":': 0, '<': 74, '<?xml version=': 0, '>': 76, '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': '796506', 'n_tokens_mistral': 1510, 'n_tokens_neox': 1455, 'n_words': 255}