<commit_before>/* File: gulpfile.js */

// grab our gulp packages
var gulp  = require('gulp');
var gutil = require('gulp-util');
var useref = require('gulp-useref');
var sass = require('gulp-sass');
var del = require('del');
var imagemin = require('gulp-imagemin');
var inject = require('gulp-inject-string');
var gulpif = require('gulp-if');
var uglify = require('gulp-uglify');
var minifyCss = require('gulp-clean-css');
var autoprefixer = require('gulp-autoprefixer');
var browserSync = require('browser-sync');
var shell = require('gulp-shell');



gulp.task('browser-sync', function() {
  browserSync({
    server: {
      baseDir: './public/'
    }
  });
});

gulp.task('bs-reload', ['build:files'], function () {
  browserSync.reload();
});

// create a default task and just log a message
gulp.task('default', function() {
  return gutil.log('Gulp is running!')
});

gulp.task('sass', function() {
  return gulp.src('./src/static/scss/style.scss')
    .pipe(sass.sync().on('error', sass.logError))
    .pipe(gulp.dest('./src/'))
});

gulp.task('dependencies', ['clean:start', 'sass'], function() {
  return gulp.src('./src/layouts/**/*.html')
    .pipe(useref())
    .pipe(gulpif('*.css',autoprefixer({
      cascade: false
    })))
    .pipe(gulpif('*.css', minifyCss()))
    .pipe(gulp.dest('./themes/vamp-theme/layouts'))
});

gulp.task('clean:start', function() {
  return del(['./themes/vamp-theme/layouts/**/*', './themes/vamp-theme/layouts/static/css/**.*', './themes/vamp-theme/layouts/static/js/**.*'])
});


gulp.task('move:js', ['dependencies'], function() {
  return gulp.src('./themes/vamp-theme/layouts/js/*.js')
    .pipe(gulp.dest('./themes/vamp-theme/static/js'))
});

gulp.task('move:css', ['dependencies'], function() {
  return gulp.src('./themes/vamp-theme/layouts/css/*.css')
    .pipe(gulp.dest('./themes/vamp-theme/static/css'))
});

gulp.task('move:rest', function() {
  return gulp.src('./src/static/js/ZeroClipboard.swf')
    .pipe(gulp.dest('./themes/vamp-theme/static/js'));
});

gulp.task('move:menu', function() {
  return gulp.src('./src/static/menu.json')
    .pipe(gulp.dest('./themes/vamp-theme/static'))
});

gulp.task('move:toml', function() {
  return gulp.src('./src/theme.toml')
    .pipe(gulp.dest('./themes/vamp-theme'))
});

gulp.task('move:fonts', function() {
  return gulp.src('./src/static/fonts/*')
    .pipe(gulp.dest('./themes/vamp-theme/static/fonts'))
});

gulp.task('images', function() {
  return gulp.src('./src/static/img/**/*')
    .pipe(imagemin())
    .pipe(gulp.dest('./themes/vamp-theme/static/img'))
});

gulp.task('clean:moved', ['move:js', 'move:css'], function() {
  return del(['./themes/vamp-theme/layouts/css', './themes/vamp-theme/layouts/js'])
});

var developmentBase = '\n<script type="text/javascript">';
    developmentBase +='\ntheBaseUrl = "http://" + location.host + "/";';
    developmentBase +='\ndocument.write(\'<base href="\' + theBaseUrl + \'"/>\');';
    developmentBase +='\n</script>';

var productionBase = '\n<script type="text/javascript">';
    productionBase +='\ntheBaseUrl = "https://magneticio.github.io/revamp.io/";';
    productionBase +='\n</script>';


gulp.task('set-base:development', ['dependencies'], function() {
  return gulp.src('./themes/vamp-theme/layouts/partials/head.html')
    .pipe(inject.after('<head>',  developmentBase))
    .pipe(gulp.dest('./themes/vamp-theme/layouts/partials'))
});<commit_msg>Try witout minification<commit_after>/* File: gulpfile.js */

// grab our gulp packages
var gulp  = require('gulp');
var gutil = require('gulp-util');
var useref = require('gulp-useref');
var sass = require('gulp-sass');
var del = require('del');
var imagemin = require('gulp-imagemin');
var inject = require('gulp-inject-string');
var gulpif = require('gulp-if');
var uglify = require('gulp-uglify');
var minifyCss = require('gulp-clean-css');
var autoprefixer = require('gulp-autoprefixer');
var browserSync = require('browser-sync');
var shell = require('gulp-shell');



gulp.task('browser-sync', function() {
  browserSync({
    server: {
      baseDir: './public/'
    }
  });
});

gulp.task('bs-reload', ['build:files'], function () {
  browserSync.reload();
});

// create a default task and just log a message
gulp.task('default', function() {
  return gutil.log('Gulp is running!')
});

gulp.task('sass', function() {
  return gulp.src('./src/static/scss/style.scss')
    .pipe(sass.sync().on('error', sass.logError))
    .pipe(gulp.dest('./src/'))
});

gulp.task('dependencies', ['clean:start', 'sass'], function() {
  return gulp.src('./src/layouts/**/*.html')
    .pipe(useref())
    .pipe(gulpif('*.css',autoprefixer({
      cascade: false
    })))
    .pipe(gulpif('*.css', minifyCss()))
    .pipe(gulp.dest('./themes/vamp-theme/layouts'))
});

gulp.task('clean:start', function() {
  return del(['./themes/vamp-theme/layouts/**/*', './themes/vamp-theme/layouts/static/css/**.*', './themes/vamp-theme/layouts/static/js/**.*'])
});


gulp.task('move:js', ['dependencies'], function() {
  return gulp.src('./themes/vamp-theme/layouts/js/*.js')
    .pipe(gulp.dest('./themes/vamp-theme/static/js'))
});

gulp.task('move:css', ['dependencies'], function() {
  return gulp.src('./themes/vamp-theme/layouts/css/*.css')
    .pipe(gulp.dest('./themes/vamp-theme/static/css'))
});

gulp.task('move:rest', function() {
  return gulp.src('./src/static/js/ZeroClipboard.swf')
    .pipe(gulp.dest('./themes/vamp-theme/static/js'));
});

gulp.task('move:menu', function() {
  return gulp.src('./src/static/menu.json')
    .pipe(gulp.dest('./themes/vamp-theme/static'))
});

gulp.task('move:toml', function() {
  return gulp.src('./src/theme.toml')
    .pipe(gulp.dest('./themes/vamp-theme'))
});

gulp.task('move:fonts', function() {
  return gulp.src('./src/static/fonts/*')
    .pipe(gulp.dest('./themes/vamp-theme/static/fonts'))
});

gulp.task('images', function() {
  return gulp.src('./src/static/img/**/*')
    .pipe(gulp.dest('./themes/vamp-theme/static/img'))
});

gulp.task('clean:moved', ['move:js', 'move:css'], function() {
  return del(['./themes/vamp-theme/layouts/css', './themes/vamp-theme/layouts/js'])
});

var developmentBase = '\n<script type="text/javascript">';
    developmentBase +='\ntheBaseUrl = "http://" + location.host + "/";';
    developmentBase +='\ndocument.write(\'<base href="\' + theBaseUrl + \'"/>\');';
    developmentBase +='\n</script>';

var productionBase = '\n<script type="text/javascript">';
    productionBase +='\ntheBaseUrl = "https://magneticio.github.io/revamp.io/";';
    productionBase +='\n</script>';


gulp.task('set-base:development', ['dependencies'], function() {
  return gulp.src('./themes/vamp-theme/layouts/partials/head.html')
    .pipe(inject.after('<head>',  developmentBase))
    .pipe(gulp.dest('./themes/vamp-theme/layouts/partials'))
});
{'fraction_non_alphanumeric': 0.2426772114821324, 'fraction_numerical': 0.0, 'mean_word_length': 4.1695685087055265, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 2, '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': '703327', 'n_tokens_mistral': 2503, 'n_tokens_neox': 2444, 'n_words': 347}