<commit_before>package de.uni_hannover.sra.minimax_simulator.ui.schematics.parts;

import com.sun.javafx.tk.FontMetrics;
import com.sun.javafx.tk.Toolkit;
import de.uni_hannover.sra.minimax_simulator.ui.layout.Bounds;
import de.uni_hannover.sra.minimax_simulator.model.machine.part.Label;
import de.uni_hannover.sra.minimax_simulator.ui.render.RenderEnvironment;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.shape.StrokeLineCap;
import javafx.scene.shape.StrokeLineJoin;

import static com.google.common.base.Preconditions.checkNotNull;

/**
 * The sprite of the control unit (CU).
 *
 * @author <NAME>uml;ck
 * @author <NAME>
 */
// TODO: why CircuitSprite and not LabelSprite?
public class CuLabelSprite extends CircuitSprite {

	private final Label label;

	/**
	 * Initializes the {@code CuLabelSprite}.<commit_msg>Refactoring: CuLabelSprite stays child of CircuitSprite<commit_after>package de.uni_hannover.sra.minimax_simulator.ui.schematics.parts;

import com.sun.javafx.tk.FontMetrics;
import com.sun.javafx.tk.Toolkit;
import de.uni_hannover.sra.minimax_simulator.ui.layout.Bounds;
import de.uni_hannover.sra.minimax_simulator.model.machine.part.Label;
import de.uni_hannover.sra.minimax_simulator.ui.render.RenderEnvironment;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.shape.StrokeLineCap;
import javafx.scene.shape.StrokeLineJoin;

import static com.google.common.base.Preconditions.checkNotNull;

/**
 * The sprite of the control unit (CU).
 *
 * @author <NAME>&uuml;ck
 * @author <NAME>
 */
public class CuLabelSprite extends CircuitSprite {

	private final Label label;

	/**
	 * Initializes the {@code CuLabelSprite}.
{'fraction_non_alphanumeric': 0.11004784688995216, 'fraction_numerical': 0.0, 'mean_word_length': 5.612648221343873, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '987600', 'n_tokens_mistral': 576, 'n_tokens_neox': 571, 'n_words': 100}