<commit_before>var gulp        = require('gulp'),
    plugins     = require('gulp-load-plugins')(),
    browserSync = require('browser-sync'),
    reload      = browserSync.reload,
    config = require('./package.json');

// error function for plumber
var onError = function (err) {
  console.log(err);
  this.emit('end');
};

gulp.task('javascript', function() {
    return gulp.src([config.cwd + 'js/*.dist.js'])
        .pipe(plugins.plumber({ errorHandler: onError }))
        .pipe(plugins.fileInclude({
            prefix: '// @@',
        }))
        .pipe(plugins.rename({ extname: '' }))
        .pipe(plugins.rename({ extname: '.js' }))
        .pipe(gulp.dest(config.cwd + 'js'))
        .pipe(plugins.uglify())
        .pipe(plugins.rename({ extname: '.min.js' }))
        .pipe(gulp.dest(config.cwd + 'js'));
});

gulp.task('css', function() {
    return gulp.src([config.cwd + 'less/*.less', '!' + config.cwd + 'less/_*.less'])
        .pipe(plugins.plumber({ errorHandler: onError }))
        .pipe(plugins.less())
        .pipe(plugins.autoprefixer())
        .pipe(gulp.dest(config.cwd + 'css'))
        .pipe(plugins.minifyCss())
        .pipe(plugins.rename({ extname: '.min.css' }))
        .pipe(gulp.dest(config.cwd + 'css'))
        .pipe(reload({stream: true}));
});

gulp.task('serve', ['build'], function() {
    browserSync({
        // using vagrant or other server:
        // proxy: "http://localhost:8000"
        // or use builtin server:
        server: config.cwd
    });

    gulp.watch([config.cwd + 'less/**/*.less'], ['css']);
    gulp.watch([config.cwd + 'js/**/*.dist.js', config.cwd + 'js/**/_*.js'], ['javascript', reload]);
    gulp.watch([config.cwd + '**/*.html'], reload);
});

gulp.task('build', ['css', 'javascript']);
gulp.task('default', ['serve']);<commit_msg>update browsersync syntax<commit_after>var gulp        = require('gulp'),
    plugins     = require('gulp-load-plugins')(),
    browserSync = require('browser-sync').create(),
    reload      = browserSync.reload,
    config = require('./package.json');

// error function for plumber
var onError = function (err) {
  console.log(err);
  this.emit('end');
};

gulp.task('javascript', function() {
    return gulp.src([config.cwd + 'js/*.dist.js'])
        .pipe(plugins.plumber({ errorHandler: onError }))
        .pipe(plugins.fileInclude({
            prefix: '// @@',
        }))
        .pipe(plugins.rename({ extname: '' }))
        .pipe(plugins.rename({ extname: '.js' }))
        .pipe(gulp.dest(config.cwd + 'js'))
        .pipe(plugins.uglify())
        .pipe(plugins.rename({ extname: '.min.js' }))
        .pipe(gulp.dest(config.cwd + 'js'));
});

gulp.task('css', function() {
    return gulp.src([config.cwd + 'less/*.less', '!' + config.cwd + 'less/_*.less'])
        .pipe(plugins.plumber({ errorHandler: onError }))
        .pipe(plugins.less())
        .pipe(plugins.autoprefixer())
        .pipe(gulp.dest(config.cwd + 'css'))
        .pipe(plugins.minifyCss())
        .pipe(plugins.rename({ extname: '.min.css' }))
        .pipe(gulp.dest(config.cwd + 'css'))
        .pipe(reload({stream: true}));
});

gulp.task('serve', ['build'], function() {
    browserSync.init({
        // using vagrant or other server:
        // proxy: "http://localhost:8000"
        // or use builtin server:
        server: config.cwd
    });

    gulp.watch([config.cwd + 'less/**/*.less'], ['css']);
    gulp.watch([config.cwd + 'js/**/*.dist.js', config.cwd + 'js/**/_*.js'], ['javascript', reload]);
    gulp.watch([config.cwd + '**/*.html'], reload);
});

gulp.task('build', ['css', 'javascript']);
gulp.task('default', ['serve']);
{'fraction_non_alphanumeric': 0.2236842105263158, 'fraction_numerical': 0.0021929824561403508, 'mean_word_length': 2.7121057985757884, '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': '1139019', 'n_tokens_mistral': 1237, 'n_tokens_neox': 1229, 'n_words': 201}