<commit_before>'use strict';

var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
var del = require('del');
var runSequence = require('run-sequence');
var browserSync = require('browser-sync');
var browserify = require('browserify');
var watchify = require('watchify');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var reload = browserSync.reload;
var isProduction = process.env.NODE_ENV === "production";

var AUTOPREFIXER_BROWSERS = [
	'ie >= 9',
	'ie_mob >= 10',
	'ff >= 30',
	'chrome >= 34',
	'safari >= 7',
	'opera >= 23',
	'ios >= 7',
	'android >= 2.3',
	'bb >= 10'
];

var paths = {
	dist: {
		base: 'dist',
		js: 'dist/js',
		css: 'dist/css',
		i: 'dist/i',
		fonts: 'dist/fonts',
		api: 'dist/api'
	}
};

// JavaScript 格式校验
gulp.task('jshint', function () {
	return gulp.src('app/js/**/*.js')
		.pipe(reload({stream: true, once: true}))
		.pipe($.eslint())
		.pipe($.eslint.format())
		.pipe($.eslint.failOnError());
});

// 图片优化
gulp.task('images', function () {<commit_msg>clear all image.<commit_after>'use strict';

var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
var del = require('del');
var runSequence = require('run-sequence');
var browserSync = require('browser-sync');
var browserify = require('browserify');
var watchify = require('watchify');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var reload = browserSync.reload;
var isProduction = process.env.NODE_ENV === "production";

var AUTOPREFIXER_BROWSERS = [
	'ie >= 9',
	'ie_mob >= 10',
	'ff >= 30',
	'chrome >= 34',
	'safari >= 7',
	'opera >= 23',
	'ios >= 7',
	'android >= 2.3',
	'bb >= 10'
];

var paths = {
	dist: {
		base: 'dist',
		js: 'dist/js',
		css: 'dist/css',
		i: 'dist/i',
		fonts: 'dist/fonts',
		api: 'dist/api'
	}
};

// JavaScript 格式校验
gulp.task('jshint', function () {
	return gulp.src('app/js/**/*.js')
		.pipe(reload({stream: true, once: true}))
		.pipe($.eslint())
		.pipe($.eslint.format())
		.pipe($.eslint.failOnError());
});

// 图片优化
gulp.task('images', function () {
	$.cache.clearAll();
{'fraction_non_alphanumeric': 0.22714285714285715, 'fraction_numerical': 0.014285714285714285, 'mean_word_length': 4.278894472361809, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 21, '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': '1939526', 'n_tokens_mistral': 861, 'n_tokens_neox': 804, 'n_words': 175}