<commit_before># coffeelint: disable=cyclomatic_complexity
KodingError    = require '../../error'

PROVIDERS      =
  aws          : require './aws'
  koding       : require './koding'
  rackspace    : require './rackspace'
  digitalocean : require './digitalocean'
  azure        : require './azure'
  google       : require './google'
  managed      : require './managed'

PLANS          = require './plans'

# When adding up the storage usage totals, the DEFAULT_STORAGE_USAGE is
# the default value to add, if no storage is defined.
DEFAULT_STORAGE_USAGE = 3

reviveProvisioners = (client, provisioners, callback, revive = no) ->

  if not revive or not provisioners or provisioners.length is 0
    return callback null, provisioners

  JProvisioner = require './provisioner'

  # TODO add multiple provisioner support
  provisioner = provisioners[0]

  JProvisioner.one$ client, { slug: provisioner }, (err, provision) ->

    if err or not provision?
      console.warn "Requested provisioner: #{provisioner} not found !"
      console.warn "or not accessible for #{client.r.user.username} !!"
      callback null, []
    else<commit_msg>ComputeUtils: add Softlayer to supported providers<commit_after># coffeelint: disable=cyclomatic_complexity
KodingError    = require '../../error'

PROVIDERS      =
  aws          : require './aws'
  koding       : require './koding'
  softlayer    : require './softlayer' # remove this line to disable softlayer ~ GG
  rackspace    : require './rackspace'
  digitalocean : require './digitalocean'
  azure        : require './azure'
  google       : require './google'
  managed      : require './managed'

PLANS          = require './plans'

# When adding up the storage usage totals, the DEFAULT_STORAGE_USAGE is
# the default value to add, if no storage is defined.
DEFAULT_STORAGE_USAGE = 3

reviveProvisioners = (client, provisioners, callback, revive = no) ->

  if not revive or not provisioners or provisioners.length is 0
    return callback null, provisioners

  JProvisioner = require './provisioner'

  # TODO add multiple provisioner support
  provisioner = provisioners[0]

  JProvisioner.one$ client, { slug: provisioner }, (err, provision) ->

    if err or not provision?
      console.warn "Requested provisioner: #{provisioner} not found !"
      console.warn "or not accessible for #{client.r.user.username} !!"
      callback null, []
    else
{'fraction_non_alphanumeric': 0.1004566210045662, 'fraction_numerical': 0.0024906600249066002, 'mean_word_length': 3.070945945945946, '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': '4741477', 'n_tokens_mistral': 709, 'n_tokens_neox': 678, 'n_words': 232}