<commit_before>'use strict';

var gulp = require('gulp');

// load plugins
var $ = require('gulp-load-plugins')();

gulp.task('scripts', function () {
	return gulp.src('js/**/*.js', {base: '.'})
		.pipe($.jshint())
		.pipe($.jshint.reporter(require('jshint-stylish')))
		.pipe($.browserify({
			insertGlobals: true,
			debug: true
		}))
});

gulp.task('buildTest', ['scripts'], function() {
	return gulp.src([
		'test/js/**/*.js'
	], {base: '.'})
		.pipe($.browserify({
			debug: true
		}))
 		.pipe(gulp.dest('.tmp'))

});

gulp.task('test', ['buildTest'], function() {
	return gulp.src([
		'.tmp/*.js'
	], {base: '.'})
		.pipe($.karma({
			configFile: 'karma.conf.js',
			action: 'run'
		}));
});



// gulp.task('test', function() {
//     return gulp.src(['js/**/*.js','test/js/**/*.js'])
// 		.pipe($.browserify({
// 			insertGlobals: true,
// 			debug: true
// 		}))<commit_msg>fix windows build issue<commit_after>'use strict';

var gulp = require('gulp');

// load plugins
var $ = require('gulp-load-plugins')();

gulp.task('scripts', function () {
	return gulp.src('js/**/*.js', {base: '.'})
		.pipe($.jshint())
		.pipe($.jshint.reporter(require('jshint-stylish')))
		// .pipe($.browserify({
		// 	insertGlobals: true,
		// 	debug: true
		// }))
});

gulp.task('buildTest', ['scripts'], function() {
	return gulp.src([
		'test/js/**/*.js'
	], {base: '.'})
		.pipe($.browserify({
			debug: true
		}))
 		.pipe(gulp.dest('.tmp'))

});

gulp.task('test', ['buildTest'], function() {
	return gulp.src([
		'.tmp/*.js'
	], {base: '.'})
		.pipe($.karma({
			configFile: 'karma.conf.js',
			action: 'run'
		}));
});



// gulp.task('test', function() {
//     return gulp.src(['js/**/*.js','test/js/**/*.js'])
// 		.pipe($.browserify({
// 			insertGlobals: true,
// 			debug: true
// 		}))
{'fraction_non_alphanumeric': 0.2837988826815642, 'fraction_numerical': 0.0, 'mean_word_length': 3.1458333333333335, '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': '6106920', 'n_tokens_mistral': 783, 'n_tokens_neox': 732, 'n_words': 109}