<commit_before>package org.springframework.cloud.service.common;

import org.springframework.cloud.service.ServiceInfo;

@ServiceInfo.ServiceLabel("db2")
public class DB2ServiceInfo extends RelationalServiceInfo {

    private static final String JDBC_URL_TYPE = "db2";

    public static final String DB2_SCHEME = JDBC_URL_TYPE;

	public DB2ServiceInfo(String id, String url) {
		super(id, url, JDBC_URL_TYPE);
	}

	@Override
	public String getJdbcUrl() {
		if (getUriInfo().getUriString().startsWith(JDBC_PREFIX)) {
			return getUriInfo().getUriString();
		}
		                    
		return String.format("jdbc:%s://%s:%d/%s:user=%s;password=%s;",
				jdbcUrlDatabaseType, 
				getHost(), getPort(), getPath(), getUserName(), getPassword());
	}

}<commit_msg>added ServiceProperty annotation for jdbcurl<commit_after>package org.springframework.cloud.service.common;

import org.springframework.cloud.service.ServiceInfo;

@ServiceInfo.ServiceLabel("db2")
public class DB2ServiceInfo extends RelationalServiceInfo {

    private static final String JDBC_URL_TYPE = "db2";

    public static final String DB2_SCHEME = JDBC_URL_TYPE;

    public DB2ServiceInfo(String id, String url) {
		super(id, url, JDBC_URL_TYPE);
	}

	@ServiceProperty(category = "connection")
	@Override
	public String getJdbcUrl() {
		if (getUriInfo().getUriString().startsWith(JDBC_PREFIX)) {
			return getUriInfo().getUriString();
		}
		                    
		return String.format("jdbc:%s://%s:%d/%s:user=%s;password=%s;",
				jdbcUrlDatabaseType, 
				getHost(), getPort(), getPath(), getUserName(), getPassword());
	}
	
}
{'fraction_non_alphanumeric': 0.1275, 'fraction_numerical': 0.00625, 'mean_word_length': 4.697508896797153, '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': '1923838', 'n_tokens_mistral': 548, 'n_tokens_neox': 495, 'n_words': 98}