<commit_before><!-- /**
 * Copyright 2015 Otto (GmbH & Co KG)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */  -->

<div>
    <div class="row">
        <div class="col-md-12">
            <div class="col-md-2">
                <span class="glyphicon glyphicon-list-alt" style="font-size: 3em;"></span>
            </div>
            <div class="col-md-10" style="padding-top: 15px;">
                <a th:href="'/table?fqdn=' + ${table.fqdn}" data-th-text="${table.tableName}"></a>
            </div>
        </div>
    </div>
    <br/>
    <table class="table table-reflow">
        <tr style="border-bottom: 1px solid lightgrey;">
            <td width="20%"><b>Database</b></td>
            <td width="80%" data-th-text="${table.databaseName}"></td>
        </tr>
        <tr data-th-if="${table.isPartitioned()}" style="border-bottom: 1px solid lightgrey;">
            <td width="20%"><b>Partition</b></td>
            <td width="80%" data-th-text="${table.parameterString}"></td>
        </tr>
        <tr data-th-if="${table.tableDescription != null}" style="border-bottom: 1px solid lightgrey;">
            <td width="20%"><b>Description</b></td>
            <td width="80%" data-th-text="${table.tableDescription}"></td>
        </tr>
        <tr data-th-if="${table.getLastData() != null}" style="border-bottom: 1px solid lightgrey;">
            <td width="20%"><b>Last Data from</b></td>
            <td width="80%" th:with="value=${util.getTime(table.lastData, table.timestampFieldFormat)}"
                data-th-text="${value == null} ? '-' : ${value}"></td>
        </tr>
        <tr data-th-if="${table.isPartitioned() and table.lastPartitionCreated > 0}"
            style="border-bottom: 1px solid lightgrey;">
            <td width="20%"><b>Last Partition created</b></td>
            <td width="80%" th:with="value=${util.getTime(table.lastPartitionCreated)}"
                data-th-text="${value == null} ? '-' : ${value}"></td>
        </tr>
        <tr data-th-if="${table.lastSchemaChange > 0}" style="border-bottom: 1px solid lightgrey;">
            <td width="20%"><b>Last Schema change</b></td>
            <td width="80%" th:with="value=${util.getTime(table.lastSchemaChange)}"
                data-th-text="${value == null} ? '-' : ${value}"></td>
        </tr>
        <tr data-th-if="${table.personResponsible != null}"
            th:with="user=${userEntityService.findByFullname(table.personResponsible)}"
            style="border-bottom: 1px solid lightgrey;">
            <td width="20%"><b>Person responsible</b></td>
            <td data-th-if="${user != null}" width="80%"><a th:href="'mailto:' + ${user.email}"
                                                            data-th-text="${user.fullname}"></a></td>
            <td data-th-if="${user == null}" width="80%" data-th-text="${table.personResponsible}"></td>
        </tr>
    </table>
</div><commit_msg>fixed npe caused by wrong object name reference<commit_after><!-- /**
 * Copyright 2015 Otto (GmbH & Co KG)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */  -->

<div>
    <div class="row">
        <div class="col-md-12">
            <div class="col-md-2">
                <span class="glyphicon glyphicon-list-alt" style="font-size: 3em;"></span>
            </div>
            <div class="col-md-10" style="padding-top: 15px;">
                <a th:href="'/table?fqdn=' + ${table.fqdn}" data-th-text="${table.tableName}"></a>
            </div>
        </div>
    </div>
    <br/>
    <table class="table table-reflow">
        <tr style="border-bottom: 1px solid lightgrey;">
            <td width="20%"><b>Database</b></td>
            <td width="80%" data-th-text="${table.databaseName}"></td>
        </tr>
        <tr data-th-if="${table.isPartitioned()}" style="border-bottom: 1px solid lightgrey;">
            <td width="20%"><b>Partition</b></td>
            <td width="80%" data-th-text="${table.parameterString}"></td>
        </tr>
        <tr data-th-if="${table.tableDescription != null}" style="border-bottom: 1px solid lightgrey;">
            <td width="20%"><b>Description</b></td>
            <td width="80%" data-th-text="${table.tableDescription}"></td>
        </tr>
        <tr data-th-if="${table.getLastData() != null}" style="border-bottom: 1px solid lightgrey;">
            <td width="20%"><b>Last Data from</b></td>
            <td width="80%" th:with="value=${util.getTime(table.lastData, table.timestampFieldFormat)}"
                data-th-text="${value == null} ? '-' : ${value}"></td>
        </tr>
        <tr data-th-if="${table.isPartitioned() and table.lastPartitionCreated > 0}"
            style="border-bottom: 1px solid lightgrey;">
            <td width="20%"><b>Last Partition created</b></td>
            <td width="80%" th:with="value=${util.getTime(table.lastPartitionCreated)}"
                data-th-text="${value == null} ? '-' : ${value}"></td>
        </tr>
        <tr data-th-if="${table.lastSchemaChange > 0}" style="border-bottom: 1px solid lightgrey;">
            <td width="20%"><b>Last Schema change</b></td>
            <td width="80%" th:with="value=${util.getTime(table.lastSchemaChange)}"
                data-th-text="${value == null} ? '-' : ${value}"></td>
        </tr>
        <tr data-th-if="${table.personResponsible != null}"
            th:with="user=${metascopeUserService.findByFullname(table.personResponsible)}"
            style="border-bottom: 1px solid lightgrey;">
            <td width="20%"><b>Person responsible</b></td>
            <td data-th-if="${user != null}" width="80%"><a th:href="'mailto:' + ${user.email}"
                                                            data-th-text="${user.fullname}"></a></td>
            <td data-th-if="${user == null}" width="80%" data-th-text="${table.personResponsible}"></td>
        </tr>
    </table>
</div>
{'fraction_non_alphanumeric': 0.1925818181818182, 'fraction_numerical': 0.016, 'mean_word_length': 2.5153374233128836, 'pattern_counts': {'":': 0, '<': 159, '<?xml version=': 0, '>': 163, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6039064', 'n_tokens_mistral': 2178, 'n_tokens_neox': 2047, 'n_words': 470}