<commit_before>var _ = require('underscore');
var cdb = require('cartodb-deep-insights.js');
var Backbone = require('backbone');

// var MAX_GET_LENGTH = 1024;
var MAX_GET_LENGTH = 50;
var WRAP_SQL_TEMPLATE = 'select * from (<%= sql %>) __wrapped limit 0';

/**
 * TableQuery model represents a query on top of a table.
 * Works against the SQL API instead of the normal (Rails) REST API.
 */
module.exports = cdb.core.Model.extend({

  defaults: {
    query: '',
    fetched: false
  },

  initialize: function (attrs, opts) {
    if (!opts.configModel) throw new Error('configModel is required');

    this._configModel = opts.configModel;
<commit_msg>Fix constant for SQL query GET or POST decision<commit_after>var _ = require('underscore');
var cdb = require('cartodb-deep-insights.js');
var Backbone = require('backbone');

var MAX_GET_LENGTH = 1024;
var WRAP_SQL_TEMPLATE = 'select * from (<%= sql %>) __wrapped limit 0';

/**
 * TableQuery model represents a query on top of a table.
 * Works against the SQL API instead of the normal (Rails) REST API.
 */
module.exports = cdb.core.Model.extend({

  defaults: {
    query: '',
    fetched: false
  },

  initialize: function (attrs, opts) {
    if (!opts.configModel) throw new Error('configModel is required');

    this._configModel = opts.configModel;

{'fraction_non_alphanumeric': 0.1293759512937595, 'fraction_numerical': 0.0091324200913242, 'mean_word_length': 4.019083969465649, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '413899', 'n_tokens_mistral': 433, 'n_tokens_neox': 403, 'n_words': 131}