<commit_before>PlotWidget = require('../common/plot_widget').PlotWidget
HasParent = require("../base").HasParent


class DataSliderView extends PlotWidget
  attributes :
    class : "dataslider pull-left"
  initialize : (options) ->
    super(options)
    @render_init()

  delegateEvents : (events) ->
    super(events)
    "pass"

  render_init : () ->
    @plot_view.$(".plotarea").append(@$el)
    column = @mget_obj('data_source').getcolumn(@mget('field'))
    [min, max] = [_.min(column), _.max(column)]
    @$el.slider(
      orientation: "vertical",
      animate: "fast",
      step: 1,
      min: min
      max: max
      values: [min, max]
      slide: ( event, ui ) =>
        @set_selection_range(event, ui)<commit_msg>Squashed 'subtree/bokehjs/' changes from 0e197da..f68880f<commit_after>PlotWidget = require('../common/plot_widget').PlotWidget
HasParent = require("../base").HasParent


class DataSliderView extends PlotWidget
  attributes :
    class : "dataslider pull-left"
  initialize : (options) ->
    super(options)
    @render_init()

  delegateEvents : (events) ->
    super(events)
    "pass"

  render_init : () ->
    @plot_view.$(".plotarea").append(@$el)
    column = @mget_obj('data_source').getcolumn(@mget('field'))
    [min, max] = [_.min(column), _.max(column)]
    @$el.slider(
      orientation: "vertical",
      animate: "fast",
      step: (max - min) / 50.0 ,
      min: min
      max: max
      values: [min, max]
      slide: ( event, ui ) =>
        @set_selection_range(event, ui)
{'fraction_non_alphanumeric': 0.1657929226736566, 'fraction_numerical': 0.00851900393184797, 'mean_word_length': 3.050397877984085, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7466566', 'n_tokens_mistral': 522, 'n_tokens_neox': 498, 'n_words': 99}