<commit_before>/* globals ko */
$(function () {
    "use strict";
    if ($("#bulk_upload_form").get(0)) {
        $("#bulk_upload_form").koApplyBindings({
            file: ko.observable(null),
        });
    }

    // modify download url to pass extra options
    function ConsumptionOptionsViewModel(base_url) {
        this.base_url = base_url;
        this.include_consumption = ko.observable(false);
        this.include_ids = ko.observable(false);
        self = this;
        this.url = ko.computed(function() {
            return (
                self.base_url
                + (self.include_consumption() ? "?include_consumption=true" : "")
                + (self.include_ids() ? "?include_ids=true" : "")
            );
        });
    }

    $("#download_block").koApplyBindings(
        new ConsumptionOptionsViewModel($("#download_link").get(0).href)
    );
});<commit_msg>fixing organization download checkboxes<commit_after>/* globals ko */
$(function () {
    "use strict";
    if ($("#bulk_upload_form").get(0)) {
        $("#bulk_upload_form").koApplyBindings({
            file: ko.observable(null),
        });
    }

    // modify download url to pass extra options
    function ConsumptionOptionsViewModel(base_url) {
        this.base_url = base_url;
        this.include_consumption = ko.observable(false);
        this.include_ids = ko.observable(false);
        self = this;
        this.url = ko.computed(function() {
            return (
                self.base_url + "?"
                + (self.include_consumption() ? "include_consumption=true" : "")
                + ((self.include_consumption() && self.include_ids()) ? "&" : "")
                + (self.include_ids() ? "include_ids=true" : "")
            );
        });
    }

    $("#download_block").koApplyBindings(
        new ConsumptionOptionsViewModel($("#download_link").get(0).href)
    );
});
{'fraction_non_alphanumeric': 0.15417106652587118, 'fraction_numerical': 0.0021119324181626186, 'mean_word_length': 2.2448630136986303, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 7, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5218532', 'n_tokens_mistral': 568, 'n_tokens_neox': 552, 'n_words': 83}