<commit_before>define [
	"base"
	"libs/recurly-3.0.5"
], (App, recurly) ->


	App.factory "MultiCurrencyPricing", () ->
		
		currencyCode = window.recomendedCurrency

		currencyCode:currencyCode
		plans: 
			USD:
				symbol: "$"
				student:
					monthly: "$8"
					annual: "$80"
				collaborator:
					monthly: "$15"
					annual: "$180"
				professional:
					monthly: "$30"
					annual: "$360"

			EUR: 
				symbol: "€"
				student:
					monthly: "€7"
					annual: "€70"
				collaborator:
					monthly: "€12"
					annual: "€144"
				professional:
					monthly: "€25"
					annual: "€300"
					
			GBP:
				symbol: "£"
				student:
					monthly: "£6"
					annual: "£60"
				collaborator:
					monthly: "£10"
					annual: "£120"
				professional:
					monthly: "£22"
					annual: "£264"

	



	App.controller "PlansController", ($scope, $modal, event_tracking, abTestManager, MultiCurrencyPricing, $http) ->
		
		buckets = [
			{ bucketName:"7d", queryString: "_free_trial_7_days", trial_len:7 }
			{ bucketName:"14d", queryString: "_free_trial_14_days", trial_len:14 }
		]
		bucket = abTestManager.getABTestBucket "trial_len", buckets

		$scope.trial_len = bucket.trial_len
		$scope.planQueryString = bucket.queryString

		$scope.ui =
			view: "monthly"

		$scope.plans = MultiCurrencyPricing.plans
		$scope.currencyCode = MultiCurrencyPricing.currencyCode

		$scope.changeCurreny = (newCurrency)->
			$scope.currencyCode = newCurrency

		$scope.signUpNowClicked = (plan, annual)->
			if $scope.ui.view == "annual"
				plan = "#{plan}_annual"
			else
				abTestManager.processTestWithStep("trial_len", bucket.bucketName, 0)<commit_msg>made what is returned for multi currency more explicit<commit_after>define [
	"base"
	"libs/recurly-3.0.5"
], (App, recurly) ->


	App.factory "MultiCurrencyPricing", () ->
		
		currencyCode = window.recomendedCurrency

		return {
			currencyCode:currencyCode
			plans: 
				USD:
					symbol: "$"
					student:
						monthly: "$8"
						annual: "$80"
					collaborator:
						monthly: "$15"
						annual: "$180"
					professional:
						monthly: "$30"
						annual: "$360"

				EUR: 
					symbol: "€"
					student:
						monthly: "€7"
						annual: "€70"
					collaborator:
						monthly: "€12"
						annual: "€144"
					professional:
						monthly: "€25"
						annual: "€300"
						
				GBP:
					symbol: "£"
					student:
						monthly: "£6"
						annual: "£60"
					collaborator:
						monthly: "£10"
						annual: "£120"
					professional:
						monthly: "£22"
						annual: "£264"
		}
	



	App.controller "PlansController", ($scope, $modal, event_tracking, abTestManager, MultiCurrencyPricing, $http) ->
		
		buckets = [
			{ bucketName:"7d", queryString: "_free_trial_7_days", trial_len:7 }
			{ bucketName:"14d", queryString: "_free_trial_14_days", trial_len:14 }
		]
		bucket = abTestManager.getABTestBucket "trial_len", buckets

		$scope.trial_len = bucket.trial_len
		$scope.planQueryString = bucket.queryString

		$scope.ui =
			view: "monthly"

		$scope.plans = MultiCurrencyPricing.plans
		$scope.currencyCode = MultiCurrencyPricing.currencyCode

		$scope.changeCurreny = (newCurrency)->
			$scope.currencyCode = newCurrency

		$scope.signUpNowClicked = (plan, annual)->
			if $scope.ui.view == "annual"
				plan = "#{plan}_annual"
			else
				abTestManager.processTestWithStep("trial_len", bucket.bucketName, 0)
{'fraction_non_alphanumeric': 0.139839333531687, 'fraction_numerical': 0.030943171675096696, 'mean_word_length': 2.9693034238488782, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '815133', 'n_tokens_mistral': 1659, 'n_tokens_neox': 1210, 'n_words': 232}