<commit_before>/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.diirt.javafx.tools;

import javafx.scene.input.MouseEvent;
import javafx.stage.Stage;
import static org.diirt.datasource.formula.ExpressionLanguage.formula;
import static org.diirt.datasource.formula.ExpressionLanguage.formulaArg;
import org.diirt.datasource.graphene.BubbleGraph2DExpression;
import static org.diirt.datasource.graphene.ExpressionLanguage.bubbleGraphOf;
import org.diirt.datasource.graphene.Graph2DExpression;
import org.diirt.graphene.BubbleGraph2DRendererUpdate;

/**
 *
 * @author Mickey
 */
public class BubbleGraphApp extends BaseGraphApp {
    
    private String xColumn = null;
    private String yColumn = null;
    private String sizeColumn = null;
    private String colorColumn = null;
    private boolean highlightFocusValue;
    
    private Graph2DExpression<BubbleGraph2DRendererUpdate> graph;
    
    final private BaseGraphView< BubbleGraph2DRendererUpdate > bubbleGraphView = new BaseGraphView< BubbleGraph2DRendererUpdate >() {

	@Override
	public Graph2DExpression<BubbleGraph2DRendererUpdate> createExpression(String dataFormula) {
	BubbleGraph2DExpression plot = bubbleGraphOf(formula(dataFormula),
	    formulaArg(xColumn),
	    formulaArg(yColumn),
	    formulaArg(sizeColumn),
	    formulaArg(colorColumn));
        return plot;
	}
	
	@Override
	protected void onMouseMove( MouseEvent e ) {
	    if ( graph != null ) {
		graph.update(graph.newUpdate().focusPixel( (int)e.getX() , (int)e.getY()));
	    }
	}
    };
    
    public boolean isHighlightFocusValue() {
        return highlightFocusValue;
    }
<commit_msg>Minor formatting for BubbleGraphApp<commit_after>/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.diirt.javafx.tools;

import javafx.scene.input.MouseEvent;
import javafx.stage.Stage;
import static org.diirt.datasource.formula.ExpressionLanguage.formula;
import static org.diirt.datasource.formula.ExpressionLanguage.formulaArg;
import org.diirt.datasource.graphene.BubbleGraph2DExpression;
import static org.diirt.datasource.graphene.ExpressionLanguage.bubbleGraphOf;
import org.diirt.datasource.graphene.Graph2DExpression;
import org.diirt.graphene.BubbleGraph2DRendererUpdate;

/**
 *
 * @author Mickey
 */
public class BubbleGraphApp extends BaseGraphApp {
    
    private String xColumn = null;
    private String yColumn = null;
    private String sizeColumn = null;
    private String colorColumn = null;
    private boolean highlightFocusValue;
    
    private Graph2DExpression<BubbleGraph2DRendererUpdate> graph;
    
    final private BaseGraphView< BubbleGraph2DRendererUpdate > bubbleGraphView = new BaseGraphView< BubbleGraph2DRendererUpdate >() {

	@Override
	public Graph2DExpression<BubbleGraph2DRendererUpdate> createExpression(String dataFormula) {
	    BubbleGraph2DExpression plot = bubbleGraphOf(formula(dataFormula),
		formulaArg(xColumn),
		formulaArg(yColumn),
		formulaArg(sizeColumn),
		formulaArg(colorColumn));
	    return plot;
	}
	
	@Override
	protected void onMouseMove( MouseEvent e ) {
	    if ( graph != null ) {
		graph.update(graph.newUpdate().focusPixel( (int)e.getX() , (int)e.getY()));
	    }
	}
    };
    
    public boolean isHighlightFocusValue() {
        return highlightFocusValue;
    }

{'fraction_non_alphanumeric': 0.08541725203708907, 'fraction_numerical': 0.005619556055071649, 'mean_word_length': 4.606299212598425, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '3437157', 'n_tokens_mistral': 1093, 'n_tokens_neox': 1023, 'n_words': 235}