<commit_before>package net.edmacdonald.playground.java2d;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartPanel;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.axis.ValueAxis;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.chart.plot.XYPlot;
import org.jfree.data.Range;
import org.jfree.data.xy.DefaultTableXYDataset;
import org.jfree.data.xy.XYDataset;
import org.jfree.data.xy.XYSeries;
import org.jfree.data.xy.XYSeriesCollection;

import javax.swing.*;
import java.awt.*;

public class PlotPanel extends JPanel{

    private Integer radius = 1;
    private Integer pointCount = 10;
    private Integer horizontalOffset = 0;
    private Integer verticalOffset = 0;
    private Integer rotationAngle = 0;

    private ChartPanel chartPanel;

    private Log log = LogFactory.getLog(PlotPanel.class);

    public PlotPanel(){

        XYSeriesCollection dataset = new XYSeriesCollection();
        dataset.addSeries(getSeries());

        JFreeChart chart = ChartFactory.createXYLineChart(null, null, null, dataset, PlotOrientation.VERTICAL, false, false, false);

        chart.getXYPlot().getDomainAxis().setRange(new Range(-10, 10));
        chart.getXYPlot().getRangeAxis().setRange(new Range(-10, 10));

        chartPanel = new ChartPanel(chart);

        add(chartPanel);<commit_msg>initial plot radius out of syn w/ initial radius slider value. fixed<commit_after>package net.edmacdonald.playground.java2d;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartPanel;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.axis.ValueAxis;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.chart.plot.XYPlot;
import org.jfree.data.Range;
import org.jfree.data.xy.DefaultTableXYDataset;
import org.jfree.data.xy.XYDataset;
import org.jfree.data.xy.XYSeries;
import org.jfree.data.xy.XYSeriesCollection;

import javax.swing.*;
import java.awt.*;

public class PlotPanel extends JPanel{

    private Integer radius = 5;
    private Integer pointCount = 10;
    private Integer horizontalOffset = 0;
    private Integer verticalOffset = 0;
    private Integer rotationAngle = 0;

    private ChartPanel chartPanel;

    private Log log = LogFactory.getLog(PlotPanel.class);

    public PlotPanel(){

        XYSeriesCollection dataset = new XYSeriesCollection();
        dataset.addSeries(getSeries());

        JFreeChart chart = ChartFactory.createXYLineChart(null, null, null, dataset, PlotOrientation.VERTICAL, false, false, false);

        chart.getXYPlot().getDomainAxis().setRange(new Range(-10, 10));
        chart.getXYPlot().getRangeAxis().setRange(new Range(-10, 10));

        chartPanel = new ChartPanel(chart);

        add(chartPanel);
{'fraction_non_alphanumeric': 0.10769761822575077, 'fraction_numerical': 0.010355540214014497, 'mean_word_length': 4.288321167883212, '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': '2559888', 'n_tokens_mistral': 905, 'n_tokens_neox': 847, 'n_words': 192}