<commit_before>const gulp = require('gulp');
const rename = require('gulp-rename');
const clean = require('gulp-clean');

const sass = require('gulp-sass');
const postcss = require('gulp-postcss');
const scss = require('postcss-scss');
const cssnext = require('postcss-cssnext');
const cssnano = require('cssnano');

const scssConfig = { syntax: scss };
const processors = {
  pre: [ cssnext() ],
  post: [ cssnano() ],
};

gulp.task('clean', () =>
    gulp.src('./dist/**/*', { read: false })
      .pipe(clean())
);

gulp.task('css:bem', () =>
  gulp.src('./bem/all.scss')
    .pipe(postcss(processors.pre, scssConfig))
    .pipe(sass())
    .pipe(rename('nio.bem.css'))
    .pipe(gulp.dest('./dist'))
    .pipe(postcss(processors.post))
    .pipe(rename('nio.bem.min.css'))
    .pipe(gulp.dest('./dist'))
);

gulp.task('css:modules', () =>
  gulp.src('./modules/**/*.scss')
    .pipe(postcss(processors.pre, scssConfig))
    .pipe(sass())
    .pipe(gulp.dest('./dist/modules'))
);

gulp.task('default', gulp.series('clean', gulp.parallel('css:bem', 'css:modules')));

gulp.task('watch', () =><commit_msg>make sure to include "." in the includePath<commit_after>const gulp = require('gulp');
const rename = require('gulp-rename');
const clean = require('gulp-clean');

const sass = require('gulp-sass');
const postcss = require('gulp-postcss');
const scss = require('postcss-scss');
const cssnext = require('postcss-cssnext');
const cssnano = require('cssnano');

const postCssConfig = { syntax: scss };
const scssConfig = {
  includePaths: ['.'],
};

const processors = {
  pre: [ cssnext() ],
  post: [ cssnano() ],
};

gulp.task('clean', () =>
    gulp.src('./dist/**/*', { read: false })
      .pipe(clean())
);

gulp.task('css:bem', () =>
  gulp.src('./bem/all.scss')
    .pipe(postcss(processors.pre, postCssConfig))
    .pipe(sass(scssConfig))
    .pipe(rename('nio.bem.css'))
    .pipe(gulp.dest('./dist'))
    .pipe(postcss(processors.post))
    .pipe(rename('nio.bem.min.css'))
    .pipe(gulp.dest('./dist'))
);

gulp.task('css:modules', () =>
  gulp.src('./modules/**/*.scss')
    .pipe(postcss(processors.pre, postCssConfig))
    .pipe(sass(scssConfig))
    .pipe(gulp.dest('./dist/modules'))
);

gulp.task('default', gulp.series('clean', gulp.parallel('css:bem', 'css:modules')));

gulp.task('watch', () =>
{'fraction_non_alphanumeric': 0.23696682464454977, 'fraction_numerical': 0.0, 'mean_word_length': 4.20627802690583, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '5120372', 'n_tokens_mistral': 869, 'n_tokens_neox': 869, 'n_words': 129}