<commit_before>package com.borlander.rac525791.dashboard.layout.data;

import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.widgets.Display;

import com.borlander.rac525791.dashboard.layout.DashboardFonts;

public class DashboardFontsImpl implements DashboardFonts {
	private Display myDisplay;
	private Font myValueFont;
	private Font myUnitsFont;
	private Font myTextFont;
	
	private final int myTextSize; 
	private final int myValueSize;
	private final int myUnitsSize;
	private final boolean myTextBold = true;

	public DashboardFontsImpl(int text, int value, int units){
		myTextSize = text;
		myValueSize = value;
		myUnitsSize = units;
	}
	
	public Font getTextFont() {
		if (myTextFont == null || myTextFont.isDisposed()){
			myTextFont = new Font(getDisplay(), "Arial", myTextSize, myTextBold ? SWT.BOLD : SWT.NORMAL);
		}
		return myTextFont;
	}
	
	public Font getValueFont() {
		if (myValueFont == null || myValueFont.isDisposed()){
			myValueFont = new Font(getDisplay(), "Arial", myValueSize, SWT.BOLD);
		}
		return myValueFont;
	}
	
	public Font getUnitsFont() {
		if (myUnitsFont == null || myUnitsFont.isDisposed()){
			myUnitsFont = new Font(getDisplay(), "Arial", myUnitsSize, SWT.NORMAL);
		}
		return myUnitsFont;
	}
	
	private Display getDisplay(){<commit_msg>minor syntax improvement (dead code)<commit_after>package com.borlander.rac525791.dashboard.layout.data;

import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.widgets.Display;

import com.borlander.rac525791.dashboard.layout.DashboardFonts;

public class DashboardFontsImpl implements DashboardFonts {
	private Display myDisplay;
	private Font myValueFont;
	private Font myUnitsFont;
	private Font myTextFont;
	
	private final int myTextSize; 
	private final int myValueSize;
	private final int myUnitsSize;
	private boolean myTextBold = true;

	public DashboardFontsImpl(int text, int value, int units){
		myTextSize = text;
		myValueSize = value;
		myUnitsSize = units;
	}
	
	public Font getTextFont() {
		if (myTextFont == null || myTextFont.isDisposed()){
			myTextFont = new Font(getDisplay(), "Arial", myTextSize, myTextBold ? SWT.BOLD : SWT.NORMAL);
		}
		return myTextFont;
	}
	
	public Font getValueFont() {
		if (myValueFont == null || myValueFont.isDisposed()){
			myValueFont = new Font(getDisplay(), "Arial", myValueSize, SWT.BOLD);
		}
		return myValueFont;
	}
	
	public Font getUnitsFont() {
		if (myUnitsFont == null || myUnitsFont.isDisposed()){
			myUnitsFont = new Font(getDisplay(), "Arial", myUnitsSize, SWT.NORMAL);
		}
		return myUnitsFont;
	}
	
	private Display getDisplay(){
{'fraction_non_alphanumeric': 0.10704862419901998, 'fraction_numerical': 0.009046362608367886, 'mean_word_length': 4.845814977973569, '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': '7595644', 'n_tokens_mistral': 951, 'n_tokens_neox': 894, 'n_words': 216}