<commit_before>var gulp = require('gulp');
var watch = require('gulp-watch');
var jslint = require('gulp-jslint');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var notify = require('gulp-notify');

var stylus = require('gulp-stylus');
var concatCss = require('gulp-concat-css');
var csslint = require('gulp-csslint');

gulp.task('js', function() {
  gulp.src([
    'js/main.js',
    'js/library.js'
  ])
    .pipe(jslint({
      reporter: function (evt) {
        var msg = ' ' + evt.file;
        if (evt.pass) {
            msg = '[PASS]' + msg;
        } else {
            msg = '[FAIL]' + msg;
        }
        console.log(msg);
      }
    }))
    .pipe(uglify())
    .pipe(rename({suffix: '.min'}))
    .pipe(gulp.dest('js'))
    .pipe(notify({ message: 'Js task complete' }));
});

gulp.task('style', function() {
  gulp.src([
    'css/reset.styl',
    'css/site.styl',
  ])
    .pipe(stylus())
    .pipe(concatCss('site.css'))
    .pipe(csslint())
    .pipe(gulp.dest('css'))
});

gulp.task('watch', function() {
  gulp.watch(['js/main.js'], ['js']);
  gulp.watch(['css/site.styl'], ['style']);
});

gulp.task('default', function() {
  // place code for your default task here
});<commit_msg>add - notification to gulp task style<commit_after>var gulp = require('gulp');
var watch = require('gulp-watch');
var jslint = require('gulp-jslint');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var notify = require('gulp-notify');

var stylus = require('gulp-stylus');
var concatCss = require('gulp-concat-css');
var csslint = require('gulp-csslint');

gulp.task('js', function() {
  gulp.src([
    'js/main.js',
    'js/library.js'
  ])
    .pipe(jslint({
      reporter: function (evt) {
        var msg = ' ' + evt.file;
        if (evt.pass) {
            msg = '[PASS]' + msg;
        } else {
            msg = '[FAIL]' + msg;
        }
        console.log(msg);
      }
    }))
    .pipe(uglify())
    .pipe(rename({suffix: '.min'}))
    .pipe(gulp.dest('js'))
    .pipe(notify({ message: 'Js task complete' }));
});

gulp.task('style', function() {
  gulp.src([
    'css/reset.styl',
    'css/site.styl',
  ])
    .pipe(stylus())
    .pipe(concatCss('site.css'))
    .pipe(csslint())
    .pipe(gulp.dest('css'))
    .pipe(notify({ message: 'Style task complete' }));
});

gulp.task('watch', function() {
  gulp.watch(['js/main.js'], ['js']);
  gulp.watch(['css/site.styl'], ['style']);
});

gulp.task('default', function() {
  // place code for your default task here
});
{'fraction_non_alphanumeric': 0.22117276662731208, 'fraction_numerical': 0.0, 'mean_word_length': 2.916795069337442, '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': '1138978', 'n_tokens_mistral': 943, 'n_tokens_neox': 945, 'n_words': 174}