<commit_before>var HQReport = function (options) {
    var self = this;
    self.domain = options.domain;
    self.datespan = options.datespan;

    self.filterAccordion = options.filterAccordion || "#reportFilters";
    self.toggleFiltersButton = options.toggleFiltersButton || "#toggle-report-filters";
    self.exportReportButton = options.exportReportButton || "#export-report-excel";
    self.baseSlug = options.baseSlug || 'reports';

    self.toggleFiltersCookie = self.domain+'.hqreport.toggleFilterState';
    self.datespanCookie = self.domain+".hqreport.filterSetting.test.datespan";
    self.globalSavePath = '/a/'+self.domain+'/';

    self.init = function () {
        $(function () {
            checkFilterAccordionToggleState();

            $(self.exportReportButton).click(function () {
                var params = window.location.search.substr(1);<commit_msg>fixed minor bug where the datespan loaded from the cookie was not picked up by the tabular export<commit_after>var HQReport = function (options) {
    var self = this;
    self.domain = options.domain;
    self.datespan = options.datespan;

    self.filterAccordion = options.filterAccordion || "#reportFilters";
    self.toggleFiltersButton = options.toggleFiltersButton || "#toggle-report-filters";
    self.exportReportButton = options.exportReportButton || "#export-report-excel";
    self.baseSlug = options.baseSlug || 'reports';

    self.toggleFiltersCookie = self.domain+'.hqreport.toggleFilterState';
    self.datespanCookie = self.domain+".hqreport.filterSetting.test.datespan";
    self.globalSavePath = '/a/'+self.domain+'/';

    self.initialLoad = true;

    self.init = function () {
        $(function () {
            checkFilterAccordionToggleState();

            $(self.exportReportButton).click(function () {
                var params = window.location.search.substr(1);
                if (params.length <= 1) {
                    if (self.loadDatespanFromCookie()) {
                        params = "startdate="+self.datespan.startdate+
                            "&enddate="+self.datespan.enddate;
                    }
                }
{'fraction_non_alphanumeric': 0.12540792540792542, 'fraction_numerical': 0.0013986013986013986, 'mean_word_length': 2.85278276481149, 'pattern_counts': {'":': 0, '<': 4, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2403704', 'n_tokens_mistral': 601, 'n_tokens_neox': 589, 'n_words': 100}