<commit_before>var debug = require('debug')('windshaft:filter:bbox');
var dot = require('dot');
dot.templateSettings.strip = false;

var filterQueryTpl = dot.template([
    'SELECT * FROM ({{=it._sql}}) _cdb_bbox_filter',
    'WHERE {{=it._filters}}'
].join('\n'));

var bboxFilterTpl = '{{=it._column}} && ST_Transform(ST_MakeEnvelope({{=it._bbox}}, 4326), {{=it._srid}})';

var LATITUDE_MAX_VALUE = 85.0511287798066;
var LONGITUDE_LOWER_BOUND = -180;
var LONGITUDE_UPPER_BOUND = 180;
var LONGITUDE_RANGE = LONGITUDE_UPPER_BOUND - LONGITUDE_LOWER_BOUND;

/**
 Definition<commit_msg>Fix bbox template<commit_after>var debug = require('debug')('windshaft:filter:bbox');
var dot = require('dot');
dot.templateSettings.strip = false;

var filterQueryTpl = dot.template([
    'SELECT * FROM ({{=it._sql}}) _cdb_bbox_filter',
    'WHERE {{=it._filters}}'
].join('\n'));

var bboxFilterTpl = dot.template(
    '{{=it._column}} && ST_Transform(ST_MakeEnvelope({{=it._bbox}}, 4326), {{=it._srid}})'
);

var LATITUDE_MAX_VALUE = 85.0511287798066;
var LONGITUDE_LOWER_BOUND = -180;
var LONGITUDE_UPPER_BOUND = 180;
var LONGITUDE_RANGE = LONGITUDE_UPPER_BOUND - LONGITUDE_LOWER_BOUND;

/**
 Definition
{'fraction_non_alphanumeric': 0.17394957983193277, 'fraction_numerical': 0.04201680672268908, 'mean_word_length': 6.262195121951219, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3497483', 'n_tokens_mistral': 514, 'n_tokens_neox': 469, 'n_words': 78}