<commit_before>'use strict';

var gulp = require( 'gulp' );
var $ = require( 'gulp-load-plugins' )();
var mqr = require( 'gulp-mq-remove' );
var pkg = require( '../config' ).pkg;
var banner = require( '../config' ).banner;
var config = require( '../config' ).styles;
var handleErrors = require( '../utils/handleErrors' );
var browserSync = require( 'browser-sync' );

gulp.task( 'styles:modern', function() {
  return gulp.src( config.cwd + config.src )
    .pipe( $.sourcemaps.init() )
    .pipe( $.less( config.settings ) )
    .on( 'error', handleErrors )
    .pipe( $.replace(
      /url\('chosen-sprite.png'\)/ig,
      'url("/img/chosen-sprite.png")'
    ) )
    .pipe( $.replace(
      /url\('chosen-sprite@2x.png'\)/ig,
      'url("/img/chosen-sprite@2x.png")'
    ) )
    .pipe( $.autoprefixer( {
      browsers: [ 'last 2 version', 'android 4']
    } ) )
    .pipe( $.header( banner, { pkg: pkg } ) )
    .pipe( $.sourcemaps.write( '.' ) )
    .pipe( gulp.dest( config.dest ) )
    .pipe( browserSync.reload( {
      stream: true
    } ) );
} );

gulp.task( 'styles:ie', function() {
  return gulp.src( config.cwd + config.src )
    .pipe( $.less( config.settings ) )
    .on( 'error', handleErrors )
    .pipe( $.replace(
      /url\('chosen-sprite.png'\)/ig,
      'url("/img/chosen-sprite.png")'
    ) )
    .pipe( $.replace(
      /url\('chosen-sprite@2x.png'\)/ig,
      'url("/img/chosen-sprite@2x.png")'
    ) )
    .pipe( $.autoprefixer( {
      browsers: [ 'IE 7', 'IE 8' ]
    } ) )
    .pipe( mqr( {
      width: '75em'
    } ) )
    // mqr expands the minified file
    .pipe( $.cssmin() )
    .pipe( $.rename( {
      suffix:  '.ie',
      extname: '.css'
    } ) )
    .pipe( gulp.dest( config.dest ) )
    .pipe( browserSync.reload( {
      stream: true
    } ) );
} );

gulp.task( 'styles', [
  'styles:modern',
  'styles:ie'
] );
<commit_msg>Adds BB to autoprefixer settings<commit_after>'use strict';

var gulp = require( 'gulp' );
var $ = require( 'gulp-load-plugins' )();
var mqr = require( 'gulp-mq-remove' );
var pkg = require( '../config' ).pkg;
var banner = require( '../config' ).banner;
var config = require( '../config' ).styles;
var handleErrors = require( '../utils/handleErrors' );
var browserSync = require( 'browser-sync' );

gulp.task( 'styles:modern', function() {
  return gulp.src( config.cwd + config.src )
    .pipe( $.sourcemaps.init() )
    .pipe( $.less( config.settings ) )
    .on( 'error', handleErrors )
    .pipe( $.replace(
      /url\('chosen-sprite.png'\)/ig,
      'url("/img/chosen-sprite.png")'
    ) )
    .pipe( $.replace(
      /url\('chosen-sprite@2x.png'\)/ig,
      'url("/img/chosen-sprite@2x.png")'
    ) )
    .pipe( $.autoprefixer( {
      browsers: [ 'last 2 version',
                  'android 4',
                  'BlackBerry 7',
                  'BlackBerry 10']
    } ) )
    .pipe( $.header( banner, { pkg: pkg } ) )
    .pipe( $.sourcemaps.write( '.' ) )
    .pipe( gulp.dest( config.dest ) )
    .pipe( browserSync.reload( {
      stream: true
    } ) );
} );

gulp.task( 'styles:ie', function() {
  return gulp.src( config.cwd + config.src )
    .pipe( $.less( config.settings ) )
    .on( 'error', handleErrors )
    .pipe( $.replace(
      /url\('chosen-sprite.png'\)/ig,
      'url("/img/chosen-sprite.png")'
    ) )
    .pipe( $.replace(
      /url\('chosen-sprite@2x.png'\)/ig,
      'url("/img/chosen-sprite@2x.png")'
    ) )
    .pipe( $.autoprefixer( {
      browsers: [ 'IE 7', 'IE 8' ]
    } ) )
    .pipe( mqr( {
      width: '75em'
    } ) )
    // mqr expands the minified file
    .pipe( $.cssmin() )
    .pipe( $.rename( {
      suffix:  '.ie',
      extname: '.css'
    } ) )
    .pipe( gulp.dest( config.dest ) )
    .pipe( browserSync.reload( {
      stream: true
    } ) );
} );

gulp.task( 'styles', [
  'styles:modern',
  'styles:ie'
] );

{'fraction_non_alphanumeric': 0.21436004162330904, 'fraction_numerical': 0.005983350676378772, 'mean_word_length': 2.2283795130142736, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 8, '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': '7618526', 'n_tokens_mistral': 1487, 'n_tokens_neox': 1461, 'n_words': 282}