<commit_before>/**
 * CSS tasks to create css files from sass
 *
 * @param paths {object} Shared paths from gulpfile
 * @param gulp {object} Gulp object
 * @param plugins {object} Shared tasks (uses gulp-load-plugins to get tasks from package.json)
 * @returns {Function} Return Module
 */
module.exports = function(paths, gulp, plugins) {
    'use strict';

    const autoprefixer = require('autoprefixer');
    const postcssImport = require('postcss-import');

    return function() {
        const isProduction = plugins.util.env.type == 'production';

        gulp.src([plugins.path.join(paths.assets.css, 'styles.scss')])

            //Process Sass
            .pipe(plugins.sassGlob())
            .pipe(isProduction ?  plugins.util.noop() : plugins.sourcemaps.init())
            .pipe(plugins.sass({
                errLogToConsole: true,
                style: 'compressed',
            })).on('error', plugins.sass.logError)

            //Process PostCSS
            .pipe(plugins.postcss([
                autoprefixer({
                    browsers: ['last 2 version', 'ie >= 10', 'Android >= 4.3', 'Firefox ESR'],
                    cascade: false,
                    map: true,
                    remove: true,
                }),
                postcssImport(),
            ]))
            .pipe(plugins.sourcemaps.write('.'))
            .pipe(gulp.dest(plugins.path.join(paths.dev, 'css')))
        ;
    };
    
};
<commit_msg>deleted docs html from project<commit_after>/**
 * CSS tasks to create css files from sass
 *
 * @param paths {object} Shared paths from gulpfile
 * @param gulp {object} Gulp object
 * @param plugins {object} Shared tasks (uses gulp-load-plugins to get tasks from package.json)
 * @returns {Function} Return Module
 */
module.exports = function(paths, gulp, plugins) {
    'use strict';

    const autoprefixer = require('autoprefixer');
    const postcssImport = require('postcss-import');
    
    function createCSS(files, dest) {
        const isProduction = plugins.util.env.type == 'production';
        
        return gulp.src(files)
    
                   //Process Sass
                   .pipe(plugins.sassGlob())
                   .pipe(isProduction ? plugins.util.noop() : plugins.sourcemaps.init())
                   .pipe(plugins.sass({
                       errLogToConsole: true,
                       style: 'compressed',
                   }))
                   .on('error', plugins.sass.logError)
    
                   //Process PostCSS
                   .pipe(plugins.postcss([
                       autoprefixer({
                           browsers: ['last 2 version', 'ie >= 10', 'Android >= 4.3', 'Firefox ESR'],
                           cascade: false,
                           map: true,
                           remove: true,
                       }),
                       postcssImport(),
                   ]))
                   .pipe(plugins.sourcemaps.write('.'))
                   .pipe(gulp.dest(plugins.path.join(paths.dev, 'css')))
            ;
    }

    return function() {
        return plugins.eventStream.merge([
            createCSS(
                [plugins.path.join(paths.assets.css, 'styles.scss')],
                plugins.path.join(paths.dev, 'css')
            ),
            createCSS(
                [plugins.path.join(paths.assets.css, 'styleguide/styleguide.scss')],
                plugins.path.join(paths.doc, 'css')
            )
        ])
    };
    
};

{'fraction_non_alphanumeric': 0.12643348623853212, 'fraction_numerical': 0.0028669724770642203, 'mean_word_length': 1.569219440353461, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6463236', 'n_tokens_mistral': 983, 'n_tokens_neox': 931, 'n_words': 207}