<commit_before>var gulp        = require('gulp'),
    bowerSrc    = require('gulp-bower'),
    uglify      = require('gulp-uglify'),
    rimraf      = require('rimraf'),
    concat      = require('gulp-concat');

gulp.task('bower', function () {
    return bowerSrc()
        .pipe(gulp.dest('bower'));
});

gulp.task('bower-concat', ['bower'], function () {
    return gulp
        .src([
            'bower_components/angularjs/angular.js',
            'bower_components/timeline/timeline.min.js'
        ])
        .pipe(concat('bower-deps.min.js'))
        .pipe(uglify())
        .pipe(gulp.dest('static/js/'));
});

gulp.task('scripts', ['bower-concat'], function () {
    return gulp.
        src('static/js/src/*.js')
        .pipe(concat('main-deps.min.js'))
        .pipe(uglify())
        .pipe(gulp.dest('static/js/'));
});


gulp.task('default', ['scripts'], function () {
    rimraf('bower_components', function () {
    });

    rimraf('bower', function () {
    });
});<commit_msg>Added gulp tasks for extracting css and fonts for Bootstrap<commit_after>var gulp        = require('gulp'),
    bowerSrc    = require('gulp-bower'),
    uglify      = require('gulp-uglify'),
    rimraf      = require('rimraf'),
    concat      = require('gulp-concat');

gulp.task('bower', function () {
    return bowerSrc();
});

gulp.task('bower-extract-bootstrap-fonts', ['bower'], function () {
    return gulp
        .src([
            'bower_components/bootstrap/fonts/*'
        ])
        .pipe(gulp.dest('static/fonts/'));
});

gulp.task('bower-concat-css', ['bower'], function () {
    return gulp
        .src([
            'bower_components/bootstrap/dist/css/bootstrap.css',
            'bower_components/bootstrap/dist/css/bootstrap-theme.css'
        ])
        .pipe(concat('bower-deps.min.css'))
        .pipe(gulp.dest('static/css/'));
});

gulp.task('bower-concat-js', ['bower'], function () {
    return gulp
        .src([
            'bower_components/angularjs/angular.js',
            'bower_components/bootstrap/dist/js/bootstrap.js',
            'bower_components/timeline/timeline.min.js'
        ])
        .pipe(concat('bower-deps.min.js'))
        .pipe(uglify())
        .pipe(gulp.dest('static/js/'));
});

gulp.task('scripts', ['bower-concat-js', 'bower-concat-css', 'bower-extract-bootstrap-fonts'], function () {
    return gulp.
        src('static/js/src/*.js')
        .pipe(concat('main-deps.min.js'))
        .pipe(uglify())
        .pipe(gulp.dest('static/js/'));
});


gulp.task('default', ['scripts'], function () {
    rimraf('bower_components', function () {
    });
});
{'fraction_non_alphanumeric': 0.1981637337413925, 'fraction_numerical': 0.0, 'mean_word_length': 2.4913217623498, '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': '2164011', 'n_tokens_mistral': 890, 'n_tokens_neox': 877, 'n_words': 113}