<commit_before>/*
 * 
 * UI5Strap
 *
 * Standard Frame Manager
 * 
 * Author: <NAME>
 * 
 * Copyright (c) 2013 <NAME>
 * 
 * http://pksoftware.de
 *
 * Get the latest version: https://github.com/pks5/ui5strap
 * 
 * Released under Apache2 license: http://www.apache.org/licenses/LICENSE-2.0.txt
 * 
 */

(function(){

	var _packageName = "com_mycompany.my_app",
		_moduleName = _packageName + ".modules.MyFrameController";

	jQuery.sap.declare(_moduleName);
	
	jQuery.sap.require("ui5strap.LibertyFrame");

	jQuery.sap.require("ui5strap.Sidebar");
	jQuery.sap.require("ui5strap.NavBar");
	jQuery.sap.require("ui5strap.Nav");
	jQuery.sap.require("ui5strap.ListNavItem");
	jQuery.sap.require("ui5strap.Link");
	jQuery.sap.require("ui5strap.ButtonGroup");
	jQuery.sap.require("ui5strap.Button");
	jQuery.sap.require("ui5strap.Icon");

	ui5strap.LibertyFrame.extend(_moduleName);

	var FrameController = com_mycompany.my_app.modules.MyFrameController,
		FrameControllerProto = FrameController.prototype,
		configuration = sap.ui.getCore().getConfiguration();

	/*
	*
	* PRIVATE METHODS
	*
	*/

	/*
	* Creates private properties for this object
	* @Private
	*/
	var _createPrivateProperties = function(_this){
		var navContainer = null;

		/*
		 * Creates the NavContainer if no instance has created yet, otherwise it returns the existing instance.
		 * @Singleton
		 * @Override
		 * @Public
		 */
		_this.getNavContainer = function(){
			if(null !== navContainer){
				return navContainer;
			}

			var frameOptions = _this.getConfig().getFrame();
			
			if(!("navContainer" in frameOptions)){
				throw new Error('Invalid frame options: no nav container defined.');
			}

			var navContainerModule = frameOptions.navContainer;

			jQuery.sap.require(navContainerModule);
			var NavContainerConstructor = jQuery.sap.getObject(navContainerModule);

			navContainer = new NavContainerConstructor();
			
			var navBar = new ui5strap.NavBar({ fluid : true, position : ui5strap.NavBarPosition.StaticTop });

			var brand = new ui5strap.Link();

			var toggle = new ui5strap.Button( { 
					align : ui5strap.Alignment.NavBarLeft
				} 
			);
			toggle.addContent(new ui5strap.Icon( { icon : 'bars', size : ui5strap.IconSize.Large } ));<commit_msg>sidebar<commit_after>/*
 * 
 * UI5Strap
 *
 * Standard Frame Manager
 * 
 * Author: <NAME>
 * 
 * Copyright (c) 2013 <NAME>
 * 
 * http://pksoftware.de
 *
 * Get the latest version: https://github.com/pks5/ui5strap
 * 
 * Released under Apache2 license: http://www.apache.org/licenses/LICENSE-2.0.txt
 * 
 */

(function(){

	var _packageName = "com_mycompany.my_app",
		_moduleName = _packageName + ".modules.MyFrameController";

	jQuery.sap.declare(_moduleName);
	
	jQuery.sap.require("ui5strap.LibertyFrame");

	jQuery.sap.require("ui5strap.Sidebar");
	jQuery.sap.require("ui5strap.NavBar");
	jQuery.sap.require("ui5strap.Nav");
	jQuery.sap.require("ui5strap.ListNavItem");
	jQuery.sap.require("ui5strap.Link");
	jQuery.sap.require("ui5strap.ButtonGroup");
	jQuery.sap.require("ui5strap.Button");
	jQuery.sap.require("ui5strap.Icon");

	ui5strap.LibertyFrame.extend(_moduleName);

	var FrameController = com_mycompany.my_app.modules.MyFrameController,
		FrameControllerProto = FrameController.prototype,
		configuration = sap.ui.getCore().getConfiguration();

	/*
	*
	* PRIVATE METHODS
	*
	*/

	/*
	* Creates private properties for this object
	* @Private
	*/
	var _createPrivateProperties = function(_this){
		var navContainer = null;

		/*
		 * Creates the NavContainer if no instance has created yet, otherwise it returns the existing instance.
		 * @Singleton
		 * @Override
		 * @Public
		 */
		_this.getNavContainer = function(){
			if(null !== navContainer){
				return navContainer;
			}

			var frameOptions = _this.getConfig().getFrame();
			
			if(!("navContainer" in frameOptions)){
				throw new Error('Invalid frame options: no nav container defined.');
			}

			var navContainerModule = frameOptions.navContainer;

			jQuery.sap.require(navContainerModule);
			var NavContainerConstructor = jQuery.sap.getObject(navContainerModule);

			navContainer = new NavContainerConstructor();
			
			var navBar = new ui5strap.NavBar({ fluid : true, position : ui5strap.NavBarPosition.StaticTop });

			var brand = new ui5strap.Link();

			var toggle = new ui5strap.Button( { 
					align : ui5strap.Alignment.NavBarLeft
				} 
			);
			toggle.addContent(new ui5strap.Icon( { icon : 'columns', size : ui5strap.IconSize.Large } ));
{'fraction_non_alphanumeric': 0.13279678068410464, 'fraction_numerical': 0.012072434607645875, 'mean_word_length': 4.066817667044168, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '1056793', 'n_tokens_mistral': 1575, 'n_tokens_neox': 1402, 'n_words': 270}