<commit_before>/*jslint browser: true */

/*globals $, tangelo, d3 */

$(function () {
    "use strict";

    $("#girder-browser").girderBrowser({
        label: "Girder",
        click: function (item, api) {
            console.log(item);
            window.location = [api, "item", item._id, "download"].join("/");
        }
    });<commit_msg>Display stuff about the file when clicked.<commit_after>/*jslint browser: true */

/*globals $, tangelo, d3 */

$(function () {
    "use strict";

    $("#girder-browser").girderBrowser({
        label: "Girder",
        click: function (item, api) {
            var div = d3.select("#file-info"),
                link;

            div.selectAll("*")
                .remove();

            div.append("p")
                .html("<b>Name:</b> " + item.name);

            div.append("p")
                .html("<b>Created:</b> " + item.created);

            div.append("p")
                .html("<b>Updated:</b> " + item.updated);

            div.append("p")
                .html("<b>Size:</b> " + item.size);

            link = [api, "item", item._id, "download"].join("/");
            div.append("p")
                .html("<a href=" + link + ">Download</a>");
        }
    });
{'fraction_non_alphanumeric': 0.2034035656401945, 'fraction_numerical': 0.0024311183144246355, 'mean_word_length': 1.684782608695652, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4033024', 'n_tokens_mistral': 392, 'n_tokens_neox': 375, 'n_words': 72}