<commit_before>path = require 'path'
glob = require 'glob'
{BufferedProcess} = require 'atom'

INSTALLATION_LINE_PATTERN = /^Installing +([^@]+)@(\S+).+\s+(\S+)$/

module.exports =
  activate: (state) ->
    atom.workspaceView.command 'auto-update-packages:update-now', =>
      @updatePackages(false)

  deactivate: -><commit_msg>Unsubscribe from command on deactivate to avoid double subscription<commit_after>path = require 'path'
glob = require 'glob'
{BufferedProcess} = require 'atom'

INSTALLATION_LINE_PATTERN = /^Installing +([^@]+)@(\S+).+\s+(\S+)$/

module.exports =
  activate: (state) ->
    atom.workspaceView.command 'auto-update-packages:update-now', =>
      @updatePackages(false)

  deactivate: ->
    atom.workspaceView.off 'auto-update-packages:update-now'
{'fraction_non_alphanumeric': 0.17503217503217502, 'fraction_numerical': 0.0, 'mean_word_length': 4.8059701492537314, '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': '1186709', 'n_tokens_mistral': 267, 'n_tokens_neox': 261, 'n_words': 48}