<commit_before>component {

	msSQL = getCredencials();

	this.name = "LDEV2902";

	this.datasources["testTimeZone"] = {
		  class: 'com.microsoft.sqlserver.jdbc.SQLServerDriver'
		, bundleName: 'mssqljdbc4'
		, bundleVersion: '4.0.2206.100'
		, connectionString: 'jdbc:sqlserver://'&#msSQL.server#&':'&#msSQL.port#&';DATABASENAME='&#msSQL.database#&';sendStringParametersAsUnicode=true;SelectMethod=direct'
		, username: #msSQL.username#
		, password: #<PASSWORD>#
		, timezone:'America/chicago'
		
	};

	this.datasources["testNoTimeZone"] = {
		 class: 'com.microsoft.sqlserver.jdbc.SQLServerDriver'
		, bundleName: 'mssqljdbc4'
		, bundleVersion: '4.0.2206.100'
		, connectionString: 'jdbc:sqlserver://'&#msSQL.server#&':'&#msSQL.port#&';DATABASENAME='&#msSQL.database#&';sendStringParametersAsUnicode=true;SelectMethod=direct'
		, username: #msSQL.username#
		, password: #<PASSWORD>#
		
	};

	this.datasources["testemptyTimeZone"] = {
		 class: 'com.microsoft.sqlserver.jdbc.SQLServerDriver'
		, bundleName: 'mssqljdbc4'
		, bundleVersion: '4.0.2206.100'
		, connectionString: 'jdbc:sqlserver://'&#msSQL.server#&':'&#msSQL.port#&';DATABASENAME='&#msSQL.database#&';sendStringParametersAsUnicode=true;SelectMethod=direct'
		, username: #msSQL.username#
		, password: #<PASSWORD>#
		
	};

	private struct function getCredencials() {
		// getting the credetials from the enviroment variables
		var msSQL={};
		if(
			!isNull(server.system.environment.MSSQL_SERVER) && 
			!isNull(server.system.environment.MSSQL_USERNAME) && 
			!isNull(server.system.environment.MSSQL_PASSWORD) && 
			!isNull(server.system.environment.MSSQL_PORT) && 
			!isNull(server.system.environment.MSSQL_DATABASE)) {
			msSQL.server=server.system.environment.MSSQL_SERVER;
			msSQL.username=server.system.environment.MSSQL_USERNAME;
			msSQL.password=server.system.environment.MSSQL_PASSWORD;
			msSQL.port=server.system.environment.MSSQL_PORT;
			msSQL.database=server.system.environment.MSSQL_DATABASE;
		}
		// getting the credetials from the system variables
		else if(
			!isNull(server.system.properties.MSSQL_SERVER) && 
			!isNull(server.system.properties.MSSQL_USERNAME) && 
			!isNull(server.system.properties.MSSQL_PASSWORD) && 
			!isNull(server.system.properties.MSSQL_PORT) && 
			!isNull(server.system.properties.MSSQL_DATABASE)) {
			msSQL.server=server.system.properties.MSSQL_SERVER;
			msSQL.username=server.system.properties.MSSQL_USERNAME;
			msSQL.password=server.system.properties.MSSQL_UPASSWORD;
			msSQL.port=server.system.properties.MSSQL_PORT;
			msSQL.database=server.system.properties.MSSQL_DATABASE;
		}
		return msSQL;
	}
}<commit_msg>LDEV-2902 fix typo in test data source creds<commit_after>component {

	msSQL = getCredencials();

	this.name = "LDEV2902";

	this.datasources["testTimeZone"] = {
		  class: 'com.microsoft.sqlserver.jdbc.SQLServerDriver'
		, bundleName: 'mssqljdbc4'
		, bundleVersion: '4.0.2206.100'
		, connectionString: 'jdbc:sqlserver://'&#msSQL.server#&':'&#msSQL.port#&';DATABASENAME='&#msSQL.database#&';sendStringParametersAsUnicode=true;SelectMethod=direct'
		, username: #msSQL.username#
		, password: <PASSWORD>#
		, timezone:'America/chicago'
		
	};

	this.datasources["testNoTimeZone"] = {
		 class: 'com.microsoft.sqlserver.jdbc.SQLServerDriver'
		, bundleName: 'mssqljdbc4'
		, bundleVersion: '4.0.2206.100'
		, connectionString: 'jdbc:sqlserver://'&#msSQL.server#&':'&#msSQL.port#&';DATABASENAME='&#msSQL.database#&';sendStringParametersAsUnicode=true;SelectMethod=direct'
		, username: #msSQL.username#
		, password: #<PASSWORD>#
		
	};

	this.datasources["testemptyTimeZone"] = {
		 class: 'com.microsoft.sqlserver.jdbc.SQLServerDriver'
		, bundleName: 'mssqljdbc4'
		, bundleVersion: '4.0.2206.100'
		, connectionString: 'jdbc:sqlserver://'&#msSQL.server#&':'&#msSQL.port#&';DATABASENAME='&#msSQL.database#&';sendStringParametersAsUnicode=true;SelectMethod=direct'
		, username: #msSQL.username#
		, password: #<PASSWORD>#
		
	};

	private struct function getCredencials() {
		// getting the credetials from the enviroment variables
		var msSQL={};
		if(
			!isNull(server.system.environment.MSSQL_SERVER) && 
			!isNull(server.system.environment.MSSQL_USERNAME) && 
			!isNull(server.system.environment.MSSQL_PASSWORD) && 
			!isNull(server.system.environment.MSSQL_PORT) && 
			!isNull(server.system.environment.MSSQL_DATABASE)) {
			msSQL.server=server.system.environment.MSSQL_SERVER;
			msSQL.username=server.system.environment.MSSQL_USERNAME;
			msSQL.password=server.system.environment.MSSQL_PASSWORD;
			msSQL.port=server.system.environment.MSSQL_PORT;
			msSQL.database=server.system.environment.MSSQL_DATABASE;
		}
		// getting the credetials from the system variables
		else if(
			!isNull(server.system.properties.MSSQL_SERVER) && 
			!isNull(server.system.properties.MSSQL_USERNAME) && 
			!isNull(server.system.properties.MSSQL_PASSWORD) && 
			!isNull(server.system.properties.MSSQL_PORT) && 
			!isNull(server.system.properties.MSSQL_DATABASE)) {
			msSQL.server=server.system.properties.MSSQL_SERVER;
			msSQL.username=server.system.properties.MSSQL_USERNAME;
			msSQL.password=<PASSWORD>.system.<PASSWORD>;
			msSQL.port=server.system.properties.MSSQL_PORT;
			msSQL.database=server.system.properties.MSSQL_DATABASE;
		}
		return msSQL;
	}
}
{'fraction_non_alphanumeric': 0.15064102564102563, 'fraction_numerical': 0.013574660633484163, 'mean_word_length': 5.517199017199017, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '4996069', 'n_tokens_mistral': 2126, 'n_tokens_neox': 1857, 'n_words': 187}