<commit_before>'use strict';

var logger = require('./logger'),
  bluemix  = require('./bluemix'),
  extend   = require('extend'),
  env      = process.env.VCAP_SERVICES ? 'prod' : 'dev';

var services = {
  mongodb: 'mongodb://localhost/celebs',

  personality_insights: {
    url:      '<url>',
    username: '<username>',
    password: '<password>',
    version: 'v2'
  },

  twitter: [
  // Twitter app credentials: https://apps.twitter.com/app
  {
    consumer_key:       '<consumer_key>',
    consumer_secret:    '<consumer_secret>',
    access_token_key:   '<access_token_key>',
    access_token_secret:'<access_token_secret>'
  }]
};


// Get the service
if (env === 'prod') {
  services.mongodb = bluemix.serviceStarsWith('mongodb').url;
  services.personality_insights = extend({'version':'v2'}, bluemix.serviceStartsWith('personality_insights'));
}

logger.info('mongodb:',services.mongodb);
logger.info('personality_insights:',services.personality_insights);

module.exports = {
    services: services,
    host: '127.0.0.1',
    port: 3000
};<commit_msg>Update config.js<commit_after>'use strict';

var logger = require('./logger'),
  bluemix  = require('./bluemix'),
  extend   = require('extend'),
  env      = process.env.VCAP_SERVICES ? 'prod' : 'dev';

var services = {
  mongodb: 'mongodb://localhost/celebs',

  personality_insights: {
    url:      '<url>',
    username: '<username>',
    password: '<password>',
    version: 'v2'
  },

  twitter: [
  // Twitter app credentials: https://apps.twitter.com/app
  {
    consumer_key:       '<consumer_key>',
    consumer_secret:    '<consumer_secret>',
    access_token_key:   '<access_token_key>',
    access_token_secret:'<access_token_secret>'
  }]
};


// Get the service
if (env === 'prod') {
  services.mongodb = bluemix.serviceStartsWith('mongodb').url;
  services.personality_insights = extend({'version':'v2'}, bluemix.serviceStartsWith('personality_insights'));
}

logger.info('mongodb:',services.mongodb);
logger.info('personality_insights:',services.personality_insights);

module.exports = {
    services: services,
    host: '127.0.0.1',
    port: 3000
};
{'fraction_non_alphanumeric': 0.1716557530402245, 'fraction_numerical': 0.011225444340505144, 'mean_word_length': 4.009367681498829, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '1497272', 'n_tokens_mistral': 749, 'n_tokens_neox': 729, 'n_words': 117}