<commit_before>import gulp from 'gulp';
import postcss from 'gulp-postcss';
import rename from 'gulp-rename';
import ghPages from 'gulp-gh-pages';
import pkg from './package.json';
import shell from 'gulp-shell';

const slim_banner = (
`*
* Copyright (c) ${new Date().getFullYear()} ${pkg.author.name}
* ${pkg.title} - ${pkg.description}
* @version ${pkg.version}
* @link ${pkg.homepage}
* @license ${pkg.license.type}
*`);

gulp.task('jekyll', () => {
	return gulp.src('*.js', {read: false})
	  .pipe(shell('jekyll build'))
});

gulp.task('deploy', ['pss', 'jekyll'] ,() => {
	return gulp.src('./_gh-pages/**/*')
	  .pipe(ghPages())
});

gulp.task('psslint', () => {
	return gulp.src('./src/pss/**/*.pss')
		.pipe(postcss([
			require('stylelint')()
		]))
});

gulp.task('csssupport', () => {
	return gulp.src('./dist/css/**/*.css')
		.pipe(postcss([
			require('doiuse')({
				browsers: [
					'ie >= 10',
					'last 2 versions'
				]
			})
		]))
});

gulp.task('pss', ['test'],() => {
	return gulp.src(`./src/pss/${pkg.title}.pss`)
		.pipe(postcss([
			require('postcss-devtools')(),
			require('postcss-easy-import')({
				prefix: '_',
				extensions: '.pss'
			}),
			require('postcss-mixins')(),
			require('postcss-at-rules-variables')(),
			require('postcss-custom-properties')(),
			require('postcss-for')(),
			require('postcss-conditionals'),
			require('postcss-nested')(),
			require('postcss-calc')({ precision: 3 }),
			require('postcss-clearfix')(),
			require('postcss-class-prefix')('sl-'),
			require('postcss-attribute-selector-prefix')({prefix: 'sl-', filter: ['class']}),
			require('postcss-sorting')(),
			require('postcss-banner')({banner: slim_banner}),
			require('postcss-browser-reporter')()
		]))
		.pipe(rename({ extname: '.css' }))
		.pipe(gulp.dest('./dist/css/'))
		.pipe(gulp.dest('./docs/dist/css/'))
		.pipe(postcss([
			require('postcss-devtools')(),
			require('postcss-csso')()
		]))
		.pipe(rename({ extname: '.min.css' }))
		.pipe(gulp.dest('./dist/css/'))
		.pipe(gulp.dest('./docs/dist/css/'))
});

gulp.task('default',['pss']);
gulp.task('test',['psslint', 'csssupport']);
<commit_msg>Fixed export default for require<commit_after>import gulp from 'gulp';
import postcss from 'gulp-postcss';
import rename from 'gulp-rename';
import ghPages from 'gulp-gh-pages';
import pkg from './package.json';
import shell from 'gulp-shell';

const slim_banner = (
`*
* Copyright (c) ${new Date().getFullYear()} ${pkg.author.name}
* ${pkg.title} - ${pkg.description}
* @version ${pkg.version}
* @link ${pkg.homepage}
* @license ${pkg.license.type}
*`);

gulp.task('jekyll', () => {
	return gulp.src('*.js', {read: false})
	  .pipe(shell('jekyll build'))
});

gulp.task('deploy', ['pss', 'jekyll'] ,() => {
	return gulp.src('./_gh-pages/**/*')
	  .pipe(ghPages())
});

gulp.task('psslint', () => {
	return gulp.src('./src/pss/**/*.pss')
		.pipe(postcss([
			require('stylelint')()
		]))
});

gulp.task('csssupport', () => {
	return gulp.src('./dist/css/**/*.css')
		.pipe(postcss([
			require('doiuse')({
				browsers: [
					'ie >= 10',
					'last 2 versions'
				]
			})
		]))
});

gulp.task('pss', ['test'],() => {
	return gulp.src(`./src/pss/${pkg.title}.pss`)
		.pipe(postcss([
			require('postcss-devtools')(),
			require('postcss-easy-import')({
				prefix: '_',
				extensions: '.pss'
			}),
			require('postcss-mixins')(),
			require('postcss-at-rules-variables').default(),
			require('postcss-custom-properties')(),
			require('postcss-for')(),
			require('postcss-conditionals'),
			require('postcss-nested')(),
			require('postcss-calc')({ precision: 3 }),
			require('postcss-clearfix')(),
			require('postcss-class-prefix')('sl-'),
			require('postcss-attribute-selector-prefix').default({prefix: 'sl-', filter: ['class']}),
			require('postcss-sorting')(),
			require('postcss-banner')({banner: slim_banner}),
			require('postcss-browser-reporter')()
		]))
		.pipe(rename({ extname: '.css' }))
		.pipe(gulp.dest('./dist/css/'))
		.pipe(gulp.dest('./docs/dist/css/'))
		.pipe(postcss([
			require('postcss-devtools')(),
			require('postcss-csso')()
		]))
		.pipe(rename({ extname: '.min.css' }))
		.pipe(gulp.dest('./dist/css/'))
		.pipe(gulp.dest('./docs/dist/css/'))
});

gulp.task('default',['pss']);
gulp.task('test',['psslint', 'csssupport']);

{'fraction_non_alphanumeric': 0.2607683352735739, 'fraction_numerical': 0.0018626309662398137, 'mean_word_length': 4.207272727272727, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '6566104', 'n_tokens_mistral': 1769, 'n_tokens_neox': 1632, 'n_words': 230}