<commit_before>var gulp = require('gulp'),
    uglify = require('gulp-uglify'),
    concat = require('gulp-concat'),
    nodemon = require('gulp-nodemon'),
    //jshint = require('gulp-jshint'),
    //imagemin = require('gulp-imagemin'),
    minifyCSS = require('gulp-minify-css')
    less = require('gulp-less'),
    prefix = require('gulp-autoprefixer');

var paths = {
    images: 'src/images/*',
    scripts: 'src/js/*.js',
    css: 'src/css/*.css',
    less: 'src/less/*.less'
}

/**/

gulp.task('scripts', function() {
    return gulp.src(paths.scripts)
      .pipe(uglify())
      .pipe(concat('all.min.js'))
      .pipe(gulp.dest('public/js'));
});

gulp.task('css',function() {
	return gulp.src(paths.css)
      .pipe(prefix(["last 1 version", "> 1%", "ie 8", "ie 7"], { cascade: true }))
      .pipe(minifyCSS())
      //.pipe(concat('stylesheet.css'))
      .pipe(gulp.dest('public/css'));	
});

gulp.task('images', function() {
 return gulp.src(paths.images)
    // Pass in options to the task
    //.pipe(imagemin({optimizationLevel: 5}))
    .pipe(gulp.dest('public/images'));
});

gulp.task('less',function() {
    return gulp.src(paths.less)
        .pipe(less({
            keepSpecialComments: 0,
        }))
        .pipe(gulp.dest('public/css'));
});

gulp.task('watch', function() {
  gulp.watch(paths.scripts, ['scripts']);
  gulp.watch(paths.images, ['images']);
  gulp.watch(paths.css, ['css']);<commit_msg>update gulp<commit_after>var gulp = require('gulp'),
    uglify = require('gulp-uglify'),
    concat = require('gulp-concat'),
    nodemon = require('gulp-nodemon'),
    //jshint = require('gulp-jshint'),
    //imagemin = require('gulp-imagemin'),
    minifyCSS = require('gulp-minify-css')
    less = require('gulp-less'),
    prefix = require('gulp-autoprefixer');

var paths = {
    images: 'src/images/*',
    scripts: 'src/js/*.js',
    css: 'src/css/*.css',
    less: 'src/less/*.less'
}

/**/

gulp.task('scripts', function() {
    return gulp.src(paths.scripts)
      .pipe(uglify())
      .pipe(concat('all.min.js'))
      .pipe(gulp.dest('public/static/js'));
});

gulp.task('css',function() {
	return gulp.src(paths.css)
      .pipe(prefix(["last 1 version", "> 1%", "ie 8", "ie 7"], { cascade: true }))
      .pipe(minifyCSS())
      //.pipe(concat('stylesheet.css'))
      .pipe(gulp.dest('public/static/css'));	
});

gulp.task('images', function() {
 return gulp.src(paths.images)
    // Pass in options to the task
    //.pipe(imagemin({optimizationLevel: 5}))
    .pipe(gulp.dest('public/static/images'));
});

gulp.task('less',function() {
    return gulp.src(paths.less)
        .pipe(less({
            keepSpecialComments: 0,
        }))
        .pipe(gulp.dest('public/static/css'));
});

gulp.task('watch', function() {
  gulp.watch(paths.scripts, ['scripts']);
  gulp.watch(paths.images, ['images']);
  gulp.watch(paths.css, ['css']);
{'fraction_non_alphanumeric': 0.22160664819944598, 'fraction_numerical': 0.004155124653739612, 'mean_word_length': 3.199127906976744, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '285236', 'n_tokens_mistral': 1069, 'n_tokens_neox': 1040, 'n_words': 160}