<commit_before>var gulp = require('gulp');
var exec = require('child_process').exec;

var IMAGE_TAG = process.env.DOCKER_IMAGE_TAG || 'ottogiron/hapiseed';

gulp.task('build-docker', function(callback){

  var dockerBuild = exec('docker build --no-cache -f docker/Dockerfile -t '+ IMAGE_TAG +' .');

  dockerBuild.stdout.on('data', function (data) {
    console.log(data.toString());
  });

  dockerBuild.stderr.on('data', function (data) {
    console.log(data.toString());
  });

  return callback();

});<commit_msg>Fix callback on docker gulp task<commit_after>var gulp = require('gulp');
var exec = require('child_process').exec;

var IMAGE_TAG = process.env.DOCKER_IMAGE_TAG || 'ottogiron/hapiseed';

gulp.task('build-docker', function(callback){

  var dockerBuild = exec('docker build --no-cache -f docker/Dockerfile -t '+ IMAGE_TAG +' .', function(error, stout, stderr) {

    return callback(error);
  });

  dockerBuild.stdout.on('data', function (data) {
    console.log(data.toString());
  });

  dockerBuild.stderr.on('data', function (data) {
    console.log(data.toString());
  });

});
{'fraction_non_alphanumeric': 0.17876588021778583, 'fraction_numerical': 0.0, 'mean_word_length': 4.598984771573604, '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': '3799491', 'n_tokens_mistral': 390, 'n_tokens_neox': 365, 'n_words': 70}