<commit_before>var gulp = require('gulp');
var changed = require('gulp-changed');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var sourcemaps = require('gulp-sourcemaps');
var newer = require('gulp-newer');
var ngAnnotate = require('gulp-ng-annotate');
var webserver = require('gulp-webserver');
var angularTemplateCache = require('gulp-angular-templatecache');
var minifyHTML = require('gulp-minify-html');
var eslint = require('gulp-eslint');
var addStream = require('add-stream');
var del = require('del');

var paths = {
  scripts: ['src/**/*.js'],
  templates: ['src/templates/**/*.html']
};
var dist = 'dist';

// Delete current dist folder
gulp.task('clean', function () {
  return del([dist]);
});

function templates () {
  return gulp.src(paths.templates)
    .pipe(minifyHTML({conditionals: true, spare: true}))
    .pipe(angularTemplateCache());
}

gulp.task('lint', function () {
  return gulp.src(paths.scripts)
    .pipe(eslint())
    .pipe(eslint.format())
    .pipe(eslint.failOnError());
});

// Minify and copy all JavaScript
// with sourcemaps all the way down
gulp.task('scripts', ['clean', 'lint'], function () {
  return gulp.src(paths.scripts)
    .pipe(changed(dist))
    .pipe(newer(dist))
    .pipe(sourcemaps.init())
      .pipe(ngAnnotate())
      .pipe(uglify())
      .pipe(addStream.obj(templates()))
      .pipe(concat('usabilla.modules.min.js'))
    .pipe(sourcemaps.write())
    .pipe(gulp.dest(dist));
});

// Rerun the task when a file changes
gulp.task('watch', function () {
  gulp.watch(paths.scripts, ['scripts']);
});

// Start a development server
gulp.task('webserver', ['scripts', 'watch'], function () {
  gulp.src('.')
    .pipe(webserver({
      livereload: true,
      open: true
    }));
});

gulp.task('default', ['scripts', 'watch']);
<commit_msg>Do not open browser window when starting webserver<commit_after>var gulp = require('gulp');
var changed = require('gulp-changed');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var sourcemaps = require('gulp-sourcemaps');
var newer = require('gulp-newer');
var ngAnnotate = require('gulp-ng-annotate');
var webserver = require('gulp-webserver');
var angularTemplateCache = require('gulp-angular-templatecache');
var minifyHTML = require('gulp-minify-html');
var eslint = require('gulp-eslint');
var addStream = require('add-stream');
var del = require('del');

var paths = {
  scripts: ['src/**/*.js'],
  templates: ['src/templates/**/*.html']
};
var dist = 'dist';

// Delete current dist folder
gulp.task('clean', function () {
  return del([dist]);
});

function templates () {
  return gulp.src(paths.templates)
    .pipe(minifyHTML({conditionals: true, spare: true}))
    .pipe(angularTemplateCache());
}

gulp.task('lint', function () {
  return gulp.src(paths.scripts)
    .pipe(eslint())
    .pipe(eslint.format())
    .pipe(eslint.failOnError());
});

// Minify and copy all JavaScript
// with sourcemaps all the way down
gulp.task('scripts', ['clean', 'lint'], function () {
  return gulp.src(paths.scripts)
    .pipe(changed(dist))
    .pipe(newer(dist))
    .pipe(sourcemaps.init())
      .pipe(ngAnnotate())
      .pipe(uglify())
      .pipe(addStream.obj(templates()))
      .pipe(concat('usabilla.modules.min.js'))
    .pipe(sourcemaps.write())
    .pipe(gulp.dest(dist));
});

// Rerun the task when a file changes
gulp.task('watch', function () {
  gulp.watch(paths.scripts, ['scripts']);
});

// Start a development server
gulp.task('webserver', ['scripts', 'watch'], function () {
  gulp.src('.')
    .pipe(webserver({
      livereload: true
    }));
});

gulp.task('default', ['scripts', 'watch']);

{'fraction_non_alphanumeric': 0.19591836734693877, 'fraction_numerical': 0.0, 'mean_word_length': 4.312138728323699, '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': '4170230', 'n_tokens_mistral': 1213, 'n_tokens_neox': 1214, 'n_words': 257}