<commit_before>/*
 * JQuery Form Builder - Field Name plugin.
 * 
 * Revision: @REVISION
 * Version: @VERSION
 * Copyright 2011 <NAME> (<EMAIL>)
 *
 * Licensed under Apache v2.0 http://www.apache.org/licenses/LICENSE-2.0.html
 *
 * Date: 25-Jan-2011
 */

var FbFieldName = $.extend({}, $.fb.fbWidget.prototype, {
	options : { // default options. values are stored in widget's prototype
		name : 'Field Name',
		belongsTo : $.fb.formbuilder.prototype.options._fancyFieldsPanel,
		_type : 'FieldName',
		_html : '<div></div>',
		_counterField : 'field1',
		_languages : [ 'en', 'zh' ],
		settings : {
			en : {
				field1 : 'Value',
				classes : []
			},
			zh : {
				field1 : '文字',
				classes : []
			},
			styles : {
				fontFamily: 'default', // form builder default
				fontSize: 'default',
				fontStyles: [0, 0, 0], // bold, italic, underline
				color : 'default',
				backgroundColor : 'default'
			}
		}
	},
	_init : function() {
		// calling base plugin init
		$.fb.fbWidget.prototype._init.call(this);
		// merge base plugin's options
		this.options = $.extend({}, $.fb.fbWidget.prototype.options, this.options);
	},
	_getWidget : function(event, fb) {
		var $jqueryObject;
		fb.target._log('fbFieldName._getWidget executing...');
		// write your code here
		fb.target._log('fbFieldName._getWidget executed.');
		return $jqueryObject;
	},
	_getFieldSettingsLanguageSection : function(event, fb) {
		var $jqueryObjects = [];
		fb.target._log('fbFieldName._getFieldSettingsLanguageSection executing...');
		// write your code here
		fb.target._log('fbFieldName._getFieldSettingsLanguageSection executed.');
		return $jqueryObjects;
	},
	_getFieldSettingsGeneralSection : function(event, fb) {
		var $jqueryObjects = [];
		fb.target._log('fbFieldName._getFieldSettingsLanguageSection executing...');
		// write your code here
		fb.target._log('fbFieldName._getFieldSettingsLanguageSection executed.');
		return $jqueryObjects;
	}, 
	_languageChange : function(event, fb) {
		fb.target._log('fbFieldName.languageChange executing...');
		// write your code here
		fb.target._log('fbFieldName.languageChange executed.');
	}
});

$.widget('fb.fbFieldName', FbFieldName);<commit_msg>Fixed copy n paste error<commit_after>/*
 * JQuery Form Builder - Field Name plugin.
 * 
 * Revision: @REVISION
 * Version: @VERSION
 * Copyright 2011 <NAME> (<EMAIL>)
 *
 * Licensed under Apache v2.0 http://www.apache.org/licenses/LICENSE-2.0.html
 *
 * Date: 25-Jan-2011
 */

var FbFieldName = $.extend({}, $.fb.fbWidget.prototype, {
	options : { // default options. values are stored in widget's prototype
		name : 'Field Name',
		belongsTo : $.fb.formbuilder.prototype.options._fancyFieldsPanel,
		_type : 'FieldName',
		_html : '<div></div>',
		_counterField : 'field1',
		_languages : [ 'en', 'zh' ],
		settings : {
			en : {
				field1 : 'Value',
				classes : []
			},
			zh : {
				field1 : '文字',
				classes : []
			},
			styles : {
				fontFamily: 'default', // form builder default
				fontSize: 'default',
				fontStyles: [0, 0, 0], // bold, italic, underline
				color : 'default',
				backgroundColor : 'default'
			}
		}
	},
	_init : function() {
		// calling base plugin init
		$.fb.fbWidget.prototype._init.call(this);
		// merge base plugin's options
		this.options = $.extend({}, $.fb.fbWidget.prototype.options, this.options);
	},
	_getWidget : function(event, fb) {
		var $jqueryObject;
		fb.target._log('fbFieldName._getWidget executing...');
		// write your code here
		fb.target._log('fbFieldName._getWidget executed.');
		return $jqueryObject;
	},
	_getFieldSettingsLanguageSection : function(event, fb) {
		var $jqueryObjects = [];
		fb.target._log('fbFieldName._getFieldSettingsLanguageSection executing...');
		// write your code here
		fb.target._log('fbFieldName._getFieldSettingsLanguageSection executed.');
		return $jqueryObjects;
	},
	_getFieldSettingsGeneralSection : function(event, fb) {
		var $jqueryObjects = [];
		fb.target._log('fbFieldName._getFieldSettingsGeneralSection executing...');
		// write your code here
		fb.target._log('fbFieldName._getFieldSettingsGeneralSection executed.');
		return $jqueryObjects;
	}, 
	_languageChange : function(event, fb) {
		fb.target._log('fbFieldName.languageChange executing...');
		// write your code here
		fb.target._log('fbFieldName.languageChange executed.');
	}
});

$.widget('fb.fbFieldName', FbFieldName);
{'fraction_non_alphanumeric': 0.1542322610084417, 'fraction_numerical': 0.009126169290440338, 'mean_word_length': 3.7190527448869752, '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': '7475149', 'n_tokens_mistral': 1561, 'n_tokens_neox': 1386, 'n_words': 303}