<commit_before><!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
    <head>
        <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
        <title>National Cybersecurity Laboratories - Team Profile</title>
        <object th:include="fragments/header :: header" th:remove="tag" />
    </head>
    <body class="mybg loginbackground">
        <div th:replace="fragments/dashboard_navigation :: dashboardnav">&nbsp;</div>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <div class="container">

            <p>&nbsp;</p>
            <div class="row dashpanel">
                <h2><span th:text="#{teamProfile.nav.header}">Team:</span> <span th:text="${team.name}" style="color:#00C7BA;"></span></h2>
                <ul class="nav nav-pills nav-stacked col-sm-2 text-center">
                    <li class="active"><a data-toggle="pill" href="#profile"><span th:text="#{teamProfile.nav.profile}">Profile</span></a></li>
                    <li><a data-toggle="pill" href="#members"><span th:text="#{teamProfile.nav.members}">Members</span></a></li>
                    <li><a data-toggle="pill" href="#experiments"><span th:text="#{teamProfile.nav.exp}">Experiments</span></a></li>
                </ul>
                <div class="tab-content col-sm-10">
                    <div id="profile" class="tab-pane fade in active">
                        <h3 th:text="#{teamProfile.nav.profile}">Profile</h3>
                        <form  method="post" action="#" th:action="@{/team_profile/{teamId}(teamId=${team.id})}" th:object="${team}" role="form">
                            <table class="table table-responsive">
                                <tr>
                                    <td><strong th:text="#{team.profile.id}">ID</strong></td>
                                    <td><input type="text" class="form-control" th:field="*{id}" readonly="readonly"/></td>
                                </tr>
                                <tr>
                                    <td><strong th:text="#{team.profile.status}">STATUS</strong></td>
                                    <td><input type="text" class="form-control" th:field="*{status}" readonly="readonly"/></td>
                                </tr>
                                <tr>
                                    <td><strong th:text="#{team.profile.name}">NAME</strong></td>
                                    <td><input type="text" class="form-control" th:field="*{name}" readonly="readonly"/></td>
                                </tr>
                                <tr>
                                    <td><strong th:text="#{team.profile.description}">DESCRIPTION</strong></td>
                                    <td>
                                        <span class="account-change-fail" th:if="${editDesc eq 'fail'}"><i class="fa fa-times"></i> <span th:text="#{team.profile.descriptionFail}">TEXT</span></span>
                                        <span class="account-change-success" th:if="${editDesc eq 'success'}"><i class="fa fa-check"></i> <span th:text="#{team.profile.descriptionSuccess}">TEXT</span></span>
                                        <input type="text" class="form-control" th:field="*{description}"/>
                                    </td>
                                </tr>
                                <tr th:if="${team.owner}">
                                    <td><strong th:text="#{team.profile.owner}">TEAM OWNER</strong></td>
                                    <td><input type="text" class="form-control" th:value="${team.owner.firstName + ' ' + team.owner.lastName}" readonly="readonly"/></td>
                                </tr>
                                <tr>
                                    <td><strong th:text="#{team.profile.organizationType}">Organization Type</strong></td>
                                    <td><input type="text" class="form-control" th:field="*{organisationType}" readonly="readonly"/></td>
                                </tr>
                                <tr>
                                    <td><strong th:text="#{team.profile.visibility}">TEXT</strong></td>
                                    <td th:text="${team.visibility}" th:field="*{visibility}">TEXT</td>
                                </tr>
                            </table>
                            <div class="form-group">
                                <button type="submit" class="btn btn-standard">Save settings</button>
                            </div>
                        </form>
                    </div>
                    <div id="members" class="tab-pane fade">
                        <h3 th:text="#{teamProfile.nav.members}">Members</h3>
                        <table class="table table-responsive">
                            <thead>
                            <tr>
                                <th th:text="#{team.members.name}">Name</th>
                                <th th:text="#{team.members.institution}">TEXT</th>
                                <th th:text="#{team.members.permission}">Permission</th>
                                <th th:text="#{team.members.actions}"></th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr th:if="${team.owner}">
                                <td th:text="${team.owner.firstName + ' ' + team.owner.lastName}">TEXT</td>
                                <td th:text="${team.owner.institution}">TEXT</td>
                                <td th:text="#{team.members.memberType.owner}">MEMBER TYPE</td>
                                <td></td>
                            </tr>
                            <tr th:each="members : ${membersList}">
                                <td th:text="${members.firstName + ' ' + members.lastName}">Name</td>
                                <td th:text="${members.institution}">TEXT</td>
                                <td th:text="#{team.members.memberType.member}">MEMBER TYPE</td>
                                <td>
                                    <th:block th:if="${owner.getId() == session.id}">
                                        <a href="#" th:href="@{/remove_member/{teamId}/{userId}(teamId=${team.id}, userId=${members.id})}" class="btn btn-standard" data-toggle="tooltip" data-placement="bottom" title="Are you sure you want to remove this user from this team?"><i class="fa fa-trash btn-fa-red"></i></a>
                                    </th:block>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                        <p>&nbsp;</p>
                        <p>&nbsp;</p>
                        <p>&nbsp;</p>
                        <p>&nbsp;</p>
                        <p>&nbsp;</p>
                        <p>&nbsp;</p>
                    </div>
                    <div id="experiments" class="tab-pane fade">
                        <h3 th:text="#{teamProfile.nav.exp}">Experiments</h3>
                        <table class="table table-responsive">
                            <thead>
                            <tr>
                                <th th:text="#{experiment.table.header.experiment}">Experiment</th>
                                <th th:text="#{experiment.table.header.description}">Description</th>
                                <th th:text="#{experiment.table.header.status}">Status</th>
                                <th th:text="#{experiment.table.header.actions}">Action</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr th:each="expEntry : ${teamExperimentList}">
                                <td th:text="${expEntry.name}">Name</td>
                                <td th:text="${expEntry.description}">Description</td>
                                <th:block th:each="realization : ${teamRealizationMap.get(expEntry.id)}">
                                    <span th:if="${realization.state == 'STARTING'}">
                                        <td th:text="'Starting'"></td><commit_msg>DEV-865 enable link to remove members<commit_after><!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
    <head>
        <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
        <title>National Cybersecurity Laboratories - Team Profile</title>
        <object th:include="fragments/header :: header" th:remove="tag" />
    </head>
    <body class="mybg loginbackground">
        <div th:replace="fragments/dashboard_navigation :: dashboardnav">&nbsp;</div>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
        <div class="container">

            <p>&nbsp;</p>
            <div class="row dashpanel">
                <h2><span th:text="#{teamProfile.nav.header}">Team:</span> <span th:text="${team.name}" style="color:#00C7BA;"></span></h2>
                <ul class="nav nav-pills nav-stacked col-sm-2 text-center">
                    <li class="active"><a data-toggle="pill" href="#profile"><span th:text="#{teamProfile.nav.profile}">Profile</span></a></li>
                    <li><a data-toggle="pill" href="#members"><span th:text="#{teamProfile.nav.members}">Members</span></a></li>
                    <li><a data-toggle="pill" href="#experiments"><span th:text="#{teamProfile.nav.exp}">Experiments</span></a></li>
                </ul>
                <div class="tab-content col-sm-10">
                    <div id="profile" class="tab-pane fade in active">
                        <h3 th:text="#{teamProfile.nav.profile}">Profile</h3>
                        <form  method="post" action="#" th:action="@{/team_profile/{teamId}(teamId=${team.id})}" th:object="${team}" role="form">
                            <table class="table table-responsive">
                                <tr>
                                    <td><strong th:text="#{team.profile.id}">ID</strong></td>
                                    <td><input type="text" class="form-control" th:field="*{id}" readonly="readonly"/></td>
                                </tr>
                                <tr>
                                    <td><strong th:text="#{team.profile.status}">STATUS</strong></td>
                                    <td><input type="text" class="form-control" th:field="*{status}" readonly="readonly"/></td>
                                </tr>
                                <tr>
                                    <td><strong th:text="#{team.profile.name}">NAME</strong></td>
                                    <td><input type="text" class="form-control" th:field="*{name}" readonly="readonly"/></td>
                                </tr>
                                <tr>
                                    <td><strong th:text="#{team.profile.description}">DESCRIPTION</strong></td>
                                    <td>
                                        <span class="account-change-fail" th:if="${editDesc eq 'fail'}"><i class="fa fa-times"></i> <span th:text="#{team.profile.descriptionFail}">TEXT</span></span>
                                        <span class="account-change-success" th:if="${editDesc eq 'success'}"><i class="fa fa-check"></i> <span th:text="#{team.profile.descriptionSuccess}">TEXT</span></span>
                                        <input type="text" class="form-control" th:field="*{description}"/>
                                    </td>
                                </tr>
                                <tr th:if="${team.owner}">
                                    <td><strong th:text="#{team.profile.owner}">TEAM OWNER</strong></td>
                                    <td><input type="text" class="form-control" th:value="${team.owner.firstName + ' ' + team.owner.lastName}" readonly="readonly"/></td>
                                </tr>
                                <tr>
                                    <td><strong th:text="#{team.profile.organizationType}">Organization Type</strong></td>
                                    <td><input type="text" class="form-control" th:field="*{organisationType}" readonly="readonly"/></td>
                                </tr>
                                <tr>
                                    <td><strong th:text="#{team.profile.visibility}">TEXT</strong></td>
                                    <td th:text="${team.visibility}" th:field="*{visibility}">TEXT</td>
                                </tr>
                            </table>
                            <div class="form-group">
                                <button type="submit" class="btn btn-standard">Save settings</button>
                            </div>
                        </form>
                    </div>
                    <div id="members" class="tab-pane fade">
                        <h3 th:text="#{teamProfile.nav.members}">Members</h3>
                        <table class="table table-responsive">
                            <thead>
                            <tr>
                                <th th:text="#{team.members.name}">Name</th>
                                <th th:text="#{team.members.institution}">TEXT</th>
                                <th th:text="#{team.members.permission}">Permission</th>
                                <th th:text="#{team.members.actions}"></th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr th:if="${team.owner}">
                                <td th:text="${team.owner.firstName + ' ' + team.owner.lastName}">TEXT</td>
                                <td th:text="${team.owner.institution}">TEXT</td>
                                <td th:text="#{team.members.memberType.owner}">MEMBER TYPE</td>
                                <td></td>
                            </tr>
                            <tr th:each="members : ${membersList}">
                                <td th:text="${members.firstName + ' ' + members.lastName}">Name</td>
                                <td th:text="${members.institution}">TEXT</td>
                                <td th:text="#{team.members.memberType.member}">MEMBER TYPE</td>
                                <td>
                                    <th:block th:if="${owner.getId() == session.id}">
                                        <a th:href="@{/remove_member/{teamId}/{userId}(teamId=${team.id}, userId=${members.id})}" class="btn btn-standard" data-toggle="tooltip" data-placement="bottom" title="Are you sure you want to remove this user from this team?"><i class="fa fa-trash btn-fa-red"></i></a>
                                    </th:block>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                        <p>&nbsp;</p>
                        <p>&nbsp;</p>
                        <p>&nbsp;</p>
                        <p>&nbsp;</p>
                        <p>&nbsp;</p>
                        <p>&nbsp;</p>
                    </div>
                    <div id="experiments" class="tab-pane fade">
                        <h3 th:text="#{teamProfile.nav.exp}">Experiments</h3>
                        <table class="table table-responsive">
                            <thead>
                            <tr>
                                <th th:text="#{experiment.table.header.experiment}">Experiment</th>
                                <th th:text="#{experiment.table.header.description}">Description</th>
                                <th th:text="#{experiment.table.header.status}">Status</th>
                                <th th:text="#{experiment.table.header.actions}">Action</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr th:each="expEntry : ${teamExperimentList}">
                                <td th:text="${expEntry.name}">Name</td>
                                <td th:text="${expEntry.description}">Description</td>
                                <th:block th:each="realization : ${teamRealizationMap.get(expEntry.id)}">
                                    <span th:if="${realization.state == 'STARTING'}">
                                        <td th:text="'Starting'"></td>
{'fraction_non_alphanumeric': 0.1626060277928172, 'fraction_numerical': 0.0027070925825663237, 'mean_word_length': 1.2112263899973397, 'pattern_counts': {'":': 0, '<': 439, '<?xml version=': 0, '>': 439, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 84, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1076986', 'n_tokens_mistral': 4308, 'n_tokens_neox': 4086, 'n_words': 595}