<commit_before><div class="col-md-10 col-md-offset-2 container-fluid" >
    <div class="alert alert-danger" ng-show="error !== undefined" style="padding:2px;margin-bottom:2px;">
         {{error}}
         <a style="float: right" ng-click="removeErrorMessage()">x</a>
   </div>
   <div class="alert alert-success" ng-show="message !== undefined" style="padding:2px;margin-bottom:2px;">
         {{message}}
         <a style="float: right" ng-click="removeMessage()">x</a>
   </div>
   <div class="alert alert-success" ng-show="messageAdmin !== undefined" style="padding:2px;margin-bottom:2px;">
         {{messageAdmin}}
         <a style="float: right" ng-click="removeMessageAdmin()">x</a>
   </div>
   <div class="container-fluid" style="width:100%;">
       <ul class="nav nav-pills">
            <li class="active"><a data-toggle="pill" href="#adminAuthKeyGenerator">
                {{'ADMIN_GENERATING_ADMIN_TOKEN_TITLE' | i18n}}</a></li>
            <li><a data-toggle="pill" href="#metrics">
                {{'ADMIN_METRICS_TITLE' | i18n}}
            </a></li>
            <li><a data-toggle="pill" href="#roomManagement" ng-click="initRooms()">
                {{'ADMIN_ROOM_MANAGEMENT_TITLE' | i18n}}
            </a></li>
            <li><a data-toggle="pill" href="#bookerManagement" ng-click="initBookers()">
                {{'ADMIN_USER_MANAGEMENT_TITLE' | i18n}}
            </a></li>
        </ul>

        <img ng-show="dataLoading === true" src="/images/loading.svg" 
                alt="Authentification en cours..." style="width: 35%; height: 35%"/>

        <div class="tab-content">
            <div ng-hide="dataLoading === true" id="adminAuthKeyGenerator" class="tab-pane fade in active">
                <h2>{{'ADMIN_GENERATE_ADMIN_TOKEN_LABEL' | i18n}}</h2>
                <a ng-click="adminConsoleCtrl.generateAdminToken()">
                    <button type="button" class="btn btn-info" style="margin: 8px;" >
                        {{'ADMIN_GENERATE_LABEL' | i18n}}
                    </button>
                </a>
                <p>{{'ADMIN_KEY_LABEL' | i18n}} {{adminToken}}</p>
                <p>{{'ADMIN_END_OF_VALIDITY_LABEL' | i18n}} {{adminTokenEndTime}}</p>
            </div>
            <div ng-hide="dataLoading === true" id="metrics" class="tab-pane fade">
                <h2>{{'ADMIN_METRICS_LABEL' | i18n}}</h2>
            </div>
            
            <div ng-hide="dataLoading === true" id="roomManagement" class="tab-pane fade">
                <ul id="roomList" class="list-group">
                    <li class="list-group-item" ng-repeat="room in rooms">
                        <input type="text" 
                        style="width:65%"
                        ng-model="room.name" 
                        ng-disabled="room.isNew === false && room.oldName === undefined" required />
                        <a ng-click="adminConsoleCtrl.deleteRoomDB(room)"
                        style="float: right;margin-left:5px;">
                            <button class="btn btn-danger">
                                {{'ADMIN_DELETE_ROOM_LABEL' | i18n}}
                            </button>
                        </a>
                        <a ng-click="adminConsoleCtrl.modifyRoom(room)" ng-show="room.oldName === undefined"
                        style="float: right;margin-left:5px;">
                            <button class="btn btn-warning" 
                                ng-show="room.isNew === false && room.oldName === undefined">
                                {{'ADMIN_UPDATE_ROOM_LABEL' | i18n}}
                            </button>
                        </a>
                        <a ng-click="adminConsoleCtrl.updateRoomInDB(room)"  g-show="room.isNew === true || room.oldName !== undefined"
                        style="float: right;margin-left:5px;">
                            <button class="btn btn-success" ng-show="room.isNew === true || room.oldName !== undefined">
                                {{'ADMIN_VALIDATE_ROOM_LABEL' | i18n}}
                            </button>
                        </a>                        
                    </li>
                </ul>
                <a ng-click="adminConsoleCtrl.addNewRoom()">
                    <button class="btn btn-info">
                        {{'ADMIN_ADD_ROOM_LABEL' | i18n}}
                    </button>
                </a>
            </div>
            <div ng-hide="dataLoading === true" id="bookerManagement" class="tab-pane fade"><commit_msg>Solve rendering issue with pills<commit_after><div class="col-md-10 col-md-offset-2 container-fluid" >
    <div class="alert alert-danger" ng-show="error !== undefined" style="padding:2px;margin-bottom:2px;">
         {{error}}
         <a style="float: right" ng-click="removeErrorMessage()">x</a>
   </div>
   <div class="alert alert-success" ng-show="message !== undefined" style="padding:2px;margin-bottom:2px;">
         {{message}}
         <a style="float: right" ng-click="removeMessage()">x</a>
   </div>
   <div class="alert alert-success" ng-show="messageAdmin !== undefined" style="padding:2px;margin-bottom:2px;">
         {{messageAdmin}}
         <a style="float: right" ng-click="removeMessageAdmin()">x</a>
   </div>
   <div class="container-fluid" style="width:100%;">
       <ul class="nav nav-pills" role="pilllist">
            <li class="active"><a data-toggle="pill" data-target="#adminAuthKeyGenerator">
                {{'ADMIN_GENERATING_ADMIN_TOKEN_TITLE' | i18n}}</a></li>
            <li><a data-toggle="pill" data-target="#metrics">
                {{'ADMIN_METRICS_TITLE' | i18n}}
            </a></li>
            <li><a data-toggle="pill" data-target="#roomManagement" ng-click="initRooms()">
                {{'ADMIN_ROOM_MANAGEMENT_TITLE' | i18n}}
            </a></li>
            <li><a data-toggle="pill" data-target="#bookerManagement" ng-click="initBookers()">
                {{'ADMIN_USER_MANAGEMENT_TITLE' | i18n}}
            </a></li>
        </ul>

        <img ng-show="dataLoading === true" src="/images/loading.svg" 
                alt="Authentification en cours..." style="width: 15%; height: 15%"/>

        <div class="tab-content">
            <div ng-hide="dataLoading === true" id="adminAuthKeyGenerator" class="tab-pane fade in active">
                <h2>{{'ADMIN_GENERATE_ADMIN_TOKEN_LABEL' | i18n}}</h2>
                <a ng-click="adminConsoleCtrl.generateAdminToken()">
                    <button type="button" class="btn btn-info" style="margin: 8px;" >
                        {{'ADMIN_GENERATE_LABEL' | i18n}}
                    </button>
                </a>
                <p>{{'ADMIN_KEY_LABEL' | i18n}} {{adminToken}}</p>
                <p>{{'ADMIN_END_OF_VALIDITY_LABEL' | i18n}} {{adminTokenEndTime}}</p>
            </div>
            <div ng-hide="dataLoading === true" id="metrics" class="tab-pane fade">
                <h2>{{'ADMIN_METRICS_LABEL' | i18n}}</h2>
            </div>
            
            <div ng-hide="dataLoading === true" id="roomManagement" class="tab-pane fade">
                <ul id="roomList" class="list-group">
                    <li class="list-group-item" ng-repeat="room in rooms">
                        <input type="text" 
                        style="width:65%"
                        ng-model="room.name" 
                        ng-disabled="room.isNew === false && room.oldName === undefined" required />
                        <a ng-click="adminConsoleCtrl.deleteRoomDB(room)"
                        style="float: right;margin-left:5px;">
                            <button class="btn btn-danger">
                                {{'ADMIN_DELETE_ROOM_LABEL' | i18n}}
                            </button>
                        </a>
                        <a ng-click="adminConsoleCtrl.modifyRoom(room)" ng-show="room.oldName === undefined"
                        style="float: right;margin-left:5px;">
                            <button class="btn btn-warning" 
                                ng-show="room.isNew === false && room.oldName === undefined">
                                {{'ADMIN_UPDATE_ROOM_LABEL' | i18n}}
                            </button>
                        </a>
                        <a ng-click="adminConsoleCtrl.updateRoomInDB(room)"  g-show="room.isNew === true || room.oldName !== undefined"
                        style="float: right;margin-left:5px;">
                            <button class="btn btn-success" ng-show="room.isNew === true || room.oldName !== undefined">
                                {{'ADMIN_VALIDATE_ROOM_LABEL' | i18n}}
                            </button>
                        </a>                        
                    </li>
                </ul>
                <a ng-click="adminConsoleCtrl.addNewRoom()">
                    <button class="btn btn-info">
                        {{'ADMIN_ADD_ROOM_LABEL' | i18n}}
                    </button>
                </a>
            </div>
            <div ng-hide="dataLoading" id="bookerManagement" class="tab-pane fade">
{'fraction_non_alphanumeric': 0.15915585843042426, 'fraction_numerical': 0.011431083754671357, 'mean_word_length': 1.671462125660599, 'pattern_counts': {'":': 0, '<': 151, '<?xml version=': 0, '>': 151, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1331748', 'n_tokens_mistral': 2739, 'n_tokens_neox': 2565, 'n_words': 427}