<commit_before>/*global require*/
var gulp = require('gulp'),
    gutil = require('gulp-util');

var connect = require('gulp-connect'),
    livereload = require('gulp-livereload'),
    uglify = require('gulp-uglify'),
    jshint = require('gulp-jshint'),
    changed = require('gulp-changed'),
    cache = require('gulp-cached'),
    rename = require('gulp-rename'),
    annotate = require('gulp-ng-annotate'),
    header = require('gulp-header'),
    less = require('gulp-less');

var pkg = require('./package.json');

var getTodayStr = function () {
  var date = new Date(),
      y = date.getFullYear(),
      m = date.getMonth() + 1,
      d = date.getDate();

  return y + '-' + m + '-' + d;
};

var config = {
  appRoot: '',
  src: 'src/angular-scroll-watch.js',
  buildDir: 'build',
  banner: '/*! <%= pkg.name %>\n' +
    'version: <%= pkg.version %>\n' +
    'build date: <%= today %>\n' +
    'author: <%= pkg.author %>\n' +
    '<%= pkg.repository.url %> */\n'
};

gulp.task('build', ['lint'], function () {
  return gulp.src(config.src)
    .pipe(annotate())
    .pipe(gulp.dest(config.buildDir))
    .pipe(uglify())
    .pipe(rename({extname: '.min.js'}))
    .pipe(header(config.banner, {pkg: pkg, today: getTodayStr()}))
    .pipe(gulp.dest(config.buildDir));<commit_msg>Add banner to non-minified build<commit_after>/*global require*/
var gulp = require('gulp'),
    gutil = require('gulp-util');

var connect = require('gulp-connect'),
    livereload = require('gulp-livereload'),
    uglify = require('gulp-uglify'),
    jshint = require('gulp-jshint'),
    changed = require('gulp-changed'),
    cache = require('gulp-cached'),
    rename = require('gulp-rename'),
    annotate = require('gulp-ng-annotate'),
    header = require('gulp-header'),
    less = require('gulp-less');

var pkg = require('./package.json');

var getTodayStr = function () {
  var date = new Date(),
      y = date.getFullYear(),
      m = date.getMonth() + 1,
      d = date.getDate();

  return y + '-' + m + '-' + d;
};

var config = {
  appRoot: '',
  src: 'src/angular-scroll-watch.js',
  buildDir: 'build',
  banner: '/*! <%= pkg.name %>\n' +
    'version: <%= pkg.version %>\n' +
    'build date: <%= today %>\n' +
    'author: <%= pkg.author %>\n' +
    '<%= pkg.repository.url %> */\n'
};

gulp.task('build', ['lint'], function () {
  return gulp.src(config.src)
    .pipe(annotate())
    .pipe(header(config.banner, {pkg: pkg, today: getTodayStr()}))
    .pipe(gulp.dest(config.buildDir))
    .pipe(uglify())
    .pipe(rename({extname: '.min.js'}))
    .pipe(header(config.banner, {pkg: pkg, today: getTodayStr()}))
    .pipe(gulp.dest(config.buildDir));
{'fraction_non_alphanumeric': 0.21858540255831452, 'fraction_numerical': 0.0007524454477050414, 'mean_word_length': 3.2680577849117176, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '7336257', 'n_tokens_mistral': 999, 'n_tokens_neox': 957, 'n_words': 182}