<commit_before>import { config } from '../config';
import { server } from '../utils/livereload';
import { src, dest, parallel } from 'gulp';
import size from 'gulp-size';
import sass from 'gulp-sass';
import postcss from 'gulp-postcss';
import autoprefixer from 'autoprefixer';
import cssnano from 'cssnano';
import rename from 'gulp-rename';

const buildExpandedCss = () =>
	src([config.css.src.homeview, config.css.src.flexboxgrid], {
		sourcemaps: true
	})
		.pipe(sass({ outputStyle: 'expanded' }).on('error', sass.logError))
		.pipe(
			postcss([
				autoprefixer({ browsers: ['last 1 version', 'not dead', '> 0.2%'] })
			])
		)
		.pipe(size({ showFiles: true, showTotal: false }))
		.pipe(dest(config.css.dest, { sourcemaps: true }))
		.pipe(server.stream());

const buildCompressedCss = () =>
	src(config.css.src.flexboxgrid)
		.pipe(sass({ outputStyle: 'compressed' }))
		.pipe(
			postcss([
				autoprefixer({ browsers: ['last 1 version', 'not dead', '> 0.2%'] })
			])
		)
		.pipe(postcss([cssnano()]))
		.pipe(rename({ suffix: '.min' }))
		.pipe(size({ showFiles: true }))
		.pipe(dest(config.css.dest));

const buildcss = done => parallel(buildExpandedCss, buildCompressedCss)(done);

buildcss.displayName = 'build:css';
buildcss.description = 'Compile SASS, Autoprefix, minify';

export default buildcss;<commit_msg>Used gzip size log for minified css<commit_after>import { config } from '../config';
import { server } from '../utils/livereload';
import { src, dest, parallel } from 'gulp';
import size from 'gulp-size';
import sass from 'gulp-sass';
import postcss from 'gulp-postcss';
import autoprefixer from 'autoprefixer';
import cssnano from 'cssnano';
import rename from 'gulp-rename';

const buildExpandedCss = () =>
	src([config.css.src.homeview, config.css.src.flexboxgrid], {
		sourcemaps: true
	})
		.pipe(sass({ outputStyle: 'expanded' }).on('error', sass.logError))
		.pipe(
			postcss([
				autoprefixer({ browsers: ['last 1 version', 'not dead', '> 0.2%'] })
			])
		)
		.pipe(size({ showFiles: true, showTotal: false }))
		.pipe(dest(config.css.dest, { sourcemaps: true }))
		.pipe(server.stream());

const buildMinifiedCss = () =>
	src(config.css.src.flexboxgrid)
		.pipe(sass({ outputStyle: 'compressed' }))
		.pipe(
			postcss([
				autoprefixer({ browsers: ['last 1 version', 'not dead', '> 0.2%'] })
			])
		)
		.pipe(postcss([cssnano()]))
		.pipe(rename({ suffix: '.min' }))
		.pipe(size({ showFiles: true, gzip: true }))
		.pipe(dest(config.css.dest));

const buildcss = done => parallel(buildExpandedCss, buildMinifiedCss)(done);

buildcss.displayName = 'build:css';
buildcss.description = 'Compile SASS, Autoprefix, minify';

export default buildcss;
{'fraction_non_alphanumeric': 0.18141263940520447, 'fraction_numerical': 0.0044609665427509295, 'mean_word_length': 4.571428571428571, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '3934301', 'n_tokens_mistral': 1024, 'n_tokens_neox': 962, 'n_words': 221}