<commit_before>/**
 * The Fires layer module.
 *
 * @return FiresLayer class (extends CartoDBLayerClass)
 */
define([
  'underscore',
  'moment',
  'uri',
  'views/layers/class/CartoDBLayerClass',
  'presenters/FiresLayerPresenter',
  'text!cartocss/global_7d.cartocss'
], function(_, moment, UriTemplate, CartoDBLayerClass, Presenter, global7dCartoCSS) {

  'use strict';

  var FiresLayer = CartoDBLayerClass.extend({
    // todo=> add hour so it doesn't caches
    options: {
      sql: 'SELECT * FROM {tableName} WHERE acq_date > \'{year}-{month}-{day}\' AND CAST(confidence AS INT) > 30',
      cartocss: global7dCartoCSS,
      interactivity: 'acq_time, acq_date, confidence, brightness, longitude, latitude',
      infowindow: true
    },

    init: function(layer, options, map) {
      _.bindAll(this, 'setCurrentDate');
      this.presenter = new Presenter(this);
      // Default to 48 hours
      this.setCurrentDate(options.currentDate ||
        [moment().subtract(48, 'hours'), moment()]);
      this._super(layer, options, map);
    },

    getQuery: function() {
      var query = new UriTemplate(this.options.sql).fillFromObject({
        tableName: this.layer.table_name,
        year: this.currentDate[0].year(),
        month: this.currentDate[0].format('MM'),<commit_msg>fires hotfix<commit_after>/**
 * The Fires layer module.
 *
 * @return FiresLayer class (extends CartoDBLayerClass)
 */
define([
  'underscore',
  'moment',
  'uri',
  'views/layers/class/CartoDBLayerClass',
  'presenters/FiresLayerPresenter',
  'text!cartocss/global_7d.cartocss'
], function(_, moment, UriTemplate, CartoDBLayerClass, Presenter, global7dCartoCSS) {

  'use strict';

  var FiresLayer = CartoDBLayerClass.extend({
    // todo=> add hour so it doesn't caches
    options: {
      sql: 'SELECT * FROM {tableName} WHERE acq_date > \'{year}-{month}-{day}\' AND CAST(confidence AS INT) > 30',
      cartocss: global7dCartoCSS,
      interactivity: 'acq_time, acq_date, confidence, brightness, longitude, latitude',
      infowindow: true
    },

    init: function(layer, options, map) {
      _.bindAll(this, 'setCurrentDate');
      this.presenter = new Presenter(this);

      // Default to 48 hours
      this.setCurrentDate(options.currentDate ||
        [moment().subtract(48, 'hours'), moment().subtract(24, 'hours')]);

      this._super(layer, options, map);
    },

    getQuery: function() {
      var query = new UriTemplate(this.options.sql).fillFromObject({
        tableName: this.layer.table_name,
        year: this.currentDate[0].year(),
        month: this.currentDate[0].format('MM'),
{'fraction_non_alphanumeric': 0.14334994250670755, 'fraction_numerical': 0.009198926791874281, 'mean_word_length': 3.562937062937063, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '2976073', 'n_tokens_mistral': 880, 'n_tokens_neox': 846, 'n_words': 183}