<commit_before>package ui;

import java.util.List;
import java.util.function.Consumer;

import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.control.ComboBox;
import javafx.scene.layout.HBox;
import storage.DataManager;

public class RepositorySelector extends HBox {
	private final ComboBox<String> comboBox = new ComboBox<>();
	private Consumer<String> methodOnValueChange;

	public RepositorySelector() {
		setupLayout();
		setupComboBox();
		getChildren().addAll(comboBox);
		comboBox.prefWidthProperty().bind(widthProperty());
	}

	private void setupLayout() {
		setSpacing(5);
		setPadding(new Insets(5));
		setAlignment(Pos.CENTER);
	}

	private void setupComboBox() {
		comboBox.setFocusTraversable(false);
		comboBox.setEditable(true);
		loadComboBoxContents();
		comboBox.valueProperty().addListener((observable, old, newVal) -> {
			if (methodOnValueChange != null) {
				methodOnValueChange.accept(newVal);
			}
		});
	}

	public void setValue(String val) {
		comboBox.setValue(val);
	}

	public void setComboValueChangeMethod(Consumer<String> method) {
		methodOnValueChange = method;
	}
<commit_msg>Fixed RepositorySelector combobox size and layout<commit_after>package ui;

import java.util.List;
import java.util.function.Consumer;

import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.control.ComboBox;
import javafx.scene.layout.HBox;
import storage.DataManager;

public class RepositorySelector extends HBox {
	private final ComboBox<String> comboBox = new ComboBox<>();
	private Consumer<String> methodOnValueChange;

	public RepositorySelector() {
		setupLayout();
		setupComboBox();
		getChildren().addAll(comboBox);
	}

	private void setupLayout() {
		setSpacing(5);
		setPadding(new Insets(5));
		setAlignment(Pos.BASELINE_LEFT);
		comboBox.setPrefWidth(250);
	}

	private void setupComboBox() {
		comboBox.setFocusTraversable(false);
		comboBox.setEditable(true);
		loadComboBoxContents();
		comboBox.valueProperty().addListener((observable, old, newVal) -> {
			if (methodOnValueChange != null) {
				methodOnValueChange.accept(newVal);
			}
		});
	}

	public void setValue(String val) {
		comboBox.setValue(val);
	}

	public void setComboValueChangeMethod(Consumer<String> method) {
		methodOnValueChange = method;
	}

{'fraction_non_alphanumeric': 0.11623857205050066, 'fraction_numerical': 0.0030474531998258597, 'mean_word_length': 5.622478386167147, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '5262256', 'n_tokens_mistral': 791, 'n_tokens_neox': 720, 'n_words': 139}