<commit_before>/**
 * The Virtual Text constructor.
 *
 * @param  String tagName  The tag name.
 * @param  String key      The key identifier.
 * @param  Array  children An array for children.
 */
function Text(text, key) {
  this.text = text;
  this.key = key;
  this.element = undefined;
}

/**
 * Creates and return the corresponding DOM node.
 *
 * @return Object A DOM node.
 */
Text.prototype.create = function() {
  return document.createTextNode(this.text);
}

/**
 * Renders virtual text node.
 *
 * @return Object        A text node.
 */
Text.prototype.render = function() {
  return this.element = this.create();<commit_msg>Removes useless `key` parameter for text nodes.<commit_after>/**
 * The Virtual Text constructor.
 *
 * @param  String tagName  The tag name.
 * @param  Array  children An array for children.
 */
function Text(text) {
  this.text = text;
  this.element = undefined;
}

/**
 * Creates and return the corresponding DOM node.
 *
 * @return Object A DOM node.
 */
Text.prototype.create = function() {
  return document.createTextNode(this.text);
}

/**
 * Renders virtual text node.
 *
 * @return Object        A text node.
 */
Text.prototype.render = function() {
  return this.element = this.create();
{'fraction_non_alphanumeric': 0.12641815235008103, 'fraction_numerical': 0.0, 'mean_word_length': 3.1166666666666667, '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': '6383131', 'n_tokens_mistral': 368, 'n_tokens_neox': 367, 'n_words': 122}