<commit_before>
var module = angular.module('unapp.fields.1', ['ui.codemirror']);


module.directive('uaMultiFields', function() {
	return {
		scope: {
			field: '=',
			dataarray: '='
    	},
		templateUrl: './js/directives/fields/uaMultiFields/uaMultiFields.html'
	};
});<commit_msg>Reimplemented add field into multi directive<commit_after>
var module = angular.module('unapp.fields.1', ['ui.codemirror']);


module.directive('uaMultiFields', function() {
	return {
		scope: {
			field: '=',
			dataarray: '='
    	},
		templateUrl: './js/directives/fields/uaMultiFields/uaMultiFields.html',
		controller: function ($scope) {
			$scope.addBlock = function() {
				if (!$scope.dataarray) {
					$scope.dataarray = [];
				}
				if ($scope.dataarray.length < $scope.field.max) {
					$scope.dataarray.push({});
				}
			};			
		}
	};
});
{'fraction_non_alphanumeric': 0.1873508353221957, 'fraction_numerical': 0.002386634844868735, 'mean_word_length': 3.60989010989011, 'pattern_counts': {'":': 0, '<': 4, '<?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': '6078291', 'n_tokens_mistral': 333, 'n_tokens_neox': 290, 'n_words': 43}