<commit_before>var gulp = require('gulp');
var shell = require('gulp-shell');
var _ = require('underscore');
var gutils = require('gulp-util');
var Elixir = require('laravel-elixir')
var portFinder = require('portfinder');
var Task = Elixir.Task;

Elixir.extend('caddySync', function() {

    portFinder.basePort =  50000;

    var caddyCmd = 'caddy';

    // Browsersync will only run during `gulp watch`.
    if (gutils.env._.indexOf('watch') > -1) {
        portFinder.getPort(function(err, port){
            if(err != 'null') {
                Elixir.Log.message('Free port found: ' + port)
                gulp.src('').pipe(shell(caddyCmd + ' -port ' + port));<commit_msg>Tidy up output<commit_after>var gulp = require('gulp');
var shell = require('gulp-shell');
var _ = require('underscore');
var gutils = require('gulp-util');
var Elixir = require('laravel-elixir')
var portFinder = require('portfinder');
var Task = Elixir.Task;

Elixir.extend('caddySync', function() {

    portFinder.basePort =  50000;

    var caddyCmd = 'caddy';

    // Browsersync will only run during `gulp watch`.
    if (gutils.env._.indexOf('watch') > -1) {
        portFinder.getPort(function(err, port){
            if(err) {
                gulp.src('').pipe(shell(caddyCmd + ' -port ' + port));
{'fraction_non_alphanumeric': 0.16666666666666666, 'fraction_numerical': 0.009345794392523364, 'mean_word_length': 3.297658862876254, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3759525', 'n_tokens_mistral': 444, 'n_tokens_neox': 432, 'n_words': 92}