<commit_before>/**
 * @tag models, home
 * Wraps backend med services.  Enables 
 * [SmartMedDisplay.Models.Med.static.findAll retrieving],
 */
SmartMedDisplay.Models.rdfObject.
extend('SmartMedDisplay.Models.MedDetails',
/* @Static */
{
	getDetails : function(med) {
		
		var s = "<"+med.cui._string+"> "
		var r = med.Class.rdf
		 .where(s+ " ?p ?o");
		
		var ret = {};
		for (var i = 0; i < r.length; i++)
			ret[r[i].p.value._string] = r[i].o.value._string || r[i].o.value;
		
		return ret;
		
	}
},
/* @Prototype */
{	


});<commit_msg>Display dispensing info if available.<commit_after>/**
 * @tag models, home
 * Wraps backend med services.  Enables 
 * [SmartMedDisplay.Models.Med.static.findAll retrieving],
 */
SmartMedDisplay.Models.rdfObject.
extend('SmartMedDisplay.Models.MedDetails',
/* @Static */
{
	getDetails : function(med) {
	
	var s = "<"+med.cui._string+"> "
	var r = med.Class.rdf
	 .where(s+ " ?p ?o");
	
	var ret = {};
	for (var i = 0; i < r.length; i++)
		ret[r[i].p.value._string] = r[i].o.value._string || r[i].o.value;
	
	var r = med.Class.rdf
			.where(med.rdf.med.value+" ?p ?o")
			.where("?o ?f_field ?f_detail");

	for (var i = 0; i < r.length; i++)
		ret[r[i].f_field.value._string] = r[i].f_detail.value._string || r[i].f_detail.value;
	
	return ret;
		
	}
},
/* @Prototype */
{	


});
{'fraction_non_alphanumeric': 0.20499243570347958, 'fraction_numerical': 0.0022692889561270802, 'mean_word_length': 3.2, 'pattern_counts': {'":': 0, '<': 8, '<?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': '6813015', 'n_tokens_mistral': 569, 'n_tokens_neox': 516, 'n_words': 103}