auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void run ( @ javax.annotation.Nonnull java.util.List < java.lang.String > cmdLine ) { com.android.jack.test.util.ExecuteFile exec = new com.android.jack.test.util.ExecuteFile ( cmdLine.toArray ( new java.lang.String [ cmdLine.size ( ) ] ) ) ; exec.setErr ( errRedirectStream ) ; exec.setOut ( outRedirectStream ) ; exec.setVerbose ( isVerbose ) ; try { if ( ( exec.run ( ) ) != 0 ) { throw new java.lang.RuntimeException ( "Jack compiler exited with an error" ) ; } } catch ( com.android.jack.test.util.ExecFileException e ) { throw new java.lang.RuntimeException ( "An error occurred while running Jack" , e ) ; } }

Target:
protected void run ( @ javax.annotation.Nonnull java.util.List < java.lang.String > commandLine ) { com.android.jack.test.util.ExecuteFile exec = new com.android.jack.test.util.ExecuteFile ( commandLine.toArray ( new java.lang.String [ commandLine.size ( ) ] ) ) ; exec.setErr ( errRedirectStream ) ; exec.setOut ( outRedirectStream ) ; exec.setVerbose ( isVerbose ) ; try { if ( ( exec.run ( ) ) != 0 ) { throw new java.lang.RuntimeException ( "Jack compiler exited with an error" ) ; } } catch ( com.android.jack.test.util.ExecFileException e ) { throw new java.lang.RuntimeException ( "An error occurred while running Jack" , e ) ; } }
Source:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { byte [ ] id = org.conscrypt.NativeCrypto.SSL_SESSION_session_id ( session ) ; assertNotNull ( id ) ; assertEquals ( 32 , id.length ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }

Target:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { java.lang.String v = org.conscrypt.NativeCrypto.SSL_SESSION_get_version ( session ) ; assertTrue ( StandardNames.SSL_SOCKET_PROTOCOLS.contains ( v ) ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }
Source:
public void setRadioPower ( boolean on , android.os.Message result ) { if ( on ) { setRadioState ( RadioState.RADIO_ON ) ; } else { setRadioState ( RadioState.RADIO_OFF ) ; } }

Target:
public void setRadioPower ( boolean on , android.os.Message result ) { if ( mIsRadioPowerFailResponse ) { resultFail ( result , null , new java.lang.RuntimeException ( "setRadioPower failed!" ) ) ; return ; } if ( on ) { setRadioState ( RadioState.RADIO_ON ) ; } else { setRadioState ( RadioState.RADIO_OFF ) ; } resultSuccess ( result , null ) ; }
Source:
public boolean containsValue ( @ javax.annotation.Nullable java.lang.Object value ) { for ( java.util.Iterator < com.google.common.collect.LinkedListMultimap.Node < K , V > > i = new NodeIterator ( ) ; i.hasNext ( ) ; ) { if ( com.google.common.base.Objects.equal ( i.next ( ) . value , value ) ) { return true ; } } return false ; }

Target:
public boolean containsValue ( @ javax.annotation.Nullable java.lang.Object value ) { return values ( ) . contains ( value ) ; }
Source:
public boolean matches ( com.android.voicemail.impl.CarrierIdentifier carrierIdentifier ) { if ( ! ( mccMnc ( ) . equals ( carrierIdentifier.mccMnc ( ) ) ) ) { return false ; } if ( gid1 ( ) . isPresent ( ) ) { if ( ! ( gid1 ( ) . get ( ) . equals ( carrierIdentifier.gid1 ( ) ) ) ) { return false ; } } return true ; }

Target:
public boolean matches ( com.android.voicemail.impl.CarrierIdentifier carrierIdentifier ) { if ( ! ( mccMnc ( ) . equals ( carrierIdentifier.mccMnc ( ) ) ) ) { return false ; } if ( gid1 ( ) . isPresent ( ) ) { if ( ! ( gid1 ( ) . get ( ) . equalsIgnoreCase ( carrierIdentifier.gid1 ( ) ) ) ) { return false ; } } return true ; }
Source:
public static void checkImageColor ( java.io.File imageFile , int expectedColor ) throws java.io.IOException { assertTrue ( ( ( "File '" + ( imageFile.getAbsolutePath ( ) ) ) + "' does not exist." ) , imageFile.isFile ( ) ) ; java.awt.image.BufferedImage image = javax.imageio.ImageIO.read ( imageFile ) ; int rgb = image.getRGB ( 0 , 0 ) ; assertEquals ( java.lang.String.format ( "Expected: 0x%08X, actual: 0x%08X for file %s" , expectedColor , rgb , imageFile ) , expectedColor , rgb ) ; }

Target:
public static void checkImageColor ( java.io.File imageFile , int expectedColor ) throws java.io.IOException { org.junit.Assert.assertTrue ( ( ( "File '" + ( imageFile.getAbsolutePath ( ) ) ) + "' does not exist." ) , imageFile.isFile ( ) ) ; java.awt.image.BufferedImage image = javax.imageio.ImageIO.read ( imageFile ) ; int rgb = image.getRGB ( 0 , 0 ) ; org.junit.Assert.assertEquals ( java.lang.String.format ( "Expected: 0x%08X, actual: 0x%08X for file %s" , expectedColor , rgb , imageFile ) , expectedColor , rgb ) ; }
Source:
public void test_EmptyList_sort ( ) { java.util.Collections.emptyList ( ) . sort ( ( k1 , k2 ) -> 1 ) ; }

Target:
public void test_unmodifiableList_sort ( ) { try { java.util.Collections.unmodifiableList ( new java.util.ArrayList < > ( ) ) . sort ( ( k1 , k2 ) -> 1 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } try { java.util.ArrayList l = new java.util.ArrayList ( ) ; l.add ( 1 ) ; l.add ( 2 ) ; java.util.Collections.unmodifiableList ( l ) . sort ( ( k1 , k2 ) -> 1 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } }
Source:
private void markAsReferenced ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface accessorClass , @ javax.annotation.Nonnull com.android.jack.ir.ast.JField field ) { com.android.jack.transformations.ast.inner.ReferencedFromInnerClassMarker marker = accessorClass.getMarker ( com.android.jack.transformations.ast.inner.ReferencedFromInnerClassMarker.class ) ; if ( marker == null ) { marker = new com.android.jack.transformations.ast.inner.ReferencedFromInnerClassMarker ( ) ; accessorClass.addMarker ( marker ) ; } marker.addField ( field ) ; }

Target:
private com.android.jack.transformations.ast.inner.ReferencedFromInnerClassMarker getOrCreateRFICMarker ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface accessorClass ) { com.android.jack.transformations.ast.inner.ReferencedFromInnerClassMarker marker = accessorClass.getMarker ( com.android.jack.transformations.ast.inner.ReferencedFromInnerClassMarker.class ) ; if ( marker == null ) { marker = new com.android.jack.transformations.ast.inner.ReferencedFromInnerClassMarker ( ) ; accessorClass.addMarker ( marker ) ; } return marker ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JLock lockStmt ) { com.android.jack.dx.rop.code.SourcePosition srcPosition = com.android.jack.backend.dex.rop.RopHelper.getSourcePosition ( lockStmt ) ; com.android.jack.dx.rop.code.RegisterSpec lockReg = getRegisterSpec ( lockStmt.getLockExpr ( ) ) ; com.android.jack.dx.rop.code.Insn lockInsn = new com.android.jack.dx.rop.code.ThrowingInsn ( com.android.jack.dx.rop.code.Rops.MONITOR_ENTER , srcPosition , com.android.jack.dx.rop.code.RegisterSpecList.make ( lockReg ) , getCatchTypes ( ) ) ; addInstruction ( lockInsn ) ; return false ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.cfg.JLockBlockElement element ) { addInstruction ( new com.android.jack.dx.rop.code.ThrowingInsn ( com.android.jack.dx.rop.code.Rops.MONITOR_ENTER , com.android.jack.backend.dex.rop.RopHelper.getSourcePosition ( element.getSourceInfo ( ) ) , com.android.jack.dx.rop.code.RegisterSpecList.make ( getRegisterSpec ( element.getExpression ( ) ) ) , getCatchTypes ( ) ) ) ; return false ; }
Source:
public static long determineUserType ( java.lang.Long directoryId , java.lang.Long contactId ) { if ( directoryId != null ) { return com.android.contacts.common.compat.DirectoryCompat.isEnterpriseDirectoryId ( directoryId ) ? com.android.contacts.common.ContactsUtils.USER_TYPE_WORK : com.android.contacts.common.ContactsUtils.USER_TYPE_CURRENT ; } if ( ( ( contactId != null ) && ( contactId != 0L ) ) && ( android.provider.ContactsContract.Contacts.isEnterpriseContactId ( contactId ) ) ) { return com.android.contacts.common.ContactsUtils.USER_TYPE_WORK ; } else { return com.android.contacts.common.ContactsUtils.USER_TYPE_CURRENT ; } }

Target:
public static long determineUserType ( java.lang.Long directoryId , java.lang.Long contactId ) { if ( directoryId != null ) { return com.android.dialer.common.cp2.DirectoryCompat.isEnterpriseDirectoryId ( directoryId ) ? com.android.contacts.common.ContactsUtils.USER_TYPE_WORK : com.android.contacts.common.ContactsUtils.USER_TYPE_CURRENT ; } if ( ( ( contactId != null ) && ( contactId != 0L ) ) && ( android.provider.ContactsContract.Contacts.isEnterpriseContactId ( contactId ) ) ) { return com.android.contacts.common.ContactsUtils.USER_TYPE_WORK ; } else { return com.android.contacts.common.ContactsUtils.USER_TYPE_CURRENT ; } }
Source:
public boolean isCanceled ( ) { return false ; }

Target:
public void createConfigFile ( ) { com.android.ide.eclipse.adt.internal.editors.layout.configuration.LayoutCreatorDialog dialog = new com.android.ide.eclipse.adt.internal.editors.layout.configuration.LayoutCreatorDialog ( mConfigChooser.getShell ( ) , mEditedFile.getName ( ) , mConfigChooser.getConfiguration ( ) . getFullConfig ( ) ) ; if ( ( dialog.open ( ) ) != ( org.eclipse.jface.window.Window.OK ) ) { return ; } com.android.ide.common.resources.configuration.FolderConfiguration config = new com.android.ide.common.resources.configuration.FolderConfiguration ( ) ; dialog.getConfiguration ( config ) ; com.android.ide.eclipse.adt.internal.editors.layout.gle2.CreateNewConfigJob job = new com.android.ide.eclipse.adt.internal.editors.layout.gle2.CreateNewConfigJob ( this , mEditedFile , config ) ; job.schedule ( ) ; }
Source:
public int hashCode ( ) { int result = 17 ; result = ( 31 * result ) + ( mSupport5gBand ? 1 : 0 ) ; result = ( 31 * result ) + ( mMasterPreference ) ; result = ( 31 * result ) + ( mClusterLow ) ; result = ( 31 * result ) + ( mClusterHigh ) ; return result ; }

Target:
public int hashCode ( ) { int result = 17 ; result = ( 31 * result ) + ( mSupport5gBand ? 1 : 0 ) ; result = ( 31 * result ) + ( mMasterPreference ) ; result = ( 31 * result ) + ( mClusterLow ) ; result = ( 31 * result ) + ( mClusterHigh ) ; result = ( 31 * result ) + ( java.util.Arrays.hashCode ( mDiscoveryWindowInterval ) ) ; return result ; }
Source:
private com.android.jack.ir.ast.JExpressionStatement makeRequestCall ( com.android.jack.ir.sourceinfo.SourceInfo info ) { assert ( ( ( lockClass ) != null ) && ( ( requestClass ) != null ) ) && ( ( requestMethodId ) != null ) ; return new com.android.jack.ir.ast.JExpressionStatement ( info , new com.android.jack.ir.ast.JMethodCall ( info , null , requestClass , requestMethodId , false ) ) ; }

Target:
private com.android.jack.ir.ast.JExpressionStatement makeRequestCall ( int lockIndex , com.android.jack.ir.sourceinfo.SourceInfo info ) { assert ( ( ( lockClass [ lockIndex ] ) != null ) && ( ( requestClass [ lockIndex ] ) != null ) ) && ( ( requestMethodId [ lockIndex ] ) != null ) ; return new com.android.jack.ir.ast.JExpressionStatement ( info , new com.android.jack.ir.ast.JMethodCall ( info , null , requestClass [ lockIndex ] , requestMethodId [ lockIndex ] , false ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { logd ( "CarrierSignalAgentTest +Setup!" ) ; super . setUp ( getClass ( ) . getSimpleName ( ) ) ; mCarrierSignalAgentUT = new com.android.internal.telephony.CarrierSignalAgent ( mPhone ) ; mBundle = mContextFixture.getCarrierConfigBundle ( ) ; logd ( "CarrierSignalAgentTest -Setup!" ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { logd ( "CarrierSignalAgentTest +Setup!" ) ; super . setUp ( getClass ( ) . getSimpleName ( ) ) ; mBundle = mContextFixture.getCarrierConfigBundle ( ) ; mCarrierSignalAgentHandler = new com.android.internal.telephony.CarrierSignalAgentTest.CarrierSignalAgentHandler ( getClass ( ) . getSimpleName ( ) ) ; mCarrierSignalAgentHandler.start ( ) ; waitUntilReady ( ) ; logd ( "CarrierSignalAgentTest -Setup!" ) ; }
Source:
final void ensureBootCompleted ( ) { boolean booting ; boolean enableScreen ; synchronized ( this ) { booting = mBooting ; mBooting = false ; enableScreen = ! ( mBooted ) ; mBooted = true ; } if ( booting ) { finishBooting ( ) ; } if ( enableScreen ) { enableScreenAfterBoot ( ) ; } }

Target:
public void bootAnimationComplete ( ) { final boolean callFinishBooting ; synchronized ( this ) { callFinishBooting = mCallFinishBooting ; mBootAnimationComplete = true ; } if ( callFinishBooting ) { android.os.Trace.traceBegin ( Trace.TRACE_TAG_ACTIVITY_MANAGER , "FinishBooting" ) ; finishBooting ( ) ; android.os.Trace.traceEnd ( Trace.TRACE_TAG_ACTIVITY_MANAGER ) ; } }
Source:
static void triggerArrayOOM ( ) { int size = ( 1 * 1024 ) * 1024 ; char [ ] [ ] holder = new char [ size ] [ ] ; int count = Main.ArrayMemEater.blowup ( holder , size ) ; Main.ArrayMemEater.confuseCompilerOptimization ( holder ) ; if ( count < size ) { java.lang.System.out.println ( "Array allocation failed" ) ; } }

Target:
public static void main ( java.lang.String [ ] args ) { if ( Main.triggerArrayOOM ( ) ) { java.lang.System.out.println ( "NEW_ARRAY correctly threw OOME" ) ; } if ( Main.triggerInstanceOOM ( ) ) { java.lang.System.out.println ( "NEW_INSTANCE correctly threw OOME" ) ; } }
Source:
public void dispatchMediaKeyEventUnderWakelock ( android.view.KeyEvent keyEvent ) { mMediaFocusControl.dispatchMediaKeyEventUnderWakelock ( keyEvent ) ; }

Target:
public void notifyVolumeControllerVisible ( final android.media.IVolumeController controller , boolean visible ) { enforceSelfOrSystemUI ( "notify about volume controller visibility" ) ; if ( ! ( mVolumeController.isSameBinder ( controller ) ) ) { return ; } mVolumeController.setVisible ( visible ) ; if ( android.media.AudioService.DEBUG_VOL ) android.util.Log.d ( android.media.AudioService.TAG , ( "Volume controller visible: " + visible ) ) ; }
Source:
public E set ( int index , E element ) { synchronized ( l.lock ) { rangeCheck ( index ) ; checkForComodification ( ) ; E x = l.set ( ( index + ( offset ) ) , element ) ; expectedArray = l.getArray ( ) ; return x ; } }

Target:
public boolean addAll ( int index , java.util.Collection < ? extends E > collection ) { synchronized ( this ) { slice.checkPositionIndex ( index ) ; slice.checkConcurrentModification ( elements ) ; int oldSize = elements.length ; boolean result = this . addAll ( ( index + ( slice.from ) ) , collection ) ; slice = new java.util.concurrent.CopyOnWriteArrayList.Slice ( elements , slice.from , ( ( slice.to ) + ( ( elements.length ) - oldSize ) ) ) ; return result ; } }
Source:
public boolean visitReturn ( lombok.ast.Return node ) { lombok.ast.Expression value = node.astValue ( ) ; if ( value instanceof lombok.ast.VariableReference ) { com.android.tools.lint.client.api.JavaParser.ResolvedNode resolved = mContext.resolve ( value ) ; if ( ( resolved != null ) && ( mVariables.contains ( resolved ) ) ) { mEscapes = true ; } } return super . visitReturn ( node ) ; }

Target:
public void visitReturnStatement ( com.intellij.psi.PsiReturnStatement statement ) { com.intellij.psi.PsiExpression returnValue = statement.getReturnValue ( ) ; if ( returnValue instanceof com.intellij.psi.PsiReference ) { com.intellij.psi.PsiElement resolved = ( ( com.intellij.psi.PsiReference ) ( returnValue ) ) . resolve ( ) ; if ( ( resolved != null ) && ( mVariables.contains ( resolved ) ) ) { mEscapes = true ; } } super . visitReturnStatement ( statement ) ; }
Source:
public com.google.common.util.concurrent.ListenableFuture < com.google.common.collect.ImmutableMap < com.android.dialer.DialerPhoneNumber , com.android.dialer.phonelookup.PhoneLookupInfo.DialerBlockedNumberInfo > > getMostRecentInfo ( com.google.common.collect.ImmutableMap < com.android.dialer.DialerPhoneNumber , com.android.dialer.phonelookup.PhoneLookupInfo.DialerBlockedNumberInfo > existingInfoMap ) { com.android.dialer.common.LogUtil.enterBlock ( "DialerBlockedNumberPhoneLookup.getMostRecentPhoneLookupInfo" ) ; return executorService.submit ( ( ) -> queryNumbers ( existingInfoMap.keySet ( ) ) ) ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < com.google.common.collect.ImmutableMap < com.android.dialer.DialerPhoneNumber , com.android.dialer.phonelookup.PhoneLookupInfo.DialerBlockedNumberInfo > > getMostRecentInfo ( com.google.common.collect.ImmutableMap < com.android.dialer.DialerPhoneNumber , com.android.dialer.phonelookup.PhoneLookupInfo.DialerBlockedNumberInfo > existingInfoMap ) { if ( com.android.dialer.blocking.FilteredNumberCompat.useNewFiltering ( appContext ) ) { return com.google.common.util.concurrent.Futures.immediateFuture ( existingInfoMap ) ; } com.android.dialer.common.LogUtil.enterBlock ( "DialerBlockedNumberPhoneLookup.getMostRecentPhoneLookupInfo" ) ; return executorService.submit ( ( ) -> queryNumbers ( existingInfoMap.keySet ( ) ) ) ; }
Source:
public void dumpHeap ( boolean managed , java.lang.String path , android.os.ParcelFileDescriptor fd ) { android.app.ActivityThread.DumpHeapData dhd = new android.app.ActivityThread.DumpHeapData ( ) ; dhd.path = path ; dhd.fd = fd ; queueOrSendMessage ( android.app.ActivityThread.H.DUMP_HEAP , dhd , ( managed ? 1 : 0 ) ) ; }

Target:
public void dumpHeap ( boolean managed , java.lang.String path , android.os.ParcelFileDescriptor fd ) { android.app.ActivityThread.DumpHeapData dhd = new android.app.ActivityThread.DumpHeapData ( ) ; dhd.path = path ; dhd.fd = fd ; sendMessage ( android.app.ActivityThread.H.DUMP_HEAP , dhd , ( managed ? 1 : 0 ) , 0 , true ) ; }
Source:
public void testUnsuccessfulFollowOnUpdate_olderVersion ( ) throws java.lang.Exception { libcore.tzdata.update2.TimeZoneBundle bundle1 = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createValidTimeZoneBundle ( libcore.tzdata.update2.TimeZoneBundleInstallerTest.NEW_RULES_VERSION , "002" ) ; assertTrue ( installer.install ( bundle1.getBytes ( ) ) ) ; assertBundleInstalled ( bundle1 ) ; libcore.tzdata.update2.TimeZoneBundle bundle2 = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createValidTimeZoneBundle ( libcore.tzdata.update2.TimeZoneBundleInstallerTest.OLDER_RULES_VERSION , "001" ) ; assertFalse ( installer.install ( bundle2.getBytes ( ) ) ) ; assertBundleInstalled ( bundle1 ) ; }

Target:
public void testInstall_unsuccessfulFollowOnUpdate_olderVersion ( ) throws java.lang.Exception { libcore.tzdata.update2.TimeZoneBundle bundle1 = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createValidTimeZoneBundle ( libcore.tzdata.update2.TimeZoneBundleInstallerTest.NEW_RULES_VERSION , "002" ) ; assertTrue ( installer.install ( bundle1.getBytes ( ) ) ) ; assertBundleInstalled ( bundle1 ) ; libcore.tzdata.update2.TimeZoneBundle bundle2 = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createValidTimeZoneBundle ( libcore.tzdata.update2.TimeZoneBundleInstallerTest.OLDER_RULES_VERSION , "001" ) ; assertFalse ( installer.install ( bundle2.getBytes ( ) ) ) ; assertBundleInstalled ( bundle1 ) ; }
Source:
public com.android.sched.util.file.Directory checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull java.lang.String string ) throws com.android.sched.util.codec.ParsingException { try { return new com.android.sched.util.file.Directory ( string , context.getRunnableHooks ( ) , existence , permissions , change ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.codec.ParsingException ( e.getMessage ( ) , e ) ; } }

Target:
public com.android.sched.util.file.Directory checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull java.lang.String string ) throws com.android.sched.util.codec.ParsingException { try { return new com.android.sched.util.file.Directory ( context.getWorkingDirectory ( ) , string , context.getRunnableHooks ( ) , existence , permissions , change ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.codec.ParsingException ( e.getMessage ( ) , e ) ; } }
Source:
public org.jetbrains.plugins.gradle.service.project.ModelBuilder < ? extends org.gradle.tooling.model.idea.IdeaProject > getModelBuilder ( @ org.jetbrains.annotations.NotNull final com.intellij.openapi.externalSystem.model.task.ExternalSystemTaskId id , @ org.jetbrains.annotations.Nullable org.jetbrains.plugins.gradle.settings.GradleExecutionSettings settings , @ org.jetbrains.annotations.NotNull org.jetbrains.plugins.gradle.service.project.ProjectConnection connection , @ org.jetbrains.annotations.NotNull com.intellij.openapi.externalSystem.model.task.ExternalSystemTaskNotificationListener listener , boolean downloadLibraries ) { return getModelBuilder ( ( downloadLibraries ? org.gradle.tooling.model.idea.IdeaProject.class : org.gradle.tooling.model.idea.BasicIdeaProject.class ) , id , settings , connection , listener ) ; }

Target:
public org.jetbrains.plugins.gradle.service.project.ModelBuilder < ? extends org.gradle.tooling.model.idea.IdeaProject > getModelBuilder ( @ org.jetbrains.annotations.NotNull final com.intellij.openapi.externalSystem.model.task.ExternalSystemTaskId id , @ org.jetbrains.annotations.Nullable org.jetbrains.plugins.gradle.settings.GradleExecutionSettings settings , @ org.jetbrains.annotations.NotNull org.jetbrains.plugins.gradle.service.project.ProjectConnection connection , @ org.jetbrains.annotations.NotNull com.intellij.openapi.externalSystem.model.task.ExternalSystemTaskNotificationListener listener , boolean downloadLibraries ) { return getModelBuilder ( ( downloadLibraries ? org.gradle.tooling.model.idea.IdeaProject.class : org.gradle.tooling.model.idea.BasicIdeaProject.class ) , id , settings , connection , listener , java.util.Collections.< java.lang.String > emptyList ( ) ) ; }
Source:
final void getUnchecked ( int pos , double [ ] dst , int dstOffset , int length ) { libcore.io.Memory.peekDoubleArray ( ix ( pos ) , dst , dstOffset , length , ( ! ( nativeByteOrder ) ) ) ; }

Target:
final void getUnchecked ( int pos , double [ ] dst , int dstOffset , int length ) { if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } libcore.io.Memory.peekDoubleArray ( ix ( pos ) , dst , dstOffset , length , ( ! ( nativeByteOrder ) ) ) ; }
Source:
public void test_getFileStore ( ) throws java.io.IOException { java.nio.file.FileStore fileStore = provider.getFileStore ( filesSetup.getDataFilePath ( ) ) ; junit.framework.TestCase.assertNotNull ( fileStore ) ; }

Target:
public void test_getFileStore ( ) throws java.io.IOException { try { provider.getFileStore ( filesSetup.getDataFilePath ( ) ) ; org.junit.Assert.fail ( ) ; } catch ( java.lang.SecurityException expected ) { } try { provider.getFileStore ( null ) ; org.junit.Assert.fail ( ) ; } catch ( java.lang.SecurityException expected ) { } }
Source:
private static java.lang.String getErrorMessage ( java.lang.String owner ) { java.lang.String className = owner.substring ( ( ( owner.lastIndexOf ( '/' ) ) + 1 ) ) ; return java.lang.String.format ( "This %1$s should be recycled after use with #recycle()" , className ) ; }

Target:
private static java.lang.String getErrorMessage ( java.lang.String owner ) { if ( com.android.tools.lint.checks.CleanupDetector.FRAGMENT_MANAGER_CLS.equals ( owner ) ) { return "This transaction should be completed with a commit() call" ; } java.lang.String className = owner.substring ( ( ( owner.lastIndexOf ( '/' ) ) + 1 ) ) ; return java.lang.String.format ( "This %1$s should be recycled after use with #recycle()" , className ) ; }
Source:
static android.renderscript.cts.CoreMathVerifier.RemainderAndQuotient remainderAndQuotient ( float numerator , float denominator ) { android.renderscript.cts.CoreMathVerifier.RemainderAndQuotient result = new android.renderscript.cts.CoreMathVerifier.RemainderAndQuotient ( ) ; if ( denominator == 0.0F ) { result.quotient = 0 ; result.remainder = java.lang.Float.NaN ; } else { result.quotient = ( ( int ) ( java.lang.StrictMath.round ( ( numerator / denominator ) ) ) ) ; result.remainder = numerator - ( ( result.quotient ) * denominator ) ; } return result ; }

Target:
public static void computeNan ( android.renderscript.cts.TestNan.ArgumentsUintFloat args ) { args.out = new android.renderscript.cts.Floaty ( java.lang.Float.NaN , 0 , 0 ) ; }
Source:
public java.util.List < ? extends com.android.internal.telephony.MmiCode > getPendingMmiCodes ( ) { android.util.Log.e ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , "method getPendingMmiCodes is NOT supported in CDMA!" ) ; return null ; }

Target:
public boolean handlePinMmi ( java.lang.String dialString ) { com.android.internal.telephony.cdma.CdmaMmiCode mmi = com.android.internal.telephony.cdma.CdmaMmiCode.newFromDialString ( dialString , this ) ; if ( mmi == null ) { android.util.Log.e ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , "Mmi is NULL!" ) ; return false ; } else if ( mmi.isPukCommand ( ) ) { mPendingMmis.add ( mmi ) ; mMmiRegistrants.notifyRegistrants ( new android.os.AsyncResult ( null , mmi , null ) ) ; mmi.processCode ( ) ; return true ; } android.util.Log.e ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , "Unrecognized mmi!" ) ; return false ; }
Source:
static void checkNonnegative ( int count , java.lang.String name ) { com.google.common.base.Preconditions.checkArgument ( ( count >= 0 ) , "%s cannot be negative: %s" , name , count ) ; }

Target:
private static boolean removeOccurrencesImpl ( com.google.common.collect.Multiset < ? > multisetToModify , java.lang.Iterable < ? > occurrencesToRemove ) { com.google.common.base.Preconditions.checkNotNull ( multisetToModify ) ; com.google.common.base.Preconditions.checkNotNull ( occurrencesToRemove ) ; boolean changed = false ; for ( java.lang.Object o : occurrencesToRemove ) { changed |= multisetToModify.remove ( o ) ; } return changed ; }
Source:
public boolean ping ( ) { java.lang.String pong = doStringCommand ( "PING" ) ; return ( pong != null ) && ( pong.equals ( "PONG" ) ) ; }

Target:
void enableVerboseLogging ( int verbose ) { if ( verbose > 0 ) { com.android.server.wifi.WifiNative.DBG = true ; } else { com.android.server.wifi.WifiNative.DBG = false ; } if ( ( mWificondControl ) != null ) { mWificondControl.enableVerboseLogging ( ( verbose > 0 ? true : false ) ) ; } if ( ( mSupplicantStaIfaceHal ) != null ) { mSupplicantStaIfaceHal.enableVerboseLogging ( ( verbose > 0 ) ) ; } if ( ( mWifiVendorHal ) != null ) { mWifiVendorHal.enableVerboseLogging ( ( verbose > 0 ) ) ; } }
Source:
public void testGetProperty_volatile ( ) throws java.lang.Exception { com.android.ddmlib.IDevice mockDevice = org.easymock.EasyMock.createMock ( com.android.ddmlib.IDevice.class ) ; injectShellResponse ( mockDevice , "[dev.bootcomplete]: [0]\r\n" ) ; injectShellResponse ( mockDevice , "[dev.bootcomplete]: [1]\r\n" ) ; org.easymock.EasyMock.replay ( mockDevice ) ; com.android.ddmlib.PropertyFetcher fetcher = new com.android.ddmlib.PropertyFetcher ( mockDevice ) ; assertEquals ( "0" , fetcher.getProperty ( "dev.bootcomplete" ) . get ( ) ) ; assertEquals ( "1" , fetcher.getProperty ( "dev.bootcomplete" ) . get ( ) ) ; }

Target:
public void testGetProperty_volatile ( ) throws java.lang.Exception { com.android.ddmlib.IDevice mockDevice = org.easymock.EasyMock.createMock ( com.android.ddmlib.IDevice.class ) ; com.android.ddmlib.DeviceTest.injectShellResponse ( mockDevice , "[dev.bootcomplete]: [0]\r\n" ) ; com.android.ddmlib.DeviceTest.injectShellResponse ( mockDevice , "[dev.bootcomplete]: [1]\r\n" ) ; org.easymock.EasyMock.replay ( mockDevice ) ; com.android.ddmlib.PropertyFetcher fetcher = new com.android.ddmlib.PropertyFetcher ( mockDevice ) ; assertEquals ( "0" , fetcher.getProperty ( "dev.bootcomplete" ) . get ( ) ) ; assertEquals ( "1" , fetcher.getProperty ( "dev.bootcomplete" ) . get ( ) ) ; }
Source:
public void test_destroy ( ) { tests.api.javax.security.auth.DestroyableTest.myDestroyable md = new tests.api.javax.security.auth.DestroyableTest.myDestroyable ( ) ; try { assertFalse ( md.isDestroyed ( ) ) ; md.destroy ( ) ; assertTrue ( md.isDestroyed ( ) ) ; } catch ( java.lang.Exception e ) { fail ( ( "Unexpected exception " + e ) ) ; } }

Target:
public void test_destroy ( ) { org.apache.harmony.tests.javax.security.auth.DestroyableTest.myDestroyable md = new org.apache.harmony.tests.javax.security.auth.DestroyableTest.myDestroyable ( ) ; try { assertFalse ( md.isDestroyed ( ) ) ; md.destroy ( ) ; assertTrue ( md.isDestroyed ( ) ) ; } catch ( java.lang.Exception e ) { fail ( ( "Unexpected exception " + e ) ) ; } }
Source:
public static com.android.ide.eclipse.adt.internal.editors.formatting.XmlFormatPreferences create ( ) { com.android.ide.eclipse.adt.internal.editors.formatting.XmlFormatPreferences p = new com.android.ide.eclipse.adt.internal.editors.formatting.XmlFormatPreferences ( ) ; com.android.ide.eclipse.adt.internal.preferences.AdtPrefs prefs = com.android.ide.eclipse.adt.internal.preferences.AdtPrefs.getPrefs ( ) ; p.useEclipseIndent = prefs.isUseEclipseIndent ( ) ; p.removeEmptyLines = prefs.isRemoveEmptyLines ( ) ; p.oneAttributeOnFirstLine = prefs.isOneAttributeOnFirstLine ( ) ; p.sortAttributes = prefs.getAttributeSort ( ) ; p.spaceBeforeClose = prefs.isSpaceBeforeClose ( ) ; return p ; }

Target:
public static com.android.ide.eclipse.adt.internal.editors.formatting.EclipseXmlFormatPreferences create ( ) { com.android.ide.eclipse.adt.internal.editors.formatting.EclipseXmlFormatPreferences p = new com.android.ide.eclipse.adt.internal.editors.formatting.EclipseXmlFormatPreferences ( ) ; com.android.ide.eclipse.adt.internal.preferences.AdtPrefs prefs = com.android.ide.eclipse.adt.internal.preferences.AdtPrefs.getPrefs ( ) ; p.useEclipseIndent = prefs.isUseEclipseIndent ( ) ; p.removeEmptyLines = prefs.isRemoveEmptyLines ( ) ; p.oneAttributeOnFirstLine = prefs.isOneAttributeOnFirstLine ( ) ; p.sortAttributes = prefs.getAttributeSort ( ) ; p.spaceBeforeClose = prefs.isSpaceBeforeClose ( ) ; return p ; }
Source:
protected void setBatterySaverMode ( boolean enabled ) throws java.lang.Exception { android.util.Log.i ( com.android.cts.net.hostside.AbstractRestrictBackgroundNetworkTestCase.TAG , ( "Setting Battery Saver Mode to " + enabled ) ) ; if ( enabled ) { turnBatteryOff ( ) ; executeSilentShellCommand ( "cmd battery unplug" ) ; executeSilentShellCommand ( "settings put global low_power 1" ) ; } else { turnBatteryOn ( ) ; } }

Target:
protected void setBatterySaverMode ( boolean enabled ) throws java.lang.Exception { android.util.Log.i ( com.android.cts.net.hostside.AbstractRestrictBackgroundNetworkTestCase.TAG , ( "Setting Battery Saver Mode to " + enabled ) ) ; if ( enabled ) { turnBatteryOff ( ) ; executeSilentShellCommand ( "cmd battery unplug" ) ; executeSilentShellCommand ( "settings put global low_power 1" ) ; } else { executeSilentShellCommand ( "settings put global low_power 0" ) ; turnBatteryOn ( ) ; } }
Source:
public boolean setPairingConfirmation ( boolean confirm ) { if ( ( android.bluetooth.BluetoothDevice.sService ) == null ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "BT not enabled. Cannot set pairing confirmation" ) ; return false ; } try { return android.bluetooth.BluetoothDevice.sService.setPairingConfirmation ( this , confirm ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; } return false ; }

Target:
public boolean setPairingConfirmation ( boolean confirm ) { final android.bluetooth.IBluetooth service = android.bluetooth.BluetoothDevice.sService ; if ( service == null ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "BT not enabled. Cannot set pairing confirmation" ) ; return false ; } try { return service.setPairingConfirmation ( this , confirm ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; } return false ; }
Source:
public java.nio.IntBuffer put ( java.nio.IntBuffer src ) { if ( src == ( this ) ) throw new java.lang.IllegalArgumentException ( ) ; int n = src.remaining ( ) ; if ( n > ( remaining ( ) ) ) throw new java.nio.BufferOverflowException ( ) ; for ( int i = 0 ; i < n ; i ++ ) put ( src.get ( ) ) ; return this ; }

Target:
public java.nio.IntBuffer put ( java.nio.IntBuffer src ) { if ( src == ( this ) ) throw new java.lang.IllegalArgumentException ( ) ; if ( isReadOnly ( ) ) throw new java.nio.ReadOnlyBufferException ( ) ; int n = src.remaining ( ) ; if ( n > ( remaining ( ) ) ) throw new java.nio.BufferOverflowException ( ) ; for ( int i = 0 ; i < n ; i ++ ) put ( src.get ( ) ) ; return this ; }
Source:
protected void buildJackCall ( @ javax.annotation.Nonnull java.util.List < java.lang.String > commandLine ) { boolean assertEnable = false ; assert true == ( assertEnable = true ) ; commandLine.add ( "java" ) ; commandLine.add ( ( assertEnable ? "-ea" : "-da" ) ) ; commandLine.add ( "-jar" ) ; commandLine.add ( jackPrebuilt.getAbsolutePath ( ) ) ; }

Target:
protected void buildJackCall ( @ javax.annotation.Nonnull java.util.List < java.lang.String > commandLine ) { if ( jackPrebuilt.getName ( ) . endsWith ( ".jar" ) ) { boolean assertEnable = false ; assert true == ( assertEnable = true ) ; commandLine.add ( "java" ) ; commandLine.add ( ( assertEnable ? "-ea" : "-da" ) ) ; commandLine.add ( "-jar" ) ; } commandLine.add ( jackPrebuilt.getAbsolutePath ( ) ) ; }
Source:
public static com.android.compatibility.common.util.IInvocationResult findResult ( java.io.File resultsDir , java.lang.Integer sessionId ) throws java.io.FileNotFoundException { if ( sessionId < 0 ) { throw new java.lang.IllegalArgumentException ( java.lang.String.format ( "Invalid session id [%d] " , sessionId ) ) ; } java.util.List < com.android.compatibility.common.util.IInvocationResult > results = com.android.compatibility.common.util.ResultHandler.getResults ( resultsDir ) ; if ( ( results == null ) || ( sessionId >= ( results.size ( ) ) ) ) { throw new java.lang.RuntimeException ( java.lang.String.format ( "Could not find session [%d]" , sessionId ) ) ; } return results.get ( sessionId ) ; }

Target:
private static com.android.compatibility.common.util.IInvocationResult findResult ( java.io.File resultsDir , java.lang.Integer sessionId , java.lang.Boolean useChecksum ) throws java.io.FileNotFoundException { if ( sessionId < 0 ) { throw new java.lang.IllegalArgumentException ( java.lang.String.format ( "Invalid session id [%d] " , sessionId ) ) ; } java.util.List < com.android.compatibility.common.util.IInvocationResult > results = com.android.compatibility.common.util.ResultHandler.getResults ( resultsDir , useChecksum ) ; if ( ( results == null ) || ( sessionId >= ( results.size ( ) ) ) ) { throw new java.lang.RuntimeException ( java.lang.String.format ( "Could not find session [%d]" , sessionId ) ) ; } return results.get ( sessionId ) ; }
Source:
public void TestSwahiliShortNegative ( ) { if ( logKnownIssue ( "12181" , "No support for negative numbers in CDF" ) ) { return ; } checkLocale ( android.icu.util.ULocale.forLanguageTag ( "sw" ) , CompactStyle.SHORT , SwahiliTestDataNegative ) ; }

Target:
public void TestBig ( ) { android.icu.text.CompactDecimalFormat cdf = android.icu.text.CompactDecimalFormat.getInstance ( ULocale.ENGLISH , CompactStyle.LONG ) ; java.math.BigInteger source_int = new java.math.BigInteger ( "31415926535897932384626433" ) ; assertEquals ( "BigInteger format wrong: " , "31,000,000,000,000 trillion" , cdf.format ( source_int ) ) ; java.math.BigDecimal source_dec = new java.math.BigDecimal ( source_int ) ; assertEquals ( "BigDecimal format wrong: " , "31,000,000,000,000 trillion" , cdf.format ( source_dec ) ) ; }
Source:
private lombok.ast.Node getCompilationUnit ( java.lang.String javaSource ) { com.android.tools.lint.client.api.IJavaParser parser = new com.android.tools.lint.LombokParser ( ) ; com.android.tools.lint.detector.api.LintUtilsTest.TestContext context = new com.android.tools.lint.detector.api.LintUtilsTest.TestContext ( javaSource , new java.io.File ( "test" ) ) ; lombok.ast.Node compilationUnit = parser.parseJava ( context ) ; assertNotNull ( javaSource , compilationUnit ) ; return compilationUnit ; }

Target:
public static lombok.ast.Node getCompilationUnit ( java.lang.String javaSource ) { com.android.tools.lint.detector.api.LintUtilsTest.TestContext context = new com.android.tools.lint.detector.api.LintUtilsTest.TestContext ( javaSource , new java.io.File ( "test" ) ) ; com.android.tools.lint.client.api.IJavaParser parser = new com.android.tools.lint.EcjParser ( new com.android.tools.lint.LintCliClient ( ) ) ; lombok.ast.Node compilationUnit = parser.parseJava ( context ) ; assertNotNull ( javaSource , compilationUnit ) ; return compilationUnit ; }
Source:
public void testSendMessage7bit ( ) throws java.lang.Exception { android.content.Intent intent = new android.content.Intent ( android.provider.Telephony.Sms.Intents.SMS_CB_RECEIVED_ACTION ) ; byte [ ] pdu = encodeCellBroadcast ( 0 , 0 , com.android.cellbroadcastreceiver.DialogSmsDisplayTests.DCS_7BIT_ENGLISH , "Hello in GSM 7 bit" ) ; intent.putExtra ( "message" , com.android.cellbroadcastreceiver.DialogSmsDisplayTests.createFromPdu ( pdu ) ) ; getActivity ( ) . sendOrderedBroadcast ( intent , "android.permission.RECEIVE_SMS" ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mContext = getActivity ( ) ; }
Source:
public void createMockableJar ( ) throws java.io.IOException { com.android.builder.testing.MockableJarGenerator generator = new com.android.builder.testing.MockableJarGenerator ( getReturnDefaultValues ( ) ) ; getOutputFile ( ) . delete ( ) ; getLogger ( ) . info ( java.lang.String.format ( "Creating %s from $s." , getOutputFile ( ) . getAbsolutePath ( ) , getAndroidJar ( ) . getAbsolutePath ( ) ) ) ; generator.createMockableJar ( getAndroidJar ( ) , getOutputFile ( ) ) ; }

Target:
public void createMockableJar ( ) throws java.io.IOException { java.io.File outputFile = getOutputFile ( ) ; if ( outputFile.exists ( ) ) { return ; } com.android.builder.testing.MockableJarGenerator generator = new com.android.builder.testing.MockableJarGenerator ( getReturnDefaultValues ( ) ) ; getLogger ( ) . info ( java.lang.String.format ( "Creating %s from %s." , outputFile.getAbsolutePath ( ) , getAndroidJar ( ) . getAbsolutePath ( ) ) ) ; generator.createMockableJar ( getAndroidJar ( ) , outputFile ) ; }
Source:
void registerTimeout ( ) { com.android.server.telecom.Log.d ( this , "registerTimeout" ) ; mIsRegistered = true ; long timeoutLengthMillis = getTimeoutLengthMillis ( ) ; if ( timeoutLengthMillis <= 0 ) { com.android.server.telecom.Log.d ( this , "registerTimeout, timeout set to %d, skipping" , timeoutLengthMillis ) ; } else { mHandler.postDelayed ( prepare ( ) , timeoutLengthMillis ) ; } }

Target:
void registerTimeout ( ) { android.telecom.Log.d ( this , "registerTimeout" ) ; mIsRegistered = true ; long timeoutLengthMillis = getTimeoutLengthMillis ( ) ; if ( timeoutLengthMillis <= 0 ) { android.telecom.Log.d ( this , "registerTimeout, timeout set to %d, skipping" , timeoutLengthMillis ) ; } else { mHandler.postDelayed ( prepare ( ) , timeoutLengthMillis ) ; } }
Source:
public void testEndCallWithNonRingingForegroundCall ( ) throws java.lang.Exception { com.android.server.telecom.Call call = org.mockito.Mockito.mock ( com.android.server.telecom.Call.class ) ; org.mockito.Mockito.when ( call.getState ( ) ) . thenReturn ( CallState.ACTIVE ) ; org.mockito.Mockito.when ( mFakeCallsManager.getForegroundCall ( ) ) . thenReturn ( call ) ; org.junit.Assert.assertTrue ( mTSIBinder.endCall ( null ) ) ; org.mockito.Mockito.verify ( call ) . disconnect ( ) ; }

Target:
public void testEndCallWithRingingForegroundCall ( ) throws java.lang.Exception { com.android.server.telecom.Call call = org.mockito.Mockito.mock ( com.android.server.telecom.Call.class ) ; org.mockito.Mockito.when ( call.getState ( ) ) . thenReturn ( CallState.RINGING ) ; org.mockito.Mockito.when ( mFakeCallsManager.getForegroundCall ( ) ) . thenReturn ( call ) ; org.junit.Assert.assertTrue ( mTSIBinder.endCall ( com.android.server.telecom.tests.TelecomServiceImplTest.TEST_PACKAGE ) ) ; org.mockito.Mockito.verify ( call ) . reject ( org.mockito.Matchers.eq ( false ) , org.mockito.Matchers.isNull ( ) , org.mockito.Matchers.eq ( com.android.server.telecom.tests.TelecomServiceImplTest.TEST_PACKAGE ) ) ; }
Source:
private void initFromIntent ( android.content.Intent intent ) { if ( intent != null ) { mTextMsg = intent.getParcelableExtra ( "TEXT" ) ; mSlotId = intent.getIntExtra ( StkAppService.SLOT_ID , ( - 1 ) ) ; } else { finish ( ) ; } com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkDialogActivity.LOG_TAG , ( ( ( "initFromIntent - [" + ( mTextMsg ) ) + "], sim id: " ) + ( mSlotId ) ) ) ; }

Target:
private void initFromIntent ( android.content.Intent intent ) { if ( intent != null ) { mTextMsg = intent.getParcelableExtra ( "TEXT" ) ; mSlotId = intent.getIntExtra ( StkAppService.SLOT_ID , ( - 1 ) ) ; } else { finish ( ) ; } com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkDialogActivity.LOG_TAG , ( ( ( "initFromIntent - [" + ( android.os.Build.IS_DEBUGGABLE ? mTextMsg : "********" ) ) + "], slot id: " ) + ( mSlotId ) ) ) ; }
Source:
public static java.security.Signature getInstance ( java.lang.String algorithm , java.security.Provider provider ) throws java.security.NoSuchAlgorithmException { if ( algorithm.equalsIgnoreCase ( java.security.Signature.RSA_SIGNATURE ) ) { if ( provider == null ) { throw new java.lang.IllegalArgumentException ( "missing provider" ) ; } return java.security.Signature.getInstanceRSA ( provider ) ; } sun.security.jca.GetInstance.Instance instance = sun.security.jca.GetInstance.getInstance ( "Signature" , java.security.SignatureSpi.class , algorithm , provider ) ; return java.security.Signature.getInstance ( instance , algorithm ) ; }

Target:
public static java.security.Signature getInstance ( java.lang.String algorithm , java.security.Provider provider ) throws java.security.NoSuchAlgorithmException { if ( algorithm.equalsIgnoreCase ( java.security.Signature.RSA_SIGNATURE ) ) { if ( provider == null ) { throw new java.lang.IllegalArgumentException ( "missing provider" ) ; } return java.security.Signature.getInstanceRSA ( provider ) ; } sun.security.jca.Providers.checkBouncyCastleDeprecation ( provider , "Signature" , algorithm ) ; sun.security.jca.GetInstance.Instance instance = sun.security.jca.GetInstance.getInstance ( "Signature" , java.security.SignatureSpi.class , algorithm , provider ) ; return java.security.Signature.getInstance ( instance , algorithm ) ; }
Source:
public java.lang.String getAttributeValue ( java.lang.String namespace , java.lang.String localName ) { java.lang.String value = super . getAttributeValue ( namespace , localName ) ; if ( ( ( com.android.ide.common.layout.LayoutConstants.VALUE_MATCH_PARENT.equals ( value ) ) && ( ( com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_WIDTH.equals ( localName ) ) || ( com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_HEIGHT.equals ( localName ) ) ) ) && ( SdkConstants.NS_RESOURCES.equals ( namespace ) ) ) { return com.android.ide.common.layout.LayoutConstants.VALUE_FILL_PARENT ; } return value ; }

Target:
public java.lang.String getAttributeValue ( java.lang.String namespace , java.lang.String localName ) { if ( ( localName.equals ( com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors.ATTR_LAYOUT ) ) && ( ( mFragmentLayout ) != null ) ) { return mFragmentLayout ; } java.lang.String value = super . getAttributeValue ( namespace , localName ) ; if ( ( ( com.android.ide.common.layout.LayoutConstants.VALUE_MATCH_PARENT.equals ( value ) ) && ( ( com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_WIDTH.equals ( localName ) ) || ( com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_HEIGHT.equals ( localName ) ) ) ) && ( SdkConstants.NS_RESOURCES.equals ( namespace ) ) ) { return com.android.ide.common.layout.LayoutConstants.VALUE_FILL_PARENT ; } return value ; }
Source:
private void readObject ( java.io.ObjectInputStream stream ) throws java.io.IOException , java.lang.ClassNotFoundException { stream.defaultReadObject ( ) ; if ( ( serialVersionOnStream ) < 1 ) { capitalizationSetting = DisplayContext.CAPITALIZATION_NONE ; } serialVersionOnStream = android.icu.text.DateFormat.currentSerialVersion ; }

Target:
private void readObject ( java.io.ObjectInputStream stream ) throws java.io.IOException , java.lang.ClassNotFoundException { stream.defaultReadObject ( ) ; if ( ( serialVersionOnStream ) < 1 ) { capitalizationSetting = DisplayContext.CAPITALIZATION_NONE ; } if ( ( booleanAttributes ) == null ) { booleanAttributes = java.util.EnumSet.allOf ( android.icu.text.DateFormat.BooleanAttribute.class ) ; } serialVersionOnStream = android.icu.text.DateFormat.currentSerialVersion ; }
Source:
public static boolean saveResourceProperty ( org.eclipse.core.resources.IResource resource , java.lang.String propertyName , org.eclipse.core.resources.IResource value ) { if ( value != null ) { org.eclipse.core.runtime.IPath iPath = value.getProjectRelativePath ( ) ; return com.android.ide.eclipse.adt.internal.project.ProjectHelper.saveStringProperty ( resource , propertyName , iPath.toString ( ) ) ; } return com.android.ide.eclipse.adt.internal.project.ProjectHelper.saveStringProperty ( resource , propertyName , "" ) ; }

Target:
public static boolean saveResourceProperty ( org.eclipse.core.resources.IResource resource , java.lang.String propertyName , org.eclipse.core.resources.IResource value ) { if ( value != null ) { org.eclipse.core.runtime.IPath iPath = value.getFullPath ( ) ; return com.android.ide.eclipse.adt.internal.project.ProjectHelper.saveStringProperty ( resource , propertyName , iPath.toString ( ) ) ; } return com.android.ide.eclipse.adt.internal.project.ProjectHelper.saveStringProperty ( resource , propertyName , "" ) ; }
Source:
public void tearDown ( com.android.tradefed.invoker.IInvocationContext context , java.lang.Throwable e ) throws com.android.tradefed.device.DeviceNotAvailableException { if ( ( ( mVenvDir ) != null ) && ( mIsDirCreator ) ) { try { com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer.recursiveDelete ( mVenvDir.toPath ( ) ) ; com.android.tradefed.log.LogUtil.CLog.i ( "Deleted the virtual env's temp working dir, %s." , mVenvDir ) ; } catch ( java.io.IOException exception ) { com.android.tradefed.log.LogUtil.CLog.e ( "Failed to delete %s: %s" , mVenvDir , exception ) ; } mVenvDir = null ; } }

Target:
public synchronized void tearDown ( com.android.tradefed.invoker.IInvocationContext context , java.lang.Throwable e ) throws com.android.tradefed.device.DeviceNotAvailableException { -- ( mNumOfInstances ) ; if ( ( mNumOfInstances ) > 0 ) { return ; } if ( ( ( mVenvDir ) != null ) && ( mIsDirCreator ) ) { try { com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer.recursiveDelete ( mVenvDir.toPath ( ) ) ; com.android.tradefed.log.LogUtil.CLog.i ( "Deleted the virtual env's temp working dir, %s." , mVenvDir ) ; } catch ( java.io.IOException exception ) { com.android.tradefed.log.LogUtil.CLog.e ( "Failed to delete %s: %s" , mVenvDir , exception ) ; } mVenvDir = null ; } }
Source:
private static libcore.tzdata.update2.tools.TzDataBundleBuilder createValidTimeZoneBundleBuilder ( java.lang.String rulesVersion , java.lang.String androidRevision ) throws java.lang.Exception { byte [ ] bionicTzData = libcore.tzdata.update2.TzDataBundleInstallerTest.createTzData ( rulesVersion ) ; byte [ ] icuData = new byte [ ] { 'a' } ; return new libcore.tzdata.update2.tools.TzDataBundleBuilder ( ) . setRulesVersion ( rulesVersion ) . setAndroidRevision ( androidRevision ) . setTzData ( bionicTzData ) . setIcuData ( icuData ) ; }

Target:
private static libcore.tzdata.update2.tools.TimeZoneBundleBuilder createValidTimeZoneBundleBuilder ( java.lang.String rulesVersion , java.lang.String androidRevision ) throws java.lang.Exception { byte [ ] bionicTzData = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createTzData ( rulesVersion ) ; byte [ ] icuData = new byte [ ] { 'a' } ; return new libcore.tzdata.update2.tools.TimeZoneBundleBuilder ( ) . setRulesVersion ( rulesVersion ) . setAndroidRevision ( androidRevision ) . setTzData ( bionicTzData ) . setIcuData ( icuData ) ; }