auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void getAllDataCenterNetworks ( org.ovirt.engine.ui.frontend.AsyncQuery aQuery , org.ovirt.engine.core.compat.Guid storagePoolId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.ListAsyncConverter ( ) ; org.ovirt.engine.core.common.queries.IdQueryParameters params = new org.ovirt.engine.core.common.queries.IdQueryParameters ( storagePoolId ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetNetworksByDataCenterId , params , aQuery ) ; }

Target:
public void getTemplateById ( org.ovirt.engine.ui.frontend.AsyncQuery < org.ovirt.engine.core.common.businessentities.VmTemplate > aQuery , org.ovirt.engine.core.compat.Guid templateId ) { aQuery.converterCallback = new org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.CastingConverter < > ( ) ; org.ovirt.engine.ui.frontend.Frontend.getInstance ( ) . runQuery ( VdcQueryType.GetVmTemplate , new org.ovirt.engine.core.common.queries.GetVmTemplateParameters ( templateId ) , aQuery ) ; }
Source:
protected java.lang.String allUtfLetters ( ) { return ( asciiLetters ( ) ) + "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ﬀ-ﬆﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼＡ-Ｚａ-ｚｦ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ" ; }

Target:
protected final java.lang.String allUtfLetters ( ) { return ( asciiLetters ( ) ) + ( utfLettersWithoutAsciiLetters ( ) ) ; }
Source:
public void testGetAllForVmPool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllForVmPool ( FixturesTool.STORAGE_POOL_FEDORA ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( "wrong number of VMs attached to pool" , 2 , result.size ( ) ) ; }

Target:
public void testGetAllForVmPool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllForVmPool ( FixturesTool.STORAGE_POOL_FEDORA ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( 2 , result.size ( ) , "wrong number of VMs attached to pool" ) ; }
Source:
private void validateAndAssertNoChanges ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper ) { validateAndExpectNoViolations ( helper ) ; assertNoBondsModified ( helper ) ; assertNoNetworksModified ( helper ) ; assertNoNetworksRemoved ( helper ) ; assertNoBondsRemoved ( helper ) ; }

Target:
private void validateAndAssertNoChanges ( org.ovirt.engine.core.bll.network.host.SetupNetworksHelper helper ) { validateAndExpectNoViolations ( helper ) ; assertNoBondsModified ( helper ) ; assertNoNetworksModified ( helper ) ; assertNoNetworksRemoved ( helper ) ; assertNoBondsRemoved ( helper ) ; assertNoInterfacesModified ( helper ) ; }
Source:
void rdpSelected ( boolean selected ) ;

Target:
void setNoVncEnabled ( boolean enabled , java.lang.String reason ) ;
Source:
private void WipeAfterDelete_EntityChanged ( org.ovirt.engine.ui.uicompat.EventArgs e ) { if ( ( ! ( getWipeAfterDelete ( ) . getIsChangable ( ) ) ) && ( ( java.lang.Boolean ) ( getWipeAfterDelete ( ) . getEntity ( ) ) ) ) { getWipeAfterDelete ( ) . setEntity ( false ) ; } }

Target:
private void WipeAfterDelete_EntityChanged ( org.ovirt.engine.ui.uicompat.EventArgs e ) { if ( ( ! ( getIsWipeAfterDelete ( ) . getIsChangable ( ) ) ) && ( ( java.lang.Boolean ) ( getIsWipeAfterDelete ( ) . getEntity ( ) ) ) ) { getIsWipeAfterDelete ( ) . setEntity ( false ) ; } }
Source:
public void setvds_group_compatibility_version ( org.ovirt.engine.core.compat.Version value ) { if ( org.ovirt.engine.core.compat.Version.OpInequality ( getvds_group_compatibility_version ( ) , value ) ) { this . vds_group_compatibility_versionField = value ; OnPropertyChanged ( new org.ovirt.engine.core.compat.PropertyChangedEventArgs ( "vds_group_compatibility_version" ) ) ; } }

Target:
public void setStoragePoolId ( org.ovirt.engine.core.compat.Guid value ) { storagePoolId = value ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.models.CommonModel getCommonModel ( ) { return org.ovirt.engine.ui.common.uicommon.model.CommonModelManager.instance ( ) ; }

Target:
public void setModelProvider ( com.google.inject.Provider < M > modelProvider ) { this . modelProvider = modelProvider ; }
Source:
public boolean eval ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return ( network.getMtu ( ) ) != ( nonVlanNetwork.getMtu ( ) ) ; }

Target:
private int getMtuActualValue ( org.ovirt.engine.core.common.businessentities.network.Network network ) { return ( network.getMtu ( ) ) == 0 ? org.ovirt.engine.core.utils.NetworkUtils.getDefaultMtu ( ) : network.getMtu ( ) ; }
Source:
protected void onNoVmsAdded ( ) { org.ovirt.engine.core.bll.AddVmPoolCommand.getVmPoolDao ( ) . remove ( org.ovirt.engine.core.bll.AddVmPoolCommand.getVmPool ( ) . getVmPoolId ( ) ) ; }

Target:
protected void onNoVmsAdded ( ) { vmPoolDao.remove ( org.ovirt.engine.core.bll.AddVmPoolCommand.getVmPool ( ) . getVmPoolId ( ) ) ; }
Source:
public java.lang.Boolean getKsmState ( ) { return this . mVdsStatistics.getksm_state ( ) ; }

Target:
public void setKsmCpuPercent ( java.lang.Integer value ) { this . mVdsStatistics.setKsmCpuPercent ( value ) ; }
Source:
private boolean shouldResolveKdc ( ) { return ( ( ! ( args.contains ( org.ovirt.engine.extensions.aaa.builtin.tools.ManageDomainsArguments.ARG_LDAP_SERVERS ) ) ) && ( useDnsLookup ) ) || ( args.contains ( org.ovirt.engine.extensions.aaa.builtin.tools.ManageDomainsArguments.ARG_RESOLVE_KDC ) ) ; }

Target:
private boolean shouldResolveKdc ( ) { return ( ( ! ( args.containsKey ( org.ovirt.engine.extensions.aaa.builtin.tools.ManageDomainsArguments.ARG_LDAP_SERVERS ) ) ) && ( useDnsLookup ) ) || ( args.containsKey ( org.ovirt.engine.extensions.aaa.builtin.tools.ManageDomainsArguments.ARG_RESOLVE_KDC ) ) ; }
Source:
public void onNext ( java.util.Map < java.lang.String , java.lang.Object > map ) { try { vdsManager.refreshHost ( ) ; } finally { subscription.request ( 1 ) ; } }

Target:
public void onNext ( java.util.Map < java.lang.String , java.lang.Object > map ) { try { resourceManager.getEventListener ( ) . refreshHostCapabilities ( vdsManager.getVdsId ( ) ) ; } finally { subscription.request ( 1 ) ; } }
Source:
public void testUpdateGlusterHookStatus ( ) { dao.updateGlusterHookStatus ( FixturesTool.HOOK_ID , GlusterHookStatus.ENABLED ) ; org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity hook = dao.getById ( FixturesTool.HOOK_ID ) ; org.junit.Assert.assertNotNull ( hook ) ; org.junit.Assert.assertEquals ( GlusterHookStatus.ENABLED , hook.getStatus ( ) ) ; }

Target:
public void testUpdateGlusterHookStatus ( ) { dao.updateGlusterHookStatus ( FixturesTool.HOOK_ID , GlusterHookStatus.ENABLED ) ; org.ovirt.engine.core.common.businessentities.gluster.GlusterHookEntity hook = dao.getById ( FixturesTool.HOOK_ID ) ; org.junit.jupiter.api.Assertions.assertNotNull ( hook ) ; org.junit.jupiter.api.Assertions.assertEquals ( GlusterHookStatus.ENABLED , hook.getStatus ( ) ) ; }
Source:
public java.lang.String getValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { return object.getEntity ( ) . toString ( ) ; }

Target:
public java.lang.String getValue ( org.ovirt.engine.core.common.businessentities.RepoImage object ) { return object.getFileType ( ) . toString ( ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { getView ( ) . flush ( ) ; getView ( ) . getLoginButton ( ) . getCommand ( ) . Execute ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { commandInvoker.invokeDefaultCommand ( ) ; }
Source:
public void testCanDoActionSuccess ( ) { org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( cmd ) ; }

Target:
public void testValidateSuccess ( ) { org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( cmd ) ; }
Source:
public org.ovirt.engine.core.dao.VdsGroupDao getVdsGroupDao ( ) { return getDbFacade ( ) . getVdsGroupDao ( ) ; }

Target:
public org.ovirt.engine.core.dao.ClusterDao getClusterDao ( ) { return getDbFacade ( ) . getClusterDao ( ) ; }
Source:
public void remove ( ID id ) { org.ovirt.engine.core.dao.DefaultGenericDaoDbFacade.getCallsHandler ( ) . executeModification ( getProcedureNameForRemove ( ) , org.ovirt.engine.core.dao.DefaultGenericDaoDbFacade.createIdParameterMapper ( id ) ) ; }

Target:
public void remove ( ID id ) { org.ovirt.engine.core.dao.DefaultGenericDao.getCallsHandler ( ) . executeModification ( getProcedureNameForRemove ( ) , org.ovirt.engine.core.dao.DefaultGenericDao.createIdParameterMapper ( id ) ) ; }
Source:
public void addWithExistingMacAddressSucceed ( ) { org.ovirt.engine.core.common.businessentities.network.VmNic iface = createNewInterface ( ) ; runAddAndVerify ( iface , true , org.mockito.Mockito.times ( 1 ) , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.VERSION_3_2 ) ; }

Target:
public void addWithExistingMacAddressSucceed ( ) { org.ovirt.engine.core.common.businessentities.network.VmNic iface = createNewInterface ( ) ; runAddAndVerify ( iface , true , org.mockito.Mockito.times ( 1 ) , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.OS_ID , org.ovirt.engine.core.bll.network.VmInterfaceManagerTest.VERSION_3_2 ) ; }
Source:
protected java.lang.String getText ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeTaskStatusForHost entity ) { return java.lang.String.valueOf ( entity.getRunTime ( ) ) ; }

Target:
protected java.lang.Double getRawValue ( org.ovirt.engine.ui.uicommonweb.models.EntityModel object ) { return ( ( org.ovirt.engine.core.common.businessentities.gluster.GlusterVolumeTaskStatusForHost ) ( object.getEntity ( ) ) ) . getRunTime ( ) ; }
Source:
public void networkDoesntExist ( ) { simulateVdsGroupExists ( ) ; assertValidateFailure ( EngineMessage.NETWORK_NOT_EXISTS.toString ( ) ) ; }

Target:
public void networkDoesntExist ( ) { simulateClusterExists ( ) ; assertValidateFailure ( EngineMessage.NETWORK_NOT_EXISTS.toString ( ) ) ; }
Source:
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 , null ) , UsbPolicy.DISABLED ) ; }

Target:
public void getUsbPolicyOnUpdateCurrentlyDisabledGotDisabledLegacyPolicyUsb ( ) { 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.DISABLED ) , UsbPolicy.DISABLED ) ; }
Source:
public static boolean isBelowThresholds ( final org.ovirt.engine.core.common.businessentities.storage_domains domain ) { return ( org.ovirt.engine.core.bll.command.utils.StorageDomainSpaceChecker.isBelowSpaceThreshold ( domain ) ) && ( org.ovirt.engine.core.bll.command.utils.StorageDomainSpaceChecker.isBelowPctThreshold ( domain ) ) ; }

Target:
public static boolean isWithinThresholds ( final org.ovirt.engine.core.common.businessentities.storage_domains domain ) { return ( org.ovirt.engine.core.bll.command.utils.StorageDomainSpaceChecker.isEnoughFreeSpace ( domain ) ) && ( org.ovirt.engine.core.bll.command.utils.StorageDomainSpaceChecker.isEnoughFreePct ( domain ) ) ; }
Source:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator build ( ) { return new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator ( host , params , existingInterfaces , existingAttachments , networkBusinessEntityMap , managementNetworkUtil , networkClusterDaoMock , networkAttachmentDaoMock , networkDaoMock , vdsDaoMock ) ; }

Target:
public org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator build ( ) { return new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidator ( host , params , existingInterfaces , existingAttachments , networkBusinessEntityMap , managementNetworkUtil , networkClusterDaoMock , networkAttachmentDaoMock , networkDaoMock , vdsDaoMock , new org.ovirt.engine.core.bll.network.host.HostSetupNetworksValidatorHelper ( ) , vmDao ) ; }
Source:
public java.lang.Object call ( ) { org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap storagePoolIsoMap = new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMap ( storageDomainId , storagePoolId , org.ovirt.engine.core.common.businessentities.StorageDomainStatus.Maintenance ) ; getStoragePoolIsoMapDao ( ) . save ( storagePoolIsoMap ) ; return null ; }

Target:
public java.lang.Object call ( ) { getStoragePoolIsoMapDao ( ) . remove ( new org.ovirt.engine.core.common.businessentities.StoragePoolIsoMapId ( mapToRemove.getstorage_id ( ) , mapToRemove.getstorage_pool_id ( ) ) ) ; return null ; }
Source:
public void defaultClusterInLocalFs ( ) { createCommandWithDefaultVdsGroup ( ) ; oldGroupIsDetachedDefault ( ) ; storagePoolIsLocalFS ( ) ; cpuExists ( ) ; cpuManufacturersMatch ( ) ; allQueriesForVms ( ) ; canDoActionFailedWithReason ( VdcBllMessages.DEFAULT_CLUSTER_CANNOT_BE_ON_LOCALFS ) ; }

Target:
public void defaultClusterInLocalFs ( ) { org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.mcr.mockConfigValue ( ConfigValues.AutoRegistrationDefaultVdsGroupID , org.ovirt.engine.core.bll.UpdateVdsGroupCommandTest.DEFAULT_VDS_GROUP_ID ) ; createCommandWithDefaultVdsGroup ( ) ; oldGroupIsDetachedDefault ( ) ; storagePoolIsLocalFS ( ) ; cpuExists ( ) ; cpuManufacturersMatch ( ) ; allQueriesForVms ( ) ; canDoActionFailedWithReason ( VdcBllMessages.DEFAULT_CLUSTER_CANNOT_BE_ON_LOCALFS ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createNic ( java.lang.String nicName , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , nicName , false , null , null , networkName , true ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface createBond ( java.lang.String name , java.lang.String networkName ) { return createVdsInterface ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , name , true , null , null , networkName , true , null ) ; }
Source:
public void typeMatchesProfilePassthrough ( ) { typeMatchesProfileCommon ( true , true ) ; org.junit.Assert.assertThat ( validator.typeMatchesProfile ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }

Target:
public void typeMatchesProfilePassthrough ( ) { typeMatchesProfileCommon ( true , true ) ; org.hamcrest.MatcherAssert.assertThat ( validator.typeMatchesProfile ( ) , org.ovirt.engine.core.bll.validator.ValidationResultMatchers.isValid ( ) ) ; }
Source:
public void setConsoleCurrentUserName ( java.lang.String consoleCurUserName ) { this . consoleCurUserName = consoleCurUserName ; }

Target:
public void setConsoleCurrentUserName ( java.lang.String consoleCurUserName ) { this . consoleCurrentUserName = consoleCurUserName ; }
Source:
public void testGetWindowsOss ( ) { org.junit.Assert.assertEquals ( 0 , OsRepositoryImpl.INSTANCE.getWindowsOss ( ) . size ( ) ) ; }

Target:
public void testGetWindowsOss ( ) { org.junit.jupiter.api.Assertions.assertEquals ( 0 , OsRepositoryImpl.INSTANCE.getWindowsOss ( ) . size ( ) ) ; }
Source:
public void setQuotaName ( java.lang.String value ) { this . mVmStatic.setQuotaName ( value ) ; }

Target:
public java.lang.String getDescription ( ) { return this . getVmDescription ( ) ; }
Source:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.SetSafeNetworkConfigVDSCommand.getBroker ( ) . setSafeNetworkConfig ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.SetSafeNetworkConfigVDSCommand.ProceedProxyReturnValue ( ) ; }

Target:
protected void ExecuteVdsBrokerCommand ( ) { status = org.ovirt.engine.core.vdsbroker.vdsbroker.SetSafeNetworkConfigVDSCommand.getBroker ( ) . setSafeNetworkConfig ( ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.SetSafeNetworkConfigVDSCommand.proceedProxyReturnValue ( ) ; }
Source:
public void testGetNotFound ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( null ) ; try { resource.get ( ) ; fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }

Target:
public void testGetNotFound ( ) throws java.lang.Exception { setUriInfo ( setUpBasicUriExpectations ( ) ) ; setUpEntityQueryExpectations ( null ) ; try { resource.get ( ) ; org.junit.Assert.fail ( "expected WebApplicationException" ) ; } catch ( javax.ws.rs.WebApplicationException wae ) { verifyNotFoundException ( wae ) ; } }
Source:
protected void ExecuteVdsBrokerCommand ( ) { mVmReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.PauseVDSCommand.getBroker ( ) . pause ( mVmId.toString ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.PauseVDSCommand.proceedProxyReturnValue ( ) ; setReturnValue ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.buildVMDynamicData ( mVmReturn.mVm ) . getStatus ( ) ) ; }

Target:
protected void executeVdsBrokerCommand ( ) { mVmReturn = org.ovirt.engine.core.vdsbroker.vdsbroker.PauseVDSCommand.getBroker ( ) . pause ( mVmId.toString ( ) ) ; org.ovirt.engine.core.vdsbroker.vdsbroker.PauseVDSCommand.proceedProxyReturnValue ( ) ; setReturnValue ( org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.buildVMDynamicData ( mVmReturn.mVm ) . getStatus ( ) ) ; }
Source:
public void testRemoveNetworkAndReassignRolesMigration ( ) { networkCluster.setMigration ( true ) ; testRemoveNetworkAndReassignRoles ( ) ; org.mockito.Mockito.verify ( networkClusterDao ) . update ( org.mockito.ArgumentMatchers.same ( managementNetworkCluster ) ) ; org.junit.Assert.assertTrue ( managementNetworkCluster.isMigration ( ) ) ; }

Target:
public void testRemoveNetworkAndReassignRolesMigration ( ) { networkCluster.setMigration ( true ) ; testRemoveNetworkAndReassignRoles ( ) ; org.mockito.Mockito.verify ( networkClusterDao ) . update ( org.mockito.ArgumentMatchers.same ( managementNetworkCluster ) ) ; org.junit.jupiter.api.Assertions.assertTrue ( managementNetworkCluster.isMigration ( ) ) ; }
Source:
public void testIgnoreCaseOn ( ) { org.ovirt.engine.core.compat.Regex regex = new org.ovirt.engine.core.compat.Regex ( "[A-Z]" , RegexOptions.IgnoreCase ) ; org.junit.Assert.assertTrue ( "A cap should match" , regex.isMatch ( "K" ) ) ; org.junit.Assert.assertTrue ( "A lowercase should match" , regex.isMatch ( "k" ) ) ; }

Target:
public void testIgnoreCaseOn ( ) { org.ovirt.engine.core.compat.Regex regex = new org.ovirt.engine.core.compat.Regex ( "[A-Z]" , RegexOptions.IgnoreCase ) ; org.junit.jupiter.api.Assertions.assertTrue ( regex.isMatch ( "K" ) , "A cap should match" ) ; org.junit.jupiter.api.Assertions.assertTrue ( regex.isMatch ( "k" ) , "A lowercase should match" ) ; }
Source:
public void testGetAsyncTaskIdsByStoragePoolId ( ) { java.util.List < org.ovirt.engine.core.compat.Guid > guids = dao.getAsyncTaskIdsByStoragePoolId ( FixturesTool.STORAGE_POOL_RHEL6_ISCSI_OTHER ) ; org.junit.Assert.assertNotNull ( guids ) ; org.junit.Assert.assertEquals ( 2 , guids.size ( ) ) ; }

Target:
public void testGetAsyncTaskIdsByStoragePoolId ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.AsyncTask > tasks = dao.getAsyncTaskIdsByStoragePoolId ( FixturesTool.STORAGE_POOL_RHEL6_ISCSI_OTHER ) ; org.junit.Assert.assertNotNull ( tasks ) ; org.junit.Assert.assertEquals ( 2 , tasks.size ( ) ) ; }
Source:
private java.lang.String getConfiguration ( final javax.servlet.http.HttpServletRequest request ) { org.codehaus.jackson.node.ObjectNode node = mapper.createObjectNode ( ) ; node.put ( "value" , org.ovirt.engine.core.utils.servlet.ServletUtils.getBaseContextPath ( request ) ) ; return node.toString ( ) ; }

Target:
private java.lang.String getValueObject ( final java.lang.String value ) { org.codehaus.jackson.node.ObjectNode node = mapper.createObjectNode ( ) ; node.put ( "value" , value ) ; return node.toString ( ) ; }
Source:
public java.lang.String toString ( ) { if ( ! ( valid ) ) { return null ; } java.lang.String uri = new java.lang.String ( ) ; if ( ! ( scheme.isEmpty ( ) ) ) { uri += ( scheme ) + "://" ; } uri += authority.toString ( ) ; uri += path ; return uri ; }

Target:
public java.lang.String getStringRepresentation ( ) { if ( ! ( valid ) ) { return null ; } java.lang.String uri = new java.lang.String ( ) ; if ( ! ( scheme.isEmpty ( ) ) ) { uri += ( scheme ) + "://" ; } uri += authority.getStringRepresentation ( ) ; uri += path ; return uri ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeSnapshotDelete ( java.lang.String volumeName ) ;

Target:
public java.util.Map < java.lang.String , java.lang.Object > glusterVolumeGeoRepSessionStop ( java.lang.String volumeName , java.lang.String remoteHost , java.lang.String remoteVolumeName , java.lang.String userName , java.lang.Boolean force ) ;
Source:
public void saveAsyncTaskToDb ( final org.ovirt.engine.core.common.businessentities.AsyncTasks asyncTask ) { org.ovirt.engine.core.dal.dbbroker.DbFacade.getInstance ( ) . getAsyncTaskDao ( ) . save ( asyncTask ) ; persistCommand ( copyToCommandEntity ( asyncTask , commandsCache.get ( asyncTask.getCommandId ( ) ) ) ) ; }

Target:
public java.util.List < org.ovirt.engine.core.common.businessentities.AsyncTasks > getAllAsyncTasksFromDb ( ) { return coCoAsyncTaskHelper.getAllAsyncTasksFromDb ( this ) ; }
Source:
public void nGuidCtorNull ( ) { final org.ovirt.engine.core.compat.Guid n = null ; b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( n ) ; final org.ovirt.engine.core.compat.Guid g = b.getVdsId ( ) ; org.junit.Assert.assertEquals ( Guid.Empty , g ) ; }

Target:
public void nGuidCtorNull ( ) { final org.ovirt.engine.core.compat.Guid n = null ; b = new org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase ( n ) ; final org.ovirt.engine.core.compat.Guid g = b.getVdsId ( ) ; org.junit.jupiter.api.Assertions.assertEquals ( Guid.Empty , g ) ; }
Source:
public void save ( org.ovirt.engine.core.common.businessentities.DbGroup group ) { if ( org.ovirt.engine.core.compat.Guid.isNullOrEmpty ( group.getId ( ) ) ) { group.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; } insertOrUpdate ( group , "InsertGroup" ) ; }

Target:
public void save ( org.ovirt.engine.core.common.businessentities.aaa.DbGroup group ) { if ( org.ovirt.engine.core.compat.Guid.isNullOrEmpty ( group.getId ( ) ) ) { group.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; } insertOrUpdate ( group , "InsertGroup" ) ; }
Source:
public void canDoAction_vmNotExists_Test ( ) { org.mockito.Mockito.doReturn ( null ) . when ( vmStaticDao ) . get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_INVALID_VM_FOR_AFFINITY_GROUP ) ; }

Target:
public void validate_vmNotExists_Test ( ) { org.mockito.Mockito.doReturn ( null ) . when ( vmStaticDao ) . get ( org.mockito.Matchers.any ( org.ovirt.engine.core.compat.Guid.class ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_INVALID_VM_FOR_AFFINITY_GROUP ) ; }
Source:
public static void Alert ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable , org.ovirt.engine.core.common.AuditLogType logType , java.lang.String message ) { org.ovirt.engine.core.dal.dbbroker.auditloghandling.AlertDirector.auditLogDirector.log ( auditLogable , logType , message ) ; }

Target:
public static void Alert ( org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase auditLogable , org.ovirt.engine.core.common.AuditLogType logType , org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector auditLogDirector , java.lang.String message ) { auditLogDirector.log ( auditLogable , logType , message ) ; }
Source:
public void zeroMtuWhenSupported ( ) throws java.lang.Exception { mtuValidTest ( ValidationResult.VALID , 0 , true ) ; }

Target:
public void nonZeroMtuWhenNotSupported ( ) throws java.lang.Exception { mtuValidTest ( org.ovirt.engine.core.bll.validator.ValidationResultMatchers.failsWith ( VdcBllMessages.NETWORK_MTU_OVERRIDE_NOT_SUPPORTED ) , 1 , false ) ; }
Source:
private org.ovirt.engine.core.common.businessentities.AsyncTasks createAsyncTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return org.ovirt.engine.core.bll.tasks.TaskManagerUtil.createAsyncTask ( this , asyncTaskCreationInfo , parentCommand ) ; }

Target:
private org.ovirt.engine.core.common.businessentities.AsyncTask createAsyncTask ( org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return org.ovirt.engine.core.bll.tasks.CommandCoordinatorUtil.createAsyncTask ( this , asyncTaskCreationInfo , parentCommand ) ; }
Source:
public void canDoAction_vmNameExists_Test ( ) { org.mockito.Mockito.doReturn ( new org.ovirt.engine.core.common.scheduling.AffinityGroup ( ) ) . when ( affinityGroupDao ) . getByName ( org.mockito.Matchers.anyString ( ) ) ; org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionFailure ( command , EngineMessage.ACTION_TYPE_FAILED_AFFINITY_GROUP_NAME_EXISTS ) ; }

Target:
public void validate_vmNameExists_Test ( ) { org.mockito.Mockito.doReturn ( new org.ovirt.engine.core.common.scheduling.AffinityGroup ( ) ) . when ( affinityGroupDao ) . getByName ( org.mockito.Matchers.anyString ( ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_AFFINITY_GROUP_NAME_EXISTS ) ; }
Source:
public java.lang.String getConstantStyleName ( org.ovirt.api.metamodel.concepts.Name name ) { return name.words ( ) . map ( java.lang.String :: toUpperCase ) . collect ( java.util.stream.Collectors.joining ( "_" ) ) ; }

Target:
public java.lang.String getFileStyleName ( org.ovirt.api.metamodel.concepts.Name name ) { return names.getLowerJoined ( name , "_" ) ; }
Source:
protected java.lang.String testKeyStorePath ( ) { return "src/test/resources/pki/ca.jks" ; }

Target:
protected java.lang.String testTrustStoreFile ( ) { return "src/test/resources/pki/ca.jks" ; }
Source:
public void testFailedAutoStartVms ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllFailedAutoStartVms ( ) ; org.junit.Assert.assertNotNull ( result ) ; org.junit.Assert.assertEquals ( "wrong number of failed HA VMs" , 1 , result.size ( ) ) ; }

Target:
public void testFailedAutoStartVms ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.VM > result = dao.getAllFailedAutoStartVms ( ) ; org.junit.jupiter.api.Assertions.assertNotNull ( result ) ; org.junit.jupiter.api.Assertions.assertEquals ( 1 , result.size ( ) , "wrong number of failed HA VMs" ) ; }
Source:
public void testGetTagIdAndChildrenIdsNotExists ( ) { org.ovirt.engine.core.common.businessentities.Tags tag = createTag ( "tag1" , "desc1" ) ; java.lang.String idsStr = tagsDirector.getTagIdAndChildrenIds ( tag.gettag_id ( ) ) ; org.junit.Assert.assertEquals ( StringUtils.EMPTY , idsStr ) ; }

Target:
public void testGetTagIdAndChildrenIdsNotExists ( ) { org.ovirt.engine.core.common.businessentities.Tags tag = createTag ( "tag1" , "desc1" ) ; java.lang.String idsStr = tagsDirector.getTagIdAndChildrenIds ( tag.getTagId ( ) ) ; org.junit.Assert.assertEquals ( StringUtils.EMPTY , idsStr ) ; }
Source:
protected org.ovirt.engine.ui.uicommonweb.UICommand resolveCommand ( ) { return getDetailModel ( ) . getRemoveCommand ( ) ; }

Target:
public void setNetworkClickHandler ( com.google.gwt.cell.client.FieldUpdater < org.ovirt.engine.core.common.businessentities.network.NetworkView , java.lang.String > fieldUpdater ) { nameColumn.setFieldUpdater ( fieldUpdater ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.AsyncTask getAsyncTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.bll.CommandBase < ? > command , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.VdcActionType parentCommand ) { return coCoAsyncTaskHelper.getAsyncTask ( taskId , command , asyncTaskCreationInfo , parentCommand ) ; }

Target:
public org.ovirt.engine.core.common.businessentities.AsyncTask getAsyncTask ( org.ovirt.engine.core.compat.Guid taskId , org.ovirt.engine.core.bll.CommandBase < ? > command , org.ovirt.engine.core.common.asynctasks.AsyncTaskCreationInfo asyncTaskCreationInfo , org.ovirt.engine.core.common.action.ActionType parentCommand ) { return coCoAsyncTaskHelper.getAsyncTask ( taskId , command , asyncTaskCreationInfo , parentCommand ) ; }
Source:
private boolean GetDomainAvailability ( ) { boolean hasDomain = ( GetUserNameParts ( ( ( java.lang.String ) ( getUserName ( ) . getEntity ( ) ) ) ) [ 1 ] ) != null ; return ! hasDomain ; }

Target:
private boolean getDomainAvailability ( ) { boolean hasDomain = ( getUserNameParts ( ( ( java.lang.String ) ( getUserName ( ) . getEntity ( ) ) ) ) [ 1 ] ) != null ; return ! hasDomain ; }
Source:
public javax.ws.rs.core.Response updateOvfStore ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.ProcessOvfUpdateForStorageDomainCommandParameters params = new org.ovirt.engine.core.common.action.ProcessOvfUpdateForStorageDomainCommandParameters ( ) ; params.setStorageDomainId ( guid ) ; return performAction ( VdcActionType.ProcessOvfUpdateForStorageDomain , params ) ; }

Target:
public javax.ws.rs.core.Response updateOvfStore ( org.ovirt.engine.api.model.Action action ) { org.ovirt.engine.core.common.action.StorageDomainParametersBase params = new org.ovirt.engine.core.common.action.StorageDomainParametersBase ( guid ) ; return performAction ( VdcActionType.UpdateOvfStoreForStorageDomain , params ) ; }
Source:
public void canDoAction_succeed_Test ( ) { org.ovirt.engine.core.bll.CanDoActionTestUtils.runAndAssertCanDoActionSuccess ( command ) ; org.mockito.Mockito.verify ( command , org.mockito.Mockito.times ( 1 ) ) . validateParameters ( ) ; }

Target:
public void validate_succeed_Test ( ) { org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateSuccess ( command ) ; org.mockito.Mockito.verify ( command , org.mockito.Mockito.times ( 1 ) ) . validateParameters ( ) ; }
Source:
public void testGetStorageDomainWithStatusForInvalidPool ( ) { org.ovirt.engine.core.common.businessentities.StorageDomain result = dao.getStorageDomain ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , existingDomain.getStorageDomainType ( ) , existingDomain.getStatus ( ) ) ; org.junit.Assert.assertNull ( result ) ; }

Target:
public void testGetStorageDomainWithStatusForInvalidPool ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.StorageDomain > result = dao.getStorageDomains ( org.ovirt.engine.core.compat.Guid.newGuid ( ) , existingDomain.getStorageDomainType ( ) , existingDomain.getStatus ( ) ) ; org.junit.Assert.assertTrue ( result.isEmpty ( ) ) ; }
Source:
public void testNonExistingStorageDomain ( ) { org.mockito.Mockito.doReturn ( null ) . when ( command ) . executeHSMGetStorageDomainInfo ( org.mockito.Matchers.any ( org.ovirt.engine.core.common.vdscommands.HSMGetStorageDomainInfoVDSCommandParameters.class ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_NOT_EXIST ) ; }

Target:
public void testNonExistingStorageDomain ( ) { org.mockito.Mockito.doReturn ( null ) . when ( command ) . executeHSMGetStorageDomainInfo ( org.mockito.ArgumentMatchers.any ( org.ovirt.engine.core.common.vdscommands.HSMGetStorageDomainInfoVDSCommandParameters.class ) ) ; org.ovirt.engine.core.bll.ValidateTestUtils.runAndAssertValidateFailure ( command , EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_NOT_EXIST ) ; }
Source:
public static void proceedLUNInDb ( final org.ovirt.engine.core.common.businessentities.LUNs lun , org.ovirt.engine.core.common.businessentities.StorageType storageType ) { org.ovirt.engine.core.bll.storage.StorageDomainCommandBase.proceedLUNInDb ( lun , storageType , "" ) ; }

Target:
public static void proceedLUNInDb ( final org.ovirt.engine.core.common.businessentities.storage.LUNs lun , org.ovirt.engine.core.common.businessentities.storage.StorageType storageType ) { org.ovirt.engine.core.bll.storage.StorageDomainCommandBase.proceedLUNInDb ( lun , storageType , "" ) ; }
Source:
public void setSize ( int value ) { if ( ( size ) != value ) { size = value ; OnPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Size" ) ) ; } }

Target:
public void setSize ( int value ) { if ( ( size ) != value ) { size = value ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "Size" ) ) ; } }
Source:
protected void executeCommand ( ) { if ( ( org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand.getVds ( ) ) == null ) { return ; } vdsInitialStatus = org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand.getVds ( ) . getStatus ( ) ; installHost ( ) ; }

Target:
protected void executeCommand ( ) { if ( ( org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand.getVds ( ) ) == null ) { return ; } org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand.reestablishConnectionIfNeeded ( ) ; vdsInitialStatus = org.ovirt.engine.core.bll.hostdeploy.InstallVdsInternalCommand.getVds ( ) . getStatus ( ) ; installHost ( ) ; }
Source:
public org.ovirt.engine.core.vdsbroker.monitoring.VdsmVm setvNumaNodeStatisticsList ( java.util.List < org.ovirt.engine.core.common.businessentities.VmNumaNode > vNumaNodeStatisticsList ) { this . vNumaNodeStatisticsList = vNumaNodeStatisticsList ; return this ; }

Target:
public org.ovirt.engine.core.vdsbroker.monitoring.VdsmVm setDevicesHash ( java.lang.String devicesHash ) { this . devicesHash = devicesHash ; return this ; }
Source:
public void setStatus ( org.ovirt.engine.ui.uicommonweb.models.EntityModel statusLabel ) { this . status = statusLabel ; }

Target:
public void setStopTimeVisible ( boolean stopTimeVisible ) { this . stopTimeVisible = stopTimeVisible ; onPropertyChanged ( new org.ovirt.engine.ui.uicompat.PropertyChangedEventArgs ( "STOP_TIME_UPDATED" ) ) ; }
Source:
private static org.ovirt.engine.core.common.businessentities.DiskImage createSparseDiskImage ( ) { org.ovirt.engine.core.common.businessentities.DiskImage image = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; image.setvolume_type ( VolumeType.Sparse ) ; image.setDiskInterface ( DiskInterface.IDE ) ; return image ; }

Target:
private static org.ovirt.engine.core.common.businessentities.DiskImage createSparseDiskImage ( ) { org.ovirt.engine.core.common.businessentities.DiskImage image = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; image.setVolumeType ( VolumeType.Sparse ) ; image.setDiskInterface ( DiskInterface.IDE ) ; return image ; }
Source:
java.lang.String integerValidationNumberBetweenInvalidReason ( java.lang.String prefixMsg , int min , int max ) ;

Target:
java.lang.String integerValidationNumberGreaterInvalidReason ( java.lang.String prefixMsg , int min ) ;
Source:
private static org.ovirt.engine.core.common.businessentities.DiskImage createDisk ( ) { org.ovirt.engine.core.common.businessentities.DiskImage disk = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; disk.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; return disk ; }

Target:
private static org.ovirt.engine.core.common.businessentities.DiskImage createDiskImage ( ) { org.ovirt.engine.core.common.businessentities.DiskImage disk = new org.ovirt.engine.core.common.businessentities.DiskImage ( ) ; disk.setId ( org.ovirt.engine.core.compat.Guid.newGuid ( ) ) ; return disk ; }
Source:
public void testGetAllFromDisksIncludingSnapshotsByDiskIdForPrivilegedUserWithFilter ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > result = dao.getAllFromDisksIncludingSnapshotsByDiskId ( FixturesTool.IMAGE_GROUP_ID , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; org.junit.Assert.assertEquals ( "wrong number of returned disks" , 4 , result.size ( ) ) ; }

Target:
public void testGetAllFromDisksIncludingSnapshotsByDiskIdForPrivilegedUserWithFilter ( ) { java.util.List < org.ovirt.engine.core.common.businessentities.storage.Disk > result = dao.getAllFromDisksIncludingSnapshotsByDiskId ( FixturesTool.IMAGE_GROUP_ID , org.ovirt.engine.core.dao.PRIVILEGED_USER_ID , true ) ; org.junit.jupiter.api.Assertions.assertEquals ( 4 , result.size ( ) , "wrong number of returned disks" ) ; }
Source:
public org.ovirt.engine.core.compat.NGuid getRunOnVds ( ) { return this . vmDynamic.getrun_on_vds ( ) ; }

Target:
public void setAcpiEnable ( java.lang.Boolean value ) { this . vmDynamic.setAcpiEnable ( value ) ; }
Source:
public void testGetWithTrailingSlash ( ) { doTestGet ( ApplicationMode.AllModes , ( ( org.ovirt.engine.api.restapi.resource.BackendApiResourceTest.URI_BASE ) + "/" ) ) ; }

Target:
public void testGetWithTrailingSlashVirtOnly ( ) { doTestGet ( ApplicationMode.VirtOnly ) ; }
Source:
private void checkLabels ( org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig vfsConfig , int numOfLabels ) { checkLabels ( vfsConfig.getLabels ( ) , numOfLabels ) ; }

Target:
private void checkLabels ( org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig vfsConfig , int numOfLabels ) { checkLabels ( vfsConfig.getNetworkLabels ( ) , numOfLabels ) ; }
Source:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase behavior = this ; behavior.maxCpusPerSocket = ( ( java.lang.Integer ) ( returnValue ) ) ; behavior.totalCpuCoresChanged ( ) ; }

Target:
public void onSuccess ( java.lang.Object target , java.lang.Object returnValue ) { org.ovirt.engine.ui.uicommonweb.models.vms.VmModelBehaviorBase behavior = this ; behavior.maxCpusPerSocket = ( ( java.lang.Integer ) ( returnValue ) ) ; behavior.postUpdateNumOfSockets3 ( ) ; }
Source:
public void setViewFilterType ( org.ovirt.engine.ui.uicommonweb.models.networks.NetworkVmFilter viewFilterType ) { this . viewFilterType = viewFilterType ; Search ( ) ; }

Target:
public void setViewFilterType ( org.ovirt.engine.ui.uicommonweb.models.networks.NetworkVmFilter viewFilterType ) { this . viewFilterType = viewFilterType ; search ( ) ; }
Source:
public void removeTabWidget ( com.google.gwt.user.client.ui.Widget tabWidget ) { getView ( ) . removeTabWidget ( tabWidget ) ; }

Target:
public void removeTabWidget ( com.google.gwt.user.client.ui.IsWidget tabWidget ) { tabBar.removeTabWidget ( tabWidget ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( C value , com.google.gwt.dom.client.Element parent ) { return getTooltip ( value ) ; }

Target:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( C value , com.google.gwt.dom.client.Element parent , com.google.gwt.dom.client.NativeEvent event ) { return getTooltip ( value ) ; }
Source:
public org.ovirt.engine.core.bll.CommandBase < ? > retrieveCommand ( org.ovirt.engine.core.compat.Guid commandId ) ;

Target:
void removeAllCommandsInHierarchy ( org.ovirt.engine.core.compat.Guid commandId ) ;
Source:
public org.ovirt.engine.core.bll.ValidationResult networkIsSet ( ) { return ( network ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.NETWORK_NOT_EXISTS ) : org.ovirt.engine.core.bll.ValidationResult.VALID ; }

Target:
public org.ovirt.engine.core.bll.ValidationResult networkIsSet ( ) { return org.ovirt.engine.core.bll.ValidationResult.failWith ( VdcBllMessages.NETWORK_NOT_EXISTS ) . when ( ( ( network ) == null ) ) ; }
Source:
public void setName ( java.lang.String value ) { this . name = value ; }

Target:
public void setName ( java.lang.String value ) { this . name = ( value == null ) ? "" : value ; }
Source:
public void testGetFullPath_nullParameter ( ) { java.lang.String fullPath = testServlet.getFullPath ( mockFile , null ) ; org.junit.Assert.assertNull ( "Path should be null" , fullPath ) ; }

Target:
public void testGetFullPath_SaneParameter ( ) { java.io.File file = testServlet.getFile ( mockFile , "/branding/test" ) ; org.junit.Assert.assertNotNull ( "Path should not be null" , file ) ; org.junit.Assert.assertEquals ( "Path should be '/abs/test/branding/test'" , "/abs/test/branding/test" , file.getAbsolutePath ( ) ) ; }
Source:
public void Template_SelectedItemChanged ( ) { super . Template_SelectedItemChanged ( ) ; getModel ( ) . setIsDisksAvailable ( true ) ; updateHostPinning ( pool.getMigrationSupport ( ) ) ; }

Target:
public void template_SelectedItemChanged ( ) { getModel ( ) . setIsDisksAvailable ( true ) ; updateHostPinning ( pool.getMigrationSupport ( ) ) ; }
Source:
public org.ovirt.engine.sdk.entities.VMs createVMs ( ) { return new org.ovirt.engine.sdk.entities.VMs ( ) ; }

Target:
public org.ovirt.engine.sdk.entities.Vms createVms ( ) { return new org.ovirt.engine.sdk.entities.Vms ( ) ; }
Source:
protected org.ovirt.engine.core.bll.ValidationResult templateExists ( ) { return ( org.ovirt.engine.core.bll.VmTemplateCommand.getVmTemplate ( ) ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.dal.VdcBllMessages.ACTION_TYPE_FAILED_TEMPLATE_DOES_NOT_EXIST ) : ValidationResult.VALID ; }

Target:
protected org.ovirt.engine.core.bll.ValidationResult templateExists ( ) { return ( org.ovirt.engine.core.bll.VmTemplateCommand.getVmTemplate ( ) ) == null ? new org.ovirt.engine.core.bll.ValidationResult ( org.ovirt.engine.core.common.errors.VdcBllMessages.ACTION_TYPE_FAILED_TEMPLATE_DOES_NOT_EXIST ) : ValidationResult.VALID ; }
Source:
public java.lang.Object Convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { return source != null ? ( ( java.lang.String ) ( source ) ) : "" ; }

Target:
public java.lang.Object convert ( java.lang.Object source , org.ovirt.engine.ui.frontend.AsyncQuery _asyncQuery ) { if ( source != null ) { return source ; } return new java.util.ArrayList < org.ovirt.engine.core.common.businessentities.VDS > ( ) ; }
Source:
private void fillNetworksAndLabelsDataOnConfig ( org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig vfsConfig ) { if ( vfsConfig == null ) { return ; } org.ovirt.engine.core.compat.Guid id = vfsConfig.getId ( ) ; vfsConfig.setNetworks ( getNetworksByVfsConfigId ( id ) ) ; vfsConfig.setLabels ( getLabelsByVfsConfigId ( id ) ) ; }

Target:
private void fillNetworksAndLabelsDataOnConfig ( org.ovirt.engine.core.common.businessentities.network.HostNicVfsConfig vfsConfig ) { org.ovirt.engine.core.compat.Guid id = vfsConfig.getId ( ) ; vfsConfig.setNetworks ( getNetworksByVfsConfigId ( id ) ) ; vfsConfig.setNetworkLabels ( getLabelsByVfsConfigId ( id ) ) ; }
Source:
public org.ovirt.engine.core.common.businessentities.SessionState getsession ( ) { return this . mVmDynamic.getsession ( ) ; }

Target:
public java.lang.Boolean getKvmEnable ( ) { return this . vmDynamic.getkvm_enable ( ) ; }
Source:
public void disableCifs ( ) { accessProtocols.remove ( AccessProtocol.CIFS ) ; setOption ( GlusterConstants.OPTION_USER_CIFS , GlusterConstants.OFF ) ; }

Target:
public void disableCifs ( ) { accessProtocols.remove ( AccessProtocol.CIFS ) ; setOption ( GlusterConstants.OPTION_USER_CIFS , GlusterConstants.DISABLE ) ; }
Source:
public void testUnknownQuery ( ) throws java.lang.Exception { org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery query = new org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery ( org.mockito.Mockito.mock ( org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class ) ) ; junit.framework.Assert.assertEquals ( "Wrong type for 'ThereIsNoSuchQuery' " , VdcQueryType.Unknown , org.ovirt.engine.core.bll.TestHelperQueriesCommandType.getQueryTypeFieldValue ( query ) ) ; }

Target:
public void testUnknownQuery ( ) throws java.lang.Exception { org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery query = new org.ovirt.engine.core.bll.QueriesCommandBaseTest.ThereIsNoSuchQuery ( org.mockito.Mockito.mock ( org.ovirt.engine.core.common.queries.VdcQueryParametersBase.class ) ) ; org.junit.Assert.assertEquals ( "Wrong type for 'ThereIsNoSuchQuery' " , VdcQueryType.Unknown , org.ovirt.engine.core.bll.TestHelperQueriesCommandType.getQueryTypeFieldValue ( query ) ) ; }
Source:
public static org.ovirt.engine.core.common.businessentities.network.NetworkInterface findInterfaceNetworkNameNotEmpty ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.NetworkInterface > items ) { for ( org.ovirt.engine.core.common.businessentities.network.NetworkInterface i : items ) { if ( ! ( org.ovirt.engine.core.compat.StringHelper.isNullOrEmpty ( i.getNetworkName ( ) ) ) ) { return i ; } } return null ; }

Target:
public static org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface findInterfaceByNetworkName ( java.util.ArrayList < org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface > items , java.lang.String name ) { for ( org.ovirt.engine.core.common.businessentities.network.VdsNetworkInterface i : items ) { if ( org.ovirt.engine.core.compat.StringHelper.stringsEqual ( i.getNetworkName ( ) , name ) ) { return i ; } } return null ; }
Source:
static void verifyModelSpecific ( org.ovirt.engine.api.model.VmPool model ) { assertNotNull ( model.getCluster ( ) ) ; assertNotNull ( model.getCluster ( ) . getId ( ) ) ; }

Target:
static void verifyModelSpecific ( org.ovirt.engine.api.model.VmPool model ) { org.junit.Assert.assertNotNull ( model.getCluster ( ) ) ; org.junit.Assert.assertNotNull ( model.getCluster ( ) . getId ( ) ) ; }
Source:
public org.ovirt.engine.core.compat.Guid getId ( ) { return this . mVmStatic.getId ( ) ; }

Target:
public void setVmPauseStatus ( org.ovirt.engine.core.common.businessentities.VmPauseStatus aPauseStatus ) { this . vmDynamic.setPauseStatus ( aPauseStatus ) ; }
Source:
public com.google.gwt.safehtml.shared.SafeHtml getTooltip ( T object ) { return null ; }

Target:
public java.lang.String getTooltip ( T object ) { return "" ; }
Source:
public org.ovirt.engine.core.utils.ISingleAsyncOperation createSingleAsyncOperation ( ) { org.ovirt.engine.core.utils.ISingleAsyncOperation tempVar = new org.ovirt.engine.core.bll.storage.pool.RefreshPoolSingleAsyncOperation ( getVdss ( ) , getStorageDomain ( ) , getStoragePool ( ) , vdsIdsToSetNonOperational ) ; return tempVar ; }

Target:
public org.ovirt.engine.core.utils.ISingleAsyncOperation createSingleAsyncOperation ( ) { return org.ovirt.engine.core.di.Injector.injectMembers ( new org.ovirt.engine.core.bll.storage.pool.RefreshPoolSingleAsyncOperation ( getVdss ( ) , getStorageDomain ( ) , getStoragePool ( ) , vdsIdsToSetNonOperational ) ) ; }
Source:
public static void updateImportedVmUsbPolicy ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { if ( ( vmBase.getos ( ) . isLinux ( ) ) && ( vmBase.getusb_policy ( ) . equals ( UsbPolicy.ENABLED_LEGACY ) ) ) { vmBase.setusb_policy ( UsbPolicy.DISABLED ) ; } }

Target:
public static void updateImportedVmUsbPolicy ( org.ovirt.engine.core.common.businessentities.VmBase vmBase ) { if ( ( vmBase.getOs ( ) . isLinux ( ) ) && ( vmBase.getUsbPolicy ( ) . equals ( UsbPolicy.ENABLED_LEGACY ) ) ) { vmBase.setUsbPolicy ( UsbPolicy.DISABLED ) ; } }