<commit_before>package de.syslord.boxmodel;

import java.awt.Font;

import de.syslord.boxmodel.renderer.FontProvider;
import de.syslord.boxmodel.renderer.RenderType;
import de.syslord.boxmodel.renderer.RenderableBoxImpl;

public class TextBox extends LayoutableBox {

	private String content;

	private Font font = FontProvider.getDefaultFont();

	private Margin margin = Margin.noMargin();

	private Padding padding = Padding.noPadding();

	private boolean htmlMode = false;

	public TextBox(String name, String content, int x, int y, int width, int height) {
		super(name, x, y, width, height);
		this.content = content;<commit_msg>TextBox fixed height factory method<commit_after>package de.syslord.boxmodel;

import java.awt.Font;

import de.syslord.boxmodel.renderer.FontProvider;
import de.syslord.boxmodel.renderer.RenderType;
import de.syslord.boxmodel.renderer.RenderableBoxImpl;

public class TextBox extends LayoutableBox {

	private String content;

	private Font font = FontProvider.getDefaultFont();

	private Margin margin = Margin.noMargin();

	private Padding padding = Padding.noPadding();

	private boolean htmlMode = false;

	public TextBox(String name, String content, int x, int y, int width, int height) {
		super(name, x, y, width, height);
		this.content = content;
	}

	public static TextBox createFixedHeightTextBox(String name, String content, int x, int y, int width, int height) {
		TextBox box = new TextBox(name, content, x, y, width, height);
		box.setProp(HeightProperty.MIN, height);
		box.setProp(HeightProperty.MAX, height);
		return box;
{'fraction_non_alphanumeric': 0.09714285714285714, 'fraction_numerical': 0.0, 'mean_word_length': 5.278884462151394, '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': '258124', 'n_tokens_mistral': 483, 'n_tokens_neox': 470, 'n_words': 141}