<commit_before>path = require 'path'

requirements = [
  'tool-bar'
  'indent-detective'
  'latex-completions'
  'language-julia'
  'ink'
  'julia-client'
]

module.exports =
  setup: (cb) ->
    atom.packages.activatePackage('settings-view').then (p) =>
      return @settingsError() unless p?
      PackageManager = require path.join p.path, 'lib', 'package-manager'
      @packageManager = new PackageManager

      return cb() if @allInstalled requirements
      @setupInfo()
      @installAll requirements.slice(), cb

  allInstalled: (pkgs) ->
    for pkg in pkgs
      return false unless @packageManager.isPackageInstalled pkg
    return true

  install: (name, cb) -><commit_msg>add hyperclick to initial requirements<commit_after>path = require 'path'

requirements = [
  'tool-bar'
  'indent-detective'
  'latex-completions'
  'hyperclick'
  'language-julia'
  'ink'
  'julia-client'
]

module.exports =
  setup: (cb) ->
    atom.packages.activatePackage('settings-view').then (p) =>
      return @settingsError() unless p?
      PackageManager = require path.join p.path, 'lib', 'package-manager'
      @packageManager = new PackageManager

      return cb() if @allInstalled requirements
      @setupInfo()
      @installAll requirements.slice(), cb

  allInstalled: (pkgs) ->
    for pkg in pkgs
      return false unless @packageManager.isPackageInstalled pkg
    return true

  install: (name, cb) ->
{'fraction_non_alphanumeric': 0.12146892655367232, 'fraction_numerical': 0.0, 'mean_word_length': 3.373456790123457, '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': '724726', 'n_tokens_mistral': 454, 'n_tokens_neox': 439, 'n_words': 111}