<commit_before>_ = require "underscore"
ActionTool = require "./action_tool"


class HelpToolView extends ActionTool.View
  do: () ->
  	window.open(@mget('redirect'))


class HelpTool extends ActionTool.Model
  default_view: HelpToolView
  type: "HelpTool"
  tool_name: "Help"
  icon: "data:image/png;base64,<KEY>

  initialize: (attrs, options) ->
    super(attrs, options)
    @register_property('tooltip', () ->@get('help_tooltip'))

  defaults: ->
    return _.extend {}, super(), {
      help_tooltip: 'Click the question mark to learn more about Bokeh plot tools.'
      redirect: 'http://bokeh.pydata.org/en/latest/docs/user_guide/objects.html#tools'
    }

module.exports =
  Model: HelpTool,
  View: HelpToolView,
<commit_msg>Fix broken link in help tool.<commit_after>_ = require "underscore"
ActionTool = require "./action_tool"


class HelpToolView extends ActionTool.View
  do: () ->
  	window.open(@mget('redirect'))


class HelpTool extends ActionTool.Model
  default_view: HelpToolView
  type: "HelpTool"
  tool_name: "Help"
  icon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAA<KEY>

  initialize: (attrs, options) ->
    super(attrs, options)
    @register_property('tooltip', () ->@get('help_tooltip'))

  defaults: ->
    return _.extend {}, super(), {
      help_tooltip: 'Click the question mark to learn more about Bokeh plot tools.'
      redirect: 'http://bokeh.pydata.org/en/latest/docs/user_guide/tools.html'
    }

module.exports =
  Model: HelpTool,
  View: HelpToolView,
{'fraction_non_alphanumeric': 0.1343381389252949, 'fraction_numerical': 0.0045871559633027525, 'mean_word_length': 4.176271186440678, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '6606487', 'n_tokens_mistral': 518, 'n_tokens_neox': 498, 'n_words': 113}