<commit_before>(function(){
	'use strict';

	angular
		.module('ui.router.components', ['ui.router'])
		.config(registerComponentDecorator);

	var args2Array = function args2Array(_args) {
			return Array.prototype.slice.call(_args);
	};

	function bindResolves() {
			var injectNames = controller.$inject = ['$scope'].concat(args2Array(arguments));

			function controller($scope) {
					var injectValues = args2Array(arguments);
					for (var i = 1; i < injectValues.length; i++) {
							$scope[injectNames[i]] = injectValues[i];
					}
			}

			return controller;
	}

	var getCompInputs = function getCompInputs($injector, componentName) {
			return $injector.get(componentName + "Directive").map(function (directive) {
					return Object.keys(directive.bindToController);
			}).reduce(unnestR, []);
	};

	var unnestR = function unnestR(acc, array) {
			return acc.concat(array);
	};

	function setStateDef(stateDef) {
			stateDef.controllerProvider = function ($injector) {
					return bindResolves.apply(null, getCompInputs($injector, stateDef.component));
			};

			stateDef.templateProvider = function ($injector) {
					var attrs = getCompInputs($injector, stateDef.component).map(function (key) {
							return key + '="' + key + '"';
					}).join(" ");
					var kebobName = stateDef.component.replace(/([A-Z])/g, function ($1) {
							return "-" + $1.toLowerCase();
					});
					var template = '<' + kebobName + ' ' + attrs + '></' + kebobName + '>';
					return template;
			};
	}

	function registerComponentDecorator($stateProvider) {
			$stateProvider.decorator('component', function (stateDef, parent) {
					if (stateDef.component) {
							setStateDef(stateDef);
					}
					if (stateDef.views) {
							for (var view in stateDef.views) {
									if (stateDef.views[view].component) {
											setStateDef(stateDef.views[view]);
									}
							}
					}

					return stateDef.component;
			});
	}

}());<commit_msg>Indentation<commit_after>(function(){
	'use strict';

	angular
		.module('ui.router.components', ['ui.router'])
		.config(registerComponentDecorator);

	var args2Array = function args2Array(_args) {
		return Array.prototype.slice.call(_args);
	};

	function bindResolves() {
		var injectNames = controller.$inject = ['$scope'].concat(args2Array(arguments));

		function controller($scope) {
				var injectValues = args2Array(arguments);
				for (var i = 1; i < injectValues.length; i++) {
						$scope[injectNames[i]] = injectValues[i];
				}
		}

		return controller;
	}

	var getCompInputs = function getCompInputs($injector, componentName) {
		return $injector.get(componentName + "Directive").map(function (directive) {
				return Object.keys(directive.bindToController);
		}).reduce(unnestR, []);
	};

	var unnestR = function unnestR(acc, array) {
		return acc.concat(array);
	};

	function setStateDef(stateDef) {
		stateDef.controllerProvider = function ($injector) {
				return bindResolves.apply(null, getCompInputs($injector, stateDef.component));
		};

		stateDef.templateProvider = function ($injector) {
				var attrs = getCompInputs($injector, stateDef.component).map(function (key) {
						return key + '="' + key + '"';
				}).join(" ");
				var kebobName = stateDef.component.replace(/([A-Z])/g, function ($1) {
						return "-" + $1.toLowerCase();
				});
				var template = '<' + kebobName + ' ' + attrs + '></' + kebobName + '>';
				return template;
		};
	}

	function registerComponentDecorator($stateProvider) {
		$stateProvider.decorator('component', function (stateDef, parent) {
				if (stateDef.component) {
						setStateDef(stateDef);
				}
				if (stateDef.views) {
						for (var view in stateDef.views) {
								if (stateDef.views[view].component) {
										setStateDef(stateDef.views[view]);
								}
						}
				}

				return stateDef.component;
		});
	}

}());
{'fraction_non_alphanumeric': 0.15629070070330817, 'fraction_numerical': 0.0036467830164105238, 'mean_word_length': 3.5390070921985815, 'pattern_counts': {'":': 0, '<': 9, '<?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': '5860293', 'n_tokens_mistral': 1494, 'n_tokens_neox': 1207, 'n_words': 220}