<commit_before>zlib                  = require 'compress-buffer'
traverse              = require 'traverse'
log                   = console.log
fs                    = require 'fs'

Configuration = (options={}) ->

  cloudamqp           = "brown-jaguar.rmq.cloudamqp.com"

  publicPort          = options.publicPort     = "80"
  hostname            = options.hostname       ="load.koding.com#{if options.publicPort is "80" then "" else ":"+publicPort}"
  publicHostname      = options.publicHostname = "https://#{options.hostname}"
  region              = "aws"
  configName          = "load"
  environment         = "production"
  projectRoot         = options.projectRoot    or "/opt/koding"
  version             = options.tag
  tag                 = options.tag
  publicIP            = options.publicIP       or "*"
  githubuser          = options.githubuser     or "koding"

  mongo               = "dev:<EMAIL>:14129/koding"
  etcd                = "10.0.1.5:4001,10.0.0.217:4001,10.0.0.216:4001"

  redis               = { host:     "prod-load.cfbuweg6pdxe.us-east-1.rds.amazonaws.com",  port:           "6379"                                , db:              0                    }
  rabbitmq            = { host:     "#{cloudamqp}"                                   , port:               5672                                  , apiPort:         15672                  , login:           "cadvyqxd"                           , password: "<PASSWORD>"  , vhost: "<PASSWORD>" }
  mq                  = { host:     "#{rabbitmq.host}"                               , port:               rabbitmq.port                         , apiAddress:      "#{rabbitmq.host}"     , apiPort:         "#{rabbitmq.apiPort}"                , login:    "#{rabbitmq.login}"    , componentUser: "#{rabbitmq.login}"                                   , password:       "#{rabbitmq.password}"                                , heartbeat:       0           , vhost:        "#{rabbitmq.vhost}" }
  customDomain        = { public:   "https://#{hostname}"                            , public_:            "#{hostname}"                         , local:           "http://localhost"     , local_:          "localhost"                          , port:     80                   }
  sendgrid            = { username: "koding"                                         , password:           "<PASSWORD>"                          }
  email               = { host:     "#{customDomain.public_}"                        , protocol:           'https:'                              , defaultFromMail: '<EMAIL>'     , defaultFromName: 'koding'                             , username: sendgrid.username      , password:      <PASSWORD> }
  kontrol             = { url:      "#{options.publicHostname}/kontrol/kite"         , port:               4000                                  , useTLS:          no                     , certFile:        ""                                   , keyFile:  ""                     , publicKeyFile: "#{projectRoot}/certs/test_kontrol_rsa_public.pem"    , privateKeyFile: "#{projectRoot}/certs/test_kontrol_rsa_private.pem" }
  broker              = { name:     "broker"                                         , serviceGenericName: "broker"                              , ip:              ""                     , webProtocol:     "https:"                             , host:     customDomain.public    , port:          8008                                                  , certFile:       ""                                                    , keyFile:         ""          , authExchange: "auth"                , authAllExchange: "authAll" , failoverUri: customDomain.public }
  regions             = { kodingme: "#{configName}"                                  , vagrant:            "vagrant"                             , sj:              "sj"                   , aws:             "aws"                                , premium:  "vagrant"            }
  algolia             = { appId:    'DYVV81J2S1'                                     , apiKey:             '<KEY>'    , indexSuffix:     '.load'              }
  algoliaSecret       = { appId:    algolia.appId                                    , apiKey:             algolia.apiKey                        , indexSuffix:     algolia.indexSuffix    , apiSecretKey:    '<KEY>' }
  mixpanel            = { token:    "3d7775525241b3350e6d89bd40031862"               , enabled:            yes                                 }
  postgres            = { host:     "prod-test.cfbuweg6pdxe.us-east-1.rds.amazonaws.com" , port:           5432                                  , username:        "socialapplication"    , password:        "<PASSWORD>"                  , dbname:   "social"             }
  kiteHome            = "#{projectRoot}/kite_home/koding"
<commit_msg>Config: fix config with the correct variables<commit_after>zlib                  = require 'compress-buffer'
traverse              = require 'traverse'
log                   = console.log
fs                    = require 'fs'

Configuration = (options={}) ->

  cloudamqp           = "brown-jaguar.rmq.cloudamqp.com"

  publicPort          = options.publicPort     = "80"
  hostname            = options.hostname       ="load.koding.com#{if options.publicPort is "80" then "" else ":"+publicPort}"
  publicHostname      = options.publicHostname = "https://#{options.hostname}"
  region              = "aws"
  configName          = "load"
  environment         = "production"
  projectRoot         = options.projectRoot    or "/opt/koding"
  version             = options.tag
  tag                 = options.tag
  publicIP            = options.publicIP       or "*"
  githubuser          = options.githubuser     or "koding"

  mongo               = "dev:<EMAIL>:14129/koding"
  etcd                = "10.0.1.5:4001,10.0.0.217:4001,10.0.0.216:4001"

  redis               = { host:     "prod-test.1ia3pb.0001.use1.cache.amazonaws.com" , port:               "6379"                                , db:              0                    }
  rabbitmq            = { host:     "#{cloudamqp}"                                   , port:               5672                                  , apiPort:         15672                  , login:           "cadvyqxd"                           , password: "<PASSWORD>"  , vhost: "cadv<PASSWORD>" }
  mq                  = { host:     "#{rabbitmq.host}"                               , port:               rabbitmq.port                         , apiAddress:      "#{rabbitmq.host}"     , apiPort:         "#{rabbitmq.apiPort}"                , login:    "#{rabbitmq.login}"    , componentUser: "#{rabbitmq.login}"                                   , password:       "#{<PASSWORD>}"                                , heartbeat:       0           , vhost:        "#{rabbitmq.vhost}" }
  customDomain        = { public:   "https://#{hostname}"                            , public_:            "#{hostname}"                         , local:           "http://localhost"     , local_:          "localhost"                          , port:     80                   }
  sendgrid            = { username: "koding"                                         , password:           "<PASSWORD>"                          }
  email               = { host:     "#{customDomain.public_}"                        , protocol:           'https:'                              , defaultFromMail: '<EMAIL>'     , defaultFromName: 'koding'                             , username: sendgrid.username      , password:      send<PASSWORD> }
  kontrol             = { url:      "#{options.publicHostname}/kontrol/kite"         , port:               4000                                  , useTLS:          no                     , certFile:        ""                                   , keyFile:  ""                     , publicKeyFile: "#{projectRoot}/certs/test_kontrol_rsa_public.pem"    , privateKeyFile: "#{projectRoot}/certs/test_kontrol_rsa_private.pem" }
  broker              = { name:     "broker"                                         , serviceGenericName: "broker"                              , ip:              ""                     , webProtocol:     "https:"                             , host:     customDomain.public    , port:          8008                                                  , certFile:       ""                                                    , keyFile:         ""          , authExchange: "auth"                , authAllExchange: "authAll" , failoverUri: customDomain.public }
  regions             = { kodingme: "#{configName}"                                  , vagrant:            "vagrant"                             , sj:              "sj"                   , aws:             "aws"                                , premium:  "vagrant"            }
  algolia             = { appId:    'DYVV81J2S1'                                     , apiKey:             '<KEY>'    , indexSuffix:     '.load'              }
  algoliaSecret       = { appId:    algolia.appId                                    , apiKey:             algolia.apiKey                        , indexSuffix:     algolia.indexSuffix    , apiSecretKey:    '<KEY>' }
  mixpanel            = { token:    "3d7775525241b335<PASSWORD>89bd40031<PASSWORD>"               , enabled:            yes                                 }
  postgres            = { host:     "prod-load.cfbuweg6pdxe.us-east-1.rds.amazonaws.com" , port:           5432                                  , username:        "socialapplication"    , password:        "<PASSWORD>"                  , dbname:   "social"             }
  kiteHome            = "#{projectRoot}/kite_home/koding"

{'fraction_non_alphanumeric': 0.10365853658536585, 'fraction_numerical': 0.02128978916907813, 'mean_word_length': 0.9120727129025884, 'pattern_counts': {'":': 2, '<': 24, '<?xml version=': 0, '>': 26, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 72, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '776182', 'n_tokens_mistral': 2528, 'n_tokens_neox': 2360, 'n_words': 408}