<commit_before>var gulp = require('gulp'),
	browserify = require('browserify'),
	babelify = require('babelify'),
	source = require('vinyl-source-stream'),
	sass = require('gulp-sass'),
	packageJSON = require('./package.json'),
	semver = require('semver');

var paths = {
	dist: './public/dist',
	js: ['./public/src/**/*.js'],
	scss: ['./public/src/**/*.scss'],
	image: ['./public/src/img/**']
};
console.log(process.versions.node);
var nodeVersionIsValid = semver.satisfies(process.versions.node, packageJSON.engines.node);

if (!nodeVersionIsValid) {
	console.error('Invalid Node.js version. You need to be using ' + packageJSON.engines.node);
	process.exit();
}

gulp.task('js:watch', function () {
	gulp.watch(paths.js, ['js']);
});

gulp.task('js', function () {
	browserify({
		entries: './public/src/main.js',
		extensions: ['.js'],
		debug: true
	})
	.transform(babelify)
	.external('react')
	.external('jquery')
	.bundle()
	.pipe(source('bundle.js'))
	.pipe(gulp.dest(paths.dist));
});

gulp.task('sass', function () {
	gulp.src('./public/src/styles/main.scss')
		.pipe(sass().on('error', sass.logError))
		.pipe(gulp.dest(paths.dist));
});
<commit_msg>Fix gulpfile<commit_after>var gulp = require('gulp'),
	browserify = require('browserify'),
	babelify = require('babelify'),
	source = require('vinyl-source-stream'),
	sass = require('gulp-sass'),
	packageJSON = require('./package.json'),
	semver = require('semver');

var paths = {
	dist: './public/dist',
	js: ['./public/src/**/*.js'],
	scss: ['./public/src/**/*.scss'],
	image: ['./public/src/img/**']
};

var nodeVersionIsValid = semver.satisfies(process.versions.node, packageJSON.engines.node);

if (!nodeVersionIsValid) {
	console.error('Invalid Node.js version. You need to be using ' + packageJSON.engines.node);
	process.exit();
}

gulp.task('js:watch', function () {
	gulp.watch(paths.js, ['js']);
});

gulp.task('js', function () {
	browserify({
		entries: './public/src/main.js',
		extensions: ['.js'],
		debug: true
	})
	.transform(babelify)
	.external('react')
	.external('jquery')
	.bundle()
	.pipe(source('bundle.js'))
	.pipe(gulp.dest(paths.dist));
});

gulp.task('sass', function () {
	gulp.src('./public/src/styles/main.scss')
		.pipe(sass().on('error', sass.logError))
		.pipe(gulp.dest(paths.dist));
});

{'fraction_non_alphanumeric': 0.23184601924759404, 'fraction_numerical': 0.0, 'mean_word_length': 4.674937965260546, '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': '6381462', 'n_tokens_mistral': 858, 'n_tokens_neox': 845, 'n_words': 134}