<commit_before>var gulp = require('gulp');
var header = require('gulp-header');
var footer = require('gulp-footer');
var fileImports = require('gulp-imports');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var bump = require('gulp-bump');
var size = require('gulp-size');
var replace = require('gulp-replace');
var mochaPhantomJS = require('gulp-mocha-phantomjs');
var docco = require('gulp-docco');
var merge = require('merge-stream');
var ignore = require('gulp-ignore');
var rimraf = require('gulp-rimraf');
var _ = require('lodash');
var runSequence = require('run-sequence');
var fs = require('fs');

var pkg = require('./package.json');
var reporter = 'list';
var statement = 'A solid footing for larger knockout applications.';
var args   = require('yargs').argv;

var sourceFiles = [
  'main',
  'model-namespace',
  'broadcast-receive',
  'bindingHandlers',
  'extenders'
];

var banner = ['/**',
  ' * <%= pkg.name %> - <%= pkg.description %>',
  ' * Author: <%= pkg.author %>',
  ' * Version: v<%= pkg.version %>',
  ' * Url: <%= pkg.homepage %>',
  ' * License(s): <% pkg.licenses.forEach(function( license, idx ){ %><%= license.type %><% if(idx !== pkg.licenses.length-1) { %>, <% } %><% }); %>',
  ' */',
  ''
].join('\n');

var rawBanner = [
  '// footwork.js',
  '// ----------------------------------',
  '// v' + pkg.version,
  '//',
  '// Copyright (c)2014 <NAME>.',
  '// Distributed under MIT license',
  '//',
  '// http://footworkjs.com'
].join('\n');

var build = function(buildProfile) {
  var headerBanner = banner;
  if(buildProfile === 'raw') {
    headerBanner = rawBanner + "\n" + banner;
  }

  return gulp
    .src(['source/build-profile/' + buildProfile + '.js'])
    .pipe(header(headerBanner, {
      pkg: pkg
    }))
    .pipe(fileImports())
    .pipe(replace(/FOOTWORK_VERSION/g, pkg.version))
    .pipe(rename('footwork-' + buildProfile + '.js'))<commit_msg>Added build profile to source header<commit_after>var gulp = require('gulp');
var header = require('gulp-header');
var footer = require('gulp-footer');
var fileImports = require('gulp-imports');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var bump = require('gulp-bump');
var size = require('gulp-size');
var replace = require('gulp-replace');
var mochaPhantomJS = require('gulp-mocha-phantomjs');
var docco = require('gulp-docco');
var merge = require('merge-stream');
var ignore = require('gulp-ignore');
var rimraf = require('gulp-rimraf');
var _ = require('lodash');
var runSequence = require('run-sequence');
var fs = require('fs');

var pkg = require('./package.json');
var reporter = 'list';
var statement = 'A solid footing for larger knockout applications.';
var args   = require('yargs').argv;

var sourceFiles = [
  'main',
  'model-namespace',
  'broadcast-receive',
  'bindingHandlers',
  'extenders'
];

var banner = ['/**',
  ' * <%= pkg.name %> - <%= pkg.description %>',
  ' * Author: <%= pkg.author %>',
  ' * Version: v<%= pkg.version %>',
  ' * Url: <%= pkg.homepage %>',
  ' * License(s): <% pkg.licenses.forEach(function( license, idx ){ %><%= license.type %><% if(idx !== pkg.licenses.length-1) { %>, <% } %><% }); %>',
  ' */',
  ''
];

var rawBanner = [
  '// footwork.js',
  '// ----------------------------------',
  '// v' + pkg.version,
  '//',
  '// Copyright (c)2014 <NAME>.',
  '// Distributed under MIT license',
  '//',
  '// http://footworkjs.com'
];

var build = function(buildProfile) {
  var headerBanner = banner.slice(0);
  if(buildProfile !== 'raw') {
    headerBanner[3] += '-' + buildProfile;
  }
  headerBanner = headerBanner.join('\n');

  if(buildProfile === 'raw') {
    headerBanner = rawBanner.join("\n") + '\n\n' + headerBanner;
  }

  return gulp
    .src(['source/build-profile/' + buildProfile + '.js'])
    .pipe(header(headerBanner, {
      pkg: pkg
    }))
    .pipe(fileImports())
    .pipe(replace(/FOOTWORK_VERSION/g, pkg.version))
    .pipe(rename('footwork-' + buildProfile + '.js'))
{'fraction_non_alphanumeric': 0.23411705852926462, 'fraction_numerical': 0.0030015007503751876, 'mean_word_length': 3.5494880546075085, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '1395541', 'n_tokens_mistral': 1434, 'n_tokens_neox': 1356, 'n_words': 276}