<commit_before>fsUtils = require 'fs-utils'
_ = require 'underscore'
EventEmitter = require 'event-emitter'
CSON = require 'season'
fs = require 'fs'
path = require 'path'
async = require 'async'
pathWatcher = require 'pathwatcher'

configDirPath = fsUtils.absolute("~/.atom")
nodeModulesDirPath = path.join(resourcePath, "node_modules")
bundledThemesDirPath = path.join(resourcePath, "themes")
bundledKeymapsDirPath = path.join(resourcePath, "keymaps")
userThemesDirPath = path.join(configDirPath, "themes")
userPackagesDirPath = path.join(configDirPath, "packages")
userPackageDirPaths = [userPackagesDirPath]
userPackageDirPaths.unshift(path.join(configDirPath, "dev", "packages")) if atom.getLoadSettings().devMode
userStoragePath = path.join(configDirPath, "storage")

# Public: Used to access all of Atom's configuration details.
#
# A global instance of this class is available to all plugins which can be
# referenced using `global.config`
#
# ### Best practices ###
#
# * Create your own root keypath using your package's name.
# * Don't depend on (or write to) configuration keys outside of your keypath.
#
# ### Example ###
#
# ```coffeescript
# global.config.set('myplugin.key', 'value')
# global.observe 'myplugin.key', ->
#   console.log 'My configuration changed:', global.config.get('myplugin.key')
# ```
module.exports =
class Config
  _.extend @prototype, EventEmitter

  configDirPath: configDirPath
  themeDirPaths: [userThemesDirPath, bundledThemesDirPath]
  bundledPackageDirPaths: [nodeModulesDirPath]
  bundledKeymapsDirPath: bundledKeymapsDirPath
  nodeModulesDirPath: nodeModulesDirPath
  packageDirPaths: _.clone(userPackageDirPaths)
  userPackageDirPaths: userPackageDirPaths
  userStoragePath: userStoragePath
  lessSearchPaths: [path.join(resourcePath, 'static', 'variables'), path.join(resourcePath, 'static'), path.join(resourcePath, 'vendor')]
  defaultSettings: null
  settings: null
  configFileHasErrors: null

  # Private: Created during initialization, available as `global.config`
  constructor: ->
    @defaultSettings =
      core: _.clone(require('root-view').configDefaults)
      editor: _.clone(require('editor').configDefaults)<commit_msg>Remove themes paths from config<commit_after>fsUtils = require 'fs-utils'
_ = require 'underscore'
EventEmitter = require 'event-emitter'
CSON = require 'season'
fs = require 'fs'
path = require 'path'
async = require 'async'
pathWatcher = require 'pathwatcher'

configDirPath = fsUtils.absolute("~/.atom")
nodeModulesDirPath = path.join(resourcePath, "node_modules")
bundledKeymapsDirPath = path.join(resourcePath, "keymaps")
userPackagesDirPath = path.join(configDirPath, "packages")
userPackageDirPaths = [userPackagesDirPath]
userPackageDirPaths.unshift(path.join(configDirPath, "dev", "packages")) if atom.getLoadSettings().devMode
userStoragePath = path.join(configDirPath, "storage")

# Public: Used to access all of Atom's configuration details.
#
# A global instance of this class is available to all plugins which can be
# referenced using `global.config`
#
# ### Best practices ###
#
# * Create your own root keypath using your package's name.
# * Don't depend on (or write to) configuration keys outside of your keypath.
#
# ### Example ###
#
# ```coffeescript
# global.config.set('myplugin.key', 'value')
# global.observe 'myplugin.key', ->
#   console.log 'My configuration changed:', global.config.get('myplugin.key')
# ```
module.exports =
class Config
  _.extend @prototype, EventEmitter

  configDirPath: configDirPath
  bundledPackageDirPaths: [nodeModulesDirPath]
  bundledKeymapsDirPath: bundledKeymapsDirPath
  nodeModulesDirPath: nodeModulesDirPath
  packageDirPaths: _.clone(userPackageDirPaths)
  userPackageDirPaths: userPackageDirPaths
  userStoragePath: userStoragePath
  lessSearchPaths: [path.join(resourcePath, 'static', 'variables'), path.join(resourcePath, 'static'), path.join(resourcePath, 'vendor')]
  defaultSettings: null
  settings: null
  configFileHasErrors: null

  # Private: Created during initialization, available as `global.config`
  constructor: ->
    @defaultSettings =
      core: _.clone(require('root-view').configDefaults)
      editor: _.clone(require('editor').configDefaults)
{'fraction_non_alphanumeric': 0.11761916054066872, 'fraction_numerical': 0.0, 'mean_word_length': 6.173469387755102, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '462755', 'n_tokens_mistral': 1259, 'n_tokens_neox': 1252, 'n_words': 314}