<commit_before>'use strict';

var d                 = require('d')
  , nextTick          = require('next-tick')
  , normalize         = require('dom-ext/document/#/normalize')
  , isObservableValue = require('observable-value/is-observable-value')

  , defineProperties = Object.defineProperties, ObservableMock
  , clear, toDOM, toDOMAttr, getValue, setValue, onNextTick;

ObservableMock = function (value) { this._value = value; };

defineProperties(ObservableMock.prototype, {
	value: d.gs(function () { return this._value; }),
	toDOM: d(function (document) {
		return normalize.call(document, this._value);
	}),
	toDOMAttr: d(function (element, name) {
		element.setAttribute(String(this._value));
		return this._value;
	})
});

clear = function () {
	delete this._domInjected;
	delete this.toDOM;
	delete this.toDOMAttr;
	delete this.value;<commit_msg>Fix setAttribute<commit_after>'use strict';

var d                 = require('d')
  , nextTick          = require('next-tick')
  , normalize         = require('dom-ext/document/#/normalize')
  , isObservableValue = require('observable-value/is-observable-value')

  , defineProperties = Object.defineProperties, ObservableMock
  , clear, toDOM, toDOMAttr, getValue, setValue, onNextTick;

ObservableMock = function (value) { this._value = value; };

defineProperties(ObservableMock.prototype, {
	value: d.gs(function () { return this._value; }),
	toDOM: d(function (document) {
		return normalize.call(document, this._value);
	}),
	toDOMAttr: d(function (element, name) {
		element.setAttribute(name, String(this._value));
		return this._value;
	})
});

clear = function () {
	delete this._domInjected;
	delete this.toDOM;
	delete this.toDOMAttr;
	delete this.value;
{'fraction_non_alphanumeric': 0.13987231572838074, 'fraction_numerical': 0.0, 'mean_word_length': 4.20845921450151, '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': '1971960', 'n_tokens_mistral': 555, 'n_tokens_neox': 533, 'n_words': 107}