<commit_before>// this sets the background color of the master UIView (when there are no windows/tab groups on it)
//var myData = require('data');

var myData2 = require('display');
Titanium.UI.setBackgroundColor('#000');

// create tab group
var tabGroup = Titanium.UI.createTabGroup();

// create base UI tab and root window
var win = Titanium.UI.createWindow({  
    title: "Main Tab",
    backgroundColor:'#fff'
});

var tab = Titanium.UI.createTab({  
    icon:'KS_nav_views.png',
    title:"Main",
    window:win
});

var label = Titanium.UI.createLabel({
	color:'#999',
	text:"Stand-in Main Window",
	font:{fontSize:20,fontFamily:'Helvetica Neue'},
	textAlign:'center',
	width:'auto'
});

var tab2 = Titanium.UI.createTab({  
    icon:'KS_nav_views.png',
    title:"Data",
    window:myData2.display
});

/*
var label2 = Titanium.UI.createLabel({
	color:'#999',
	text:"",
	font:{fontSize:20,fontFamily:'Helvetica Neue'},
	textAlign:'center',
	width:'auto'
});
*/

win.add(label);
tabGroup.addTab(tab);  
tabGroup.addTab(tab2);

// open tab group
tabGroup.open();<commit_msg>Added 2 text fields and vertical layout for window.<commit_after>// this sets the background color of the master UIView (when there are no windows/tab groups on it)
//var myData = require('data');

var myData2 = require('display');
Titanium.UI.setBackgroundColor('#000');

// create tab group
var tabGroup = Titanium.UI.createTabGroup();

// create base UI tab and root window
var win = Titanium.UI.createWindow({  
    title: "Main Tab",
    backgroundColor:'#fff',
    layout: 'vertical'
});

var tab = Titanium.UI.createTab({  
    icon:'KS_nav_views.png',
    title:"Main",
    window:win
});

var charName = Titanium.App.Properties.getString("foo");

var tf1 = Titanium.UI.createTextField({
	value:charName,
	width:250,
	height:40,
	top:10,
	borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED,
	autocorrect:false
});

var charServ = Titanium.App.Properties.getString("foo");

var tf2 = Titanium.UI.createTextField({
	value:charServ,
	width:250,
	height:40,
	top:10,
	borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED,
	autocorrect:false
});

var btn = Titanium.UI.createButton({
	title: 'Submit',
	top: 10,
	width: 250,
	height: 40
});

var tab2 = Titanium.UI.createTab({  
    icon:'KS_nav_views.png',
    title:"Data",
    window:myData2.display
});

win.add(tf1);
win.add(tf2);
win.add(btn);
tabGroup.addTab(tab);  
tabGroup.addTab(tab2);

// open tab group
tabGroup.open();
{'fraction_non_alphanumeric': 0.15556458164094233, 'fraction_numerical': 0.020714865962632008, 'mean_word_length': 4.534831460674157, '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': '3898867', 'n_tokens_mistral': 914, 'n_tokens_neox': 870, 'n_words': 194}