<commit_before>ConfigPanel = require 'config-panel'
{$$} = require 'space-pen'
$ = require 'jquery'
_ = require 'underscore'

module.exports =
class GeneralConfigPanel extends ConfigPanel
  @content: ->
    @form id: 'general-config-panel', class: 'form-horizontal', =>
      @fieldset =>
        @legend "General Settings"

        @div class: 'control-group', =>
          @div class: 'checkbox', =>
            @label for: 'editor.hideGitIgnoredFiles', =>
              @input id: 'editor.hideGitIgnoredFiles', type: 'checkbox'
              @text 'Hide Git-Ignored Files'

          @div class: 'checkbox', =>
            @label for: 'core.autosave', =>
              @input id: 'core.autosave', type: 'checkbox'
              @text 'Auto-Save on Focus Change'<commit_msg>Add "open .atom" button to general config view<commit_after>ConfigPanel = require 'config-panel'
{$$} = require 'space-pen'
$ = require 'jquery'
_ = require 'underscore'

module.exports =
class GeneralConfigPanel extends ConfigPanel
  @content: ->
    @form id: 'general-config-panel', class: 'form-horizontal', =>
      @fieldset =>
        @legend "General Settings"

        @div class: 'control-group', =>
          @div class: 'checkbox', =>
            @label for: 'editor.hideGitIgnoredFiles', =>
              @input id: 'editor.hideGitIgnoredFiles', type: 'checkbox'
              @text 'Hide Git-Ignored Files'

          @div class: 'checkbox', =>
            @label for: 'core.autosave', =>
              @input id: 'core.autosave', type: 'checkbox'
              @text 'Auto-Save on Focus Change'

        @button outlet: 'openDotAtomButton', type: 'button', class: 'btn btn-default', "Open '#{config.configDirPath}'"

  initialize: ->
    @openDotAtomButton.on 'click', -> atom.open(config.configDirPath)
{'fraction_non_alphanumeric': 0.14659977703455965, 'fraction_numerical': 0.0, 'mean_word_length': 2.708677685950413, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 21, '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': '3611576', 'n_tokens_mistral': 536, 'n_tokens_neox': 520, 'n_words': 136}