<commit_before>'use strict';

var gulp = require('gulp');
var validatePipeline = require('pipeline-validate-js');
var webserver = require('gulp-webserver');

var serverOptions = {
  livereload: true,
  open: '/',
  proxies: [{
    source: 'api.github.com/',
    target: 'http://api.github.com/'
  }],
  root: './'
};

gulp.task('lint', function () {
  gulp.src([
    './gulpfile.js',
    'src/**/*.js'
  ]).pipe(validatePipeline.validateJS());
});


gulp.task('serve', function () {

  return gulp.src(serverOptions.root)
    .pipe(webserver(serverOptions));

});

gulp.task('build', ['lint']);
gulp.task('run', ['serve']);<commit_msg>add fallback path to support HTML5 History / hashHistory (#66)<commit_after>'use strict';

var gulp = require('gulp');
var validatePipeline = require('pipeline-validate-js');
var webserver = require('gulp-webserver');

var serverOptions = {
  fallback: './index.html',
  livereload: true,
  open: '/',
  proxies: [{
    source: 'api.github.com/',
    target: 'http://api.github.com/'
  }],
  root: './'
};

gulp.task('lint', function () {
  gulp.src([
    './gulpfile.js',
    'src/**/*.js'
  ]).pipe(validatePipeline.validateJS());
});


gulp.task('serve', function () {

  return gulp.src(serverOptions.root)
    .pipe(webserver(serverOptions));

});

gulp.task('build', ['lint']);
gulp.task('run', ['serve']);
{'fraction_non_alphanumeric': 0.22345953971789162, 'fraction_numerical': 0.0022271714922048997, 'mean_word_length': 3.9925925925925925, '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': '6106919', 'n_tokens_mistral': 483, 'n_tokens_neox': 475, 'n_words': 83}