<commit_before>var org_metaworks_widget_ModalWindow = function(objectId, className) {
	this.objectId = objectId;
	this.className = className;
	this.divId = '#objDiv_' + objectId;

	$('.mw3_layout').attr('fixed_size', true);
	
	this.openerId = mw3.recentOpenerObjectId[mw3.recentOpenerObjectId.length - 1];
	this.object = mw3.objects[this.objectId];

	if(this.object){
		var title = this.object.title;
		
		if (title == null){
			var metadata = mw3.getMetadata(this.className);
			
			title = metadata.displayName;
		}
	
		title = mw3.localize(title);
		
		if(this.object.metaworksContext && this.object.metaworksContext.where == 'mobile'){
			var modal = $(this.divId);			
			var popup = modal.parent();
			
			var header = '<div data-role=\"header\" data-theme=\"d\"><h1>' + title + '</h1></div>';			
 			
			modal.attr('data-role', 'content');
			modal.attr('data-theme', 'c');			
			
			popup.attr('id', 'dialog_' + this.objectId);
			popup.attr('data-role', 'dialog');
			popup.prepend(header);
			
			$.mobile.changePage('#dialog_' + this.objectId);<commit_msg>ModalWindow can display its panel's class displayName<commit_after>var org_metaworks_widget_ModalWindow = function(objectId, className) {
	this.objectId = objectId;
	this.className = className;
	this.divId = '#objDiv_' + objectId;

	$('.mw3_layout').attr('fixed_size', true);
	
	this.openerId = mw3.recentOpenerObjectId[mw3.recentOpenerObjectId.length - 1];
	this.object = mw3.objects[this.objectId];

	if(this.object){
		var title = this.object.title;
		
		if (title == null && this.object.panel){
			var metadata = mw3.getMetadata(this.object.panel.__className);

			if(metadata)
				title = metadata.displayName;
		}
	
		title = mw3.localize(title);
		
		if(this.object.metaworksContext && this.object.metaworksContext.where == 'mobile'){
			var modal = $(this.divId);			
			var popup = modal.parent();
			
			var header = '<div data-role=\"header\" data-theme=\"d\"><h1>' + title + '</h1></div>';			
 			
			modal.attr('data-role', 'content');
			modal.attr('data-theme', 'c');			
			
			popup.attr('id', 'dialog_' + this.objectId);
			popup.attr('data-role', 'dialog');
			popup.prepend(header);
			
			$.mobile.changePage('#dialog_' + this.objectId);
{'fraction_non_alphanumeric': 0.17416741674167416, 'fraction_numerical': 0.008100810081008101, 'mean_word_length': 3.843137254901961, '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': '5106779', 'n_tokens_mistral': 899, 'n_tokens_neox': 760, 'n_words': 127}