<commit_before>package com.microsoft.azure.servicebus;

import java.net.URI;
import java.util.UUID;

import com.microsoft.azure.servicebus.primitives.ConnectionStringBuilder;
import com.microsoft.azure.servicebus.primitives.Util;

public class TestUtils {
	
	private static final String NAMESPACE_CONNECTION_STRING_ENVIRONMENT_VARIABLE_NAME = "AZURE_SERVICEBUS_JAVA_CLIENT_TEST_CONNECTION_STRING";
    public static final String FIRST_SUBSCRIPTION_NAME = "subscription1";
	private static String namespaceConnectionString;
	private static ConnectionStringBuilder namespaceConnectionStringBuilder;
	
	static
	{
		// Read connection string
        namespaceConnectionString = System.getenv(NAMESPACE_CONNECTION_STRING_ENVIRONMENT_VARIABLE_NAME);
        namespaceConnectionString = "Endpoint=sb://nemakamtest1.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=<KEY>;
        //namespaceConnectionString = "Endpoint=sb://contoso.servicebus.onebox.windows-int.net/;SharedAccessKeyName=DefaultNamespaceSasAllKeyName;SharedAccessKey=<KEY>;
		if(namespaceConnectionString == null || namespaceConnectionString.isEmpty())
		{			
			System.err.println(NAMESPACE_CONNECTION_STRING_ENVIRONMENT_VARIABLE_NAME + " environment variable not set. Tests will not be able to connect to to any service bus entity.");
		}
		namespaceConnectionStringBuilder = new ConnectionStringBuilder(namespaceConnectionString);
	}
	
	public static URI getNamespaceEndpointURI()
    {
        return namespaceConnectionStringBuilder.getEndpoint();
    }
    
    public static ClientSettings getClientSettings()
    {
        return Util.getClientSettingsFromConnectionStringBuilder(namespaceConnectionStringBuilder);
    }
    
    // AADTokens cannot yet be used for management operations, sent directly to gateway
    public static ClientSettings getManagementClientSettings()
    {
        return Util.getClientSettingsFromConnectionStringBuilder(namespaceConnectionStringBuilder);
    }
	
	public static String randomizeEntityName(String entityName)
	{
	    return entityName + getRandomString();
	}
<commit_msg>Removing connection strings from code. (#277)<commit_after>package com.microsoft.azure.servicebus;

import java.net.URI;
import java.util.UUID;

import com.microsoft.azure.servicebus.primitives.ConnectionStringBuilder;
import com.microsoft.azure.servicebus.primitives.Util;

public class TestUtils {
	
	private static final String NAMESPACE_CONNECTION_STRING_ENVIRONMENT_VARIABLE_NAME = "AZURE_SERVICEBUS_JAVA_CLIENT_TEST_CONNECTION_STRING";
    public static final String FIRST_SUBSCRIPTION_NAME = "subscription1";
	private static String namespaceConnectionString;
	private static ConnectionStringBuilder namespaceConnectionStringBuilder;
	
	static
	{
		// Read connection string
        namespaceConnectionString = System.getenv(NAMESPACE_CONNECTION_STRING_ENVIRONMENT_VARIABLE_NAME);
		if(namespaceConnectionString == null || namespaceConnectionString.isEmpty())
		{			
			System.err.println(NAMESPACE_CONNECTION_STRING_ENVIRONMENT_VARIABLE_NAME + " environment variable not set. Tests will not be able to connect to to any service bus entity.");
		}
		namespaceConnectionStringBuilder = new ConnectionStringBuilder(namespaceConnectionString);
	}
	
	public static URI getNamespaceEndpointURI()
    {
        return namespaceConnectionStringBuilder.getEndpoint();
    }
    
    public static ClientSettings getClientSettings()
    {
        return Util.getClientSettingsFromConnectionStringBuilder(namespaceConnectionStringBuilder);
    }
    
    // AADTokens cannot yet be used for management operations, sent directly to gateway
    public static ClientSettings getManagementClientSettings()
    {
        return Util.getClientSettingsFromConnectionStringBuilder(namespaceConnectionStringBuilder);
    }
	
	public static String randomizeEntityName(String entityName)
	{
	    return entityName + getRandomString();
	}

{'fraction_non_alphanumeric': 0.06395939086294417, 'fraction_numerical': 0.0015228426395939086, 'mean_word_length': 5.535655058043118, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3753405', 'n_tokens_mistral': 1045, 'n_tokens_neox': 998, 'n_words': 213}