<commit_before>var gulp = require('gulp');
var gutil = require('gulp-util');
var iconfontCss = require('gulp-iconfont-css');
var svgicons2svgfont = require('gulp-svgicons2svgfont');
var svg2ttf = require('gulp-svg2ttf');
var ttf2eot = require('gulp-ttf2eot');
var ttf2woff = require('gulp-ttf2woff');
var config = require('./../config');
var runSequence = require('run-sequence');

gulp.task('iconfont', function (callback) {

	if (config.global.tasks.iconfont) {
		runSequence(
			'convertIconsToTtf',
			[
				'convertTtfToEot',
				'convertTtfToWoff'
			],
			callback
		);
	} else {
		callback();
		gutil.log(gutil.colors.yellow('iconfont disabled'));
	}

});

gulp.task('convertIconsToTtf', function () {

	return gulp.src(config.global.src + '/_icons/*.svg')
		.pipe(iconfontCss(config.iconfontCss))
		.pipe(svgicons2svgfont(config.iconfont))
		.pipe(svg2ttf())
		.pipe(gulp.dest(config.global.dev + '/resources/fonts/icons/'));

});

gulp.task('convertTtfToEot', function () {

	return gulp.src(config.global.dev + '/resources/fonts/icons/*.ttf')
		.pipe(ttf2eot())
		.pipe(gulp.dest(config.global.dev + '/resources/fonts/icons/'));

});

gulp.task('convertTtfToWoff', function () {

	return gulp.src(config.global.dev + '/resources/fonts/icons/*.ttf')
		.pipe(ttf2woff())
		.pipe(gulp.dest(config.global.dev + '/resources/fonts/icons/'));

});<commit_msg>multiple iconfont files<commit_after>var gulp = require('gulp');
var gutil = require('gulp-util');
var iconfontCss = require('gulp-iconfont-css');
var svgicons2svgfont = require('gulp-svgicons2svgfont');
var svg2ttf = require('gulp-svg2ttf');
var ttf2eot = require('gulp-ttf2eot');
var ttf2woff = require('gulp-ttf2woff');
var config = require('./../config');
var runSequence = require('run-sequence');
var mergeStream = require('merge-stream');

gulp.task('iconfont', function (callback) {

	if (config.global.tasks.iconfont) {
		runSequence(
			'convertIconsToTtf',
			[
				'convertTtfToEot',
				'convertTtfToWoff'
			],
			callback
		);
	} else {
		callback();
		gutil.log(gutil.colors.yellow('iconfont disabled'));
	}

});

gulp.task('convertIconsToTtf', function () {

	var iconfontArray = config.iconfontCss;

	if (!Array.isArray(iconfontArray)) {
		iconfontArray = [iconfontArray];
	}

	return mergeStream(iconfontArray.map(function(currentResource) {
		return gulp.src(config.global.src + '/_icons/*.svg')
			.pipe(iconfontCss(currentResource))
			.pipe(svgicons2svgfont(config.iconfont))
			.pipe(svg2ttf())
			.pipe(gulp.dest(config.global.dev + '/resources/fonts/icons/'));
	}));

});

gulp.task('convertTtfToEot', function () {

	return gulp.src(config.global.dev + '/resources/fonts/icons/*.ttf')
		.pipe(ttf2eot())
		.pipe(gulp.dest(config.global.dev + '/resources/fonts/icons/'));

});

gulp.task('convertTtfToWoff', function () {

	return gulp.src(config.global.dev + '/resources/fonts/icons/*.ttf')
		.pipe(ttf2woff())
		.pipe(gulp.dest(config.global.dev + '/resources/fonts/icons/'));

});
{'fraction_non_alphanumeric': 0.18876177658142665, 'fraction_numerical': 0.008075370121130552, 'mean_word_length': 4.795321637426901, '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': '78847', 'n_tokens_mistral': 1192, 'n_tokens_neox': 1112, 'n_words': 148}