<commit_before>var gulp = require('gulp');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var jshint = require('gulp-jshint');
// var imagemin = require('gulp-imagemin');
// var pngcrush = require('imagemin-pngcrush');

var path = {
scripts:['src/*.js','src/**/*.js'],
css:"src/css/*",
images:'src/img/*'
};
var projectPath = '../sauron-web/lib/bower-website-ui/';

gulp.task('concat', function () {
    gulp.src(path.scripts)
        .pipe(concat('website-ui.js'))
        .pipe(gulp.dest('./bower-website-ui/js'))
});

gulp.task('jshint', function () {
    gulp.src(path.scripts)
        .pipe(jshint());
});

gulp.task('cssmin',function(){
  return gulp.src(path.css)
      .pipe(concat('all.min.css'))
      .pipe(gulp.dest('./bower-website-ui/css'));
});

gulp.task('uglify', function () {
    gulp.src(path.scripts)
        .pipe(uglify())
        .pipe(concat('website-ui.min.js'))
        .pipe(gulp.dest('./bower-website-ui/js'))
});
// gulp.task('imagemin', function () {
//   return gulp.src(path.images)
//       .pipe(imagemin({
//         progressive: true,
//         svgoPlugins: [{removeViewBox: false}],
//         use: [pngcrush()]
//       }))
//       .pipe(gulp.dest('./bower-website-ui/img'))
// });

gulp.task('concat_dev', function () {
  gulp.src(path.scripts)
      .pipe(concat('website-ui.js'))
      .pipe(gulp.dest(projectPath+'js'))
});


gulp.task('cssmin_dev',function(){
  return gulp.src(path.css)
      .pipe(concat('all.min.css'))
      .pipe(gulp.dest(projectPath+'css'));
});

gulp.task('uglify_dev', function () {
  gulp.src(path.scripts)
      .pipe(uglify())
      .pipe(concat('website-ui.min.js'))
      .pipe(gulp.dest(projectPath+'/js'))
});
// gulp.task('imagemin_dev', function () {
//   return gulp.src(path.images)
//       .pipe(imagemin({
//         progressive: true,
//         svgoPlugins: [{removeViewBox: false}],
//         use: [pngcrush()]
//       }))
//       .pipe(gulp.dest(projectPath+'img'))
// });


gulp.task('default', ['concat','jshint','uglify','cssmin']);
gulp.task('dev', ['concat_dev','jshint','uglify_dev','cssmin_dev'],function(){<commit_msg>modify gulp file<commit_after>var gulp = require('gulp');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var jshint = require('gulp-jshint');
// var imagemin = require('gulp-imagemin');
// var pngcrush = require('imagemin-pngcrush');

var path = {
scripts:['src/*.js','src/**/*.js'],
css:"src/css/*",
images:'src/img/*'
};
var projectPath = '../sauron-web/lib/bower-website-ui/';

var bowerPath = '../bower-website-ui/';

gulp.task('concat', function () {
    gulp.src(path.scripts)
        .pipe(concat('website-ui.js'))
        .pipe(gulp.dest('./bower-website-ui/js'))
        .pipe(gulp.dest(bowerPath + 'js'))
});

gulp.task('jshint', function () {
    gulp.src(path.scripts)
        .pipe(jshint());
});

gulp.task('cssmin',function(){
  return gulp.src(path.css)
      .pipe(concat('all.min.css'))
      .pipe(gulp.dest('./bower-website-ui/css'))
      .pipe(gulp.dest(bowerPath + 'css'));
});

gulp.task('uglify', function () {
    gulp.src(path.scripts)
        .pipe(uglify())
        .pipe(concat('website-ui.min.js'))
        .pipe(gulp.dest('./bower-website-ui/js'))
        .pipe(gulp.dest(bowerPath + 'js'))
});
// gulp.task('imagemin', function () {
//   return gulp.src(path.images)
//       .pipe(imagemin({
//         progressive: true,
//         svgoPlugins: [{removeViewBox: false}],
//         use: [pngcrush()]
//       }))
//       .pipe(gulp.dest('./bower-website-ui/img'))
// });

gulp.task('concat_dev', function () {
  gulp.src(path.scripts)
      .pipe(concat('website-ui.js'))
      .pipe(gulp.dest(projectPath+'js'))
      .pipe(gulp.dest('./bower-website-ui/js'))
});


gulp.task('cssmin_dev',function(){
  return gulp.src(path.css)
      .pipe(concat('all.min.css'))
      .pipe(gulp.dest(projectPath+'css'))
      .pipe(gulp.dest('./bower-website-ui/css'));
});

gulp.task('uglify_dev', function () {
  gulp.src(path.scripts)
      .pipe(uglify())
      .pipe(concat('website-ui.min.js'))
      .pipe(gulp.dest(projectPath+'js'))
      .pipe(gulp.dest('./bower-website-ui/js'))
});
// gulp.task('imagemin_dev', function () {
//   return gulp.src(path.images)
//       .pipe(imagemin({
//         progressive: true,
//         svgoPlugins: [{removeViewBox: false}],
//         use: [pngcrush()]
//       }))
//       .pipe(gulp.dest(projectPath+'img'))
// });


gulp.task('default', ['concat','jshint','uglify','cssmin']);
gulp.task('dev', ['concat_dev','jshint','uglify_dev','cssmin_dev'],function(){
{'fraction_non_alphanumeric': 0.23936631944444445, 'fraction_numerical': 0.0, 'mean_word_length': 3.064373897707231, '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': '6381514', 'n_tokens_mistral': 1758, 'n_tokens_neox': 1726, 'n_words': 197}