<commit_before>'use strict';

// Require the needed npm modules.
const gulp = require('gulp'),
	uglify = require('gulp-uglify'),
	rename = require('gulp-rename'),
	sass = require('gulp-sass'),
	maps = require('gulp-sourcemaps'),
	useref = require('gulp-useref'),
	iff = require('gulp-if'),
	csso = require('gulp-csso'),
	concat = require('gulp-concat'),
	del = require('del');

// This task may be redundant due to 'minifyScripts' task.  Delete it?
// gulp.task('concatScripts', function() {
// 	return gulp.src(['js/**/*', 'js/*'])
// 			.pipe(concat('all.js'))
// 			.pipe(gulp.dest('js'));
// });

gulp.task('scripts', ['jsMap'], function() {
	gulp.src(['js/**/**', 'js/*'])
		.pipe(concat('all.js'))
		.pipe(uglify())
		.pipe(rename('all.min.js'))
		.pipe(gulp.dest('dist/scripts/'));
});

gulp.task('jsMap', function() {
	return gulp.src('js/**/*')
	.pipe(maps.init())
	.pipe(concat('all.js'))
	.pipe(maps.write('./'))
	.pipe(gulp.dest('dist/scripts'));
});

gulp.task('styles', function() {
	return gulp.src('sass/global.scss')
		.pipe(maps.init())
		.pipe(sass())
		.pipe(maps.write('./'))
		.pipe(gulp.dest('dist/styles'));
});














//<commit_msg>Added 'clean' task & gulp default task.<commit_after>'use strict';

// Require the needed npm modules.
const gulp = require('gulp'),
	uglify = require('gulp-uglify'),
	rename = require('gulp-rename'),
	sass = require('gulp-sass'),
	maps = require('gulp-sourcemaps'),
	useref = require('gulp-useref'),
	iff = require('gulp-if'),
	csso = require('gulp-csso'),
	concat = require('gulp-concat'),
	del = require('del');

// This task may be redundant due to 'minifyScripts' task.  Delete it?
// gulp.task('concatScripts', function() {
// 	return gulp.src(['js/**/*', 'js/*'])
// 			.pipe(concat('all.js'))
// 			.pipe(gulp.dest('js'));
// });

gulp.task('scripts', ['jsMap'], function() {
	gulp.src(['js/**/**', 'js/*'])
		.pipe(concat('all.js'))
		.pipe(uglify())
		.pipe(rename('all.min.js'))
		.pipe(gulp.dest('dist/scripts/'));
	del('dist/scripts/all.js');
});

gulp.task('jsMap', function() {
	return gulp.src('js/**/*')
	.pipe(maps.init())
	.pipe(concat('all.js'))
	.pipe(maps.write('./'))
	.pipe(gulp.dest('dist/scripts'));
});

gulp.task('styles', function() {
	return gulp.src('sass/global.scss')
		.pipe(maps.init())
		.pipe(sass())
		.pipe(maps.write('./'))
		.pipe(gulp.dest('dist/styles'));
});

gulp.task('clean', function() {
	return del('dist/*');
});

gulp.task('default', ['clean'], function() {
	// gulp.start('build');
});











//
{'fraction_non_alphanumeric': 0.2687872763419483, 'fraction_numerical': 0.0, 'mean_word_length': 4.021956087824352, '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': '592892', 'n_tokens_mistral': 999, 'n_tokens_neox': 972, 'n_words': 156}