<commit_before>import { Emitter, CompositeDisposable } from 'atom'
import type { TextEditor, Disposable, Notification } from 'atom'

import * as Helpers from './helpers'
import * as Validate from './validate'
import { $version, $activated, $requestLatest, $requestLastReceived } from './helpers'
import type { Linter } from './types'

class LinterRegistry {
  emitter: Emitter = new Emitter()
  linters: Set<Linter> = new Set()
  lintOnChange: boolean = true
  ignoreVCS: boolean = true
  ignoreGlob: string = '**/*.min.{js,css}'
  lintPreviewTabs: boolean = true
  subscriptions: CompositeDisposable = new CompositeDisposable()
  disabledProviders: Array<string> = []
  activeNotifications: Set<Notification> = new Set()

  constructor() {
    this.subscriptions.add(
      atom.config.observe('linter.lintOnChange', lintOnChange => {
        this.lintOnChange = lintOnChange
      }),
    )
    this.subscriptions.add(
      atom.config.observe('core.excludeVcsIgnoredPaths', ignoreVCS => {
        this.ignoreVCS = ignoreVCS
      }),
    )
    this.subscriptions.add(
      atom.config.observe('linter.ignoreGlob', ignoreGlob => {
        this.ignoreGlob = ignoreGlob
      }),
    )
    this.subscriptions.add(
      atom.config.observe('linter.lintPreviewTabs', lintPreviewTabs => {
        this.lintPreviewTabs = lintPreviewTabs
      }),
    )
    this.subscriptions.add(
      atom.config.observe('linter.disabledProviders', disabledProviders => {
        this.disabledProviders = disabledProviders
      }),
    )
    this.subscriptions.add(this.emitter)<commit_msg>fix: LinterRegistry merge adding subs<commit_after>import { Emitter, CompositeDisposable } from 'atom'
import type { TextEditor, Disposable, Notification } from 'atom'

import * as Helpers from './helpers'
import * as Validate from './validate'
import { $version, $activated, $requestLatest, $requestLastReceived } from './helpers'
import type { Linter } from './types'

class LinterRegistry {
  emitter: Emitter = new Emitter()
  linters: Set<Linter> = new Set()
  lintOnChange: boolean = true
  ignoreVCS: boolean = true
  ignoreGlob: string = '**/*.min.{js,css}'
  lintPreviewTabs: boolean = true
  subscriptions: CompositeDisposable = new CompositeDisposable()
  disabledProviders: Array<string> = []
  activeNotifications: Set<Notification> = new Set()

  constructor() {
    this.subscriptions.add(
      this.emitter,
      atom.config.observe('linter.lintOnChange', lintOnChange => {
        this.lintOnChange = lintOnChange
      }),
      atom.config.observe('core.excludeVcsIgnoredPaths', ignoreVCS => {
        this.ignoreVCS = ignoreVCS
      }),
      atom.config.observe('linter.ignoreGlob', ignoreGlob => {
        this.ignoreGlob = ignoreGlob
      }),
      atom.config.observe('linter.lintPreviewTabs', lintPreviewTabs => {
        this.lintPreviewTabs = lintPreviewTabs
      }),
      atom.config.observe('linter.disabledProviders', disabledProviders => {
        this.disabledProviders = disabledProviders
      }),
    )
{'fraction_non_alphanumeric': 0.121232196091421, 'fraction_numerical': 0.0, 'mean_word_length': 3.5966514459665144, 'pattern_counts': {'":': 0, '<': 9, '<?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': '5794272', 'n_tokens_mistral': 935, 'n_tokens_neox': 909, 'n_words': 185}