<commit_before>{% load i18n %}
<div data-bind="saveButton: saveButton"></div>
<table class="table">
    <thead>
        <tr class="row form-group" data-bind="css: {'has-error': validateGeneral()}">
            <th></th>
            <th></th>
            <th>{% if not hide_deploy_column %}{% trans "Deploy" %}{% endif %}</th>
            <th></th>
            <th></th>
            <th></th>
            <th>
                <p class="help-block" data-bind="text: validateGeneral()"></p>
            </th>
            <th></th>
        </tr>
    </thead>
    <tbody data-bind="sortable: languages">
        <tr class="row form-group"
            data-bind="
                css: {'has-error': show_error, light: !deploy()},
                attr: {'data-order': _sortableOrder}
                ">
            <td data-bind="css: {'sortable-handle': $root.canSortLanguages}">
                <i class="fa fa-arrows-v" data-bind="visible: $root.canSortLanguages"></i>
            </td>
            <td>
                <span data-bind="text: $root.languages.indexOf($data) + 1 + '.', visible: !isDefaultLang()"></span>
                <span class="label label-info" data-bind="visible: isDefaultLang()">1. default</span>
            </td>
            <td>
                {% if hide_deploy_column %}
                    <input type="checkbox" checked="checked" data-bind="value: deploy, visible: false" />
                {% else %}
                    <span data-bind="editableBool: deploy"></span>
                {% endif %}
            </td>
            <td>
                <span class="form-inline"
                      data-bind="langcode: langcode, valueUpdate: 'textchange', inputHandlers: {hasfocus: $root.seen}">
                </span>
            </td>
            <td>
                <span data-bind="visible: originalLangcode() && originalLangcode() !== langcode()">
                    <i class="fa fa-arrow-left"></i>
                </span>
            </td>
            <td>
                <span class="code" data-bind="text: originalLangcode, visible: originalLangcode() !== langcode()"></span>
            </td>
            <td><p class="help-block" data-bind="text: message"></p></td>
            <td>
                <a href="#" data-bind="click: $root.removeLanguage">{% trans 'Delete' %}</a>
            </td>
        </tr>
    </tbody>
</table>
<button class="btn btn-default" data-bind="click: addLanguage, disable: addLanguageDisabled">
    <i class="fa fa-plus"></i>
    {% trans "Add Language" %}
</button>
<span class='label label-warning' data-bind="visible: addLanguageDisabled">{% trans 'Please save before adding another language' %}</span>
<div data-bind="if: removedLanguages().length"><commit_msg>Stop language table columns from jumping around<commit_after>{% load i18n %}
<div data-bind="saveButton: saveButton"></div>
<table class="table">
    <thead>
        <tr class="row form-group" data-bind="css: {'has-error': validateGeneral()}">
            <th></th>
            <th></th>
            <th>{% if not hide_deploy_column %}{% trans "Deploy" %}{% endif %}</th>
            <th></th>
            <th></th>
            <th></th>
            <th>
                <p class="help-block" data-bind="text: validateGeneral()"></p>
            </th>
            <th></th>
        </tr>
    </thead>
    <tbody data-bind="sortable: languages">
        <tr class="row form-group"
            data-bind="
                css: {'has-error': show_error, light: !deploy()},
                attr: {'data-order': _sortableOrder}
                ">
            <td class="col-sm-1" data-bind="css: {'sortable-handle': $root.canSortLanguages}">
                <i class="fa fa-arrows-v" data-bind="visible: $root.canSortLanguages"></i>
            </td>
            <td class="col-sm-2">
                <span data-bind="text: $root.languages.indexOf($data) + 1 + '.', visible: !isDefaultLang()"></span>
                <span class="label label-info" data-bind="visible: isDefaultLang()">1. default</span>
            </td>
            <td class="col-sm-2">
                {% if hide_deploy_column %}
                    <input type="checkbox" checked="checked" data-bind="value: deploy, visible: false" />
                {% else %}
                    <span data-bind="editableBool: deploy"></span>
                {% endif %}
            </td>
            <td class="col-sm-1">
                <span class="form-inline"
                      data-bind="langcode: langcode, valueUpdate: 'textchange', inputHandlers: {hasfocus: $root.seen}">
                </span>
            </td>
            <td class="col-sm-1">
                <span data-bind="visible: originalLangcode() && originalLangcode() !== langcode()">
                    <i class="fa fa-arrow-left"></i>
                </span>
            </td>
            <td class="col-sm-1">
                <span class="code" data-bind="text: originalLangcode, visible: originalLangcode() !== langcode()"></span>
            </td>
            <td class="col-sm-2">
                <p class="help-block" data-bind="text: message"></p>
            </td>
            <td class="col-sm-2">
                <a href="#" data-bind="click: $root.removeLanguage">{% trans 'Delete' %}</a>
            </td>
        </tr>
    </tbody>
</table>
<button class="btn btn-default" data-bind="click: addLanguage, disable: addLanguageDisabled">
    <i class="fa fa-plus"></i>
    {% trans "Add Language" %}
</button>
<span class='label label-warning' data-bind="visible: addLanguageDisabled">{% trans 'Please save before adding another language' %}</span>
<div data-bind="if: removedLanguages().length">
{'fraction_non_alphanumeric': 0.18024691358024691, 'fraction_numerical': 0.0028218694885361554, 'mean_word_length': 1.8511814982403219, 'pattern_counts': {'":': 0, '<': 151, '<?xml version=': 0, '>': 151, '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': '379074', 'n_tokens_mistral': 1710, 'n_tokens_neox': 1622, 'n_words': 355}