<commit_before>if(Ti.Platform.osname == 'iphone' || Ti.Platform.osname == 'ipad') {
    Titanium.UI.iPhone.showStatusBar({'animated': false});
}

Titanium.include('javascript/application.js');
var indicatorShowing = false;

var tabGroup = Ti.UI.createTabGroup();
var newsWin = Ti.UI.createWindow({  
  url:'javascript/news.js',
  barColor:"#e62600",
  backgroundColor:(Ti.Platform.name == 'android') ? '#fff' :'#f39380',
  titleid:L('crisis_title')
});
var newsTab = Ti.UI.createTab({  
  icon:'images/tabs/TAB_news.png',
  title:L('tab_news'),
  window:newsWin
});

var socialWin = Ti.UI.createWindow({  
  url:'javascript/social.js',
  backgroundColor:'#f39380',
  title:L('social_page_title'),
  barColor:"#e62600"
});
var socialTab = Ti.UI.createTab({  
  icon:'images/tabs/TAB_social.png',
  title:L('social_tab_name'),
  window:socialWin
});

var contributeWin = Ti.UI.createWindow({  
  url:'javascript/contribute.js',
  backgroundColor:'#f39380',
  title:L('contribute_page_title'),
  barColor:"#e62600"
});
var contributeTab = Ti.UI.createTab({  
  icon:'images/tabs/TAB_contribute.png',
  backgroundColor:'#f39380',
  title:L('tab_contribute'),
  window:contributeWin
});

var aboutWin = Ti.UI.createWindow({  
  url:'javascript/about.js',
  backgroundColor:'#f39380',
  title:L('about_page_title'),
  barColor:"#e62600"
});
var aboutTab = Ti.UI.createTab({  
  icon:'images/tabs/TAB_about.png',
  title:L('tab_about'),
  window:aboutWin
});

var mapWin = Ti.UI.createWindow({
	url:'javascript/map.js',
    backgroundColor:'#f39380',
	barColor:"#e62600",
	title:L('title_map')
});
var mapTab = Ti.UI.createTab({
	icon:'images/tabs/TAB_map.png',
	title:L('tab_map'),
	window:mapWin
});
tabGroup.addTab(newsTab);  
tabGroup.addTab(mapTab);
tabGroup.addTab(contributeTab);  
tabGroup.addTab(socialTab);
tabGroup.addTab(aboutTab); 

tabGroup.addEventListener('focus', function(e){
	if(e.index == 1){
		Ti.App.fireEvent('map_shelter_check');
	}
});

var disclaimerTabGroup = Ti.UI.createTabGroup();
var disclaimerWin = Ti.UI.createWindow({
  url:'javascript/disclaimer.js',
  backgroundColor:'#f39380',
  title:L('disclaimer_title'),
  barColor:'#e62600',
  backTitle:'Close',
  tabBarHidden:true
});
var disclaimerTab = Ti.UI.createTab({  
  title:L('disclaimer'),
  window:disclaimerWin
});
disclaimerTabGroup.addTab(disclaimerTab);

Ti.App.addEventListener('remove_disclaimer', function() {
  if (Ti.Platform.name == 'android') {
    disclaimerWin.close();
  } else {
    disclaimerTabGroup.close();
  }
  Ti.App.Properties.setBool('disclaimerViewed', true);
  tabGroup.open();
});

// ---------------------------------------------------------------
// Create custom loading indicator
// ---------------------------------------------------------------
var indWin = null;
var actInd = null;
function showIndicator(title) {<commit_msg>remove old disclaimer methods that are not longer needed<commit_after>if(Ti.Platform.osname == 'iphone' || Ti.Platform.osname == 'ipad') {
    Titanium.UI.iPhone.showStatusBar({'animated': false});
}

Titanium.include('javascript/application.js');
var indicatorShowing = false;

var tabGroup = Ti.UI.createTabGroup();
var newsWin = Ti.UI.createWindow({  
  url:'javascript/news.js',
  barColor:"#e62600",
  backgroundColor:(Ti.Platform.name == 'android') ? '#fff' :'#f39380',
  titleid:L('crisis_title')
});
var newsTab = Ti.UI.createTab({  
  icon:'images/tabs/TAB_news.png',
  title:L('tab_news'),
  window:newsWin
});

var socialWin = Ti.UI.createWindow({  
  url:'javascript/social.js',
  backgroundColor:'#f39380',
  title:L('social_page_title'),
  barColor:"#e62600"
});
var socialTab = Ti.UI.createTab({  
  icon:'images/tabs/TAB_social.png',
  title:L('social_tab_name'),
  window:socialWin
});

var contributeWin = Ti.UI.createWindow({  
  url:'javascript/contribute.js',
  backgroundColor:'#f39380',
  title:L('contribute_page_title'),
  barColor:"#e62600"
});
var contributeTab = Ti.UI.createTab({  
  icon:'images/tabs/TAB_contribute.png',
  backgroundColor:'#f39380',
  title:L('tab_contribute'),
  window:contributeWin
});

var aboutWin = Ti.UI.createWindow({  
  url:'javascript/about.js',
  backgroundColor:'#f39380',
  title:L('about_page_title'),
  barColor:"#e62600"
});
var aboutTab = Ti.UI.createTab({  
  icon:'images/tabs/TAB_about.png',
  title:L('tab_about'),
  window:aboutWin
});

var mapWin = Ti.UI.createWindow({
	url:'javascript/map.js',
    backgroundColor:'#f39380',
	barColor:"#e62600",
	title:L('title_map')
});
var mapTab = Ti.UI.createTab({
	icon:'images/tabs/TAB_map.png',
	title:L('tab_map'),
	window:mapWin
});
tabGroup.addTab(newsTab);  
tabGroup.addTab(mapTab);
tabGroup.addTab(contributeTab);  
tabGroup.addTab(socialTab);
tabGroup.addTab(aboutTab); 

tabGroup.addEventListener('focus', function(e){
	if(e.index == 1){
		Ti.App.fireEvent('map_shelter_check');
	}
});

var disclaimerWin = Ti.UI.createWindow({
  url:'javascript/disclaimer.js',
  backgroundColor:'#f39380',
  title:L('disclaimer_title'),
  barColor:'#e62600',
  backTitle:'Close',
  tabBarHidden:true
});


// ---------------------------------------------------------------
// Create custom loading indicator
// ---------------------------------------------------------------
var indWin = null;
var actInd = null;
function showIndicator(title) {
{'fraction_non_alphanumeric': 0.21726808993009636, 'fraction_numerical': 0.024938598148498015, 'mean_word_length': 4.12984496124031, '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': '2079030', 'n_tokens_mistral': 1932, 'n_tokens_neox': 1828, 'n_words': 254}