<commit_before>var gulp = require('gulp'),
    imagemin = require('gulp-imagemin'),
    myth = require('gulp-myth'),
    concat = require('gulp-concat'),
    includeHtml = require('gulp-include-html'),
    updateFontello = require('fontello-update'),
    less = require('gulp-less'),
    path = require('path'),
    watch = require('gulp-watch');

// Get fontello icons
gulp.task('fontello', function() {
    updateFontello({
        config: './fontello.json',
        fonts: './build/font',
        css: './build/css'
    });
});

// Optimization images
gulp.task('images', function() {
    gulp.src('./assets/img/**/*')
        .pipe(imagemin())
        .pipe(gulp.dest('./build/img'));
});

// Build pages
gulp.task('pages', function() {
    gulp.src('./assets/tmpl/*.html')
        .pipe(includeHtml())
        .pipe(gulp.dest('build/'));
});

// CSS
gulp.task('css', function() {
    gulp.src('./assets/css/**/*.less')
        .pipe(less({
            paths: [ path.join(__dirname, 'less', 'includes') ]
        }))
        .pipe(myth())
        .pipe(gulp.dest('./build/css/'));
});

// JS
gulp.task('js', function() {
    gulp.src(['./assets/js/**/*.js'])
        .pipe(gulp.dest('./build/js'));
});

/* * */

gulp.task('watch', function() {
    watch('./assets/tmpl/**/*.html', function(event) {
        gulp.run('pages');
    });

    watch('./assets/css/**/*.less', function(event) {
        gulp.run('css');
    });

    watch('./assets/js/**/*.js', function(event) {
        gulp.run('js');
    });
});

gulp.task('build', function() {
    gulp.run('fontello');
    gulp.run('images');
    gulp.run('pages');
    gulp.run('css');
    gulp.run('js');
});<commit_msg>Переделал запуск build, чтобы не выдавало ошибку depricated run()<commit_after>var gulp = require('gulp'),
    imagemin = require('gulp-imagemin'),
    myth = require('gulp-myth'),
    concat = require('gulp-concat'),
    includeHtml = require('gulp-include-html'),
    updateFontello = require('fontello-update'),
    less = require('gulp-less'),
    path = require('path'),
    watch = require('gulp-watch');

// Get fontello icons
gulp.task('fontello', function() {
    updateFontello({
        config: './fontello.json',
        fonts: './build/font',
        css: './build/css'
    });
});

// Optimization images
gulp.task('images', function() {
    gulp.src('./assets/img/**/*')
        .pipe(imagemin())
        .pipe(gulp.dest('./build/img'));
});

// Build pages
gulp.task('pages', function() {
    gulp.src('./assets/tmpl/*.html')
        .pipe(includeHtml())
        .pipe(gulp.dest('build/'));
});

// CSS
gulp.task('css', function() {
    gulp.src('./assets/css/**/*.less')
        .pipe(less({
            paths: [ path.join(__dirname, 'less', 'includes') ]
        }))
        .pipe(myth())
        .pipe(gulp.dest('./build/css/'));
});

// JS
gulp.task('js', function() {
    gulp.src(['./assets/js/**/*.js'])
        .pipe(gulp.dest('./build/js'));
});

/* * */

gulp.task('watch', function() {
    watch('./assets/tmpl/**/*.html', function(event) {
        gulp.run('pages');
    });

    watch('./assets/css/**/*.less', function(event) {
        gulp.run('css');
    });

    watch('./assets/js/**/*.js', function(event) {
        gulp.run('js');
    });
});

gulp.task('build', [
    'fontello', 
    'images',
    'pages',
    'css',
    'js'
]);
{'fraction_non_alphanumeric': 0.24783258594917787, 'fraction_numerical': 0.0, 'mean_word_length': 2.522105263157895, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4278501', 'n_tokens_mistral': 1167, 'n_tokens_neox': 1153, 'n_words': 165}