<commit_before>exports = module.exports = function(IoC) {
  
  return function() {
    return IoC.create('http://i.bixbyjs.org/http/Server');
  };
};

exports['@require'] = [ '!container' ];
<commit_msg>Wrap HTTP server in gateway.<commit_after>exports = module.exports = function(IoC) {
  
  return IoC.create('http://i.bixbyjs.org/http/Server')
    .then(function(server) {
      
      return {
        listen: function(cb) {
          // --http-server-address --http-server-port
          // settings.get('http/server/address');
          //console.log(settings.toObject());
          //console.log(settings.get('http'));
          
          server.once('listening', function() {
            //var addr = this.address();
            //logger.info('HTTP server listening on %s:%d', addr.address, addr.port);
            
            console.log('SERVER LISTENING!!!');
          });
          
          //var options = settings.get('http/server') || {};
          var options = {};
          var address = options.address;
          //var port = options.port !== undefined ? options.port : normalizePort(process.env.PORT || 8080);
          var port = 8080;
          
          server.listen(port, address);
        }
      }
    });
};

exports['@implements'] = 'http://i.bixbyjs.org/http/Gateway';
exports['@require'] = [ '!container' ];

{'fraction_non_alphanumeric': 0.17459138187221396, 'fraction_numerical': 0.005943536404160475, 'mean_word_length': 2.0753424657534247, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '2597774', 'n_tokens_mistral': 404, 'n_tokens_neox': 396, 'n_words': 65}