<commit_before><if ng-if="!current_user.group.user_add" ng-init="redirectToDash()">
</if>
<if ng-if="current_user.group.user_add">
    <div class="col-lg-6 col-md-12 col-sm-12 col-xs-12">
        <div class="login-container">
            <div class="box box-form">
                <header>
                    <h3 class="orange">Invite new user!</h3>
                    <div class="header-icon"><span class="glyphicon glyphicon-option-horizontal"></span></div>

                </header>
                <form class="login-form" method="POST" name="login_form" action="/api/auth/register">
                    <div class="input-socket">
                        <input type="text" name="email" placeholder="User e-mail" required>
                    </div>
                    <p>Select user permission group:</p>
                    <select name="group">
                    <option ng-repeat="group in groups | orderBy:'-id'" value={{group.id}}>{{group.name}}</option>
                </select>
                    <button type="submit" class='button blue pull-right'>Confirm</button>
                </form>
            </div>
        </div>
    </div>
    <div class="col-lg-6 col-md-12 col-sm-12 col-xs-12">
        <div class="login-container">
            <div class="box box-form">
                <header>
                    <h3 class="orange">Remove user from application.</h3>
                    <div class="header-icon"><span class="glyphicon glyphicon-option-horizontal"></span></div>
                </header>


                <form class="login-form " method="POST" name="remove_form" novalidate ng-submit="remove_form.$valid && removeUser(removeEmail)" action="/api/auth/remove">
                    <div class="input-socket">
                        <input type="text" name="email" ng-model="removeEmail" placeholder="User e-mail" required>

                    </div>
                    <button type="submit" class='button orange pull-right'>Confirm</button>
                </form>


            </div>
        </div>
    </div>
</if>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
    <div class="search-by single-input pull-right">
        <input class="pull-right" type='text' ng-model='searchBy' placeholder='Search by email'>
    </div>
</div>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
    <div class="box box-table">
        <table class="table ">
            <header>
                <h3 class="green">Pending invites</h3>
                <div class="header-icon"><span class="glyphicon glyphicon-option-horizontal"></span></div>
            </header>
            <thead>
                <tr>
                    <th>Id</th>
                    <th>Email</th>
                    <th>Group</th>
                    <th>Sender</th>
                    <th>Action</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="invite in invites | limitTo : limit.invites| filter : {email : searchBy, active:true}" ng-show="invites.length">
                    <td>{{invite.id}}</td>
                    <td>{{invite.email}}</td>
                    <td>{{invite.groups.name}}</td>
                    <td>{{invite.inviter.username}}</td>
                    <td>
                        <form action="/api/auth/removeinvite" name="disable_invite" method="POST">
                            <button class="button orange" type="submit" name="email" value="{{invite.email}}">Cancel invite</button><commit_msg>track pending invites number<commit_after><if ng-if="!current_user.group.user_add" ng-init="redirectToDash()">
</if>
<if ng-if="current_user.group.user_add">
    <div class="col-lg-6 col-md-12 col-sm-12 col-xs-12">
        <div class="login-container">
            <div class="box box-form">
                <header>
                    <h3 class="orange">Invite new user!</h3>
                    <div class="header-icon"><span class="glyphicon glyphicon-option-horizontal"></span></div>

                </header>
                <form class="login-form" method="POST" name="login_form" action="/api/auth/register">
                    <div class="input-socket">
                        <input type="text" name="email" placeholder="User e-mail" required>
                    </div>
                    <p>Select user permission group:</p>
                    <select name="group">
                    <option ng-repeat="group in groups | orderBy:'-id'" value={{group.id}}>{{group.name}}</option>
                </select>
                    <button type="submit" class='button blue pull-right'>Confirm</button>
                </form>
            </div>
        </div>
    </div>
    <div class="col-lg-6 col-md-12 col-sm-12 col-xs-12">
        <div class="login-container">
            <div class="box box-form">
                <header>
                    <h3 class="orange">Remove user from application.</h3>
                    <div class="header-icon"><span class="glyphicon glyphicon-option-horizontal"></span></div>
                </header>


                <form class="login-form " method="POST" name="remove_form" novalidate ng-submit="remove_form.$valid && removeUser(removeEmail)" action="/api/auth/remove">
                    <div class="input-socket">
                        <input type="text" name="email" ng-model="removeEmail" placeholder="User e-mail" required>

                    </div>
                    <button type="submit" class='button orange pull-right'>Confirm</button>
                </form>


            </div>
        </div>
    </div>
</if>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
    <div class="search-by single-input pull-right">
        <input class="pull-right" type='text' ng-model='searchBy' placeholder='Search by email'>
    </div>
</div>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
    <div class="box box-table">
        <table class="table ">
            <header>
                <h3 class="green">Pending invites ({{(invites|filter: {active:true}).length}})</h3>
                <div class="header-icon"><span class="glyphicon glyphicon-option-horizontal"></span></div>
            </header>
            <thead>
                <tr>
                    <th>Id</th>
                    <th>Email</th>
                    <th>Group</th>
                    <th>Sender</th>
                    <th>Action</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="invite in invites | limitTo : limit.invites| filter : {email : searchBy, active:true}" ng-show="invites.length">
                    <td>{{invite.id}}</td>
                    <td>{{invite.email}}</td>
                    <td>{{invite.groups.name}}</td>
                    <td>{{invite.inviter.username}}</td>
                    <td>
                        <form action="/api/auth/removeinvite" name="disable_invite" method="POST">
                            <button class="button orange" type="submit" name="email" value="{{invite.email}}">Cancel invite</button>
{'fraction_non_alphanumeric': 0.1622620062517761, 'fraction_numerical': 0.010230179028132993, 'mean_word_length': 1.693838499808649, 'pattern_counts': {'":': 0, '<': 195, '<?xml version=': 0, '>': 195, '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': '5608027', 'n_tokens_mistral': 2091, 'n_tokens_neox': 1921, 'n_words': 374}