<commit_before>import com.acornui.app
import com.acornui.component.DivComponent
import com.acornui.component.StageImpl
import com.acornui.component.input.button
import com.acornui.component.style.StyleTag
import com.acornui.di.Context
import com.acornui.dom.add
import com.acornui.dom.addCssToHead
import com.acornui.dom.head
import com.acornui.dom.linkElement
import com.acornui.input.clicked
import com.acornui.skins.Theme
import com.acornui.skins.addCssToHead
import com.acornui.version

/**
 * A barebones example with a Theme and a Button.
 */
class Main(owner: Context) : DivComponent(owner) {

	init {
		println(version)

		Theme().addCssToHead()
		addClass(styleTag)

		head.add(
			linkElement(
				"https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@200;400&display=swap",
				rel = "stylesheet"
			)
		)

		+button("Hello World") {
			clicked.listen {
				println("Hello World")
			}
		}
	}

	@Suppress("CssOverwrittenProperties")
	companion object {

		val styleTag = StyleTag("Main")<commit_msg>Rename StyleTag to CssClass<commit_after>import com.acornui.app
import com.acornui.component.DivComponent
import com.acornui.component.StageImpl
import com.acornui.component.input.button
import com.acornui.component.style.cssClass
import com.acornui.di.Context
import com.acornui.dom.add
import com.acornui.dom.addCssToHead
import com.acornui.dom.head
import com.acornui.dom.linkElement
import com.acornui.input.clicked
import com.acornui.skins.Theme
import com.acornui.skins.addCssToHead
import com.acornui.version

/**
 * A barebones example with a Theme and a Button.
 */
class Main(owner: Context) : DivComponent(owner) {

	init {
		println(version)

		Theme().addCssToHead()
		addClass(styleTag)

		head.add(
			linkElement(
				"https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@200;400&display=swap",
				rel = "stylesheet"
			)
		)

		+button("Hello World") {
			clicked.listen {
				println("Hello World")
			}
		}
	}

	@Suppress("CssOverwrittenProperties")
	companion object {

		val styleTag by cssClass()
{'fraction_non_alphanumeric': 0.11623344776851398, 'fraction_numerical': 0.006866110838646395, 'mean_word_length': 4.543478260869565, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4616401', 'n_tokens_mistral': 790, 'n_tokens_neox': 709, 'n_words': 125}