<commit_before>var $ = require('jquery');

var View = require('./View');

function DOMView(model, scene) {
  this.$el = $('<div></div>');
  scene.$container.append(this.$el);
  View.call(this, model, scene);
  this.controllerMixin = require('./mixins/DOMViewControllerMixin')
}

DOMView.prototype = Object.create(View.prototype);
<commit_msg>DOM View options<commit_after>var $ = require('jquery');
var mustache = require('mustache');

var View = require('./View');

function DOMView(model, scene, options) {
  var template = '<div {{#id}}id="{{.}}"{{/id}} {{#class}}class="{{.}}"{{/class}}></div>';
  this.$el = $(mustache.render(template, options));
  scene.$container.append(this.$el);
  View.call(this, model, scene);
  this.controllerMixin = require('./mixins/DOMViewControllerMixin');
}

DOMView.prototype = Object.create(View.prototype);

{'fraction_non_alphanumeric': 0.21775147928994082, 'fraction_numerical': 0.0, 'mean_word_length': 5.714285714285714, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '727711', 'n_tokens_mistral': 272, 'n_tokens_neox': 269, 'n_words': 48}