<commit_before>import babel from 'gulp-babel';
import browserify from 'browserify';
import changed from 'gulp-changed';
import concat from 'gulp-concat';
import cssnano from 'gulp-cssnano';
import eslint from 'gulp-eslint';
import gulp from 'gulp';
import minifyHtml from 'gulp-minify-html';
import postcss from 'gulp-postcss';
import postcssBem from 'postcss-bem';
import postcssImport from 'postcss-import';
import postcssNested from 'postcss-nested';
import postcssVars from 'postcss-simple-vars';
import source from 'vinyl-source-stream';
import uglify from 'gulp-uglify';

gulp.task('postcss', () => {
  return gulp.src('src/css/**/*.css')
    .pipe(postcss([
      postcssImport(),
      postcssBem(),
      postcssNested(),
      postcssVars()
    ]))
    .pipe(gulp.dest('lib/css/'));
});

gulp.task('css', [ 'postcss' ], () => {
  return gulp.src('lib/css/**/*.css')
    .pipe(concat('style.css'))
    .pipe(gulp.dest('lib/'));
});

gulp.task('eslint', () => {
  return gulp.src([ 'src/js/**/*.js', 'gulpfile.babel.js' ])
    .pipe(eslint())
    .pipe(eslint.format())
    .pipe(eslint.failAfterError());
});

gulp.task('babel', () => {
  const DEST = 'lib/js/';
  return gulp.src('src/js/**/*.js')
    .pipe(changed(DEST))
    .pipe(babel({ stage: 0 }))
    .pipe(gulp.dest(DEST));
});

gulp.task('js', [ 'eslint', 'babel' ], () => {
  return browserify({
    debug: true,<commit_msg>build: fix postcss plugin order (bem moved things to top, so vars would not match)<commit_after>import babel from 'gulp-babel';
import browserify from 'browserify';
import changed from 'gulp-changed';
import concat from 'gulp-concat';
import cssnano from 'gulp-cssnano';
import eslint from 'gulp-eslint';
import gulp from 'gulp';
import minifyHtml from 'gulp-minify-html';
import postcss from 'gulp-postcss';
import postcssBem from 'postcss-bem';
import postcssImport from 'postcss-import';
import postcssNested from 'postcss-nested';
import postcssVars from 'postcss-simple-vars';
import source from 'vinyl-source-stream';
import uglify from 'gulp-uglify';

gulp.task('postcss', () => {
  return gulp.src('src/css/**/*.css')
    .pipe(postcss([
      postcssImport(),
      postcssVars(),
      postcssBem(),
      postcssNested()
    ]))
    .pipe(gulp.dest('lib/css/'));
});

gulp.task('css', [ 'postcss' ], () => {
  return gulp.src('lib/css/**/*.css')
    .pipe(concat('style.css'))
    .pipe(gulp.dest('lib/'));
});

gulp.task('eslint', () => {
  return gulp.src([ 'src/js/**/*.js', 'gulpfile.babel.js' ])
    .pipe(eslint())
    .pipe(eslint.format())
    .pipe(eslint.failAfterError());
});

gulp.task('babel', () => {
  const DEST = 'lib/js/';
  return gulp.src('src/js/**/*.js')
    .pipe(changed(DEST))
    .pipe(babel({ stage: 0 }))
    .pipe(gulp.dest(DEST));
});

gulp.task('js', [ 'eslint', 'babel' ], () => {
  return browserify({
    debug: true,
{'fraction_non_alphanumeric': 0.20371018550927547, 'fraction_numerical': 0.0007000350017500875, 'mean_word_length': 3.9704347826086956, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '1827615', 'n_tokens_mistral': 1065, 'n_tokens_neox': 1051, 'n_words': 215}