<commit_before>import { registerMacro, removeMacro } from "htmlbars/macros";
import { compileSpec } from "htmlbars/compiler";
import { hydrate } from "htmlbars/runtime";
import { HTMLElement } from "htmlbars/ast";

function equalHTML(fragment, html) {
  var div = document.createElement("div");
  div.appendChild(fragment.cloneNode(true));

  equal(div.innerHTML, html);
}

var macros;

module("HTML Macros", {
  setup: function() {
    macros = {};
  }
});

function registerMacro(name, test, macro) {
  macros[name] = { test: test, mutate: mutate };;
}

function compile(string) {
  var spec = compileSpec(string);
  return hydrate(spec, { macros: macros });
}

test("A simple HTML macro can replace a tagName", function() {<commit_msg>remove unused function and setup<commit_after>import { registerMacro } from "htmlbars/macros";
import { compileSpec } from "htmlbars/compiler";
import { hydrate } from "htmlbars/runtime";
import { HTMLElement } from "htmlbars/ast";

function equalHTML(fragment, html) {
  var div = document.createElement("div");
  div.appendChild(fragment.cloneNode(true));

  equal(div.innerHTML, html);
}

module("HTML Macros");

function compile(string) {
  var spec = compileSpec(string);
  return hydrate(spec, {});
}

test("A simple HTML macro can replace a tagName", function() {
{'fraction_non_alphanumeric': 0.14143730886850153, 'fraction_numerical': 0.0, 'mean_word_length': 5.293269230769231, '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': '5693003', 'n_tokens_mistral': 409, 'n_tokens_neox': 401, 'n_words': 107}