<commit_before>var gulp = require('gulp');
var concat = require('gulp-concat');
var rename = require('gulp-rename');
var uglifyjs = require('gulp-uglify');
var uglifycss = require('gulp-minify-css');
var prefix = require('gulp-autoprefixer');
var sourcemaps = require('gulp-sourcemaps');
var replace = require('gulp-string-replace');
var pump = require('pump');

var path = {
	css: ['css/nyancss.css'],
	js: ['js/nyancss.js']
};

gulp.task('css', function() {
 return gulp.src(path.css)
 	.pipe(sourcemaps.init())
	.pipe(prefix({
	    browsers: ["> 0%"]
	}))
	.pipe(sourcemaps.write('.'))
	.pipe(rename("nyan.css"))
	.pipe(gulp.dest("release/css/"))
	.pipe(uglifycss())
	.pipe(rename("nyan.css"))
	.pipe(gulp.dest("release/css/"));
});

gulp.task('js', function(cb) {
 pump([
 	gulp.src(path.js),
 	sourcemaps.init(),
 	sourcemaps.write('.'),
	gulp.dest('release/js/'),
	rename("nyan.min.js"),
	uglifyjs(),
	gulp.dest("release/js/")
 ], cb)
});


<commit_msg>add gulp-banner<commit_after>var gulp = require('gulp');
var concat = require('gulp-concat');
var rename = require('gulp-rename');
var uglifyjs = require('gulp-uglify');
var uglifycss = require('gulp-minify-css');
var prefix = require('gulp-autoprefixer');
var sourcemaps = require('gulp-sourcemaps');
var replace = require('gulp-string-replace');
var pump = require('pump');
var banner = require('gulp-banner');
var pkg = require('./package.json');

var path = {
	css: ['css/nyancss.css'],
	js: ['js/nyancss.js']
};

var comment = '/*\n' +
    ' * <%= pkg.name %> <%= pkg.version %>\n' +
    ' * <%= pkg.description %>\n' +
    ' * <%= pkg.homepage %>\n' +
    ' *\n' +
    ' * Copyright 2017, <%= pkg.author %>\n' +
    ' * Released under the <%= pkg.license %> license.\n' +
    '*/\n\n';

gulp.task('css', function() {
 return gulp.src(path.css)
 	.pipe(sourcemaps.init())
 	.pipe(banner(comment, {
        pkg: pkg
    }))
	.pipe(prefix({
	    browsers: ["> 0%"]
	}))
	.pipe(sourcemaps.write('.'))
	.pipe(rename("nyan.css"))
	.pipe(gulp.dest("release/css/"))
	.pipe(uglifycss())
	.pipe(rename("nyan.css"))
	.pipe(gulp.dest("release/css/"));
});

gulp.task('js', function(cb) {
 pump([
 	gulp.src(path.js),
 	sourcemaps.init(),
 	banner(comment, {
        pkg: pkg
    }),
 	sourcemaps.write('.'),
	gulp.dest('release/js/'),
	rename("nyan.min.js"),
	uglifyjs(),
	gulp.dest("release/js/")
 ], cb)
});



{'fraction_non_alphanumeric': 0.24143763213530656, 'fraction_numerical': 0.002536997885835095, 'mean_word_length': 4.023354564755839, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '4061719', 'n_tokens_mistral': 987, 'n_tokens_neox': 948, 'n_words': 150}