<commit_before>var gulp = require('gulp'),
    concat = require('gulp-concat'),
    uglify = require('gulp-uglify'),
    react = require('gulp-react');

var paths = {
  dependencies: [
    'vendor/**/*.js'
  ],
  scripts: [
    'cosmos.js',
    'lib/**/*.js',
    'mixins/**/*.js',
    'components/**/*.jsx'],
  demo: [
    'demo/components/**/*.jsx'
  ]
};

gulp.task('scripts', function() {
  // Node bundle
  gulp.src(paths.scripts)
    .pipe(react())
    .pipe(uglify())
    .pipe(concat('build/cosmos.js'))
    .pipe(gulp.dest('.'));
  // Bundle bundle
  gulp.src(paths.dependencies.concat(paths.scripts))
    .pipe(react())
    .pipe(uglify())
    .pipe(concat('build/cosmos-with-dependencies.js'))
    .pipe(gulp.dest('.'));
  gulp.src(paths.demo)
    .pipe(react())
    .pipe(uglify())
    .pipe(concat('build/demo.js'))
    .pipe(gulp.dest('.'));
});

// Rerun the task when a file changes
gulp.task('watch', function () {
  gulp.watch(paths.dependencies.concat(paths.scripts), ['scripts']);
});
<commit_msg>Listen to changes on the demo files with gulp #14<commit_after>var gulp = require('gulp'),
    concat = require('gulp-concat'),
    uglify = require('gulp-uglify'),
    react = require('gulp-react');

var paths = {
  dependencies: [
    'vendor/**/*.js'
  ],
  scripts: [
    'cosmos.js',
    'lib/**/*.js',
    'mixins/**/*.js',
    'components/**/*.jsx'],
  demo: [
    'demo/components/**/*.jsx'
  ]
};

gulp.task('scripts', function() {
  // Node bundle
  gulp.src(paths.scripts)
    .pipe(react())
    .pipe(uglify())
    .pipe(concat('build/cosmos.js'))
    .pipe(gulp.dest('.'));
  // Bundle bundle
  gulp.src(paths.dependencies.concat(paths.scripts))
    .pipe(react())
    .pipe(uglify())
    .pipe(concat('build/cosmos-with-dependencies.js'))
    .pipe(gulp.dest('.'));
  gulp.src(paths.demo)
    .pipe(react())
    .pipe(uglify())
    .pipe(concat('build/demo.js'))
    .pipe(gulp.dest('.'));
});

// Rerun the task when a file changes
gulp.task('watch', function () {
  gulp.watch(paths.dependencies.concat(paths.scripts, paths.demo), ['scripts']);
});

{'fraction_non_alphanumeric': 0.23102785782901056, 'fraction_numerical': 0.0009606147934678194, 'mean_word_length': 3.116600790513834, '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': '3979400', 'n_tokens_mistral': 785, 'n_tokens_neox': 775, 'n_words': 114}