<commit_before><div id="${addon_short_name}Scope" class="scripted">

    <!-- Add credentials modal -->
    <%include file="dataverse_credentials_modal.mako"/>

    <h4 class="addon-title">
        <img class="addon-icon" src=${addon_icon_url}></img>
        ${addon_full_name}

        <small class="authorized-by">
            <span data-bind="if: nodeHasAuth">
                authorized by <a data-bind="attr.href: urls().owner">
                    {{ownerName}}
                </a>
                % if not is_registration:
                    <a data-bind="click: deauthorize"
                        class="text-danger pull-right addon-auth">Deauthorize</a>
                % endif
            </span>

             <!-- Import Access Token Button -->
            <span data-bind="if: showImport">
                <a data-bind="click: importAuth" href="#" class="text-primary pull-right addon-auth">
                    Import Access Token
                </a>
            </span>

            <!-- Show Token Create Button -->
            <span data-bind="if: showTokenCreateButton">
                <a href="#dataverseInputCredentials" data-toggle="modal" class="pull-right text-primary addon-auth">
                    Connect an account
                </a>
            </span>

        </small>
    </h4>

    <!-- Settings Pane -->
    <div class="${addon_short_name}-settings" data-bind="visible: showSettings">

        <!-- The linked Dataverse Host -->
        <p>
            <strong>Dataverse Repository:</strong>
            <a data-bind="attr.href: savedHostUrl()">{{ savedHost }}</a>
        </p>

        <!-- The linked dataset -->
        <p>
            <strong>Current Dataset:</strong>
            <span data-bind="ifnot: submitting">
                <span data-bind="if: showLinkedDataset">
                    <a data-bind="attr.href: savedDatasetUrl()"> {{ savedDatasetTitle }}</a> on
                    <a data-bind="attr.href: savedDataverseUrl()"> {{ savedDataverseTitle }} Dataverse</a>.
                </span>
                <span data-bind="ifnot: showLinkedDataset" class="text-muted">
                    None
                </span>
            </span>
            <span data-bind="if: submitting">
                <i class="fa fa-spinner fa-lg fa-spin"></i>
            </span>
        </p>

        <div data-bind="if: showNotFound" class="text-danger">
            The current dataset was not found on Dataverse.
        </div>

        <div data-bind="if: userIsOwner">
            <span data-bind="if: hasDataverses">
                <div class="row">

                    <!-- Dataverse Picker -->
                    <div class="col-md-6">
                        Dataverse:
                        <select class="form-control"
                                data-bind="options: dataverses,
                                           optionsValue: 'alias',
                                           optionsText: 'title',
                                           value: selectedDataverseAlias,
                                           event: {change: getDatasets}">
                        </select>
                    </div>

                    <!-- Dataset Picker -->
                    <div class="col-md-6">
                        Dataset:
                        <div data-bind="if: showDatasetSelect">
                            <select class="form-control"
                                    data-bind="options: datasets,
                                               optionsValue: 'doi',
                                               optionsText: 'title',
                                               value: selectedDatasetDoi">
                            </select>
                        </div>
                        <div data-bind="if: showNoDatasets">
                            <div class="text-info" style="padding-top: 8px">
                                No datasets available.
                            </div>
                        </div>
                        <div data-bind="ifnot: loadedDatasets">
                            <i class="fa fa-spinner fa-lg fa-spin"
                               style="padding-bottom: 8px; padding-top: 8px"></i>
                            <span class="text-info">Retrieving datasets...</span>
                        </div>
                    </div>

                </div>

            </span>

            <div class="text-info" data-bind="ifnot: hasDataverses">
                The Dataverse user associated with this node does not currently have any Dataverses.
            </div>

        </div>
    </div>

    <!-- Save button for set info -->
    <div class="row">
        <div class="col-md-10">
            <p data-bind="html: message, attr: {class: messageClass}"></p>
        </div>
        <div class="col-md-2" data-bind="if: showSubmitDataset">
            <br>
            <button data-bind="enable: enableSubmitDataset, click: setInfo"
                    class="btn btn-success pull-right">
                Save
            </button>
        </div>
    </div>
</div><commit_msg>remove padding row.<commit_after><div id="${addon_short_name}Scope" class="scripted">

    <!-- Add credentials modal -->
    <%include file="dataverse_credentials_modal.mako"/>

    <h4 class="addon-title">
        <img class="addon-icon" src=${addon_icon_url}></img>
        ${addon_full_name}

        <small class="authorized-by">
            <span data-bind="if: nodeHasAuth">
                authorized by <a data-bind="attr.href: urls().owner">
                    {{ownerName}}
                </a>
                % if not is_registration:
                    <a data-bind="click: deauthorize"
                        class="text-danger pull-right addon-auth">Deauthorize</a>
                % endif
            </span>

             <!-- Import Access Token Button -->
            <span data-bind="if: showImport">
                <a data-bind="click: importAuth" href="#" class="text-primary pull-right addon-auth">
                    Import Access Token
                </a>
            </span>

            <!-- Show Token Create Button -->
            <span data-bind="if: showTokenCreateButton">
                <a href="#dataverseInputCredentials" data-toggle="modal" class="pull-right text-primary addon-auth">
                    Connect an account
                </a>
            </span>

        </small>
    </h4>

    <!-- Settings Pane -->
    <div class="${addon_short_name}-settings" data-bind="visible: showSettings">

        <!-- The linked Dataverse Host -->
        <p>
            <strong>Dataverse Repository:</strong>
            <a data-bind="attr.href: savedHostUrl()">{{ savedHost }}</a>
        </p>

        <!-- The linked dataset -->
        <p>
            <strong>Current Dataset:</strong>
            <span data-bind="ifnot: submitting">
                <span data-bind="if: showLinkedDataset">
                    <a data-bind="attr.href: savedDatasetUrl()"> {{ savedDatasetTitle }}</a> on
                    <a data-bind="attr.href: savedDataverseUrl()"> {{ savedDataverseTitle }} Dataverse</a>.
                </span>
                <span data-bind="ifnot: showLinkedDataset" class="text-muted">
                    None
                </span>
            </span>
            <span data-bind="if: submitting">
                <i class="fa fa-spinner fa-lg fa-spin"></i>
            </span>
        </p>

        <div data-bind="if: showNotFound" class="text-danger">
            The current dataset was not found on Dataverse.
        </div>

        <div data-bind="if: userIsOwner">
            <span data-bind="if: hasDataverses">
                <div class="row">

                    <!-- Dataverse Picker -->
                    <div class="col-md-6">
                        Dataverse:
                        <select class="form-control"
                                data-bind="options: dataverses,
                                           optionsValue: 'alias',
                                           optionsText: 'title',
                                           value: selectedDataverseAlias,
                                           event: {change: getDatasets}">
                        </select>
                    </div>

                    <!-- Dataset Picker -->
                    <div class="col-md-6">
                        Dataset:
                        <div data-bind="if: showDatasetSelect">
                            <select class="form-control"
                                    data-bind="options: datasets,
                                               optionsValue: 'doi',
                                               optionsText: 'title',
                                               value: selectedDatasetDoi">
                            </select>
                        </div>
                        <div data-bind="if: showNoDatasets">
                            <div class="text-info" style="padding-top: 8px">
                                No datasets available.
                            </div>
                        </div>
                        <div data-bind="ifnot: loadedDatasets">
                            <i class="fa fa-spinner fa-lg fa-spin"
                               style="padding-bottom: 8px; padding-top: 8px"></i>
                            <span class="text-info">Retrieving datasets...</span>
                        </div>
                    </div>

                </div>

            </span>

            <div class="text-info" data-bind="ifnot: hasDataverses">
                The Dataverse user associated with this node does not currently have any Dataverses.
            </div>

        </div>
    </div>

    <!-- Save button for set info -->
    <p data-bind="html: message, attr: {class: messageClass}"></p>
        <div class="col-md-2" data-bind="if: showSubmitDataset">
            <br>
            <button data-bind="enable: enableSubmitDataset, click: setInfo"
                    class="btn btn-success pull-right">
                Save
            </button>
        </div>
</div>
{'fraction_non_alphanumeric': 0.12603143418467583, 'fraction_numerical': 0.001768172888015717, 'mean_word_length': 1.15334179357022, 'pattern_counts': {'":': 0, '<': 197, '<?xml version=': 0, '>': 197, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 32, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6540462', 'n_tokens_mistral': 2551, 'n_tokens_neox': 2421, 'n_words': 559}