<commit_before>var fs = require('fs');
var del = require('del');
var gulp = require('gulp');
var replace = require('gulp-replace');
var es = require('event-stream');
var runSequence = require('run-sequence');
var cloudfront_invalidate = require('gulp-cloudfront-invalidate');
var child_process = require('child_process');

var packageInfo = require('../package.json');

// Special travis package task that copies all outputs into travis/s3-upload folder for S3 upload
gulp.task('travis-package', function (cb) {
    del.sync(['travis']);

    var TRAVIS_OS = process.env['TRAVIS_OS_NAME'];

    if (TRAVIS_OS !== 'linux') {
        console.log('osx build');
    } else {
        runSequence(
            'package-linux',
            'unpack-linux',
            function () {
                console.log('FINISHED PACKING LINUX');
                const spawn = child_process.spawn('docker', ['exec', '-i', 'builder', 'snapcraft']);

                spawn.stdout.on('data', (data) => {
                  console.log(`stdout: ${data}`);
                });

                spawn.stderr.on('data', (data) => {
                  console.log(`stderr: ${data}`);
                });

                spawn.on('close', (code) => {
                    es.merge(
                        gulp
                            .src('dist/*.snap')
                            .pipe(gulp.dest('dist/_downloads/linux'))
                    )
                });
            }
        );
    }
});
<commit_msg>Update travis.js<commit_after>var fs = require('fs');
var del = require('del');
var gulp = require('gulp');
var replace = require('gulp-replace');
var es = require('event-stream');
var runSequence = require('run-sequence');
var cloudfront_invalidate = require('gulp-cloudfront-invalidate');
var child_process = require('child_process');

var packageInfo = require('../package.json');

// Special travis package task that copies all outputs into travis/s3-upload folder for S3 upload
gulp.task('travis-package', function (cb) {
    del.sync(['travis']);

    var TRAVIS_OS = process.env['TRAVIS_OS_NAME'];

    if (TRAVIS_OS !== 'linux') {
        console.log('osx build');
    } else {
        runSequence(
            'package-linux',
            'unpack-linux',
            function () {
                console.log('FINISHED PACKING LINUX');
                const spawn = child_process.spawn('docker', ['exec', '-i', 'builder', 'snapcraft']);

                spawn.stdout.on('data', (data) => {
                  console.log(`stdout: ${data}`);
                });

                spawn.stderr.on('data', (data) => {
                  console.log(`stderr: ${data}`);
                });

                spawn.on('close', (code) => {
                    es.merge(
                        gulp
                            .src('dist/*.snap')
                            .pipe(gulp.dest('dist/_downloads/linux'))
                    ).on('end', function () {
                        fs.readdirSync('./').forEach(file => {
                          console.log(file);
                        });
                        cb();
                    });
                });
            }
        );
    }
});

{'fraction_non_alphanumeric': 0.16015014075695966, 'fraction_numerical': 0.0012511729746637473, 'mean_word_length': 1.6451612903225807, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1493245', 'n_tokens_mistral': 901, 'n_tokens_neox': 866, 'n_words': 170}