<commit_before>(function (window, document, undefined) {
    var ContactDataServices = window.ContactDataServices = window.ContactDataServices || {};
    window.ContactDataServices = ContactDataServices;

    // Generate the URLs for the various requests
	ContactDataServices.urls = {
		endpoint: "http://int-test-01/capture/v2/address/search",
		construct: {
			address: {
				// Construct the Search URL by appending query, country & token
				search: function(instance){
					var url = ContactDataServices.urls.endpoint;
					url += "?query=" + instance.currentSearchTerm;
					url += "&country=" + instance.currentCountryCode;
					url += "&take=" + (instance.maxSize || instance.picklist.maxSize);

					url = ContactDataServices.urls.addToken(url, instance.token);
					return url;
				},
				// Construct the Format URL by appending the token
				format: function(url, instance){<commit_msg>Improvement comment<commit_after>(function (window, document, undefined) {
    // Create ContactDataServices constructor and namespace on the window object (if not already present)
    var ContactDataServices = window.ContactDataServices = window.ContactDataServices || {};
    
    // Generate the URLs for the various requests
	ContactDataServices.urls = {
		endpoint: "http://int-test-01/capture/v2/address/search",
		construct: {
			address: {
				// Construct the Search URL by appending query, country & token
				search: function(instance){
					var url = ContactDataServices.urls.endpoint;
					url += "?query=" + instance.currentSearchTerm;
					url += "&country=" + instance.currentCountryCode;
					url += "&take=" + (instance.maxSize || instance.picklist.maxSize);

					url = ContactDataServices.urls.addToken(url, instance.token);
					return url;
				},
				// Construct the Format URL by appending the token
				format: function(url, instance){
{'fraction_non_alphanumeric': 0.11463939720129171, 'fraction_numerical': 0.0032292787944025836, 'mean_word_length': 3.7912371134020617, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6936919', 'n_tokens_mistral': 583, 'n_tokens_neox': 495, 'n_words': 135}