<commit_before>var gulp = require('gulp');
var prettify = require('gulp-prettify');
var svgSprite = require('gulp-svg-sprite');
var cheerio = require('gulp-cheerio');

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

gulp.task('svgSprite', function() {
    return gulp.src(config.src + 'svg/*.svg')
        .pipe(cheerio({
            run: function($) {
                $('[fill]').removeAttr('fill');
            },
            parserOptions: {
                xmlMode: true
            }
        }))
        .pipe(svgSprite({
            mode: {
                symbol: {
                    dest: 'svg',
                    sprite: config.defaults.svgSprite.filename
                }
            }
        }))
        .pipe(gulp.dest(config.build));
});
<commit_msg>Update gulp-svg-sprites dimensionAttributes config<commit_after>var gulp = require('gulp');
var prettify = require('gulp-prettify');
var svgSprite = require('gulp-svg-sprite');
var cheerio = require('gulp-cheerio');

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

gulp.task('svgSprite', function() {
    return gulp.src(config.src + 'svg/*.svg')
        .pipe(cheerio({
            run: function($) {
                $('[fill]').removeAttr('fill');
            },
            parserOptions: {
                xmlMode: true
            }
        }))
        .pipe(svgSprite({
            mode: {
                symbol: {
                    dest: 'svg',
                    sprite: config.defaults.svgSprite.filename
                }
            },
            svg: {
                dimensionAttributes: false
            }
        }))
        .pipe(gulp.dest(config.build));
});

{'fraction_non_alphanumeric': 0.1536107711138311, 'fraction_numerical': 0.0, 'mean_word_length': 1.5348837209302326, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1645194', 'n_tokens_mistral': 483, 'n_tokens_neox': 472, 'n_words': 76}