<commit_before>var navigation = Alloy.createController("navigation");
Alloy.Globals.navigation = navigation;
var conf = {};

/* -- Bootstrap your application below this line -- */

conf = {
	// The mainWindow is the window which the navigation controller will act upon. This means that you can
	// utilize several instances of the navigation controller if you'd prefer though only one is standard.
	// If the mainWindow isn't set a new one will be created which will be used.
	mainWindow: undefined,
	// The first controller which will be opened when we run navigation.init() and the one opened
	// when calling navigation.home
	index: "welcome", 
	// indexOptions holds options which will be provided when opening the home/default/welcome/index view.
	// It holds the options required for the navigation.open method, the transition which will be
	// executed and all options you yourself want connected to the opened view. This means that
	// you can set an unlimited number of custom properties which will be tied to this view in the
	// history stack - as long as you don't overwrite properties which are required for the navigation module
	indexOptions: {
		transition: 'none', // The transition used for opening the view
		identifier: 'index', // An identifier which you can specify to keep track of your controllers - refer to demo_menu.js
		closeMenu: true, // A boolean deciding whether the menu should be closed before this view/controller is opened
	},
	// How many steps of history to save, might be useful if the application is requiring a lot of memory.
	// Another solution is to call navigation.clearHistory on demand. 0 equals that there is no limit and
	// no history will be purged.
	historyLimit: 20, 
	// Default transitions and related options for opening and closing a view, transition and duration must be set
	// but transitionColor is only used in the "fade"-transition.
	defaultOpenTransition: {transition: 'none', duration: 150, transitionColor: "#fff"}, 
	defaultBackTransition: {transition: 'none', duration: 150, transitionColor: "#000"},
	// Controller name of the menu driver - can be null if the menu is handled differently, e.g. purely from
	// the context menu on Android
	menuDriver: 'menu', 
	// The default value for the closeMenu option when opening a view
	defaultCloseMenu: true, 
	
	// ANDROID SPECIFIC
	// Boolean setting saying if the hardware menu button should trigger navigation.toggle
	bindMenu: true,
	// The following decides whether the user should get a warning notification saying that the user has
	// reached the end of the history stack and that the next time the user presses back the app closes.
	confirmOnExit: true, 
};

// It's also appropriate to set platform specific settings here in the bootstrap file
if (OS_IOS) {
	conf.defaultOpenTransition: {transition: 'slideInFromRight', duration: 150, transitionColor: "#fff"}, 
	conf.defaultBackTransition: {transition: 'slideInFromLeft', duration: 150, transitionColor: "#000"},
}

/* -- Bootstrap your application above this line -- */

navigation.init(conf);<commit_msg>Fixed error in code<commit_after>var navigation = Alloy.createController("navigation");
Alloy.Globals.navigation = navigation;
var conf = {};

/* -- Bootstrap your application below this line -- */

conf = {
	// The mainWindow is the window which the navigation controller will act upon. This means that you can
	// utilize several instances of the navigation controller if you'd prefer though only one is standard.
	// If the mainWindow isn't set a new one will be created which will be used.
	mainWindow: undefined,
	// The first controller which will be opened when we run navigation.init() and the one opened
	// when calling navigation.home
	index: "welcome", 
	// indexOptions holds options which will be provided when opening the home/default/welcome/index view.
	// It holds the options required for the navigation.open method, the transition which will be
	// executed and all options you yourself want connected to the opened view. This means that
	// you can set an unlimited number of custom properties which will be tied to this view in the
	// history stack - as long as you don't overwrite properties which are required for the navigation module
	indexOptions: {
		transition: 'none', // The transition used for opening the view
		identifier: 'index', // An identifier which you can specify to keep track of your controllers - refer to demo_menu.js
		closeMenu: true, // A boolean deciding whether the menu should be closed before this view/controller is opened
	},
	// How many steps of history to save, might be useful if the application is requiring a lot of memory.
	// Another solution is to call navigation.clearHistory on demand. 0 equals that there is no limit and
	// no history will be purged.
	historyLimit: 20, 
	// Default transitions and related options for opening and closing a view, transition and duration must be set
	// but transitionColor is only used in the "fade"-transition.
	defaultOpenTransition: {transition: 'none', duration: 150, transitionColor: "#fff"}, 
	defaultBackTransition: {transition: 'none', duration: 150, transitionColor: "#000"},
	// Controller name of the menu driver - can be null if the menu is handled differently, e.g. purely from
	// the context menu on Android
	menuDriver: 'menu', 
	// The default value for the closeMenu option when opening a view
	defaultCloseMenu: true, 
	
	// ANDROID SPECIFIC
	// Boolean setting saying if the hardware menu button should trigger navigation.toggle
	bindMenu: true,
	// The following decides whether the user should get a warning notification saying that the user has
	// reached the end of the history stack and that the next time the user presses back the app closes.
	confirmOnExit: true, 
};

// It's also appropriate to set platform specific settings here in the bootstrap file
if (OS_IOS) {
	conf.defaultOpenTransition = {transition: 'slideInFromRight', duration: 150, transitionColor: "#fff"}; 
	conf.defaultBackTransition = {transition: 'slideInFromLeft', duration: 150, transitionColor: "#000"};
}

/* -- Bootstrap your application above this line -- */

navigation.init(conf);
{'fraction_non_alphanumeric': 0.07328145265888457, 'fraction_numerical': 0.006809338521400778, 'mean_word_length': 4.064860426929393, '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': '2097821', 'n_tokens_mistral': 1572, 'n_tokens_neox': 1481, 'n_words': 818}