<commit_before>var gulp = require('gulp')
  , browserSync = require('browser-sync')
  , reload = browserSync.reload
  , changed = require('gulp-changed')
  , autoprefixer = require('gulp-autoprefixer')
  , sass = require('gulp-sass')
  , gutil = require('gulp-util')
  , uglify = require('gulp-uglify')


gulp.task('browser-sync', function () {
  browserSync({
    server: {
      baseDir: "./"
    }
  })
})

gulp.task('bs-reload', function () {
    browserSync.reload();
})

gulp.task('sass', function () {
  return gulp.src('scss/**/*.scss')
    .pipe(changed('public'))
    .pipe(sass({errLogToConsole: true}).on('error', console.error.bind(console)))
    .pipe(autoprefixer('last 2 versions'))
    .pipe(gulp.dest('public'))
    .pipe(reload({stream:true}))
})

gulp.task('js', function () {
  return gulp.src('js/**/*.js')
    .pipe(changed('public'))
    .pipe(uglify().on('error', console.error.bind(console)))
    .pipe(gulp.dest('public'))
    .pipe(reload({stream:true}))
})


gulp.task('default', ['sass', 'browser-sync'], function(){
  gulp.watch(['scss/*.scss'], ['sass'])
  gulp.watch(['js/**/*.js'], ['js'])
  gulp.watch('*.html', ['bs-reload'])
})<commit_msg>fix(gulpfile): added js task to startup<commit_after>var gulp = require('gulp')
  , browserSync = require('browser-sync')
  , reload = browserSync.reload
  , changed = require('gulp-changed')
  , autoprefixer = require('gulp-autoprefixer')
  , sass = require('gulp-sass')
  , gutil = require('gulp-util')
  , uglify = require('gulp-uglify')


gulp.task('browser-sync', function () {
  browserSync({
    server: {
      baseDir: "./"
    }
  })
})

gulp.task('bs-reload', function () {
    browserSync.reload();
})

gulp.task('sass', function () {
  return gulp.src('scss/**/*.scss')
    .pipe(changed('public'))
    .pipe(sass({errLogToConsole: true}).on('error', console.error.bind(console)))
    .pipe(autoprefixer('last 2 versions'))
    .pipe(gulp.dest('public'))
    .pipe(reload({stream:true}))
})

gulp.task('js', function () {
  return gulp.src('js/**/*.js')
    .pipe(changed('public'))
    .pipe(uglify().on('error', console.error.bind(console)))
    .pipe(gulp.dest('public'))
    .pipe(reload({stream:true}))
})


gulp.task('default', ['js', 'sass', 'browser-sync'], function(){
  gulp.watch(['scss/*.scss'], ['sass'])
  gulp.watch(['js/**/*.js'], ['js'])
  gulp.watch('*.html', ['bs-reload'])
})
{'fraction_non_alphanumeric': 0.2407718120805369, 'fraction_numerical': 0.0008389261744966443, 'mean_word_length': 4.107066381156317, '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': '854270', 'n_tokens_mistral': 880, 'n_tokens_neox': 877, 'n_words': 120}