<commit_before>import 'jquery';
import Chart from 'chart.js';
import 'bootstrap/dist/css/bootstrap.css';
import moment from 'moment';
import _ from 'lodash';
import qs from 'qs';

import './chart-js-draw-line-plugin.js';
import './chart-js-draw-box-plugin.js';

let displayChart = function () {
  $("#query-builder-div").hide();
  $("#loading-div").hide();
  $("#error-div").hide();
  $("#chart-div").show();
};

let displayLoading = function () {
  $("#query-builder-div").hide();
  $("#loading-div").show();
  $("#error-div").hide();
  $("#chart-div").hide();

  $('#progressbar').attr('aria-valuenow', 0).css('width', 0);
};

let trackProgress = function (increment) {
  let progress = parseFloat($('#progressbar').attr('aria-valuenow')) + increment;
  $('#progressbar').attr('aria-valuenow', progress).css('width', progress + "%");
};

let displayQueryBuilder = function () {
  $("#query-builder-div").show();
  $("#loading-div").hide();
  $("#error-div").hide();
  $("#chart-div").hide();
}

let displayError = function (errorMessage) {
  $("#query-builder-div").hide();
  $("#loading-div").hide();
  $("#chart-div").hide();
  $("#error-div").show();
  $("#errormessage").text(errorMessage);
};

let dateToString = function (date) {
  return moment(date).format('YYYY-MM-DD');
};

let getDays = function (startDate, endDate, nonWorkingDays) {
  let days = [];

  let currentDate = moment(startDate);
  while (currentDate.isSameOrBefore(endDate)) {
    if (currentDate.day() >= 1 && currentDate.day() <= 5 && (nonWorkingDays.length === 0 || !_.every(nonWorkingDays, ignoreDate => moment(ignoreDate).isSame(currentDate)))) {
      days.push(dateToString(currentDate));
    }
    currentDate.add(1, 'days');
  }

  return days;<commit_msg>Fix bug that prohibited use of more than one non-working-day<commit_after>import 'jquery';
import Chart from 'chart.js';
import 'bootstrap/dist/css/bootstrap.css';
import moment from 'moment';
import _ from 'lodash';
import qs from 'qs';

import './chart-js-draw-line-plugin.js';
import './chart-js-draw-box-plugin.js';

let displayChart = function () {
  $("#query-builder-div").hide();
  $("#loading-div").hide();
  $("#error-div").hide();
  $("#chart-div").show();
};

let displayLoading = function () {
  $("#query-builder-div").hide();
  $("#loading-div").show();
  $("#error-div").hide();
  $("#chart-div").hide();

  $('#progressbar').attr('aria-valuenow', 0).css('width', 0);
};

let trackProgress = function (increment) {
  let progress = parseFloat($('#progressbar').attr('aria-valuenow')) + increment;
  $('#progressbar').attr('aria-valuenow', progress).css('width', progress + "%");
};

let displayQueryBuilder = function () {
  $("#query-builder-div").show();
  $("#loading-div").hide();
  $("#error-div").hide();
  $("#chart-div").hide();
}

let displayError = function (errorMessage) {
  $("#query-builder-div").hide();
  $("#loading-div").hide();
  $("#chart-div").hide();
  $("#error-div").show();
  $("#errormessage").text(errorMessage);
};

let dateToString = function (date) {
  return moment(date).format('YYYY-MM-DD');
};

let getDays = function (startDate, endDate, nonWorkingDays) {
  let days = [];

  let currentDate = moment(startDate);
  while (currentDate.isSameOrBefore(endDate)) {
    if (currentDate.day() >= 1 && currentDate.day() <= 5 && (nonWorkingDays.length === 0 || _.every(nonWorkingDays, ignoreDate => !moment(ignoreDate).isSame(currentDate)))) {
      days.push(dateToString(currentDate));
    }
    currentDate.add(1, 'days');
  }

  return days;
{'fraction_non_alphanumeric': 0.23576083876452253, 'fraction_numerical': 0.003400396712949844, 'mean_word_length': 4.805921052631579, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '3250197', 'n_tokens_mistral': 1149, 'n_tokens_neox': 1152, 'n_words': 210}