<commit_before>package main.woj.ui;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.GridLayout;

import javax.swing.BoxLayout;
import javax.swing.JPanel;

import main.woj.controllers.ActionController;
import main.woj.gameplay.Board;
import main.woj.gameplay.Game;

public class GameplayPage extends JPanel{
	private ScoreBoard scoreBoard;
	private QuestionPanel questionPanel;
	private ActionIndicator actionIndicator;
	private GameFrame gameFrame;
	private GameplayContainer gameplayContainer;
	private ActionController controller;
	
	public GameplayPage(GameFrame gameFrame, ActionController controller){
		this.gameFrame = gameFrame;
		this.controller = controller;
		setup();
		initComponents();
	}

	private void setup() {
		this.setSize(getMaximumSize());
		this.setLayout(new BorderLayout());
	}

	private void initComponents() {
		gameplayContainer = new GameplayContainer(controller);
		scoreBoard = new ScoreBoard();
		actionIndicator = new ActionIndicator();
		scoreBoard = new ScoreBoard();
		this.add(gameplayContainer, BorderLayout.CENTER);
		this.add(bottomPanel(), BorderLayout.SOUTH);
	}
	
	public void showBoard(){
		gameplayContainer.switchToBoard();
	}
	
	public void showWheel(){
		gameplayContainer.switchToWheel();
	}
	
	public GameBoard getBoard(){
		return gameplayContainer.getBoard();
	}
	
	private JPanel bottomPanel(){
		JPanel bottomPanel = new JPanel();
		bottomPanel.setLayout(new GridLayout(1,2));
		bottomPanel.add(scoreBoard);
		bottomPanel.add(actionIndicator);
		return bottomPanel;
	}
	
}<commit_msg>Change ScoreBoard label to Score Board Button<commit_after>package main.woj.ui;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.GridLayout;

import javax.swing.BoxLayout;
import javax.swing.JPanel;

import main.woj.controllers.ActionController;
import main.woj.gameplay.Board;
import main.woj.gameplay.Game;

public class GameplayPage extends JPanel{
	private ScoreBoard scoreBoard;
	private QuestionPanel questionPanel;
	private ActionIndicator actionIndicator;
	private GameFrame gameFrame;
	private GameplayContainer gameplayContainer;
	private ActionController controller;
	private JLabel emptyLabel;
	private JButton scoreBoardButton;
	
	public GameplayPage(GameFrame gameFrame, ActionController controller){
		this.gameFrame = gameFrame;
		this.controller = controller;
		setup();
		initComponents();
		initListeners();
	}
	
	private void initListeners() {
		scoreBoardButton.addActionListener(new ActionListener(){
			public void actionPerformed(ActionEvent e) {	
				ScoreBoard.showScoreBoard(gameFrame.gameModel);
			}
        });
	}

	private void setup() {
		this.setSize(getMaximumSize());
		this.setLayout(new BorderLayout());
	}

	private void initComponents() {
		gameplayContainer = new GameplayContainer(controller);
		//scoreBoard = new ScoreBoard();
		scoreBoardButton = new JButton("Score");
		emptyLabel = new JLabel("");
		actionIndicator = new ActionIndicator();
		//scoreBoard = new ScoreBoard();
		this.add(gameplayContainer, BorderLayout.CENTER);
		this.add(bottomPanel(), BorderLayout.SOUTH);
	}
	
	public void showBoard(){
		gameplayContainer.switchToBoard();
	}
	
	public void showWheel(){
		gameplayContainer.switchToWheel();
	}
	
	public GameBoard getBoard(){
		return gameplayContainer.getBoard();
	}
	
	private JPanel bottomPanel(){
		JPanel bottomPanel = new JPanel();
		bottomPanel.setLayout(new GridLayout(1,3));
		bottomPanel.add(scoreBoardButton);
		bottomPanel.add(emptyLabel);
		//bottomPanel.add(scoreBoard);
		bottomPanel.add(actionIndicator);
		return bottomPanel;
	}
	
}
{'fraction_non_alphanumeric': 0.10122358175750834, 'fraction_numerical': 0.0011123470522803114, 'mean_word_length': 5.528130671506352, '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': '6181196', 'n_tokens_mistral': 1126, 'n_tokens_neox': 1044, 'n_words': 237}