<commit_before>'use strict';

const gulp = require('gulp');
const config = require('../config.js');
const mergeStream = require('merge-stream');
const plugins = require('gulp-load-plugins')();
const cssnano = require('cssnano');
const cssnext = require('postcss-cssnext');
const nested = require('postcss-nested');
const postcssImport = require('postcss-partial-import');
const cssvariables = require('postcss-css-variables');
const stylelint = require("stylelint");
const reporter = require("postcss-reporter");

const postCssPlugins = [
    cssvariables(),
    postcssImport({
        plugins: [
            require("stylelint")
        ]
    }),
    nested(),
    cssnext({
        autoprefixer: {
            grid: true
        },
        browsers: [">= 5% in DK", "ie 11"]
    }),
    cssnano({
        autoprefixer: false,
        discardComments: {
            removeAll: true
        },
        mergeLonghand: true,
        colormin: false,
        zindex: false,
        discardUnused: {
            fontFace: false
        }
    }),
    reporter({
        clearMessages: true,
        throwError: true
    })
];

gulp.task('styles', function () {
    const streams = config.bundles.filter(function (b) {
        return b.styles != null;<commit_msg>variable instead of require<commit_after>'use strict';

const gulp = require('gulp');
const config = require('../config.js');
const mergeStream = require('merge-stream');
const plugins = require('gulp-load-plugins')();
const cssnano = require('cssnano');
const cssnext = require('postcss-cssnext');
const nested = require('postcss-nested');
const postcssImport = require('postcss-partial-import');
const cssvariables = require('postcss-css-variables');
const stylelint = require("stylelint");
const reporter = require("postcss-reporter");

const postCssPlugins = [
    cssvariables(),
    postcssImport({
        plugins: [
            stylelint()
        ]
    }),
    nested(),
    cssnext({
        autoprefixer: {
            grid: true
        },
        browsers: [">= 5% in DK", "ie 11"]
    }),
    cssnano({
        autoprefixer: false,
        discardComments: {
            removeAll: true
        },
        mergeLonghand: true,
        colormin: false,
        zindex: false,
        discardUnused: {
            fontFace: false
        }
    }),
    reporter({
        clearMessages: true,
        throwError: true
    })
];

gulp.task('styles', function () {
    const streams = config.bundles.filter(function (b) {
        return b.styles != null;
{'fraction_non_alphanumeric': 0.1412138040460135, 'fraction_numerical': 0.002380007933359778, 'mean_word_length': 2.552112676056338, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7207773', 'n_tokens_mistral': 738, 'n_tokens_neox': 736, 'n_words': 164}