<commit_before>var Phase = require('html5/parser/phase').Phase;

exports.Phase = p = function BeforeHtmlPhase(parser, tree) {
	Phase.call(this, parser, tree);
	this.name = 'before_html_phase'
}

p.prototype = new Phase;

p.prototype.process_eof = function() {
	this.insert_html_element();
	this.parser.phase.process_eof();
}

p.prototype.processComment = function(data) {
	this.tree.insert_comment(data, this.tree.document);
}

p.prototype.processSpaceCharacters = function(data) {
}

p.prototype.processCharacters = function(data) {
	this.insert_html_element();
	this.parser.phase.process_eof();
}

p.prototype.processStartTag = function(name, attributes, self_closing) {
	if(name == 'html') this.parser.first_start_tag = true;<commit_msg>- fix mistaken call to process_eof<commit_after>var Phase = require('html5/parser/phase').Phase;

exports.Phase = p = function BeforeHtmlPhase(parser, tree) {
	Phase.call(this, parser, tree);
	this.name = 'before_html_phase'
}

p.prototype = new Phase;

p.prototype.process_eof = function() {
	this.insert_html_element();
	this.parser.phase.process_eof();
}

p.prototype.processComment = function(data) {
	this.tree.insert_comment(data, this.tree.document);
}

p.prototype.processSpaceCharacters = function(data) {
}

p.prototype.processCharacters = function(data) {
	this.insert_html_element();
	this.parser.phase.processCharacters();
}

p.prototype.processStartTag = function(name, attributes, self_closing) {
	if(name == 'html') this.parser.first_start_tag = true;
{'fraction_non_alphanumeric': 0.1426675514266755, 'fraction_numerical': 0.0013271400132714001, 'mean_word_length': 5.885844748858448, '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': '2999929', 'n_tokens_mistral': 508, 'n_tokens_neox': 503, 'n_words': 80}