<commit_before>var gulp = require('gulp');
var argv = require('yargs').argv;
var sass = require('gulp-sass');
var gulpif = require('gulp-if');
var gutil = require('gulp-util');
var postcss = require('gulp-postcss');
var plumber = require('gulp-plumber');
var notifier = require('node-notifier');
var autoprefixer = require('autoprefixer');
var sourcemaps = require('gulp-sourcemaps');
var cssGlobbing = require('gulp-css-globbing');
var jsonImporter = require('../helpers/json-importer.js');
var customFunctions = require('../helpers/sass.customFunctions.js');

var config = require('../config.js');

var sassConfig = {
    indentWidth: 4,
    importer: jsonImporter,
    outputStyle: config.minify || argv.prod ? 'compressed' : 'expanded',
    functions: customFunctions
};

gulp.task('sass', (argv.prod ? [] : ['sass:templates']), function() {
    return gulp.src([config.src + 'sass/*.scss', '!' + config.src + 'sass/templates.scss'])
        .pipe(plumber({
            errorHandler: function(error) {
                notifier.notify({
                    'title': 'Compiling Error: Sass',
                    'message': error.message.replace('\n', '')
                });
                gutil.log(gutil.colors.red('Error: ' + error.message.replace('\n', '')));
            }
        }))
        .pipe(cssGlobbing({
            extensions: ['.css', '.scss'],
            scssImportPath: {
                leading_underscore: false,
                filename_extension: false
            }
        }))
        .pipe(gulpif(config.sourcemaps && !argv.prod, sourcemaps.init()))
        .pipe(sass({
            indentWidth: 4,
            importer: jsonImporter,
            outputStyle: 'compressed',
            functions: customFunctions
        }))
        .pipe(postcss([autoprefixer({ browsers: ['last 2 versions', 'ie 10-11'] })]))
        .pipe(gulp.dest(config.build + 'css/'));
});

gulp.task('sass:export', function() {
    return gulp.src([config.src + 'sass/*.scss', '!' + config.src + 'sass/templates.scss'])
        .pipe(cssGlobbing({
            extensions: ['.css', '.scss'],
            scssImportPath: {<commit_msg>Added ios 8 to autoprefixer browsers<commit_after>var gulp = require('gulp');
var argv = require('yargs').argv;
var sass = require('gulp-sass');
var gulpif = require('gulp-if');
var gutil = require('gulp-util');
var postcss = require('gulp-postcss');
var plumber = require('gulp-plumber');
var notifier = require('node-notifier');
var autoprefixer = require('autoprefixer');
var sourcemaps = require('gulp-sourcemaps');
var cssGlobbing = require('gulp-css-globbing');
var jsonImporter = require('../helpers/json-importer.js');
var customFunctions = require('../helpers/sass.customFunctions.js');

var config = require('../config.js');

var sassConfig = {
    indentWidth: 4,
    importer: jsonImporter,
    outputStyle: config.minify || argv.prod ? 'compressed' : 'expanded',
    functions: customFunctions
};

gulp.task('sass', (argv.prod ? [] : ['sass:templates']), function() {
    return gulp.src([config.src + 'sass/*.scss', '!' + config.src + 'sass/templates.scss'])
        .pipe(plumber({
            errorHandler: function(error) {
                notifier.notify({
                    'title': 'Compiling Error: Sass',
                    'message': error.message.replace('\n', '')
                });
                gutil.log(gutil.colors.red('Error: ' + error.message.replace('\n', '')));
            }
        }))
        .pipe(cssGlobbing({
            extensions: ['.css', '.scss'],
            scssImportPath: {
                leading_underscore: false,
                filename_extension: false
            }
        }))
        .pipe(gulpif(config.sourcemaps && !argv.prod, sourcemaps.init()))
        .pipe(sass({
            indentWidth: 4,
            importer: jsonImporter,
            outputStyle: 'compressed',
            functions: customFunctions
        }))
        .pipe(postcss([autoprefixer({ browsers: ['last 2 versions', 'ie 10-11', 'iOS 8'] })]))
        .pipe(gulp.dest(config.build + 'css/'));
});

gulp.task('sass:export', function() {
    return gulp.src([config.src + 'sass/*.scss', '!' + config.src + 'sass/templates.scss'])
        .pipe(cssGlobbing({
            extensions: ['.css', '.scss'],
            scssImportPath: {
{'fraction_non_alphanumeric': 0.1754182156133829, 'fraction_numerical': 0.0037174721189591076, 'mean_word_length': 2.5637417218543046, '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': '6299327', 'n_tokens_mistral': 1356, 'n_tokens_neox': 1330, 'n_words': 243}