<commit_before>BaseStackEditorView = require './basestackeditorview'


module.exports = class StackTemplateEditorView extends BaseStackEditorView


  constructor: (options = {}, data) ->

    unless options.content
      options.content = require '../defaulttemplate'

    super options, data

    @once 'EditorReady', =>

      return  unless options.showHelpContent

      position = row: 0, column: 0
      content  = """
        # Here is your stack preview
        # You can make advanced changes like modifying your VM,
        # installing packages, and running shell commands.


      """
      @aceView.ace.editor.session.insert position, content
<commit_msg>Teams: Stacks: Detect is stack content changed<commit_after>BaseStackEditorView = require './basestackeditorview'


module.exports = class StackTemplateEditorView extends BaseStackEditorView


  constructor: (options = {}, data) ->

    unless options.content
      options.content = require '../defaulttemplate'

    super options, data

    @once 'EditorReady', =>

      return  unless options.showHelpContent

      position = row: 0, column: 0
      content  = """
        # Here is your stack preview
        # You can make advanced changes like modifying your VM,
        # installing packages, and running shell commands.


      """
      @aceView.ace.editor.session.insert position, content


  isStackContentChanged: -> @getOption('content') isnt @getContent()

{'fraction_non_alphanumeric': 0.08958333333333333, 'fraction_numerical': 0.002777777777777778, 'mean_word_length': 3.0591549295774647, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '6272823', 'n_tokens_mistral': 379, 'n_tokens_neox': 348, 'n_words': 116}