auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor getFqcnViewDescritor ( java.lang.String fqcn ) { com.android.ide.eclipse.adt.internal.editors.AndroidEditor editor = mNode.getEditor ( ) ; if ( editor != null ) { com.android.ide.eclipse.adt.internal.sdk.AndroidTargetData data = editor.getTargetData ( ) ; if ( data != null ) { com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors layoutDesc = data.getLayoutDescriptors ( ) ; if ( layoutDesc != null ) { com.android.ide.eclipse.adt.internal.editors.descriptors.DocumentDescriptor docDesc = layoutDesc.getDescriptor ( ) ; if ( docDesc != null ) { return internalFindFqcnViewDescritor ( fqcn , docDesc.getChildren ( ) , null ) ; } } } } return null ; }

Target:
private com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor getFqcnViewDescritor ( java.lang.String fqcn ) { com.android.ide.eclipse.adt.internal.editors.AndroidXmlEditor editor = mNode.getEditor ( ) ; if ( editor != null ) { com.android.ide.eclipse.adt.internal.sdk.AndroidTargetData data = editor.getTargetData ( ) ; if ( data != null ) { com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors layoutDesc = data.getLayoutDescriptors ( ) ; if ( layoutDesc != null ) { com.android.ide.eclipse.adt.internal.editors.descriptors.DocumentDescriptor docDesc = layoutDesc.getDescriptor ( ) ; if ( docDesc != null ) { return internalFindFqcnViewDescritor ( fqcn , docDesc.getChildren ( ) , null ) ; } } } } return null ; }
Source:
public void createControl ( org.eclipse.swt.widgets.Composite parent ) { mSash = new org.eclipse.swt.custom.SashForm ( parent , org.eclipse.swt.SWT.VERTICAL ) ; mImageCanvas = new com.android.ide.eclipse.gltrace.widgets.ImageCanvas ( mSash ) ; createFrameStatisticsPart ( mSash ) ; mSash.setWeights ( new int [ ] { 70 , 30 } ) ; org.eclipse.jface.action.IToolBarManager toolbarManager = getSite ( ) . getActionBars ( ) . getToolBarManager ( ) ; toolbarManager.add ( new com.android.ide.eclipse.gltrace.views.FitToCanvasAction ( true , mImageCanvas ) ) ; }

Target:
public void createControl ( org.eclipse.swt.widgets.Composite parent ) { mSash = new org.eclipse.swt.custom.SashForm ( parent , org.eclipse.swt.SWT.VERTICAL ) ; mImageCanvas = new com.android.ide.eclipse.gltrace.widgets.ImageCanvas ( mSash ) ; createFrameStatisticsPart ( mSash ) ; mSash.setWeights ( new int [ ] { 70 , 30 } ) ; mFitToCanvasAction = new com.android.ide.eclipse.gltrace.views.FitToCanvasAction ( true , mImageCanvas ) ; mSaveImageAction = new com.android.ide.eclipse.gltrace.views.SaveImageAction ( mImageCanvas ) ; org.eclipse.jface.action.IToolBarManager toolbarManager = getSite ( ) . getActionBars ( ) . getToolBarManager ( ) ; toolbarManager.add ( mFitToCanvasAction ) ; toolbarManager.add ( mSaveImageAction ) ; }
Source:
public java.lang.String toString ( ) { java.lang.StringBuilder sb = com.google.common.collect.Collections2.newStringBuilderForCollection ( size ( ) ) . append ( '[' ) . append ( array [ offset ] ) ; for ( int i = ( offset ) + 1 ; i < ( ( offset ) + ( size ) ) ; i ++ ) { sb.append ( ", " ) . append ( array [ i ] ) ; } return sb.append ( ']' ) . toString ( ) ; }

Target:
public int lastIndexOf ( @ javax.annotation.Nullable java.lang.Object object ) { if ( object == null ) { return - 1 ; } for ( int i = ( size ) - 1 ; i >= 0 ; i -- ) { if ( array [ ( ( offset ) + i ) ] . equals ( object ) ) { return i ; } } return - 1 ; }
Source:
public void testForEach ( ) { final java.util.Set < java.lang.String > values = new java.util.HashSet < > ( org.openjdk.tests.java.util.MapTest.EXPECTED.size ( ) ) ; map.forEach ( ( k , v ) -> { values.add ( v ) ; } ) ; java.util.stream.LambdaTestHelpers.assertContentsUnordered ( values , org.openjdk.tests.java.util.MapTest.EXPECTED.values ( ) ) ; }

Target:
public void testForEach ( ) { final java.util.Set < java.lang.String > values = new java.util.HashSet < > ( org.openjdk.tests.java.util.MapTest.EXPECTED.size ( ) ) ; map.forEach ( ( k , v ) -> { values.add ( v ) ; } ) ; org.openjdk.testlib.java.util.stream.LambdaTestHelpers.assertContentsUnordered ( values , org.openjdk.tests.java.util.MapTest.EXPECTED.values ( ) ) ; }
Source:
public void testKeyStore_GetKey_Certificate_Failure ( ) throws java.lang.Exception { mKeyStore.load ( null , null ) ; assertTrue ( mAndroidKeyStore.put ( ( ( Credentials.CA_CERTIFICATE ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) , android.security.AndroidKeyStoreTest.FAKE_CA_1 ) ) ; assertNull ( "Certificate entries should return null" , mKeyStore.getKey ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 , null ) ) ; }

Target:
public void testKeyStore_GetKey_Certificate_Encrypted_Failure ( ) throws java.lang.Exception { setupPassword ( ) ; mKeyStore.load ( null , null ) ; assertTrue ( mAndroidKeyStore.put ( ( ( Credentials.CA_CERTIFICATE ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) , android.security.AndroidKeyStoreTest.FAKE_CA_1 ) ) ; assertNull ( "Certificate entries should return null" , mKeyStore.getKey ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 , null ) ) ; }
Source:
public void execute ( ) { for ( int i = 0 ; i < ( mIterations ) ; ++ i ) { android.hardware.cts.helpers.sensoroperations.ISensorOperation operation = mOperation.clone ( ) ; try { operation.execute ( ) ; } catch ( java.lang.AssertionError e ) { java.lang.String msg = java.lang.String.format ( "Iteration %d failed: \"%s\"" , i , e.getMessage ( ) ) ; throw new java.lang.AssertionError ( msg , e ) ; } finally { addSensorStats ( android.hardware.cts.helpers.sensoroperations.RepeatingSensorOperation.STATS_TAG , i , operation.getStats ( ) ) ; } } }

Target:
public void execute ( ) { for ( int i = 0 ; i < ( mIterations ) ; ++ i ) { android.hardware.cts.helpers.sensoroperations.ISensorOperation operation = mOperation.clone ( ) ; try { operation.execute ( ) ; } catch ( java.lang.AssertionError e ) { java.lang.String msg = java.lang.String.format ( "Iteration %d failed: \"%s\"" , i , e.getMessage ( ) ) ; getStats ( ) . addValue ( SensorStats.ERROR , msg ) ; throw new java.lang.AssertionError ( msg , e ) ; } finally { addSensorStats ( android.hardware.cts.helpers.sensoroperations.RepeatingSensorOperation.STATS_TAG , i , operation.getStats ( ) ) ; } } }
Source:
public void test_getAttributes ( ) throws java.lang.Exception { java.net.URL u = new java.net.URL ( ( ( "jar:" + ( tests.api.java.net.JarURLConnectionTest.BASE ) ) + "!/swt.dll" ) ) ; juc = ( ( java.net.JarURLConnection ) ( u.openConnection ( ) ) ) ; java.util.jar.Attributes a = juc.getJarEntry ( ) . getAttributes ( ) ; assertEquals ( "Returned incorrect Attributes" , "SHA MD5" , a.get ( new java.util.jar.Attributes.Name ( "Digest-Algorithms" ) ) ) ; }

Target:
public void test_getAttributes ( ) throws java.lang.Exception { java.net.URL u = copyAndOpenResourceStream ( "lf.jar" , "swt.dll" ) ; juc = ( ( java.net.JarURLConnection ) ( u.openConnection ( ) ) ) ; java.util.jar.Attributes a = juc.getJarEntry ( ) . getAttributes ( ) ; assertEquals ( "Returned incorrect Attributes" , "SHA MD5" , a.get ( new java.util.jar.Attributes.Name ( "Digest-Algorithms" ) ) ) ; }
Source:
public java.util.Collection < java.util.List < ? > > valueOfSubjectAlternativeName ( ) throws java.io.IOException { org.apache.harmony.security.x509.Extension extension = getExtensionByOID ( "2.5.29.17" ) ; if ( extension == null ) { return null ; } java.util.Collection < java.util.List < ? > > collection = ( ( org.apache.harmony.security.x509.GeneralNames ) ( GeneralNames.ASN1.decode ( extension.getExtnValue ( ) ) ) ) . getPairsList ( ) ; if ( ( collection.size ( ) ) == 0 ) { return null ; } return collection ; }

Target:
public java.util.Collection < java.util.List < ? > > valueOfSubjectAlternativeName ( ) throws java.io.IOException { return org.apache.harmony.security.x509.Extensions.decodeGeneralNames ( getExtensionByOID ( "2.5.29.17" ) ) ; }
Source:
public void addPages ( ) { mFirstPage = new com.android.ide.eclipse.adt.internal.wizards.exportgradle.ProjectSelectionPage ( mBuilder ) ; addPage ( mFirstPage ) ; mSecondPage = new com.android.ide.eclipse.adt.internal.wizards.exportgradle.ConfirmationPage ( mBuilder ) ; addPage ( mSecondPage ) ; mFinalPage = new com.android.ide.eclipse.adt.internal.wizards.exportgradle.FinalPage ( mBuilder ) ; addPage ( mFinalPage ) ; }

Target:
public void addPages ( ) { addPage ( new com.android.ide.eclipse.adt.internal.wizards.exportgradle.ImportInsteadPage ( ) ) ; mFirstPage = new com.android.ide.eclipse.adt.internal.wizards.exportgradle.ProjectSelectionPage ( mBuilder ) ; addPage ( mFirstPage ) ; mSecondPage = new com.android.ide.eclipse.adt.internal.wizards.exportgradle.ConfirmationPage ( mBuilder ) ; addPage ( mSecondPage ) ; mFinalPage = new com.android.ide.eclipse.adt.internal.wizards.exportgradle.FinalPage ( mBuilder ) ; addPage ( mFinalPage ) ; }
Source:
public void clearSelection ( ) { selectionDone ( ) ; if ( ( mWebViewCore ) != null ) { mWebViewCore.sendMessage ( EventHub.SELECT_TEXT , null ) ; } }

Target:
public void onConfigurationChanged ( android.content.res.Configuration newConfig ) { mCachedOverlappingActionModeHeight = - 1 ; if ( ( mSelectingText ) && ( ( mOrientation ) != ( newConfig.orientation ) ) ) { selectionDone ( ) ; } mOrientation = newConfig.orientation ; if ( ( ( mWebViewCore ) != null ) && ( ! ( mBlockWebkitViewMessages ) ) ) { mWebViewCore.sendMessage ( EventHub.CLEAR_CONTENT ) ; } }
Source:
public javax.net.ssl.SSLSession getSession ( byte [ ] sessionId ) { if ( sessionId == null ) { throw new java.lang.NullPointerException ( "sessionId == null" ) ; } org.conscrypt.ByteArray key = new org.conscrypt.ByteArray ( sessionId ) ; javax.net.ssl.SSLSession session ; synchronized ( sessions ) { session = sessions.get ( key ) ; } if ( ( session != null ) && ( session.isValid ( ) ) ) { return session ; } return null ; }

Target:
protected javax.net.ssl.SSLSession wrapSSLSessionIfNeeded ( javax.net.ssl.SSLSession session ) { if ( session instanceof org.conscrypt.OpenSSLSessionImpl ) { return org.conscrypt.Platform.wrapSSLSession ( ( ( org.conscrypt.OpenSSLSessionImpl ) ( session ) ) ) ; } else { return session ; } }
Source:
private void writeBytes ( byte [ ] b , int off , int len ) throws java.io.IOException { libcore.io.IoBridge.write ( fd , b , off , len ) ; if ( syncMetadata ) { fd.sync ( ) ; } }

Target:
private void writeBytes ( byte [ ] b , int off , int len ) throws java.io.IOException { ioTracker.trackIo ( len , IoTracker.Mode.WRITE ) ; libcore.io.IoBridge.write ( fd , b , off , len ) ; if ( syncMetadata ) { fd.sync ( ) ; } }
Source:
private void writeDup2 ( @ javax.annotation.Nonnull org.objectweb.asm.tree.analysis.Frame < org.objectweb.asm.tree.analysis.BasicValue > frame , @ javax.annotation.Nonnull org.objectweb.asm.tree.analysis.Frame < org.objectweb.asm.tree.analysis.BasicValue > nextFrame ) throws java.io.IOException { writeAssign ( frame , com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK , nextFrame , com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK ) ; writeAssign ( frame , ( ( com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK ) - 1 ) , nextFrame , ( ( com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK ) - 1 ) ) ; }

Target:
private void writeDup ( @ javax.annotation.Nonnull org.objectweb.asm.tree.analysis.Frame < org.objectweb.asm.tree.analysis.BasicValue > frame , @ javax.annotation.Nonnull org.objectweb.asm.tree.analysis.Frame < org.objectweb.asm.tree.analysis.BasicValue > nextFrame ) throws java.io.IOException { if ( isVirtualStackVariable ( frame , com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK ) ) { cmpOperands.put ( getStackVariable ( nextFrame , com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK ) , cmpOperands.get ( getStackVariable ( frame , com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK ) ) ) ; } else { writeAssign ( frame , com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK , nextFrame , com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK ) ; } }
Source:
public void copy3DRangeFrom ( int xoff , int yoff , int zoff , int w , int h , int d , int [ ] data ) { validateIsInt32 ( ) ; copy3DRangeFromUnchecked ( xoff , yoff , zoff , w , h , d , data ) ; }

Target:
public void copy3DRangeFrom ( int xoff , int yoff , int zoff , int w , int h , int d , java.lang.Object array ) { copy3DRangeFromUnchecked ( xoff , yoff , zoff , w , h , d , array , validateObjectIsPrimitiveArray ( array , true ) , java.lang.reflect.Array.getLength ( array ) ) ; }
Source:
public void testInstrumentationNotAllowed ( ) { fail ( "instrumentating app with different cert should fail" ) ; }

Target:
public void testInstrumentationNotAllowed ( ) { android.content.Context myContext = getInstrumentation ( ) . getContext ( ) ; android.content.ComponentName appDiffCertInstrumentation = new android.content.ComponentName ( myContext , android.app.Instrumentation.class ) ; try { getInstrumentation ( ) . getContext ( ) . startInstrumentation ( appDiffCertInstrumentation , null , new android.os.Bundle ( ) ) ; fail ( "could launch instrumentation" ) ; } catch ( java.lang.SecurityException e ) { } }
Source:
public void tearDown ( ) throws java.lang.Exception { mService = null ; mAdapter = null ; }

Target:
public void setUp ( ) throws java.lang.Exception { mTargetContext = android.support.test.InstrumentationRegistry.getTargetContext ( ) ; org.junit.Assume.assumeTrue ( "Ignore test when MapClientService is not enabled" , mTargetContext.getResources ( ) . getBoolean ( R.bool.profile_supported_mapmce ) ) ; org.mockito.MockitoAnnotations.initMocks ( this ) ; com.android.bluetooth.TestUtils.setAdapterService ( mAdapterService ) ; com.android.bluetooth.mapclient.MapUtils.setMnsService ( mMockMnsService ) ; com.android.bluetooth.TestUtils.startService ( mServiceRule , com.android.bluetooth.mapclient.MapClientService.class ) ; mService = com.android.bluetooth.mapclient.MapClientService.getMapClientService ( ) ; org.junit.Assert.assertNotNull ( mService ) ; cleanUpInstanceMap ( ) ; mAdapter = android.bluetooth.BluetoothAdapter.getDefaultAdapter ( ) ; }
Source:
private com.android.jack.ir.ast.JPackage getPackage ( @ javax.annotation.Nonnull java.lang.String [ ] splitClassOrInterfaceName ) { com.android.jack.ir.ast.JPackage currentPackage = topLevelPackage ; int packageLength = ( splitClassOrInterfaceName.length ) - 1 ; for ( int i = 0 ; i < packageLength ; i ++ ) { currentPackage = currentPackage.getOrCreateSubPackage ( splitClassOrInterfaceName [ i ] ) ; } return currentPackage ; }

Target:
public com.android.jack.ir.ast.JReferenceType getDefined ( @ javax.annotation.Nonnull java.lang.String signature ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
private com.android.builder.core.VariantConfiguration getVariantWithManifestPackage ( final java.lang.String packageName ) { com.android.builder.core.VariantConfiguration variant = new com.android.builder.core.VariantConfiguration ( mDefaultConfig , new com.android.builder.core.MockSourceProvider ( "main" ) , mBuildType , new com.android.builder.core.MockSourceProvider ( "debug" ) , VariantConfiguration.Type.DEFAULT , null ) { @ java.lang.Override public java.lang.String getPackageFromManifest ( ) { return packageName ; } } ; variant.addProductFlavor ( mFlavorConfig , new com.android.builder.core.MockSourceProvider ( "custom" ) , "" ) ; return variant ; }

Target:
private com.android.builder.core.VariantConfiguration getVariantWithManifestPackage ( final java.lang.String packageName ) { com.android.builder.core.VariantConfiguration variant = new com.android.builder.core.VariantConfiguration ( mDefaultConfig , new com.android.builder.core.MockSourceProvider ( "main" ) , mBuildType , new com.android.builder.core.MockSourceProvider ( "debug" ) , VariantType.DEFAULT , null ) { @ java.lang.Override public java.lang.String getPackageFromManifest ( ) { return packageName ; } } ; variant.addProductFlavor ( mFlavorConfig , new com.android.builder.core.MockSourceProvider ( "custom" ) , "" ) ; return variant ; }
Source:
public void testCheck_ViewCannotBeFound ( ) { android.support.test.espresso.NoMatchingViewException noViewException = new android.support.test.espresso.NoMatchingViewException.Builder ( ) . withViewMatcher ( viewMatcher ) . withRootView ( rootView ) . build ( ) ; org.mockito.Mockito.when ( mockViewFinder.getView ( ) ) . thenThrow ( noViewException ) ; initInteraction ( ) ; testInteraction.check ( mockAssertion ) ; org.mockito.Mockito.verify ( mockAssertion ) . check ( null , noViewException ) ; }

Target:
public void check_ViewCannotBeFound ( ) { android.support.test.espresso.NoMatchingViewException noViewException = new android.support.test.espresso.NoMatchingViewException.Builder ( ) . withViewMatcher ( viewMatcher ) . withRootView ( rootView ) . build ( ) ; org.mockito.Mockito.when ( mockViewFinder.getView ( ) ) . thenThrow ( noViewException ) ; initInteraction ( ) ; testInteraction.check ( mockAssertion ) ; org.mockito.Mockito.verify ( mockAssertion ) . check ( null , noViewException ) ; }
Source:
private void sendTrackChangedRsp ( ) { com.android.bluetooth.avrcp.MediaPlayerInfo info = getAddressedPlayerInfo ( ) ; if ( ( info != null ) && ( ! ( info.isBrowseSupported ( ) ) ) ) { trackChangeRspForBrowseUnsupported ( ) ; } else { mAddressedMediaPlayer.sendTrackChangeWithId ( mTrackChangedNT , mMediaController ) ; } }

Target:
private void sendTrackChangedRsp ( boolean requested ) { com.android.bluetooth.avrcp.MediaPlayerInfo info = getAddressedPlayerInfo ( ) ; if ( ( info != null ) && ( ! ( info.isBrowseSupported ( ) ) ) ) { trackChangeRspForBrowseUnsupported ( requested ) ; } else { boolean changed = mAddressedMediaPlayer.sendTrackChangeWithId ( requested , mMediaController ) ; if ( changed ) mTrackChangedNT = AvrcpConstants.NOTIFICATION_TYPE_CHANGED ; } }
Source:
public com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation getAnnotation ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedMethod method , @ com.android.annotations.NonNull java.lang.String type ) { com.android.tools.lint.ExternalAnnotationRepository.MethodInfo m = findMethod ( method ) ; if ( m == null ) { return null ; } if ( ( m.annotations ) != null ) { for ( com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation : m.annotations ) { if ( type.equals ( annotation.getSignature ( ) ) ) { return annotation ; } } } return null ; }

Target:
public com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation getAnnotation ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedMethod method , @ com.android.annotations.NonNull java.lang.String type ) { com.android.tools.lint.ExternalAnnotationRepository.MethodInfo m = findMethod ( method ) ; if ( m == null ) { return null ; } java.util.List < com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation > annotations = m.getAnnotations ( ) ; if ( annotations != null ) { for ( com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation : annotations ) { if ( type.equals ( annotation.getSignature ( ) ) ) { return annotation ; } } } return null ; }
Source:
protected void collect ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JType type ) { if ( type instanceof com.android.jack.ir.ast.JDefinedClassOrInterface ) { com.android.jack.ir.ast.JDefinedClassOrInterface jDefinedClassOrInterface = ( ( com.android.jack.ir.ast.JDefinedClassOrInterface ) ( type ) ) ; jDefinedClassOrInterface.addMarkerIfAbsent ( MainDexMarker.INSTANCE ) ; } }

Target:
protected void collect ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JType type ) { if ( type instanceof com.android.jack.ir.ast.JDefinedClassOrInterface ) { com.android.jack.ir.ast.JDefinedClassOrInterface jDefinedClassOrInterface = ( ( com.android.jack.ir.ast.JDefinedClassOrInterface ) ( type ) ) ; synchronized ( jDefinedClassOrInterface ) { if ( ! ( jDefinedClassOrInterface.containsMarker ( com.android.jack.backend.dex.MainDexMarker.class ) ) ) { jDefinedClassOrInterface.addMarker ( MainDexMarker.INSTANCE ) ; } } } }
Source:
private android.os.Bundle createCallIntentExtras ( ) { android.os.Bundle extras = new android.os.Bundle ( ) ; extras.putString ( "com.android.server.telecom.testapps.CALL_EXTRAS" , "Yorke was here" ) ; android.os.Bundle intentExtras = new android.os.Bundle ( ) ; intentExtras.putBundle ( TelecomManager.EXTRA_OUTGOING_CALL_EXTRAS , extras ) ; android.util.Log.i ( "Santos xtr" , intentExtras.toString ( ) ) ; return intentExtras ; }

Target:
private android.os.Bundle createCallIntentExtras ( ) { android.os.Bundle extras = new android.os.Bundle ( ) ; extras.putString ( "com.android.server.telecom.testapps.CALL_EXTRAS" , "Hall was here" ) ; if ( mRttCheckbox.isChecked ( ) ) { extras.putBoolean ( TelecomManager.EXTRA_START_CALL_WITH_RTT , true ) ; } android.os.Bundle intentExtras = new android.os.Bundle ( ) ; intentExtras.putBundle ( TelecomManager.EXTRA_OUTGOING_CALL_EXTRAS , extras ) ; android.util.Log.i ( "Santos xtr" , intentExtras.toString ( ) ) ; return intentExtras ; }
Source:
public java.lang.String makeKey ( vogar.Classpath classpath ) { java.lang.String key = keyPrefix ; for ( java.io.File element : classpath.getElements ( ) ) { if ( ! ( element.toString ( ) . endsWith ( ".jar" ) ) ) { return null ; } key += "-" + ( vogar.Md5Cache.md5 ( element ) ) ; } return key ; }

Target:
public java.lang.String makeKey ( vogar.Classpath classpath ) { java.lang.String key = keyPrefix ; for ( java.io.File element : classpath.getElements ( ) ) { java.lang.String fileName = element.getName ( ) ; if ( ( ! ( fileName.endsWith ( ".jar" ) ) ) && ( ! ( fileName.endsWith ( ".jack" ) ) ) ) { return null ; } key += "-" + ( vogar.Md5Cache.md5 ( element ) ) ; } return key ; }
Source:
public boolean getAudioRouteAllowed ( ) { if ( android.bluetooth.BluetoothHeadsetClient.VDBG ) android.bluetooth.BluetoothHeadsetClient.log ( "getAudioRouteAllowed" ) ; if ( ( ( mService ) != null ) && ( isEnabled ( ) ) ) { try { return mService.getAudioRouteAllowed ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothHeadsetClient.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothHeadsetClient.TAG , "Proxy not attached to service" ) ; if ( android.bluetooth.BluetoothHeadsetClient.DBG ) android.util.Log.d ( android.bluetooth.BluetoothHeadsetClient.TAG , android.util.Log.getStackTraceString ( new java.lang.Throwable ( ) ) ) ; } return false ; }

Target:
public boolean disconnectAudio ( android.bluetooth.BluetoothDevice device ) { if ( ( ( mService ) != null ) && ( isEnabled ( ) ) ) { try { return mService.disconnectAudio ( device ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothHeadsetClient.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothHeadsetClient.TAG , "Proxy not attached to service" ) ; if ( android.bluetooth.BluetoothHeadsetClient.DBG ) android.util.Log.d ( android.bluetooth.BluetoothHeadsetClient.TAG , android.util.Log.getStackTraceString ( new java.lang.Throwable ( ) ) ) ; } return false ; }
Source:
public static synchronized void setDefault ( java.util.TimeZone timeZone ) { if ( java.util.TimeZone.hasPermission ( ) ) { java.util.TimeZone.defaultTimeZone = ( timeZone != null ) ? ( ( java.util.TimeZone ) ( timeZone.clone ( ) ) ) : null ; android.icu.util.TimeZone.clearCachedDefault ( ) ; } }

Target:
public static synchronized void setDefault ( java.util.TimeZone timeZone ) { java.lang.SecurityManager sm = java.lang.System.getSecurityManager ( ) ; if ( sm != null ) { sm.checkPermission ( new java.util.PropertyPermission ( "user.timezone" , "write" ) ) ; } java.util.TimeZone.defaultTimeZone = ( timeZone != null ) ? ( ( java.util.TimeZone ) ( timeZone.clone ( ) ) ) : null ; android.icu.util.TimeZone.clearCachedDefault ( ) ; }
Source:
private boolean implementsInterface ( com.google.doclava.ClassInfo cl , java.lang.String iface ) { if ( cl.qualifiedName ( ) . equals ( iface ) ) { return true ; } for ( com.google.doclava.ClassInfo clImplements : cl.interfaces ( ) ) { if ( implementsInterface ( clImplements , iface ) ) { return true ; } } if ( ( ( cl.mSuperclass ) != null ) && ( implementsInterface ( cl.mSuperclass , iface ) ) ) { return true ; } return false ; }

Target:
void setPackage ( com.google.doclava.PackageInfo pkg ) { mContainingPackage = pkg ; }
Source:
java.util.List < android.bluetooth.BluetoothDevice > getConnectedDevices ( ) { java.util.List < android.bluetooth.BluetoothDevice > devices = new java.util.ArrayList < android.bluetooth.BluetoothDevice > ( ) ; synchronized ( this ) { for ( int i = 0 ; i < ( mConnectedDevicesList.size ( ) ) ; i ++ ) devices.add ( mConnectedDevicesList.get ( i ) ) ; } return devices ; }

Target:
java.util.List < android.bluetooth.BluetoothDevice > getConnectedDevices ( ) { java.util.List < android.bluetooth.BluetoothDevice > devices = new java.util.ArrayList < android.bluetooth.BluetoothDevice > ( ) ; synchronized ( this ) { devices.addAll ( mConnectedDevicesList ) ; } return devices ; }
Source:
protected boolean visitTagElement ( org.eclipse.jdt.core.dom.rewrite.ASTRewrite rewrite , org.eclipse.jdt.core.dom.TagElement tag ) { java.lang.String tagName = tag.getTagName ( ) ; if ( tagName != null ) { org.eclipse.jdt.core.dom.AST ast = tag.getAST ( ) ; java.util.List < org.eclipse.jdt.core.dom.IDocElement > fragments = tag.fragments ( ) ; if ( tagName.equalsIgnoreCase ( "@icu" ) ) { if ( ( fragments.size ( ) ) == 0 ) { rewrite.replace ( tag , com.android.icu4j.srcgen.ReplaceIcuTags.createIcuMarker ( ast ) , null ) ; } else { org.eclipse.jdt.core.dom.IDocElement element = fragments.get ( 0 ) ; if ( element.toString ( ) . trim ( ) . equalsIgnoreCase ( "_usage_" ) ) { rewrite.replace ( tag , com.android.icu4j.srcgen.ReplaceIcuTags.createIcuUsageText ( ast ) , null ) ; } else { throw new java.lang.AssertionError ( ( "Unknown Javadoc tag: " + tag ) ) ; } } return false ; } else if ( tagName.equalsIgnoreCase ( "@icuenhanced" ) ) { org.eclipse.jdt.core.dom.IDocElement element = fragments.get ( 0 ) ; rewrite.replace ( tag , com.android.icu4j.srcgen.ReplaceIcuTags.createIcuEnhancementText ( ast , element ) , null ) ; return false ; } else if ( tagName.equalsIgnoreCase ( "@icunote" ) ) { rewrite.replace ( tag , com.android.icu4j.srcgen.ReplaceIcuTags.createIcuNoteText ( ast ) , null ) ; return false ; } } return true ; }

Target:
protected boolean visitTagElement ( com.google.currysrc.api.process.Reporter reporter , org.eclipse.jdt.core.dom.rewrite.ASTRewrite rewrite , org.eclipse.jdt.core.dom.TagElement tag ) { java.lang.String tagName = tag.getTagName ( ) ; if ( tagName != null ) { org.eclipse.jdt.core.dom.AST ast = tag.getAST ( ) ; java.util.List < org.eclipse.jdt.core.dom.IDocElement > fragments = tag.fragments ( ) ; if ( tagName.equalsIgnoreCase ( "@icu" ) ) { if ( ( fragments.size ( ) ) == 0 ) { rewrite.replace ( tag , com.android.icu4j.srcgen.ReplaceIcuTags.createIcuMarker ( ast ) , null ) ; } else { org.eclipse.jdt.core.dom.IDocElement element = fragments.get ( 0 ) ; if ( element.toString ( ) . trim ( ) . equalsIgnoreCase ( "_usage_" ) ) { rewrite.replace ( tag , com.android.icu4j.srcgen.ReplaceIcuTags.createIcuUsageText ( ast ) , null ) ; } else { throw new java.lang.AssertionError ( ( "Unknown Javadoc tag: " + tag ) ) ; } } return false ; } else if ( tagName.equalsIgnoreCase ( "@icuenhanced" ) ) { org.eclipse.jdt.core.dom.IDocElement element = fragments.get ( 0 ) ; rewrite.replace ( tag , com.android.icu4j.srcgen.ReplaceIcuTags.createIcuEnhancementText ( ast , element ) , null ) ; return false ; } else if ( tagName.equalsIgnoreCase ( "@icunote" ) ) { rewrite.replace ( tag , com.android.icu4j.srcgen.ReplaceIcuTags.createIcuNoteText ( ast ) , null ) ; return false ; } } return true ; }
Source:
public final java.lang.Object getObject ( javax.crypto.Cipher c ) throws java.io.IOException , java.lang.ClassNotFoundException , javax.crypto.BadPaddingException , javax.crypto.IllegalBlockSizeException { if ( c == null ) { throw new java.lang.NullPointerException ( "c == null" ) ; } byte [ ] serialized = c.doFinal ( encryptedContent ) ; java.io.ObjectInputStream ois = new java.io.ObjectInputStream ( new java.io.ByteArrayInputStream ( serialized ) ) ; return ois.readObject ( ) ; }

Target:
private static java.lang.Object readSerialized ( byte [ ] serialized ) throws java.io.IOException , java.lang.ClassNotFoundException { java.io.ObjectInputStream ois = null ; try { ois = new java.io.ObjectInputStream ( new java.io.ByteArrayInputStream ( serialized ) ) ; return ois.readObject ( ) ; } finally { libcore.io.IoUtils.closeQuietly ( ois ) ; } }
Source:
public void init ( org.bouncycastle.crypto.params.AsymmetricKeyParameter privateKey , org.bouncycastle.crypto.CipherParameters params , org.bouncycastle.crypto.KeyParser publicKeyParser ) { this . forEncryption = false ; this . privParam = privateKey ; this . param = ( ( org.bouncycastle.crypto.params.IESParameters ) ( params ) ) ; this . keyParser = publicKeyParser ; }

Target:
private void extractParams ( org.bouncycastle.crypto.CipherParameters params ) { if ( params instanceof org.bouncycastle.crypto.params.ParametersWithIV ) { this . IV = ( ( org.bouncycastle.crypto.params.ParametersWithIV ) ( params ) ) . getIV ( ) ; this . param = ( ( org.bouncycastle.crypto.params.IESParameters ) ( ( ( org.bouncycastle.crypto.params.ParametersWithIV ) ( params ) ) . getParameters ( ) ) ) ; } else { this . IV = null ; this . param = ( ( org.bouncycastle.crypto.params.IESParameters ) ( params ) ) ; } }
Source:
private void updateEnclosingMethod ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClass type ) { com.android.jack.ir.ast.JMethod enclosingMethod = type.getEnclosingMethod ( ) ; if ( ( enclosingMethod != null ) && ( isPlannedForRemoval ( enclosingMethod ) ) ) { assert ! ( enclosingMethod.isExternal ( ) ) ; type.setEnclosingMethod ( null ) ; } }

Target:
private void updateEnclosingMethod ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClass type ) { com.android.jack.ir.ast.JMethod enclosingMethod = type.getEnclosingMethod ( ) ; if ( ( enclosingMethod != null ) && ( isPlannedForRemoval ( enclosingMethod ) ) ) { assert enclosingMethod.getEnclosingType ( ) . isToEmit ( ) ; type.setEnclosingMethod ( null ) ; } }
Source:
public java.util.List < android.net.wifi.WifiConfiguration > getPrivilegedConfiguredNetworks ( ) { try { return mService.getPrivilegedConfiguredNetworks ( ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }

Target:
public java.util.List < android.net.wifi.WifiConfiguration > getPrivilegedConfiguredNetworks ( ) { try { android.content.pm.ParceledListSlice < android.net.wifi.WifiConfiguration > parceledList = mService.getPrivilegedConfiguredNetworks ( ) ; if ( parceledList == null ) { return java.util.Collections.emptyList ( ) ; } return parceledList.getList ( ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
public boolean equals ( @ javax.annotation.Nullable java.lang.Object obj ) { if ( obj == ( this ) ) { return true ; } if ( obj instanceof com.google.common.collect.Table ) { com.google.common.collect.Table < ? , ? , ? > other = ( ( com.google.common.collect.Table < ? , ? , ? > ) ( obj ) ) ; return cellSet ( ) . equals ( other.cellSet ( ) ) ; } return false ; }

Target:
static boolean equalsImpl ( com.google.common.collect.Table < ? , ? , ? > table , @ javax.annotation.Nullable java.lang.Object obj ) { if ( obj == table ) { return true ; } else if ( obj instanceof com.google.common.collect.Table ) { com.google.common.collect.Table < ? , ? , ? > that = ( ( com.google.common.collect.Table < ? , ? , ? > ) ( obj ) ) ; return table.cellSet ( ) . equals ( that.cellSet ( ) ) ; } else { return false ; } }
Source:
public int lastIndexOf ( E e , int index ) { java.lang.Object [ ] elements = getArray ( ) ; return java.util.concurrent.CopyOnWriteArrayList.lastIndexOf ( e , elements , index ) ; }

Target:
public synchronized void add ( int index , E e ) { java.lang.Object [ ] newElements = new java.lang.Object [ ( elements.length ) + 1 ] ; java.lang.System.arraycopy ( elements , 0 , newElements , 0 , index ) ; newElements [ index ] = e ; java.lang.System.arraycopy ( elements , index , newElements , ( index + 1 ) , ( ( elements.length ) - index ) ) ; elements = newElements ; }
Source:
public java.lang.String sendEnvelopeWithStatus ( java.lang.String content ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.sendEnvelopeWithStatus ( content ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return "" ; }

Target:
public android.telephony.VisualVoicemailSmsFilterSettings getVisualVoicemailSmsFilterSettings ( int subId ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { return telephony.getVisualVoicemailSmsFilterSettings ( mContext.getOpPackageName ( ) , subId ) ; } } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return null ; }
Source:
public com.android.apksig.internal.util.ByteBufferDataSource slice ( long offset , long size ) { if ( ( offset == 0 ) && ( size == ( mSize ) ) ) { return this ; } if ( ( size < 0 ) || ( size > ( mSize ) ) ) { throw new java.lang.IllegalArgumentException ( ( ( ( "size: " + size ) + ", source size: " ) + ( mSize ) ) ) ; } return new com.android.apksig.internal.util.ByteBufferDataSource ( getByteBuffer ( offset , ( ( int ) ( size ) ) ) , false ) ; }

Target:
public com.android.apksig.internal.util.ByteBufferDataSource slice ( long offset , long size ) { if ( ( offset == 0 ) && ( size == ( mSize ) ) ) { return this ; } if ( ( size < 0 ) || ( size > ( mSize ) ) ) { throw new java.lang.IndexOutOfBoundsException ( ( ( ( "size: " + size ) + ", source size: " ) + ( mSize ) ) ) ; } return new com.android.apksig.internal.util.ByteBufferDataSource ( getByteBuffer ( offset , ( ( int ) ( size ) ) ) , false ) ; }
Source:
public synchronized void setUp ( com.android.tradefed.invoker.IInvocationContext context ) throws com.android.tradefed.device.DeviceNotAvailableException , com.android.tradefed.targetprep.BuildError , com.android.tradefed.targetprep.TargetSetupError { ++ ( mNumOfInstances ) ; mBuildInfo = context.getBuildInfos ( ) . get ( 0 ) ; if ( ( mNumOfInstances ) == 1 ) { com.android.tradefed.device.ITestDevice device = context.getDevices ( ) . get ( 0 ) ; mDescriptor = device.getDeviceDescriptor ( ) ; createVirtualenv ( mBuildInfo ) ; setLocalPypiPath ( ) ; installDeps ( ) ; } addPathToBuild ( mBuildInfo ) ; }

Target:
public synchronized void setUp ( com.android.tradefed.invoker.IInvocationContext context ) throws com.android.tradefed.device.DeviceNotAvailableException , com.android.tradefed.targetprep.BuildError , com.android.tradefed.targetprep.TargetSetupError { ++ ( mNumOfInstances ) ; mBuildInfo = context.getBuildInfos ( ) . get ( 0 ) ; if ( ( mNumOfInstances ) == 1 ) { com.android.tradefed.device.ITestDevice device = context.getDevices ( ) . get ( 0 ) ; mDescriptor = device.getDeviceDescriptor ( ) ; createVirtualenv ( mBuildInfo ) ; com.android.tradefed.util.VtsPythonRunnerHelper.activateVirtualenv ( getRunUtil ( ) , mVenvDir.getAbsolutePath ( ) ) ; setLocalPypiPath ( ) ; installDeps ( ) ; } addPathToBuild ( mBuildInfo ) ; }
Source:
public void analyze ( @ javax.annotation.Nonnull java.io.File jackCoverageDescriptionFile ) throws java.io.IOException { if ( ! ( jackCoverageDescriptionFile.exists ( ) ) ) { throw new java.lang.IllegalArgumentException ( ( ( "File " + jackCoverageDescriptionFile ) + " does not exist." ) ) ; } com.google.gson.stream.JsonReader jsonReader = new com.google.gson.stream.JsonReader ( new java.io.InputStreamReader ( new java.io.FileInputStream ( jackCoverageDescriptionFile ) ) ) ; try { readClasses ( jsonReader ) ; } finally { jsonReader.close ( ) ; } }

Target:
public void analyze ( @ javax.annotation.Nonnull java.io.File jackCoverageDescriptionFile ) throws java.io.IOException { if ( ! ( jackCoverageDescriptionFile.exists ( ) ) ) { throw new java.lang.IllegalArgumentException ( ( ( "File " + jackCoverageDescriptionFile ) + " does not exist." ) ) ; } java.io.InputStream is = new java.io.FileInputStream ( jackCoverageDescriptionFile ) ; try { analyze ( is ) ; } finally { is.close ( ) ; } }
Source:
public void connect ( ) throws java.io.IOException { if ( ! ( connected ) ) { this . jarEntry = libcore.io.ClassPathURLStreamHandler.findEntryWithDirectoryFallback ( strictJarFile , getEntryName ( ) ) ; if ( ( jarEntry ) == null ) { throw new java.io.FileNotFoundException ( ( ( ( "URL does not correspond to an entry in the zip file. URL=" + ( url ) ) + ", zipfile=" ) + ( strictJarFile.getName ( ) ) ) ) ; } connected = true ; } }

Target:
public void connect ( ) throws java.io.IOException { if ( ! ( connected ) ) { this . jarEntry = libcore.io.ClassPathURLStreamHandler.findEntryWithDirectoryFallback ( strictJarFile , getEntryName ( ) ) ; if ( ( jarEntry ) == null ) { throw new java.io.FileNotFoundException ( ( ( ( "URL does not correspond to an entry in the zip file. URL=" + ( url ) ) + ", zipfile=" ) + ( strictJarFile.getName ( ) ) ) ) ; } jarFileMustBehaveAsCached = getUseCaches ( ) ; connected = true ; } }
Source:
public boolean onCreateWindow ( boolean isDialog , boolean isUserGesture ) { android.os.Message m = mUiThreadHandler.obtainMessage ( com.android.webview.chromium.WebViewContentsClientAdapter.NEW_WEBVIEW_CREATED , mWebView.new com.android.webview.chromium.WebViewTransport ( ) ) ; org.chromium.base.TraceEvent.begin ( ) ; boolean result ; if ( ( mWebChromeClient ) != null ) { if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , "onCreateWindow" ) ; result = mWebChromeClient.onCreateWindow ( mWebView , isDialog , isUserGesture , m ) ; } else { result = false ; } org.chromium.base.TraceEvent.end ( ) ; return result ; }

Target:
public boolean onCreateWindow ( boolean isDialog , boolean isUserGesture ) { try { org.chromium.base.TraceEvent.begin ( "WebViewContentsClientAdapter.onCreateWindow" ) ; android.os.Message m = mUiThreadHandler.obtainMessage ( com.android.webview.chromium.WebViewContentsClientAdapter.NEW_WEBVIEW_CREATED , mWebView.new com.android.webview.chromium.WebViewTransport ( ) ) ; boolean result ; if ( ( mWebChromeClient ) != null ) { if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , "onCreateWindow" ) ; result = mWebChromeClient.onCreateWindow ( mWebView , isDialog , isUserGesture , m ) ; } else { result = false ; } return result ; } finally { org.chromium.base.TraceEvent.end ( "WebViewContentsClientAdapter.onCreateWindow" ) ; } }
Source:
protected void onMeasure ( int widthMeasureSpec , int heightMeasureSpec ) { final android.view.WindowManager wm = ( ( android.view.WindowManager ) ( getContext ( ) . getSystemService ( Context.WINDOW_SERVICE ) ) ) ; final int width = wm.getDefaultDisplay ( ) . getWidth ( ) ; final int height = wm.getDefaultDisplay ( ) . getHeight ( ) ; int squareSide = java.lang.Math.min ( width , height ) ; if ( width > height ) { squareSide -= com.android.internal.widget.LockPatternView.STATUS_BAR_HEIGHT ; } setMeasuredDimension ( squareSide , squareSide ) ; }

Target:
protected void onMeasure ( int widthMeasureSpec , int heightMeasureSpec ) { final int width = com.android.internal.widget.MeasureSpec.getSize ( widthMeasureSpec ) ; final int height = com.android.internal.widget.MeasureSpec.getSize ( heightMeasureSpec ) ; final int squareSide = java.lang.Math.min ( width , height ) ; setMeasuredDimension ( squareSide , squareSide ) ; }
Source:
protected void addPathToBuild ( com.android.tradefed.build.IBuildInfo buildInfo ) { if ( ( buildInfo.getFile ( com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer.PYTHONPATH ) ) == null ) { buildInfo.setFile ( com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer.PYTHONPATH , new java.io.File ( mVenvDir , "local/lib/python2.7/site-packages" ) , buildInfo.getBuildId ( ) ) ; } if ( ( buildInfo.getFile ( com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer.VIRTUAL_ENV_PATH ) ) == null ) { buildInfo.setFile ( com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer.VIRTUAL_ENV_PATH , new java.io.File ( mVenvDir.getAbsolutePath ( ) ) , buildInfo.getBuildId ( ) ) ; } }

Target:
public java.lang.String getPipPath ( ) { if ( ( mPipPath ) != null ) { return mPipPath ; } java.lang.String virtualenvPath = mVenvDir.getAbsolutePath ( ) ; if ( virtualenvPath == null ) { return null ; } mPipPath = new java.io.File ( com.android.tradefed.util.VtsPythonRunnerHelper.getPythonBinDir ( virtualenvPath ) , "pip" ) . getAbsolutePath ( ) ; return mPipPath ; }
Source:
void updatePackageCache ( ) { android.content.pm.PackageManager pm = mContext.getPackageManager ( ) ; java.util.List < android.content.pm.PackageInfo > packagesNfcEvents = pm.getPackagesHoldingPermissions ( new java.lang.String [ ] { android.Manifest.permission.NFC_TRANSACTION_EVENT } , PackageManager.GET_ACTIVITIES ) ; synchronized ( this ) { mNfcEventInstalledPackages = packagesNfcEvents ; } }

Target:
void updatePackageCache ( ) { android.content.pm.PackageManager pm = mContext.getPackageManager ( ) ; java.util.List < android.content.pm.PackageInfo > packagesNfcEvents = pm.getPackagesHoldingPermissions ( new java.lang.String [ ] { android.Manifest.permission.NFC_TRANSACTION_EVENT } , PackageManager.GET_ACTIVITIES ) ; synchronized ( this ) { mNfcEventInstalledPackages.clear ( ) ; for ( int i = 0 ; i < ( packagesNfcEvents.size ( ) ) ; i ++ ) { mNfcEventInstalledPackages.add ( packagesNfcEvents.get ( i ) . packageName ) ; } } }
Source:
private void moveUp ( ) { if ( ( selectedConfiguration ) != null ) { int index = editableConfigurations.indexOf ( selectedConfiguration ) ; if ( index > 0 ) { moveConfigurationToIndex ( ( index - 1 ) , selectedConfiguration ) ; } } }

Target:
private void addNewConfiguration ( com.google.gct.testing.CloudConfigurationImpl newConfiguration ) { newConfiguration.setIcon ( CloudConfigurationProviderImpl.DEFAULT_ICON ) ; int addIndex = ( ( selectedConfiguration ) == null ) ? editableConfigurations.size ( ) : ( editableConfigurations.indexOf ( selectedConfiguration ) ) + 1 ; editableConfigurations.add ( addIndex , newConfiguration ) ; addConfigurationToTree ( addIndex , newConfiguration , true ) ; selectedConfiguration = newConfiguration ; updateConfigurationTree ( ) ; }
Source:
public void testSetLinkAddresses ( ) { android.net.LinkProperties lp = new android.net.LinkProperties ( ) ; lp.addLinkAddress ( android.net.LinkPropertiesTest.LINKADDRV4 ) ; lp.addLinkAddress ( android.net.LinkPropertiesTest.LINKADDRV6 ) ; android.net.LinkProperties lp2 = new android.net.LinkProperties ( ) ; lp2.addLinkAddress ( android.net.LinkPropertiesTest.LINKADDRV6 ) ; assertFalse ( lp.equals ( lp2 ) ) ; lp2.setLinkAddresses ( lp.getLinkAddresses ( ) ) ; assertTrue ( lp.equals ( lp ) ) ; }

Target:
public void testSetLinkAddresses ( ) { android.net.LinkProperties lp = new android.net.LinkProperties ( ) ; lp.addLinkAddress ( android.net.LinkPropertiesTest.LINKADDRV4 ) ; lp.addLinkAddress ( android.net.LinkPropertiesTest.LINKADDRV6 ) ; android.net.LinkProperties lp2 = new android.net.LinkProperties ( ) ; lp2.addLinkAddress ( android.net.LinkPropertiesTest.LINKADDRV6 ) ; org.junit.Assert.assertFalse ( lp.equals ( lp2 ) ) ; lp2.setLinkAddresses ( lp.getLinkAddresses ( ) ) ; org.junit.Assert.assertTrue ( lp.equals ( lp ) ) ; }
Source:
public java.util.List < android.telecom.PhoneAccountHandle > getAllPhoneAccountHandles ( ) { synchronized ( mLock ) { final android.os.UserHandle callingUserHandle = android.os.Binder.getCallingUserHandle ( ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { com.android.server.telecom.Log.startSession ( "TSI.gAPAH" ) ; return mPhoneAccountRegistrar.getAllPhoneAccountHandles ( callingUserHandle ) ; } catch ( java.lang.Exception e ) { com.android.server.telecom.Log.e ( this , e , "getAllPhoneAccounts" ) ; throw e ; } finally { android.os.Binder.restoreCallingIdentity ( token ) ; com.android.server.telecom.Log.endSession ( ) ; } } }

Target:
public java.util.List < android.telecom.PhoneAccountHandle > getAllPhoneAccountHandles ( ) { synchronized ( mLock ) { final android.os.UserHandle callingUserHandle = android.os.Binder.getCallingUserHandle ( ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { android.telecom.Log.startSession ( "TSI.gAPAH" ) ; return mPhoneAccountRegistrar.getAllPhoneAccountHandles ( callingUserHandle ) ; } catch ( java.lang.Exception e ) { android.telecom.Log.e ( this , e , "getAllPhoneAccounts" ) ; throw e ; } finally { android.os.Binder.restoreCallingIdentity ( token ) ; android.telecom.Log.endSession ( ) ; } } }
Source:
static com.google.devtools.common.options.Converter < ? > findConverter ( java.lang.reflect.Field optionField ) { com.google.devtools.common.options.Option annotation = optionField.getAnnotation ( com.google.devtools.common.options.Option.class ) ; if ( ( annotation.converter ( ) ) == ( com.google.devtools.common.options.Converter.class ) ) { java.lang.reflect.Type type = com.google.devtools.common.options.IsolatedOptionsData.getFieldSingularType ( optionField , annotation ) ; com.google.devtools.common.options.Converter < ? > converter = Converters.DEFAULT_CONVERTERS.get ( type ) ; if ( converter == null ) { throw new java.lang.AssertionError ( ( ( ( ( "No converter found for " + type ) + "; possible fix: add " ) + "converter=... to @Option annotation for " ) + ( optionField.getName ( ) ) ) ) ; } return converter ; } try { java.lang.Class < ? > converter = annotation.converter ( ) ; java.lang.reflect.Constructor < ? > constructor = converter.getConstructor ( ) ; return ( ( com.google.devtools.common.options.Converter < ? > ) ( constructor.newInstance ( ) ) ) ; } catch ( java.lang.Exception e ) { throw new java.lang.AssertionError ( e ) ; } }

Target:
static com.google.devtools.common.options.Converter < ? > findConverter ( java.lang.reflect.Field optionField ) { com.google.devtools.common.options.Option annotation = optionField.getAnnotation ( com.google.devtools.common.options.Option.class ) ; if ( ( annotation.converter ( ) ) == ( com.google.devtools.common.options.Converter.class ) ) { java.lang.reflect.Type type = com.google.devtools.common.options.IsolatedOptionsData.getFieldSingularType ( optionField , annotation ) ; com.google.devtools.common.options.Converter < ? > converter = Converters.DEFAULT_CONVERTERS.get ( type ) ; if ( converter == null ) { throw new com.google.devtools.common.options.OptionsParser.ConstructionException ( ( ( ( ( "No converter found for " + type ) + "; possible fix: add " ) + "converter=... to @Option annotation for " ) + ( optionField.getName ( ) ) ) ) ; } return converter ; } try { java.lang.Class < ? > converter = annotation.converter ( ) ; java.lang.reflect.Constructor < ? > constructor = converter.getConstructor ( ) ; return ( ( com.google.devtools.common.options.Converter < ? > ) ( constructor.newInstance ( ) ) ) ; } catch ( java.lang.Exception e ) { throw new com.google.devtools.common.options.OptionsParser.ConstructionException ( e ) ; } }