<commit_before>'use strict';

var gulp 		= require('gulp'),
	plumber		= require('gulp-plumber'),
	concat		= require('gulp-concat'),
	uglify		= require('gulp-uglify'),
    watch		= require('gulp-watch'),
	minifyCss	= require('gulp-minify-css');

var config = {
	dest: 'src',

	scripts: [
		// vendors
		'./bower_components/html5-boilerplate/src/js/**/*.js',
		'./bower_components/materialize/dist/js/materialize.min.js',
		'./node_modules/mustache/mustache.min.js',
		
		// app
		'./src/js/config/**/*.js',
		'./src/js/controllers/**/*.js',
		'./src/js/services/**/*.js',
		'./src/js/pages/**/*.js'
	],

	css: [
		// vendors
		'./bower_components/normalize.css/normalize.css',
		'./bower_components/materialize/dist/css/materialize.min.css'
	],

	fonts: [
		//vendors
		'./bower_components/materialize/dist/font/**/*.{ttf,woff,eof,svg}'
	]
}

/*
* Scripts Task
**/
gulp.task('scripts', function () {
	gulp.src(config.scripts)
		.pipe(plumber())
		.pipe(concat('app.min.js'))
		.pipe(uglify())
		.pipe(gulp.dest(config.dest + '/js'));
});

/*
* CSS Task
**/
gulp.task('css', function () {
	gulp.src(config.css)
		.pipe(plumber())
		.pipe(concat('app.min.css'))
		.pipe(minifyCss())
		.pipe(gulp.dest(config.dest + '/css'));
});

/*
* Fonts Task
**/
gulp.task('fonts', function() {
	gulp.src(config.fonts)
		.pipe(gulp.dest(config.dest + '/font'));
});

/*
* Watch changes and re run tasks
* */
gulp.task('watch', function () {
    watch(config.css, function () {
    	gulp.start('css');
	});

    watch(config.scripts, function () {
    	gulp.start('scripts');
	});
    
    watch(config.fonts, function () {
    	gulp.start('fonts');
	});
});

/*
* Default Task
**/
gulp.task('default', ['scripts', 'css', 'fonts', 'watch']);<commit_msg>gulp file restructred<commit_after>'use strict';

var gulp        = require('gulp'),
    plumber     = require('gulp-plumber'),
    concat      = require('gulp-concat'),
    uglify      = require('gulp-uglify'),
    watch       = require('gulp-watch'),
    minifyCss   = require('gulp-minify-css');

var config = {
    dest: 'src',

    scripts: [
        // vendors
        './bower_components/html5-boilerplate/src/js/**/*.js',
        './bower_components/materialize/dist/js/materialize.min.js',
        './node_modules/mustache/mustache.min.js',

        // app
        './src/js/config/**/*.js',
        './src/js/controllers/**/*.js',
        './src/js/services/**/*.js',
        './src/js/pages/**/*.js'
    ],

    css: [
        // vendors
        './bower_components/normalize.css/normalize.css',
        './bower_components/materialize/dist/css/materialize.min.css'
    ],

    fonts: [
        //vendors
        './bower_components/materialize/dist/font/**/*.{ttf,woff,eof,svg}'
    ]
}

/*
 * Scripts Task
 **/
gulp.task('scripts', function () {
    gulp.src(config.scripts)
        .pipe(plumber())
        .pipe(concat('app.min.js'))
        .pipe(uglify())
        .pipe(gulp.dest(config.dest + '/js'));
});

/*
 * CSS Task
 **/
gulp.task('css', function () {
    gulp.src(config.css)
        .pipe(plumber())
        .pipe(concat('app.min.css'))
        .pipe(minifyCss())
        .pipe(gulp.dest(config.dest + '/css'));
});

/*
 * Fonts Task
 **/
gulp.task('fonts', function () {
    gulp.src(config.fonts)
        .pipe(gulp.dest(config.dest + '/font'));
});

/*
 * Watch changes and re run tasks
 * */
gulp.task('watch', function () {
    watch(config.css, function () {
        gulp.start('css');
    });

    watch(config.scripts, function () {
        gulp.start('scripts');
    });

    watch(config.fonts, function () {
        gulp.start('fonts');
    });
});

/*
 * Default Task
 **/
gulp.task('default', ['scripts', 'css', 'fonts', 'watch']);
{'fraction_non_alphanumeric': 0.22773880194279547, 'fraction_numerical': 0.0005396654074473826, 'mean_word_length': 2.6165853658536586, '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': '7074632', 'n_tokens_mistral': 1430, 'n_tokens_neox': 1390, 'n_words': 175}