<commit_before>package edu.wustl.cab2b.client.ui.controls.slider;

import java.awt.BorderLayout;
import java.text.DateFormat;
import java.util.Vector;

import javax.swing.JFrame;
import javax.swing.JPanel;

import edu.wustl.cab2b.client.ui.controls.Cab2bLabel;

/**
 * @author <NAME>
 * @author <NAME>
 * @author <NAME>
 *
 */
public class BiSlider extends JPanel {

    public static final String EVENT_RANGE_CHANGED = "EVENT_RANGE_CHANGED";

    public Cab2bLabel lowVal;

    public Cab2bLabel hiVal;

    MThumbSlider mSlider;

    public BiSlider() {
        mSlider = new MThumbSlider();
    }

    public BiSlider(Vector data) {
        super();
        mSlider = new MThumbSlider(data, this);
        initUI(data);

    }

    public BiSlider(Vector data, Object initialMin, Object initialMax) {
        super();
        mSlider = new MThumbSlider(data, this, initialMin, initialMax);
        initUI(data);
    }

    private void initUI() {
        lowVal = new Cab2bLabel();<commit_msg>Added two new method sto get min and max bounds of the selected range.<commit_after>package edu.wustl.cab2b.client.ui.controls.slider;

import java.awt.BorderLayout;
import java.text.DateFormat;
import java.util.Vector;

import javax.swing.JFrame;
import javax.swing.JPanel;

import edu.wustl.cab2b.client.ui.controls.Cab2bLabel;

/**
 * @author <NAME>
 * @author <NAME>
 * @author <NAME>
 *
 */
public class BiSlider extends JPanel {

    public static final String EVENT_RANGE_CHANGED = "EVENT_RANGE_CHANGED";

    public Cab2bLabel lowVal;

    public Cab2bLabel hiVal;

    MThumbSlider mSlider;

    public BiSlider() {
        mSlider = new MThumbSlider();
    }

    public BiSlider(Vector data) {
        super();
        mSlider = new MThumbSlider(data, this);
        initUI(data);

    }
    
    public Comparable getMinBound(){
        return (Comparable) mSlider.getMinimumBarValue();
    }
    
    public Comparable getMaxBound(){
        return (Comparable) mSlider.getMaximumBarValue();
    }

    public BiSlider(Vector data, Object initialMin, Object initialMax) {
        super();
        mSlider = new MThumbSlider(data, this, initialMin, initialMax);
        initUI(data);
    }

    private void initUI() {
        lowVal = new Cab2bLabel();
{'fraction_non_alphanumeric': 0.10393631136665192, 'fraction_numerical': 0.005307386112339673, 'mean_word_length': 3.061041292639138, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1696518', 'n_tokens_mistral': 738, 'n_tokens_neox': 747, 'n_words': 172}