<commit_before>_ = require 'underscore-plus'
path = require 'path'
guid = require 'guid'
{Model, Point, Range} = require 'telepath'
LanguageMode = require './language-mode'
DisplayBuffer = require './display-buffer'
Cursor = require './cursor'
Selection = require './selection'
TextMateScopeSelector = require('first-mate').ScopeSelector

# Public: The core model of Atom.
#
# An {Editor} represents a unique view of each document, with its own
# {Cursor}s and scroll position.
#
# For instance if a user creates a split, Atom creates a second {Editor}
# but both {Editor}s interact with the same buffer underlying buffer. So
# if you type in either buffer it immediately appears in both but if you scroll
# in one it doesn't scroll the other.
#
# Almost all extension will interact primiarily with this class as it provides
# access to objects you'll most commonly interact with. To access it you'll
# want to register a callback on {WorkspaceView} which will be fired once for every
# existing {Editor} as well as any future {Editor}s.
#
# ## Example
# ```coffeescript
#   atom.workspaceView.eachEditorView (editorView) ->
#     editorView.insertText('Hello World')
# ```
#
# ## Collaboration builtin
#
# FIXME: Describe how there are both local and remote cursors and selections and
# why that is.
module.exports =
class Editor extends Model

  @properties
    displayBuffer: null
    softTabs: null
    scrollTop: 0
    scrollLeft: 0
<commit_msg>:memo: Mention packages instead of extension<commit_after>_ = require 'underscore-plus'
path = require 'path'
guid = require 'guid'
{Model, Point, Range} = require 'telepath'
LanguageMode = require './language-mode'
DisplayBuffer = require './display-buffer'
Cursor = require './cursor'
Selection = require './selection'
TextMateScopeSelector = require('first-mate').ScopeSelector

# Public: The core model of Atom.
#
# An {Editor} represents a unique view of each document, with its own
# {Cursor}s and scroll position.
#
# For instance if a user creates a split, Atom creates a second {Editor}
# but both {Editor}s interact with the same buffer underlying buffer. So
# if you type in either buffer it immediately appears in both but if you scroll
# in one it doesn't scroll the other.
#
# Almost all packages will interact primiarily with this class as it provides
# access to objects you'll most commonly interact with. To access it you'll
# want to register a callback on {WorkspaceView} which will be fired once for every
# existing {Editor} as well as any future {Editor}s.
#
# ## Example
# ```coffeescript
#   atom.workspaceView.eachEditorView (editorView) ->
#     editorView.insertText('Hello World')
# ```
#
# ## Collaboration builtin
#
# FIXME: Describe how there are both local and remote cursors and selections and
# why that is.
module.exports =
class Editor extends Model

  @properties
    displayBuffer: null
    softTabs: null
    scrollTop: 0
    scrollLeft: 0

{'fraction_non_alphanumeric': 0.089419795221843, 'fraction_numerical': 0.0013651877133105802, 'mean_word_length': 4.368131868131868, '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': '7084592', 'n_tokens_mistral': 809, 'n_tokens_neox': 796, 'n_words': 365}