<commit_before>// Include gulp and plugins
var gulp    = require('gulp'); 
var jshint      = require('gulp-jshint');
var sass        = require('gulp-sass');
var concat      = require('gulp-concat');
var uglify      = require('gulp-uglify');
var rename      = require('gulp-rename');
var clean       = require('gulp-clean');
var browserSync = require('browser-sync');
var reload      = browserSync.reload;
var merge       = require('merge-stream');

// Clean dist folder
gulp.task('clean',function() {
    return gulp.src(
        ['dist'],{read:false})
        .pipe(clean());
});

gulp.task('copy',['clean'],function() {
    var app = gulp.src(['src/*.html'])
        .pipe(gulp.dest('dist'));

    var bower = gulp.src([
            'bower_components/*',
            'bower_components/**/*',
            'bower_components/**/**/**/*',
            'bower_components/**/**/**/**/*'
        ])
        .pipe(gulp.dest('dist/bower_components'));

    var node_modules = gulp.src(['node_modules/*',])
        .pipe(gulp.dest('dist/node_modules'));

    var angular = gulp.src(['src/app/*'])
        .pipe(gulp.dest('dist/app'));

    var data = gulp.src(['data/gtfs/*'])
        .pipe(gulp.dest('dist/data'));

    return merge(app,bower,node_modules,angular,data);
});

// Watch files for changes and reload
gulp.task('serve',function() {
    browserSync({
        port: 3000,
        notify: false,
        logPrefix: 'PSK',
        server: {
            baseDir: ['dist'],
        }
    });

    gulp.watch(['src/*.html'], reload);
    gulp.watch(['src/sass/*.scss'], ['styles', reload]);
    gulp.watch(['src/css/*.css'], ['elements', reload]);
    gulp.watch(['src/scripts/*.js','src/*.html}'], ['jshint']);
    gulp.watch(['src/images/**/*'], reload);
});

// Build and serve the output from the dist build
gulp.task('serve:dist', ['default'], function () {
    browserSync({
        port: 3001,
        notify: false,
        logPrefix: 'PSK',<commit_msg>Modified the name bower_components to libs/ after transfer.<commit_after>// Include gulp and plugins
var gulp    = require('gulp'); 
var jshint      = require('gulp-jshint');
var sass        = require('gulp-sass');
var concat      = require('gulp-concat');
var uglify      = require('gulp-uglify');
var rename      = require('gulp-rename');
var clean       = require('gulp-clean');
var browserSync = require('browser-sync');
var reload      = browserSync.reload;
var merge       = require('merge-stream');

// Clean dist folder
gulp.task('clean',function() {
    return gulp.src(
        ['dist'],{read:false})
        .pipe(clean());
});

gulp.task('copy',['clean'],function() {
    var app = gulp.src(['src/*.html'])
        .pipe(gulp.dest('dist'));

    var bower = gulp.src([
            'libs/*',
            'libs/**/*',
            'libs/**/**/**/*',
            'libs/**/**/**/**/*'
        ])
        .pipe(gulp.dest('dist/libs'));

    var node_modules = gulp.src(['node_modules/*',])
        .pipe(gulp.dest('dist/node_modules'));

    var angular = gulp.src(['src/app/*'])
        .pipe(gulp.dest('dist/app'));

    var data = gulp.src(['data/gtfs/*'])
        .pipe(gulp.dest('dist/data'));

    return merge(app,bower,node_modules,angular,data);
});

// Watch files for changes and reload
gulp.task('serve',function() {
    browserSync({
        port: 3000,
        notify: false,
        logPrefix: 'PSK',
        server: {
            baseDir: ['dist'],
        }
    });

    gulp.watch(['src/*.html'], reload);
    gulp.watch(['src/sass/*.scss'], ['styles', reload]);
    gulp.watch(['src/css/*.css'], ['elements', reload]);
    gulp.watch(['src/script.js','src/scripts/*.js','src/*.html'], ['jshint']);
    gulp.watch(['src/images/**/*'], reload);
});

// Build and serve the output from the dist build
gulp.task('serve:dist', ['default'], function () {
    browserSync({
        port: 3001,
        notify: false,
        logPrefix: 'PSK',
{'fraction_non_alphanumeric': 0.21229905588160244, 'fraction_numerical': 0.004082674151569278, 'mean_word_length': 2.622920517560074, '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': '1139023', 'n_tokens_mistral': 1312, 'n_tokens_neox': 1266, 'n_words': 242}