<commit_before>var _ = require('underscore');
var Backbone = require('backbone');
var OverlaysFactory = require('../../../src/vis/overlays-factory');

describe('vis/overlays-factory', function () {
  var createFakeLayerView = function () {
    var view = new Backbone.View();
    return view;
  };

  beforeEach(function () {
    this.map = new Backbone.Model();
    this.map.layers = new Backbone.Collection();

    this.mapView = new Backbone.View();
    this.mapView.map = this.map;
    this.mapView.latLngToContainerPoint = function () {
      return { x: 100, y: 200 };
    };

    this.visView = new Backbone.View();
    this.visView.mapView = this.mapView;

    this.overlaysFactory = new OverlaysFactory({<commit_msg>Remove unused function<commit_after>var _ = require('underscore');
var Backbone = require('backbone');
var OverlaysFactory = require('../../../src/vis/overlays-factory');

describe('vis/overlays-factory', function () {
  beforeEach(function () {
    this.map = new Backbone.Model();
    this.map.layers = new Backbone.Collection();

    this.mapView = new Backbone.View();
    this.mapView.map = this.map;
    this.mapView.latLngToContainerPoint = function () {
      return { x: 100, y: 200 };
    };

    this.visView = new Backbone.View();
    this.visView.mapView = this.mapView;

    this.overlaysFactory = new OverlaysFactory({
{'fraction_non_alphanumeric': 0.15463917525773196, 'fraction_numerical': 0.008836524300441826, 'mean_word_length': 3.455737704918033, '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': '5435980', 'n_tokens_mistral': 450, 'n_tokens_neox': 426, 'n_words': 84}