<commit_before>﻿<!-- interface exposure -->
<div class="panel panel-default">
    <div class="panel-heading"><strong>IT systemet udstiller følgende snitflader:</strong></div>

    <table class="table table-striped table-condensed">
        <thead data-ng-if="interfaceExposures.length > 0">
            <tr>
                <th>Ønske</th>
                <th>Aktiv</th>
                <th class="col-md-2">Snitflade</th>
                <th class="col-md-2">Kontrakt ID</th>
                <th class="col-md-1">TSA</th>
                <th class="col-md-1">Snitfladetype</th>
                <th class="col-md-1">Grænseflade</th>
                <th class="col-md-1">Metode</th>
                <th class="col-md-1">Data</th>
                <th class="col-md-1">Datatype</th>
            </tr>
        </thead>
        <tbody class="small">
            <tr data-ng-repeat-start="exposure in interfaceExposures">
                <!-- wished to be used -->
                <td rowspan="{{exposure.numRows}}">
                    <input type="checkbox" data-ng-model="exposure.usage.isWishedFor"
                           data-ng-disabled="!hasWriteAccess"
                           data-field="isWishedFor"
                           data-autosave="{{exposure.updateUrl}}" />
                </td>

                <!-- active (depends on contract) -->
                <td rowspan="{{exposure.numRows}}">
                    <span data-ng-if="exposure.usage.itContract.isActive" class="text-success">
                        <i class="glyphicon glyphicon-ok"></i>
                    </span>
                </td>

                <!-- name of the system -->
                <td rowspan="{{exposure.numRows}}">
                    <a data-ui-sref="it-system.interface-edit.interface-details({ id: exposure.id })">{{ exposure.name }}</a>
                </td>

                <!-- contract id -->
                <td rowspan="{{exposure.numRows}}">
                    <a data-ng-if="exposure.usage.itContractId != null" data-ui-sref="it-contract.edit.systems({id: exposure.usage.itContractId})">{{exposure.usage.itContract.itContractId}}
                    </a>
                </td>

                <!-- tsa -->
                <td rowspan="{{exposure.numRows}}">{{exposure.tsa.name}}
                </td>

                <!-- inteface type -->
                <td rowspan="{{exposure.numRows}}">{{exposure.interfaceType.name}}</td>

                <!-- interface (grænseflade) -->
                <td rowspan="{{exposure.numRows}}">{{exposure.interface.name}}</td>

                <!-- method -->
                <td rowspan="{{exposure.numRows}}">{{exposure.method.name}}</td>

                <!-- data -->
                <td rowspan="1">
                    <span data-ng-if="exposure.dataRows.length > 0">{{exposure.dataRows[0].data}}
                    </span>
                </td>

                <!-- data type -->
                <td>
                    <span data-ng-if="exposure.dataRows.length > 0">{{exposure.dataRows[0].dataType.name}}
                    </span>
                </td>
            </tr>
            <tr data-ng-repeat="dataRow in exposure.dataRows" data-ng-if="!$first" data-ng-repeat-end="">
                <!-- data -->
                <td rowspan="1">
                    {{dataRow.data}}
                </td>

                <!-- data type -->
                <td>
                    {{dataRow.dataType.name}}
                </td>
            </tr>
            <tr data-ng-if="interfaceExposures.length == 0">
                <td colspan="8" class="text-center">Systemet udstiller ingen snitflader</td>
            </tr>
        </tbody>
    </table>
</div>

<!-- interface usage -->
<div class="panel panel-default">
    <div class="panel-heading">
        <strong>IT systemet kan anvende følgende snitflader:</strong>
    </div>

    <table class="table table-striped table-condensed">
        <thead data-ng-if="interfaceUsages.length > 0">
            <tr>
                <th>Ønske</th>
                <th>Aktiv</th>
                <th class="col-md-1">Snitflade</th>
                <th class="col-md-1">Kontrakt ID</th>
                <th class="col-md-1">TSA</th>
                <th class="col-md-1">Infrastruktur</th>
                <th class="col-md-1">Udstiller</th>
                <th class="col-md-1">Data</th>
                <th class="col-md-1">Datatype</th>
                <th class="col-md-1">Frekvens</th>
                <th class="col-md-1">Pris</th>
                <th class="col-md-1">Mængde</th>
                <th class="col-md-1">Økonomi</th>
            </tr>
        </thead>
        <tbody class="small">
            <tr data-ng-repeat-start="usage in interfaceUsages">
                <!-- wished to be used -->
                <td rowspan="{{usage.numRows}}">
                    <input type="checkbox" data-ng-model="usage.usage.isWishedFor"
                           data-ng-disabled="!hasWriteAccess"
                           data-field="isWishedFor"
                           data-autosave="{{usage.updateUrl}}">
                </td>

                <!-- active (depends on contract) -->
                <td rowspan="{{usage.numRows}}">
                    <span data-ng-if="usage.usage.itContract.isActive" class="text-success">
                        <i class="glyphicon glyphicon-ok"></i>
                    </span>
                </td>

                <!-- name of the system -->
                <td rowspan="{{usage.numRows}}">
                    <a data-ui-sref="it-system.interface-edit.interface-details({ id: usage.id })">{{usage.name}}</a>
                </td>

                <!-- contract id -->
                <td rowspan="{{usage.numRows}}">
                    <a data-ng-if="usage.usage.itContractId != null" data-ui-sref="it-contract.edit.systems({id: usage.usage.itContractId})">{{usage.usage.itContract.itContractId}}
                    </a>
                </td>

                <!-- tsa -->
                <td rowspan="{{usage.numRows}}">{{usage.tsa.name}}
                </td>

                <!-- infrastructure -->
                <td rowspan="{{usage.numRows}}">
                    <input type="hidden" class="form-control input-sm"
                           data-ui-select2="itSystemsSelectOptions"
                           data-ng-model="usage.infrastructure"
                           data-ng-show="usage.usage.itContract.isActive"
                           data-ng-disabled="!hasWriteAccess"
                           data-field="infrastructureId"
                           data-autosave="{{usage.updateUrl}}">
                </td>
                
                <!-- exposed by -->
                <td rowspan="{{usage.numRows}}">
                    <a data-ui-sref="it-system.edit.interfaces({ id: usage.exposedBy.id })">{{usage.exposedBy.name}}</a>
                </td>

                <!-- data -->
                <td>
                    <span data-ng-if="usage.numRows > 0"><commit_msg>Exhibit column now works<commit_after>﻿<!-- interface exposure -->
<div class="panel panel-default">
    <div class="panel-heading"><strong>IT systemet udstiller følgende snitflader:</strong></div>

    <table class="table table-striped table-condensed">
        <thead data-ng-if="interfaceExposures.length > 0">
            <tr>
                <th>Ønske</th>
                <th>Aktiv</th>
                <th class="col-md-2">Snitflade</th>
                <th class="col-md-2">Kontrakt ID</th>
                <th class="col-md-1">TSA</th>
                <th class="col-md-1">Snitfladetype</th>
                <th class="col-md-1">Grænseflade</th>
                <th class="col-md-1">Metode</th>
                <th class="col-md-1">Data</th>
                <th class="col-md-1">Datatype</th>
            </tr>
        </thead>
        <tbody class="small">
            <tr data-ng-repeat-start="exposure in interfaceExposures">
                <!-- wished to be used -->
                <td rowspan="{{exposure.numRows}}">
                    <input type="checkbox" data-ng-model="exposure.usage.isWishedFor"
                           data-ng-disabled="!hasWriteAccess"
                           data-field="isWishedFor"
                           data-autosave="{{exposure.updateUrl}}" />
                </td>

                <!-- active (depends on contract) -->
                <td rowspan="{{exposure.numRows}}">
                    <span data-ng-if="exposure.usage.itContract.isActive" class="text-success">
                        <i class="glyphicon glyphicon-ok"></i>
                    </span>
                </td>

                <!-- name of the system -->
                <td rowspan="{{exposure.numRows}}">
                    <a data-ui-sref="it-system.interface-edit.interface-details({ id: exposure.id })">{{ exposure.name }}</a>
                </td>

                <!-- contract id -->
                <td rowspan="{{exposure.numRows}}">
                    <a data-ng-if="exposure.usage.itContractId != null" data-ui-sref="it-contract.edit.systems({id: exposure.usage.itContractId})">{{exposure.usage.itContract.itContractId}}
                    </a>
                </td>

                <!-- tsa -->
                <td rowspan="{{exposure.numRows}}">{{exposure.tsa.name}}
                </td>

                <!-- inteface type -->
                <td rowspan="{{exposure.numRows}}">{{exposure.interfaceType.name}}</td>

                <!-- interface (grænseflade) -->
                <td rowspan="{{exposure.numRows}}">{{exposure.interface.name}}</td>

                <!-- method -->
                <td rowspan="{{exposure.numRows}}">{{exposure.method.name}}</td>

                <!-- data -->
                <td rowspan="1">
                    <span data-ng-if="exposure.dataRows.length > 0">{{exposure.dataRows[0].data}}
                    </span>
                </td>

                <!-- data type -->
                <td>
                    <span data-ng-if="exposure.dataRows.length > 0">{{exposure.dataRows[0].dataType.name}}
                    </span>
                </td>
            </tr>
            <tr data-ng-repeat="dataRow in exposure.dataRows" data-ng-if="!$first" data-ng-repeat-end="">
                <!-- data -->
                <td rowspan="1">
                    {{dataRow.data}}
                </td>

                <!-- data type -->
                <td>
                    {{dataRow.dataType.name}}
                </td>
            </tr>
            <tr data-ng-if="interfaceExposures.length == 0">
                <td colspan="8" class="text-center">Systemet udstiller ingen snitflader</td>
            </tr>
        </tbody>
    </table>
</div>

<!-- interface usage -->
<div class="panel panel-default">
    <div class="panel-heading">
        <strong>IT systemet kan anvende følgende snitflader:</strong>
    </div>

    <table class="table table-striped table-condensed">
        <thead data-ng-if="interfaceUsages.length > 0">
            <tr>
                <th>Ønske</th>
                <th>Aktiv</th>
                <th class="col-md-1">Snitflade</th>
                <th class="col-md-1">Kontrakt ID</th>
                <th class="col-md-1">TSA</th>
                <th class="col-md-1">Infrastruktur</th>
                <th class="col-md-1">Udstiller</th>
                <th class="col-md-1">Data</th>
                <th class="col-md-1">Datatype</th>
                <th class="col-md-1">Frekvens</th>
                <th class="col-md-1">Pris</th>
                <th class="col-md-1">Mængde</th>
                <th class="col-md-1">Økonomi</th>
            </tr>
        </thead>
        <tbody class="small">
            <tr data-ng-repeat-start="usage in interfaceUsages">
                <!-- wished to be used -->
                <td rowspan="{{usage.numRows}}">
                    <input type="checkbox" data-ng-model="usage.usage.isWishedFor"
                           data-ng-disabled="!hasWriteAccess"
                           data-field="isWishedFor"
                           data-autosave="{{usage.updateUrl}}">
                </td>

                <!-- active (depends on contract) -->
                <td rowspan="{{usage.numRows}}">
                    <span data-ng-if="usage.usage.itContract.isActive" class="text-success">
                        <i class="glyphicon glyphicon-ok"></i>
                    </span>
                </td>

                <!-- name of the system -->
                <td rowspan="{{usage.numRows}}">
                    <a data-ui-sref="it-system.interface-edit.interface-details({ id: usage.id })">{{usage.name}}</a>
                </td>

                <!-- contract id -->
                <td rowspan="{{usage.numRows}}">
                    <a data-ng-if="usage.usage.itContractId != null" data-ui-sref="it-contract.edit.systems({id: usage.usage.itContractId})">{{usage.usage.itContract.itContractId}}
                    </a>
                </td>

                <!-- tsa -->
                <td rowspan="{{usage.numRows}}">{{usage.tsa.name}}
                </td>

                <!-- infrastructure -->
                <td rowspan="{{usage.numRows}}">
                    <input type="hidden" class="form-control input-sm"
                           data-ui-select2="itSystemsSelectOptions"
                           data-ng-model="usage.infrastructure"
                           data-ng-show="usage.usage.itContract.isActive"
                           data-ng-disabled="!hasWriteAccess"
                           data-field="infrastructureId"
                           data-autosave="{{usage.updateUrl}}">
                </td>
                
                <!-- exposed by -->
                <td rowspan="{{usage.numRows}}">
                    <a data-ui-sref="it-system.edit.interfaces({ id: usage.exhibitedByItSystemId })">{{usage.exhibitedByItSystemName}}</a>
                </td>

                <!-- data -->
                <td>
                    <span data-ng-if="usage.numRows > 0">
{'fraction_non_alphanumeric': 0.16677275620623808, 'fraction_numerical': 0.004385034302284462, 'mean_word_length': 1.3149967256057629, 'pattern_counts': {'":': 0, '<': 337, '<?xml version=': 0, '>': 347, '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': '5003331', 'n_tokens_mistral': 4253, 'n_tokens_neox': 3869, 'n_words': 598}