<commit_before>function ApplicationTabGroup() {
	global = require('ui/common/globals');
	
	//create module instance
	var self = Ti.UI.createTabGroup(
		{
			exitOnClose: true
		}
	);
	
	//create app tabs
	var win1 = require('ui/handheld/HomeWindow')('Home'),
		win2 = require('ui/handheld/DiscoverWindow')('Discover'),//new Window(L('Discover')),
		win3 = require('ui/handheld/CheckInsWindow')('Check-In'),//new Window(L('Check-Ins'))
		win4 = require('ui/handheld/FriendsWindow')('Friends'),//new Window(L('Friends'))
		win5 = require('ui/handheld/ProfileWindow')('Profile')//new Window(L('Profile'));
	
	var homeImage = Ti.Platform.osname == 'android' ? '/images/android_home_tab.png' : '/images/home_tab_reg.png';
	var tab1 = Ti.UI.createTab({
		title: 'Home',
		icon: homeImage,
		backgroundColor: global.colors.dark,
		window: win1
	});
	win1.containingTab = tab1;
	
	var discoverImage = Ti.Platform.osname == 'android' ? '/images/android_discover_tab.png' : '/images/discover_tab.png';
	var tab2 = Ti.UI.createTab({
		title: 'Discover',
		icon: discoverImage,
		backgroundColor: global.colors.dark,
		window: win2
	});
	win2.containingTab = tab2;
	
	var checkinImage = Ti.Platform.osname == 'android' ? '/images/android_checkin_tab.png' : '/images/check-in_tab.png';
	var tab3 = Ti.UI.createTab({
		title: 'Check-In',
		icon: checkinImage,
		backgroundColor: global.colors.dark,
		window: win3
	});
	win3.containingTab = tab3;
	
	var friendsImage = Ti.Platform.osname == 'android' ? '/images/android_friends_tab.png' : '/images/friends_tab_reg.png';
	var tab4 = Ti.UI.createTab({
		title: 'Friends',
		icon: friendsImage,
		backgroundColor: global.colors.dark,
		window: win4
	});
	win4.containingTab = tab4;
	
	var profileImage = Ti.Platform.osname == 'android' ? '/images/android_profile_tab.png' : '/images/profile_tab.png';
	var tab5 = Ti.UI.createTab({
		title: 'Profile',
		icon: profileImage,
		backgroundColor: global.colors.dark,
		window: win5
	});
	win5.containingTab = tab5;
	
	self.addTab(tab1);
	self.addTab(tab2);
	self.addTab(tab3);
	self.addTab(tab4);
	self.addTab(tab5);
	
	return self;
};

module.exports = ApplicationTabGroup;
<commit_msg>Friends Tab fixed<commit_after>function ApplicationTabGroup() {
	global = require('ui/common/globals');
	
	//create module instance
	var self = Ti.UI.createTabGroup(
		{
			exitOnClose: true
		}
	);
	
	//create app tabs
	var win1 = require('ui/handheld/HomeWindow')('Home'),
		win2 = require('ui/handheld/DiscoverWindow')('Discover'),//new Window(L('Discover')),
		win3 = require('ui/handheld/CheckInsWindow')('Check-In'),//new Window(L('Check-Ins'))
		win4 = require('ui/handheld/FriendsWindow')('Friends'),//new Window(L('Friends'))
		win5 = require('ui/handheld/ProfileWindow')('Profile')//new Window(L('Profile'));
	
	var homeImage = Ti.Platform.osname == 'android' ? '/images/android_home_tab.png' : '/images/home_tab_reg.png';
	var tab1 = Ti.UI.createTab({
		title: 'Home',
		icon: homeImage,
		backgroundColor: global.colors.dark,
		window: win1
	});
	win1.containingTab = tab1;
	
	var discoverImage = Ti.Platform.osname == 'android' ? '/images/android_discover_tab.png' : '/images/discover_tab.png';
	var tab2 = Ti.UI.createTab({
		title: 'Discover',
		icon: discoverImage,
		backgroundColor: global.colors.dark,
		window: win2
	});
	win2.containingTab = tab2;
	
	var checkinImage = Ti.Platform.osname == 'android' ? '/images/android_checkin_tab.png' : '/images/check-in_tab.png';
	var tab3 = Ti.UI.createTab({
		title: 'Check-In',
		icon: checkinImage,
		backgroundColor: global.colors.dark,
		window: win3
	});
	win3.containingTab = tab3;
	
	var friendsImage = Ti.Platform.osname == 'android' ? '/images/android_friends_tab.png' : '/images/friends_tab.png';
	var tab4 = Ti.UI.createTab({
		title: 'Friends',
		icon: friendsImage,
		backgroundColor: global.colors.dark,
		window: win4
	});
	win4.containingTab = tab4;
	
	var profileImage = Ti.Platform.osname == 'android' ? '/images/android_profile_tab.png' : '/images/profile_tab.png';
	var tab5 = Ti.UI.createTab({
		title: 'Profile',
		icon: profileImage,
		backgroundColor: global.colors.dark,
		window: win5
	});
	win5.containingTab = tab5;
	
	self.addTab(tab1);
	self.addTab(tab2);
	self.addTab(tab3);
	self.addTab(tab4);
	self.addTab(tab5);
	
	return self;
};

module.exports = ApplicationTabGroup;

{'fraction_non_alphanumeric': 0.16628175519630484, 'fraction_numerical': 0.013856812933025405, 'mean_word_length': 4.545454545454546, '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': '357494', 'n_tokens_mistral': 1642, 'n_tokens_neox': 1533, 'n_words': 270}