<commit_before>package tornadofx

import javafx.application.Application
import javafx.scene.Scene
import javafx.scene.image.Image
import javafx.scene.layout.Pane
import javafx.stage.Stage
import kotlin.properties.ReadOnlyProperty
import kotlin.reflect.KClass
import kotlin.reflect.KProperty

open class App(primaryView: KClass<out View>? = null, icon: Image? = null, vararg stylesheet: KClass<out Stylesheet>) : Application() {
    constructor(primaryView: KClass<out View>? = null, vararg stylesheet: KClass<out Stylesheet>) : this(primaryView, null, *stylesheet)

    open val primaryView: KClass<out View> = primaryView ?: DeterminedByParameter::class

    init {
        icon?.let { addStageIcon(it) }
        stylesheet.forEach { importStylesheet(it) }
    }

    override fun start(stage: Stage) {
        FX.registerApplication(this, stage)

        try {
            val view = find(determinePrimaryView())

            stage.apply {
                scene = Scene(view.root)
                view.properties["tornadofx.scene"] = scene<commit_msg>Reordered args<commit_after>package tornadofx

import javafx.application.Application
import javafx.scene.Scene
import javafx.scene.image.Image
import javafx.scene.layout.Pane
import javafx.stage.Stage
import kotlin.properties.ReadOnlyProperty
import kotlin.reflect.KClass
import kotlin.reflect.KProperty

open class App(icon: Image? = null, primaryView: KClass<out View>? = null, vararg stylesheet: KClass<out Stylesheet>) : Application() {
    constructor(primaryView: KClass<out View>? = null, vararg stylesheet: KClass<out Stylesheet>) : this(null, primaryView, *stylesheet)

    open val primaryView: KClass<out View> = primaryView ?: DeterminedByParameter::class

    init {
        icon?.let { addStageIcon(it) }
        stylesheet.forEach { importStylesheet(it) }
    }

    override fun start(stage: Stage) {
        FX.registerApplication(this, stage)

        try {
            val view = find(determinePrimaryView())

            stage.apply {
                scene = Scene(view.root)
                view.properties["tornadofx.scene"] = scene
{'fraction_non_alphanumeric': 0.09966777408637874, 'fraction_numerical': 0.0, 'mean_word_length': 3.582608695652174, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '4601896', 'n_tokens_mistral': 619, 'n_tokens_neox': 604, 'n_words': 140}