<commit_before>package carelender.view;

import javafx.scene.canvas.GraphicsContext;
import javafx.scene.paint.Color;
import javafx.scene.text.Font;
import javafx.scene.text.TextAlignment;

public class TabRenderer extends CanvasRenderer {
	public TabRenderer() {
    }
	
	@Override
	public void draw(GraphicsContext gc, double x, double y, double width, double height) {
		super.draw(gc, x, y, width,height);

		double wordFstXRatio = 1.0/12.0;
		double wordSndXRatio = 7.0/18.0;
		double wordThdXRatio = 25.0/36.0;
		double wordYRatio = 5.0/6.0;
		double wordWidthRatio = 2.0/9.0;

		System.out.println("TabRenderer " + x + " " + y + " " + width + " " + height );
		
		gc.setFill(Color.web("#999"));
		gc.fillRect(x, y, width, height);
		
		double fontSize = width / 20.0; //Temporary
		Font font = Font.loadFont("file:res/monaco.ttf", fontSize);


		gc.setTextAlign(TextAlignment.CENTER);
		gc.setFill(Color.web("#555"));<commit_msg>Create fontSizeRatio in TabRenderer<commit_after>package carelender.view;

import javafx.scene.canvas.GraphicsContext;
import javafx.scene.paint.Color;
import javafx.scene.text.Font;
import javafx.scene.text.TextAlignment;

public class TabRenderer extends CanvasRenderer {
	public TabRenderer() {
    }
	
	@Override
	public void draw(GraphicsContext gc, double x, double y, double width, double height) {
		super.draw(gc, x, y, width,height);

		double wordFstXRatio = 1.0/12.0;
		double wordSndXRatio = 7.0/18.0;
		double wordThdXRatio = 25.0/36.0;
		double wordYRatio = 5.0/6.0;
		double wordWidthRatio = 2.0/9.0;
		double fontSizeRatio = 1.0/20.0;
		double fontSize = width * fontSizeRatio; //Temporary
		Font font = Font.loadFont("file:res/monaco.ttf", fontSize);

		System.out.println("TabRenderer " + x + " " + y + " " + width + " " + height );
		
		gc.setFill(Color.web("#999"));
		gc.fillRect(x, y, width, height);
		
		gc.setTextAlign(TextAlignment.CENTER);
		gc.setFill(Color.web("#555"));
{'fraction_non_alphanumeric': 0.14256198347107438, 'fraction_numerical': 0.03512396694214876, 'mean_word_length': 4.031168831168831, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4024537', 'n_tokens_mistral': 761, 'n_tokens_neox': 682, 'n_words': 145}