<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 tankattack;

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

/**
 *
 * @author Ruslan
 */
public class TankAttack extends Application {
    
    public static final double gameWidth = 600;
    public static final double gameHeight = 600;
    
    private static final int NUM_FRAMES_PER_SECOND = 60;
    private Stage currStage;
    private World currWorld;
    private Scene currScene;
    
    @Override
    public void start(Stage primaryStage) {
        
        initTankAttack(primaryStage);
        
        displayCurrentScene();
        
        primaryStage.setTitle("TANK ATTACK");
        primaryStage.show();
                
        setupAndLaunchGameLoopForCurrWorld(currWorld);

    }
    
    public void setupAndLaunchGameLoopForCurrWorld(World world) {

        KeyFrame frame = world.createKeyFrame(NUM_FRAMES_PER_SECOND);
        
        
        
        Timeline animation = new Timeline();
        animation.setCycleCount(Animation.INDEFINITE);
        animation.getKeyFrames().add(frame);
        animation.play();
    
    }
    
    private void transitionFromFirstWorldToSecondWorld() {
        
        
        
    }

    private void initTankAttack(Stage stage) {
        
        currStage = stage;
        currWorld = new FirstWorld(stage);
        currScene = currWorld.createScene();
        
    }
    
    private void displayCurrentScene() {
        
        currStage.setScene(currScene);
        
    }
    
    public void tellStageToShowScene(Scene scene) {
        
        currStage.setScene(scene);
        
    }

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        launch(args);
    }

}




<commit_msg>makes FPS public class final static<commit_after>/*
 * 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 tankattack;

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

/**
 *
 * @author Ruslan
 */
public class TankAttack extends Application {
    
    public static final double gameWidth = 600;
    public static final double gameHeight = 600;
    
    public static final int NUM_FRAMES_PER_SECOND = 60;
    
    private Stage currStage;
    private World currWorld;
    private Scene currScene;
    
    @Override
    public void start(Stage primaryStage) {
        
        initTankAttack(primaryStage);
        
        displayCurrentScene();
        
        primaryStage.setTitle("TANK ATTACK");
        primaryStage.show();
                
        setupAndLaunchGameLoopForCurrWorld(currWorld);

    }
    
    public void setupAndLaunchGameLoopForCurrWorld(World world) {

        KeyFrame frame = world.createKeyFrame(NUM_FRAMES_PER_SECOND);
        
        
        
        Timeline animation = new Timeline();
        animation.setCycleCount(Animation.INDEFINITE);
        animation.getKeyFrames().add(frame);
        animation.play();
    
    }
    
    private void transitionFromFirstWorldToSecondWorld() {
        
        
        
    }

    private void initTankAttack(Stage stage) {
        
        currStage = stage;
        currWorld = new FirstWorld(stage);
        currScene = currWorld.createScene();
        
    }
    
    private void displayCurrentScene() {
        
        currStage.setScene(currScene);
        
    }
    
    public void tellStageToShowScene(Scene scene) {
        
        currStage.setScene(scene);
        
    }

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        launch(args);
    }

}





{'fraction_non_alphanumeric': 0.07781919850885369, 'fraction_numerical': 0.003727865796831314, 'mean_word_length': 2.284621270084162, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5605171', 'n_tokens_mistral': 1194, 'n_tokens_neox': 1163, 'n_words': 283}