<commit_before>'use strict';

var gulp = require('gulp'),
    gutil = require('gulp-util'),
    connect = require('gulp-connect'),
    sass = require('gulp-sass'),
    uglify = require('gulp-uglify'),
    concat = require('gulp-concat'),
    serve = require('gulp-serve'),
    ghPages = require('gulp-gh-pages'),
    clean = require('gulp-clean'),
    gih = require('gulp-include-html');

gulp.task('js', function() {
  gulp.src('./app/js/*.js')
    .pipe(uglify())
    .pipe(gulp.dest('dest/assets'))
    .pipe(connect.reload());
});

gulp.task('sass', function() {
  gulp.src('./app/sass/app.scss')
    .pipe(sass().on('error', gutil.log))
    .pipe(gulp.dest('dest/assets'))
    .pipe(connect.reload());
});

gulp.task('html', function() {
  gulp.src(['./*.html', './views/*.html'])
    .pipe(gih({
      baseDir:'./views/',
      ignore:'./views/',
    }))
    .pipe(gulp.dest('dest'))
    .pipe(connect.reload());
});

gulp.task('connect', function() {
  connect.server({
    root: ['dest'],
    port: 8080,
    livereload: true
  })
});

gulp.task('watch', function () {
  gulp.watch(['./*.html', './templates/*.html'], ['html']);
  gulp.watch(['./src/styles/*.scss'], ['sass']);
  gulp.watch(['./src/scripts/*.js'], ['js']);
});

gulp.task('build', ['html', 'sass', 'js']);

// gulp.task('serve', ['build'], serve('build'));

// gulp.task('deploy', ['build'], function () {
//   gulp.src('./build/**/*')
//     .pipe(ghPages({
//     remoteUrl: 'https://github.com/niarve/proj5-diamonds-deploy.git',
//     branch: 'master'
//     }))
// });

gulp.task('default', ['connect', 'watch', 'build']);<commit_msg>added gulp serve<commit_after>'use strict';

var gulp = require('gulp'),
    gutil = require('gulp-util'),
    connect = require('gulp-connect'),
    sass = require('gulp-sass'),
    uglify = require('gulp-uglify'),
    concat = require('gulp-concat'),
    serve = require('gulp-serve'),
    ghPages = require('gulp-gh-pages'),
    clean = require('gulp-clean'),
    gih = require('gulp-include-html');

gulp.task('js', function() {
  gulp.src('./app/js/*.js')
    .pipe(uglify())
    .pipe(gulp.dest('dest/assets'))
    .pipe(connect.reload());
});

gulp.task('sass', function() {
  gulp.src('./app/sass/app.scss')
    .pipe(sass().on('error', gutil.log))
    .pipe(gulp.dest('dest/assets'))
    .pipe(connect.reload());
});

gulp.task('html', function() {
  gulp.src(['./*.html', './views/*.html'])
    .pipe(gih({
      baseDir:'./views/',
      ignore:'./views/',
    }))
    .pipe(gulp.dest('dest'))
    .pipe(connect.reload());
});

gulp.task('connect', function() {
  connect.server({
    root: ['dest'],
    port: 8080,
    livereload: true
  })
});

gulp.task('watch', function () {
  gulp.watch(['./*.html', './templates/*.html'], ['html']);
  gulp.watch(['./src/styles/*.scss'], ['sass']);
  gulp.watch(['./src/scripts/*.js'], ['js']);
});

gulp.task('build', ['html', 'sass', 'js']);

gulp.task('serve', ['build'], serve('dest'));

// gulp.task('deploy', ['build'], function () {
//   gulp.src('./build/**/*')
//     .pipe(ghPages({
//     branch: 'master'
//     }))
// });

gulp.task('default', ['connect', 'watch', 'build']);
{'fraction_non_alphanumeric': 0.28059606848446417, 'fraction_numerical': 0.0028535193405199747, 'mean_word_length': 3.2808683853459972, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '5231645', 'n_tokens_mistral': 1189, 'n_tokens_neox': 1171, 'n_words': 165}