<commit_before>
{if $user.access == "superadmin"}

<form action="/admin/" class="well">
    <fieldset>
        <legend>Sitograph Terminal</legend>
        <p>Exec code:</p>
        <div class="row">
        <div class="col-xs-9">
            <textarea class="form-control" name="terminal_code">{$terminal_code}</textarea>
        </div>
        <div class="col-xs-3 text-center">
            <input class="btn btn-default btn-block" type="submit" value="Submit Request" onclick="if(!confirm('Are you sure you want to execute this code? This action cannot be undone.')) return false;">
        </div>

{if $terminal_result}
        <div class="col-xs-12">
            <h4>Result output:</h4>
            <pre>{$terminal_result}</pre>
        </div>
{/if}
        </div>
    </fieldset>
</form>

{/if}


{if !$google_analytics_tracking_id}
	<div class="alert alert-danger">
	<b>{_t("msg.ga_not_configured")}</b><br>
	<a href="/admin/?section=site_settings&edit_key=google_analytics_tracking_id">{_t("admin.site_settings")} (google_analytics_tracking_id)</a>.
	</div>
{/if}

{include "$themePath/sitograph/section/realtime.tpl"}
<commit_msg>Terminal code ID<commit_after>
{if $user.access == "superadmin"}

<form action="/admin/" class="well">
    <fieldset>
        <legend>Sitograph Terminal</legend>
        <p>Exec code:</p>
        <div class="row">
        <div class="col-xs-9">
            <textarea class="form-control" name="terminal_code" id="terminal_code">{$terminal_code}</textarea>
        </div>
        <div class="col-xs-3 text-center">
            <input class="btn btn-default btn-block" type="submit" value="Submit Request" onclick="if(!confirm('Are you sure you want to execute this code? This action cannot be undone.')) return false;">
        </div>

{if $terminal_result}
        <div class="col-xs-12">
            <h4>Result output:</h4>
            <pre>{$terminal_result}</pre>
        </div>
{/if}
        </div>
    </fieldset>
</form>

{/if}


{if !$google_analytics_tracking_id}
	<div class="alert alert-danger">
	<b>{_t("msg.ga_not_configured")}</b><br>
	<a href="/admin/?section=site_settings&edit_key=google_analytics_tracking_id">{_t("admin.site_settings")} (google_analytics_tracking_id)</a>.
	</div>
{/if}

{include "$themePath/sitograph/section/realtime.tpl"}

{'fraction_non_alphanumeric': 0.18059181897302, 'fraction_numerical': 0.005221932114882507, 'mean_word_length': 3.370722433460076, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 63, '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': '6882294', 'n_tokens_mistral': 809, 'n_tokens_neox': 771, 'n_words': 151}