<commit_before>package com.taig.tmpltr

import play.api.templates.{Txt => Text}
import play.api.templates.{Html => HTML}
import scala.xml.{NodeSeq, Unparsed}
import play.api.mvc.Content

abstract class Tag[T <: Tag[T]] protected(tag: String, attributes: Attributes = Attributes.empty, content: Option[Content] = None, minimizeEmpty: Boolean = true) extends HtmlNode[T](
	tag, minimizeEmpty, content.fold( NodeSeq.Empty )( content => Unparsed( content.body.trim ) ), attributes
)

object Tag
{
	implicit def contentToOption( content: Content ): Option[Content] = Some( content )

	abstract class Html[H <: Html[H]](attributes: Attributes)(content: HTML) extends Tag[H]( "html", attributes, content )
	object Html
	{
		abstract class Head[H <: Head[H]](attributes: Attributes)(content: HTML) extends Tag[H]( "head", attributes, content )
		object Head<commit_msg>Added doctype Tag.<commit_after>package com.taig.tmpltr

import play.api.templates.{Txt => Text}
import play.api.templates.{Html => HTML}
import scala.xml.{NodeSeq, Unparsed}
import play.api.mvc.Content

abstract class Tag[T <: Tag[T]] protected(tag: String, attributes: Attributes = Attributes.empty, content: Option[Content] = None, minimizeEmpty: Boolean = true) extends HtmlNode[T](
	tag, minimizeEmpty, content.fold( NodeSeq.Empty )( content => Unparsed( content.body.trim ) ), attributes
)

object Tag
{
	implicit def contentToOption( content: Content ): Option[Content] = Some( content )

	abstract class Doctype( `type`: String ) extends Tag[Doctype]( "!DOCTYPE " + `type` )
	{
		override def toString = "<" + label + ">"
	}

	abstract class Html[H <: Html[H]](attributes: Attributes)(content: HTML) extends Tag[H]( "html", attributes, content )
	object Html
	{
		abstract class Head[H <: Head[H]](attributes: Attributes)(content: HTML) extends Tag[H]( "head", attributes, content )
		object Head
{'fraction_non_alphanumeric': 0.14101876675603217, 'fraction_numerical': 0.0, 'mean_word_length': 5.617021276595745, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '2225359', 'n_tokens_mistral': 594, 'n_tokens_neox': 584, 'n_words': 162}