<commit_before>RspecTreeRunnerView = require './rspec-tree-runner-view'
{CompositeDisposable} = require 'atom'

module.exports =
  config:
    specSearchPaths:
      type: 'array'
      default: ['spec', 'fast_spec']
      items:
        type: 'string'
    specDefaultPath:
      type: 'string'
      default: 'spec'
    rspecAnalyzerScript:
      type: 'string'
      default: undefined
    rubyPathCommand:
      type: 'string'
      default: 'ruby'
    rspecPathCommand:
      type: 'string'
      default: 'rspec --format j'
    changeToSpecFileOnClick:
      type: 'boolean'
      default: true
    showRSpecWarningMessages:
      type: 'boolean'
      default: true
    sizeOfRSpecMessageStrings:
      type: 'integer'
      default: 500

  rspecTreeRunnerView: null
  mainView: null
  subscriptions: null

  activate: (state) ->
    @mainView = @getView()

    @subscriptions = new CompositeDisposable
    @subscriptions.add atom.commands.add 'atom-text-editor', 'buffer:saved': =>
      editor = atom.workspace.getActiveTextEditor()
      @mainView.handleEditorEvents(editor)

    @subscriptions.add atom.commands.add 'atom-workspace', 'rspec-tree-runner:toggle': => @mainView.toggle()

    @subscriptions.add atom.commands.add 'atom-workspace', 'rspec-tree-runner:toggle-spec-file': => @mainView.toggleSpecFile()<commit_msg>JSON formatter removed from the configuration variable<commit_after>RspecTreeRunnerView = require './rspec-tree-runner-view'
{CompositeDisposable} = require 'atom'

module.exports =
  config:
    specSearchPaths:
      type: 'array'
      default: ['spec', 'fast_spec']
      items:
        type: 'string'
    specDefaultPath:
      type: 'string'
      default: 'spec'
    rspecAnalyzerScript:
      type: 'string'
      default: undefined
    rubyPathCommand:
      type: 'string'
      default: 'ruby'
    rspecPathCommand:
      type: 'string'
      default: 'rspec'
    changeToSpecFileOnClick:
      type: 'boolean'
      default: true
    showRSpecWarningMessages:
      type: 'boolean'
      default: true
    sizeOfRSpecMessageStrings:
      type: 'integer'
      default: 500

  rspecTreeRunnerView: null
  mainView: null
  subscriptions: null

  activate: (state) ->
    @mainView = @getView()

    @subscriptions = new CompositeDisposable
    @subscriptions.add atom.commands.add 'atom-text-editor', 'buffer:saved': =>
      editor = atom.workspace.getActiveTextEditor()
      @mainView.handleEditorEvents(editor)

    @subscriptions.add atom.commands.add 'atom-workspace', 'rspec-tree-runner:toggle': => @mainView.toggle()

    @subscriptions.add atom.commands.add 'atom-workspace', 'rspec-tree-runner:toggle-spec-file': => @mainView.toggleSpecFile()
{'fraction_non_alphanumeric': 0.1172106824925816, 'fraction_numerical': 0.002225519287833828, 'mean_word_length': 3.247244094488189, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '788760', 'n_tokens_mistral': 843, 'n_tokens_neox': 818, 'n_words': 171}