<commit_before>if(!Hummingbird) { var Hummingbird = {}; }

Hummingbird.saleGraphs = {};

Hummingbird.getSales = function() {
  $.getJSON("/sale_list", function(data) {
    $.each(data.data.active_sales, function() {
      var editorialImage = "http://www.gilt.com" + this.sale_editorial_image;
      var name = this.name;
      var url = "http://www.gilt.com/s/" + this.url_key;

      var saleDiv = $("<div id='sale_" + this.url_key + "' data-id='" + this.url_key + "' class='sale'></div>");
      saleDiv.append("<img class='editorial' src='" + editorialImage + "'/>");
      saleDiv.append("<h2>" + name + "</h2>");

      var graph = $("<div class='hummingbird_graph'></div>");<commit_msg>Show upcoming sales as well as active sales<commit_after>if(!Hummingbird) { var Hummingbird = {}; }

Hummingbird.saleGraphs = {};

Hummingbird.getSales = function() {
  $.getJSON("/sale_list", function(data) {
    data.data.active_sales.concat(data.data.upcoming_sales);
    $.each(data.data.active_sales, function() {
      var editorialImage = "http://www.gilt.com" + this.sale_editorial_image;
      var name = this.name;
      var url = "http://www.gilt.com/s/" + this.url_key;

      var saleDiv = $("<div id='sale_" + this.url_key + "' data-id='" + this.url_key + "' class='sale'></div>");
      saleDiv.append("<img class='editorial' src='" + editorialImage + "'/>");
      saleDiv.append("<h2>" + name + "</h2>");

      var graph = $("<div class='hummingbird_graph'></div>");
{'fraction_non_alphanumeric': 0.2071767095463778, 'fraction_numerical': 0.002708192281651997, 'mean_word_length': 3.7070063694267517, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '3697375', 'n_tokens_mistral': 533, 'n_tokens_neox': 504, 'n_words': 87}