<commit_before>package nl.tudelft.dnainator.ui.controllers;

import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.fxml.FXML;
import javafx.scene.control.ScrollPane;
import nl.tudelft.dnainator.ui.models.GraphModel;
import nl.tudelft.dnainator.ui.views.SequenceView;
import nl.tudelft.dnainator.ui.views.View;

/**
 * Controller class for all graph interaction.
 */
public class GraphController {

	/**
	 * Defines the different types of {@link View}s.
	 */
	public enum ViewType { SEQUENCE, LAST };

	@FXML private ScrollPane scrollPane;
	private ObjectProperty<GraphModel> graphModel;
	// FIXME: Perhaps this should also be a property for the WindowController to bind to.
	private View[] views;

	@FXML
	private void initialize() {
		this.graphModel = new SimpleObjectProperty<GraphModel>(this, "graphModel");

		GraphModel model = new GraphModel();
		setModel(model);

		/*
		 * Here the relevant listeners should be bound to their related properties
		 * in the GraphModel. For now, there are only two properties: one with all
		 * the nodes in the graph and one with all the edges in the graph. These are
		 * just here as an example and as something to work against. Eventually, we
		 * probably only want to contain those nodes that are visible + some cache<commit_msg>GraphController: remove redundant code<commit_after>package nl.tudelft.dnainator.ui.controllers;

import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.fxml.FXML;
import javafx.scene.control.ScrollPane;
import nl.tudelft.dnainator.ui.models.GraphModel;
import nl.tudelft.dnainator.ui.views.SequenceView;
import nl.tudelft.dnainator.ui.views.View;

/**
 * Controller class for all graph interaction.
 */
public class GraphController {

	/**
	 * Defines the different types of {@link View}s.
	 */
	public enum ViewType { SEQUENCE, LAST }

	@FXML private ScrollPane scrollPane;
	private ObjectProperty<GraphModel> graphModel;
	// FIXME: Perhaps this should also be a property for the WindowController to bind to.
	private View[] views;

	@FXML
	private void initialize() {
		this.graphModel = new SimpleObjectProperty<>(this, "graphModel");

		GraphModel model = new GraphModel();
		setModel(model);

		/*
		 * Here the relevant listeners should be bound to their related properties
		 * in the GraphModel. For now, there are only two properties: one with all
		 * the nodes in the graph and one with all the edges in the graph. These are
		 * just here as an example and as something to work against. Eventually, we
		 * probably only want to contain those nodes that are visible + some cache
{'fraction_non_alphanumeric': 0.08215085884988797, 'fraction_numerical': 0.0, 'mean_word_length': 4.401209677419355, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '419674', 'n_tokens_mistral': 795, 'n_tokens_neox': 757, 'n_words': 280}