<commit_before>var gulp = require('gulp');
var babel = require('gulp-babel');
var sourcemaps = require('gulp-sourcemaps');
var livereload = require('gulp-livereload');

gulp.task('babel', function() {
  return gulp.src(['src/*.js'])
    .pipe(sourcemaps.init())
    .pipe(babel({
      presets: ['es2015']
    }))
    .on('error', function() {
      console.log('error!');
      this.emit('end');
    })
    .pipe(sourcemaps.write('.'))
    .pipe(gulp.dest('dst'))
    .pipe(livereload());
});

gulp.task('default', function() {
  livereload.listen();
  gulp.watch('src/*.js', ['babel']);
});
<commit_msg>gulp: log error message<commit_after>var gulp = require('gulp');
var babel = require('gulp-babel');
var sourcemaps = require('gulp-sourcemaps');
var livereload = require('gulp-livereload');

gulp.task('babel', function() {
  return gulp.src(['src/*.js'])
    .pipe(sourcemaps.init())
    .pipe(babel({
      presets: ['es2015']
    }))
    .on('error', function(error) {
      console.log('error!');
      console.log(error.message);
      this.emit('end');
    })
    .pipe(sourcemaps.write('.'))
    .pipe(gulp.dest('dst'))
    .pipe(livereload());
});

gulp.task('default', function() {
  livereload.listen();
  gulp.watch('src/*.js', ['babel']);
});

{'fraction_non_alphanumeric': 0.2335186656076251, 'fraction_numerical': 0.006354249404289118, 'mean_word_length': 3.790874524714829, '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': '2296984', 'n_tokens_mistral': 462, 'n_tokens_neox': 437, 'n_words': 68}