<commit_before>url = require 'url'

AsciiDocPreviewView = require './asciidoc-preview-view'
AttributesProvider = require "./attributes-provider"
renderer = null # Defer until used

module.exports =

  editorSubscription: null
  providers: []
  autocomplete: null

  configDefaults:
    compatMode: true
    showTitle: true
    safeMode: 'secure'
    showTableOfContent: true
    showNumberedHeadings: true
    renderOnSaveOnly: false
    defaultAttributes: 'platform=opal platform-opal env=browser env-browser'
    grammars: [
      'source.asciidoc'
      'text.plain'
      'text.plain.null-grammar'
    ]

  activate: ->
    atom.commands.add 'atom-workspace',
      'asciidoc-preview:toggle': =>
        @toggle()
      'asciidoc-preview:copy-html': =>
        @copyHtml()
      'asciidoc-preview:toggle-render-on-save-only': =>
        @changeRenderMode()
      'pane-container:active-pane-item-changed': =>
        @changeRenderMode()
      'asciidoc-preview:toggle-show-title': ->
        atom.config.toggle('asciidoc-preview.showTitle')
      'asciidoc-preview:toggle-compat-mode': ->
        atom.config.toggle('asciidoc-preview.compatMode')
      'asciidoc-preview:toggle-show-toc': -><commit_msg>fix name of default toc config setting<commit_after>url = require 'url'

AsciiDocPreviewView = require './asciidoc-preview-view'
AttributesProvider = require "./attributes-provider"
renderer = null # Defer until used

module.exports =

  editorSubscription: null
  providers: []
  autocomplete: null

  configDefaults:
    compatMode: true
    showTitle: true
    safeMode: 'secure'
    showToc: true
    showNumberedHeadings: true
    renderOnSaveOnly: false
    defaultAttributes: 'platform=opal platform-opal env=browser env-browser'
    grammars: [
      'source.asciidoc'
      'text.plain'
      'text.plain.null-grammar'
    ]

  activate: ->
    atom.commands.add 'atom-workspace',
      'asciidoc-preview:toggle': =>
        @toggle()
      'asciidoc-preview:copy-html': =>
        @copyHtml()
      'asciidoc-preview:toggle-render-on-save-only': =>
        @changeRenderMode()
      'pane-container:active-pane-item-changed': =>
        @changeRenderMode()
      'asciidoc-preview:toggle-show-title': ->
        atom.config.toggle('asciidoc-preview.showTitle')
      'asciidoc-preview:toggle-compat-mode': ->
        atom.config.toggle('asciidoc-preview.compatMode')
      'asciidoc-preview:toggle-show-toc': ->
{'fraction_non_alphanumeric': 0.1301482701812191, 'fraction_numerical': 0.0, 'mean_word_length': 3.1663807890222984, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '7029338', 'n_tokens_mistral': 765, 'n_tokens_neox': 772, 'n_words': 122}