<commit_before>### Included where the LogsViewModel is used ###

## :param bool scripted: Whether to apply the "scripted" CSS class to the logFeed to prevent FOUC
<%page args="scripted=True"/>
<div id="logProgressBar" class="progress progress-striped active">
    <div class="progress-bar"  role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%">
        <span class="sr-only">Loading</span>
    </div>
</div>

<div
    %if scripted:
        class="scripted"
    %endif
        id="logScope">
    <p class="help-block" data-bind="if: tzname">
        All times displayed at
        <span data-bind="text: tzname"></span>
        <a href="http://en.wikipedia.org/wiki/Coordinated_Universal_Time" target="_blank">UTC</a> offset.
    </p>

    <dl class="dl-horizontal activity-log" data-bind="foreach: {data: logs, as: 'log'}">
        <dt><span class="date log-date" data-bind="text: log.date.local, tooltip: {title: log.date.utc}"></span></dt>
        <dd class="log-content">

            <!-- ko if: log.hasTemplate() -->
            <span data-bind="if:log.anonymous">
            <span class="contributor-anonymous">A user</span>
            </span>
            <span data-bind="ifnot:log.anonymous">
                <span data-bind="if: log.userURL">
                    <a class="overflow" data-bind="text: log.userFullName || log.apiKey, attr: {href: log.userURL}"></a>
                </span>
                <span data-bind="ifnot: log.userURL">
                    <span class="overflow" data-bind="text: log.userFullName"></span>
                </span>
            </span>
            <!-- Log actions are the same as their template name -->
            <span data-bind="template: {name: log.action, data: log}"></span>
            <!-- /ko -->

            <!-- For debugging purposes: If a log template for a the Log can't be found, show
                an error message with its log action. -->
            <!-- ko ifnot: log.hasTemplate() -->
            <span class="text-warning">Could not render log: "<span data-bind="text: log.action"></span>"</span>
            <!-- /ko -->

        </dd>
    </dl><!-- end foreach logs -->
    <a class="moreLogs" data-bind="click: moreLogs, visible: enableMoreLogs">more</a><commit_msg>Add a message when there are not watched logs to show<commit_after>### Included where the LogsViewModel is used ###

## :param bool scripted: Whether to apply the "scripted" CSS class to the logFeed to prevent FOUC
<%page args="scripted=True"/>
<div id="logProgressBar" class="progress progress-striped active">
    <div class="progress-bar"  role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%">
        <span class="sr-only">Loading</span>
    </div>
</div>

<div
    %if scripted:
        class="scripted"
    %endif
        id="logScope">
    <p class="help-block" data-bind="if: tzname">
        All times displayed at
        <span data-bind="text: tzname"></span>
        <a href="http://en.wikipedia.org/wiki/Coordinated_Universal_Time" target="_blank">UTC</a> offset.
    </p>

    <p data-bind="if: !logs().length" class="help-block">
        No logs to show. Click the watch icon (<i class="icon-eye-open"></i>) icon on a
        project's page to get activity updates here.
    </p>

    <dl class="dl-horizontal activity-log" data-bind="foreach: {data: logs, as: 'log'}">
        <dt><span class="date log-date" data-bind="text: log.date.local, tooltip: {title: log.date.utc}"></span></dt>
        <dd class="log-content">

            <!-- ko if: log.hasTemplate() -->
            <span data-bind="if:log.anonymous">
            <span class="contributor-anonymous">A user</span>
            </span>
            <span data-bind="ifnot:log.anonymous">
                <span data-bind="if: log.userURL">
                    <a class="overflow" data-bind="text: log.userFullName || log.apiKey, attr: {href: log.userURL}"></a>
                </span>
                <span data-bind="ifnot: log.userURL">
                    <span class="overflow" data-bind="text: log.userFullName"></span>
                </span>
            </span>
            <!-- Log actions are the same as their template name -->
            <span data-bind="template: {name: log.action, data: log}"></span>
            <!-- /ko -->

            <!-- For debugging purposes: If a log template for a the Log can't be found, show
                an error message with its log action. -->
            <!-- ko ifnot: log.hasTemplate() -->
            <span class="text-warning">Could not render log: "<span data-bind="text: log.action"></span>"</span>
            <!-- /ko -->

        </dd>
    </dl><!-- end foreach logs -->
    <a class="moreLogs" data-bind="click: moreLogs, visible: enableMoreLogs">more</a>
{'fraction_non_alphanumeric': 0.16988176726820162, 'fraction_numerical': 0.004148516905206389, 'mean_word_length': 2.3579387186629526, 'pattern_counts': {'":': 0, '<': 109, '<?xml version=': 0, '>': 109, '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': '5606566', 'n_tokens_mistral': 1487, 'n_tokens_neox': 1432, 'n_words': 384}