<commit_before>var _ = require('underscore');
var Backbone = require('backbone');
var CartoDBLayer = require('../../../src/geo/map/cartodb-layer');
var TorqueLayer = require('../../../src/geo/map/torque-layer');
var WindshaftClient = require('../../../src/windshaft/client');
var AnonymousMap = require('../../../src/windshaft/anonymous-map');
var HistogramDataviewModel = require('../../../src/dataviews/histogram-dataview-model');
var AnalysisFactory = require('../../../src/analysis/analysis-factory.js');

var createFakeAnalysis = function (attrs) {
  var fakeAnalysis = new Backbone.Model(attrs);
  fakeAnalysis.findAnalysisById = jasmine.createSpy('findAnalysisById').and.returnValue(undefined);
  return fakeAnalysis;
};

var createFakeDataview = function (attrs, windshaftMap, layer) {
  if (!attrs.id) { throw new Error('id is required'); };
  attrs = _.defaults(attrs, {
    column: 'column1',
    bins: 5,
    source: {
      id: 'a0'
    }
  });
<commit_msg>Fix linter<commit_after>var _ = require('underscore');
var Backbone = require('backbone');
var CartoDBLayer = require('../../../src/geo/map/cartodb-layer');
var TorqueLayer = require('../../../src/geo/map/torque-layer');
var WindshaftClient = require('../../../src/windshaft/client');
var AnonymousMap = require('../../../src/windshaft/anonymous-map');
var HistogramDataviewModel = require('../../../src/dataviews/histogram-dataview-model');
var AnalysisFactory = require('../../../src/analysis/analysis-factory.js');

var createFakeAnalysis = function (attrs) {
  var fakeAnalysis = new Backbone.Model(attrs);
  fakeAnalysis.findAnalysisById = jasmine.createSpy('findAnalysisById').and.returnValue(undefined);
  return fakeAnalysis;
};

var createFakeDataview = function (attrs, windshaftMap, layer) {
  if (!attrs.id) { throw new Error('id is required'); }
  attrs = _.defaults(attrs, {
    column: 'column1',
    bins: 5,
    source: {
      id: 'a0'
    }
  });

{'fraction_non_alphanumeric': 0.19369834710743802, 'fraction_numerical': 0.0030991735537190084, 'mean_word_length': 3.8668341708542715, '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': '1356953', 'n_tokens_mistral': 615, 'n_tokens_neox': 604, 'n_words': 115}