<commit_before>app.controller("TruststoreConfigurationController", ["$scope", "TruststoreConfigurationService", function($scope, TruststoreConfigurationService) {

	$scope.truststores = undefined;
	$scope.selectedTruststore = undefined;
	$scope.alias = undefined;
	$scope.passphrase = undefined,
	$scope.certificate = undefined;

	$scope.$watch('$viewContentLoaded', function() {

		var promise = TruststoreConfigurationService.fetchTruststores();
		promise.then(
			function success(response) {
				$scope.truststores = response.data.results;
			},
			function error(error) {
				console.log("error with loading trustores");
			}
		);
	});

	$scope.truststoreSelected = function(selectedTruststore) {
		$scope.selectedTruststore = selectedTruststore;
		console.log("truststore selected" + $scope.selectedTruststore);
	}

	$scope.submitCertificate = function() {

		var postData = {
			"selectedTruststore": $scope.selectedTruststore,
			"alias": $scope.alias,
			"passphrase": $scope.passphrase,
			"certificate": $scope.certificate
		};

		console.log(postData.toString());

		// var promise = TruststoreConfigurationService.submitCertificate(postData);
		// promise.then(
		// 	function success(response) {

		// 	},
		// 	function error(error) {

		// 	}
		// );
	}


}]);<commit_msg>1. Removed call to toString().<commit_after>app.controller("TruststoreConfigurationController", ["$scope", "TruststoreConfigurationService", function($scope, TruststoreConfigurationService) {

	$scope.truststores = undefined;
	$scope.selectedTruststore = undefined;
	$scope.alias = undefined;
	$scope.passphrase = <PASSWORD>,
	$scope.certificate = undefined;

	$scope.$watch('$viewContentLoaded', function() {

		var promise = TruststoreConfigurationService.fetchTruststores();
		promise.then(
			function success(response) {
				$scope.truststores = response.data.results;
			},
			function error(error) {
				console.log("error with loading trustores");
			}
		);
	});

	$scope.truststoreSelected = function(selectedTruststore) {
		$scope.selectedTruststore = selectedTruststore;
		console.log("truststore selected" + $scope.selectedTruststore);
	}

	$scope.submitCertificate = function() {

		var postData = {
			"selectedTruststore": $scope.selectedTruststore,
			"alias": $scope.alias,
			"passphrase": $<PASSWORD>phrase,
			"certificate": $scope.certificate
		};

		console.log(postData);

		// var promise = TruststoreConfigurationService.submitCertificate(postData);
		// promise.then(
		// 	function success(response) {

		// 	},
		// 	function error(error) {

		// 	}
		// );
	}


}]);
{'fraction_non_alphanumeric': 0.14246999612853273, 'fraction_numerical': 0.00038714672861014324, 'mean_word_length': 4.62962962962963, 'pattern_counts': {'":': 8, '<': 5, '<?xml version=': 0, '>': 5, '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': '3834822', 'n_tokens_mistral': 889, 'n_tokens_neox': 764, 'n_words': 122}