<commit_before>package etomica.modules.vle;

import java.util.HashMap;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.TitledBorder;

import etomica.action.Action;
import etomica.graphics.DeviceButton;
import etomica.graphics.DevicePlotPoints;
import etomica.graphics.SimulationGraphic;
import etomica.graphics.SimulationPanel;
import etomica.units.Debye;
import etomica.units.Kelvin;
import etomica.util.Function;


public class B2Fit extends SimulationPanel {

	private final static String APP_NAME = "CO2 Potential Fitter";

	public DevicePlotPoints dPlot;

	public B2Fit() {
		super(APP_NAME);

        //
        // Function
        //
        FunctionB2LJQ functionB2LJQ = new FunctionB2LJQ();
        final FunctionMayerB2LJQ functionMayerB2LJQ = new FunctionMayerB2LJQ();

    	dPlot = new DevicePlotPoints(new String[] {"Q", "epsilon", "sigma"},
    			new Function[]{functionB2LJQ}, new String[] {"B2"}, false);
    	dPlot.setTableColumnNames(new String[]{"T (K)","B2 (mL/mol)"});

    	functionB2LJQ.dPlot = dPlot;
//    	functionMayerB2LJQ.dPlot = dPlot;

        controlPanel.add(dPlot.controlGraphic());
		graphicsPanel.add(dPlot.graphic());
		footerPanel.add(dPlot.parameterGraphic());

        dPlot.setXScale(200, 500, 300);
        dPlot.getPlotSizeSlider(DevicePlotPoints.MIN_X).setValue(200);
        dPlot.getPlotSizeSlider(DevicePlotPoints.MAX_X).setValue(400);
        dPlot.setAutoScale(true);

        dPlot.setYScale(-100, 100, 0);
		
        dPlot.getSlider("Q").setPrecision(2);
        dPlot.getSlider("Q").setValue(5.0);
		dPlot.setParameterLimits("Q", 0, 10.0);<commit_msg>make the text boxes editable<commit_after>package etomica.modules.vle;

import java.util.HashMap;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.TitledBorder;

import etomica.action.Action;
import etomica.graphics.DeviceButton;
import etomica.graphics.DevicePlotPoints;
import etomica.graphics.SimulationGraphic;
import etomica.graphics.SimulationPanel;
import etomica.units.Debye;
import etomica.units.Kelvin;
import etomica.util.Function;


public class B2Fit extends SimulationPanel {

	private final static String APP_NAME = "CO2 Potential Fitter";

	public DevicePlotPoints dPlot;

	public B2Fit() {
		super(APP_NAME);

        //
        // Function
        //
        FunctionB2LJQ functionB2LJQ = new FunctionB2LJQ();
        final FunctionMayerB2LJQ functionMayerB2LJQ = new FunctionMayerB2LJQ();

    	dPlot = new DevicePlotPoints(new String[] {"Q", "epsilon", "sigma"},
    			new Function[]{functionB2LJQ}, new String[] {"B2"}, false);
    	dPlot.setTableColumnNames(new String[]{"T (K)","B2 (mL/mol)"});
    	dPlot.setSliderTextboxesEditable(true);

    	functionB2LJQ.dPlot = dPlot;
//    	functionMayerB2LJQ.dPlot = dPlot;

        controlPanel.add(dPlot.controlGraphic());
		graphicsPanel.add(dPlot.graphic());
		footerPanel.add(dPlot.parameterGraphic());

        dPlot.setXScale(200, 500, 300);
        dPlot.getPlotSizeSlider(DevicePlotPoints.MIN_X).setValue(200);
        dPlot.getPlotSizeSlider(DevicePlotPoints.MAX_X).setValue(400);
        dPlot.setAutoScale(true);

        dPlot.setYScale(-100, 100, 0);
		
        dPlot.getSlider("Q").setPrecision(2);
        dPlot.getSlider("Q").setValue(5.0);
		dPlot.setParameterLimits("Q", 0, 10.0);
{'fraction_non_alphanumeric': 0.1247750449910018, 'fraction_numerical': 0.02579484103179364, 'mean_word_length': 4.053030303030303, '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': '6123421', 'n_tokens_mistral': 1270, 'n_tokens_neox': 1143, 'n_words': 190}