<commit_before>const del = require('del');
const gulp = require('gulp');
const gulp_if = require('gulp-if');
const livereload = require('gulp-livereload');
const path = require('path');
const sass = require('gulp-sass');
const sourcemaps = require('gulp-sourcemaps');

const env = require('tools/gulp/env');

const output_dir =  path.join(env.outputDirectory, 'assets', 'css');
const sources_dir = 'sources/sass';

const sources = (env.isDevelopment
	? path.join(sources_dir, '**/*.scss')
	: path.join(sources_dir, 'style.scss'));

gulp.task('sass-clean', () => del(output_dir));

gulp.task('sass', () => gulp.src(sources)
	.pipe(gulp_if(env.isDevelopment, sourcemaps.init()))
	.pipe(sass({
		includePaths: [sources_dir],
		outputStyle: 'compressed'
	})).on('error', sass.logError)
	.pipe(gulp_if(env.isDevelopment, sourcemaps.write()))
	.pipe(gulp.dest(output_dir))
	.pipe(livereload())
);

gulp.task('sass-watch', ['sass'], () => gulp.watch(sources, ['sass']));

module.exports = {
	build: 'sass',
	clean: 'sass-clean',<commit_msg>quick fix for changelog style generation<commit_after>const del = require('del');
const gulp = require('gulp');
const gulp_if = require('gulp-if');
const livereload = require('gulp-livereload');
const path = require('path');
const sass = require('gulp-sass');
const sourcemaps = require('gulp-sourcemaps');

const env = require('tools/gulp/env');

const output_dir =  path.join(env.outputDirectory, 'assets', 'css');
const sources_dir = 'sources/sass';

// TODO fix this task this is dirty !

const sources = (env.isDevelopment
	? path.join(sources_dir, '**/*.scss')
	: [
		path.join(sources_dir, 'style.scss'),
		path.join(sources_dir, 'changelog.scss'),
	]
);

gulp.task('sass-clean', () => del(output_dir));

gulp.task('sass', () => gulp.src(sources)
	.pipe(gulp_if(env.isDevelopment, sourcemaps.init()))
	.pipe(sass({
		includePaths: [sources_dir],
		outputStyle: 'compressed'
	})).on('error', sass.logError)
	.pipe(gulp_if(env.isDevelopment, sourcemaps.write()))
	.pipe(gulp.dest(output_dir))
	.pipe(livereload())
);

gulp.task('sass-watch', ['sass'], () => gulp.watch(sources, ['sass']));

module.exports = {
	build: 'sass',
	clean: 'sass-clean',
{'fraction_non_alphanumeric': 0.20411899313501145, 'fraction_numerical': 0.0, 'mean_word_length': 5.8742138364779874, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7286965', 'n_tokens_mistral': 833, 'n_tokens_neox': 802, 'n_words': 143}