<commit_before>'use strict';

var app = angular.module('isa.form', []);


/**
 * Basic form field. For convenience to reduce boilerplate.
 *
 * @author <NAME>
 */
app.directive('isaBasicField', function() {
	return {
		restrict: 'E',
		templateUrl: '/components/form/basicField.html',
		scope: {
			title: '@',
			validationModel: '=',
			pendingModel: '=',
			inputType: '@',
			inputName: '@',
			inputPlaceholder: '@'
		}
	};
});


/**
 * Parent of isaInput and isaValidationMessages elements. Holds the validation
 * and pending models and requries a parent form controller.
 *
 * @author <NAME>
 */
app.directive('isaFormField', function() {
	return {<commit_msg>feature(address-book): Moved the form field isolated scope config to a variable so that it can be reused<commit_after>'use strict';

var app = angular.module('isa.form', []);


/**
 * A dictionary defining the isolated scope for form field directives.
 * This is so that registering new reuseable form fields can be done without
 * having to duplicate the same config.
 *
 * @var Object
 */
var FormFieldScope = {
	title: '@',
	validationModel: '=',
	pendingModel: '=',
	inputType: '@',
	inputName: '@',
	inputPlaceholder: '@'
};


/**
 * Basic form field. For convenience to reduce boilerplate.
 *
 * @author <NAME>
 */
app.directive('isaBasicField', function() {
	return {
		restrict: 'E',
		templateUrl: '/components/form/basicField.html',
		scope: FormFieldScope
	};
});


/**
 * Parent of isaInput and isaValidationMessages elements. Holds the validation
 * and pending models and requries a parent form controller.
 *
 * @author <NAME>
 */
app.directive('isaFormField', function() {
	return {
{'fraction_non_alphanumeric': 0.1446578631452581, 'fraction_numerical': 0.0, 'mean_word_length': 4.021084337349397, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2204930', 'n_tokens_mistral': 537, 'n_tokens_neox': 505, 'n_words': 154}