<commit_before>var
gulp = require('gulp'),
uglify = require('gulp-uglify'),
karma = require('gulp-karma'),
rename = require('gulp-rename'),
express = require('express'),
gutil = require('gulp-util'),
path = require('path'),

build = 'dist/';

gulp.task('test', function () {
    return gulp.src([
        'bower_components/angular/angular.js',
        'bower_components/angular-mocks/angular-mocks.js',
        'src/angular-youtube-embed.js',
        'test/unit/**/*.coffee'
    ])
    .pipe(karma({
        configFile: 'test/config/karma.conf.coffee',
        action: 'watch'
    }));
});

gulp.task('gh', function () {
    gulp.src('src/*')
    .pipe(gulp.dest('gh-pages'));
});

gulp.task('dist', function () {
    gulp.src('src/angular-youtube-embed.js')
        .pipe(uglify())
        .pipe(rename(function (path) {
            path.basename += '.min';
        }))
        .pipe(gulp.dest(build));
});

gulp.task('host', function () {
    var
    app = express(),
    port = 8888;
    app.use(express.static(path.resolve('src/')));
    app.listen(port, function() {
        gutil.log('Listening on', port);
    });
});

gulp.task('default', ['dist', 'host', 'test']);<commit_msg>update gulp gh task to copy subfolders, now that we have a demo/<commit_after>var
gulp = require('gulp'),
uglify = require('gulp-uglify'),
karma = require('gulp-karma'),
rename = require('gulp-rename'),
express = require('express'),
gutil = require('gulp-util'),
path = require('path'),

build = 'dist/';

gulp.task('test', function () {
    return gulp.src([
        'bower_components/angular/angular.js',
        'bower_components/angular-mocks/angular-mocks.js',
        'src/angular-youtube-embed.js',
        'test/unit/**/*.coffee'
    ])
    .pipe(karma({
        configFile: 'test/config/karma.conf.coffee',
        action: 'watch'
    }));
});

gulp.task('gh', function () {
    gulp.src('src/**/*')
    .pipe(gulp.dest('gh-pages'));
});

gulp.task('dist', function () {
    gulp.src('src/angular-youtube-embed.js')
        .pipe(uglify())
        .pipe(rename(function (path) {
            path.basename += '.min';
        }))
        .pipe(gulp.dest(build));
});

gulp.task('host', function () {
    var
    app = express(),
    port = 8888;
    app.use(express.static(path.resolve('src/')));
    app.listen(port, function() {
        gutil.log('Listening on', port);
    });
});

gulp.task('default', ['dist', 'host', 'test']);
{'fraction_non_alphanumeric': 0.21493399339933994, 'fraction_numerical': 0.0033003300330033004, 'mean_word_length': 2.9430894308943087, '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': '1587037', 'n_tokens_mistral': 860, 'n_tokens_neox': 856, 'n_words': 131}