<commit_before>app.controller("FeedbackController", ["$routeParams", "$scope", "FeedbackService", function($routeParams, $scope, FeedbackService) {

	$scope.newFeedback = {feedbackId: null, fetchByFeedbackSenderId: null, feedbackProductId: null, feedbackRecipientId: null, feedbackContent: "", feedbackRating: ""};
	$scope.alerts = [];

	/**
	 * create feedback and sends it to the feedback API
	 *
	 * @param feedback to send
	 * @param validated true if Angular validated the form, false if not
	 **/

	$scope.createFeedback = function(feedback, validated) {
		if(validted === true) {
			FeedbackService.create(product)
				.then(function(result) {
					if(result.data.status === 200) {
						$scope.alerts[0] = {type: "success", msg: result.data.message};
						$scope.newFeedback = {feedbackId: null, fetchByFeedbackSenderId: null, feedbackProductId: null, feedbackRecipientId: null, feedbackContent: "", feedbackRating: ""};
					}
				})
		}
	}
}])<commit_msg>so the main part of the feedback form is complete I think....<commit_after>app.controller("FeedbackController", ["$routeParams", "$scope", "FeedbackService", function($routeParams, $scope, FeedbackService) {

	$scope.newFeedback = {feedbackId: null, fetchByFeedbackSenderId: null, feedbackProductId: null, feedbackRecipientId: null, feedbackContent: "", feedbackRating: ""};
	$scope.alerts = [];

	/**
	 * create feedback and sends it to the feedback API
	 *
	 * @param feedback to send
	 * @param validated true if Angular validated the form, false if not
	 **/

	$scope.createFeedback = function(feedback, validated) {
		if(validated === true) {
			FeedbackService.create(feedback)
				.then(function(result) {
					if(result.data.status === 200) {
						$scope.alerts[0] = {type: "success", msg: result.data.message};
						$scope.newFeedback = {feedbackId: null, fetchByFeedbackSenderId: null, feedbackProductId: null, feedbackRecipientId: null, feedbackContent: "", feedbackRating: ""};
						$scope.addFeedbackForm.$setPristine();
						$scope.addFeedbackForm.$setUntouched();
					} else {
						$scope.alerts[0] = {type: "danger", msg: result.data.message};
					}
				});
		}
	};
}]);
{'fraction_non_alphanumeric': 0.14729041222788328, 'fraction_numerical': 0.0041685965724872626, 'mean_word_length': 4.6103896103896105, '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': '3014915', 'n_tokens_mistral': 763, 'n_tokens_neox': 638, 'n_words': 155}