<commit_before>var gulp = require('gulp');
var sourcemaps = require('gulp-sourcemaps');
var babel = require('gulp-babel');
var eslint = require('gulp-eslint');
var wrapper = require('gulp-wrapper');
var gulpFilter = require('gulp-filter');

gulp.task('default', function def() {
  var filter = gulpFilter(['*', '!src/tests'], {restore: true});
  
  return gulp.src('src/**/*.js')
    .pipe(eslint())
//    .pipe(sourcemaps.init())
    .pipe(babel())
    .pipe(filter) 
    .pipe(wrapper({
      header: '(function() {\n',
      footer: '\nreturn pypyjs;\n}());'
    }))
    .pipe(filter.restore)
//    .pipe(sourcemaps.write('.'))
    .pipe(gulp.dest('lib'));
});
<commit_msg>fixes eslint and ads source maps back in<commit_after>var gulp = require('gulp');
var sourcemaps = require('gulp-sourcemaps');
var babel = require('gulp-babel');
var eslint = require('gulp-eslint');
var wrapper = require('gulp-wrapper');
var gulpFilter = require('gulp-filter');

gulp.task('default', function def() {
  var filter = gulpFilter(['*', '!src/tests'], {restore: true});

  return gulp.src('src/**/*.js')
    .pipe(eslint())
    .pipe(sourcemaps.init())
    .pipe(babel())
    .pipe(eslint.format())
    .pipe(filter)
    .pipe(wrapper({
      header: '(function() {\n',
      footer: '\nreturn pypyjs;\n}());'
    }))
    .pipe(filter.restore)
    .pipe(sourcemaps.write('.'))
    .pipe(gulp.dest('lib'));
});

{'fraction_non_alphanumeric': 0.22444603288062903, 'fraction_numerical': 0.0, 'mean_word_length': 3.8275862068965516, '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': '6904135', 'n_tokens_mistral': 500, 'n_tokens_neox': 489, 'n_words': 94}