<commit_before>{closest, indexOf, matches} = require './html-helpers'

module.exports =

  activate: ->
    @view = document.createElement 'div'
    document.body.appendChild @view
    @view.classList.add 'tabs-layout-overlay'

  deactivate: ->
    @view.parentElement?.removeChild @view

  test: {}

  drag: (e) ->
    @lastCoords = e
    pane = @getPaneAt e
    itemView = @getItemViewAt e
    if pane? and itemView?
      coords = if not (@isOnlyTabInPane(pane, e.target) or pane.getItems().length is 0)
        [e.clientX, e.clientY]
      @lastSplit = @updateView itemView, coords
    else
      @disableView()

  end: (e) -><commit_msg>add layout overlay to atom-workspace<commit_after>{closest, indexOf, matches} = require './html-helpers'

module.exports =

  activate: ->
    @view = document.createElement 'div'
    atom.views.getView(atom.workspace).appendChild @view
    @view.classList.add 'tabs-layout-overlay'

  deactivate: ->
    @view.parentElement?.removeChild @view

  test: {}

  drag: (e) ->
    @lastCoords = e
    pane = @getPaneAt e
    itemView = @getItemViewAt e
    if pane? and itemView?
      coords = if not (@isOnlyTabInPane(pane, e.target) or pane.getItems().length is 0)
        [e.clientX, e.clientY]
      @lastSplit = @updateView itemView, coords
    else
      @disableView()

  end: (e) ->
{'fraction_non_alphanumeric': 0.13328313253012047, 'fraction_numerical': 0.0015060240963855422, 'mean_word_length': 2.9790419161676644, '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': '4394061', 'n_tokens_mistral': 457, 'n_tokens_neox': 445, 'n_words': 106}