<commit_before>'use strict';

import gulp from 'gulp';
import sass from 'gulp-sass';
import sourcemaps from 'gulp-sourcemaps';
import gulpif from 'gulp-if';
import browserSync from 'browser-sync';

var environment = null;

/**
 * Set environment
 */
gulp.task('setEnvDev',  () => { environment = 'dev'; });
gulp.task('setEnvProd', () => { environment = 'prod'; });

/**
 * Fonts
 */
gulp.task('fonts', () => {
    return gulp.src('app/Resources/mysqlad-icons/fonts/*.{svg,ttf,woff}')
        .pipe(gulp.dest('web/fonts'));
});

/**
 * Compile and copy styles
 */
gulp.task('styles', () => {
    return gulp.src('app/Resources/sass/app.scss')
        .pipe(gulpif(environment === 'dev', sourcemaps.init()))
        .pipe(sass())
        .pipe(gulpif(environment === 'dev', sourcemaps.write()))
        .pipe(browserSync.stream())
        .pipe(gulp.dest('web/css'));
});


/**
 * Run browsersync
 */
gulp.task('browserSync', () => {
    browserSync.init({
        proxy: 'https://localhost',
        notify: false,
        open: false
    });
});

/**
 * Watch tasks
 *
 * Remember "watch" only spots added/removed files when source paths are relative
 */
gulp.task('watch', () => {
    gulp.watch('app/Resources/sass/**/*.scss', ['styles']);
});

gulp.task('default', [<commit_msg>Reload browser if views had changed.<commit_after>'use strict';

import gulp from 'gulp';
import sass from 'gulp-sass';
import sourcemaps from 'gulp-sourcemaps';
import gulpif from 'gulp-if';
import browserSync from 'browser-sync';

var environment = null;

/**
 * Set environment
 */
gulp.task('setEnvDev',  () => { environment = 'dev'; });
gulp.task('setEnvProd', () => { environment = 'prod'; });

/**
 * Fonts
 */
gulp.task('fonts', () => {
    return gulp.src('app/Resources/mysqlad-icons/fonts/*.{svg,ttf,woff}')
        .pipe(gulp.dest('web/fonts'));
});

/**
 * Compile and copy styles
 */
gulp.task('styles', () => {
    return gulp.src('app/Resources/sass/app.scss')
        .pipe(gulpif(environment === 'dev', sourcemaps.init()))
        .pipe(sass())
        .pipe(gulpif(environment === 'dev', sourcemaps.write()))
        .pipe(browserSync.stream())
        .pipe(gulp.dest('web/css'));
});


/**
 * Run browsersync
 */
gulp.task('browserSync', () => {
    browserSync.init({
        proxy: 'https://localhost',
        notify: false,
        open: false
    });
});

gulp.task('reloadBrowser', browserSync.reload);

/**
 * Watch tasks
 *
 * Remember "watch" only spots added/removed files when source paths are relative
 */
gulp.task('watch', () => {
    gulp.watch('app/Resources/sass/**/*.scss', ['styles']);
    gulp.watch('app/Resources/views/**/*.twig', ['reloadBrowser']);
});

gulp.task('default', [
{'fraction_non_alphanumeric': 0.21243523316062177, 'fraction_numerical': 0.0, 'mean_word_length': 3.359677419354839, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 2, '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': '6154343', 'n_tokens_mistral': 916, 'n_tokens_neox': 906, 'n_words': 171}