<commit_before><?php

namespace WebSight;

class WebPage
{
	private $html = null;

	public function __construct()
	{
		$this->html =
			'<!DOCTYPE html>' . NL
		;
	}


	public function output()
	{
		print
			$this->html
		;
	}


	public function add( $html = '' )
	{
		$this->html .= $html;
	}
}

<commit_msg>created head and body methods<commit_after><?php

namespace WebSight;

class WebPage
{
	private $body = '';
	private $bodyAtts = '';
	private $head = '';

	public function __construct()
	{
		$this->addToHead( meta( '', "charset='UTF-8'" ) . NL );
	}


	public function output()
	{
		print
			'<!DOCTYPE html>' . NL
			. html(
				head( $this->head )
				. body( $this->body, $this->bodyAtts )
			)
		;
	}


	public function addToBody( $html = '' )
	{
		$this->body .= $html;
	}


	public function addBodyAtts( $atts = '' )
	{
		$this->bodyAtts .= $atts;
	}


	public function addToHead( $html = '' )
	{
		$this->head .= $html;
	}


	public function addStyleSheet( $href = '' )
	{
		$this->addToHead(
			link_(
				'',
				"rel='stylesheet' href='$href' type='text/css' media='all'"
			)
			. NL
		);
	}
}


{'fraction_non_alphanumeric': 0.18295964125560538, 'fraction_numerical': 0.0008968609865470852, 'mean_word_length': 2.72, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 16, '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': '7165032', 'n_tokens_mistral': 492, 'n_tokens_neox': 428, 'n_words': 90}