<commit_before>/*
 * Ext JS Library 2.1
 * 
 */

Ext.onReady(function(){
    Ext.QuickTips.init();

	// for toolTip
	Ext.menu.BaseItem.prototype.onRender = function(container){
		this.el = Ext.get(this.el);
		container.dom.appendChild(this.el.dom);
		if (this.tooltip) {
		this.el.dom.qtip = this.tooltip;
		}
	};
	
	// end Here


    // Menus can be prebuilt and passed by reference
    var menuHome = new Ext.menu.Menu({
        id: 'menuHome',
         items: [
			{
                text: 'User Profile',
                menu: {        // <-- submenu by nested config object
                    items: [
						{
                           text: 'Edit',
                    	   handler: editUserProfile
                       },
                       {
                           text: 'Change Password',
                           href :'ChangePassword.do?operation=edit&pageOf=pageOfChangePassword'
                       }
                    ]
                }
            },
            {
           		text: 'Assign Privileges',
                href:'AssignPrivilegesPage.do?pageOf=pageOfAssignPrivilegesPage'
            }
        ]
    });

    var menu = new Ext.menu.Menu({
        id: 'mainMenu',
        items: [
            {
                text: 'User',
				href:'User.do?operation=add&pageOf=pageOfUserAdmin',
				tooltip:'Add User',
                menu: {        // <-- submenu by nested config object
                    items: [
                        // stick any markup in a menu
                       {
                            text: 'Add',
							href:'User.do?operation=add&pageOf=pageOfUserAdmin'
                        }, {
                            text: 'Edit',
                            href:'SimpleQueryInterface.do?pageOf=pageOfUserAdmin&aliasName=User' 
                        }, {
                            text: 'Approve New Users',
                            href:'ApproveUserShow.do?pageNum=1' 
	                       }
                    ]
                }
            },
				{
                text: 'Institution',
				tooltip:'Add Institution',
				href:'Institution.do?operation=add&pageOf=pageOfInstitution',
                menu: {        // <-- submenu by nested config object
                    items: [
                        // stick any markup in a menu
                       {
                            text: 'Add',
							href:'Institution.do?operation=add&pageOf=pageOfInstitution'
                        }, {
                            text: 'Edit',
                            href:'SimpleQueryInterface.do?pageOf=pageOfInstitution&aliasName=Institution' 
                        } 
                    ]
                }
            },
				{
                text: 'Department',
				tooltip:'Add Department',
				href:'Department.do?operation=add&pageOf=pageOfDepartment',
                menu: {        // <-- submenu by nested config object
                    items: [
                        // stick any markup in a menu
                       {
                            text: 'Add',
							href:'Department.do?operation=add&pageOf=pageOfDepartment'
                        }, {
                            text: 'Edit',
                            href:'SimpleQueryInterface.do?pageOf=pageOfDepartment&aliasName=Department' 
                        } 
                    ]
                }
            },
				{
                text: 'Cancer Research Group',
				tooltip:'Add Cancer Research Group',
				href:'CancerResearchGroup.do?operation=add&pageOf=pageOfCancerResearchGroup',
                menu: {        // <-- submenu by nested config object
                    items: [
                        // stick any markup in a menu
                       {
                            text: 'Add',
							href:'CancerResearchGroup.do?operation=add&pageOf=pageOfCancerResearchGroup'
                        }, {
                            text: 'Edit',
                            href:'SimpleQueryInterface.do?pageOf=pageOfCancerResearchGroup&aliasName=CancerResearchGroup' 
                        }
                    ]
                }
            },
             
			  {
                text: 'Site',
				tooltip:'Add Site',
				href:'Site.do?operation=add&pageOf=pageOfSite',
                menu: {        // <-- submenu by nested config object
                    items: [
                        // stick any markup in a menu
                       {
                            text: 'Add',
                            href:'Site.do?operation=add&pageOf=pageOfSite'
                        }, {
                            text: 'Edit',
                            href:'SimpleQueryInterface.do?pageOf=pageOfSite&aliasName=Site' 
                        }
                    ]
                }
            },
			  {
                text: 'Storage Type',
				tooltip:'Add Storage Type',
				href:'StorageType.do?operation=add&pageOf=pageOfStorageType',
                menu: {        // <-- submenu by nested config object
                    items: [
                        // stick any markup in a menu
                       {
                            text: 'Add',
                             href:'StorageType.do?operation=add&pageOf=pageOfStorageType'
                        }, {
                            text: 'Edit',
                            href:'SimpleQueryInterface.do?pageOf=pageOfStorageType&aliasName=StorageType' 
                        }
                    ]
                }
            },
			{
                text: 'Storage Container',
				tooltip:'Add Storage Container',
				href:'StorageContainer.do?operation=add&pageOf=pageOfStorageContainer',
                menu: {        // <-- submenu by nested config object
                    items: [
                        // stick any markup in a menu
                       {
                            text: 'Add',
                            href:'StorageContainer.do?operation=add&pageOf=pageOfStorageContainer'
                        }, {
                            text: 'Edit',
                             href:'SimpleQueryInterface.do?pageOf=pageOfStorageContainer&aliasName=StorageContainer'
                        }, {
                            text: 'View Map',
                            
                            handler: showStorageContainerMap
                        }
                    ]
                }
            },
			{
                text: 'Specimen Array Type',
				tooltip:'Add Specimen Array Type',
				href:'SpecimenArrayType.do?operation=add&amp;pageOf=pageOfSpecimenArrayType',
                menu: {        // <-- submenu by nested config object
                    items: [
                        // stick any markup in a menu
                       {
                            text: 'Add',
                            href:'SpecimenArrayType.do?operation=add&amp;pageOf=pageOfSpecimenArrayType'
                        }, {
                            text: 'Edit',
                            href:'SimpleQueryInterface.do?pageOf=pageOfSpecimenArrayType&aliasName=SpecimenArrayType' 
                        }
                    ]
                }
            },
			{
                text: 'Biohazard',
				tooltip:'Add Biohazard',
				href:'Biohazard.do?operation=add&pageOf=pageOfBioHazard',
                menu: {        // <-- submenu by nested config object
                    items: [
                        // stick any markup in a menu
                       {
                            text: 'Add',
                            href:'Biohazard.do?operation=add&pageOf=pageOfBioHazard'
                        }, {
                            text: 'Edit',
                            href:'SimpleQueryInterface.do?pageOf=pageOfBioHazard&aliasName=Biohazard' 
                        }
                    ]
                }
            },
			{
                text: 'Collection Protocol',
				tooltip:'Add Collection Protocol',
//				href:'CollectionProtocol.do?operation=add&pageOf=pageOfCollectionProtocol',
					                href:'OpenCollectionProtocol.do?pageOf=pageOfmainCP&operation=add',
                menu: {        // <-- submenu by nested config object
                    items: [
                        // stick any markup in a menu
                       {
                            text: 'Add',
                            href:'OpenCollectionProtocol.do?pageOf=pageOfmainCP&operation=add'
                        }, {
                            text: 'Edit',
                            href:'SimpleQueryInterface.do?pageOf=pageOfCollectionProtocol&aliasName=CollectionProtocol' 
                        }
                    ]
                }
            },
			{
                text: 'Distribution Protocol',
				tooltip:'Add Distribution Protocol',
				href:'DistributionProtocol.do?operation=add&pageOf=pageOfDistributionProtocol',
                menu: {        // <-- submenu by nested config object
                    items: [
                        // stick any markup in a menu
                       {
                            text: 'Add',
                            href:'DistributionProtocol.do?operation=add&pageOf=pageOfDistributionProtocol'
                        }, {
                            text: 'Edit',
                            href:'SimpleQueryInterface.do?pageOf=pageOfDistributionProtocol&aliasName=DistributionProtocol' 
                        }
                    ]
                }
            },
			{
                text: 'Reported Problems',
				tooltip:'Shows Reported Problems',
                href:'ReportedProblemShow.do?pageNum=1'
            },
			{
                text: 'Local Extensions',
				tooltip:'Shows Local Extensions',
                href:'DefineAnnotationsInformationPage.do?operation=add',
                menu: {        // <-- submenu by nested config object
                    items: [
                        // stick any markup in a menu
                        {
                            text: 'Add',
                            href:'DefineAnnotationsInformationPage.do?operation=add'
                        }, {
                            text: 'Edit',
                            href:'DefineAnnotationsInformationPage.do?operation=edit'
                        }
                    ]
                }
            },
			{
                text: 'Conflicting Reports',
				tooltip:'Shows Conflicting Reports',
                href:'ConflictView.do?pageNum=1'
            }
		]
    });
            // For Bio Specimen Data

    var menu_bio = new Ext.menu.Menu({
        id: 'menu_bio',
        items: [
            {
                text: 'Collection Protocol Based View',
				tooltip:'Collection Protocol Based View',
                href:'CpBasedSearch.do'

            },
			{
                text: 'Participant',
				tooltip:'Add Participant',
				href:'Participant.do?operation=add&pageOf=pageOfParticipant&clearConsentSession=true',
                menu: {        // <-- submenu by nested config object
                    items: [
                        // stick any markup in a menu
                       {
                            text: 'Add',<commit_msg>Position of Menu Item is changed.<commit_after>/*
 * Ext JS Library 2.1
 * 
 */

Ext.onReady(function(){
    Ext.QuickTips.init();

	// for toolTip
	Ext.menu.BaseItem.prototype.onRender = function(container){
		this.el = Ext.get(this.el);
		container.dom.appendChild(this.el.dom);
		if (this.tooltip) {
		this.el.dom.qtip = this.tooltip;
		}
	};
	
	// end Here


    // Menus can be prebuilt and passed by reference
    var menuHome = new Ext.menu.Menu({
        id: 'menuHome',
         items: [
			{
                text: 'User Profile',
                menu: {        // <-- submenu by nested config object
                    items: [
						{
                           text: 'Edit',
                    	   handler: editUserProfile
                       },
                       {
                           text: 'Change Password',
                           href :'ChangePassword.do?operation=edit&pageOf=pageOfChangePassword'
                       }
                    ]
                }
            },
            {
           		text: 'Assign Privileges',
                href:'AssignPrivilegesPage.do?pageOf=pageOfAssignPrivilegesPage'
            }
        ]
    });

    var menu = new Ext.menu.Menu({
        id: 'mainMenu',
        items: [
            {
                text: 'User',
				href:'User.do?operation=add&pageOf=pageOfUserAdmin',
				tooltip:'Add User',
                menu: {        // <-- submenu by nested config object
                    items: [
                        // stick any markup in a menu
                       {
                            text: 'Add',
							href:'User.do?operation=add&pageOf=pageOfUserAdmin'
                        }, {
                            text: 'Edit',
                            href:'SimpleQueryInterface.do?pageOf=pageOfUserAdmin&aliasName=User' 
                        }, {
                            text: 'Approve New Users',
                            href:'ApproveUserShow.do?pageNum=1' 
	                       }
                    ]
                }
            },
				{
                text: 'Institution',
				tooltip:'Add Institution',
				href:'Institution.do?operation=add&pageOf=pageOfInstitution',
                menu: {        // <-- submenu by nested config object
                    items: [
                        // stick any markup in a menu
                       {
                            text: 'Add',
							href:'Institution.do?operation=add&pageOf=pageOfInstitution'
                        }, {
                            text: 'Edit',
                            href:'SimpleQueryInterface.do?pageOf=pageOfInstitution&aliasName=Institution' 
                        } 
                    ]
                }
            },
				{
                text: 'Department',
				tooltip:'Add Department',
				href:'Department.do?operation=add&pageOf=pageOfDepartment',
                menu: {        // <-- submenu by nested config object
                    items: [
                        // stick any markup in a menu
                       {
                            text: 'Add',
							href:'Department.do?operation=add&pageOf=pageOfDepartment'
                        }, {
                            text: 'Edit',
                            href:'SimpleQueryInterface.do?pageOf=pageOfDepartment&aliasName=Department' 
                        } 
                    ]
                }
            },
				{
                text: 'Cancer Research Group',
				tooltip:'Add Cancer Research Group',
				href:'CancerResearchGroup.do?operation=add&pageOf=pageOfCancerResearchGroup',
                menu: {        // <-- submenu by nested config object
                    items: [
                        // stick any markup in a menu
                       {
                            text: 'Add',
							href:'CancerResearchGroup.do?operation=add&pageOf=pageOfCancerResearchGroup'
                        }, {
                            text: 'Edit',
                            href:'SimpleQueryInterface.do?pageOf=pageOfCancerResearchGroup&aliasName=CancerResearchGroup' 
                        }
                    ]
                }
            },
             
			  {
                text: 'Site',
				tooltip:'Add Site',
				href:'Site.do?operation=add&pageOf=pageOfSite',
                menu: {        // <-- submenu by nested config object
                    items: [
                        // stick any markup in a menu
                       {
                            text: 'Add',
                            href:'Site.do?operation=add&pageOf=pageOfSite'
                        }, {
                            text: 'Edit',
                            href:'SimpleQueryInterface.do?pageOf=pageOfSite&aliasName=Site' 
                        }
                    ]
                }
            },
			  {
                text: 'Storage Type',
				tooltip:'Add Storage Type',
				href:'StorageType.do?operation=add&pageOf=pageOfStorageType',
                menu: {        // <-- submenu by nested config object
                    items: [
                        // stick any markup in a menu
                       {
                            text: 'Add',
                             href:'StorageType.do?operation=add&pageOf=pageOfStorageType'
                        }, {
                            text: 'Edit',
                            href:'SimpleQueryInterface.do?pageOf=pageOfStorageType&aliasName=StorageType' 
                        }
                    ]
                }
            },
			{
                text: 'Storage Container',
				tooltip:'Add Storage Container',
				href:'StorageContainer.do?operation=add&pageOf=pageOfStorageContainer',
                menu: {        // <-- submenu by nested config object
                    items: [
                        // stick any markup in a menu
                       {
                            text: 'Add',
                            href:'StorageContainer.do?operation=add&pageOf=pageOfStorageContainer'
                        }, {
                            text: 'Edit',
                             href:'SimpleQueryInterface.do?pageOf=pageOfStorageContainer&aliasName=StorageContainer'
                        }, {
                            text: 'View Map',
                            
                            handler: showStorageContainerMap
                        }
                    ]
                }
            },
			{
                text: 'Specimen Array Type',
				tooltip:'Add Specimen Array Type',
				href:'SpecimenArrayType.do?operation=add&amp;pageOf=pageOfSpecimenArrayType',
                menu: {        // <-- submenu by nested config object
                    items: [
                        // stick any markup in a menu
                       {
                            text: 'Add',
                            href:'SpecimenArrayType.do?operation=add&amp;pageOf=pageOfSpecimenArrayType'
                        }, {
                            text: 'Edit',
                            href:'SimpleQueryInterface.do?pageOf=pageOfSpecimenArrayType&aliasName=SpecimenArrayType' 
                        }
                    ]
                }
            },
			{
                text: 'Biohazard',
				tooltip:'Add Biohazard',
				href:'Biohazard.do?operation=add&pageOf=pageOfBioHazard',
                menu: {        // <-- submenu by nested config object
                    items: [
                        // stick any markup in a menu
                       {
                            text: 'Add',
                            href:'Biohazard.do?operation=add&pageOf=pageOfBioHazard'
                        }, {
                            text: 'Edit',
                            href:'SimpleQueryInterface.do?pageOf=pageOfBioHazard&aliasName=Biohazard' 
                        }
                    ]
                }
            },
			{
                text: 'Collection Protocol',
				tooltip:'Add Collection Protocol',
//				href:'CollectionProtocol.do?operation=add&pageOf=pageOfCollectionProtocol',
					                href:'OpenCollectionProtocol.do?pageOf=pageOfmainCP&operation=add',
                menu: {        // <-- submenu by nested config object
                    items: [
                        // stick any markup in a menu
                       {
                            text: 'Add',
                            href:'OpenCollectionProtocol.do?pageOf=pageOfmainCP&operation=add'
                        }, {
                            text: 'Edit',
                            href:'SimpleQueryInterface.do?pageOf=pageOfCollectionProtocol&aliasName=CollectionProtocol' 
                        }
                    ]
                }
            },
			{
                text: 'Distribution Protocol',
				tooltip:'Add Distribution Protocol',
				href:'DistributionProtocol.do?operation=add&pageOf=pageOfDistributionProtocol',
                menu: {        // <-- submenu by nested config object
                    items: [
                        // stick any markup in a menu
                       {
                            text: 'Add',
                            href:'DistributionProtocol.do?operation=add&pageOf=pageOfDistributionProtocol'
                        }, {
                            text: 'Edit',
                            href:'SimpleQueryInterface.do?pageOf=pageOfDistributionProtocol&aliasName=DistributionProtocol' 
                        }
                    ]
                }
            },
			{
                text: 'Local Extensions',
				tooltip:'Shows Local Extensions',
                href:'DefineAnnotationsInformationPage.do?operation=add',
                menu: {        // <-- submenu by nested config object
                    items: [
                        // stick any markup in a menu
                        {
                            text: 'Add',
                            href:'DefineAnnotationsInformationPage.do?operation=add'
                        }, {
                            text: 'Edit',
                            href:'DefineAnnotationsInformationPage.do?operation=edit'
                        }
                    ]
                }
            },
            {
                text: 'Reported Problems',
				tooltip:'Shows Reported Problems',
                href:'ReportedProblemShow.do?pageNum=1'
            },
			{
                text: 'Conflicting Reports',
				tooltip:'Shows Conflicting Reports',
                href:'ConflictView.do?pageNum=1'
            }
		]
    });
            // For Bio Specimen Data

    var menu_bio = new Ext.menu.Menu({
        id: 'menu_bio',
        items: [
            {
                text: 'Collection Protocol Based View',
				tooltip:'Collection Protocol Based View',
                href:'CpBasedSearch.do'

            },
			{
                text: 'Participant',
				tooltip:'Add Participant',
				href:'Participant.do?operation=add&pageOf=pageOfParticipant&clearConsentSession=true',
                menu: {        // <-- submenu by nested config object
                    items: [
                        // stick any markup in a menu
                       {
                            text: 'Add',
{'fraction_non_alphanumeric': 0.09002000444543232, 'fraction_numerical': 0.0004445432318292954, 'mean_word_length': 0.9809792180345192, 'pattern_counts': {'":': 0, '<': 31, '<?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': '1941678', 'n_tokens_mistral': 5730, 'n_tokens_neox': 4973, 'n_words': 878}