<commit_before>var gulp = require('gulp');
var connect = require('gulp-connect');
var mockServer = require('gulp-mock-server');


gulp.task('watch', function() {
    gulp.watch(['./*.html', './*/*.js'], ['html']);
});
gulp.task('html', function() {
    gulp.src('./*.html')
        .pipe(connect.reload());
});
gulp.task('webserver', function() {
    connect.server({
        livereload: true,
        root: './'
    });
});


gulp.task('mock', function() {
    gulp.src('.').pipe(mockServer({
        port: 8080
    }));
});


gulp.task('default', ['webserver', 'watch', 'mock']);<commit_msg>update:add auto open browser<commit_after>var gulp = require('gulp');
var connect = require('gulp-connect');
var mockServer = require('gulp-mock-server');


gulp.task('watch', function() {
    gulp.watch(['./*.html', './*/*.js'], ['html']);
});
gulp.task('html', function() {
    gulp.src('./*.html')
        .pipe(connect.reload());
});
gulp.task('webserver', function() {
    connect.server({
        livereload: true,
        root: './'
    });
});


gulp.task('mock', function() {
    gulp.src('.').pipe(mockServer({
        port: 8080,
        open: "http://localhost:8080/"
    }));
});


gulp.task('default', ['webserver', 'watch', 'mock']);
{'fraction_non_alphanumeric': 0.257856567284448, 'fraction_numerical': 0.009669621273166801, 'mean_word_length': 3.2975778546712804, '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': '4278492', 'n_tokens_mistral': 437, 'n_tokens_neox': 423, 'n_words': 70}