auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void attachStorageDomainToDataCenter ( org.ovirt.engine.core.compat.Guid storageDomainId , org.ovirt.engine.core.compat.Guid storagePoolId ) { org.ovirt.engine.core.bll.storage.connection.CINDERStorageHelper cinderStorageHelper = new org.ovirt.engine.core.bll.storage.connection.CINDERStorageHelper ( ) ; cinderStorageHelper.attachCinderDomainToPool ( storageDomainId , storagePoolId ) ; cinderStorageHelper.activateCinderDomain ( storageDomainId , storagePoolId ) ; }

Target:
protected void attachStorageDomainToDataCenter ( org.ovirt.engine.core.compat.Guid storageDomainId , org.ovirt.engine.core.compat.Guid storagePoolId ) { org.ovirt.engine.core.bll.storage.connection.CINDERStorageHelper cinderStorageHelper = org.ovirt.engine.core.di.Injector.get ( org.ovirt.engine.core.bll.storage.connection.CINDERStorageHelper.class ) ; cinderStorageHelper.attachCinderDomainToPool ( storageDomainId , storagePoolId ) ; cinderStorageHelper.activateCinderDomain ( storageDomainId , storagePoolId ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getId ( ) { return sessionId ; }

Target:
public org.ovirt.engine.core.compat.Guid getSessionId ( ) { return sessionId ; }
Source:
public void setcpu_sys ( java.lang.Double cpuSys ) { this . cpu_sys = java.math.BigDecimal.valueOf ( cpuSys ) ; }

Target:
public void setCpuSys ( java.lang.Double cpuSys ) { this . cpuSys = java.math.BigDecimal.valueOf ( cpuSys ) ; }
Source:
public void massUpdateStatisticsForVds ( java.util.Collection < org.ovirt.engine.core.common.businessentities.VdsNetworkStatistics > statistics ) { for ( org.ovirt.engine.core.common.businessentities.VdsNetworkStatistics stats : statistics ) { update ( stats ) ; } }

Target:
public void massUpdateStatisticsForVds ( java.util.Collection < org.ovirt.engine.core.common.businessentities.network.VdsNetworkStatistics > statistics ) { for ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkStatistics stats : statistics ) { update ( stats ) ; } }
Source:
protected boolean isImageProvided ( ) { return ! ( org.ovirt.engine.core.compat.Guid.isNullOrEmpty ( org.ovirt.engine.core.bll.storage.disk.image.TransferImageCommand.getParameters ( ) . getImageId ( ) ) ) ; }

Target:
protected boolean isImageProvided ( ) { return ( ! ( org.ovirt.engine.core.compat.Guid.isNullOrEmpty ( org.ovirt.engine.core.bll.storage.disk.image.TransferImageCommand.getParameters ( ) . getImageId ( ) ) ) ) || ( ! ( org.ovirt.engine.core.compat.Guid.isNullOrEmpty ( org.ovirt.engine.core.bll.storage.disk.image.TransferImageCommand.getParameters ( ) . getImageGroupID ( ) ) ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VmNumaNode getVmNumaNode ( ) { return vmNumaNode ; }

Target:
public java.lang.Integer getIndex ( ) { return vmNumaNode.getIndex ( ) ; }
Source:
private void logFailureToGetVms ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase logable = org.ovirt.engine.core.di.Injector.injectMembers ( new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( ) ) ; logable.addCustomValue ( "URL" , org.ovirt.engine.core.bll.GetVmsFromExternalProviderQuery.getParameters ( ) . getUrl ( ) ) ; auditLogDirector.log ( logable , AuditLogType.IMPORTEXPORT_GET_EXTERNAL_VMS_INFO_FAILED ) ; }

Target:
private void logFailureToGetVms ( ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogable logable = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableImpl ( ) ; logable.addCustomValue ( "URL" , org.ovirt.engine.core.bll.GetVmsFromExternalProviderQuery.getParameters ( ) . getUrl ( ) ) ; auditLogDirector.log ( logable , AuditLogType.IMPORTEXPORT_GET_EXTERNAL_VMS_INFO_FAILED ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.VdsProtocol getProtocol ( ) { return vdsStatic.getProtocol ( ) ; }

Target:
public boolean isHostedEngineDeployed ( ) { if ( ( isHostedEngineConfigured ( ) ) || ( ( ( getHighlyAvailableScore ( ) ) > 0 ) && ( getHighlyAvailableIsActive ( ) ) ) ) { return true ; } return false ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.Network getNetwork ( ) { if ( ( network ) == null ) { network = org.ovirt.engine.core.bll.network.vm.VnicProfileCommandBase.getNetworkDAO ( ) . get ( getVnicProfile ( ) . getNetworkId ( ) ) ; } return network ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.Network getNetwork ( ) { if ( ( network ) == null ) { network = org.ovirt.engine.core.bll.network.vm.VnicProfileCommandBase.getNetworkDao ( ) . get ( getVnicProfile ( ) . getNetworkId ( ) ) ; } return network ; }
Source:
public void testGetAllForVmPools ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.tags > result = dao.getAllForVmPools ( vmPool.toString ( ) ) ; assertNotNull ( result ) ; assertFalse ( result.isEmpty ( ) ) ; }

Target:
public void testGetAllForVmPools ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.tags > result = dao.getAllForVmPools ( vmPool.toString ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertFalse ( result.isEmpty ( ) ) ; }
Source:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetTimeZonesQuery.getQueryReturnValue ( ) . setReturnValue ( org.ovirt.engine.core.bll.GetTimeZonesQuery.timezones ) ; }

Target:
protected void executeQueryCommand ( ) { org.ovirt.engine.core.bll.GetTimeZonesQuery.getQueryReturnValue ( ) . setReturnValue ( ( org.ovirt.engine.core.bll.GetTimeZonesQuery.getParameters ( ) . isWindowsOS ( ) ? org.ovirt.engine.core.bll.GetTimeZonesQuery.windowsTimezones : org.ovirt.engine.core.bll.GetTimeZonesQuery.javaTimezones ) ) ; }
Source:
public void testInterfaceIsValidSlaveWhenInterfaceIsBond ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface vdsNetworkInterface = createVdsNetworkInterfaceWithName ( ) ; vdsNetworkInterface.setBonded ( true ) ; org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.HostInterfaceValidator ( vdsNetworkInterface ) . interfaceIsValidSlave ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_INTERFACE_BOND_OR_VLAN_CANNOT_BE_SLAVE ) ) ; }

Target:
public void testInterfaceIsValidSlaveWhenInterfaceIsBond ( ) throws java.lang.Exception { org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface vdsNetworkInterface = createVdsNetworkInterfaceWithName ( ) ; vdsNetworkInterface.setBonded ( true ) ; org.junit.Assert.assertThat ( new org.ovirt.engine.core.bll.validator.HostInterfaceValidator ( vdsNetworkInterface ) . interfaceIsValidSlave ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( EngineMessage.NETWORK_INTERFACE_BOND_OR_VLAN_CANNOT_BE_SLAVE ) ) ; }
Source:
public void setIsNew ( boolean value ) { privateIsNew = value ; }

Target:
private void setLinked ( org.ovirt.engine.ui.uicommonweb.models.EntityModel value ) { linked = value ; }
Source:
public static void GetManagementNetworkName ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.GetConfigFromCache ( new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.ManagementNetwork , org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultConfigurationVersion ( ) ) , aQuery ) ; }

Target:
public static void getManagementNetworkName ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getConfigFromCache ( new org.ovirt.engine.core.common.queries.GetConfigurationValueParameters ( org.ovirt.engine.core.common.queries.ConfigurationValues.ManagementNetwork , org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.getDefaultConfigurationVersion ( ) ) , aQuery ) ; }
Source:
public void networkCreated ( org.ovirt.engine.core.compat.Guid vmId ) { getWindow ( ) . stopProgress ( ) ; cancel ( ) ; setGuideContext ( vmId ) ; updateActionAvailability ( ) ; getGuideCommand ( ) . execute ( ) ; }

Target:
public void vnicCreated ( org.ovirt.engine.core.compat.Guid vmId ) { getWindow ( ) . stopProgress ( ) ; cancel ( ) ; setGuideContext ( vmId ) ; updateActionAvailability ( ) ; getGuideCommand ( ) . execute ( ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getModel ( ) . getRemoveCommand ( ) ; }

Target:
public void initTable ( ) { }
Source:
public java.lang.String eval ( org.ovirt.engine.core.common.businessentities.LUNs a ) { return a.getLUN_id ( ) ; }

Target:
public java.lang.String eval ( org.ovirt.engine.core.common.businessentities.storage.LUNs a ) { return a.getLUN_id ( ) ; }
Source:
public void setdisplay_ip ( java.lang.String value ) { this . mVmDynamic.setdisplay_ip ( value ) ; }

Target:
public void setDisplayIp ( java.lang.String value ) { this . vmDynamic.setdisplay_ip ( value ) ; }
Source:
private boolean acquireLock ( org.ovirt.engine.core.utils.lock.EngineLock lock ) { return org.ovirt.engine.core.utils.lock.LockManagerFactory.getLockManager ( ) . acquireLock ( lock ) . getFirst ( ) ; }

Target:
private void releaseLock ( org.ovirt.engine.core.utils.lock.EngineLock lock ) { lockManager.releaseLock ( lock ) ; }
Source:
protected org.ovirt.engine.api.model.Creation populate ( org.ovirt.engine.api.model.Creation model , java.util.List entity ) { model.setId ( asString ( ids ) ) ; if ( model.isSetFault ( ) ) { setReason ( model.getFault ( ) ) ; } return model ; }

Target:
protected org.ovirt.engine.api.model.Creation deprecatedPopulate ( org.ovirt.engine.api.model.Creation model , java.util.List entity ) { model.setId ( asString ( ids ) ) ; if ( model.isSetFault ( ) ) { setReason ( model.getFault ( ) ) ; } return model ; }
Source:
public javax.ws.rs.core.Response undelete ( org.ovirt.engine.api.model.Action action ) { return performAction ( ActionType.DisplayAllAuditLogAlerts , new org.ovirt.engine.core.common.action.VdcActionParametersBase ( ) , action , false ) ; }

Target:
public javax.ws.rs.core.Response undelete ( org.ovirt.engine.api.model.Action action ) { return performAction ( ActionType.DisplayAllAuditLogAlerts , new org.ovirt.engine.core.common.action.ActionParametersBase ( ) , action , false ) ; }
Source:
com.google.gwt.http.client.RequestBuilder createRequest ( java.lang.String engineAuthToken ) { com.google.gwt.http.client.RequestBuilder builder = createRequest ( ) ; java.lang.String preferValue = builder.getHeader ( org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.PREFER_HEADER ) ; builder.setHeader ( org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.PREFER_HEADER , ( preferValue + ", new-auth" ) ) ; builder.setHeader ( org.ovirt.engine.ui.webadmin.plugin.restapi.RestApiSessionManager.ENGINE_AUTH_TOKEN_HEADER , engineAuthToken ) ; return builder ; }

Target:
com.google.gwt.http.client.RequestBuilder createRequest ( java.lang.String engineAuthToken ) { com.google.gwt.http.client.RequestBuilder builder = createRequest ( ) ; java.lang.String preferValue = builder.getHeader ( org.ovirt.engine.ui.common.restapi.RestApiSessionManager.PREFER_HEADER ) ; builder.setHeader ( org.ovirt.engine.ui.common.restapi.RestApiSessionManager.PREFER_HEADER , ( preferValue + ", new-auth" ) ) ; builder.setHeader ( org.ovirt.engine.ui.common.restapi.RestApiSessionManager.ENGINE_AUTH_TOKEN_HEADER , engineAuthToken ) ; return builder ; }
Source:
public java.lang.String getCustomSerialNumber ( ) { return vmStatic.getCustomSerialNumber ( ) ; }

Target:
public int getGuestCpuCount ( ) { return getDynamicData ( ) . getGuestCpuCount ( ) ; }
Source:
protected boolean isHotPlugSupported ( ) { if ( org.ovirt.engine.core.common.config.Config.< java.lang.Boolean > GetValue ( ConfigValues.HotPlugEnabled , org.ovirt.engine.core.bll.VmCommand.getVds ( ) . getVdsGroupCompatibilityVersion ( ) . getValue ( ) ) ) { return true ; } addCanDoActionMessage ( VdcBllMessages.HOT_PLUG_IS_NOT_SUPPORTED ) ; return false ; }

Target:
protected boolean isHotPlugSupported ( ) { if ( org.ovirt.engine.core.common.FeatureSupported.hotPlug ( org.ovirt.engine.core.bll.VmCommand.getVm ( ) . getVdsGroupCompatibilityVersion ( ) ) ) { return true ; } return failCanDoAction ( VdcBllMessages.HOT_PLUG_IS_NOT_SUPPORTED ) ; }
Source:
public void init ( ) { super . init ( ) ; problematicVds = org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getVdsDao ( ) . get ( org.ovirt.engine.core.bll.storage.FenceVdsManualyCommand.getParameters ( ) . getVdsId ( ) ) ; }

Target:
public void init ( ) { super . init ( ) ; problematicVds = vdsDao.get ( org.ovirt.engine.core.bll.storage.FenceVdsManualyCommand.getParameters ( ) . getVdsId ( ) ) ; }
Source:
public void testCanAttachSingleISOOrExport ( ) { for ( org.ovirt.engine.core.common.businessentities.StorageDomainType type : java.util.Arrays.asList ( StorageDomainType.ISO , StorageDomainType.ImportExport ) ) { storageDomain.setStorageDomainType ( type ) ; org.junit.Assert.assertThat ( validator.validateDomainCanBeAttachedToPool ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; } }

Target:
public void testCanAttachSingleISOOrExport ( ) { for ( org.ovirt.engine.core.common.businessentities.StorageDomainType type : java.util.Arrays.asList ( StorageDomainType.ISO , StorageDomainType.ImportExport ) ) { storageDomain.setStorageDomainType ( type ) ; org.hamcrest.MatcherAssert.assertThat ( validator.validateDomainCanBeAttachedToPool ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; } }
Source:
private org.ovirt.engine.core.common.action.VdcReturnValueBase verifyCalled ( org.ovirt.engine.core.common.action.VdcActionType vdcActionType , org.mockito.verification.VerificationMode times ) { return org.mockito.Mockito.verify ( backend , times ) . runInternalAction ( org.mockito.Matchers.eq ( vdcActionType ) , org.mockito.Matchers.any ( org.ovirt.engine.core.common.action.VdcActionParametersBase.class ) ) ; }

Target:
private org.ovirt.engine.core.common.action.VdcReturnValueBase verifyCalled ( org.ovirt.engine.core.common.action.VdcActionType vdcActionType , org.mockito.verification.VerificationMode times ) { return org.mockito.Mockito.verify ( backend , times ) . runInternalAction ( org.mockito.ArgumentMatchers.eq ( vdcActionType ) , org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.action.VdcActionParametersBase.class ) ) ; }
Source:
protected void ChangeDefualtHost ( ) { super . ChangeDefualtHost ( ) ; doChangeDefautlHost ( vm.getdedicated_vm_for_vds ( ) ) ; }

Target:
protected void ChangeDefualtHost ( ) { super . ChangeDefualtHost ( ) ; doChangeDefautlHost ( vm.getDedicatedVmForVds ( ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getRoleGroupMapDao ( ) ; existingRoleGroupMap = dao.getByActionGroupAndRole ( ActionGroup.VM_BASIC_OPERATIONS , org.ovirt.engine.core.dao.RoleGroupMapDAOTest.EXISTING_ROLE_ID ) ; actionGroup = org.ovirt.engine.core.common.businessentities.ActionGroup.CONNECT_TO_VM ; newRoleGroupMap = new org.ovirt.engine.core.common.businessentities.RoleGroupMap ( actionGroup , org.ovirt.engine.core.dao.RoleGroupMapDAOTest.EXISTING_ROLE_ID ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; dao = dbFacade.getRoleGroupMapDao ( ) ; existingRoleGroupMap = dao.getByActionGroupAndRole ( ActionGroup.RUN_VM , org.ovirt.engine.core.dao.RoleGroupMapDAOTest.EXISTING_ROLE_ID ) ; actionGroup = org.ovirt.engine.core.common.businessentities.ActionGroup.CONNECT_TO_VM ; newRoleGroupMap = new org.ovirt.engine.core.common.businessentities.RoleGroupMap ( actionGroup , org.ovirt.engine.core.dao.RoleGroupMapDAOTest.EXISTING_ROLE_ID ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { this . reactorForListener = new org.ovirt.vdsm.jsonrpc.client.reactors.NioReactor ( ) ; this . reactorForClient = new org.ovirt.vdsm.jsonrpc.client.reactors.NioReactor ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { this . reactorForListener = org.ovirt.vdsm.jsonrpc.client.reactors.ReactorFactory.getReactor ( null , ReactorType.STOMP ) ; this . reactorForClient = org.ovirt.vdsm.jsonrpc.client.reactors.ReactorFactory.getReactor ( null , ReactorType.STOMP ) ; }
Source:
public void setQuotaDefault ( boolean isQuotaDefault ) { this . isQuotaDefault = isQuotaDefault ; }

Target:
public void setQuotaDefault ( boolean isQuotaDefault ) { this . quotaDefault = isQuotaDefault ; }
Source:
private void assertVmGuestAgentInterfaceForVm ( java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > interfaces ) { org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.VmGuestAgentInterfaceDaoTest.VM_GUEST_AGENT_INTERFACES_SIZE , interfaces.size ( ) ) ; for ( org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface vmGuestAgentInterface : interfaces ) { org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.VmGuestAgentInterfaceDaoTest.EXISTING_VM_ID , vmGuestAgentInterface.getVmId ( ) ) ; } }

Target:
private void assertVmGuestAgentInterfaceForVm ( java.util.List < org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface > interfaces ) { org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.VmGuestAgentInterfaceDaoTest.VM_GUEST_AGENT_INTERFACES_SIZE , interfaces.size ( ) ) ; for ( org.ovirt.engine.core.common.businessentities.VmGuestAgentInterface vmGuestAgentInterface : interfaces ) { org.junit.Assert.assertEquals ( FixturesTool.VM_RHEL5_POOL_50 , vmGuestAgentInterface.getVmId ( ) ) ; } }
Source:
public void testBytestoMegas ( ) { long bytes = 3160000 ; int megabytes = ( ( int ) ( org.ovirt.engine.api.common.util.SizeConverter.bytesToMegas ( bytes ) ) ) ; assertEquals ( megabytes , 3 ) ; }

Target:
public void testBytestoMegas ( ) { long bytes = 3160000 ; int megabytes = ( ( int ) ( org.ovirt.engine.api.common.util.SizeConverter.bytesToMegas ( bytes ) ) ) ; org.junit.Assert.assertEquals ( megabytes , 3 ) ; }
Source:
private void updateMigrateOnError ( org.ovirt.engine.core.common.businessentities.VDSGroup group ) { org.ovirt.engine.core.common.businessentities.ArchitectureType arch = getArchitecture ( group ) ; boolean isMigrationSupported = org.ovirt.engine.core.common.FeatureSupported.isMigrationSupported ( arch , group.getcompatibility_version ( ) ) ; if ( ! isMigrationSupported ) { group.setMigrateOnError ( MigrateOnErrorOptions.NO ) ; } }

Target:
private void updateMigrateOnError ( org.ovirt.engine.core.common.businessentities.VDSGroup group ) { org.ovirt.engine.core.common.businessentities.ArchitectureType arch = getArchitecture ( group ) ; boolean isMigrationSupported = org.ovirt.engine.core.common.FeatureSupported.isMigrationSupported ( arch , group.getCompatibilityVersion ( ) ) ; if ( ! isMigrationSupported ) { group.setMigrateOnError ( MigrateOnErrorOptions.NO ) ; } }
Source:
public void setup ( ) { config = new org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils ( false ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; config = new org.ovirt.engine.core.dal.dbbroker.generic.DBConfigUtils ( false ) ; config.refreshVdcOptionCache ( dbFacade ) ; }
Source:
public void onSuccess ( java.lang.Object model , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.defaultOSes = ( ( java.util.HashMap < org.ovirt.engine.core.common.businessentities.ArchitectureType , java.lang.Integer > ) ( ( ( org.ovirt.engine.core.common.queries.VdcQueryReturnValue ) ( returnValue ) ) . getReturnValue ( ) ) ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { getDefaultConfigurationVersion ( target ) ; }
Source:
public java.lang.String getRoleName ( ) { org.ovirt.engine.core.common.businessentities.roles role = org.ovirt.engine.core.bll.PermissionsCommandBase.getRoleDao ( ) . get ( org.ovirt.engine.core.bll.PermissionsCommandBase.getParameters ( ) . getPermission ( ) . getrole_id ( ) ) ; return role == null ? null : role.getname ( ) ; }

Target:
public java.lang.String getRoleName ( ) { org.ovirt.engine.core.common.businessentities.Role role = org.ovirt.engine.core.bll.PermissionsCommandBase.getRoleDao ( ) . get ( org.ovirt.engine.core.bll.PermissionsCommandBase.getParameters ( ) . getPermission ( ) . getrole_id ( ) ) ; return role == null ? null : role.getname ( ) ; }
Source:
public void setDefaultConsoleModel ( org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel value ) { if ( ( defaultConsoleModel ) != value ) { defaultConsoleModel = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "DefaultConsoleModel" ) ) ; } }

Target:
public org.ovirt.engine.ui.uicommonweb.UICommand getEditConsoleCommand ( ) { return editConsoleCommand ; }
Source:
private static void addVirtioScsiController ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice ( new org.ovirt.engine.core.common.businessentities.VmDeviceId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , vmId ) , VmDeviceGeneralType.CONTROLLER , VmDeviceType.VIRTIOSCSI , new java.util.HashMap < java.lang.String , java.lang.Object > ( ) , true , false , null ) ; }

Target:
public static boolean hasConsoleDevice ( org.ovirt.engine.core.compat.Guid vmId ) { return ! ( org.ovirt.engine.core.bll.utils.VmDeviceUtils.getConsoleDevices ( vmId ) . isEmpty ( ) ) ; }
Source:
public void testGetAll ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.Bookmark > result = dao.getAll ( ) ; org.junit.Assert.assertEquals ( org.ovirt.engine.core.dao.BookmarkDAOTest.BOOKMARK_COUNT , result.size ( ) ) ; }

Target:
public void testGetByName ( ) { org.ovirt.engine.core.common.businessentities.Bookmark result = dao.getByName ( existingBookmark.getbookmark_name ( ) ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( existingBookmark.getbookmark_name ( ) , result.getbookmark_name ( ) ) ; }
Source:
public void setLoggedInUser ( org.ovirt.engine.core.common.users.VdcUser value ) { if ( ( loggedInUser ) != value ) { loggedInUser = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "LoggedInUser" ) ) ; } }

Target:
public void setLoggedInUser ( org.ovirt.engine.core.common.businessentities.DbUser value ) { if ( ( loggedInUser ) != value ) { loggedInUser = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "LoggedInUser" ) ) ; } }
Source:
public void startMonitoring ( ) { vmsMonitoringJobId = sched.scheduleAFixedDelayJob ( this , "perform" , new java.lang.Class [ 0 ] , new java.lang.Object [ 0 ] , org.ovirt.engine.core.vdsbroker.VMStatsRefresher.VMS_REFRESH_RATE , org.ovirt.engine.core.vdsbroker.VMStatsRefresher.VMS_REFRESH_RATE , java.util.concurrent.TimeUnit.MILLISECONDS ) ; }

Target:
public void startMonitoring ( ) { vmsMonitoringJobId = sched.scheduleAFixedDelayJob ( this , "poll" , new java.lang.Class [ 0 ] , new java.lang.Object [ 0 ] , org.ovirt.engine.core.vdsbroker.VMStatsRefresher.VMS_REFRESH_RATE , org.ovirt.engine.core.vdsbroker.VMStatsRefresher.VMS_REFRESH_RATE , java.util.concurrent.TimeUnit.MILLISECONDS ) ; }
Source:
public org.ovirt.engine.core.aaa.DirectoryUser findUser ( java.lang.String name ) { return org.ovirt.engine.extensions.aaa.builtin.internal.InternalDirectory.ADMIN_NAME.equals ( name ) ? admin : null ; }

Target:
public org.ovirt.engine.core.aaa.DirectoryUser findUser ( java.lang.String name ) { return getAdminName ( ) . equals ( name ) ? admin : null ; }
Source:
public int compareTo ( ovirt_engine_dwh.historydelete_3_2.HistoryDelete.row11Struct other ) { int returnValue = - 1 ; return returnValue ; }

Target:
public void copyDataTo ( ovirt_engine_dwh.historydelete_3_2.HistoryDelete.row11Struct other ) { other.history_id = this . history_id ; }
Source:
public void testGetVMsForStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.OvfEntityData > ovfEntityDataList = dao.getAllForStorageDomainByEntityType ( FixturesTool.STORAGE_DOAMIN_NFS2_1 , VmEntityType.VM ) ; org.junit.Assert.assertTrue ( "A VM should be fetched for the specified storage domain" , ( ! ( ovfEntityDataList.isEmpty ( ) ) ) ) ; }

Target:
public void testGetVMsForStorageDomain ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.OvfEntityData > ovfEntityDataList = dao.getAllForStorageDomainByEntityType ( FixturesTool.STORAGE_DOMAIN_NFS2_1 , VmEntityType.VM ) ; org.junit.Assert.assertTrue ( "A VM should be fetched for the specified storage domain" , ( ! ( ovfEntityDataList.isEmpty ( ) ) ) ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, deviceList=%s" , super . toString ( ) , getDeviceList ( ) ) ; }

Target:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s, deviceList=%s, force=%b" , super . toString ( ) , getDeviceList ( ) , isForce ( ) ) ; }
Source:
public void spiceSelected ( boolean selected ) { spicePanel.setVisible ( selected ) ; }

Target:
public void setSpiceHtml5ImplEnabled ( boolean enabled , java.lang.String reason ) { spiceHtml5ImplRadioButton.setEnabled ( enabled ) ; if ( ! enabled ) { spiceHtml5ImplRadioButton.setTitle ( reason ) ; } }
Source:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepSessionDelete ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName ) ;

Target:
org.ovirt.engine.core.vdsbroker.vdsbroker.StatusOnlyReturnForXmlRpc glusterVolumeGeoRepSessionStop ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.String userName , java.lang.Boolean force ) ;
Source:
public void rdpSelected ( boolean selected ) { rdpPanel.setVisible ( selected ) ; }

Target:
public void setNoVncEnabled ( boolean enabled , java.lang.String reason ) { noVncImplRadioButton.setEnabled ( enabled ) ; noVncImplRadioButton.setTitle ( ( enabled ? "" : reason ) ) ; }
Source:
protected void onEntityChanged ( ) { super . onEntityChanged ( ) ; if ( ( getEntity ( ) ) != null ) { getSearchCommand ( ) . execute ( ) ; } }

Target:
protected void syncSearch ( ) { if ( ( getEntity ( ) ) == null ) { return ; } super . syncSearch ( VdcQueryType.GetExternalSubnetsOnProviderByNetwork , new org.ovirt.engine.core.common.queries.IdQueryParameters ( getEntity ( ) . getId ( ) ) ) ; }
Source:
public void testUpdateLastAdminCheckStatus ( ) { org.ovirt.engine.core.common.businessentities.DbUser nonAdminUser = dbFacade.getDbUserDAO ( ) . getByUsername ( "userportal2@testportal.redhat.com" ) ; org.junit.Assert.assertNotNull ( nonAdminUser ) ; org.junit.Assert.assertFalse ( nonAdminUser.getLastAdminCheckStatus ( ) ) ; dbFacade.updateLastAdminCheckStatus ( nonAdminUser.getuser_id ( ) ) ; nonAdminUser = dbFacade.getDbUserDAO ( ) . get ( nonAdminUser.getuser_id ( ) ) ; org.junit.Assert.assertFalse ( nonAdminUser.getLastAdminCheckStatus ( ) ) ; org.ovirt.engine.core.common.businessentities.permissions perms = new org.ovirt.engine.core.common.businessentities.permissions ( ) ; perms.setRoleType ( RoleType.ADMIN ) ; perms.setrole_id ( org.ovirt.engine.core.dao.DbFacadeDAOTest.ADMIN_ROLE_TYPE_FROM_FIXTURE_ID ) ; perms.setad_element_id ( nonAdminUser.getuser_id ( ) ) ; perms.setObjectId ( org.ovirt.engine.core.dao.DbFacadeDAOTest.SYSTEM_OBJECT_ID ) ; perms.setObjectType ( VdcObjectType.System ) ; dbFacade.getPermissionDAO ( ) . save ( perms ) ; org.junit.Assert.assertNotNull ( dbFacade.getPermissionDAO ( ) . get ( perms.getId ( ) ) ) ; dbFacade.updateLastAdminCheckStatus ( nonAdminUser.getuser_id ( ) ) ; nonAdminUser = dbFacade.getDbUserDAO ( ) . get ( nonAdminUser.getuser_id ( ) ) ; org.junit.Assert.assertTrue ( nonAdminUser.getLastAdminCheckStatus ( ) ) ; }

Target:
public void testUpdateLastAdminCheckStatus ( ) { org.ovirt.engine.core.common.businessentities.DbUser nonAdminUser = dbFacade.getDbUserDao ( ) . getByUsername ( "userportal2@testportal.redhat.com" ) ; org.junit.Assert.assertNotNull ( nonAdminUser ) ; org.junit.Assert.assertFalse ( nonAdminUser.getLastAdminCheckStatus ( ) ) ; dbFacade.updateLastAdminCheckStatus ( nonAdminUser.getuser_id ( ) ) ; nonAdminUser = dbFacade.getDbUserDao ( ) . get ( nonAdminUser.getuser_id ( ) ) ; org.junit.Assert.assertFalse ( nonAdminUser.getLastAdminCheckStatus ( ) ) ; org.ovirt.engine.core.common.businessentities.permissions perms = new org.ovirt.engine.core.common.businessentities.permissions ( ) ; perms.setRoleType ( RoleType.ADMIN ) ; perms.setrole_id ( org.ovirt.engine.core.dao.DbFacadeDAOTest.ADMIN_ROLE_TYPE_FROM_FIXTURE_ID ) ; perms.setad_element_id ( nonAdminUser.getuser_id ( ) ) ; perms.setObjectId ( org.ovirt.engine.core.dao.DbFacadeDAOTest.SYSTEM_OBJECT_ID ) ; perms.setObjectType ( VdcObjectType.System ) ; dbFacade.getPermissionDao ( ) . save ( perms ) ; org.junit.Assert.assertNotNull ( dbFacade.getPermissionDao ( ) . get ( perms.getId ( ) ) ) ; dbFacade.updateLastAdminCheckStatus ( nonAdminUser.getuser_id ( ) ) ; nonAdminUser = dbFacade.getDbUserDao ( ) . get ( nonAdminUser.getuser_id ( ) ) ; org.junit.Assert.assertTrue ( nonAdminUser.getLastAdminCheckStatus ( ) ) ; }
Source:
protected void startPollingAsyncTasks ( java.util.Collection < org.ovirt.engine.core.compat.Guid > taskIds ) { for ( org.ovirt.engine.core.compat.Guid taskID : taskIds ) { getAsyncTaskManager ( ) . startPollingTask ( taskID ) ; } }

Target:
protected void addCanDoActionMessageVariable ( java.lang.String varName , java.lang.Object varValue ) { getReturnValue ( ) . getCanDoActionMessages ( ) . add ( java.lang.String.format ( "$%s %s" , varName , varValue ) ) ; }
Source:
public int getLoginTimeout ( ) throws java.sql.SQLException { throw new java.sql.SQLFeatureNotSupportedException ( ) ; }

Target:
public boolean isWrapperFor ( java.lang.Class < ? > iface ) throws java.sql.SQLException { throw new java.sql.SQLFeatureNotSupportedException ( ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData importVmData ) { return importVmData.getVm ( ) . getName ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.vms.register.RegisterVmData registerVmData ) { return registerVmData.getVm ( ) . getName ( ) ; }
Source:
public final java.lang.String guideUrl ( ) { return formatString ( org.ovirt.engine.ui.common.utils.DynamicMessages.DynamicMessageKey.GUIDE_URL , com.google.gwt.i18n.client.LocaleInfo.getCurrentLocale ( ) . getLocaleName ( ) ) ; }

Target:
public final java.lang.String guideUrl ( ) { return formatString ( org.ovirt.engine.ui.common.utils.DynamicMessages.DynamicMessageKey.GUIDE_URL , getCurrentLocaleAsString ( ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.util.HashMap < java.lang.String , java.util.List < java.lang.String > > ) ( source ) ) : new java.util.HashMap < java.lang.String , java.util.List < java.lang.String > > ( ) ; }
Source:
public java.lang.Void call ( ) throws java.lang.Exception { _setCliEnvironmentIfNecessary ( ( ( org.ovirt.ovirt_host_deploy.constants.OpenStackEnv.NEUTRON_CONFIG_PREFIX ) + "DEFAULT/qpid_hostname" ) , _openStackAgentProperties.getAgentConfiguration ( ) . getMessagingConfiguration ( ) . getAddress ( ) ) ; return null ; }

Target:
public java.lang.Boolean call ( ) throws java.lang.Exception { _setCliEnvironmentIfNecessary ( ( ( ( org.ovirt.ovirt_host_deploy.constants.OpenStackEnv.NEUTRON_CONFIG_PREFIX ) + "DEFAULT/" ) + ( _messagingConfiguration.getBrokerType ( ) . getHostKey ( ) ) ) , _messagingConfiguration.getAddress ( ) ) ; return true ; }
Source:
public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.VDSGroup object ) { return object.getName ( ) ; }

Target:
public java.lang.String renderNullSafe ( org.ovirt.engine.core.common.businessentities.Cluster object ) { return object.getName ( ) ; }
Source:
public static org.ovirt.engine.core.compat.Guid GetImageGrupIdFromImageFile ( java.lang.String imageFile ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( imageFile ) ) ) { return new org.ovirt.engine.core.compat.Guid ( imageFile.split ( "[/]" , ( - 1 ) ) [ 0 ] ) ; } return null ; }

Target:
public static org.ovirt.engine.core.compat.Guid GetImageGrupIdFromImageFile ( java.lang.String imageFile ) { if ( ! ( org.apache.commons.lang.StringUtils.isBlank ( imageFile ) ) ) { return org.ovirt.engine.core.compat.Guid.createGuidFromString ( imageFile.split ( "[/]" , ( - 1 ) ) [ 0 ] ) ; } return null ; }
Source:
public void testConfigurationEntries ( ) throws java.lang.Exception { filter.clearFilterEntries ( ) ; filter.addFilterEntries ( java.util.Collections.singletonList ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilter.FilterEntry ( "message0" , false , "smtp" , "dbtest1@redhat.com" ) ) ) ; filter.processEvent ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilterTest.E ( "message0" ) ) ; filter.processEvent ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilterTest.E ( "message1" ) ) ; org.ovirt.engine.core.notifier.filter.AuditLogEvent event = smtp.getEvents ( ) . get ( 0 ) ; java.lang.String address = smtp.getNames ( ) . get ( 0 ) ; org.junit.Assert.assertTrue ( event.getName ( ) . equals ( "message0" ) ) ; org.junit.Assert.assertTrue ( address.equals ( "dbtest1@redhat.com" ) ) ; }

Target:
public void testDatabaseEntries ( ) throws java.lang.Exception { filter.clearFilterEntries ( ) ; filter.addFilterEntries ( java.util.Collections.singletonList ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilter.FilterEntry ( "message0" , false , "smtp" , "dbtest1@redhat.com" ) ) ) ; filter.processEvent ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilterTest.E ( "message0" ) ) ; filter.processEvent ( new org.ovirt.engine.core.notifier.filter.FirstMatchSimpleFilterTest.E ( "message1" ) ) ; org.junit.Assert.assertTrue ( smtp.getEvents ( ) . contains ( "message0-->dbtest1@redhat.com" ) ) ; }
Source:
public void testExtractIpv6PrefixNull ( ) { org.junit.Assert.assertThat ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.extractIpv6Prefix ( null ) , org.hamcrest.Matchers.nullValue ( ) ) ; }

Target:
public void testExtractIpv6PrefixInvalidPrefix ( ) { org.junit.Assert.assertThat ( vdsBrokerObjectsBuilder.extractIpv6Prefix ( "::/zzz" ) , org.hamcrest.Matchers.nullValue ( ) ) ; }
Source:
public void setAdditionalConsoleModel ( org.ovirt.engine.ui.uicommonweb.models.vms.ConsoleModel value ) { if ( ( additionalConsoleModel ) != value ) { additionalConsoleModel = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "AdditionalConsoleModel" ) ) ; } }

Target:
private void fireConsoleConnectEvent ( ) { consoleConnectEvent.raise ( this , EventArgs.Empty ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.SessionState getsession ( ) { return this . mVmDynamic.getsession ( ) ; }

Target:
public void setKvmEnable ( java.lang.Boolean value ) { this . vmDynamic.setkvm_enable ( value ) ; }
Source:
public void getUsbPolicyOnUpdateCurrentlyNativeGotEnabledNotSetNativePolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setType ( "native" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE , null ) , UsbPolicy.ENABLED_NATIVE ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyNativeGotDisabledLegacyPolicyUsb ( ) { org.ovirt.engine.api.model.Usb usb = new org.ovirt.engine.api.model.Usb ( ) ; usb.setEnabled ( false ) ; usb.setType ( "legacy" ) ; assertEquals ( org.ovirt.engine.api.restapi.types.VmMapper.getUsbPolicyOnUpdate ( usb , UsbPolicy.ENABLED_NATIVE ) , UsbPolicy.DISABLED ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VnicProfileView > ( ) ; } return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source ; }
Source:
public java.util.List < org.ovirt.engine.core.bll.network.vm.mac.VmMacsValidation > createVmMacsValidationList ( org.ovirt.engine.core.compat.Guid clusterId , org.ovirt.engine.core.bll.network.macpool.MacPool macPool ) { return java.util.Arrays.asList ( createOutOfRangeValidation ( clusterId ) , createMacsInUseValidation ( macPool ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.bll.network.vm.mac.VmMacsValidation > createVmMacsValidationList ( org.ovirt.engine.core.compat.Guid clusterId , org.ovirt.engine.core.bll.network.macpool.ReadMacPool macPool ) { return java.util.Arrays.asList ( createOutOfRangeValidation ( clusterId ) , createMacsInUseValidation ( macPool ) ) ; }
Source:
public boolean isClientWindowExplorerWithWebsockets ( ) { return isClientWindowsExplorer ( ) ; }

Target:
public abstract java.lang.Float clientBrowserVersion ( ) ;
Source:
public java.lang.String getAsString ( org.ovirt.engine.core.utils.PKIResources.Resource resource , org.ovirt.engine.core.utils.PKIResources.OutputType outputType ) { return getAsString ( resource , outputType , null ) ; }

Target:
public java.lang.String toString ( org.ovirt.engine.core.utils.PKIResources.Format format ) { return toString ( format , null ) ; }
Source:
public java.lang.String render ( final java.lang.Integer milliSeconds ) { return org.ovirt.engine.ui.common.widget.renderer.MillisecondRenderer.MESSAGES.refreshRateSeconds ( ( milliSeconds / ( org.ovirt.engine.ui.common.widget.renderer.MillisecondRenderer.MILLI_SECOND_DIVISION ) ) ) ; }

Target:
public java.lang.String render ( final java.lang.Integer milliSeconds ) { return org.ovirt.engine.ui.common.widget.renderer.MillisecondRenderer.messages.refreshRateSeconds ( ( milliSeconds / ( org.ovirt.engine.ui.common.widget.renderer.MillisecondRenderer.MILLI_SECOND_DIVISION ) ) ) ; }
Source:
private java.util.List < org.ovirt.engine.ui.uicommonweb.action.UiAction > runParallelActionFlowCommon ( boolean success ) { java.util.List < org.ovirt.engine.ui.uicommonweb.action.UiAction > actions = runActionFlow ( ActionType.parallel ) ; verifyRunActionAndExecuteCallbacksRandomly ( success , actions.get ( 0 ) . getActionFlowState ( ) , actions.size ( ) ) ; return actions ; }

Target:
private java.util.List < org.ovirt.engine.ui.uicommonweb.action.UiAction > runParallelActionFlowCommon ( boolean success ) { java.util.List < org.ovirt.engine.ui.uicommonweb.action.UiAction > actions = runActionFlow ( UiActionBaseTest.ActionType.parallel ) ; verifyRunActionAndExecuteCallbacksRandomly ( success , actions.get ( 0 ) . getActionFlowState ( ) , actions.size ( ) ) ; return actions ; }
Source:
public static java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getRngDevices ( org.ovirt.engine.core.compat.Guid vmId ) { return org.ovirt.engine.core.bll.utils.VmDeviceUtils.dao.getVmDeviceByVmIdAndType ( vmId , VmDeviceGeneralType.RNG ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.VmDevice > getRngDevices ( org.ovirt.engine.core.compat.Guid vmId ) { return vmDeviceDao.getVmDeviceByVmIdAndType ( vmId , VmDeviceGeneralType.RNG ) ; }
Source:
public void clusterMovesToDcWithNoDefaultManagementNetwork ( ) { noNewDefaultManagementNetworkFound ( ) ; createCommandWithDefaultVdsGroup ( ) ; oldGroupIsDetachedDefault ( ) ; setupCpu ( ) ; canDoActionFailedWithReason ( EngineMessage.ACTION_TYPE_FAILED_DEFAULT_MANAGEMENT_NETWORK_NOT_FOUND ) ; }

Target:
public void clusterMovesToDcWithNoDefaultManagementNetwork ( ) { noNewDefaultManagementNetworkFound ( ) ; createCommandWithDefaultVdsGroup ( ) ; oldGroupIsDetachedDefault ( ) ; setupCpu ( ) ; validateFailedWithReason ( EngineMessage.ACTION_TYPE_FAILED_DEFAULT_MANAGEMENT_NETWORK_NOT_FOUND ) ; }
Source:
private boolean isVmNeedsToBeAutoStarted ( org.ovirt.engine.core.compat.Guid vmId ) { org.ovirt.engine.core.common.businessentities.VmDynamic vmDynamic = getVmDynamicDao ( ) . get ( vmId ) ; return ( ( vmDynamic.getStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VMStatus.Down ) ) && ( ( vmDynamic.getExitStatus ( ) ) == ( org.ovirt.engine.core.common.businessentities.VmExitStatus.Error ) ) ; }

Target:
protected abstract org.ovirt.engine.core.common.AuditLogType getExceededMaxNumOfRestartsAuditLogType ( ) ;
Source:
private org.ovirt.engine.core.common.businessentities.VM getEntity ( java.lang.Object object ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmData ) ( object ) ) . getVm ( ) ; }

Target:
public void eventRaised ( org.ovirt.engine.ui.uicompat.Event < ? extends org.ovirt.engine.ui.uicompat.EventArgs > ev , java.lang.Object sender , org.ovirt.engine.ui.uicompat.EventArgs args ) { refreshEntityTable ( ) ; }
Source:
public int hashCode ( ) { final int prime = 31 ; int result = super . hashCode ( ) ; result = ( prime * result ) + ( ( vdsNumaNodeList ) == null ? 0 : vdsNumaNodeList.hashCode ( ) ) ; return result ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( super . hashCode ( ) , vdsNumaNodeList ) ; }
Source:
public com.google.gwt.resources.client.ImageResource getValue ( org.ovirt.engine.core.common.businessentities.Disk object ) { setTitle ( ( object.isBoot ( ) ? constants.bootableDisk ( ) : null ) ) ; return object.isBoot ( ) ? resources.bootableDiskIcon ( ) : null ; }

Target:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getMainModel ( ) . getNewCommand ( ) ; }
Source:
private java.lang.String generateFromStatement ( org.ovirt.engine.core.searchbackend.SyntaxContainer syntax ) { return generateFromStatement ( syntax , true ) ; }

Target:
public void setConditionText ( java.lang.String conditionText ) { this . conditionText = conditionText ; }
Source:
public void testRemoveAllForVds ( ) throws java.lang.Exception { dao.removeAllForVds ( org.ovirt.engine.core.dao.AuditLogDAOTest.VDS_ID , true ) ; java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > result = dao.getAll ( ) ; org.junit.Assert.assertEquals ( 3 , result.size ( ) ) ; }

Target:
public void testRemoveAllForVds ( ) throws java.lang.Exception { dao.removeAllForVds ( org.ovirt.engine.core.dao.AuditLogDAOTest.VDS_ID , true ) ; java.util.List < org.ovirt.engine.core.common.businessentities.AuditLog > result = dao.getAll ( ) ; org.junit.Assert.assertEquals ( 5 , result.size ( ) ) ; }
Source:
protected void configure ( ) { super . configure ( ) ; bind ( org.ovirt.engine.ui.webadmin.section.main.presenter.SearchStringCollector.class ) . asEagerSingleton ( ) ; }

Target:
protected void configure ( ) { super . configure ( ) ; bind ( org.ovirt.engine.ui.webadmin.section.main.presenter.SearchStringCollector.class ) . asEagerSingleton ( ) ; bind ( org.ovirt.engine.ui.webadmin.section.main.presenter.TagEventCollector.class ) . asEagerSingleton ( ) ; }
Source:
public java.lang.String getValue ( java.lang.Object object ) { return java.lang.String.valueOf ( ( ( org.ovirt.engine.core.common.businessentities.VmTemplate ) ( object ) ) . getNumOfCpus ( ) ) ; }

Target:
protected org.ovirt.engine.core.common.businessentities.OriginType getRawValue ( java.lang.Object object ) { return ( ( org.ovirt.engine.ui.uicommonweb.models.vms.ImportTemplateData ) ( object ) ) . getTemplate ( ) . getOrigin ( ) ; }
Source:
private void localize ( org.ovirt.engine.ui.webadmin.ApplicationConstants constants ) { keyListBoxEditor.setLabel ( constants.optionKeyVolumeParameter ( ) ) ; descriptionEditor.setLabel ( constants.descriptionVolumeParameter ( ) ) ; valueEditor.setLabel ( constants.optionValueVolumeParameter ( ) ) ; }

Target:
private void localize ( ) { keyListBoxEditor.setLabel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.VolumeParameterPopupView.constants.optionKeyVolumeParameter ( ) ) ; descriptionEditor.setLabel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.VolumeParameterPopupView.constants.descriptionVolumeParameter ( ) ) ; valueEditor.setLabel ( org.ovirt.engine.ui.webadmin.section.main.view.popup.gluster.VolumeParameterPopupView.constants.optionValueVolumeParameter ( ) ) ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ( ) ; } return source ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source == null ) { return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.StorageDomain > ( ) ; } return source ; }
Source:
public void testGetEntityNameByIdAndTypeForStorageDomain ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = storageDomainDao.get ( org.ovirt.engine.core.dao.EntityDaoImplTest.STORAGE_DOMAIN_ID ) ; org.junit.Assert.assertNotNull ( storageDomain ) ; java.lang.String name = storageDomain.getStorageName ( ) ; org.junit.Assert.assertEquals ( name , underTest.getEntityNameByIdAndType ( org.ovirt.engine.core.dao.EntityDaoImplTest.STORAGE_DOMAIN_ID , VdcObjectType.Storage ) ) ; }

Target:
public void testGetEntityNameByIdAndTypeForStorageDomain ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain storageDomain = storageDomainDao.get ( FixturesTool.STORAGE_DOMAIN_SCALE_SD5 ) ; org.junit.Assert.assertNotNull ( storageDomain ) ; java.lang.String name = storageDomain.getStorageName ( ) ; org.junit.Assert.assertEquals ( name , underTest.getEntityNameByIdAndType ( FixturesTool.STORAGE_DOMAIN_SCALE_SD5 , VdcObjectType.Storage ) ) ; }
Source:
public void getVdsGroupNameNullVds ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.TestAuditLogableBase ( ) ; final org.ovirt.engine.core.common.businessentities.VDSGroup g = null ; b.setVdsGroup ( g ) ; final java.lang.String n = b.getVdsGroupName ( ) ; org.junit.Assert.assertEquals ( "" , n ) ; }

Target:
public void getClusterNameNullVds ( ) { final org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBaseTest.TestAuditLogableBase ( ) ; final org.ovirt.engine.core.common.businessentities.Cluster g = null ; b.setCluster ( g ) ; final java.lang.String n = b.getClusterName ( ) ; org.junit.Assert.assertEquals ( "" , n ) ; }
Source:
public void poll ( ) { if ( ! ( getRefreshStatistics ( ) ) ) { updateIteration ( ) ; return ; } super . poll ( ) ; }

Target:
protected org.ovirt.engine.core.vdsbroker.VmsListFetcher getVmsFetcher ( ) { return new org.ovirt.engine.core.vdsbroker.VmsStatisticsFetcher ( manager ) ; }
Source:
public void validUnlessConditionOccurs ( ) { org.junit.Assert.assertThat ( org.ovirt.engine.core.bll.ValidationResult.failWith ( org.ovirt.engine.core.bll.ValidationResultTest.ERROR ) . unless ( true ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void validUnlessConditionOccurs ( ) { org.hamcrest.MatcherAssert.assertThat ( org.ovirt.engine.core.bll.ValidationResult.failWith ( org.ovirt.engine.core.bll.ValidationResultTest.ERROR ) . unless ( true ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public static void setLoginPassword ( java.lang.String loginPassword ) { org.ovirt.engine.ui.frontend.Frontend.loginPassword = loginPassword ; }

Target:
public static void initLoggedInUser ( org.ovirt.engine.core.common.businessentities.DbUser loggedUser , java.lang.String loginPassword ) { org.ovirt.engine.ui.frontend.Frontend.loggedUser = loggedUser ; org.ovirt.engine.ui.frontend.Frontend.loginPassword = loginPassword ; }