<commit_before>package demos.components;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.FlowPane;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;

import com.jfoenix.controls.JFXButton;
import com.jfoenix.controls.JFXDrawer;
import com.jfoenix.controls.JFXDrawer.DrawerDirection;
import com.jfoenix.controls.JFXDrawersStack;

public class DrawerDemo extends Application {

	@Override
	public void start(Stage primaryStage) throws Exception {

		FlowPane content = new FlowPane();
		JFXButton leftButton = new JFXButton("LEFT");
		JFXButton topButton = new JFXButton("TOP");
		JFXButton rightButton = new JFXButton("RIGHT");
		JFXButton bottomButton = new JFXButton("BOTTOM");
		content.getChildren().addAll(leftButton, topButton, rightButton, bottomButton);
		content.setMaxSize(200, 200);
		
		
		JFXDrawer leftDrawer = new JFXDrawer();
		StackPane leftDrawerPane = new StackPane();
		leftDrawerPane.getStyleClass().add("red-400");
		leftDrawerPane.getChildren().add(new JFXButton("Left Content"));
		leftDrawer.setSidePane(leftDrawerPane);
		leftDrawer.setDefaultDrawerSize(250);
//		leftDrawer.setContent(content);	
		leftDrawer.setOverLayVisible(false);
		leftDrawer.setResizableOnDrag(true);
		
		
		JFXDrawer bottomDrawer = new JFXDrawer();
		StackPane bottomDrawerPane = new StackPane();
		bottomDrawerPane.getStyleClass().add("deep-purple-400");
		bottomDrawerPane.getChildren().add(new JFXButton("Bottom Content"));		
		bottomDrawer.setDefaultDrawerSize(250);
		bottomDrawer.setDirection(DrawerDirection.BOTTOM);		
		bottomDrawer.setSidePane(bottomDrawerPane);
//		bottomDrawer.setContent(leftDrawer);
		bottomDrawer.setOverLayVisible(false);
		bottomDrawer.setResizableOnDrag(true);
				
				
		JFXDrawer rightDrawer = new JFXDrawer();
		StackPane rightDrawerPane = new StackPane();
		rightDrawerPane.getStyleClass().add("blue-400");
		rightDrawerPane.getChildren().add(new JFXButton("Right Content"));
		rightDrawer.setDirection(DrawerDirection.RIGHT);		
		rightDrawer.setDefaultDrawerSize(250);
		rightDrawer.setSidePane(rightDrawerPane);
//		rightDrawer.setContent(bottomDrawer);
		rightDrawer.setOverLayVisible(false);
		rightDrawer.setResizableOnDrag(true);
		
		
		
		JFXDrawer topDrawer = new JFXDrawer();
		StackPane topDrawerPane = new StackPane();
		topDrawerPane.getStyleClass().add("green-400");
		topDrawerPane.getChildren().add(new JFXButton("Top Content"));
		topDrawer.setDirection(DrawerDirection.TOP);		
		topDrawer.setDefaultDrawerSize(250);
		topDrawer.setSidePane(topDrawerPane);
//		topDrawer.setContent(rightDrawer);
		topDrawer.setOverLayVisible(false);
		topDrawer.setResizableOnDrag(true);
		
		

		JFXDrawersStack drawersStack = new JFXDrawersStack();
		drawersStack.setContent(content);
//		drawersStack.addDrawer(leftDrawer);
		
		leftDrawer.setId("LEFT");
		rightDrawer.setId("RIGHT");
		bottomDrawer.setId("BOT");
		topDrawer.setId("TOP");
//		drawersStack.addDrawer(rightDrawer);
//		drawersStack.addDrawer(bottomDrawer);
//		drawersStack.addDrawer(topDrawer);
		
		leftButton.addEventHandler(MouseEvent.MOUSE_PRESSED, (e)->{
			drawersStack.toggle(leftDrawer);
		});
		bottomButton.addEventHandler(MouseEvent.MOUSE_PRESSED, (e)->{
			drawersStack.toggle(bottomDrawer);
		});		
		rightButton.addEventHandler(MouseEvent.MOUSE_PRESSED, (e)->{
			drawersStack.toggle(rightDrawer);
		});
		topButton.addEventHandler(MouseEvent.MOUSE_PRESSED, (e)->{
			drawersStack.toggle(topDrawer);
		});
		
		
		final Scene scene = new Scene(drawersStack, 800, 800);
		scene.getStylesheets().add(DrawerDemo.class.getResource("/resources/css/jfoenix-components.css").toExternalForm());
		scene.getStylesheets().add(DrawerDemo.class.getResource("/resources/css/jfoenix-design.css").toExternalForm());

		primaryStage.setTitle("JFX Drawer Demo");
		primaryStage.setScene(scene);
		primaryStage.setResizable(true);
		primaryStage.show();		
		
	}

	public static void main(String[] args) { launch(args); }
	<commit_msg>removed addDrawer method from the drawerstack demo<commit_after>package demos.components;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.FlowPane;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;

import com.jfoenix.controls.JFXButton;
import com.jfoenix.controls.JFXDrawer;
import com.jfoenix.controls.JFXDrawer.DrawerDirection;
import com.jfoenix.controls.JFXDrawersStack;

public class DrawerDemo extends Application {

	@Override
	public void start(Stage primaryStage) throws Exception {

		FlowPane content = new FlowPane();
		JFXButton leftButton = new JFXButton("LEFT");
		JFXButton topButton = new JFXButton("TOP");
		JFXButton rightButton = new JFXButton("RIGHT");
		JFXButton bottomButton = new JFXButton("BOTTOM");
		content.getChildren().addAll(leftButton, topButton, rightButton, bottomButton);
		content.setMaxSize(200, 200);
		
		
		JFXDrawer leftDrawer = new JFXDrawer();
		StackPane leftDrawerPane = new StackPane();
		leftDrawerPane.getStyleClass().add("red-400");
		leftDrawerPane.getChildren().add(new JFXButton("Left Content"));
		leftDrawer.setSidePane(leftDrawerPane);
		leftDrawer.setDefaultDrawerSize(250);
//		leftDrawer.setContent(content);	
		leftDrawer.setOverLayVisible(false);
		leftDrawer.setResizableOnDrag(true);
		
		
		JFXDrawer bottomDrawer = new JFXDrawer();
		StackPane bottomDrawerPane = new StackPane();
		bottomDrawerPane.getStyleClass().add("deep-purple-400");
		bottomDrawerPane.getChildren().add(new JFXButton("Bottom Content"));		
		bottomDrawer.setDefaultDrawerSize(250);
		bottomDrawer.setDirection(DrawerDirection.BOTTOM);		
		bottomDrawer.setSidePane(bottomDrawerPane);
//		bottomDrawer.setContent(leftDrawer);
		bottomDrawer.setOverLayVisible(false);
		bottomDrawer.setResizableOnDrag(true);
				
				
		JFXDrawer rightDrawer = new JFXDrawer();
		StackPane rightDrawerPane = new StackPane();
		rightDrawerPane.getStyleClass().add("blue-400");
		rightDrawerPane.getChildren().add(new JFXButton("Right Content"));
		rightDrawer.setDirection(DrawerDirection.RIGHT);		
		rightDrawer.setDefaultDrawerSize(250);
		rightDrawer.setSidePane(rightDrawerPane);
//		rightDrawer.setContent(bottomDrawer);
		rightDrawer.setOverLayVisible(false);
		rightDrawer.setResizableOnDrag(true);
		
		
		
		JFXDrawer topDrawer = new JFXDrawer();
		StackPane topDrawerPane = new StackPane();
		topDrawerPane.getStyleClass().add("green-400");
		topDrawerPane.getChildren().add(new JFXButton("Top Content"));
		topDrawer.setDirection(DrawerDirection.TOP);		
		topDrawer.setDefaultDrawerSize(250);
		topDrawer.setSidePane(topDrawerPane);
//		topDrawer.setContent(rightDrawer);
		topDrawer.setOverLayVisible(false);
		topDrawer.setResizableOnDrag(true);
		
		

		JFXDrawersStack drawersStack = new JFXDrawersStack();
		drawersStack.setContent(content);
		
		leftDrawer.setId("LEFT");
		rightDrawer.setId("RIGHT");
		bottomDrawer.setId("BOT");
		topDrawer.setId("TOP");
		
		leftButton.addEventHandler(MouseEvent.MOUSE_PRESSED, (e)->{
			drawersStack.toggle(leftDrawer);
		});
		bottomButton.addEventHandler(MouseEvent.MOUSE_PRESSED, (e)->{
			drawersStack.toggle(bottomDrawer);
		});		
		rightButton.addEventHandler(MouseEvent.MOUSE_PRESSED, (e)->{
			drawersStack.toggle(rightDrawer);
		});
		topButton.addEventHandler(MouseEvent.MOUSE_PRESSED, (e)->{
			drawersStack.toggle(topDrawer);
		});
		
		
		final Scene scene = new Scene(drawersStack, 800, 800);
		scene.getStylesheets().add(DrawerDemo.class.getResource("/resources/css/jfoenix-components.css").toExternalForm());
		scene.getStylesheets().add(DrawerDemo.class.getResource("/resources/css/jfoenix-design.css").toExternalForm());

		primaryStage.setTitle("JFX Drawer Demo");
		primaryStage.setScene(scene);
		primaryStage.setResizable(true);
		primaryStage.show();		
		
	}

	public static void main(String[] args) { launch(args); }
	
{'fraction_non_alphanumeric': 0.12445003142677562, 'fraction_numerical': 0.009050911376492771, 'mean_word_length': 5.997361477572559, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '5200436', 'n_tokens_mistral': 2936, 'n_tokens_neox': 2619, 'n_words': 356}