<commit_before>_ = require 'underscore-plus'
{Point, Range, Emitter, CompositeDisposable} = require 'atom'
Delegator = require 'delegato'
Table = require './table'
DisplayTable = require './display-table'
Cursor = require './cursor'
Selection = require './selection'

module.exports =
class TableEditor
  Delegator.includeInto(this)

  @delegatesMethods 'screenPosition', 'modelPosition', 'getValueAtPosition', 'getValueAtScreenPosition', 'getScreenRowCount', 'getScreenColumnCount', toProperty: 'displayTable'

  constructor: (options={}) ->
    {@table} = options
    @table = new Table unless @table?
    @displayTable = new DisplayTable({@table})
    @emitter = new Emitter
    @subscriptions = new CompositeDisposable
    @cursors = []
    @selections = []
<commit_msg>Add more delegation on TableEditor<commit_after>_ = require 'underscore-plus'
{Point, Range, Emitter, CompositeDisposable} = require 'atom'
Delegator = require 'delegato'
Table = require './table'
DisplayTable = require './display-table'
Cursor = require './cursor'
Selection = require './selection'

module.exports =
class TableEditor
  Delegator.includeInto(this)

  @delegatesMethods(
    'screenPosition', 'modelPosition',
    'screenRowToModelRow', 'modelRowToScreenRow',
    'getValueAtPosition', 'setValueAtPosition',
    'getValueAtScreenPosition', 'setValueAtScreenPosition',
    'getRow', 'addRow', 'addRowAt', 'removeRow', 'removeRowAt', 'getRowHeightAt', 'getRowHeight', 'setRowHeight', 'setRowHeightAt', 'getLastRowIndex', 'getRowIndexAtPixelPosition',
    'getScreenRow','getScreenRowCount', 'getScreenRows', 'getScreenRowHeightAt', 'getScreenRowOffsetAt', 'setScreenRowHeightAt', 'getScreenRowIndexAtPixelPosition',
    'onDidAddRow',
    'getScreenColumn', 'getScreenColumns', 'getScreenColumnCount', 'getLastColumnIndex',
    'getScreenColumnWidth', 'getScreenColumnWidthAt', 'getScreenColumnOffsetAt'
    'addColumn', 'addColumnAt', 'removeColumn', 'removeColumnAt',
    'sortBy',
    toProperty: 'displayTable'
  )

  constructor: (options={}) ->
    {@table} = options
    @table = new Table unless @table?
    @displayTable = new DisplayTable({@table})
    @emitter = new Emitter
    @subscriptions = new CompositeDisposable
    @cursors = []
    @selections = []

{'fraction_non_alphanumeric': 0.13368747233289066, 'fraction_numerical': 0.0, 'mean_word_length': 5.686390532544379, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '625977', 'n_tokens_mistral': 669, 'n_tokens_neox': 657, 'n_words': 150}