<commit_before>package codeOrchestra.colt.as.ui

import codeOrchestra.colt.as.ui.log.Log
import codeOrchestra.colt.as.ui.propertyTabPane.SettingsForm
import javafx.event.EventHandler
import javafx.fxml.FXML
import javafx.fxml.Initializable
import javafx.scene.control.ToggleButton
import javafx.scene.Node as FXNode
import javafx.scene.control.ToggleGroup
import javafx.scene.layout.BorderPane

/**
 * @author <NAME>
 */
class MainAppController implements Initializable {
    ToggleGroup toggleGroup
    @FXML ToggleButton runBnt
    @FXML ToggleButton buildBtn
    @FXML ToggleButton settingsBtn

    @FXML BorderPane borderPane

    Log log = new Log()
    SettingsForm sForm = new SettingsForm()

    MainAppController() {
        toggleGroup = new ToggleGroup()
    }

    @Override
    void initialize(URL url, ResourceBundle resourceBundle) {
        toggleGroup.toggles.addAll(runBnt, buildBtn, settingsBtn)
        runBnt.onAction = {
            borderPane.center = log.getPane()

        } as EventHandler

        settingsBtn.onAction = {
            borderPane.center = sForm.getPane()
        } as EventHandler

        buildBtn.onAction = {

        } as EventHandler
    }
}<commit_msg>add lib for GA, simple example in (as)MainAppController<commit_after>package codeOrchestra.colt.as.ui

import codeOrchestra.colt.as.ui.log.Log
import codeOrchestra.colt.as.ui.propertyTabPane.SettingsForm
import com.dmurph.tracking.JGoogleAnalyticsTracker
import javafx.event.EventHandler
import javafx.fxml.FXML
import javafx.fxml.Initializable
import javafx.scene.control.ToggleButton
import javafx.scene.control.ToggleGroup
import javafx.scene.layout.BorderPane
import codeOrchestra.colt.core.tracker.GATracker

/**
 * @author <NAME>
 */
class MainAppController implements Initializable {
    ToggleGroup toggleGroup
    @FXML ToggleButton runBnt
    @FXML ToggleButton buildBtn
    @FXML ToggleButton settingsBtn

    @FXML BorderPane borderPane

    Log log = new Log()
    SettingsForm sForm = new SettingsForm()

    MainAppController() {
        toggleGroup = new ToggleGroup()
    }

    @Override
    void initialize(URL url, ResourceBundle resourceBundle) {
        //GATracker.instance.tracker.trackPageViewFromReferrer("asProject.html", "asProject", "codeorchestra.com", "codeorchestra.com", "/index.html")
        GATracker.instance.tracker.trackPageView("/as/asProject.html", "asProject", "codeorchestra.com")

        toggleGroup.toggles.addAll(runBnt, buildBtn, settingsBtn)
        runBnt.onAction = {
            GATracker.instance.tracker.trackEvent("Menu", "Run pressed")
            GATracker.instance.tracker.trackPageView("/as/asLog.html", "asLog", "codeorchestra.com")
            borderPane.center = log.getPane()

        } as EventHandler

        settingsBtn.onAction = {
            GATracker.instance.tracker.trackEvent("Menu", "Settings pressed")
            GATracker.instance.tracker.trackPageView("/as/asSettings.html", "asSettings", "codeorchestra.com")
            borderPane.center = sForm.getPane()
        } as EventHandler

        buildBtn.onAction = {
            GATracker.instance.tracker.trackEvent("Menu", "Build pressed")
            GATracker.instance.tracker.trackPageView("/as/asBuild.html", "asBuild", "codeorchestra.com")
        } as EventHandler
    }
}
{'fraction_non_alphanumeric': 0.0973397823458283, 'fraction_numerical': 0.0, 'mean_word_length': 3.4237967914438503, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '2009244', 'n_tokens_mistral': 1004, 'n_tokens_neox': 986, 'n_words': 185}