<commit_before>var cc ={win:Ti.UI.currentWindow};
Ti.include('./application.js');
(function(){

	cc.win.orientationModes = [
		Ti.UI.PORTRAIT,
		Ti.UI.UPSIDE_PORTRAIT
	];
	
	cc.mainContainer = Ti.UI.createView({
		height:isAndroid() ? 370 : 340,
		borderRadius:isAndroid() ? 10 : 5, 
		id:'mainContainer'
		});
	cc.win.add(cc.mainContainer);
		
	cc.topContainer = Ti.UI.createView({id:'topContainer'});
	cc.mainContainer.add(cc.topContainer);

	cc.chartiyLogo = Ti.UI.createImageView({
		    image:cc.win.charity_logo,
			defaultImage:'../images/cont_placeholder.png',
			height:75, width:75,
			left:5,top:3
	});
	cc.topContainer.add(cc.chartiyLogo);

	cc.charityName = Ti.UI.createLabel({
			text:cc.win.charity_name,
			id:'charityName'
		});	
	cc.topContainer.add(cc.charityName);

	cc.Line1 = Ti.UI.createView({id:'vwLine'});
	cc.mainContainer.add(cc.Line1);

	cc.charityAdr = Ti.UI.createLabel({
			text:cc.win.charity_address,
			id:'charityAdr'
		});
	cc.mainContainer.add(cc.charityAdr);
	cc.Line2 = Ti.UI.createView({id:'vwLine'});
	cc.mainContainer.add(cc.Line2);								


	cc.charityInfo = Ti.UI.createLabel({
		text:cc.win.info_text,
		id:'charityInfo'
	});

	cc.moreInfoScroll = Ti.UI.createScrollView({
		id:'moreInfoScroll',
		height:isAndroid() ? 160 : 155
		});

	cc.moreInfoScroll.add(cc.charityInfo);
	cc.mainContainer.add(cc.moreInfoScroll);
	
	cc.bottomContainer = Ti.UI.createView({
		top:isAndroid() ? 23 : 0,
		height: isAndroid() ? 50 : 75,
		layout:'horizontal',
		backgroundColor:'transparent'
		});
	cc.mainContainer.add(cc.bottomContainer);
	
	cc.phoneButton = Ti.UI.createView({id:'phoneButton'});	
	cc.bottomContainer.add(cc.phoneButton);

	cc.phoneImg = Ti.UI.createView({id:'phoneImg'});
	cc.phoneButton.add(cc.phoneImg);
	
	cc.phoneButtonLabel = Ti.UI.createLabel({id:'phoneButtonLabel'});	
	cc.phoneButton.add(cc.phoneButtonLabel);
	
	cc.webButton = Ti.UI.createView({id:'webButton'});	
	cc.bottomContainer.add(cc.webButton);
				
	cc.webImg = Ti.UI.createView({id:'webImg'});
	cc.webButton.add(cc.webImg);
	cc.webButtonLabel = Ti.UI.createLabel({id:'webButtonLabel'});
	cc.webButton.add(cc.webButtonLabel);
			
	if(isAndroid()){
		var estMainContWidth=(Ti.Platform.displayCaps.platformWidth-20);
		//Divide by zero check
		if(estMainContWidth<1){
			estMainContWidth=300;
		}
		cc.bottomContainer.width=estMainContWidth;
//		Ti.API.info('estMainContWidth=' + estMainContWidth);
		cc.phoneButton.width=((estMainContWidth/2));
		cc.webButton.width=((estMainContWidth/2));
	}
})();

//------------------------------
//	Events
//------------------------------

cc.phoneButton.addEventListener('click', function(){
	if(cc.win.phone_num.length>0){
		Ti.Platform.openURL('tel:' + cc.win.phone_num);	
	}
});

cc.webButton.addEventListener('click', function(){
	if(cc.win.web_link.length==0){
		return;
	}
	
	if (!Ti.Network.online){
	 	  noNetworkAlert();
	} else {
	   Ti.Platform.openURL(cc.win.web_link);
	}
});<commit_msg>another update for galazy tab. Spacing issue at bottom<commit_after>var cc ={win:Ti.UI.currentWindow};
Ti.include('./application.js');
(function(){

	cc.win.orientationModes = [
		Ti.UI.PORTRAIT,
		Ti.UI.UPSIDE_PORTRAIT
	];
	
	cc.mainContainer = Ti.UI.createView({
		height:isAndroid() ? 370 : 340,
		borderRadius:isAndroid() ? 10 : 5, 
		id:'mainContainer'
		});
	cc.win.add(cc.mainContainer);
		
	cc.topContainer = Ti.UI.createView({id:'topContainer'});
	cc.mainContainer.add(cc.topContainer);

	cc.chartiyLogo = Ti.UI.createImageView({
		    image:cc.win.charity_logo,
			defaultImage:'../images/cont_placeholder.png',
			height:75, width:75,
			left:5,top:3
	});
	cc.topContainer.add(cc.chartiyLogo);

	cc.charityName = Ti.UI.createLabel({
			text:cc.win.charity_name,
			id:'charityName'
		});	
	cc.topContainer.add(cc.charityName);

	cc.Line1 = Ti.UI.createView({id:'vwLine'});
	cc.mainContainer.add(cc.Line1);

	cc.charityAdr = Ti.UI.createLabel({
			text:cc.win.charity_address,
			id:'charityAdr'
		});
	cc.mainContainer.add(cc.charityAdr);
	cc.Line2 = Ti.UI.createView({id:'vwLine'});
	cc.mainContainer.add(cc.Line2);								


	cc.charityInfo = Ti.UI.createLabel({
		text:cc.win.info_text,
		id:'charityInfo'
	});

	cc.moreInfoScroll = Ti.UI.createScrollView({
		id:'moreInfoScroll',
		height:isAndroid() ? 185 : 155
		});

	cc.moreInfoScroll.add(cc.charityInfo);
	cc.mainContainer.add(cc.moreInfoScroll);
	
	cc.bottomContainer = Ti.UI.createView({
		top:isAndroid() ? 1 : 0,
		height: isAndroid() ? 50 : 75,
		layout:'horizontal',
		backgroundColor:'transparent'
		});
	cc.mainContainer.add(cc.bottomContainer);
	
	cc.phoneButton = Ti.UI.createView({id:'phoneButton'});	
	cc.bottomContainer.add(cc.phoneButton);

	cc.phoneImg = Ti.UI.createView({id:'phoneImg'});
	cc.phoneButton.add(cc.phoneImg);
	
	cc.phoneButtonLabel = Ti.UI.createLabel({id:'phoneButtonLabel'});	
	cc.phoneButton.add(cc.phoneButtonLabel);
	
	cc.webButton = Ti.UI.createView({id:'webButton'});	
	cc.bottomContainer.add(cc.webButton);
				
	cc.webImg = Ti.UI.createView({id:'webImg'});
	cc.webButton.add(cc.webImg);
	cc.webButtonLabel = Ti.UI.createLabel({id:'webButtonLabel'});
	cc.webButton.add(cc.webButtonLabel);
			
	if(isAndroid()){
		var estMainContWidth=(Ti.Platform.displayCaps.platformWidth-20);
		//Divide by zero check
		if(estMainContWidth<1){
			estMainContWidth=300;
		}
		cc.bottomContainer.width=estMainContWidth;
//		Ti.API.info('estMainContWidth=' + estMainContWidth);
		cc.phoneButton.width=((estMainContWidth/2));
		cc.webButton.width=((estMainContWidth/2));
	}
})();

//------------------------------
//	Events
//------------------------------

cc.phoneButton.addEventListener('click', function(){
	if(cc.win.phone_num.length>0){
		Ti.Platform.openURL('tel:' + cc.win.phone_num);	
	}
});

cc.webButton.addEventListener('click', function(){
	if(cc.win.web_link.length==0){
		return;
	}
	
	if (!Ti.Network.online){
	 	  noNetworkAlert();
	} else {
	   Ti.Platform.openURL(cc.win.web_link);
	}
});
{'fraction_non_alphanumeric': 0.19640456989247312, 'fraction_numerical': 0.01394489247311828, 'mean_word_length': 4.070698466780239, 'pattern_counts': {'":': 0, '<': 5, '<?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': '119409', 'n_tokens_mistral': 2474, 'n_tokens_neox': 2217, 'n_words': 240}