<commit_before>var express = require('express');
var app = express();
var execSync = require('exec-sync');
var yaml_config = require('node-yaml-config');
var config = yaml_config.load(__dirname + '/config.yml');

app.post(config.webhook.url, function (req, res) {
    result = execSync(config.command);
    console.log(result);<commit_msg>Change to async<commit_after>var express = require('express');
var app = express();
var exec = require('child_process').exec;
var yaml_config = require('node-yaml-config');
var config = yaml_config.load(__dirname + '/config.yml');

app.post(config.webhook.url, function (req, res) {
    function puts(error, stdout, stderr) {sys.puts(stdout)}
    exec(config.command, puts);
{'fraction_non_alphanumeric': 0.1640953716690042, 'fraction_numerical': 0.0, 'mean_word_length': 5.735849056603773, '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': '2778636', 'n_tokens_mistral': 226, 'n_tokens_neox': 219, 'n_words': 51}