<commit_before>let exec = require('child_process').exec;
//TODO Clean up
let cmd = `$(npm bin)/jrp ${__dirname}/_posts && git add -A . && git commit -m "Adding meta data for related posts" && git push origin gh-pages`;

exec(cmd, (error, stdout, stderr) => {
  console.log(stdout);
  console.log(stderr);
  if (error !== null) {
      console.log(error);
  }
});
<commit_msg>Adding meta data for related posts<commit_after>let spawnSync = require('child_process').execSync;
let spawnOptions = { stdio: 'inherit' };
console.log('foo');
spawnSync(`$(npm bin)/jrp ${__dirname}/_posts`, spawnOptions);
spawnSync(`git add -A .`, spawnOptions);
spawnSync(`git commit -m "Adding meta data for related posts"`, spawnOptions);

{'fraction_non_alphanumeric': 0.16852367688022285, 'fraction_numerical': 0.0, 'mean_word_length': 4.991666666666666, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '2668618', 'n_tokens_mistral': 236, 'n_tokens_neox': 229, 'n_words': 68}