<commit_before>/**
 * Created by <NAME> on 18/03/15.
 */

var gulp = require('gulp');
var jshint = require('gulp-jshint');
var uglify = require('gulp-uglify');
var concat = require('gulp-concat');
var rename = require('gulp-rename');
var sass = require('gulp-sass');
var server = require('gulp-server-livereload');
var csslint = require('gulp-csslint');
var minifyCSS = require('gulp-minify-css');


var origem = "./src";
var destino = "./dist";

gulp.task('css', function() {
    gulp.src(destino+'/**/*.css')
        .pipe(csslint())
        .pipe(csslint.reporter());
});

gulp.task('server', function() {
    gulp.src(destino)
        .pipe(server({
            livereload: true,
            open: true,
            defaultFile: "guia.html"
        }));
});

gulp.task('jslint', function() {
    gulp.src(origem+"/js/*.js")
        .pipe(jshint())
        .pipe(jshint.reporter('default'));
});<commit_msg>incluindo processos para reduzir as imagens png e jpg<commit_after>/**
 * Created by <NAME> on 18/03/15.
 */

var gulp = require('gulp');
var jshint = require('gulp-jshint');
var uglify = require('gulp-uglify');
var concat = require('gulp-concat');
var rename = require('gulp-rename');
var sass = require('gulp-sass');
var server = require('gulp-server-livereload');
var csslint = require('gulp-csslint');
var minifyCSS = require('gulp-minify-css');

//otimizadores de imagens
var imagemin = require('gulp-imagemin');
var jpegtran = require('imagemin-jpegtran');
var optipng = require('imagemin-optipng');

var origem = "./src";
var destino = "./dist";

gulp.task('imagemin', function () {
    return gulp.src(origem+'/img/*.png')
        .pipe(imagemin({
            use: [optipng()]
        }))
        .pipe(gulp.dest(destino+'/img'));
});

gulp.task('optimizer-jpg', function () {
    return gulp.src(origem+'/img/*.jpg')
        .pipe(jpegtran({progressive: true})())
        .pipe(gulp.dest(destino+'/img'));
});

gulp.task('optimizer-png', function () {
    return gulp.src(origem+'/img/*.png')
        .pipe(optipng({optimizationLevel: 3})())
        .pipe(gulp.dest(destino+'/img'));
});

gulp.task('optimizer-img', ['optimizer-jpg', 'imagemin']);

gulp.task('css', function() {
    gulp.src(destino+'/**/*.css')
        .pipe(csslint())
        .pipe(csslint.reporter());
});

gulp.task('server', function() {
    gulp.src(destino)
        .pipe(server({
            livereload: true,
            open: true,
            defaultFile: "guia.html"
        }));
});

gulp.task('jslint', function() {
    gulp.src(origem+"/js/*.js")
        .pipe(jshint())
        .pipe(jshint.reporter('default'));
});
{'fraction_non_alphanumeric': 0.20962199312714777, 'fraction_numerical': 0.004963726613211149, 'mean_word_length': 3.212218649517685, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3039483', 'n_tokens_mistral': 966, 'n_tokens_neox': 946, 'n_words': 163}