<commit_before><!-- modal_site_actions START -->
% if sitesAll:
%   for site in sitesAll:
%       status = site.status()
<div id="modal-site-actions-{{site.name}}" class="w3-modal">
    <div class="w3-modal-content w3-card-8">
        <div class="w3-container">

            <span class="w3-closebtn"
                onclick="modalHide('modal-site-actions-{{site.name}}')">&times;</span>

            <h2>site: <a href="/siteman/{{site.name}}/view">{{site.name}}</a></h2>

            <p>
                webserver: {{site.webserver.name}}<br>
                container: {{site.webserver.containerName}}<br>
            </p>

            <hr class="w3-border">

            <p>
                <button class="w3-btn"
                    onclick="siteStart('{{site.name}}')"
%       if status == 'running':
                    disabled
%       end
                >start</button>
                <button class="w3-btn"
                    onclick="siteStop('{{site.name}}')"
%       if status != 'running':
                    disabled
%       end
                >stop</button>
                <button class="w3-btn"
                    onclick="siteRemove('{{site.name}}')"
%       if status == 'running':
                    disabled
%       end
                >remove</button>
            </p>

        </div>
    </div>
</div>
%   end<commit_msg>show site URL if running<commit_after><!-- modal_site_actions START -->
% if sitesAll:
%   for site in sitesAll:
%       status = site.status()
<div id="modal-site-actions-{{site.name}}" class="w3-modal">
    <div class="w3-modal-content w3-card-8">
        <div class="w3-container">

            <span class="w3-closebtn"
                onclick="modalHide('modal-site-actions-{{site.name}}')">&times;</span>

            <h2>site: <a href="/siteman/{{site.name}}/view">{{site.name}}</a></h2>

            <p>
                webserver: {{site.webserver.name}}<br>
                container: {{site.webserver.containerName}}<br>
            </p>

            <hr class="w3-border">

%       if status == 'running':
            <a href="http://localhost:4080" target="_blank">http://localhost:4080</a>
%       end

            <p>
                <button class="w3-btn"
                    onclick="siteStart('{{site.name}}')"
%       if status == 'running':
                    disabled
%       end
                >start</button>
                <button class="w3-btn"
                    onclick="siteStop('{{site.name}}')"
%       if status != 'running':
                    disabled
%       end
                >stop</button>
                <button class="w3-btn"
                    onclick="siteRemove('{{site.name}}')"
%       if status == 'running':
                    disabled
%       end
                >remove</button>
            </p>

        </div>
    </div>
</div>
%   end
{'fraction_non_alphanumeric': 0.17229254571026723, 'fraction_numerical': 0.011251758087201125, 'mean_word_length': 1.4803836094158676, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 57, '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': '5829041', 'n_tokens_mistral': 873, 'n_tokens_neox': 828, 'n_words': 142}