<commit_before>var currentPath = null;
var apiKey = "<KEY>";


// setup

$(document).ready(function () {

    $(document).ajaxStart($.blockUI).ajaxStop($.unblockUI);

    $('#dndPanel').bind('dragover', handleDragOver).bind('drop', handleFileSelect);

    resizeUi();

    $('#editPanel').hide();
    $('#fileControl').hide();

    $("#errorDialog").dialog({
        resizable: false,
        modal: true,
        autoOpen: false,
        closeOnEscape: true,
        buttons: {}
    });

    $("#mkdir").click(function () {
        if ($(this).hasClass("disabled")) {
            return false;
        }
        var name = prompt("Enter name for new folder");
        if (name) {
            createFolder(currentPath, name);
        }
    });

    $("#importfile").click(function () {
        if ($(this).hasClass("disabled")) {
            return false;
        }
        $('#fileModal').modal('toggle');
    });

    $("#exportzip").click(function () {
        if ($(this).hasClass("disabled")) {
            return false;
        }
        $("#fileIframe").attr("src", "/api/v2" + currentPath + "?zip=true&api_key=" + apiKey);
    });

    $("#rm").click(function () {

        if ($(this).hasClass("disabled")) {
            return false;
        }
        deleteSelected();<commit_msg>bugfix: unauthorized error on downloading file as zip<commit_after>var currentPath = null;
var apiKey = "<KEY>";


// setup

$(document).ready(function () {

    $(document).ajaxStart($.blockUI).ajaxStop($.unblockUI);

    $('#dndPanel').bind('dragover', handleDragOver).bind('drop', handleFileSelect);

    resizeUi();

    $('#editPanel').hide();
    $('#fileControl').hide();

    $("#errorDialog").dialog({
        resizable: false,
        modal: true,
        autoOpen: false,
        closeOnEscape: true,
        buttons: {}
    });

    $("#mkdir").click(function () {
        if ($(this).hasClass("disabled")) {
            return false;
        }
        var name = prompt("Enter name for new folder");
        if (name) {
            createFolder(currentPath, name);
        }
    });

    $("#importfile").click(function () {
        if ($(this).hasClass("disabled")) {
            return false;
        }
        $('#fileModal').modal('toggle');
    });

    $("#exportzip").click(function () {
        if ($(this).hasClass("disabled")) {
            return false;
        }
        $("#fileIframe").attr("src", "/api/v2" + currentPath + "?zip=true&api_key=" + apiKey + "&session_token=" + sessionToken);
    });

    $("#rm").click(function () {

        if ($(this).hasClass("disabled")) {
            return false;
        }
        deleteSelected();
{'fraction_non_alphanumeric': 0.19834399698908545, 'fraction_numerical': 0.0007527286413248024, 'mean_word_length': 2.2814814814814817, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1773816', 'n_tokens_mistral': 776, 'n_tokens_neox': 759, 'n_words': 134}