<commit_before>/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package millerpintgame;

import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;

/**
 *
 * @author dcros
 */
public class MillerPintGame extends Application {
    
    @Override
    public void start(Stage primaryStage) {
        Button btn = new Button();
        btn.setText("Say 'Hello World'");
        btn.setOnAction(new EventHandler<ActionEvent>() {
            
            @Override
            public void handle(ActionEvent event) {
                System.out.println("Hello World!");
            }
        });
        
        StackPane root = new StackPane();
        root.getChildren().add(btn);
        
        Scene scene = new Scene(root, 300, 250);
        
        primaryStage.setTitle("Miller Pint Game");
        primaryStage.setScene(scene);
        primaryStage.show();
    }

    /**
     * @param args the command line arguments<commit_msg>Added new UI to enter database parameters<commit_after>/*
 This version of the app simply displays a form and allows the creation of the database

 */
package millerpintgame;

import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Insets; 
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;

/**
 *
 * @author dcros
 */
public class MillerPintGame extends Application {
            
    // Create the inout variables
    private final TextField tfSQLaddress = new TextField();
    private final TextField tfSQLusernsme = new TextField();
    private final TextField tfSQLpassword = new TextField();
    private final TextField tfSQLresults = new TextField();
    
        
       
    
    @Override
    public void start(Stage primaryStage) {
 
        // Create a pane and set its properties
        GridPane pane = new GridPane();
        pane.setAlignment(Pos.CENTER);
        pane.setPadding (new Insets(11.5, 12.5, 13.5, 14.5));
        pane.setHgap(5.5);
        pane.setVgap(5.5);
        
        //Place the nodes on the pane
        pane.add(new Label("MySQL Server"), 0, 0);
        pane.add(tfSQLaddress, 1,0);
        pane.add(new Label("Username"), 1, 0);
        pane.add(new Label("Password"), 1, 1);
        
        // Place a results field
        pane.add(new Label("Result"), 0, 4);
        
        
        // Place a Connect Button
        Button btnConnect = new Button("Connect");
        pane.add(btnConnect, 1, 3);
        btnConnect.setOnAction(new EventHandler<ActionEvent>() {
            
            @Override
            public void handle(ActionEvent event) {
                // Put the connect code in here!
            }
        });
        
        StackPane root = new StackPane();
        root.getChildren().add(btnConnect);
        
        Scene scene = new Scene(root, 300, 250);
        
        primaryStage.setTitle("Miller Pint Game");
        primaryStage.setScene(scene);
        primaryStage.show();
    }

    /**
     * @param args the command line arguments
{'fraction_non_alphanumeric': 0.10064843529743445, 'fraction_numerical': 0.01127713560755568, 'mean_word_length': 2.3919694072657744, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4887592', 'n_tokens_mistral': 1018, 'n_tokens_neox': 968, 'n_words': 276}