<commit_before>fs              = require 'fs'
nodePath        = require 'path'
deepFreeze      = require 'koding-deep-freeze'

customDomain    =
  public        : "http://koding.me"
  local         : "http://127.0.0.1"
  local_        : "localhost"
  port          : 80

rabbitmq        =
  login         : "guest"
  password      : "<PASSWORD>"

version         = "0.0.1"
mongo           = "#{customDomain.local_}:27017/koding"
mongoKontrol    = "#{customDomain.local_}:27017/kontrol"
projectRoot     = nodePath.join __dirname, '..'
socialQueueName = "koding-social-kodingme"
logQueueName    = socialQueueName+'log'

authExchange    = "auth"
authAllExchange = "authAll"

embedlyApiKey   = '94991069fb354d4e8fdb825e52d4134a'

environment     = "kodingme"

regions         =
  kodingme      : "kodingme"
  vagrant       : "vagrant"
  sj            : "sj"
  aws           : "aws"
  premium       : "vagrant"

cookieMaxAge = 1000 * 60 * 60 * 24 * 14 # two weeks
cookieSecure = no

module.exports =
  environment   : environment
  regions       : regions
  version       : version
  aws           :
    key         : '<KEY>'
    secret      : '<KEY>'
  uri           :
    address     : "#{customDomain.public}:#{customDomain.port}"
  userSitesDomain: "#{customDomain.public}"
  containerSubnet: "10.128.2.0/9"
  vmPool        : "vms"
  projectRoot   : projectRoot
  webserver     :
    useCacheHeader: no
    login       : "#{rabbitmq.login}"
    port        : customDomain.port
    clusterSize : 1
    queueName   : socialQueueName+'web'
    watch       : yes
  socialApiUrl  : "#{customDomain.public}:7000"
  sourceServer  :
    enabled     : yes
    port        : 3526
  mongo         : mongo
  mongoKontrol  : mongoKontrol
  mongoReplSet  : null
  mongoMinWrites: 1
  neo4j         :
    read        : "#{customDomain.public}"
    write       : "#{customDomain.public}"
    port        : 7474
  runNeo4jFeeder: no
  runGoBroker   : yes
  runGoBrokerKite: no
  runPremiumBroker: no
  runPremiumBrokerKite: no
  runKontrol    : yes
  runRerouting  : yes
  runUserPresence: no
  runPersistence: no
  compileGo     : yes
  buildClient   : yes
  runOsKite     : no
  runTerminalKite: no
  runProxy      : yes
  redis         : "#{customDomain.local}:6379"
  subscriptionEndpoint   : "#{customDomain.public}:#{customDomain.port}/-/subscription/check/"
  misc          :
    claimGlobalNamesForUsers: no
    updateAllSlugs : no
    debugConnectionErrors: yes
  bitly :
    username  : "kodingen"
    apiKey    : "R_677549f555489f455f7ff77496446ffa"
  authWorker    :
    login       : "#{rabbitmq.login}"
    queueName   : socialQueueName+'auth'
    authExchange: authExchange
    authAllExchange: authAllExchange
    numberOfWorkers: 1
    watch       : yes
  emailConfirmationCheckerWorker :
    enabled              : no
    login                : "#{rabbitmq.login}"
    queueName            : socialQueueName+'emailConfirmationCheckerWorker'
    numberOfWorkers      : 1
    watch                : yes
    cronSchedule         : '0 * * * * *'
    usageLimitInMinutes  : 60
  elasticSearch          :
    host                 : "#{customDomain.local}"
    port                 : 9200
    enabled              : no
    queue                : "elasticSearchFeederQueue"
  guestCleanerWorker     :
    enabled              : yes
    login                : "#{rabbitmq.login}"
    queueName            : socialQueueName+'guestcleaner'
    numberOfWorkers      : 2
    watch                : yes
    cronSchedule         : '00 * * * * *'
    usageLimitInMinutes  : 60
  sitemapWorker          :
    enabled              : yes
    login                : "#{rabbitmq.login}"
    queueName            : socialQueueName+'sitemapworker'
    numberOfWorkers      : 2
    watch                : yes
    cronSchedule         : '00 00 00 * * *'
  topicModifier          :
    cronSchedule         : '0 */5 * * * *'
  social        :
    login       : "#{rabbitmq.login}"
    numberOfWorkers: 1
    watch       : yes
    queueName   : socialQueueName
    verbose     : no
    kitePort    : 8765
  log           :
    login       : "#{rabbitmq.login}"
    numberOfWorkers: 1
    watch       : yes
    queueName   : logQueueName
    verbose     : no
    run         : no
    runWorker   : no
  followFeed    :
    host        : "#{customDomain.local}"
    port        : 5672
    componentUser: "#{rabbitmq.login}"
    password    : "#{<PASSWORD>}"
    vhost       : 'followfeed'
  graphFeederWorker:
    numberOfWorkers: 2
  presence      :
    exchange    : 'services-presence'
  client        :
    version     : version
    watch       : yes
    watchDuration : 300
    includesPath: 'client'
    indexMaster : "index-master.html"
    index       : "default.html"
    useStaticFileServer: no
    staticFilesBaseUrl: "#{customDomain.public}:#{customDomain.port}"
    runtimeOptions:
      kites: require './kites.coffee'
      osKitePollingMs: 1000 * 60 # 1 min
      userIdleMs: 1000 * 60 * 5  # 5 min
      sessionCookie :
        maxAge      : cookieMaxAge
        secure      : cookieSecure
      environment        : environment
      activityFetchCount : 20
      authExchange       : authExchange
      github         :
        clientId     : "f8e440b796d953ea01e5"
      embedly        :
        apiKey       : embedlyApiKey
      userSitesDomain: "#{customDomain.public}"
      useNeo4j: yes
      logToExternal: no  # rollbar, mixpanel etc.
      logToInternal: no  # log worker
      resourceName: socialQueueName
      logResourceName: logQueueName
      socialApiUri: "#{customDomain.public}:3030/xhr"
      logApiUri: "#{customDomain.public}:4030/xhr"
      suppressLogs: no
      broker    :
        servicesEndpoint: "#{customDomain.public}:#{customDomain.port}/-/services/broker"
      premiumBroker:
        servicesEndpoint: "#{customDomain.public}:#{customDomain.port}/-/services/premiumBroker"
      brokerKite:
        servicesEndpoint: "#{customDomain.public}:#{customDomain.port}/-/services/brokerKite"
        brokerExchange: 'brokerKite'
      premiumBrokerKite:
        servicesEndpoint: "#{customDomain.public}:#{customDomain.port}/-/services/premiumBrokerKite"
        brokerExchange: 'premiumBrokerKite'
      apiUri    : "#{customDomain.public}"
      version   : version
      mainUri   : "#{customDomain.public}"
      appsUri   : "https://rest.kd.io"
      uploadsUri: 'https://koding-uploads.s3.amazonaws.com'
      uploadsUriForGroup: 'https://koding-groups.s3.amazonaws.com'
      sourceUri : "#{customDomain.public}:3526"
      newkontrol:
        url     : 'ws://127.0.0.1:4000/kontrol'
      fileFetchTimeout: 15 * 1000 # seconds
      externalProfiles  :
        github          :
          nicename      : 'GitHub'
          urlLocation   : 'html_url'
        odesk           :
          nicename      : 'oDesk'
          urlLocation   : 'info.profile_url'
        facebook        :
          nicename      : 'Facebook'
          urlLocation   : 'link'
        google          :
          nicename      : 'Google'
        linkedin        :
          nicename      : 'LinkedIn'
        twitter         :
          nicename      : 'Twitter'
        # bitbucket     :
        #   nicename    : 'BitBucket'<commit_msg> without protocol<commit_after>fs              = require 'fs'
nodePath        = require 'path'
deepFreeze      = require 'koding-deep-freeze'

customDomain    =
  public        : "http://koding.me"
  public_       : "koding.me"
  local         : "http://127.0.0.1"
  local_        : "localhost"
  port          : 80

rabbitmq        =
  login         : "guest"
  password      : "<PASSWORD>"

version         = "0.0.1"
mongo           = "#{customDomain.local_}:27017/koding"
mongoKontrol    = "#{customDomain.local_}:27017/kontrol"
projectRoot     = nodePath.join __dirname, '..'
socialQueueName = "koding-social-kodingme"
logQueueName    = socialQueueName+'log'

authExchange    = "auth"
authAllExchange = "authAll"

embedlyApiKey   = '94991069fb354d4e8fdb825e52d4134a'

environment     = "kodingme"

regions         =
  kodingme      : "kodingme"
  vagrant       : "vagrant"
  sj            : "sj"
  aws           : "aws"
  premium       : "vagrant"

cookieMaxAge = 1000 * 60 * 60 * 24 * 14 # two weeks
cookieSecure = no

module.exports =
  environment   : environment
  regions       : regions
  version       : version
  aws           :
    key         : '<KEY>'
    secret      : '<KEY>'
  uri           :
    address     : "#{customDomain.public}:#{customDomain.port}"
  userSitesDomain: "#{customDomain.public}"
  containerSubnet: "10.128.2.0/9"
  vmPool        : "vms"
  projectRoot   : projectRoot
  webserver     :
    useCacheHeader: no
    login       : "#{rabbitmq.login}"
    port        : customDomain.port
    clusterSize : 1
    queueName   : socialQueueName+'web'
    watch       : yes
  socialApiUrl  : "#{customDomain.public}:7000"
  sourceServer  :
    enabled     : yes
    port        : 3526
  mongo         : mongo
  mongoKontrol  : mongoKontrol
  mongoReplSet  : null
  mongoMinWrites: 1
  neo4j         :
    read        : "#{customDomain.public}"
    write       : "#{customDomain.public}"
    port        : 7474
  runNeo4jFeeder: no
  runGoBroker   : yes
  runGoBrokerKite: no
  runPremiumBroker: no
  runPremiumBrokerKite: no
  runKontrol    : yes
  runRerouting  : yes
  runUserPresence: no
  runPersistence: no
  compileGo     : yes
  buildClient   : yes
  runOsKite     : no
  runTerminalKite: no
  runProxy      : yes
  redis         : "#{customDomain.local}:6379"
  subscriptionEndpoint   : "#{customDomain.public}:#{customDomain.port}/-/subscription/check/"
  misc          :
    claimGlobalNamesForUsers: no
    updateAllSlugs : no
    debugConnectionErrors: yes
  bitly :
    username  : "kodingen"
    apiKey    : "R_677549f555489f455f7ff77496446ffa"
  authWorker    :
    login       : "#{rabbitmq.login}"
    queueName   : socialQueueName+'auth'
    authExchange: authExchange
    authAllExchange: authAllExchange
    numberOfWorkers: 1
    watch       : yes
  emailConfirmationCheckerWorker :
    enabled              : no
    login                : "#{rabbitmq.login}"
    queueName            : socialQueueName+'emailConfirmationCheckerWorker'
    numberOfWorkers      : 1
    watch                : yes
    cronSchedule         : '0 * * * * *'
    usageLimitInMinutes  : 60
  elasticSearch          :
    host                 : "#{customDomain.local}"
    port                 : 9200
    enabled              : no
    queue                : "elasticSearchFeederQueue"
  guestCleanerWorker     :
    enabled              : yes
    login                : "#{rabbitmq.login}"
    queueName            : socialQueueName+'guestcleaner'
    numberOfWorkers      : 2
    watch                : yes
    cronSchedule         : '00 * * * * *'
    usageLimitInMinutes  : 60
  sitemapWorker          :
    enabled              : yes
    login                : "#{rabbitmq.login}"
    queueName            : socialQueueName+'sitemapworker'
    numberOfWorkers      : 2
    watch                : yes
    cronSchedule         : '00 00 00 * * *'
  topicModifier          :
    cronSchedule         : '0 */5 * * * *'
  social        :
    login       : "#{rabbitmq.login}"
    numberOfWorkers: 1
    watch       : yes
    queueName   : socialQueueName
    verbose     : no
    kitePort    : 8765
  log           :
    login       : "#{rabbitmq.login}"
    numberOfWorkers: 1
    watch       : yes
    queueName   : logQueueName
    verbose     : no
    run         : no
    runWorker   : no
  followFeed    :
    host        : "#{customDomain.local}"
    port        : 5672
    componentUser: "#{rabbitmq.login}"
    password    : <PASSWORD>}"
    vhost       : 'followfeed'
  graphFeederWorker:
    numberOfWorkers: 2
  presence      :
    exchange    : 'services-presence'
  client        :
    version     : version
    watch       : yes
    watchDuration : 300
    includesPath: 'client'
    indexMaster : "index-master.html"
    index       : "default.html"
    useStaticFileServer: no
    staticFilesBaseUrl: "#{customDomain.public}:#{customDomain.port}"
    runtimeOptions:
      kites: require './kites.coffee'
      osKitePollingMs: 1000 * 60 # 1 min
      userIdleMs: 1000 * 60 * 5  # 5 min
      sessionCookie :
        maxAge      : cookieMaxAge
        secure      : cookieSecure
      environment        : environment
      activityFetchCount : 20
      authExchange       : authExchange
      github         :
        clientId     : "f8e440b796d953ea01e5"
      embedly        :
        apiKey       : embedlyApiKey
      userSitesDomain: "#{customDomain.public}"
      useNeo4j: yes
      logToExternal: no  # rollbar, mixpanel etc.
      logToInternal: no  # log worker
      resourceName: socialQueueName
      logResourceName: logQueueName
      socialApiUri: "#{customDomain.public}:3030/xhr"
      logApiUri: "#{customDomain.public}:4030/xhr"
      suppressLogs: no
      broker    :
        servicesEndpoint: "#{customDomain.public_}:#{customDomain.port}/-/services/broker"
      premiumBroker:
        servicesEndpoint: "#{customDomain.public_}:#{customDomain.port}/-/services/premiumBroker"
      brokerKite:
        servicesEndpoint: "#{customDomain.public_}:#{customDomain.port}/-/services/brokerKite"
        brokerExchange: 'brokerKite'
      premiumBrokerKite:
        servicesEndpoint: "#{customDomain.public_}:#{customDomain.port}/-/services/premiumBrokerKite"
        brokerExchange: 'premiumBrokerKite'
      apiUri    : "#{customDomain.public}"
      version   : version
      mainUri   : "#{customDomain.public}"
      appsUri   : "https://rest.kd.io"
      uploadsUri: 'https://koding-uploads.s3.amazonaws.com'
      uploadsUriForGroup: 'https://koding-groups.s3.amazonaws.com'
      sourceUri : "#{customDomain.public}:3526"
      newkontrol:
        url     : 'ws://127.0.0.1:4000/kontrol'
      fileFetchTimeout: 15 * 1000 # seconds
      externalProfiles  :
        github          :
          nicename      : 'GitHub'
          urlLocation   : 'html_url'
        odesk           :
          nicename      : 'oDesk'
          urlLocation   : 'info.profile_url'
        facebook        :
          nicename      : 'Facebook'
          urlLocation   : 'link'
        google          :
          nicename      : 'Google'
        linkedin        :
          nicename      : 'LinkedIn'
        twitter         :
          nicename      : 'Twitter'
        # bitbucket     :
        #   nicename    : 'BitBucket'
{'fraction_non_alphanumeric': 0.09694756425273893, 'fraction_numerical': 0.02825053400399642, 'mean_word_length': 1.8286883648411616, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4121850', 'n_tokens_mistral': 4804, 'n_tokens_neox': 4475, 'n_words': 843}