<commit_before>"use strict"
var gulp = require('gulp'),
plugins = require("gulp-load-plugins")({
  pattern: ['gulp-*', 'main-bower-files'],
  replaceString: /\bgulp[\-.]/
}),
dest = 'public/',
go;

gulp.task('bower', function() {
    return plugins.bower().pipe(gulp.dest('./bower_components'));
});

gulp.task('js', ['bower'], function() {
  var jsFiles = ['js/*.js'];

  gulp.src(plugins.mainBowerFiles().concat(jsFiles))
    .pipe(plugins.filter('*.js'))
    .pipe(plugins.concat('main.js'))
    .pipe(plugins.uglify())
    .pipe(gulp.dest(dest + 'js'));
});

gulp.task('css', ['bower'], function() {
  var cssFiles = ['css/*'];

  gulp.src(plugins.mainBowerFiles().concat(cssFiles))
    .pipe(plugins.filter('*.less'))
    .pipe(plugins.less())
    .pipe(plugins.concat('main.css'))
    .pipe(plugins.cssmin())
    .pipe(gulp.dest(dest + 'css'));
});

gulp.task('fonts', function() {
  var fontFiles = [
    'bower_components/bootstrap/fonts/*',
    'bower_components/font-awesome/fonts/*'
  ];
  gulp.src(fontFiles)
    .pipe(gulp.dest(dest + 'fonts'));
});

gulp.task("go-run", function() {
  go = plugins.go.run("src/main.go", ["src/socket.go"], {cwd: __dirname, stdio: 'inherit'});
});

gulp.task('dev', ['go-run'], function() {
  gulp.watch('js/*.js', ['js']);
  gulp.watch('css/*.less', ['css']);
  gulp.watch('src/*.go').on('change', function() {
    go.restart();
  });;
});

gulp.task('default', ['js', 'css', 'fonts']);<commit_msg>Add bower as a dependency of fonts<commit_after>"use strict"
var gulp = require('gulp'),
plugins = require("gulp-load-plugins")({
  pattern: ['gulp-*', 'main-bower-files'],
  replaceString: /\bgulp[\-.]/
}),
dest = 'public/',
go;

gulp.task('bower', function() {
    return plugins.bower().pipe(gulp.dest('./bower_components'));
});

gulp.task('js', ['bower'], function() {
  var jsFiles = ['js/*.js'];

  gulp.src(plugins.mainBowerFiles().concat(jsFiles))
    .pipe(plugins.filter('*.js'))
    .pipe(plugins.concat('main.js'))
    .pipe(plugins.uglify())
    .pipe(gulp.dest(dest + 'js'));
});

gulp.task('css', ['bower'], function() {
  var cssFiles = ['css/*'];

  gulp.src(plugins.mainBowerFiles().concat(cssFiles))
    .pipe(plugins.filter('*.less'))
    .pipe(plugins.less())
    .pipe(plugins.concat('main.css'))
    .pipe(plugins.cssmin())
    .pipe(gulp.dest(dest + 'css'));
});

gulp.task('fonts', ['bower'], function() {
  var fontFiles = [
    'bower_components/bootstrap/fonts/*',
    'bower_components/font-awesome/fonts/*'
  ];
  gulp.src(fontFiles)
    .pipe(gulp.dest(dest + 'fonts'));
});

gulp.task("go-run", function() {
  go = plugins.go.run("src/main.go", ["src/socket.go"], {cwd: __dirname, stdio: 'inherit'});
});

gulp.task('dev', ['go-run'], function() {
  gulp.watch('js/*.js', ['js']);
  gulp.watch('css/*.less', ['css']);
  gulp.watch('src/*.go').on('change', function() {
    go.restart();
  });;
});

gulp.task('default', ['js', 'css', 'fonts']);
{'fraction_non_alphanumeric': 0.2645448323066393, 'fraction_numerical': 0.0, 'mean_word_length': 4.1643109540636045, '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': '2424576', 'n_tokens_mistral': 1117, 'n_tokens_neox': 1101, 'n_words': 158}