<commit_before>package azure

type Endpoints struct {
	resourceManagerEndpointUrl string
	activeDirectoryEndpointUrl string
}

func GetEndpoints(location string) Endpoints {
	var e Endpoints

	switch location {
	case GermanyCentral:
	case GermanyEast:
		e = Endpoints{"https://management.microsoftazure.de", "https://login.microsoftonline.de"}
	case ChinaEast:
	case ChinaNorth:
		e = Endpoints{"https://management.chinacloudapi.cn", "https://login.chinacloudapi.cn"}
	case USGovIowa:
	case USGovVirginia:
		e = Endpoints{"https://management.usgovcloudapi.net", "https://login.microsoftonline.com"}
	default:
		e = Endpoints{"https://management.azure.com", "https://login.microsoftonline.com"}
	}

	return e
}<commit_msg>supporting name and display name format of location<commit_after>package azure

import "strings"

type Endpoints struct {
	resourceManagerEndpointUrl string
	activeDirectoryEndpointUrl string
}

func GetEndpoints(location string) Endpoints {
	var e Endpoints

	location = strings.Replace(strings.ToLower(location), " ", "", -1)

	switch location {
	case GermanyCentral, GermanyEast:
		e = Endpoints{"https://management.microsoftazure.de", "https://login.microsoftonline.de"}
	case ChinaEast, ChinaNorth:
		e = Endpoints{"https://management.chinacloudapi.cn", "https://login.chinacloudapi.cn"}
	case USGovIowa, USGovVirginia:
		e = Endpoints{"https://management.usgovcloudapi.net", "https://login.microsoftonline.com"}
	default:
		e = Endpoints{"https://management.azure.com", "https://login.microsoftonline.com"}
	}

	return e
}
{'fraction_non_alphanumeric': 0.12717882504841835, 'fraction_numerical': 0.0006455777921239509, 'mean_word_length': 5.485355648535565, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 16, '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': '7275356', 'n_tokens_mistral': 508, 'n_tokens_neox': 467, 'n_words': 99}