<commit_before>var gulp = require('gulp')
var sass = require('gulp-sass')
var eslint = require('gulp-eslint')
var scsslint = require('gulp-scss-lint')
var browserify = require('browserify')
var shim = require('browserify-shim')
var babelify = require('babelify')
var cssGlobbing = require('gulp-css-globbing')
var source = require('vinyl-source-stream')
var drupalBreakpoints = require('drupal-breakpoints-scss')
var rename = require('gulp-rename')

// babel
gulp.task('browserify', function () {
  var b = browserify({
    basedir: './js',
    entries: './main.js'
  })

  b.transform(babelify, {presets: ['es2015']})
  b.transform(shim, {global: true})

  return b.bundle()
    .on('error', function (err) {
      console.log(err.message)
      this.emit('end')
    })
    .pipe(source('bundle.js'))
    .pipe(gulp.dest('./dist/js'))
})

// Compile sass
gulp.task('sass', function () {
  // Generate _breakpoints.scss
  gulp.src('./oddbaby.breakpoints.yml')
    .pipe(drupalBreakpoints.ymlToScss())
    .pipe(rename('_breakpoints.scss'))
    .pipe(gulp.dest('./scss/utils'))

  return gulp.src(['./scss/main.scss', './scss/print.scss'])
    .pipe(cssGlobbing({
      extensions: ['.scss']
    }))
    .pipe(sass({
      includePaths: [
        'node_modules/bourbon/app/assets/stylesheets/',
        'node_modules/bourbon-neat/app/assets/stylesheets/',
        'node_modules/normalize.css/',
        'node_modules/Stratagem/'
      ]
    }).on('error', sass.logError))
    .pipe(gulp.dest('./dist/css'))
})

// Lint sass
gulp.task('scss-lint', function () {
  return gulp.src(['./scss/**/*.scss', '!./scss/print.scss', '!scss/normalize.scss', '!scss/vendor/**/*'])
    .pipe(scsslint())
})

// Jshint
gulp.task('lint', function () {
  return gulp.src('./js/**/*.js')
    .pipe(eslint())
    .pipe(eslint.format())
})

// Watch .scss and .js
gulp.task('watch', function () {
  gulp.watch('./scss/**/*.scss', ['scss-lint', 'sass'])
  gulp.watch('./js/**/*.js', ['lint', 'browserify'])
})

// Set default task
gulp.task('default', ['watch'])
<commit_msg>Use wildcard to load breakpoints file<commit_after>var gulp = require('gulp')
var sass = require('gulp-sass')
var eslint = require('gulp-eslint')
var scsslint = require('gulp-scss-lint')
var browserify = require('browserify')
var shim = require('browserify-shim')
var babelify = require('babelify')
var cssGlobbing = require('gulp-css-globbing')
var source = require('vinyl-source-stream')
var drupalBreakpoints = require('drupal-breakpoints-scss')
var rename = require('gulp-rename')

// babel
gulp.task('browserify', function () {
  var b = browserify({
    basedir: './js',
    entries: './main.js'
  })

  b.transform(babelify, {presets: ['es2015']})
  b.transform(shim, {global: true})

  return b.bundle()
    .on('error', function (err) {
      console.log(err.message)
      this.emit('end')
    })
    .pipe(source('bundle.js'))
    .pipe(gulp.dest('./dist/js'))
})

// Compile sass
gulp.task('sass', function () {
  // Generate _breakpoints.scss
  gulp.src('./*.breakpoints.yml')
    .pipe(drupalBreakpoints.ymlToScss())
    .pipe(rename('_breakpoints.scss'))
    .pipe(gulp.dest('./scss/utils'))

  return gulp.src(['./scss/main.scss', './scss/print.scss'])
    .pipe(cssGlobbing({
      extensions: ['.scss']
    }))
    .pipe(sass({
      includePaths: [
        'node_modules/bourbon/app/assets/stylesheets/',
        'node_modules/bourbon-neat/app/assets/stylesheets/',
        'node_modules/normalize.css/',
        'node_modules/Stratagem/'
      ]
    }).on('error', sass.logError))
    .pipe(gulp.dest('./dist/css'))
})

// Lint sass
gulp.task('scss-lint', function () {
  return gulp.src(['./scss/**/*.scss', '!./scss/print.scss', '!scss/normalize.scss', '!scss/vendor/**/*'])
    .pipe(scsslint())
})

// Jshint
gulp.task('lint', function () {
  return gulp.src('./js/**/*.js')
    .pipe(eslint())
    .pipe(eslint.format())
})

// Watch .scss and .js
gulp.task('watch', function () {
  gulp.watch('./scss/**/*.scss', ['scss-lint', 'sass'])
  gulp.watch('./js/**/*.js', ['lint', 'browserify'])
})

// Set default task
gulp.task('default', ['watch'])

{'fraction_non_alphanumeric': 0.22090203685742, 'fraction_numerical': 0.0019398642095053346, 'mean_word_length': 3.435483870967742, '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': '1293542', 'n_tokens_mistral': 1552, 'n_tokens_neox': 1525, 'n_words': 239}