<commit_before>// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');

Ti.API.info( "Platform: " + Titanium.Platform.name );

/////////////////////////////////////////////
// Global Variables
/////////////////////////////////////////////
var site_url = 'http://wedvite.us/';
var idKey = '';

// Arbitrary Windows
var arbitraryWinID = '';
var textAboutUs = '';
var textWeddingParty = '';

/////////////////////////////////////////////
// Creating All Windows
/////////////////////////////////////////////
var windowLogin = Titanium.UI.createWindow({
    title:'User Authentication',
    url:'main_windows/login.js',
    exitOnClose: true
});

var windowHome = Titanium.UI.createWindow({
    title:'Home Page',
    url:'main_windows/home.js'
});

var windowEventInfo = Titanium.UI.createWindow({
    title:'Event Info',
    url:'main_windows/eventInfo.js'
});

var windowMap = Titanium.UI.createWindow({
    title:'Map',
    url:'main_windows/map.js'
});

var mapview = Titanium.Map.createView({
        top:40,
        mapType: Titanium.Map.STANDARD_TYPE,
        animate:true,
        regionFit:true,
        userLocation:false
});

var windowArbitrary = Titanium.UI.createWindow({
    title:'Arbitrary',
    url:'main_windows/arbitrary.js'
});

// This window just displays a picture
var windowFullPhoto = Titanium.UI.createWindow({
    title:'Full PHoto',
    url:'main_windows/photoFullScreen.js'
});

var windowPhotos = Titanium.UI.createWindow({
    title:'Guests Photos',
    url:'main_windows/photos.js'
});

var windowGiftRegistry = Titanium.UI.createWindow({
    title:'Gift Registry',
    url:'main_windows/giftRegistry.js'
});

var windowLBS = Titanium.UI.createWindow({
    title:'Location Based Search',
    url:'main_windows/lbs.js'
});

var windowWeddingComments = Titanium.UI.createWindow({
    title:'Wedding Comments',
    url:'main_windows/weddingComments.js'
});

/////////////////////////////////////////////
// Passing Variables to Each Window
/////////////////////////////////////////////

// Login Window
windowLogin.windowHome = windowHome;
windowLogin.idkey = idKey;
windowLogin.site_url = site_url;

// Home Screen Window
windowHome.windowLogin = windowLogin;
windowHome.windowEventInfo = windowEventInfo;
windowHome.windowMap = windowMap;
windowHome.mapview = mapview;
windowHome.idKey = idKey;
windowHome.site_url = site_url;
windowHome.windowArbitrary = windowArbitrary;
windowHome.windowFullPhoto = windowFullPhoto;
windowHome.windowPhotos = windowPhotos;
windowHome.windowGiftRegistry = windowGiftRegistry;
windowHome.windowLBS = windowLBS;
windowHome.windowWeddingComments = windowWeddingComments;

// Event Info Window
windowEventInfo.windowHome = windowHome;
windowEventInfo.idKey = idKey;
windowEventInfo.site_url = site_url;

// Map Window
windowMap.windowHome = windowHome;
windowMap.mapview = mapview;
windowMap.idKey = idKey;
windowMap.site_url = site_url;

// Arbitrary Window
windowArbitrary.windowHome = windowHome;

// Full Photo Window
windowFullPhoto.windowHome = windowHome;
windowFullPhoto.windowPhotos = windowPhotos;

// Photos
windowPhotos.windowHome = windowHome;
windowPhotos.windowFullPhoto = windowFullPhoto;
windowPhotos.site_url = site_url;
windowPhotos.idKey = idKey;

// Gift Registry
windowGiftRegistry.windowHome = windowHome;
windowGiftRegistry.idKey = idKey;

// LBS 
windowLBS.windowHome = windowHome;<commit_msg>needed to pass the site_url to giftRegistry<commit_after>// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');

Ti.API.info( "Platform: " + Titanium.Platform.name );

/////////////////////////////////////////////
// Global Variables
/////////////////////////////////////////////
var site_url = 'http://wedvite.us/';
var idKey = '';

// Arbitrary Windows
var arbitraryWinID = '';
var textAboutUs = '';
var textWeddingParty = '';

/////////////////////////////////////////////
// Creating All Windows
/////////////////////////////////////////////
var windowLogin = Titanium.UI.createWindow({
    title:'User Authentication',
    url:'main_windows/login.js',
    exitOnClose: true
});

var windowHome = Titanium.UI.createWindow({
    title:'Home Page',
    url:'main_windows/home.js'
});

var windowEventInfo = Titanium.UI.createWindow({
    title:'Event Info',
    url:'main_windows/eventInfo.js'
});

var windowMap = Titanium.UI.createWindow({
    title:'Map',
    url:'main_windows/map.js'
});

var mapview = Titanium.Map.createView({
        top:40,
        mapType: Titanium.Map.STANDARD_TYPE,
        animate:true,
        regionFit:true,
        userLocation:false
});

var windowArbitrary = Titanium.UI.createWindow({
    title:'Arbitrary',
    url:'main_windows/arbitrary.js'
});

// This window just displays a picture
var windowFullPhoto = Titanium.UI.createWindow({
    title:'Full PHoto',
    url:'main_windows/photoFullScreen.js'
});

var windowPhotos = Titanium.UI.createWindow({
    title:'Guests Photos',
    url:'main_windows/photos.js'
});

var windowGiftRegistry = Titanium.UI.createWindow({
    title:'Gift Registry',
    url:'main_windows/giftRegistry.js'
});

var windowLBS = Titanium.UI.createWindow({
    title:'Location Based Search',
    url:'main_windows/lbs.js'
});

var windowWeddingComments = Titanium.UI.createWindow({
    title:'Wedding Comments',
    url:'main_windows/weddingComments.js'
});

/////////////////////////////////////////////
// Passing Variables to Each Window
/////////////////////////////////////////////

// Login Window
windowLogin.windowHome = windowHome;
windowLogin.idkey = idKey;
windowLogin.site_url = site_url;

// Home Screen Window
windowHome.windowLogin = windowLogin;
windowHome.windowEventInfo = windowEventInfo;
windowHome.windowMap = windowMap;
windowHome.mapview = mapview;
windowHome.idKey = idKey;
windowHome.site_url = site_url;
windowHome.windowArbitrary = windowArbitrary;
windowHome.windowFullPhoto = windowFullPhoto;
windowHome.windowPhotos = windowPhotos;
windowHome.windowGiftRegistry = windowGiftRegistry;
windowHome.windowLBS = windowLBS;
windowHome.windowWeddingComments = windowWeddingComments;

// Event Info Window
windowEventInfo.windowHome = windowHome;
windowEventInfo.idKey = idKey;
windowEventInfo.site_url = site_url;

// Map Window
windowMap.windowHome = windowHome;
windowMap.mapview = mapview;
windowMap.idKey = idKey;
windowMap.site_url = site_url;

// Arbitrary Window
windowArbitrary.windowHome = windowHome;

// Full Photo Window
windowFullPhoto.windowHome = windowHome;
windowFullPhoto.windowPhotos = windowPhotos;

// Photos
windowPhotos.windowHome = windowHome;
windowPhotos.windowFullPhoto = windowFullPhoto;
windowPhotos.site_url = site_url;
windowPhotos.idKey = idKey;

// Gift Registry
windowGiftRegistry.site_url = site_url;
windowGiftRegistry.windowHome = windowHome;
windowGiftRegistry.idKey = idKey;

// LBS 
windowLBS.windowHome = windowHome;
{'fraction_non_alphanumeric': 0.1825850729196454, 'fraction_numerical': 0.0014297969688304261, 'mean_word_length': 3.2113184828416617, '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': '6368847', 'n_tokens_mistral': 2129, 'n_tokens_neox': 2024, 'n_words': 415}