<commit_before>var gulp         = require('gulp');
var gutil        = require('gulp-util');
var autoprefixer = require('gulp-autoprefixer');
var sass         = require('gulp-sass');
var concat       = require('gulp-concat');
var plumber      = require('gulp-plumber');
var source       = require('vinyl-source-stream');
var webserver    = require('gulp-webserver');
var runSequence  = require('run-sequence');
var rename       = require('gulp-rename');
var cssmin       = require('gulp-cssmin');
var gulpif       = require("gulp-if");
var htmlreplace  = require('gulp-html-replace');
var path         = require('path');

var production   = process.env.NODE_ENV === 'production';
const env = production ? 'production' : 'development'
const revision = new Date().getTime()

var config = {
  BOWER_DIR: './bower_components',
  SRC_DIR: './src',
  BUILD_DIR: './dist',
  NPM_DIR: './node_modules'
};

/*
 |--------------------------------------------------------------------------
 | Compile Sass stylesheets.
 |--------------------------------------------------------------------------
 */
gulp.task('sass', function() {
  return gulp.src(config.SRC_DIR + '/sass/app.scss')
    .pipe(plumber())
    .pipe(sass({
      includePaths: [
        path.join(__dirname, config.SRC_DIR + '/sass')
      ]
    }))
    .pipe(autoprefixer({
      "browsers": [
        "Android 2.3",
        "Android >= 4",
        "Chrome >= 20",
        "Firefox >= 24",
        "Explorer >= 8",
        "iOS >= 6",
        "Opera >= 12",
        "Safari >= 6"
      ]
    }))
    .pipe(gulpif(production, cssmin()))
    .pipe(gulpif(production, rename(`app.${revision}.min.css`)))
    .pipe(gulp.dest(config.BUILD_DIR + '/css'));
});

/*
 |--------------------------------------------------------------------------
 | Copy assets to build dir
 |--------------------------------------------------------------------------
 */
gulp.task('copy:html', function() {
  return gulp.src([
      config.SRC_DIR + '/*.html',
      config.SRC_DIR + '/*.png',
      config.SRC_DIR + '/*.xml',
      config.SRC_DIR + '/*.ico',
      config.SRC_DIR + '/*.svg',
      config.SRC_DIR + '/*.json'
    ])
    .pipe(gulp.dest(config.BUILD_DIR + ''));
});

gulp.task('copy:img', function() {
  return gulp.src(config.SRC_DIR + '/img/**/*', {base: config.SRC_DIR + '/img'})
    .pipe(gulp.dest(config.BUILD_DIR + '/img'));
});

gulp.task('copy', [
  'copy:html',
  'copy:img'<commit_msg>Update gulpfile to copy robots.txt<commit_after>var gulp         = require('gulp');
var gutil        = require('gulp-util');
var autoprefixer = require('gulp-autoprefixer');
var sass         = require('gulp-sass');
var concat       = require('gulp-concat');
var plumber      = require('gulp-plumber');
var source       = require('vinyl-source-stream');
var webserver    = require('gulp-webserver');
var runSequence  = require('run-sequence');
var rename       = require('gulp-rename');
var cssmin       = require('gulp-cssmin');
var gulpif       = require("gulp-if");
var htmlreplace  = require('gulp-html-replace');
var path         = require('path');

var production   = process.env.NODE_ENV === 'production';
const env = production ? 'production' : 'development'
const revision = new Date().getTime()

var config = {
  BOWER_DIR: './bower_components',
  SRC_DIR: './src',
  BUILD_DIR: './dist',
  NPM_DIR: './node_modules'
};

/*
 |--------------------------------------------------------------------------
 | Compile Sass stylesheets.
 |--------------------------------------------------------------------------
 */
gulp.task('sass', function() {
  return gulp.src(config.SRC_DIR + '/sass/app.scss')
    .pipe(plumber())
    .pipe(sass({
      includePaths: [
        path.join(__dirname, config.SRC_DIR + '/sass')
      ]
    }))
    .pipe(autoprefixer({
      "browsers": [
        "Android 2.3",
        "Android >= 4",
        "Chrome >= 20",
        "Firefox >= 24",
        "Explorer >= 8",
        "iOS >= 6",
        "Opera >= 12",
        "Safari >= 6"
      ]
    }))
    .pipe(gulpif(production, cssmin()))
    .pipe(gulpif(production, rename(`app.${revision}.min.css`)))
    .pipe(gulp.dest(config.BUILD_DIR + '/css'));
});

/*
 |--------------------------------------------------------------------------
 | Copy assets to build dir
 |--------------------------------------------------------------------------
 */
gulp.task('copy:html', function() {
  return gulp.src([
      config.SRC_DIR + '/*.html',
      config.SRC_DIR + '/*.png',
      config.SRC_DIR + '/*.xml',
      config.SRC_DIR + '/*.ico',
      config.SRC_DIR + '/*.svg',
      config.SRC_DIR + '/*.json',
      config.SRC_DIR + '/*.txt'
    ])
    .pipe(gulp.dest(config.BUILD_DIR + ''));
});

gulp.task('copy:img', function() {
  return gulp.src(config.SRC_DIR + '/img/**/*', {base: config.SRC_DIR + '/img'})
    .pipe(gulp.dest(config.BUILD_DIR + '/img'));
});

gulp.task('copy', [
  'copy:html',
  'copy:img'
{'fraction_non_alphanumeric': 0.2963488843813387, 'fraction_numerical': 0.00486815415821501, 'mean_word_length': 1.804891922639363, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '444628', 'n_tokens_mistral': 1589, 'n_tokens_neox': 1551, 'n_words': 281}