<commit_before>var gulp     	= require('gulp'),
	spritesmith = require('gulp.spritesmith'),
	fs 			= require('fs'),
	path 		= require('path'),
	config 		= require('../config');


	// Retorna um array com o nome das pastas do diretório passado.
	function getFolders(dir) {
	    return fs.readdirSync(dir)
			.filter(function(file) {
				return fs.statSync(path.join(dir, file)).isDirectory();
		});
	};


	function loadSprites(pathSprite){
		var spriteData = gulp.src(config.sprites.src + '/' + pathSprite + '/*.png').pipe(spritesmith({
			imgName: pathSprite + '.png',
			cssName: pathSprite + '.less',
			imgPath: config.sprites.dst,
			cssFormat: 'less',
			algorithm: 'binary-tree',
			padding: 5
		}))

		spriteData.img.pipe(gulp.dest(config.sprites.dst));
		spriteData.css.pipe(gulp.dest(config.sprites.css));
	};
	

	gulp.task('sprites', function() {
		var folders 		= getFolders(config.sprites.src),
			totalFolders 	= folders.length;

		for(var i = 0; i < totalFolders; i+=1){
			loadSprites(folders[i]);
		}
	});<commit_msg>Normaliza formatação do arquivo sprites.js<commit_after>'use strict';

var gulp = require('gulp');
var spritesmith = require('gulp.spritesmith');
var fs = require('fs');
var path = require('path');
var config = require('../config');


// Retorna um array com o nome das pastas do diretório passado.
function getFolders(dir) {
    return fs.readdirSync(dir)
		.filter(function(file) {
			return fs.statSync(path.join(dir, file)).isDirectory();
	});
};


function loadSprites(pathSprite){
	var spriteData = gulp.src(config.sprites.src + '/' + pathSprite + '/*.png').pipe(spritesmith({
		imgName: pathSprite + '.png',
		cssName: pathSprite + '.less',
		imgPath: config.sprites.dst,
		cssFormat: 'less',
		algorithm: 'binary-tree',
		padding: 5
	}))

	spriteData.img.pipe(gulp.dest(config.sprites.dst));
	spriteData.css.pipe(gulp.dest(config.sprites.css));
};


gulp.task('sprites', function() {
	var folders = getFolders(config.sprites.src);
	var totalFolders = folders.length;

	for(var i = 0; i < totalFolders; i+=1){
		loadSprites(folders[i]);
	}
});
{'fraction_non_alphanumeric': 0.17186749879980798, 'fraction_numerical': 0.0028804608737397984, 'mean_word_length': 4.197007481296758, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2809882', 'n_tokens_mistral': 833, 'n_tokens_neox': 764, 'n_words': 145}