<commit_before>/* globals process, console */
'use strict';

var browserify = require('browserify');
var gulp = require('gulp');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var rename = require('gulp-rename');
var uglify = require('gulp-uglify');
var httpServer = require('http-server');
var openBrowser = require('opener');
var minifyCss = require('gulp-minify-css');

var dest = './dist/';
var basename = 'domainr-search-box';
var jsName = basename + '.js';

// ----------
gulp.task('js', function () {
  return browserify('./src/index.js', { standalone: 'domainr' })
    .bundle()
    .pipe(source(jsName))
    .pipe(buffer())
    .pipe(gulp.dest(dest))
    .pipe(uglify())
    .pipe(rename({ extname: '.min.js' }))
    .pipe(gulp.dest(dest));
});

// ----------
gulp.task('css', function () {
  return gulp.src('./src/index.css')
    .pipe(rename({ basename: basename }))
    .pipe(minifyCss({ compatibility: 'ie8' }))
    .pipe(gulp.dest(dest));
});

// ----------
gulp.task('build', gulp.series(gulp.parallel('js', 'css')));

// ----------
var watcher = gulp.watch('src/*.*', gulp.parallel('build'));
watcher.on('all', function (event, path, stats) {
  console.log('File ' + path + ' was ' + event + ', running tasks...');
});

// ----------
gulp.task('serve', function () {
  var port = process.env.PORT || 3100;<commit_msg>Adds missing watch task<commit_after>/* globals process, console */
'use strict';

var browserify = require('browserify');
var gulp = require('gulp');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var rename = require('gulp-rename');
var uglify = require('gulp-uglify');
var httpServer = require('http-server');
var openBrowser = require('opener');
var minifyCss = require('gulp-minify-css');

var dest = './dist/';
var basename = 'domainr-search-box';
var jsName = basename + '.js';

// ----------
gulp.task('js', function () {
  return browserify('./src/index.js', { standalone: 'domainr' })
    .bundle()
    .pipe(source(jsName))
    .pipe(buffer())
    .pipe(gulp.dest(dest))
    .pipe(uglify())
    .pipe(rename({ extname: '.min.js' }))
    .pipe(gulp.dest(dest));
});

// ----------
gulp.task('css', function () {
  return gulp.src('./src/index.css')
    .pipe(rename({ basename: basename }))
    .pipe(minifyCss({ compatibility: 'ie8' }))
    .pipe(gulp.dest(dest));
});

// ----------
gulp.task('build', gulp.series(gulp.parallel('js', 'css')));

// ----------
var watcher = gulp.watch('src/*.*', gulp.parallel('build'));
watcher.on('all', function (event, path, stats) {
  console.log('File ' + path + ' was ' + event + ', running tasks...');
});

gulp.task('watch', function() {
  console.log('Watching file changes...')
})

// ----------
gulp.task('serve', function () {
  var port = process.env.PORT || 3100;
{'fraction_non_alphanumeric': 0.25035360678925034, 'fraction_numerical': 0.003536067892503536, 'mean_word_length': 3.3724884080370945, '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': '45050', 'n_tokens_mistral': 979, 'n_tokens_neox': 969, 'n_words': 193}