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

version         = "0.0.1"
mongo           = 'localhost:27017/koding'
mongoKontrol    = 'localhost:27017/kontrol'
projectRoot     = nodePath.join __dirname, '..'
socialQueueName = "koding-social-vagrant"

authExchange    = "auth"
authAllExchange = "authAll"

embedlyApiKey   = '94991069fb354d4e8fdb825e52d4134a'

environment     = "vagrant"
regions         =
  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     : "http://lvh.me:3020"
  userSitesDomain: 'lvh.me'
  containerSubnet: "10.128.2.0/9"
  vmPool        : "vms"
  projectRoot   : projectRoot
  webserver     :
    useCacheHeader: no
    login       : 'prod-webserver'
    port        : 3020
    clusterSize : 1
    queueName   : socialQueueName+'web'
    watch       : yes
  socialApiUrl  : "http://localhost:7000"
  sourceServer  :
    enabled     : yes
    port        : 3526
  mongo         : mongo
  mongoKontrol  : mongoKontrol
  mongoReplSet  : null
  neo4j         :
    read        : "http://localhost"
    write       : "http://localhost"
    port        : 7474
  runNeo4jFeeder: yes
  runGoBroker   : yes
  runGoBrokerKite: yes
  runPremiumBroker: yes
  runPremiumBrokerKite: yes
  runKontrol    : yes
  runRerouting  : yes
  runUserPresence: yes
  runPersistence: no
  compileGo     : yes
  buildClient   : yes
  runOsKite     : yes
  runTerminalKite: yes
  runProxy      : yes
  redis         : "localhost:6379"
  subscriptionEndpoint   : "http://192.168.50.1:3020/-/subscription/check/"
  misc          :
    claimGlobalNamesForUsers: no
    updateAllSlugs : no
    debugConnectionErrors: yes
  uploads       :
    enableStreamingUploads: no
    distribution: 'https://d2mehr5c6bceom.cloudfront.net'
    s3          :
      awsAccountId        : '616271189586'
      awsAccessKeyId      : 'AKIAJO74E23N33AFRGAQ'
      awsSecretAccessKey  : '<KEY>'
      bucket              : 'koding-uploads'
  # loadBalancer  :
  #   port        : 3000
  #   heartbeat   : 5000
    # httpRedirect:
    #   port      : 80 # don't forget port 80 requires sudo
  bitly :
    username  : "kodingen"
    apiKey    : "R_677549f555489f455f7ff77496446ffa"
  authWorker    :
    login       : 'prod-auth-worker'
    queueName   : socialQueueName+'auth'
    authExchange: authExchange
    authAllExchange: authAllExchange
    numberOfWorkers: 1
    watch       : yes
  emailConfirmationCheckerWorker :
    enabled              : no
    login                : 'prod-social'
    queueName            : socialQueueName+'emailConfirmationCheckerWorker'
    numberOfWorkers      : 1
    watch                : yes
    cronSchedule         : '0 * * * * *'
    usageLimitInMinutes  : 60
  elasticSearch          :
    host                 : "localhost"
    port                 : 9200
    enabled              : no
    queue                : "elasticSearchFeederQueue"
  guestCleanerWorker     :
    enabled              : yes
    login                : 'prod-social'
    queueName            : socialQueueName+'guestcleaner'
    numberOfWorkers      : 2
    watch                : yes
    cronSchedule         : '00 * * * * *'
    usageLimitInMinutes  : 60
  sitemapWorker          :
    enabled              : yes
    login                : 'prod-social'
    queueName            : socialQueueName+'sitemapworker'
    numberOfWorkers      : 2
    watch                : yes
    cronSchedule         : '00 00 00 * * *'
  topicModifier          :
    cronSchedule         : '0 */5 * * * *'
  social        :
    login       : 'prod-social'
    numberOfWorkers: 1
    watch       : yes
    queueName   : socialQueueName
    verbose     : no
  followFeed    :
    host        : 'localhost'
    port        : 5672
    componentUser: 'guest'
    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: 'http://lvh.me:3020'
    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: 'lvh.me'
      useNeo4j: yes
      logToExternal: no  # rollbar, mixpanel etc.
      resourceName: socialQueueName
      socialApiUri: 'http://lvh.me:3030/xhr'
      suppressLogs: no
      broker    :
        servicesEndpoint: 'http://lvh.me:3020/-/services/broker'
      premiumBroker:
        servicesEndpoint: 'http://lvh.me:3020/-/services/premiumBroker'
      brokerKite:
        servicesEndpoint: 'http://lvh.me:3020/-/services/brokerKite'
        brokerExchange: 'brokerKite'
      premiumBrokerKite:
        servicesEndpoint: 'http://lvh.me:3020/-/services/premiumBrokerKite'
        brokerExchange: 'premiumBrokerKite'
      apiUri    : 'http://lvh.me:3020'
      version   : version
      mainUri   : 'http://lvh.me:3020'
      appsUri   : 'https://rest.kd.io'
      uploadsUri: 'https://koding-uploads.s3.amazonaws.com'
      uploadsUriForGroup: 'https://koding-groups.s3.amazonaws.com'
      sourceUri : 'http://lvh.me:3526'
      newkontrol:
        url     : 'wss://kontrol.koding.com'
      fileFetchTimeout: 15 * 1000 # seconds
      externalProfiles  :
        github          :
          nicename      : 'GitHub'
          urlLocation   : 'html_url'
        odesk           :
          nicename      : 'oDesk'
          urlLocation   : 'info.profile_url'
        facebook        :
          nicename      : 'Facebook'<commit_msg> revert back to original kontrol setting for vagrant<commit_after>fs              = require 'fs'
nodePath        = require 'path'
deepFreeze      = require 'koding-deep-freeze'

version         = "0.0.1"
mongo           = 'localhost:27017/koding'
mongoKontrol    = 'localhost:27017/kontrol'
projectRoot     = nodePath.join __dirname, '..'
socialQueueName = "koding-social-vagrant"

authExchange    = "auth"
authAllExchange = "authAll"

embedlyApiKey   = '94991069fb354d4e8fdb825e52d4134a'

environment     = "vagrant"
regions         =
  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     : "http://lvh.me:3020"
  userSitesDomain: 'lvh.me'
  containerSubnet: "10.128.2.0/9"
  vmPool        : "vms"
  projectRoot   : projectRoot
  webserver     :
    useCacheHeader: no
    login       : 'prod-webserver'
    port        : 3020
    clusterSize : 1
    queueName   : socialQueueName+'web'
    watch       : yes
  socialApiUrl  : "http://localhost:7000"
  sourceServer  :
    enabled     : yes
    port        : 3526
  mongo         : mongo
  mongoKontrol  : mongoKontrol
  mongoReplSet  : null
  neo4j         :
    read        : "http://localhost"
    write       : "http://localhost"
    port        : 7474
  runNeo4jFeeder: yes
  runGoBroker   : yes
  runGoBrokerKite: yes
  runPremiumBroker: yes
  runPremiumBrokerKite: yes
  runKontrol    : yes
  runRerouting  : yes
  runUserPresence: yes
  runPersistence: no
  compileGo     : yes
  buildClient   : yes
  runOsKite     : yes
  runTerminalKite: yes
  runProxy      : yes
  redis         : "localhost:6379"
  subscriptionEndpoint   : "http://192.168.50.1:3020/-/subscription/check/"
  misc          :
    claimGlobalNamesForUsers: no
    updateAllSlugs : no
    debugConnectionErrors: yes
  uploads       :
    enableStreamingUploads: no
    distribution: 'https://d2mehr5c6bceom.cloudfront.net'
    s3          :
      awsAccountId        : '616271189586'
      awsAccessKeyId      : 'AKIAJO74E23N33AFRGAQ'
      awsSecretAccessKey  : '<KEY>'
      bucket              : 'koding-uploads'
  # loadBalancer  :
  #   port        : 3000
  #   heartbeat   : 5000
    # httpRedirect:
    #   port      : 80 # don't forget port 80 requires sudo
  bitly :
    username  : "kodingen"
    apiKey    : "R_677549f555489f455f7ff77496446ffa"
  authWorker    :
    login       : 'prod-auth-worker'
    queueName   : socialQueueName+'auth'
    authExchange: authExchange
    authAllExchange: authAllExchange
    numberOfWorkers: 1
    watch       : yes
  emailConfirmationCheckerWorker :
    enabled              : no
    login                : 'prod-social'
    queueName            : socialQueueName+'emailConfirmationCheckerWorker'
    numberOfWorkers      : 1
    watch                : yes
    cronSchedule         : '0 * * * * *'
    usageLimitInMinutes  : 60
  elasticSearch          :
    host                 : "localhost"
    port                 : 9200
    enabled              : no
    queue                : "elasticSearchFeederQueue"
  guestCleanerWorker     :
    enabled              : yes
    login                : 'prod-social'
    queueName            : socialQueueName+'guestcleaner'
    numberOfWorkers      : 2
    watch                : yes
    cronSchedule         : '00 * * * * *'
    usageLimitInMinutes  : 60
  sitemapWorker          :
    enabled              : yes
    login                : 'prod-social'
    queueName            : socialQueueName+'sitemapworker'
    numberOfWorkers      : 2
    watch                : yes
    cronSchedule         : '00 00 00 * * *'
  topicModifier          :
    cronSchedule         : '0 */5 * * * *'
  social        :
    login       : 'prod-social'
    numberOfWorkers: 1
    watch       : yes
    queueName   : socialQueueName
    verbose     : no
  followFeed    :
    host        : 'localhost'
    port        : 5672
    componentUser: 'guest'
    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: 'http://lvh.me:3020'
    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: 'lvh.me'
      useNeo4j: yes
      logToExternal: no  # rollbar, mixpanel etc.
      resourceName: socialQueueName
      socialApiUri: 'http://lvh.me:3030/xhr'
      suppressLogs: no
      broker    :
        servicesEndpoint: 'http://lvh.me:3020/-/services/broker'
      premiumBroker:
        servicesEndpoint: 'http://lvh.me:3020/-/services/premiumBroker'
      brokerKite:
        servicesEndpoint: 'http://lvh.me:3020/-/services/brokerKite'
        brokerExchange: 'brokerKite'
      premiumBrokerKite:
        servicesEndpoint: 'http://lvh.me:3020/-/services/premiumBrokerKite'
        brokerExchange: 'premiumBrokerKite'
      apiUri    : 'http://lvh.me:3020'
      version   : version
      mainUri   : 'http://lvh.me:3020'
      appsUri   : 'https://rest.kd.io'
      uploadsUri: 'https://koding-uploads.s3.amazonaws.com'
      uploadsUriForGroup: 'https://koding-groups.s3.amazonaws.com'
      sourceUri : 'http://lvh.me: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'
{'fraction_non_alphanumeric': 0.08973959145485733, 'fraction_numerical': 0.04132231404958678, 'mean_word_length': 1.7484465395328905, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 5, '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': '6687803', 'n_tokens_mistral': 4474, 'n_tokens_neox': 4065, 'n_words': 785}