<commit_before>package org.cipres.treebase;

import org.cipres.treebase.TreebaseIDString.MalformedTreebaseIDString;

/**
 * Helper class for TreebaseIDString
 * 
 * @author rvosa
 *
 */
public class NamespacedGUID {
	private String mMamespacedIDString;
	public static final String NAMING_AUTHORITY_PREFIX_TB1 = "TB1";
	public static final String NAMING_AUTHORITY_PREFIX_TB2 = "TB2";
	public static final String GUID_DELIMITER = ":";
	
	/**
	 * @param a fully qualified treebase ID, e.g. TB2:Tr2312
	 */
	public NamespacedGUID(String namespacedIDString) {
		mMamespacedIDString = namespacedIDString;
	}
	
	/**
	 * @return a fully qualified treebase ID, e.g. TB2:Tr2312
	 */
	public String toString() {
		return mMamespacedIDString;
	}
	
	/**
	 * 
	 * @return A local TreebaseIDString, e.g. Tr2312
	 * @throws MalformedTreebaseIDString
	 */
	public TreebaseIDString getTreebaseIDString () throws MalformedTreebaseIDString {
		StringBuilder sb = new StringBuilder();<commit_msg>Added namespace prefixes for NCBI and UBIO<commit_after>package org.cipres.treebase;

import org.cipres.treebase.TreebaseIDString.MalformedTreebaseIDString;

/**
 * Helper class for TreebaseIDString
 * 
 * @author rvosa
 *
 */
public class NamespacedGUID {
	private String mMamespacedIDString;
	public static final String NAMING_AUTHORITY_PREFIX_TB1 = "TB1";
	public static final String NAMING_AUTHORITY_PREFIX_TB2 = "TB2";
	public static final String NAMING_AUTHORITY_PREFIX_NCBI = "NCBI";
	public static final String NAMING_AUTHORITY_PREFIX_UBIO = "uBio";
	public static final String GUID_DELIMITER = ":";
	
	/**
	 * @param a fully qualified treebase ID, e.g. TB2:Tr2312
	 */
	public NamespacedGUID(String namespacedIDString) {
		mMamespacedIDString = namespacedIDString;
	}
	
	/**
	 * @return a fully qualified treebase ID, e.g. TB2:Tr2312
	 */
	public String toString() {
		return mMamespacedIDString;
	}
	
	/**
	 * 
	 * @return A local TreebaseIDString, e.g. Tr2312
	 * @throws MalformedTreebaseIDString
	 */
	public TreebaseIDString getTreebaseIDString () throws MalformedTreebaseIDString {
		StringBuilder sb = new StringBuilder();
{'fraction_non_alphanumeric': 0.08802650260293422, 'fraction_numerical': 0.017037387600567912, 'mean_word_length': 4.69811320754717, 'pattern_counts': {'":': 2, '<': 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': '5832210', 'n_tokens_mistral': 758, 'n_tokens_neox': 678, 'n_words': 169}