<commit_before> angular.module('angularCurrency.services', []).factory('CurrencyService', ["$log","$http", "$q",
 	function($log,$http, $q) {

 		// The public party of the service
 		currencyService = {};

 		// Rate object, jolds the selected rate object
 		var rate = null;

 		// List of curruncies
 		currencyService.list = {
 			USD: {
 				name: "United States Dollar",
 				code: "USD",
 				icon: "flag-us"
 			},
 			SAR: {
 				name: "Saudi <NAME>",
 				code: "SAR",
 				icon: "flag-sa"
 			},
 			KWD: {
 				name: "<NAME>",
 				code: "KWD",
 				icon: "flag-kw"
 			},
 			AED: {
 				name: "United Arab Em<NAME>",
 				code: "AED",
 				icon: "flag-ae"
 			},
 			BHD: {
 				name: "<NAME>",
 				code: "BHD",
 				icon: "flag-bh"
 			},
 			QAR: {
 				name: "<NAME>",
 				code: "QAR",
 				icon: "flag-qa"
 			},
 			OMR: {
 				name: "<NAME>",
 				code: "OMR",
 				icon: "flag-om"
 			},
 			JOD: {
 				name: "<NAME>",
 				code: "JOD",
 				icon: "flag-jo"
 			},
 			ILS: {
 				name: "<NAME>",
 				code: "ILS",
 				icon: "flag-ps"
 			},
 			EGP: {
 				name: "Egypt Pound",
 				code: "EGP",
 				icon: "flag-eg"
 			},
 			TRY: {
 				name: "<NAME>",
 				code: "TRY",
 				icon: "flag-tr"
 			},
 			LBP: {
 				name: "Lebanon Pound",
 				code: "LBP",
 				icon: "flag-lb"
 			},
 			TND: {
 				name: "<NAME>",
 				code: "TND",
 				icon: "icon-tn"
 			},
 			MAD: {
 				name: "<NAME>",
 				code: "MAD",
 				icon: "flag-ma",
 			},
 			EUR: {
 				name: "Euro",
 				code: "EUR",
 				icon: "flag-ey"
 			},
 			GBP: {
 				name: "United Kingdom Pound",
 				code: "GBP",
 				icon: "flag-gb"
 			}
 		};
 	
 		currencyService.addToList = function(obj) {
 			currencyService.list.push(obj);
 		}

 		currencyService.removeFromList = function(code) {
 			angular.forEach(currencyService.list, function(item, index) {
 				if (item.code == code) {
 					currencyService.list.splice(index, 1);
 				}
 			})
 		}

 		currencyService.fetchRates = function(currencyCode) {
 			var deferred = $q.defer();

 			var url = Yamsafer.baseUrl + "currencies/show";

 			currencyCode ? (url += "/" + currencyCode) : (url = url);
 		
 			$http({
 				method: 'GET',
 				url: url
 			}).
 			success(function(data, status, headers, config) {
 				rate = data;
 				deferred.resolve(data);
 			}).
 			error(function(data, status, headers, config) {
 				deferred.reject(data);
 				$log.error(data, status);
 			});
 			return deferred.promise;
 		}

 		currencyService.getRate = function() {
 			return rate;
 		}

 		currencyService.convertToNewCurrency = function(value, rate) {
 			var newValue = value * rate ;
 			return newValue.toFixed(2);
 		};

 		currencyService.convertToUSD = function(value, rate) {
 			var usdValue = value/rate;
 			return usdValue.toFixed(2);
 		};

 		return currencyService;
 	}
 ])<commit_msg>added new line at the end of the file<commit_after> angular.module('angularCurrency.services', []).factory('CurrencyService', ["$log","$http", "$q",
 	function($log,$http, $q) {

 		// The public party of the service
 		currencyService = {};

 		// Rate object, jolds the selected rate object
 		var rate = null;

 		// List of curruncies
 		currencyService.list = {
 			USD: {
 				name: "United States Dollar",
 				code: "USD",
 				icon: "flag-us"
 			},
 			SAR: {
 				name: "<NAME>",
 				code: "SAR",
 				icon: "flag-sa"
 			},
 			KWD: {
 				name: "<NAME>",
 				code: "KWD",
 				icon: "flag-kw"
 			},
 			AED: {
 				name: "United Arab Em<NAME>",
 				code: "AED",
 				icon: "flag-ae"
 			},
 			BHD: {
 				name: "<NAME>",
 				code: "BHD",
 				icon: "flag-bh"
 			},
 			QAR: {
 				name: "<NAME>",
 				code: "QAR",
 				icon: "flag-qa"
 			},
 			OMR: {
 				name: "<NAME>",
 				code: "OMR",
 				icon: "flag-om"
 			},
 			JOD: {
 				name: "<NAME>",
 				code: "JOD",
 				icon: "flag-jo"
 			},
 			ILS: {
 				name: "<NAME>",
 				code: "ILS",
 				icon: "flag-ps"
 			},
 			EGP: {
 				name: "Egypt Pound",
 				code: "EGP",
 				icon: "flag-eg"
 			},
 			TRY: {
 				name: "<NAME>",
 				code: "TRY",
 				icon: "flag-tr"
 			},
 			LBP: {
 				name: "Lebanon Pound",
 				code: "LBP",
 				icon: "flag-lb"
 			},
 			TND: {
 				name: "<NAME>",
 				code: "TND",
 				icon: "icon-tn"
 			},
 			MAD: {
 				name: "<NAME>",
 				code: "MAD",
 				icon: "flag-ma",
 			},
 			EUR: {
 				name: "Euro",
 				code: "EUR",
 				icon: "flag-ey"
 			},
 			GBP: {
 				name: "United Kingdom Pound",
 				code: "GBP",
 				icon: "flag-gb"
 			}
 		};
 	
 		currencyService.addToList = function(obj) {
 			currencyService.list.push(obj);
 		}

 		currencyService.removeFromList = function(code) {
 			angular.forEach(currencyService.list, function(item, index) {
 				if (item.code == code) {
 					currencyService.list.splice(index, 1);
 				}
 			})
 		}

 		currencyService.fetchRates = function(currencyCode) {
 			var deferred = $q.defer();

 			var url = Yamsafer.baseUrl + "currencies/show";

 			currencyCode ? (url += "/" + currencyCode) : (url = url);
 		
 			$http({
 				method: 'GET',
 				url: url
 			}).
 			success(function(data, status, headers, config) {
 				rate = data;
 				deferred.resolve(data);
 			}).
 			error(function(data, status, headers, config) {
 				deferred.reject(data);
 				$log.error(data, status);
 			});
 			return deferred.promise;
 		}

 		currencyService.getRate = function() {
 			return rate;
 		}

 		currencyService.convertToNewCurrency = function(value, rate) {
 			var newValue = value * rate ;
 			return newValue.toFixed(2);
 		};

 		currencyService.convertToUSD = function(value, rate) {
 			var usdValue = value/rate;
 			return usdValue.toFixed(2);
 		};

 		return currencyService;
 	}
 ])
 
{'fraction_non_alphanumeric': 0.17365478686233404, 'fraction_numerical': 0.0010482180293501049, 'mean_word_length': 2.074650912996778, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '4328908', 'n_tokens_mistral': 2943, 'n_tokens_neox': 2306, 'n_words': 447}