<commit_before>/*
 * File: jetpack/Create.js
 */
/*
 * Class Create
 * Create new Jetpack/Capability
 */

var create = {
	init: function(create_id, create_item, wrapper_id) {

		create_id = $splat(create_id);
		create_item = $splat(create_item);

		var boundSubmit = this.submit.bind(this);
		var self = this;
		create_id.each(function(create_trigger){
			$(create_trigger).addEvent('click', function(e) {
				e.stop();
				fd.addnewDependencyModal = fd.displayModal(settings.create_modal_template, wrapper_id);
				if (fd.getItem) {
					$$('#create_form input[type=radio]').addEvent('change', function() {
						if ($('create-capability').checked) {
							$('add-new-capability-li')<commit_msg>choosing the create item type<commit_after>/*
 * File: jetpack/Create.js
 */
/*
 * Class Create
 * Create new Jetpack/Capability
 */

var create = {
	init: function(create_id, create_item, wrapper_id) {

		create_id = $splat(create_id);
		create_item = $splat(create_item);

		var boundSubmit = this.submit.bind(this);
		var self = this;
		create_id.each(function(create_trigger, idx){
			$(create_trigger).addEvent('click', function(e) {
				e.stop();
				fd.addnewDependencyModal = fd.displayModal(settings.create_modal_template, wrapper_id);
				if (create_item && create_item[idx] && create_item[idx]) {
					$('create-'+create_item[idx]).set('checked', 'checked');
				} 
				
				if (fd.getItem) {
					$$('#create_form input[type=radio]').addEvent('change', function() {
						if ($('create-capability').checked) {
							$('add-new-capability-li')
{'fraction_non_alphanumeric': 0.1643041237113402, 'fraction_numerical': 0.0, 'mean_word_length': 4.228956228956229, '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': '7304140', 'n_tokens_mistral': 599, 'n_tokens_neox': 520, 'n_words': 88}