<commit_before>var gulp = require("gulp");

var concat = require("gulp-concat");
var rename = require("gulp-rename");

var uglify = require("gulp-uglify");
var jshint = require("gulp-jshint");

var cssminify = require("gulp-minify-css");

var browserSync = require("browser-sync").create();


//路径
var paths = {
    js :"./dev/**/*.js",
    css:"./dev/**/*.css"
};

var pathsto = {
    js :"./assets/js/",
    css:"./assets/css/"
};

// js hint
gulp.task("jshint",function(){
    return gulp.src(paths.js)
               .pipe(jshint())
               .pipe(jshint.reporter("default"));
});

// js concat/uglify/minify
gulp.task("jsmini",["jshint"],function(){
    return gulp.src(paths.js)
        .pipe(concat("main.js"))
        .pipe(gulp.dest(pathsto.js))
        .pipe(uglify())
        .pipe(rename({
            suffix: ".min",
            extname: ".js"
        }))
        .pipe(gulp.dest(pathsto.js))
        .pipe(browserSync.reload({stream: true}));
});

// css concat/minify
gulp.task("cssmini",function(){
    return gulp.src(paths.css)
        .pipe(concat("main.css"))
        .pipe(gulp.dest(pathsto.css))
        .pipe(cssminify())
        .pipe(rename({
            suffix: ".min",
            extname: ".css"
        }))
        .pipe(gulp.dest(pathsto.css))
        .pipe(browserSync.reload({stream: true}));
});<commit_msg>add autoprefixer<commit_after>var gulp = require("gulp");

var concat = require("gulp-concat");
var rename = require("gulp-rename");

var uglify = require("gulp-uglify");
var jshint = require("gulp-jshint");

var cssminify = require("gulp-minify-css");

var browserSync = require("browser-sync").create();
var autoprefixer = require("gulp-autoprefixer");


//路径
var paths = {
    js :"./dev/**/*.js",
    css:"./dev/**/*.css"
};

var pathsto = {
    js :"./assets/js/",
    css:"./assets/css/"
};

// js hint
gulp.task("jshint",function(){
    return gulp.src(paths.js)
               .pipe(jshint())
               .pipe(jshint.reporter("default"));
});

// js concat/uglify/minify
gulp.task("jsmini",["jshint"],function(){
    return gulp.src(paths.js)
        .pipe(concat("main.js"))
        .pipe(gulp.dest(pathsto.js))
        .pipe(uglify())
        .pipe(rename({
            suffix: ".min",
            extname: ".js"
        }))
        .pipe(gulp.dest(pathsto.js))
        .pipe(browserSync.reload({stream: true}));
});

// css concat/minify
gulp.task("cssmini",function(){
    return gulp.src(paths.css)
        .pipe(concat("main.css"))
        .pipe(autoprefixer({
            browsers: ['> 1%'],
            cascade: false
        }))
        .pipe(gulp.dest(pathsto.css))
        .pipe(cssminify())
        .pipe(rename({
            suffix: ".min",
            extname: ".css"
        }))
        .pipe(gulp.dest(pathsto.css))
        .pipe(browserSync.reload({stream: true}));
});
{'fraction_non_alphanumeric': 0.20639943741209563, 'fraction_numerical': 0.00035161744022503517, 'mean_word_length': 2.358913813459268, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '4955323', 'n_tokens_mistral': 1026, 'n_tokens_neox': 1023, 'n_words': 151}