<commit_before>'use babel'

/* @flow */

import {Disposable} from 'atom'
import {Main} from './main'
import type {ProviderHighlight} from './provider-highlight'
import type {ProviderList} from './provider-list'
import type {Provider} from './types'

module.exports = {
  config: {

  },
  activate() {
    this.instance = new Main()
  },
  deactivate() {
    this.instance.dispose()
  },
  provideIntentionsHighlight(): ProviderHighlight {
    return this.instance.provideHighlight()
  },
  provideIntentionsList(): ProviderList {
    return this.instance.provideList()
  },
  consumeProvider(provider: Provider): Disposable {
    const providers = [].concat(provider)
    providers.forEach(provider => {
      this.instance.addProvider(provider)
    })
    return new Disposable(() => {
      providers.forEach(provider => {
        this.instance.deleteProvider(provider)
      })
    })
  }
}<commit_msg>:fire: Cleanup index<commit_after>'use babel'

/* @flow */

import {Disposable} from 'atom'
import {Main} from './main'
import type {ProviderHighlight} from './provider-highlight'
import type {ProviderList} from './provider-list'
import type {Provider} from './types'

module.exports = {
  activate() {
    this.instance = new Main()
  },
  deactivate() {
    this.instance.dispose()
  },
  provideIntentionsHighlight(): ProviderHighlight {
    return this.instance.provideHighlight()
  },
  provideIntentionsList(): ProviderList {
    return this.instance.provideList()
  },
  consumeProvider(provider: Provider): Disposable {
    const providers = [].concat(provider)
    providers.forEach(provider => {
      this.instance.addProvider(provider)
    })
    return new Disposable(() => {
      providers.forEach(provider => {
        this.instance.deleteProvider(provider)
      })
    })
  }
}
{'fraction_non_alphanumeric': 0.14103275957801223, 'fraction_numerical': 0.0, 'mean_word_length': 3.5852417302798982, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '2071142', 'n_tokens_mistral': 536, 'n_tokens_neox': 513, 'n_words': 111}