<commit_before>'use strict';

const gulp = require('gulp');
const jshint = require('gulp-jshint');
const jscs = require('gulp-jscs');
const stylish = require('gulp-jscs-stylish');
const shell = require('gulp-shell');

let tests =
[
	'test/test_mediasoup.js',
	'test/test_Server.js',
	'test/test_Room.js',
	'test/test_Peer.js',
	'test/test_Transport.js',
	'test/test_RtpReceiver.js',
	'test/test_RtpListener.js',
	'test/test_extra.js'
];

gulp.task('lint', () =>
{
	let src = [ 'gulpfile.js', 'lib/**/*.js', 'test/**/*.js' ];

	return gulp.src(src)
		.pipe(jshint('.jshintrc'))
		.pipe(jscs('.jscsrc'))
		.pipe(stylish.combineWithHintResults())
		.pipe(jshint.reporter('jshint-stylish', { verbose: true }))
		.pipe(jshint.reporter('fail'));
});

gulp.task('test', shell.task(
	[ `node_modules/.bin/tap --bail --color --reporter=spec ${tests.join(' ')}` ]
));

gulp.task('test-debug', shell.task(
	[ `node_modules/.bin/tap --bail --reporter=tap ${tests.join(' ')}` ],
	{
		env     : { DEBUG: '*ERROR* *WARN*' },
		verbose : true
	}
));

gulp.task('default', gulp.series('lint'));<commit_msg>gulp-shell already prepends 'node_modules/.bin' to the PATH.<commit_after>'use strict';

const gulp = require('gulp');
const jshint = require('gulp-jshint');
const jscs = require('gulp-jscs');
const stylish = require('gulp-jscs-stylish');
const shell = require('gulp-shell');

let tests =
[
	'test/test_mediasoup.js',
	'test/test_Server.js',
	'test/test_Room.js',
	'test/test_Peer.js',
	'test/test_Transport.js',
	'test/test_RtpReceiver.js',
	'test/test_RtpListener.js',
	'test/test_extra.js'
];

gulp.task('lint', () =>
{
	let src = [ 'gulpfile.js', 'lib/**/*.js', 'test/**/*.js' ];

	return gulp.src(src)
		.pipe(jshint('.jshintrc'))
		.pipe(jscs('.jscsrc'))
		.pipe(stylish.combineWithHintResults())
		.pipe(jshint.reporter('jshint-stylish', { verbose: true }))
		.pipe(jshint.reporter('fail'));
});

gulp.task('test', shell.task(
	[ `tap --bail --color --reporter=spec ${tests.join(' ')}` ]
));

gulp.task('test-debug', shell.task(
	[ `tap --bail --reporter=tap ${tests.join(' ')}` ],
	{
		env     : { DEBUG: '*ERROR* *WARN*' },
		verbose : true
	}
));

gulp.task('default', gulp.series('lint'));
{'fraction_non_alphanumeric': 0.2366377341251713, 'fraction_numerical': 0.0, 'mean_word_length': 4.461346633416459, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6381475', 'n_tokens_mistral': 931, 'n_tokens_neox': 906, 'n_words': 131}