<commit_before>var gulp = require('gulp');
var ngConstant = require('gulp-ng-constant');
//var header = require('gulp-header');
var concat = require('gulp-concat');
var mainBowerFiles = require('main-bower-files');
var uglify = require('gulp-uglify');
var filter = require('gulp-filter');
var wrap = require('gulp-wrapper');
var templatecache = require('gulp-angular-templatecache');
var del = require('del');
var ngAnnotate = require('gulp-ng-annotate');


var pkg = require('../package.json');
var banner = config.banner;
var currVersion = pkg.name + "-" + pkg.version;
var appJS = config.app_files.js;



gulp.task('b_m:js_bower', function() {
    return gulp
        .src(mainBowerFiles({filter: ['**/*.js', '!**/bootstrap.js']}))
        .pipe(filter('**/*.js'))
        .pipe(gulp.dest(config.build + 'vendor'));
});

gulp.task('b_c:js_bower', function() {
    return del([
        config.build + 'vendor'
    ]);
});

gulp.task('b_m:js', function() {
    return gulp
        .src(['./src/**/*.js', '!**/*spec.js', '!**/*.test.js'])
        .pipe(ngAnnotate())
        .pipe(wrap({
            header: "(function ( window, angular, undefined ) {\n 'use strict';\n",
            footer: "})( window, window.angular );\n"
        }))
        .pipe(gulp.dest(config.build + 'src'));
});

gulp.task('b_m:configjs', function() {
    return gulp.src('./src/app/app.config.json')
        .pipe(ngConstant({
            name:'orderCloud',
            deps: false,
            constants: {
                authurl: process.env.authurl || 'https://testauth.ordercloud.io/oauth/token',
                apiurl: process.env.apiurl || 'https://testapi.ordercloud.io'
            }
        }))
        .pipe(gulp.dest(config.build + 'src/app'))
});

gulp.task('b_c:js', function() {
    return del([
        config.build + 'src/**/*.js',
        '!' + config.build + 'src/**/templates-app.js'
    ]);
});

gulp.task('b_m:templateCache', function() {
    return gulp
        .src('./src/app/**/*.tpl.html')
        .pipe(templatecache('templates-app.js',{
            standalone: true,
            module: 'templates-app',
            moduleSystem: 'IIFE'}))
        .pipe(gulp.dest(config.build + 'src/'));
});

gulp.task('b_c:templateCache', function() {
    return del([<commit_msg>Change environment to Production<commit_after>var gulp = require('gulp');
var ngConstant = require('gulp-ng-constant');
//var header = require('gulp-header');
var concat = require('gulp-concat');
var mainBowerFiles = require('main-bower-files');
var uglify = require('gulp-uglify');
var filter = require('gulp-filter');
var wrap = require('gulp-wrapper');
var templatecache = require('gulp-angular-templatecache');
var del = require('del');
var ngAnnotate = require('gulp-ng-annotate');


var pkg = require('../package.json');
var banner = config.banner;
var currVersion = pkg.name + "-" + pkg.version;
var appJS = config.app_files.js;



gulp.task('b_m:js_bower', function() {
    return gulp
        .src(mainBowerFiles({filter: ['**/*.js', '!**/bootstrap.js']}))
        .pipe(filter('**/*.js'))
        .pipe(gulp.dest(config.build + 'vendor'));
});

gulp.task('b_c:js_bower', function() {
    return del([
        config.build + 'vendor'
    ]);
});

gulp.task('b_m:js', function() {
    return gulp
        .src(['./src/**/*.js', '!**/*spec.js', '!**/*.test.js'])
        .pipe(ngAnnotate())
        .pipe(wrap({
            header: "(function ( window, angular, undefined ) {\n 'use strict';\n",
            footer: "})( window, window.angular );\n"
        }))
        .pipe(gulp.dest(config.build + 'src'));
});

gulp.task('b_m:configjs', function() {
    return gulp.src('./src/app/app.config.json')
        .pipe(ngConstant({
            name:'orderCloud',
            deps: false,
            constants: {
                authurl: process.env.authurl || 'https://auth.ordercloud.io/oauth/token',
                apiurl: process.env.apiurl || 'https://api.ordercloud.io'
            }
        }))
        .pipe(gulp.dest(config.build + 'src/app'))
});

gulp.task('b_c:js', function() {
    return del([
        config.build + 'src/**/*.js',
        '!' + config.build + 'src/**/templates-app.js'
    ]);
});

gulp.task('b_m:templateCache', function() {
    return gulp
        .src('./src/app/**/*.tpl.html')
        .pipe(templatecache('templates-app.js',{
            standalone: true,
            module: 'templates-app',
            moduleSystem: 'IIFE'}))
        .pipe(gulp.dest(config.build + 'src/'));
});

gulp.task('b_c:templateCache', function() {
    return del([
{'fraction_non_alphanumeric': 0.20916465687349264, 'fraction_numerical': 0.0, 'mean_word_length': 2.690938511326861, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '4468821', 'n_tokens_mistral': 1550, 'n_tokens_neox': 1531, 'n_words': 258}