<commit_before>### define
backbone.marionette : marionette
###

class TracingView extends Backbone.Marionette.LayoutView

  id : "render"
  template : _.template("""
    <div id="modal" class="modal fade"></div>
    <div id="inputcatchers">
      <div id="planexy" class="inputcatcher"></div>
      <div id="planeyz" class="inputcatcher"></div>
      <div id="planexz" class="inputcatcher"></div>
      <div id="TDView" class="inputcatcher">
        <div id="TDViewControls" class="btn-group">
          <button type="button" class="btn btn-default btn-sm">3D</button>
          <button type="button" class="btn btn-default btn-sm">
            <span></span>XY
          </button>
          <button type="button" class="btn btn-default btn-sm">
            <span></span>YZ
          </button>
          <button type="button" class="btn btn-default btn-sm">
            <span></span>XZ
          </button>
        </div>
      </div>
    </div>
  """)

  events :
    "contextmenu #inputcatchers" : "disableContextMenu"


  initialize : ->

    @listenTo(@model.flycam, "zoomStepChanged", ->
      @$el.toggleClass("zoomstep-warning",
        @model.volumeTracing? and not @model.canDisplaySegmentationData())
    )


  disableContextMenu : ->

    # hide contextmenu, while rightclicking a canvas
    event.preventDefault()
    return
<commit_msg>#513 Fix native right-click menu showing up in FF<commit_after>### define
backbone.marionette : marionette
###

class TracingView extends Backbone.Marionette.LayoutView

  id : "render"
  template : _.template("""
    <div id="modal" class="modal fade"></div>
    <div id="inputcatchers">
      <div id="planexy" class="inputcatcher"></div>
      <div id="planeyz" class="inputcatcher"></div>
      <div id="planexz" class="inputcatcher"></div>
      <div id="TDView" class="inputcatcher">
        <div id="TDViewControls" class="btn-group">
          <button type="button" class="btn btn-default btn-sm">3D</button>
          <button type="button" class="btn btn-default btn-sm">
            <span></span>XY
          </button>
          <button type="button" class="btn btn-default btn-sm">
            <span></span>YZ
          </button>
          <button type="button" class="btn btn-default btn-sm">
            <span></span>XZ
          </button>
        </div>
      </div>
    </div>
  """)

  events :
    "contextmenu #inputcatchers" : "disableContextMenu"


  initialize : ->

    @listenTo(@model.flycam, "zoomStepChanged", ->
      @$el.toggleClass("zoomstep-warning",
        @model.volumeTracing? and not @model.canDisplaySegmentationData())
    )


  disableContextMenu : (event) ->

    # hide contextmenu, while rightclicking a canvas
    event.preventDefault()
    return

{'fraction_non_alphanumeric': 0.1570489408327246, 'fraction_numerical': 0.0018261504747991235, 'mean_word_length': 2.788381742738589, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 65, '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': '4550937', 'n_tokens_mistral': 854, 'n_tokens_neox': 834, 'n_words': 175}