<commit_before>var _ = require('lodash');
var path = require('path')
module.exports = {

  bot: {
    key: process.env.TELEGRAM_TOKEN || 'your example Telegram Bot token',
    botanio: {
      key: process.env.BOTANIO_TOKEN
    },
    /*webHook : {
        url: process.env.WEBHOOK || 'your app webhook url'
    },*/
    polling: {
      interval: 100,
      timeout: 0
    }
  },
  redis: process.env.REDIS_URL || 'A redis instance URL for your app',
  dir: {
    root: path.resolve(__dirname, '../')
  },
  defaults: {
    locale: 'en',
    timezone: 'Europe/Moscow'
  },
  connectApi: {
    accountsApiUrl : 'https://api.spotware.com/connect',
    tradingApiHost: 'tradeapi.spotware.com',
    tradingApiPort: 5032,
    clientId: process.env.CLIENT_ID || 'your Spotware Connect Client Public ID',
    clientSecret: process.env.CLIENT_SECRET || 'your Spotware Connect Client Secret',
    plotly: {
      username: process.env.PLOTLY_USERNAME || 'your Plotly username',
      apiKey: process.env.PLOTLY_API_KEY || 'your Plotly API key'
    }
  }
};

// try to require local config
try {
  _.merge(module.exports, require('./local'));
} catch (e) {

}<commit_msg>Added support of webhooks mode<commit_after>var _ = require('lodash');
var path = require('path')

module.exports = {
  bot: {
    key: process.env.TELEGRAM_TOKEN || 'your example Telegram Bot token',
    botanio: {
      key: process.env.BOTANIO_TOKEN
    }
  },
  redis: process.env.REDIS_URL || 'A redis instance URL for your app',
  dir: {
    root: path.resolve(__dirname, '../')
  },
  defaults: {
    locale: 'en',
    timezone: 'Europe/Moscow'
  },
  connectApi: {
    accountsApiUrl : 'https://api.spotware.com/connect',
    tradingApiHost: 'tradeapi.spotware.com',
    tradingApiPort: 5032,
    clientId: process.env.CLIENT_ID || 'your Spotware Connect Client Public ID',
    clientSecret: process.env.CLIENT_SECRET || 'your Spotware Connect Client Secret',
    plotly: {
      username: process.env.PLOTLY_USERNAME || 'your Plotly username',
      apiKey: process.env.PLOTLY_API_KEY || 'your Plotly API key'
    }
  }
};

if (process.env.WEBHOOK) {
  module.exports.bot.webHook = {url: process.env.WEBHOOK};
} else {
  module.exports.bot.polling = {
    interval: 100,
    timeout: 0
  }
}

// try to require local config
try {
  _.merge(module.exports, require('./local'));
} catch (e) {

}
{'fraction_non_alphanumeric': 0.14424703891708968, 'fraction_numerical': 0.00676818950930626, 'mean_word_length': 3.1130434782608694, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4841221', 'n_tokens_mistral': 830, 'n_tokens_neox': 817, 'n_words': 183}