<commit_before>// Dependencies
var $			= require('gulp-load-plugins')();
var gulp		= require('gulp');
var jeet		= require('jeet');


// Paths
var paths = {
	src: {
		css: 'src/css/**/*.styl',
		js: 'src/js/**/*.js'
	},
	
	build: {
		css: 'assets/css',
		js: 'assets/js'
	}
};


// Default Task
gulp.task('default', ['css', 'js']);


// Watch 
gulp.task('watch', function() {
	gulp.watch(paths.src.css, ['css']);
	gulp.watch(paths.src.js, ['js']);
});


// Process all stylus files
gulp.task('css', function() {
	return gulp.src(paths.src.css)
		.pipe($.stylus({
			use: [jeet]
		}))
		.pipe($.minifyCss())
		.pipe($.autoprefixer())
		.pipe(gulp.dest(paths.build.css));
});


// Process all javascript files
gulp.task('js', function() {
	return gulp.src(paths.src.js)
		.pipe($.uglify())
		.pipe(gulp.dest(paths.build.js));
});<commit_msg>Update gulpfile<commit_after>// Dependencies
var $			= require('gulp-load-plugins')();
var Gulp		= require('gulp');
var Jeet		= require('Jeet');


// Paths
var paths = {
	src: {
		css: 'src/css/**/*.styl',
		js: [
			'src/bower/react/react.min.js',
			'src/bower/reqwest/reqwest.min.js',
			'src/react/**/*.jsx',
			'src/js/main.jsx'
		]
	},
	
	build: {
		css: 'assets/css',
		js: 'assets/js',
	}
};


/**
 * Check if is jsx file
 * @param {object} Vinyl file object
 * @return {boolean}
 */
function isJSX(file) {
	var ext = '.jsx';
	var startIndex = file.path.length - ext.length;
	
	return file.path.indexOf(ext, startIndex) !== -1 ? true : false;
}


// Default Task
Gulp.task('default', ['css', 'js']);


// Watch 
Gulp.task('watch', function() {
	Gulp.watch(paths.src.css, ['css']);
	Gulp.watch(paths.src.js, ['js']);
});


// Process all stylus files
Gulp.task('css', function() {
	return Gulp.src(paths.src.css)
		.pipe($.plumber())
		.pipe($.stylus({
			use: [Jeet]
		}))
		.pipe($.minifyCss())
		.pipe($.autoprefixer())
		.pipe($.rename('main.min.css'))
		.pipe(Gulp.dest(paths.build.css));
});


// Process all javascript files
Gulp.task('js', function() {
	return Gulp.src(paths.src.js)
		.pipe($.plumber())
		.pipe($.if(isJSX, $.react()))
		.pipe($.concat('main.min.js'))
		.pipe(Gulp.dest(paths.build.js));
});

{'fraction_non_alphanumeric': 0.24271844660194175, 'fraction_numerical': 0.0004623208506703652, 'mean_word_length': 3.3629032258064515, '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': '1911617', 'n_tokens_mistral': 958, 'n_tokens_neox': 894, 'n_words': 154}