<commit_before>'use script';

var gulp = require('gulp');
var webserver = require('gulp-webserver');
var sass = require('gulp-sass');
var sourcemaps = require('gulp-sourcemaps');
var autoprefixer = require('gulp-autoprefixer');
var flatten = require('gulp-flatten');

gulp.task('serve-static', function () {
    gulp.src('.')
        .pipe(webserver({
            https: true,
            port: '8443',
            host: 'localhost',
            directoryListing: true,
            fallback: 'index.html'
        }));
});

var input = 'AddInCompose/**/*.scss';
var output = 'AddInCompose';
var sassOptions = {
    errLogToConsole: true,
    outputStyle: 'expanded'
};

var copyInput = 'AddInCompose/TaskPane/TaskPane.js';
var copyOutputFolder = 'thunderbird/emoji@ganss.org/chrome/content';

gulp.task('sass', function () {
    return gulp
        .src(input)
        .pipe(sourcemaps.init())
        .pipe(sass(sassOptions).on('error', sass.logError))
        .pipe(autoprefixer())
        .pipe(sourcemaps.write('.'))
        .pipe(gulp.dest(output))
        .pipe(flatten())
        .pipe(gulp.dest('./thunderbird/<EMAIL>/chrome/content'));
});

gulp.task('copyfiles', function () {
    return gulp.src(copyInput)
        .pipe(gulp.dest(copyOutputFolder));
});

gulp.task('watch', function () {
    return gulp
        // Watch the input folder for change,
        // and run `sass` task when something happens
        .watch(input, ['sass'])
        // When there is a change,
        // log a message in the console
        .on('change', function (event) {
            console.log('File ' + event.path + ' was ' + event.type + ', running tasks...');
        });
});

gulp.task('default', ['sass', 'watch' /*, possible other tasks... */]);

gulp.task('prod', ['sass'], function () {
    return gulp
        .src(input)
        .pipe(sass({ outputStyle: 'compressed' }))
        .pipe(autoprefixer())
        .pipe(gulp.dest(output));
});
<commit_msg>Add copy task<commit_after>'use script';

var gulp = require('gulp');
var webserver = require('gulp-webserver');
var sass = require('gulp-sass');
var sourcemaps = require('gulp-sourcemaps');
var autoprefixer = require('gulp-autoprefixer');
var flatten = require('gulp-flatten');

gulp.task('serve-static', function () {
    gulp.src('.')
        .pipe(webserver({
            https: true,
            port: '8443',
            host: 'localhost',
            directoryListing: true,
            fallback: 'index.html'
        }));
});

var input = 'AddInCompose/**/*.scss';
var output = 'AddInCompose';
var sassOptions = {
    errLogToConsole: true,
    outputStyle: 'expanded'
};

var copyInput = 'AddInCompose/TaskPane/TaskPane.js';
var copyOutputFolder = 'thunderbird/emoji@ganss.org/chrome/content';

gulp.task('sass', function () {
    return gulp
        .src(input)
        .pipe(sourcemaps.init())
        .pipe(sass(sassOptions).on('error', sass.logError))
        .pipe(autoprefixer())
        .pipe(sourcemaps.write('.'))
        .pipe(gulp.dest(output))
        .pipe(flatten())
        .pipe(gulp.dest('./thunderbird/emoji@ganss.org/chrome/content'));
});

gulp.task('copyfiles', function () {
    return gulp.src(copyInput)
        .pipe(gulp.dest(copyOutputFolder));
});

function logEvent(event) {
    console.log('File ' + event.path + ' was ' + event.type + ', running tasks...');
}

gulp.task('watch-sass', function () {
    return gulp
        .watch(input, ['sass'])
        .on('change', logEvent)
});

gulp.task('watch-copy', function () {
    return gulp
        .watch(copyInput, ['copyfiles'])
        .on('change', logEvent);
});

gulp.task('watch', ['watch-sass', 'watch-copy']);

gulp.task('default', ['sass', 'watch' /*, possible other tasks... */]);

gulp.task('prod', ['sass', 'copy'], function () {
    return gulp
        .src(input)
        .pipe(sass({ outputStyle: 'compressed' }))
        .pipe(autoprefixer())
        .pipe(gulp.dest(output));
});

{'fraction_non_alphanumeric': 0.1847246891651865, 'fraction_numerical': 0.0020299416391778738, 'mean_word_length': 2.8234723569350146, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 3, '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': '1911563', 'n_tokens_mistral': 1308, 'n_tokens_neox': 1315, 'n_words': 243}