<commit_before>var gulp = require('gulp');
var concat = require('gulp-concat');
var rename = require("gulp-rename");
var uglify = require('gulp-uglify');
var plumber = require('gulp-plumber');
var complexity = require('gulp-complexity');

gulp.task('concat', function() {
  gulp.src([
    'src/index.js',
    'src/config.js',
    'src/shared.js',
    'src/auth.js',
    'src/popup.js',
    'src/local.js',
    'src/oauth.js',
    'src/oauth1.js',
    'src/oauth2.js',
    'src/utils.js',
    'src/base64.js'
  ])
    .pipe(concat('satellizer.js'))
    .pipe(gulp.dest('dist'));
});

gulp.task('minify', function() {
  return gulp.src('dist/satellizer.js')
    .pipe(plumber())
    .pipe(uglify())
    .pipe(rename('satellizer.min.js'))
    .pipe(gulp.dest('dist'));
});

gulp.task('copy', function() {
  return gulp.src(['dist/satellizer.js', 'dist/satellizer.min.js'])
    .pipe(gulp.dest('examples/client/vendor'));
});

gulp.task('complexity', function() {
  return gulp.src('dist/satellizer.js')
    .pipe(complexity());
});

gulp.task('watch', function() {
  gulp.watch('src/*.js', ['concat', 'copy', 'minify']);
});

gulp.task('php', function() {
  return gulp.src('examples/client/**/*.*')
    .pipe(gulp.dest('examples/server/php/public'));
});

gulp.task('java', function() {
  return gulp.src('examples/client/**/*.*')
    .pipe(gulp.dest('examples/server/java/src/main/resources/assets'));
});

gulp.task('default', ['concat', 'copy', 'minify', 'watch']);<commit_msg>updated complexity gulp task, removed php & java tasks<commit_after>var gulp = require('gulp');
var concat = require('gulp-concat');
var rename = require("gulp-rename");
var uglify = require('gulp-uglify');
var plumber = require('gulp-plumber');
var complexity = require('gulp-complexity');

gulp.task('concat', function() {
  gulp.src([
    'src/index.js',
    'src/config.js',
    'src/shared.js',
    'src/auth.js',
    'src/popup.js',
    'src/local.js',
    'src/oauth.js',
    'src/oauth1.js',
    'src/oauth2.js',
    'src/utils.js',
    'src/base64.js'
  ])
    .pipe(concat('satellizer.js'))
    .pipe(gulp.dest('dist'));
});

gulp.task('minify', function() {
  return gulp.src('dist/satellizer.js')
    .pipe(plumber())
    .pipe(uglify())
    .pipe(rename('satellizer.min.js'))
    .pipe(gulp.dest('dist'));
});

gulp.task('copy', function() {
  return gulp.src(['dist/satellizer.js', 'dist/satellizer.min.js'])
    .pipe(gulp.dest('examples/client/vendor'));
});

gulp.task('complexity', function() {
  return gulp.src('src/*.js')
    .pipe(complexity());
});

gulp.task('watch', function() {
  gulp.watch('src/*.js', ['concat', 'copy', 'minify']);
});

gulp.task('default', ['concat', 'copy', 'minify', 'watch']);
{'fraction_non_alphanumeric': 0.24260355029585798, 'fraction_numerical': 0.0029585798816568047, 'mean_word_length': 4.0092592592592595, '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': '6831520', 'n_tokens_mistral': 1045, 'n_tokens_neox': 1037, 'n_words': 144}