<commit_before><div id="filter-settings" class="settings-section" data-name="filter-settings">
    <div class="admin-table-wrapper">

        <p>
            {{#tr this}}
            Configure regular expression patterns that will be
            automatically linkified when used in Zulip message bodies or
            topics.  For example to automatically linkify commit IDs and
            issue numbers (e.g. #123) to the corresponding items in a GitHub
            project, you could use the following:
            {{/tr}}
        </p>
        <ul>
            <li>
                <code>#(?P&lt;id&gt;[0-9]+)</code>
                {{t "and" }}
                <code>https://github.com/zulip/zulip/issues/%(id)s</code>
            </li>
            <li>
                <code>(?P&lt;id&gt;[0-9a-f]{40})</code>
                {{t "and" }}
                <code>https://github.com/zulip/zulip/commit/%(id)s</code>
            </li>
        </ul>
        <p>
            {{#tr this}}
            Or, to automatically linkify GitHub's <code>org/repo#1234</code> syntax:
            {{/tr}}
        </p>
        <ul>
            <li>
                <code>(?P&lt;org&gt;[a-zA-Z0-9_-]+)/(?P&lt;repo&gt;[a-zA-Z0-9_-]+)#(?P&lt;id&gt;[0-9]+)</code>
                {{t "and" }}
                <code>https://github.com/%(org)s/%(repo)s/commit/%(id)s</code>
            </li>
        </ul>
        <p>
            {{#tr this}}
            More details are available <a href="/help/add-a-custom-linkification-filter" target="_blank">in the Help Center article</a>.
            {{/tr}}
        </p>

        <table class="table table-condensed table-striped admin_filters_table">
            <thead>
                <th>{{t "Pattern" }}</th>
                <th>{{t "URL format string" }}</th>
                {{#if is_admin}}
                <th class="actions">{{t "Actions" }}</th>
                {{/if}}
            </thead>
            <tbody id="admin_filters_table" {{#if is_admin}}{{else}}class="required-text" data-empty="{{t 'No linkifiers set.' }}"{{/if}}></tbody>
        </table>
    </div>
    {{#if is_admin}}
    <form class="form-horizontal admin-filter-form">
        <div class="add-new-filter-box grey-box">
            <div class="new-filter-form wrapper"><commit_msg>settings: Fix linkifier settings page example.<commit_after><div id="filter-settings" class="settings-section" data-name="filter-settings">
    <div class="admin-table-wrapper">

        <p>
            {{#tr this}}
            Configure regular expression patterns that will be
            automatically linkified when used in Zulip message bodies or
            topics.  For example to automatically linkify commit IDs and
            issue numbers (e.g. #123) to the corresponding items in a GitHub
            project, you could use the following:
            {{/tr}}
        </p>
        <ul>
            <li>
                <code>#(?P&lt;id&gt;[0-9]+)</code>
                {{t "and" }}
                <code>https://github.com/zulip/zulip/issues/%(id)s</code>
            </li>
            <li>
                <code>(?P&lt;id&gt;[0-9a-f]{40})</code>
                {{t "and" }}
                <code>https://github.com/zulip/zulip/commit/%(id)s</code>
            </li>
        </ul>
        <p>
            {{#tr this}}
            Or, to automatically linkify GitHub's <code>org/repo#1234</code> syntax:
            {{/tr}}
        </p>
        <ul>
            <li>
                <code>(?P&lt;org&gt;[a-zA-Z0-9_-]+)/(?P&lt;repo&gt;[a-zA-Z0-9_-]+)#(?P&lt;id&gt;[0-9]+)</code>
                {{t "and" }}
                <code>https://github.com/%(org)s/%(repo)s/issues/%(id)s</code>
            </li>
        </ul>
        <p>
            {{#tr this}}
            More details are available <a href="/help/add-a-custom-linkification-filter" target="_blank">in the Help Center article</a>.
            {{/tr}}
        </p>

        <table class="table table-condensed table-striped admin_filters_table">
            <thead>
                <th>{{t "Pattern" }}</th>
                <th>{{t "URL format string" }}</th>
                {{#if is_admin}}
                <th class="actions">{{t "Actions" }}</th>
                {{/if}}
            </thead>
            <tbody id="admin_filters_table" {{#if is_admin}}{{else}}class="required-text" data-empty="{{t 'No linkifiers set.' }}"{{/if}}></tbody>
        </table>
    </div>
    {{#if is_admin}}
    <form class="form-horizontal admin-filter-form">
        <div class="add-new-filter-box grey-box">
            <div class="new-filter-form wrapper">
{'fraction_non_alphanumeric': 0.18039556618126495, 'fraction_numerical': 0.008259074114322973, 'mean_word_length': 1.6493955094991364, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 103, 'https://': 6, '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': '6078089', 'n_tokens_mistral': 1503, 'n_tokens_neox': 1440, 'n_words': 298}