<commit_before>package play.learn.java.fx;

import java.util.ArrayList;
import java.util.List;

import javafx.scene.paint.Color;
import javafx.scene.shape.Ellipse;

import static java.lang.Math.random;

public class Leaf extends Ellipse {
	
	public final Color AUTUMN_COLOR;
	
	private final int N = 5;
	private List<Ellipse> petals = new ArrayList<>( 2 * N + 1);
	
	public Leaf(Branch parentBranch) {
		super(0, parentBranch.length / 2., 2, parentBranch.length / 2.);
		setScaleX(0);  // trick to hide leafs
		setScaleY(0);
		
		double rand = random() * 0.5 + 0.3;
		AUTUMN_COLOR = Color.color(random() * 0.1 + 0.8, rand, rand /2);
		
		Color color = new Color(random() * 0.5, random() * 0.5 + 0.5, 0, 1);
		if (parentBranch.globalH < 400 && random() < 0.8) {  // bottom leaf is darker
			color = color.darker();
		}
		setFill(color);
	}

}<commit_msg>not used , remove for now<commit_after>package play.learn.java.fx;

import javafx.scene.paint.Color;
import javafx.scene.shape.Ellipse;

import static java.lang.Math.random;

public class Leaf extends Ellipse {
	
	public final Color AUTUMN_COLOR;
	
	public Leaf(Branch parentBranch) {
		super(0, parentBranch.length / 2., 2, parentBranch.length / 2.);
		setScaleX(0);  // trick to hide leafs
		setScaleY(0);
		
		double rand = random() * 0.5 + 0.3;
		AUTUMN_COLOR = Color.color(random() * 0.1 + 0.8, rand, rand /2);
		
		Color color = new Color(random() * 0.5, random() * 0.5 + 0.5, 0, 1);
		if (parentBranch.globalH < 400 && random() < 0.8) {  // bottom leaf is darker
			color = color.darker();
		}
		setFill(color);
	}

}
{'fraction_non_alphanumeric': 0.14774889029803423, 'fraction_numerical': 0.03741280913126189, 'mean_word_length': 3.3351648351648353, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, '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': '3296323', 'n_tokens_mistral': 653, 'n_tokens_neox': 576, 'n_words': 155}