<commit_before>"use strict";

var gulp            = require('gulp'),
    swig            = require('gulp-swig'),
    prettify        = require('gulp-prettify'),
    sass            = require('gulp-sass'),
    sourcemaps      = require('gulp-sourcemaps'),
    sassOpts        = {
        errLogToConsole: true
    },
    swigOpts        = {
        defaults: {
            cache: false
        },
        data: {
            'page': {}
        }
    };

gulp.task('build-html', function() {
    gulp.src('./src/**/*.html')
        .pipe(swig(swigOpts))
        .pipe(prettify({indent_size: 4}))
        .pipe(gulp.dest('./build/'));
});

gulp.task('build-default-sass', function() {
    gulp.src('./src/themes/default/scss/default.scss')
        .pipe(sourcemaps.init())
        .pipe(sass(sassOpts))
        .pipe(sourcemaps.write('./'))
        .pipe(gulp.dest('./build/assets/css'));
});

gulp.task('build-kirkwood-sass', function() {
    gulp.src('./src/themes/kirkwood/scss/kirkwood.scss')
        .pipe(sourcemaps.init())
        .pipe(sass(sassOpts))
        .pipe(sourcemaps.write('./'))
        .pipe(gulp.dest('./build/assets/css'));
});

gulp.task('build-info-sass', function() {
    gulp.src('./src/themes/info/scss/*.scss')
        .pipe(sourcemaps.init())
        .pipe(sass(sassOpts))
        .pipe(sourcemaps.write('./'))
        .pipe(gulp.dest('./build/assets/css'));
});

gulp.task('build-geospatial-sass', function() {
    gulp.src('./src/themes/geospatial/scss/geospatial.scss')
        .pipe(sourcemaps.init())
        .pipe(sass(sassOpts))
        .pipe(sourcemaps.write('./'))
        .pipe(gulp.dest('./build/assets/css'));
});

// Run the first build, or re-build assets after cleaning files
gulp.task('build', ['build-default-sass', 'build-info-sass', 'build-kirkwood-sass', 'build-html'], function() {
    gulp.src('./src/static/**/*.*')
        .pipe(gulp.dest('./build/assets/'));

    gulp.src('./src/themes/kirkwood/img/*.*')
        .pipe(gulp.dest('./build/assets/kirkwood/img/'));

    gulp.src('./src/themes/info/img/*.*')
        .pipe(gulp.dest('./build/assets/info/img/'));

    gulp.src('./src/themes/geospatial/img/*.*')
        .pipe(gulp.dest('./build/assets/geospatial/img/'));

    gulp.src('./src/logo.svg')
        .pipe(gulp.dest('./build/'));
});<commit_msg>Added default gulp task to build<commit_after>"use strict";

var gulp            = require('gulp'),
    swig            = require('gulp-swig'),
    prettify        = require('gulp-prettify'),
    sass            = require('gulp-sass'),
    sourcemaps      = require('gulp-sourcemaps'),
    sassOpts        = {
        errLogToConsole: true
    },
    swigOpts        = {
        defaults: {
            cache: false
        },
        data: {
            'page': {}
        }
    };

gulp.task('build-html', function() {
    gulp.src('./src/**/*.html')
        .pipe(swig(swigOpts))
        .pipe(prettify({indent_size: 4}))
        .pipe(gulp.dest('./build/'));
});

gulp.task('build-default-sass', function() {
    gulp.src('./src/themes/default/scss/default.scss')
        .pipe(sourcemaps.init())
        .pipe(sass(sassOpts))
        .pipe(sourcemaps.write('./'))
        .pipe(gulp.dest('./build/assets/css'));
});

gulp.task('build-kirkwood-sass', function() {
    gulp.src('./src/themes/kirkwood/scss/kirkwood.scss')
        .pipe(sourcemaps.init())
        .pipe(sass(sassOpts))
        .pipe(sourcemaps.write('./'))
        .pipe(gulp.dest('./build/assets/css'));
});

gulp.task('build-info-sass', function() {
    gulp.src('./src/themes/info/scss/*.scss')
        .pipe(sourcemaps.init())
        .pipe(sass(sassOpts))
        .pipe(sourcemaps.write('./'))
        .pipe(gulp.dest('./build/assets/css'));
});

gulp.task('build-geospatial-sass', function() {
    gulp.src('./src/themes/geospatial/scss/geospatial.scss')
        .pipe(sourcemaps.init())
        .pipe(sass(sassOpts))
        .pipe(sourcemaps.write('./'))
        .pipe(gulp.dest('./build/assets/css'));
});

// Run the first build, or re-build assets after cleaning files
gulp.task('build', ['build-default-sass', 'build-info-sass', 'build-kirkwood-sass', 'build-html'], function() {
    gulp.src('./src/static/**/*.*')
        .pipe(gulp.dest('./build/assets/'));

    gulp.src('./src/themes/kirkwood/img/*.*')
        .pipe(gulp.dest('./build/assets/kirkwood/img/'));

    gulp.src('./src/themes/info/img/*.*')
        .pipe(gulp.dest('./build/assets/info/img/'));

    gulp.src('./src/themes/geospatial/img/*.*')
        .pipe(gulp.dest('./build/assets/geospatial/img/'));

    gulp.src('./src/logo.svg')
        .pipe(gulp.dest('./build/'));
});

gulp.task('default', ['build'], function () { gulp.src('./gulfile.js'); });
{'fraction_non_alphanumeric': 0.2266355140186916, 'fraction_numerical': 0.0004248088360237893, 'mean_word_length': 2.2907058001397624, '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': '1911542', 'n_tokens_mistral': 1678, 'n_tokens_neox': 1657, 'n_words': 175}