<commit_before>var gulp = require('gulp'),
    uglify = require('gulp-uglify'),
    rename = require('gulp-rename'),
    concat = require('gulp-concat'),
    clean = require('gulp-clean'),
    typescript = require('gulp-typescript'),
	sourcemaps = require('gulp-sourcemaps'),
    shaders = require('./gulp-shaders'),
    gulpFilter = require('gulp-filter');

/**
 * Concat all fx files into one js file.
 */
gulp.task('shaders', function() {
  return gulp.src(['../../Babylon/Shaders/*.fx'])
    .pipe(shaders('shaders.js'))
    .pipe(gulp.dest('build/'))

});

/**
 * Compile typescript files to their js respective files
 */
gulp.task('typescript-to-js', function() {
  //Compile all ts file into their respective js file.
  
  var tsResult = gulp.src(['../../Babylon/**/*.ts','../../References/**/*.d.ts'])
                       .pipe(sourcemaps.init()) // This means sourcemaps will be generated
                       .pipe(typescript({ noExternalResolve: true, target: 'ES5'}));
  
   return tsResult.js
                .pipe(sourcemaps.write('.')) // Now the sourcemaps are added to the .js file
                .pipe(gulp.dest('../../Babylon/'));
});

/**
 * Compile the declaration file babylon.d.ts
 */
gulp.task('typescript-declaration', ['typescript-to-js'], function() {
	
	var tsResult = gulp.src(['../../Babylon/**/*.ts','../../References/**/*.d.ts'])
                       .pipe(typescript({
                           declarationFiles: true,
                           noExternalResolve: true,
						   target: 'ES5'
                       }));

    return tsResult.dts.pipe(concat('babylon.d.ts'))
	.pipe(gulp.dest('build/'));
});

/**
 * Concat all js files in order into one big js file and minify it.
 * The list is based on https://github.com/BabylonJS/Babylon.js/wiki/Creating-the-minified-version
 * Do not hesitate to update it if you need to add your own files.
 */
gulp.task('scripts', ['shaders'] ,function() {
  return gulp.src([
      '../../Babylon/Math/babylon.math.js',
      '../../Babylon/Tools/babylon.database.js',
      '../../Babylon/Tools/babylon.tools.tga.js',
      '../../Babylon/Tools/babylon.tools.dds.js',
      '../../Babylon/Tools/babylon.smartArray.js',
      '../../Babylon/Tools/babylon.collection.js',
      '../../Babylon/Tools/babylon.tools.js',
      '../../Babylon/babylon.engine.js',
      '../../Babylon/babylon.node.js',
      '../../Babylon/Tools/babylon.filesInput.js',<commit_msg>updating gulpfile<commit_after>var gulp = require('gulp'),
    uglify = require('gulp-uglify'),
    rename = require('gulp-rename'),
    concat = require('gulp-concat'),
    clean = require('gulp-clean'),
    typescript = require('gulp-typescript'),
	sourcemaps = require('gulp-sourcemaps'),
    shaders = require('./gulp-shaders'),
    gulpFilter = require('gulp-filter');

/**
 * Concat all fx files into one js file.
 */
gulp.task('shaders', function() {
  return gulp.src(['../../Babylon/Shaders/*.fx'])
    .pipe(shaders('shaders.js'))
    .pipe(gulp.dest('build/'))

});

/**
 * Compile typescript files to their js respective files
 */
gulp.task('typescript-to-js', function() {
  //Compile all ts file into their respective js file.
  
  var tsResult = gulp.src(['../../Babylon/**/*.ts','../../References/**/*.d.ts'])
                       .pipe(sourcemaps.init()) // This means sourcemaps will be generated
                       .pipe(typescript({ noExternalResolve: true, target: 'ES5'}));
  
   return tsResult.js
                .pipe(sourcemaps.write('.')) // Now the sourcemaps are added to the .js file
                .pipe(gulp.dest('../../Babylon/'));
});

/**
 * Compile the declaration file babylon.d.ts
 */
gulp.task('typescript-declaration', ['typescript-to-js'], function() {
	
	var tsResult = gulp.src(['../../Babylon/**/*.ts','../../References/**/*.d.ts'])
                       .pipe(typescript({
                           declarationFiles: true,
                           noExternalResolve: true,
						   target: 'ES5'
                       }));

    return tsResult.dts.pipe(concat('babylon.d.ts'))
	.pipe(gulp.dest('build/'));
});

/**
 * Concat all js files in order into one big js file and minify it.
 * The list is based on https://github.com/BabylonJS/Babylon.js/wiki/Creating-the-minified-version
 * Do not hesitate to update it if you need to add your own files.
 */
gulp.task('scripts', ['shaders'] ,function() {
  return gulp.src([
      '../../Babylon/Math/babylon.math.js',
      '../../Babylon/Tools/babylon.database.js',
      '../../Babylon/Tools/babylon.tools.tga.js',
      '../../Babylon/Tools/babylon.tools.dds.js',
      '../../Babylon/Tools/babylon.smartArray.js',
      '../../Babylon/Tools/babylon.smartCollection.js',
      '../../Babylon/Tools/babylon.tools.js',
      '../../Babylon/babylon.engine.js',
      '../../Babylon/babylon.node.js',
      '../../Babylon/Tools/babylon.filesInput.js',
{'fraction_non_alphanumeric': 0.20134776393710435, 'fraction_numerical': 0.0008168266285480906, 'mean_word_length': 2.3049932523616734, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7353452', 'n_tokens_mistral': 1604, 'n_tokens_neox': 1539, 'n_words': 300}