<commit_before>app.controller('ReviewController', ["$scope", "ReviewService", function($scope, ReviewService) {
	$scope.alerts = [];
	$scope.userData = [];
	$scope.reviewData = {};
	$scope.reviewProfile = null;

	$scope.getReviewById = function(reviewId) {
		ReviewService.fetchReviewByReviewId(reviewId)
			.then(function(result) {
				if(result.status.data === 200) {
					$scope.data = result.data.data;
				} else {
					$scope.alerts[0] = {type: "danger", msg: result.data.message};
				}
			})
	};
	$scope.getReviewBeerId = function(reviewBeerId) {
		ReviewService.fetchReviewBeerId(reviewBeerId)
			.then(function(result) {
				if(result.status.data === 200) {
					$scope.data = result.data.data;
				} else {
					$scope.alerts[0] = {type: "danger", msg: result.data.message};
				}
			})
	};

	$scope.getReviewUserId = function(reviewUserId) {
		ReviewService.fetchReviewUserId(reviewUserId)
			.then(function(result) {
				if(result.status.data === 200) {
					$scope.data = result.data.data;
				} else {
					$scope.alerts[0] = {type: "danger", msg: result.data.message};<commit_msg>commiting changes to review controller https://app.asana.com/0/117435667927162/118836678397143<commit_after>app.controller('ReviewController', ["$scope", "ReviewService","$location", function($scope, ReviewService, $location) {
	$scope.alerts = [];
	$scope.userData = [];
	$scope.reviewData = {};
	$scope.reviewProfile = null;

	$scope.getReviewById = function(reviewId) {
		ReviewService.fetchReviewByReviewId(reviewId)
			.then(function(result) {
				if(result.status.data === 200) {
					$scope.data = result.data.data;
				} else {
					$scope.alerts[0] = {type: "danger", msg: result.data.message};
				}
			})
	};
	/**
	 * onclick, reroutes page to the specified beer profile
	 *
	 * @param reviewId the review we are sending
	 **/
	$scope.getReviewProfile = function(reviewId) {
		console.log("hi, I'm Merri" + reviewId);
		$location.path("beerprofile/" + reviewId);
	};
	$scope.getReviewBeerId = function(reviewBeerId) {
		ReviewService.fetchReviewBeerId(reviewBeerId)
			.then(function(result) {
				if(result.status.data === 200) {
					$scope.data = result.data.data;
				} else {
					$scope.alerts[0] = {type: "danger", msg: result.data.message};
				}
			})
	};

	$scope.getReviewUserId = function(reviewUserId) {
		ReviewService.fetchReviewUserId(reviewUserId)
			.then(function(result) {
				if(result.status.data === 200) {
					$scope.data = result.data.data;
				} else {
					$scope.alerts[0] = {type: "danger", msg: result.data.message};
{'fraction_non_alphanumeric': 0.16718872357086922, 'fraction_numerical': 0.02153484729835552, 'mean_word_length': 3.951550387596899, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '4259134', 'n_tokens_mistral': 1043, 'n_tokens_neox': 875, 'n_words': 132}