<commit_before>var task = function(gulp, config) {
  'use strict';

  var gulpif = require('gulp-if');
  var gutil = require('gulp-util');
  var sourcemaps = require('gulp-sourcemaps');
  var source = require('vinyl-source-stream');
  var buffer = require('vinyl-buffer');
  var watchify = require('watchify');
  var browserify = require('browserify');
  var uglify = require('gulp-uglify');
  var cache  = require('gulp-memory-cache');
  var partialify = require('partialify');
  var ngannotate = require('browserify-ngannotate');
  var glob = require('glob');

  var bundle;
  var bundler = browserify({
    // Our app main
    entries: [glob.sync('./'+config.src.app)],
    // Enable source maps
    debug: true
  }, watchify.args);

  // Enable require on non js files
  bundler.transform(partialify);
  // Expand angular DI to enable minififaction
  bundler.transform(ngannotate);
  bundler.on('log', gutil.log);

  bundle = function () {
    var views = cache.get('views').cache;
    gutil.log('Bundling...');

    // Add views from cache
    for (var view in views) {
      bundler.add(views[view]);
    }

    // Browseriy
    return bundler.bundle()
      // log errors if they happen
      .on('error', gutil.log.bind(gutil, 'Browserify Error'))
      .pipe(source('app.js'))
      .pipe(buffer())
      .pipe(sourcemaps.init({loadMaps: true}))
      .pipe(gulpif(global.isProd, uglify({ compress: { drop_console: true } })))
      .pipe(sourcemaps.write('./'))
      .pipe(gulp.dest(config.dist.approot));
  };

  // Watch for changes and rebuild
  if ( !global.isProd ) {
    bundler = watchify(bundler);
    bundler.on('update', bundle);
  }

  // Registers gulp task
  gulp.task('browserify', ['views'], bundle);
};

module.exports = task;<commit_msg>Use same output filename as input..<commit_after>var task = function(gulp, config) {
  'use strict';

  var gulpif = require('gulp-if');
  var gutil = require('gulp-util');
  var sourcemaps = require('gulp-sourcemaps');
  var source = require('vinyl-source-stream');
  var buffer = require('vinyl-buffer');
  var watchify = require('watchify');
  var browserify = require('browserify');
  var uglify = require('gulp-uglify');
  var cache  = require('gulp-memory-cache');
  var partialify = require('partialify');
  var ngannotate = require('browserify-ngannotate');
  var glob = require('glob');
  var _ = require('lodash');

  var app = glob.sync('./'+config.src.app);
  var bundle;
  var bundler = browserify({
    // Our app main
    entries: app,
    // Enable source maps
    debug: true
  }, watchify.args);

  // Enable require on non js files
  bundler.transform(partialify);
  // Expand angular DI to enable minififaction
  bundler.transform(ngannotate);
  bundler.on('log', gutil.log);

  bundle = function () {
    var views = cache.get('views').cache;
    gutil.log('Bundling...');

    // Add views from cache
    for (var view in views) {
      bundler.add(views[view]);
    }

    // Browseriy
    return bundler.bundle()
      // log errors if they happen
      .on('error', gutil.log.bind(gutil, 'Browserify Error'))
      .pipe(source(_.last(app[0].split('/'))))
      .pipe(buffer())
      .pipe(sourcemaps.init({loadMaps: true}))
      .pipe(gulpif(global.isProd, uglify({ compress: { drop_console: true } })))
      .pipe(sourcemaps.write('./'))
      .pipe(gulp.dest(config.dist.approot));
  };

  // Watch for changes and rebuild
  if ( !global.isProd ) {
    bundler = watchify(bundler);
    bundler.on('update', bundle);
  }

  // Registers gulp task
  gulp.task('browserify', ['views'], bundle);
};

module.exports = task;
{'fraction_non_alphanumeric': 0.16495986714641572, 'fraction_numerical': 0.0002767783005812344, 'mean_word_length': 3.2617924528301887, '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': '3582457', 'n_tokens_mistral': 1196, 'n_tokens_neox': 1168, 'n_words': 273}