<commit_before>'use strict';

var gulp = require('gulp');
var browserSync = require('browser-sync');
var browserify = require('browserify');
var babelify = require('babelify');
var reactify = require('reactify');
var source = require('vinyl-source-stream');
var sass = require('gulp-sass');
var eslint = require('gulp-eslint');
var jscs = require('gulp-jscs');
var scsslint = require('gulp-scss-lint');

var reload = browserSync.reload;

gulp.task('build:js', function() {
    return browserify({debug: true})
      .transform([babelify, reactify])
      .require(require.resolve('src/js/main.js'), {entry: true})
      .bundle()
      .pipe(source('bundle.js'))
      .pipe(gulp.dest('src/static/js'))
      .pipe(reload({stream: true}));
});

gulp.task('build:css', function() {
    return gulp.src(['src/sass/*.scss'])
        .pipe(sass())
        .pipe(gulp.dest('src/static/css'))
        .pipe(reload({stream: true}));
});

gulp.task('build', ['build:js', 'build:css']);

gulp.task('lint:js', function() {
    return gulp.src(['src/js/**/*.{js,jsx}'])
        .pipe(eslint())
        .pipe(eslint.format())
        .pipe(jscs());
});

gulp.task('lint:css', function() {
    return gulp.src(['src/sass/*.scss'])
        .pipe(scsslint());
});

gulp.task('lint', ['lint:js', 'lint:css']);

gulp.task('watch', ['build'], function() {
    browserSync({
        proxy: 'http://localhost:5000/'
    });

    gulp.watch(['src/*.py', 'src/templates/*.html'], reload);
    gulp.watch(['src/js/**/*.{js,jsx}'], ['build:js', 'lint:js']);
    gulp.watch(['src/sass/**/*.{scss,css}'], ['build:css', 'lint:css']);
});

gulp.task('default', ['watch']);<commit_msg>Fix gulpfile<commit_after>'use strict';

var gulp = require('gulp');
var browserSync = require('browser-sync');
var browserify = require('browserify');
var babelify = require('babelify');
var reactify = require('reactify');
var source = require('vinyl-source-stream');
var sass = require('gulp-sass');
var eslint = require('gulp-eslint');
var jscs = require('gulp-jscs');
var scsslint = require('gulp-scss-lint');

var reload = browserSync.reload;

gulp.task('build:js', function() {
    return browserify({debug: true})
      .transform([babelify, reactify])
      .require(require.resolve('./src/js/main.js'), {entry: true})
      .bundle()
      .pipe(source('bundle.js'))
      .pipe(gulp.dest('src/static/js'))
      .pipe(reload({stream: true}));
});

gulp.task('build:css', function() {
    return gulp.src(['src/sass/*.scss'])
        .pipe(sass())
        .pipe(gulp.dest('src/static/css'))
        .pipe(reload({stream: true}));
});

gulp.task('build', ['build:js', 'build:css']);

gulp.task('lint:js', function() {
    return gulp.src(['src/js/**/*.{js,jsx}'])
        .pipe(eslint())
        .pipe(eslint.format())
        .pipe(jscs());
});

gulp.task('lint:css', function() {
    return gulp.src(['src/sass/*.scss'])
        .pipe(scsslint());
});

gulp.task('lint', ['lint:js', 'lint:css']);

gulp.task('watch', ['build', 'lint'], function() {
    browserSync({
        proxy: 'http://localhost:5000/'
    });

    gulp.watch(['src/*.py', 'src/templates/*.html'], reload);
    gulp.watch(['src/js/**/*.{js,jsx}'], ['build:js', 'lint:js']);
    gulp.watch(['src/sass/**/*.{scss,css}'], ['build:css', 'lint:css']);
});

gulp.task('default', ['watch']);
{'fraction_non_alphanumeric': 0.25082806383619394, 'fraction_numerical': 0.002408912978018669, 'mean_word_length': 3.9214814814814813, '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': '6662789', 'n_tokens_mistral': 1205, 'n_tokens_neox': 1186, 'n_words': 187}