<commit_before>const gulp = require('gulp')
const sass = require('gulp-sass')
const livereload = require('gulp-livereload')
const concat = require('gulp-concat')
const rollup = require('gulp-rollup')
const uglify = require('gulp-uglify')
const nodemon = require('gulp-nodemon')

const babel = require('rollup-plugin-babel')
const npm = require('rollup-plugin-npm')
const commonjs = require('rollup-plugin-commonjs')

const dirs = {
  sass: 'build/styles/*.scss',
  js: 'build/scripts/**/*.js',
  vectors: 'build/vectors/*'
}

gulp.task('styles', function () {
  return gulp.src(dirs.sass)
    .pipe(concat('styles.scss'))
    .pipe(sass({
      outputStyle: 'compressed',
      includePaths: ['build/styles']
    }).on('error', sass.logError))
    .pipe(gulp.dest('dist'))
    .pipe(livereload())
})

gulp.task('scripts', function () {
  return gulp.src('build/scripts/app.js', { read: false })
    .pipe(rollup({
      plugins: [
        babel({
          presets: ['es2015-rollup']
        }),
        npm({
          main: true,
          jsnext: true
        }),
        commonjs({
          include: 'node_modules/**',
          exclude: '**/*.css'
        })
      ]
    })).on('error', console.error)
    .pipe(uglify())
    .pipe(gulp.dest('dist'))
    .pipe(livereload())
})

gulp.task('server', ['watch'], function () {
  nodemon({
    script: 'index.js',
    ignore: ['build/', 'dist/'],
    ext: 'js hbs'
  }).on('restart', function () {
    process.env.restarted = true
  })
})

gulp.task('watch', function () {
  livereload.listen()

  gulp.watch(dirs.sass, ['styles'])
  gulp.watch(dirs.js, ['scripts'])
})

gulp.task('default', ['styles', 'scripts'])<commit_msg>Adjusted gulp tasks<commit_after>const gulp = require('gulp')
const sass = require('gulp-sass')
const livereload = require('gulp-livereload')
const concat = require('gulp-concat')
const rollup = require('gulp-rollup')
const uglify = require('gulp-uglify')
const nodemon = require('gulp-nodemon')

const babel = require('rollup-plugin-babel')
const npm = require('rollup-plugin-npm')
const commonjs = require('rollup-plugin-commonjs')

const dirs = {
  scss: 'assets/scss/**/*.scss',
  js: 'assets/js/**/*.js',
  images: 'assets/images/**/*'
}

gulp.task('styles', () => {
  return gulp
    .src(dirs.scss)
    .pipe(concat('styles.scss'))
    .pipe(sass({
      outputStyle: 'compressed',
      includePaths: ['assets/scss']
    }).on('error', sass.logError))
    .pipe(gulp.dest('dist'))
    .pipe(livereload())
})

gulp.task('scripts', () => {
  return gulp
    .src('assets/js/app.js', { read: false })
    .pipe(rollup({
      plugins: [
        babel({
          presets: ['es2015-rollup']
        }),
        npm({
          main: true,
          jsnext: true
        }),
        commonjs({
          include: 'node_modules/**',
          exclude: '**/*.css'
        })
      ]
    })).on('error', console.error)
    .pipe(uglify())
    .pipe(gulp.dest('dist'))
    .pipe(livereload())
})

gulp.task('images', () => {
  return gulp
    .src(dirs.images)
    .pipe(gulp.dest('dist/images'))
})

gulp.task('server', ['watch'], () => {
  nodemon({
    script: 'index.js',
    ignore: ['assets/', 'dist/'],
    ext: 'js hbs'
  }).on('restart', function () {
    process.env.restarted = true
  })
})

gulp.task('watch', () => {
  livereload.listen()

  gulp.watch(dirs.scss, ['styles'])
  gulp.watch(dirs.js, ['scripts'])
  gulp.watch(dirs.images, ['images'])
})

gulp.task('default', ['styles', 'scripts', 'images'])
{'fraction_non_alphanumeric': 0.21024027459954234, 'fraction_numerical': 0.002288329519450801, 'mean_word_length': 3.0288018433179724, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '1814231', 'n_tokens_mistral': 1277, 'n_tokens_neox': 1247, 'n_words': 215}