<commit_before>/* global angular, toml */

angular.module('app')
.factory('Anchors', function ($http, $q) {
	'use strict';

	function lookup(domain) {

		var url = 'https://www.' + domain + '/.well-known/stellar.toml';

		return $http.get(url)
		.then(function (res) {
			try {
				var config = toml.parse(res.data);
				if (config.CURRENCIES) {
					return config.CURRENCIES;
				} else {
					return $q.reject();
				}
			} catch (e) {
				return $q.reject();
			}
		});
	}

	return {
		lookup: lookup
	};
});<commit_msg>Update to the new “stellar.toml” location<commit_after>/* global angular, toml */

angular.module('app')
.factory('Anchors', function ($http, $q) {
	'use strict';

	function lookup(domain) {

		var url = 'https://' + domain + '/.well-known/stellar.toml';

		return $http.get(url)
		.then(function (res) {
			try {
				var config = toml.parse(res.data);
				if (config.CURRENCIES) {
					return config.CURRENCIES;
				} else {
					return $q.reject();
				}
			} catch (e) {
				return $q.reject();
			}
		});
	}

	return {
		lookup: lookup
	};
});
{'fraction_non_alphanumeric': 0.18504672897196262, 'fraction_numerical': 0.0, 'mean_word_length': 2.7711267605633805, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 1, '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': '5913736', 'n_tokens_mistral': 477, 'n_tokens_neox': 397, 'n_words': 85}