<commit_before>var http = require('http');
var express = require('express');
var createHandler = require('github-webhook-handler');
var exec = require('child_process').exec;

var config = require('./config.json');

require('./src/application-proxy');
require('./src/github-deployment');
require('./src/frontend');

config.applications.forEach(function(app) {
  var options = {
    cwd: app.path,
    env: process.env
  };

  if (app.port) {
    options.env.port = app.port;
  }

  if (typeof app.env == 'object') {
    Object.keys(app.env).forEach(function(key) {
      options.env[key] = app.env[key]
    });
  }

  var child = exec(app.start, options);
  child.stdout.on('data', function(data) {
    console.log('stdout: ' + data);
  });
  child.stderr.on('data', function(data) {
    console.log('stdout: ' + data);
  });
  child.on('close', function(code) {
    console.log('exiting with code: ' + code);
  });
});
<commit_msg>fixed bug with change of github handling<commit_after>var http = require('http');
var express = require('express');
var createHandler = require('github-webhook-handler');
var exec = require('child_process').exec;

var config = require('./config.json');

require('./src/application-proxy');
require('./src/frontend');

config.applications.forEach(function(app) {
  var options = {
    cwd: app.path,
    env: process.env
  };

  if (app.port) {
    options.env.port = app.port;
  }

  if (typeof app.env == 'object') {
    Object.keys(app.env).forEach(function(key) {
      options.env[key] = app.env[key]
    });
  }

  var child = exec(app.start, options);
  child.stdout.on('data', function(data) {
    console.log('stdout: ' + data);
  });
  child.stderr.on('data', function(data) {
    console.log('stdout: ' + data);
  });
  child.on('close', function(code) {
    console.log('exiting with code: ' + code);
  });
});

{'fraction_non_alphanumeric': 0.1958985429033999, 'fraction_numerical': 0.0, 'mean_word_length': 3.7055837563451774, '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': '5717864', 'n_tokens_mistral': 622, 'n_tokens_neox': 614, 'n_words': 113}