<commit_before>/**
 * sails-generate-bower
 *
 * Usage:
 * `sails generate bower`
 *
 * @type {Object}
 */

var path = require('path'),
    merge = require('./merge-json'),
    insertAfter = require('./insert-after'),
    update = require('./update');

var templates = require('path').resolve(__dirname,'../templates');

module.exports = {

	templatesDirectory: templates,

	before: require('./before'),

	targets: {

        './assets/images/logos': { folder: {} },
        './assets/images/logos/angularjs.png': { copy: 'assets/images/logos/angularjs.png' },
        './assets/images/logos/nodejs.png': { copy: 'assets/images/logos/nodejs.png' },
        './assets/images/logos/sails-logo.png': { copy: 'assets/images/logos/sails-logo.png' },
        './assets/src': { folder: {} },
        './assets/src/app': { folder: {} },
        './assets/src/app/app.js': { template: 'assets/src/app/app.js' },
        './assets/src/app/about': { folder: {} },
        './assets/src/app/about/index.js': { template: 'assets/src/app/about/index.js' },
        './assets/src/app/about/index.tpl.html': { template: 'assets/src/app/about/index.tpl.html' },
        './assets/src/app/header': { folder: {} },
        './assets/src/app/header/index.js': { template: 'assets/src/app/header/index.js' },
        './assets/src/app/header/index.tpl.html': { template: 'assets/src/app/header/index.tpl.html' },
        './assets/src/app/home': { folder: {} },
        './assets/src/app/home/index.js': { template: 'assets/src/app/home/index.js' },
        './assets/src/app/home/index.tpl.html': { template: 'assets/src/app/home/index.tpl.html' },
        './assets/src/app/users': { folder: {} },
        './assets/src/app/users/index.js': { template: 'assets/src/app/users/index.js' },
        './assets/src/app/users/index.tpl.html': { template: 'assets/src/app/users/index.tpl.html' },
        './assets/src/common': { folder: {} },
        './assets/src/common/directives': { folder: {} },
        './assets/src/common/directives/blink.js': { template: 'assets/src/common/directives/blink.js' },
        './assets/src/common/models': { folder: {} },
        './assets/src/common/models/index.js': { template: 'assets/src/common/models/index.js' },
        './assets/src/common/models/User.js': { template: 'assets/src/common/models/User.js' },
        './assets/src/common/services': { folder: {} },
        './assets/src/common/services/config.js': { template: 'assets/src/common/services/config.js' },
        './assets/src/common/services/index.js': { template: 'assets/src/common/services/index.js' },
        './assets/src/common/services/lodash.js': { template: 'assets/src/common/services/lodash.js' },
        './assets/src/common/services/title.js': { template: 'assets/src/common/services/title.js' },
        './assets/src/common/services/utils.js': { template: 'assets/src/common/services/utils.js' },
        './api/controllers/HomeController.js': { copy: 'api/controllers/HomeController.js' },
        './views/home': { folder: {} },
        './views/home/index.ejs': { copy: 'views/home/index.ejs' },

		'./': { exec: function (scope, cb) { console.log('Running generator (sails-generate-angular-gulp) @ `'+scope.rootPath+'`...'); cb(); }},
		'./bower.json': { exec: merge(path.join(templates, 'bower.json'))},
		'./tasks/config/html2js.js': {copy: path.join(templates, '/tasks/config/html2js.js')},
        './tasks/config/ngcopy.js': {copy: path.join(templates, '/tasks/config/ngcopy.js')},
        './config/blueprints.js': { exec: insertAfter('prefix: \'', [['/api']]) },
        './views/layout.ejs': { exec: update(path.join(templates, '/views/layout.ejs')) },
        './tasks/pipeline.js': { exec: insertAfter('installing new tasks.', [['\nvar ngTemplateFilesToInject = [\n  \'src/app/**/*tpl.html\'\n];']], 'first place)', [['\nmodule.exports.ngTemplateFilesToInject = ngTemplateFilesToInject.map(function(path) {\n  return \'assets/\' + path;\n});']])},
        './tasks/register/compileAssets.js': { exec: insertAfter('\'jst:dev\',', [['\n        \'html2js:dev\',', '\n        \'copy:devng\',']]) },
        './tasks/config/sails-linker-gulp.js': { exec: insertAfter('growl) {', [['\n    gulp.task(\'sails-linker-gulp:devTplNg\', function() {\n		// Read templates\n		return gulp.src([\'.tmp/public/index.html\', \'views/**/*.html\', \'views/**/*.ejs\'])\n				// Link the ng Templates\n				.pipe(plugins.linker({\n					scripts: [\'.tmp/public/templates.js\'],\n					startTag: \'<!--TEMPLATES-->\',\n					endTag: \'<!--TEMPLATES END-->\',\n					fileTmpl: \'<script type=\"text/javascript\" src=\"%s\"></script>\',\n					appRoot: \'.tmp/public\',\n				}))\n				// Write modified files to www/\n				.pipe(gulp.dest(\'views/\'))\n				.pipe(plugins.if(growl, plugins.notify({ message: \'sails-linker-gulp devTpl task complete\' })));\n	});']]) },
        './tasks/config/copy.js': { exec: insertAfter('!assets/images{,/**}\'', [[', \'!assets/src/{,/**}\'']]) },
        './config/routes.js': { exec: insertAfter('.routes = {', [['\n\'get /home\': \'HomeController.index\','], ['\n\'get /about\': \'HomeController.index\',']]) },
		'./package.json': { exec: merge(path.join(templates, 'package.json')) },
        './tasks/register/linkAssets.js': { exec: insertAfter('\'sails-linker-gulp:devTpl\',', [['\n            \'sails-linker-gulp:devTplNg\',']]) },
    }
};<commit_msg>Missing brackets ] [ for target compileAssets.js<commit_after>/**
 * sails-generate-bower
 *
 * Usage:
 * `sails generate bower`
 *
 * @type {Object}
 */

var path = require('path'),
    merge = require('./merge-json'),
    insertAfter = require('./insert-after'),
    update = require('./update');

var templates = require('path').resolve(__dirname,'../templates');

module.exports = {

	templatesDirectory: templates,

	before: require('./before'),

	targets: {

        './assets/images/logos': { folder: {} },
        './assets/images/logos/angularjs.png': { copy: 'assets/images/logos/angularjs.png' },
        './assets/images/logos/nodejs.png': { copy: 'assets/images/logos/nodejs.png' },
        './assets/images/logos/sails-logo.png': { copy: 'assets/images/logos/sails-logo.png' },
        './assets/src': { folder: {} },
        './assets/src/app': { folder: {} },
        './assets/src/app/app.js': { template: 'assets/src/app/app.js' },
        './assets/src/app/about': { folder: {} },
        './assets/src/app/about/index.js': { template: 'assets/src/app/about/index.js' },
        './assets/src/app/about/index.tpl.html': { template: 'assets/src/app/about/index.tpl.html' },
        './assets/src/app/header': { folder: {} },
        './assets/src/app/header/index.js': { template: 'assets/src/app/header/index.js' },
        './assets/src/app/header/index.tpl.html': { template: 'assets/src/app/header/index.tpl.html' },
        './assets/src/app/home': { folder: {} },
        './assets/src/app/home/index.js': { template: 'assets/src/app/home/index.js' },
        './assets/src/app/home/index.tpl.html': { template: 'assets/src/app/home/index.tpl.html' },
        './assets/src/app/users': { folder: {} },
        './assets/src/app/users/index.js': { template: 'assets/src/app/users/index.js' },
        './assets/src/app/users/index.tpl.html': { template: 'assets/src/app/users/index.tpl.html' },
        './assets/src/common': { folder: {} },
        './assets/src/common/directives': { folder: {} },
        './assets/src/common/directives/blink.js': { template: 'assets/src/common/directives/blink.js' },
        './assets/src/common/models': { folder: {} },
        './assets/src/common/models/index.js': { template: 'assets/src/common/models/index.js' },
        './assets/src/common/models/User.js': { template: 'assets/src/common/models/User.js' },
        './assets/src/common/services': { folder: {} },
        './assets/src/common/services/config.js': { template: 'assets/src/common/services/config.js' },
        './assets/src/common/services/index.js': { template: 'assets/src/common/services/index.js' },
        './assets/src/common/services/lodash.js': { template: 'assets/src/common/services/lodash.js' },
        './assets/src/common/services/title.js': { template: 'assets/src/common/services/title.js' },
        './assets/src/common/services/utils.js': { template: 'assets/src/common/services/utils.js' },
        './api/controllers/HomeController.js': { copy: 'api/controllers/HomeController.js' },
        './views/home': { folder: {} },
        './views/home/index.ejs': { copy: 'views/home/index.ejs' },

		'./': { exec: function (scope, cb) { console.log('Running generator (sails-generate-angular-gulp) @ `'+scope.rootPath+'`...'); cb(); }},
		'./bower.json': { exec: merge(path.join(templates, 'bower.json'))},
		'./tasks/config/html2js.js': {copy: path.join(templates, '/tasks/config/html2js.js')},
        './tasks/config/ngcopy.js': {copy: path.join(templates, '/tasks/config/ngcopy.js')},
        './config/blueprints.js': { exec: insertAfter('prefix: \'', [['/api']]) },
        './views/layout.ejs': { exec: update(path.join(templates, '/views/layout.ejs')) },
        './tasks/pipeline.js': { exec: insertAfter('installing new tasks.', [['\nvar ngTemplateFilesToInject = [\n  \'src/app/**/*tpl.html\'\n];']], 'first place)', [['\nmodule.exports.ngTemplateFilesToInject = ngTemplateFilesToInject.map(function(path) {\n  return \'assets/\' + path;\n});']])},
        './tasks/register/compileAssets.js': { exec: insertAfter('\'jst:dev\',', [['\n        \'html2js:dev\','], ['\n        \'copy:devng\',']]) },
        './tasks/config/sails-linker-gulp.js': { exec: insertAfter('growl) {', [['\n    gulp.task(\'sails-linker-gulp:devTplNg\', function() {\n		// Read templates\n		return gulp.src([\'.tmp/public/index.html\', \'views/**/*.html\', \'views/**/*.ejs\'])\n				// Link the ng Templates\n				.pipe(plugins.linker({\n					scripts: [\'.tmp/public/templates.js\'],\n					startTag: \'<!--TEMPLATES-->\',\n					endTag: \'<!--TEMPLATES END-->\',\n					fileTmpl: \'<script type=\"text/javascript\" src=\"%s\"></script>\',\n					appRoot: \'.tmp/public\',\n				}))\n				// Write modified files to www/\n				.pipe(gulp.dest(\'views/\'))\n				.pipe(plugins.if(growl, plugins.notify({ message: \'sails-linker-gulp devTpl task complete\' })));\n	});']]) },
        './tasks/config/copy.js': { exec: insertAfter('!assets/images{,/**}\'', [[', \'!assets/src/{,/**}\'']]) },
        './config/routes.js': { exec: insertAfter('.routes = {', [['\n\'get /home\': \'HomeController.index\','], ['\n\'get /about\': \'HomeController.index\',']]) },
		'./package.json': { exec: merge(path.join(templates, 'package.json')) },
        './tasks/register/linkAssets.js': { exec: insertAfter('\'sails-linker-gulp:devTpl\',', [['\n            \'sails-linker-gulp:devTplNg\',']]) },
    }
};
{'fraction_non_alphanumeric': 0.24918973979072137, 'fraction_numerical': 0.0005556070006482082, 'mean_word_length': 2.8876889848812093, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '595740', 'n_tokens_mistral': 3816, 'n_tokens_neox': 3807, 'n_words': 478}