<commit_before>

<div id="app" class="b2sharebridge">

    <?php $_['appNavigation']->printPage(); ?>

    <div id="app-content">
        <div id="app-content-wrapper">

            <table class="publish-queue-list">
                <?php if (sizeof($_['publications']) > 0) : ?>
                    <thead>
                    <tr>
                        <th>Transfer ID</th>
                        <th>#Files</th>
                        <th>Title</th>
                        <th>Status</th>
                        <th>Deposit URL</th>
                        <th>Triggered At</th>
                        <th>Last Update</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php foreach ($_['publications'] as $publication): ?>
                        <tr>
                            <td><?php p($publication->getId()) ?></td>
                            <td><?php p($publication->getFileCount()) ?></td>
                            <?php // TODO: echo as user specific timedate ?>
                            <td><?php p($publication->getTitle()) ?></td>
                            <td><?php p($_['statuscodes']->getForNumber($publication->getStatus())) ?></td>
                            <td><?php if ($publication->getStatus() > 0) : ?>
                                    ERROR : <?php  p($publication->getErrorMessage()) ?>
                                <?php else: ?>
                                    <a href="<?php p($publication->getUrl()) ?>" target="_blank">Deposit URL</a>
                                <?php endif; ?>
                            </td>
                            <td><?php p(date('D\, j M Y H:i:s', $publication->getCreatedAt())) ?></td>
                            <td><?php p(date('D\, j M Y H:i:s', $publication->getUpdatedAt())) ?></td>
                        </tr>
                    <?php endforeach; ?>
                    </tbody>
                <?php else: ?>
                    <tr>
                        <td>No deposits for this category found.</td>
                    </tr>
                <?php endif; ?>
            </table>

            <div style="margin-top: 20px;">&nbsp;</div><commit_msg>Show ERROR in Deposit URL column only if an error occured, show the deposit URL link only if the upload was successful. Is part of #50<commit_after>

<div id="app" class="b2sharebridge">

    <?php $_['appNavigation']->printPage(); ?>

    <div id="app-content">
        <div id="app-content-wrapper">

            <table class="publish-queue-list">
                <?php if (sizeof($_['publications']) > 0) : ?>
                    <thead>
                    <tr>
                        <th>Transfer ID</th>
                        <th>#Files</th>
                        <th>Title</th>
                        <th>Status</th>
                        <th>Deposit URL</th>
                        <th>Triggered At</th>
                        <th>Last Update</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php foreach ($_['publications'] as $publication): ?>
                        <tr>
                            <td><?php p($publication->getId()) ?></td>
                            <td><?php p($publication->getFileCount()) ?></td>
                            <?php // TODO: echo as user specific timedate ?>
                            <td><?php p($publication->getTitle()) ?></td>
                            <td><?php p($_['statuscodes']->getForNumber($publication->getStatus())) ?></td>
                            <td><?php if ($publication->getStatus() > 2) : ?>
                                    ERROR: <?php  p($publication->getErrorMessage()) ?>
                                <?php elseif ($publication->getStatus() == 0) : ?>
                                    <a href="<?php p($publication->getUrl()) ?>" target="_blank">Deposit URL</a>
                                <?php endif; ?>
                            </td>
                            <td><?php p(date('D\, j M Y H:i:s', $publication->getCreatedAt())) ?></td>
                            <td><?php p(date('D\, j M Y H:i:s', $publication->getUpdatedAt())) ?></td>
                        </tr>
                    <?php endforeach; ?>
                    </tbody>
                <?php else: ?>
                    <tr>
                        <td>No deposits for this category found.</td>
                    </tr>
                <?php endif; ?>
            </table>

            <div style="margin-top: 20px;">&nbsp;</div>
{'fraction_non_alphanumeric': 0.16085440278988666, 'fraction_numerical': 0.002833478639930253, 'mean_word_length': 1.045920641997325, 'pattern_counts': {'":': 0, '<': 137, '<?xml version=': 0, '>': 164, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '7347647', 'n_tokens_mistral': 1197, 'n_tokens_neox': 1140, 'n_words': 246}