<commit_before>// Include gulp
var gulp = require('gulp');

// Include Plugins
var rename = require('gulp-rename');
var sass = require('gulp-sass');
var cssnano = require('gulp-cssnano');
var concatcss = require('gulp-concat-css');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var imagemin = require('gulp-imagemin');
var pngquant = require('imagemin-pngquant');

// Compile Sass
gulp.task('sass-template', function() {
    return gulp.src('public/scss/src/template/*.scss')
        .pipe(sass())
        .pipe(gulp.dest('public/css/src/template'));
});

gulp.task('sass-schema', function() {
    return gulp.src('public/scss/src/schema/*.scss')
        .pipe(sass())
        .pipe(gulp.dest('public/css/src/schema'));
});

gulp.task('sass-table', function() {
    return gulp.src('public/scss/src/table/*.scss')
        .pipe(sass())
        .pipe(gulp.dest('public/css/src/table'));
});

gulp.task('sass-row', function() {
    return gulp.src('public/scss/src/row/*.scss')
        .pipe(sass())
        .pipe(gulp.dest('public/css/src/row'));
});

gulp.task('sass-row', function() {
    return gulp.src('public/scss/src/row/*.scss')
        .pipe(sass())
        .pipe(gulp.dest('public/css/src/row'));
});

gulp.task('sass-row-plugins', function() {
    return gulp.src('public/scss/src/row/plugins/**/*.scss')
        .pipe(sass())
        .pipe(gulp.dest('public/css/src/row/plugins'));
});

gulp.task('sass-throwable', function() {
    return gulp.src('public/scss/src/throwable/*.scss')
        .pipe(sass())
        .pipe(gulp.dest('public/css/src/throwable'));
});

// Concatenate & Minify CSS
gulp.task('css-template', ['sass-template'], function() {
    return gulp.src(['public/css/src/template/*.css'])
        .pipe(concatcss('template.css'))
        .pipe(cssnano())
        .pipe(gulp.dest('public/css/dist'));
});

gulp.task('css-schema', ['sass-schema'], function() {
    return gulp.src(['public/css/src/schema/*.css'])
        .pipe(concatcss('schema.css'))
        .pipe(cssnano())
        .pipe(gulp.dest('public/css/dist'));
});

gulp.task('css-table', ['sass-table'], function() {
    return gulp.src(['public/css/src/table/*.css'])
        .pipe(concatcss('table.css'))
        .pipe(cssnano())
        .pipe(gulp.dest('public/css/dist'));
});

gulp.task('css-row', ['sass-row'], function() {
    return gulp.src(['public/css/src/row/*.css'])
        .pipe(concatcss('row.css'))
        .pipe(cssnano())
        .pipe(gulp.dest('public/css/dist'));
});

gulp.task('css-row-plugins-date', ['sass-row-plugins'], function() {
    return gulp.src(['public/css/src/row/plugins/date/*.css'])
        .pipe(concatcss('date.css'))
        .pipe(cssnano())
        .pipe(gulp.dest('public/css/dist/plugins/date'));
});

gulp.task('css-row-plugins-datetime', ['sass-row-plugins'], function() {
    return gulp.src(['public/css/src/row/plugins/datetime/*.css'])
        .pipe(concatcss('datetime.css'))
        .pipe(cssnano())
        .pipe(gulp.dest('public/css/dist/plugins/datetime'));
});

gulp.task('css-row-plugins-image', ['sass-row-plugins'], function() {
    return gulp.src(['public/css/src/row/plugins/image/*.css'])
        .pipe(concatcss('image.css'))
        .pipe(cssnano())
        .pipe(gulp.dest('public/css/dist/plugins/image'));
});

gulp.task('css-row-plugins-price', ['sass-row-plugins'], function() {
    return gulp.src(['public/css/src/row/plugins/price/*.css'])
        .pipe(concatcss('price.css'))
        .pipe(cssnano())
        .pipe(gulp.dest('public/css/dist/plugins/price'));
});

gulp.task('css-row-plugins-slug', ['sass-row-plugins'], function() {
    return gulp.src(['public/css/src/row/plugins/slug/*.css'])
        .pipe(concatcss('slug.css'))
        .pipe(cssnano())
        .pipe(gulp.dest('public/css/dist/plugins/slug'));
});

gulp.task('css-row-plugins-text', ['sass-row-plugins'], function() {
    return gulp.src(['public/css/src/row/plugins/text/*.css'])
        .pipe(concatcss('text.css'))
        .pipe(cssnano())
        .pipe(gulp.dest('public/css/dist/plugins/text'));
});

gulp.task('css-row-plugins-time', ['sass-row-plugins'], function() {
    return gulp.src(['public/css/src/row/plugins/time/*.css'])
        .pipe(concatcss('time.css'))
        .pipe(cssnano())
        .pipe(gulp.dest('public/css/dist/plugins/time'));
});

gulp.task('css-throwable', ['sass-throwable'], function() {
    return gulp.src(['public/css/src/throwable/*.css'])
        .pipe(concatcss('throwable.css'))
        .pipe(cssnano())
        .pipe(gulp.dest('public/css/dist'));
});

// Concatenate & Minify JS
gulp.task('js-template', function() {
    return gulp.src([
            'public/js/src/template/jquery.js',
            'public/js/src/template/bootstrap.js',
            'public/js/src/template/*.js'])
        .pipe(concat('template.js'))
        .pipe(uglify())
        .pipe(gulp.dest('public/js/dist'));
});

gulp.task('js-schema', function() {
    return gulp.src([
            'public/js/src/schema/*.js'])
        .pipe(concat('schema.js'))
        .pipe(uglify())
        .pipe(gulp.dest('public/js/dist'));
});

gulp.task('js-table', function() {
    return gulp.src([
            'public/js/src/table/*.js'])
        .pipe(concat('table.js'))
        .pipe(uglify())
        .pipe(gulp.dest('public/js/dist'));
});

gulp.task('js-row', function() {
    return gulp.src([
            'public/js/src/row/moment.js',
            'public/js/src/row/*.js'])
        .pipe(concat('row.js'))
        .pipe(uglify())
        .pipe(gulp.dest('public/js/dist'));
});

gulp.task('js-row-plugins-date', ['js-row'], function() {
    return gulp.src([
            'public/js/src/row/plugins/time/moment.js',
            'public/js/src/row/plugins/time/bootstrap-datetimepicker.js',
            'public/js/src/row/plugins/date/*.js'])
        .pipe(concat('date.js'))
        .pipe(uglify())
        .pipe(gulp.dest('public/js/dist/plugins/date'));
});

gulp.task('js-row-plugins-datetime', ['js-row'], function() {
    return gulp.src([
            'public/js/src/row/plugins/time/moment.js',
            'public/js/src/row/plugins/time/bootstrap-datetimepicker.js',
            'public/js/src/row/plugins/datetime/*.js'])
        .pipe(concat('datetime.js'))
        .pipe(uglify())
        .pipe(gulp.dest('public/js/dist/plugins/datetime'));
});

gulp.task('js-row-plugins-image', ['js-row'], function() {
    return gulp.src([
            'public/js/src/row/plugins/image/*.js'])
        .pipe(concat('image.js'))
        .pipe(uglify())
        .pipe(gulp.dest('public/js/dist/plugins/image'));
});

gulp.task('js-row-plugins-price', ['js-row'], function() {
    return gulp.src([
            'public/js/src/row/plugins/price/*.js'])
        .pipe(concat('price.js'))
        .pipe(uglify())
        .pipe(gulp.dest('public/js/dist/plugins/price'));
});

gulp.task('js-row-plugins-slug', ['js-row'], function() {
    return gulp.src([
            'public/js/src/row/plugins/slug/*.js'])
        .pipe(concat('slug.js'))
        .pipe(uglify())
        .pipe(gulp.dest('public/js/dist/plugins/slug'));
});

gulp.task('js-row-plugins-text', ['js-row'], function() {
    return gulp.src([
            'public/js/src/row/plugins/text/*.js'])
        .pipe(concat('text.js'))
        .pipe(uglify())
        .pipe(gulp.dest('public/js/dist/plugins/text'));
});

gulp.task('js-row-plugins-time', ['js-row'], function() {
    return gulp.src([
            'public/js/src/row/plugins/time/moment.js',
            'public/js/src/row/plugins/time/bootstrap-datetimepicker.js',
            'public/js/src/row/plugins/time/*.js'])
        .pipe(concat('time.js'))
        .pipe(uglify())
        .pipe(gulp.dest('public/js/dist/plugins/time'));
});

gulp.task('js-throwable', function() {
    return gulp.src([
            'public/js/src/throwable/*.js'])
        .pipe(concat('row.js'))
        .pipe(uglify())
        .pipe(gulp.dest('public/js/dist'));
});

// Optimize Images
gulp.task('img', function() {
    return gulp.src('public/img/**/*')
        .pipe(imagemin({
            progressive: true,
            svgoPlugins: [{removeViewBox: false}],
            use: [pngquant()]
        }))
        .pipe(gulp.dest('public/img'));
});

// Watch Files For Changes
gulp.task('watch', function() {
    gulp.watch('public/scss/src/template/*.scss', 'sass-template');
    gulp.watch('public/scss/src/schema/*.scss', 'sass-schema');
    gulp.watch('public/scss/src/table/*.scss', 'sass-table');
    gulp.watch('public/scss/src/row/*.scss', 'sass-row');
    //TODO - update plugin watch
    gulp.watch('public/scss/src/throwable/*.scss', 'sass-throwable');

    gulp.watch('public/css/src/template/*.css', 'css-template');
    gulp.watch('public/css/src/shema/*.css', 'css-shema');
    gulp.watch('public/css/src/table/*.css', 'css-table');
    gulp.watch('public/css/src/row/*.css', 'css-row');
    //TODO - update plugin watch
    gulp.watch('public/css/src/throwable/*.css', 'css-throwable');

    gulp.watch('public/js/src/template/*.js', 'js-template');
    gulp.watch('public/js/src/schema/*.js', 'js-schema');
    gulp.watch('public/js/src/table/*.js', 'js-table');
    gulp.watch('public/js/src/row/*.js', 'js-row');
    //TODO - update plugin watch
    gulp.watch('public/js/src/throwable/*.js', 'js-throwable');
});

// Default Task
gulp.task('default', [
    'sass-template',
    'sass-schema',
    'sass-table',
    'sass-row',
    'sass-row-plugins',
    'sass-throwable',
    'css-template',
    'css-schema',
    'css-table',
    'css-row',
    'css-row-plugins-date',
    'css-row-plugins-datetime',
    'css-row-plugins-image',
    'css-row-plugins-price',
    'css-row-plugins-slug',
    'css-row-plugins-text',
    'css-row-plugins-time',
    'css-throwable',
    'js-template',
    'js-schema',
    'js-table',
    'js-row',
    'js-row-plugins-date',
    'js-row-plugins-datetime',
    'js-row-plugins-image',
    'js-row-plugins-price',
    'js-row-plugins-slug',
    'js-row-plugins-text',
    'js-row-plugins-time',
    'js-throwable'
]);<commit_msg>Removed unused plugin static files<commit_after>// Include gulp
var gulp = require('gulp');

// Include Plugins
var rename = require('gulp-rename');
var sass = require('gulp-sass');
var cssnano = require('gulp-cssnano');
var concatcss = require('gulp-concat-css');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var imagemin = require('gulp-imagemin');
var pngquant = require('imagemin-pngquant');

// Compile Sass
gulp.task('sass-template', function() {
    return gulp.src('public/scss/src/template/*.scss')
        .pipe(sass())
        .pipe(gulp.dest('public/css/src/template'));
});

gulp.task('sass-schema', function() {
    return gulp.src('public/scss/src/schema/*.scss')
        .pipe(sass())
        .pipe(gulp.dest('public/css/src/schema'));
});

gulp.task('sass-table', function() {
    return gulp.src('public/scss/src/table/*.scss')
        .pipe(sass())
        .pipe(gulp.dest('public/css/src/table'));
});

gulp.task('sass-row', function() {
    return gulp.src('public/scss/src/row/*.scss')
        .pipe(sass())
        .pipe(gulp.dest('public/css/src/row'));
});

gulp.task('sass-row', function() {
    return gulp.src('public/scss/src/row/*.scss')
        .pipe(sass())
        .pipe(gulp.dest('public/css/src/row'));
});

gulp.task('sass-throwable', function() {
    return gulp.src('public/scss/src/throwable/*.scss')
        .pipe(sass())
        .pipe(gulp.dest('public/css/src/throwable'));
});

// Concatenate & Minify CSS
gulp.task('css-template', ['sass-template'], function() {
    return gulp.src(['public/css/src/template/*.css'])
        .pipe(concatcss('template.css'))
        .pipe(cssnano())
        .pipe(gulp.dest('public/css/dist'));
});

gulp.task('css-schema', ['sass-schema'], function() {
    return gulp.src(['public/css/src/schema/*.css'])
        .pipe(concatcss('schema.css'))
        .pipe(cssnano())
        .pipe(gulp.dest('public/css/dist'));
});

gulp.task('css-table', ['sass-table'], function() {
    return gulp.src(['public/css/src/table/*.css'])
        .pipe(concatcss('table.css'))
        .pipe(cssnano())
        .pipe(gulp.dest('public/css/dist'));
});

gulp.task('css-row', ['sass-row'], function() {
    return gulp.src(['public/css/src/row/*.css'])
        .pipe(concatcss('row.css'))
        .pipe(cssnano())
        .pipe(gulp.dest('public/css/dist'));
});

gulp.task('css-throwable', ['sass-throwable'], function() {
    return gulp.src(['public/css/src/throwable/*.css'])
        .pipe(concatcss('throwable.css'))
        .pipe(cssnano())
        .pipe(gulp.dest('public/css/dist'));
});

// Concatenate & Minify JS
gulp.task('js-template', function() {
    return gulp.src([
            'public/js/src/template/jquery.js',
            'public/js/src/template/bootstrap.js',
            'public/js/src/template/*.js'])
        .pipe(concat('template.js'))
        .pipe(uglify())
        .pipe(gulp.dest('public/js/dist'));
});

gulp.task('js-schema', function() {
    return gulp.src([
            'public/js/src/schema/*.js'])
        .pipe(concat('schema.js'))
        .pipe(uglify())
        .pipe(gulp.dest('public/js/dist'));
});

gulp.task('js-table', function() {
    return gulp.src([
            'public/js/src/table/*.js'])
        .pipe(concat('table.js'))
        .pipe(uglify())
        .pipe(gulp.dest('public/js/dist'));
});

gulp.task('js-row', function() {
    return gulp.src([
            'public/js/src/row/moment.js',
            'public/js/src/row/*.js'])
        .pipe(concat('row.js'))
        .pipe(uglify())
        .pipe(gulp.dest('public/js/dist'));
});

gulp.task('js-throwable', function() {
    return gulp.src([
            'public/js/src/throwable/*.js'])
        .pipe(concat('row.js'))
        .pipe(uglify())
        .pipe(gulp.dest('public/js/dist'));
});

// Optimize Images
gulp.task('img', function() {
    return gulp.src('public/img/**/*')
        .pipe(imagemin({
            progressive: true,
            svgoPlugins: [{removeViewBox: false}],
            use: [pngquant()]
        }))
        .pipe(gulp.dest('public/img'));
});

// Watch Files For Changes
gulp.task('watch', function() {
    gulp.watch('public/scss/src/template/*.scss', 'sass-template');
    gulp.watch('public/scss/src/schema/*.scss', 'sass-schema');
    gulp.watch('public/scss/src/table/*.scss', 'sass-table');
    gulp.watch('public/scss/src/row/*.scss', 'sass-row');
    gulp.watch('public/scss/src/throwable/*.scss', 'sass-throwable');

    gulp.watch('public/css/src/template/*.css', 'css-template');
    gulp.watch('public/css/src/shema/*.css', 'css-shema');
    gulp.watch('public/css/src/table/*.css', 'css-table');
    gulp.watch('public/css/src/row/*.css', 'css-row');
    gulp.watch('public/css/src/throwable/*.css', 'css-throwable');

    gulp.watch('public/js/src/template/*.js', 'js-template');
    gulp.watch('public/js/src/schema/*.js', 'js-schema');
    gulp.watch('public/js/src/table/*.js', 'js-table');
    gulp.watch('public/js/src/row/*.js', 'js-row');
    gulp.watch('public/js/src/throwable/*.js', 'js-throwable');
});

// Default Task
gulp.task('default', [
    'sass-template',
    'sass-schema',
    'sass-table',
    'sass-row',
    'sass-throwable',
    'css-template',
    'css-schema',
    'css-table',
    'css-row',
    'css-throwable',
    'js-template',
    'js-schema',
    'js-table',
    'js-row',
    'js-throwable'
]);
{'fraction_non_alphanumeric': 0.22997148042520094, 'fraction_numerical': 0.0, 'mean_word_length': 2.787187039764359, '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': '7264762', 'n_tokens_mistral': 5620, 'n_tokens_neox': 5602, 'n_words': 618}