<commit_before>var gulp = require('gulp');
var bowerFiles = require('main-bower-files');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var livereload = require('gulp-livereload');
var jshint = require('gulp-jshint');

// jshint
gulp.task('jshint', function() {
  return gulp.src('src/js/**/*.js')
    .pipe(jshint())
    .pipe(jshint.reporter('jshint-stylish'))
});

// concat js into one min file javascript.min.js
gulp.task('js-min', function() {
  return gulp.src(['src/js/app.js', 'src/js/**/*.js'])
    .pipe(concat('javascript.js'))
    .pipe(gulp.dest('js'))
    .pipe(uglify())
    .pipe(rename('javascript.min.js'))
    .pipe(gulp.dest('js'));
});

// All bower dependecies become vendor.min.js
gulp.task('vendor-min', function() {
  return gulp.src(bowerFiles())
    .pipe(concat('vendor.js'))
    .pipe(gulp.dest('js'))
    .pipe(uglify())
    .pipe(rename('vendor.min.js'))
    .pipe(gulp.dest('js'));
});

// the default task
// checks all files and reloads index
gulp.task('default', function() {
  livereload.listen();
  gulp.watch(['src/**/*', 'index.html'], 
    [ 
      function() { livereload.reload('index.html'); }
    ]
  );
});

gulp.task('build', ['jshint', 'vendor-min', 'js-min'])<commit_msg>concat only<commit_after>var gulp = require('gulp');
var bowerFiles = require('main-bower-files');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var livereload = require('gulp-livereload');
var jshint = require('gulp-jshint');

// jshint
gulp.task('jshint', function() {
  return gulp.src('src/js/**/*.js')
    .pipe(jshint())
    .pipe(jshint.reporter('jshint-stylish'))
});

// concat js into one min file javascript.min.js
gulp.task('js-min', function() {
  return gulp.src(['src/js/app.js', 'src/js/**/*.js'])
    .pipe(concat('javascript.js'))
    .pipe(gulp.dest('js'))
    .pipe(uglify())
    .pipe(rename('javascript.min.js'))
    .pipe(gulp.dest('js'));
});

// Only Concat files javascript.js
gulp.task('js-concat', function() {
  return gulp.src(['src/js/app.js', 'src/js/**/*.js'])
    .pipe(concat('javascript.js'))
    .pipe(gulp.dest('js'))
});

// All bower dependecies become vendor.min.js
gulp.task('vendor-min', function() {
  return gulp.src(bowerFiles())
    .pipe(concat('vendor.js'))
    .pipe(gulp.dest('js'))
    .pipe(uglify())
    .pipe(rename('vendor.min.js'))
    .pipe(gulp.dest('js'));
});

// the default task
// checks all files and reloads index
gulp.task('default', function() {
  livereload.listen();
  gulp.watch(['src/**/*', 'index.html'], 
    [ 
      'jshint',
      'js-concat',
      function() { livereload.reload('index.html'); }
    ]
  );
});

gulp.task('build', ['jshint', 'vendor-min', 'js-min'])
{'fraction_non_alphanumeric': 0.23120973514674303, 'fraction_numerical': 0.0, 'mean_word_length': 3.8440207972270364, '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': '3979369', 'n_tokens_mistral': 1055, 'n_tokens_neox': 1042, 'n_words': 171}