<commit_before>module.directive('wizard', [
	function () {
		var compile = function ($element, $attrs, transclude) {
			return function ($scope, $element, $attrs) {
				$scope.retrieve()($scope);

				//

				$scope.steps = [];
				$scope.stepsList = {};
				$scope.newStep = undefined;

				$scope.onFn = {};
				$scope.offFn = {};
				$scope.addFn = undefined;
				$scope.activateFn = undefined;

				$scope.addStep = function (step) {
					$scope.steps.push(step);
					$scope.stepsList[step.id] = step;
					$scope.newStep = step;

					$scope.update()();
				};

				$scope.activateStep = function (step) {
					if ($scope.isStepBlocked(step))
						return;

					if (angular.isFunction($scope.activateFn)) {
						$scope.activateFn(step, $scope);<commit_msg>stop overriding wizard callbacks<commit_after>module.directive('wizard', [
	function () {
		var compile = function ($element, $attrs, transclude) {
			return function ($scope, $element, $attrs) {
				$scope.retrieve()($scope);

				//

				$scope.steps = [];
				$scope.stepsList = {};
				$scope.newStep = undefined;

				$scope.onFn = $scope.onFn || {};
				$scope.offFn = $scope.offFn || {};
				$scope.addFn = $scope.addFn || undefined;
				$scope.activateFn = $scope.activateFn ||undefined;

				$scope.addStep = function (step) {
					$scope.steps.push(step);
					$scope.stepsList[step.id] = step;
					$scope.newStep = step;

					$scope.update()();
				};

				$scope.activateStep = function (step) {
					if ($scope.isStepBlocked(step))
						return;

					if (angular.isFunction($scope.activateFn)) {
						$scope.activateFn(step, $scope);
{'fraction_non_alphanumeric': 0.17596034696406443, 'fraction_numerical': 0.0, 'mean_word_length': 3.0074441687344913, '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': '5383994', 'n_tokens_mistral': 690, 'n_tokens_neox': 526, 'n_words': 92}