<commit_before>var Slider = (function () {
    'use strict';

    var ENTER_KEY = 13;

    function setValue(value) {
        this.input.val(value / 100.0);

        setVal.call(this, value);
    }

    // Update span text value next to the slider
    function setVal(value) {
        this.spanVal.text(Math.round(value * 100) / 100);
    }

    // Callback for dragging the slider
    function drag(value) {
        setValue.call(this, value);

        DatasetInterface.ChangeTrigger.trigger(this.sliderEl);
    }

    function showInput() {
        this.input.attr('type', 'text');
        this.input.focus();
        this.spanVal.hide();
    }

    function hideInput() {
        this.input.attr('type', 'hidden');
        this.input.off('change');
        this.spanVal.show();

        window.onkeydown = null;
    }

    function updateSlider(e) {
        this.slider.setValue($(e.target).val());
    }

    function updateWithEnter(e) {
        var key = e.keyCode ? e.keyCode : e.which;

        if (key === ENTER_KEY) {
            e.preventDefault();

            this.input.trigger('change');
            hideInput.call(this);
        }
    }

    function addUpdateListener() {
        this.input.on('change', updateSlider.bind(this));

        window.onkeydown = updateWithEnter.bind(this);
    }

    Slider.prototype = {
        create: function () {
            this.slider = new $.Quinn(this.sliderEl, {
                value:   this.input.val() * 100,
                step:    0.01,
                setup:   setVal.bind(this),
                drag:    drag.bind(this),
                max:     100,
                disable: true
            });<commit_msg>Set slider max step value to 1<commit_after>var Slider = (function () {
    'use strict';

    var ENTER_KEY = 13;

    function setValue(value) {
        this.input.val(value / 100.0);

        setVal.call(this, value);
    }

    // Update span text value next to the slider
    function setVal(value) {
        this.spanVal.text(Math.round(value * 100) / 100);
    }

    // Callback for dragging the slider
    function drag(value) {
        setValue.call(this, value);

        DatasetInterface.ChangeTrigger.trigger(this.sliderEl);
    }

    function showInput() {
        this.input.attr('type', 'text');
        this.input.focus();
        this.spanVal.hide();
    }

    function hideInput() {
        this.input.attr('type', 'hidden');
        this.input.off('change');
        this.spanVal.show();

        window.onkeydown = null;
    }

    function updateSlider(e) {
        this.slider.setValue($(e.target).val());
    }

    function updateWithEnter(e) {
        var key = e.keyCode ? e.keyCode : e.which;

        if (key === ENTER_KEY) {
            e.preventDefault();

            this.input.trigger('change');
            hideInput.call(this);
        }
    }

    function addUpdateListener() {
        this.input.on('change', updateSlider.bind(this));

        window.onkeydown = updateWithEnter.bind(this);
    }

    Slider.prototype = {
        create: function () {
            this.slider = new $.Quinn(this.sliderEl, {
                value:   this.input.val() * 100,
                step:    1,
                setup:   setVal.bind(this),
                drag:    drag.bind(this),
                max:     100,
                disable: true
            });
{'fraction_non_alphanumeric': 0.13422619047619047, 'fraction_numerical': 0.012202380952380952, 'mean_word_length': 1.7459150326797386, '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': '1675961', 'n_tokens_mistral': 1064, 'n_tokens_neox': 986, 'n_words': 190}