auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public com.android.jack.dx.io.instructions.DecodedInstruction decode ( int opcodeUnit , com.android.jack.dx.io.instructions.CodeInput in ) { int baseAddress = ( in.cursor ( ) ) - 1 ; int opcode = com.android.jack.dx.io.instructions.InstructionCodec.byte0 ( opcodeUnit ) ; int target = ( ( byte ) ( com.android.jack.dx.io.instructions.InstructionCodec.byte1 ( opcodeUnit ) ) ) ; return new com.android.jack.dx.io.instructions.ZeroRegisterDecodedInstruction ( this , opcode , 0 , null , ( baseAddress + target ) , 0L ) ; }

Target:
public com.android.jack.dx.io.instructions.DecodedInstruction decode ( int opcodeUnit , com.android.jack.dx.io.instructions.CodeInput in ) { int baseAddress = ( in.cursor ( ) ) - 1 ; int opcode = com.android.jack.dx.io.instructions.InstructionCodec.byte0 ( opcodeUnit ) ; int target = ( ( byte ) ( com.android.jack.dx.io.instructions.InstructionCodec.byte1 ( opcodeUnit ) ) ) ; return new com.android.jack.dx.io.instructions.ZeroRegisterDecodedInstruction ( this , opcode , 0 , com.android.jack.dx.io.IndexType.NONE , ( baseAddress + target ) , 0L ) ; }
Source:
public void test_parkFor_1 ( ) throws java.lang.Exception { java.util.concurrent.CyclicBarrier barrier = new java.util.concurrent.CyclicBarrier ( 2 ) ; tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker parker = new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker ( barrier , false , 500 ) ; java.lang.Thread parkerThread = new java.lang.Thread ( parker ) ; java.lang.Thread waiterThread = new java.lang.Thread ( new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.WaitAndUnpark ( barrier , 1000 , parkerThread ) ) ; parkerThread.start ( ) ; waiterThread.start ( ) ; parker.assertDurationIsInRange ( 500 ) ; waiterThread.join ( ) ; parkerThread.join ( ) ; }

Target:
public void test_parkFor_1 ( ) throws java.lang.Exception { java.util.concurrent.CyclicBarrier barrier = new java.util.concurrent.CyclicBarrier ( 2 ) ; org.apache.harmony.tests.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker parker = new org.apache.harmony.tests.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker ( barrier , false , 500 ) ; java.lang.Thread parkerThread = new java.lang.Thread ( parker ) ; java.lang.Thread waiterThread = new java.lang.Thread ( new org.apache.harmony.tests.org.apache.harmony.kernel.dalvik.ThreadsTest.WaitAndUnpark ( barrier , 1000 , parkerThread ) ) ; parkerThread.start ( ) ; waiterThread.start ( ) ; parker.assertDurationIsInRange ( 500 ) ; waiterThread.join ( ) ; parkerThread.join ( ) ; }
Source:
public static void dump ( java.io.FileDescriptor fd , java.io.PrintWriter printwriter , java.lang.String [ ] args ) { com.android.voicemail.impl.utils.IndentingPrintWriter indentingPrintWriter = new com.android.voicemail.impl.utils.IndentingPrintWriter ( printwriter , " " ) ; indentingPrintWriter.increaseIndent ( ) ; com.android.voicemail.impl.VvmLog.sLocalLog.dump ( fd , indentingPrintWriter , args ) ; indentingPrintWriter.decreaseIndent ( ) ; }

Target:
public static void dump ( java.io.FileDescriptor fd , java.io.PrintWriter printwriter , java.lang.String [ ] args ) { com.android.voicemail.impl.utils.IndentingPrintWriter indentingPrintWriter = new com.android.voicemail.impl.utils.IndentingPrintWriter ( printwriter , " " ) ; indentingPrintWriter.increaseIndent ( ) ; com.android.voicemail.impl.VvmLog.localLog.dump ( fd , indentingPrintWriter , args ) ; indentingPrintWriter.decreaseIndent ( ) ; }
Source:
java.lang.Object getField ( com.android.tools.perflib.heap.Type type , java.lang.String name ) { return getValues ( ) . get ( new com.android.tools.perflib.heap.Field ( type , name ) ) ; }

Target:
java.util.List < com.android.tools.perflib.heap.ClassInstance.FieldValue > getFields ( java.lang.String name ) { java.util.ArrayList < com.android.tools.perflib.heap.ClassInstance.FieldValue > result = new java.util.ArrayList < com.android.tools.perflib.heap.ClassInstance.FieldValue > ( ) ; for ( com.android.tools.perflib.heap.ClassInstance.FieldValue value : getValues ( ) ) { if ( value.getField ( ) . getName ( ) . equals ( name ) ) { result.add ( value ) ; } } return result ; }
Source:
public java.util.Map < com.android.tools.perflib.heap.Field , java.lang.Object > getValues ( ) { java.util.Map < com.android.tools.perflib.heap.Field , java.lang.Object > result = new java.util.HashMap < com.android.tools.perflib.heap.Field , java.lang.Object > ( ) ; com.android.tools.perflib.heap.ClassObj clazz = getClassObj ( ) ; getBuffer ( ) . setPosition ( mValuesOffset ) ; while ( clazz != null ) { for ( com.android.tools.perflib.heap.Field field : clazz.getFields ( ) ) { result.put ( field , readValue ( field.getType ( ) ) ) ; } clazz = clazz.getSuperClassObj ( ) ; } return result ; }

Target:
public java.util.List < com.android.tools.perflib.heap.ClassInstance.FieldValue > getValues ( ) { java.util.ArrayList < com.android.tools.perflib.heap.ClassInstance.FieldValue > result = new java.util.ArrayList < com.android.tools.perflib.heap.ClassInstance.FieldValue > ( ) ; com.android.tools.perflib.heap.ClassObj clazz = getClassObj ( ) ; getBuffer ( ) . setPosition ( mValuesOffset ) ; while ( clazz != null ) { for ( com.android.tools.perflib.heap.Field field : clazz.getFields ( ) ) { result.add ( new com.android.tools.perflib.heap.ClassInstance.FieldValue ( field , readValue ( field.getType ( ) ) ) ) ; } clazz = clazz.getSuperClassObj ( ) ; } return result ; }
Source:
public boolean removePasspointConfiguration ( java.lang.String fqdn ) { enforceChangePermission ( ) ; mLog.trace ( "removePasspointConfiguration uid=%" ) . c ( android.os.Binder.getCallingUid ( ) ) . flush ( ) ; return mWifiStateMachine.syncRemovePasspointConfig ( mWifiStateMachineChannel , fqdn ) ; }

Target:
public boolean removePasspointConfiguration ( java.lang.String fqdn ) { enforceChangePermission ( ) ; mLog.trace ( "removePasspointConfiguration uid=%" ) . c ( android.os.Binder.getCallingUid ( ) ) . flush ( ) ; if ( ! ( mContext.getResources ( ) . getBoolean ( com.android.internal.R.bool.config_wifi_hotspot2_enabled ) ) ) { throw new java.lang.UnsupportedOperationException ( "Passpoint not enabled" ) ; } return mWifiStateMachine.syncRemovePasspointConfig ( mWifiStateMachineChannel , fqdn ) ; }
Source:
public boolean requestIcon ( java.lang.String bssid , java.lang.String fileName ) { java.lang.String result = doStringCommand ( ( ( ( "REQ_HS20_ICON " + bssid ) + " " ) + fileName ) ) ; return ( result != null ) && ( result.startsWith ( "OK" ) ) ; }

Target:
public boolean requestIcon ( java.lang.String bssid , java.lang.String fileName ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { return mSupplicantStaIfaceHal.initiateHs20IconQuery ( bssid , fileName ) ; } else { java.lang.String result = doStringCommand ( ( ( ( "REQ_HS20_ICON " + bssid ) + " " ) + fileName ) ) ; return ( result != null ) && ( result.startsWith ( "OK" ) ) ; } }
Source:
private static void writeBase64AndRawBytesTo ( byte [ ] bytes , java.io.OutputStream outputStream ) throws java.io.IOException { java.lang.String base64OfBytes = libcore.io.Base64.encode ( bytes ) ; outputStream.write ( base64OfBytes.getBytes ( java.nio.charset.Charset.defaultCharset ( ) ) ) ; outputStream.write ( bytes ) ; }

Target:
public void testCommand_setAndGet ( ) { java.util.List < java.lang.String > expected = java.util.Collections.unmodifiableList ( java.util.Arrays.asList ( "echo" , "fake" , "command" , "for" , libcore.java.lang.ProcessBuilderTest.TAG ) ) ; assertEquals ( expected , new java.lang.ProcessBuilder ( ) . command ( expected ) . command ( ) ) ; assertEquals ( expected , new java.lang.ProcessBuilder ( ) . command ( "echo" , "fake" , "command" , "for" , libcore.java.lang.ProcessBuilderTest.TAG ) . command ( ) ) ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JParameterRef varRef ) { com.android.jack.ir.ast.JExpression exprToUse = getLambdaParameter ( ( ( com.android.jack.ir.ast.JParameter ) ( varRef.getTarget ( ) ) ) ) ; if ( exprToUse != null ) { tr.append ( new com.android.jack.transformations.request.Replace ( varRef , exprToUse ) ) ; return false ; } return super . visit ( varRef ) ; }

Target:
public com.android.jack.ir.ast.JFieldRef getInnerPath ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExpression capturedVar , @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClass innerClass , @ javax.annotation.Nonnull com.android.jack.ir.ast.JExpression instance ) { assert captureVar2InnerPath.containsKey ( capturedVar ) ; com.android.jack.ir.ast.JField innerField = captureVar2InnerPath.get ( capturedVar ) ; return new com.android.jack.ir.ast.JFieldRef ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN , instance , innerField.getId ( ) , innerClass ) ; }
Source:
private void unregisterReceivers ( ) { try { if ( ( mObserver ) != null ) { getContentResolver ( ) . unregisterContentObserver ( mObserver ) ; mObserver = null ; } unregisterReceiver ( mBluetoothReceiver ) ; } catch ( java.lang.IllegalArgumentException e ) { android.util.Log.w ( com.android.bluetooth.opp.BluetoothOppService.TAG , ( "unregisterReceivers already " + ( e.toString ( ) ) ) ) ; } }

Target:
public boolean cleanup ( ) { if ( com.android.bluetooth.opp.BluetoothOppService.V ) { android.util.Log.v ( com.android.bluetooth.opp.BluetoothOppService.TAG , "onDestroy" ) ; } getContentResolver ( ) . unregisterContentObserver ( mObserver ) ; unregisterReceiver ( mBluetoothReceiver ) ; stopListeners ( ) ; if ( ( mBatchs ) != null ) { mBatchs.clear ( ) ; } if ( ( mShares ) != null ) { mShares.clear ( ) ; } if ( ( mHandler ) != null ) { mHandler.removeCallbacksAndMessages ( null ) ; } return true ; }
Source:
public void setUp ( ) throws java.lang.IllegalAccessException , java.lang.NoSuchMethodException , java.lang.reflect.InvocationTargetException { if ( ( android.os.Looper.myLooper ( ) ) == null ) { android.os.Looper.prepare ( ) ; } org.junit.Assert.assertNotNull ( android.os.Looper.myLooper ( ) ) ; org.mockito.MockitoAnnotations.initMocks ( this ) ; mProfiles = com.android.bluetooth.btservice.Config.getSupportedProfiles ( ) ; com.android.bluetooth.TestUtils.setAdapterService ( mMockAdapterService ) ; org.junit.Assert.assertNotNull ( com.android.bluetooth.btservice.AdapterService.getAdapterService ( ) ) ; }

Target:
public void setUp ( ) throws java.lang.IllegalAccessException , java.lang.NoSuchMethodException , java.lang.reflect.InvocationTargetException { if ( ( android.os.Looper.myLooper ( ) ) == null ) { android.os.Looper.prepare ( ) ; } org.junit.Assert.assertNotNull ( android.os.Looper.myLooper ( ) ) ; org.mockito.MockitoAnnotations.initMocks ( this ) ; mProfiles = com.android.bluetooth.btservice.Config.getSupportedProfiles ( ) ; mMockAdapterService.initNative ( ) ; com.android.bluetooth.TestUtils.setAdapterService ( mMockAdapterService ) ; org.junit.Assert.assertNotNull ( com.android.bluetooth.btservice.AdapterService.getAdapterService ( ) ) ; }
Source:
public void onReceivedTitle ( java.lang.String title ) { org.chromium.base.TraceEvent.begin ( ) ; if ( ( mWebChromeClient ) != null ) { if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , "onReceivedTitle" ) ; mWebChromeClient.onReceivedTitle ( mWebView , title ) ; } org.chromium.base.TraceEvent.end ( ) ; }

Target:
public void onReceivedTitle ( java.lang.String title ) { try { org.chromium.base.TraceEvent.begin ( "WebViewContentsClientAdapter.onReceivedTitle" ) ; if ( ( mWebChromeClient ) != null ) { if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , "onReceivedTitle" ) ; mWebChromeClient.onReceivedTitle ( mWebView , title ) ; } } finally { org.chromium.base.TraceEvent.end ( "WebViewContentsClientAdapter.onReceivedTitle" ) ; } }
Source:
static java.lang.String getFingerprintFor ( com.google.protobuf.ByteString data ) { com.android.dialer.common.Assert.checkArgument ( ( data != null ) ) ; try { java.security.MessageDigest md = java.security.MessageDigest.getInstance ( "MD5" ) ; byte [ ] md5Bytes = md.digest ( data.toByteArray ( ) ) ; return android.util.Base64.encodeToString ( md5Bytes , Base64.DEFAULT ) ; } catch ( java.security.NoSuchAlgorithmException e ) { com.android.dialer.common.Assert.fail ( e.toString ( ) ) ; } return null ; }

Target:
static java.lang.String getFingerprintFor ( com.google.protobuf.ByteString data , @ android.support.annotation.Nullable java.lang.String salt ) { com.android.dialer.common.Assert.checkArgument ( ( data != null ) ) ; try { java.security.MessageDigest md = java.security.MessageDigest.getInstance ( "MD5" ) ; if ( salt != null ) { md.update ( salt.getBytes ( ) ) ; } byte [ ] md5Bytes = md.digest ( data.toByteArray ( ) ) ; return android.util.Base64.encodeToString ( md5Bytes , Base64.DEFAULT ) ; } catch ( java.security.NoSuchAlgorithmException e ) { com.android.dialer.common.Assert.fail ( e.toString ( ) ) ; } return null ; }
Source:
public void test_handshake_failsWithInvalidSCT ( ) throws java.lang.Exception { org.conscrypt.OpenSSLSocketImplTest.TestConnection connection = new org.conscrypt.OpenSSLSocketImplTest.TestConnection ( new java.security.cert.X509Certificate [ ] { cert , ca } , certKey , true ) ; connection.clientHooks.ctVerificationEnabled = true ; connection.serverHooks.sctTLSExtension = org.conscrypt.TestUtils.readTestFile ( "ct-signed-timestamp-list-invalid" ) ; connection.doHandshake ( ) ; assertTrue ( ( ( connection.clientException ) instanceof javax.net.ssl.SSLHandshakeException ) ) ; assertTrue ( ( ( connection.clientException.getCause ( ) ) instanceof java.security.cert.CertificateException ) ) ; }

Target:
public void test_handshake_failsWithInvalidSCT ( ) throws java.lang.Exception { org.conscrypt.OpenSSLSocketImplTest.TestConnection connection = new org.conscrypt.OpenSSLSocketImplTest.TestConnection ( new java.security.cert.X509Certificate [ ] { cert , ca } , certKey , true ) ; connection.clientHooks.ctVerificationEnabled = true ; connection.serverHooks.sctTLSExtension = org.conscrypt.TestUtils.readTestFile ( "ct-signed-timestamp-list-invalid" ) ; connection.doHandshake ( ) ; org.junit.Assert.assertThat ( connection.clientException , org.hamcrest.CoreMatchers.instanceOf ( javax.net.ssl.SSLHandshakeException.class ) ) ; org.junit.Assert.assertThat ( connection.clientException.getCause ( ) , org.hamcrest.CoreMatchers.instanceOf ( java.security.cert.CertificateException.class ) ) ; }
Source:
private static long getSampleTimeMillisForData ( java.lang.String inputIanaVersion ) { java.lang.String yearString = inputIanaVersion.substring ( 0 , ( ( inputIanaVersion.length ( ) ) - 1 ) ) ; int year = ( java.lang.Integer.parseInt ( yearString ) ) + 1 ; com.ibm.icu.util.Calendar calendar = new com.ibm.icu.util.GregorianCalendar ( com.ibm.icu.util.TimeZone.GMT_ZONE ) ; calendar.clear ( ) ; calendar.set ( year , Calendar.JULY , 2 , 12 , 0 , 0 ) ; return calendar.getTimeInMillis ( ) ; }

Target:
private static long getSampleOffsetTimeMillisForData ( java.lang.String inputIanaVersion ) { com.ibm.icu.util.Calendar calendar = com.android.libcore.timezone.tzlookup.TzLookupGenerator.getYearStartForData ( inputIanaVersion ) ; calendar.set ( ( ( calendar.get ( Calendar.YEAR ) ) + 1 ) , Calendar.JULY , 2 , 12 , 0 , 0 ) ; return calendar.getTimeInMillis ( ) ; }
Source:
private com.android.sched.vfs.OutputVFS wrapOutputVFS ( @ javax.annotation.Nonnull com.android.sched.vfs.VFS baseVFS ) { try { return new com.android.sched.vfs.GenericOutputVFS ( new com.android.sched.vfs.DeflateFS ( new com.android.sched.vfs.PrefixedFS ( baseVFS , new com.android.sched.vfs.VPath ( "jayce" , '/' ) ) ) ) ; } catch ( com.android.sched.util.file.NotDirectoryException | com.android.sched.util.file.CannotCreateFileException e ) { throw new com.android.jill.JillException ( e ) ; } }

Target:
private com.android.sched.vfs.OutputVFS wrapOutputVFS ( @ javax.annotation.Nonnull com.android.sched.vfs.VFS baseVFS ) { com.android.sched.util.codec.MessageDigestCodec mdCodec = new com.android.sched.util.codec.MessageDigestCodec ( ) ; java.security.Provider.Service service = mdCodec.parseString ( new com.android.sched.util.codec.CodecContext ( ) , "SHA" ) ; try { return new com.android.sched.vfs.GenericOutputVFS ( new com.android.sched.vfs.DeflateFS ( new com.android.sched.vfs.MessageDigestFS ( new com.android.sched.vfs.PrefixedFS ( baseVFS , new com.android.sched.vfs.VPath ( "jayce" , '/' ) ) , new com.android.sched.util.config.MessageDigestFactory ( service ) ) ) ) ; } catch ( com.android.sched.util.file.NotDirectoryException | com.android.sched.util.file.CannotCreateFileException | com.android.sched.vfs.WrongVFSFormatException e ) { throw new com.android.jill.JillException ( e ) ; } }
Source:
public int dexopt ( java.lang.String apkPath , int uid , boolean isPublic , java.lang.String pkgName , java.lang.String instructionSet , boolean vmSafeMode , boolean debuggable ) { if ( ! ( com.android.server.pm.Installer.isValidInstructionSet ( instructionSet ) ) ) { android.util.Slog.e ( com.android.server.pm.Installer.TAG , ( "Invalid instruction set: " + instructionSet ) ) ; return - 1 ; } return mInstaller.dexopt ( apkPath , uid , isPublic , pkgName , instructionSet , vmSafeMode , debuggable ) ; }

Target:
public int dexopt ( java.lang.String apkPath , int uid , boolean isPublic , java.lang.String pkgName , java.lang.String instructionSet , int dexoptNeeded , boolean vmSafeMode , boolean debuggable , @ android.annotation.Nullable java.lang.String outputPath ) { if ( ! ( com.android.server.pm.Installer.isValidInstructionSet ( instructionSet ) ) ) { android.util.Slog.e ( com.android.server.pm.Installer.TAG , ( "Invalid instruction set: " + instructionSet ) ) ; return - 1 ; } return mInstaller.dexopt ( apkPath , uid , isPublic , pkgName , instructionSet , dexoptNeeded , vmSafeMode , debuggable , outputPath ) ; }
Source:
private void startSearch ( java.lang.String initialQuery , boolean selectInitialQuery , android.os.Bundle appSearchData , boolean globalSearch ) { if ( appSearchData == null ) { appSearchData = createGoogleSearchSourceBundle ( com.android.browser.Controller.GOOGLE_SEARCH_SOURCE_TYPE ) ; } com.android.browser.search.SearchEngine searchEngine = mSettings.getSearchEngine ( ) ; if ( ( searchEngine != null ) && ( ! ( searchEngine.supportsVoiceSearch ( ) ) ) ) { appSearchData.putBoolean ( SearchManager.DISABLE_VOICE_SEARCH , true ) ; } mActivity.startSearch ( initialQuery , selectInitialQuery , appSearchData , globalSearch ) ; }

Target:
public void startVoiceRecognizer ( ) { android.content.Intent voice = new android.content.Intent ( android.speech.RecognizerIntent.ACTION_RECOGNIZE_SPEECH ) ; voice.putExtra ( RecognizerIntent.EXTRA_LANGUAGE_MODEL , RecognizerIntent.LANGUAGE_MODEL_FREE_FORM ) ; voice.putExtra ( RecognizerIntent.EXTRA_MAX_RESULTS , 1 ) ; mActivity.startActivityForResult ( voice , com.android.browser.Controller.VOICE_RESULT ) ; }
Source:
public void dragStart ( org.eclipse.swt.dnd.DragSourceEvent event ) { if ( ! ( adjustEventCoordinates ( event ) ) ) { event.doit = false ; return ; } com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutCanvas canvas = mGraphicalEditorPart.getCanvasControl ( ) ; if ( canvas != null ) { canvas.getDragListener ( ) . dragStart ( event ) ; } }

Target:
public void setActionBars ( org.eclipse.ui.IActionBars actionBars ) { super . setActionBars ( actionBars ) ; com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutCanvas canvas = mGraphicalEditorPart.getCanvasControl ( ) ; canvas.updateGlobalActions ( actionBars ) ; actionBars.setGlobalActionHandler ( mTreeSelectAllAction.getId ( ) , mTreeSelectAllAction ) ; actionBars.updateActionBars ( ) ; }
Source:
public void addGeneratedSourceFolders ( @ com.android.annotations.NonNull org.gradle.api.Task task , @ com.android.annotations.NonNull java.lang.Iterable < java.io.File > generatedSourceFolders ) { if ( ( extraGeneratedSourceFolders ) == null ) { extraGeneratedSourceFolders = com.google.common.collect.Lists.newArrayList ( ) ; } javaCompileTask.dependsOn ( task ) ; for ( java.io.File f : generatedSourceFolders ) { extraGeneratedSourceFolders.add ( f ) ; javaCompileTask.source ( f ) ; } }

Target:
public void registerJavaGeneratingTask ( @ com.android.annotations.NonNull org.gradle.api.Task task , @ com.android.annotations.NonNull java.util.Collection < java.io.File > generatedSourceFolders ) { if ( ( extraGeneratedSourceFolders ) == null ) { extraGeneratedSourceFolders = com.google.common.collect.Lists.newArrayList ( ) ; } javaCompileTask.dependsOn ( task ) ; for ( java.io.File f : generatedSourceFolders ) { javaCompileTask.source ( f ) ; } addJavaSourceFoldersToModel ( generatedSourceFolders ) ; }
Source:
private android.content.Intent getEditContactIntent ( ) { return com.android.contacts.editor.EditorIntents.createCompactEditContactIntent ( mContactData.getLookupUri ( ) , ( mHasComputedThemeColor ? new com.android.contacts.common.util.MaterialColorMapUtils.MaterialPalette ( mColorFilterColor , mStatusBarColor ) : null ) , mContactData.getPhotoId ( ) ) ; }

Target:
private void toggleStar ( android.view.MenuItem starredMenuItem , boolean isStarred ) { com.android.contacts.detail.ContactDisplayUtils.configureStarredMenuItem ( starredMenuItem , mContactData.isDirectoryEntry ( ) , mContactData.isUserProfile ( ) , ( ! isStarred ) ) ; final android.content.Intent intent = com.android.contacts.ContactSaveService.createSetStarredIntent ( this , mContactData.getLookupUri ( ) , ( ! isStarred ) ) ; startService ( intent ) ; final java.lang.CharSequence accessibilityText = ( ! isStarred ) ? getResources ( ) . getText ( R.string.description_action_menu_add_star ) : getResources ( ) . getText ( R.string.description_action_menu_remove_star ) ; mScroller.announceForAccessibility ( accessibilityText ) ; }
Source:
public boolean setNetworkRSSIStats ( int networkId , int numUserTriggeredWifiDisableLowRSSI , int numUserTriggeredWifiDisableBadRSSI , int numUserTriggeredWifiDisableNotHighRSSI , int numTicksAtLowRSSI , int numTicksAtBadRSSI , int numTicksAtNotHighRSSI ) { android.net.wifi.WifiConfiguration config = getInternalConfiguredNetwork ( networkId ) ; if ( config == null ) { return false ; } config.numUserTriggeredWifiDisableLowRSSI = numUserTriggeredWifiDisableLowRSSI ; config.numUserTriggeredWifiDisableBadRSSI = numUserTriggeredWifiDisableBadRSSI ; config.numUserTriggeredWifiDisableNotHighRSSI = numUserTriggeredWifiDisableNotHighRSSI ; config.numTicksAtLowRSSI = numTicksAtLowRSSI ; config.numTicksAtBadRSSI = numTicksAtBadRSSI ; config.numTicksAtNotHighRSSI = numTicksAtNotHighRSSI ; return true ; }

Target:
private void loadInternalDataFromUserStore ( java.util.List < android.net.wifi.WifiConfiguration > configurations , java.util.Set < java.lang.String > deletedEphemeralSSIDs ) { for ( android.net.wifi.WifiConfiguration configuration : configurations ) { configuration.networkId = ( mNextNetworkId ) ++ ; if ( mVerboseLoggingEnabled ) { android.util.Log.v ( com.android.server.wifi.WifiConfigManager.TAG , ( "Adding network from user store " + ( configuration.configKey ( ) ) ) ) ; } mConfiguredNetworks.put ( configuration ) ; } for ( java.lang.String ssid : deletedEphemeralSSIDs ) { mDeletedEphemeralSSIDs.add ( ssid ) ; } }
Source:
public sun.misc.Unsafe run ( ) throws java.lang.Exception { java.lang.reflect.Field f = sun.misc.Unsafe.class . getDeclaredField ( "theUnsafe" ) ; f.setAccessible ( true ) ; return ( ( sun.misc.Unsafe ) ( f.get ( null ) ) ) ; }

Target:
public sun.misc.Unsafe run ( ) throws java.lang.Exception { java.lang.Class < sun.misc.Unsafe > k = sun.misc.Unsafe.class ; for ( java.lang.reflect.Field f : k.getDeclaredFields ( ) ) { f.setAccessible ( true ) ; java.lang.Object x = f.get ( null ) ; if ( k.isInstance ( x ) ) return k.cast ( x ) ; } throw new java.lang.NoSuchFieldError ( "the Unsafe" ) ; }
Source:
public final byte [ ] doFinal ( byte [ ] input ) throws java.lang.IllegalStateException { if ( ! ( isInitMac ) ) { throw new java.lang.IllegalStateException ( ) ; } if ( input != null ) { spiImpl.engineUpdate ( input , 0 , input.length ) ; } return spiImpl.engineDoFinal ( ) ; }

Target:
public final byte [ ] doFinal ( byte [ ] input ) throws java.lang.IllegalStateException { if ( ! ( isInitMac ) ) { throw new java.lang.IllegalStateException ( ) ; } javax.crypto.MacSpi spi = getSpi ( ) ; if ( input != null ) { spi.engineUpdate ( input , 0 , input.length ) ; } return spi.engineDoFinal ( ) ; }
Source:
public void dragFinished ( org.eclipse.swt.dnd.DragSourceEvent e ) { com.android.ide.eclipse.adt.AdtPlugin.printToConsole ( "CanvasDND" , "dragFinished" ) ; if ( ( e.detail ) == ( org.eclipse.swt.dnd.DND.DROP_MOVE ) ) { com.android.ide.eclipse.adt.AdtPlugin.printToConsole ( "CanvasDND" , "dragFinished => MOVE" ) ; } mDragSelection.clear ( ) ; mDragElements = null ; com.android.ide.eclipse.adt.internal.editors.layout.gle2.GlobalCanvasDragInfo.getInstance ( ) . stopDrag ( ) ; }

Target:
public void dragFinished ( org.eclipse.swt.dnd.DragSourceEvent e ) { if ( ( e.detail ) == ( org.eclipse.swt.dnd.DND.DROP_MOVE ) ) { com.android.ide.eclipse.adt.AdtPlugin.printToConsole ( "CanvasDND" , "dragFinished => MOVE" ) ; mLayoutEditor.wrapUndoRecording ( "Remove drag'n'drop source elements" , new java.lang.Runnable ( ) { public void run ( ) { mLayoutEditor.editXmlModel ( new java.lang.Runnable ( ) { public void run ( ) { cutDragSelection ( ) ; } } ) ; } } ) ; } mDragSelection.clear ( ) ; mDragElements = null ; com.android.ide.eclipse.adt.internal.editors.layout.gle2.GlobalCanvasDragInfo.getInstance ( ) . stopDrag ( ) ; }
Source:
public java.lang.String getTree ( com.android.sdkuilib.internal.repository.core.PackagesDiffLogic l , boolean displaySortByApi ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; for ( com.android.sdkuilib.internal.repository.core.PkgCategory cat : m.getCategories ( displaySortByApi ) ) { sb.append ( cat.toString ( ) ) . append ( '\n' ) ; for ( com.android.sdkuilib.internal.repository.core.PkgItem item : cat.getItems ( ) ) { sb.append ( "-- " ) . append ( item.toString ( ) ) . append ( '\n' ) ; } } return sb.toString ( ) ; }

Target:
public java.lang.String getTree ( com.android.sdkuilib.internal.repository.core.PackagesDiffLogic l , boolean displaySortByApi ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; for ( com.android.sdkuilib.internal.repository.core.PkgCategory cat : m.getCategories ( displaySortByApi ) ) { sb.append ( cat.toString ( ) ) . append ( '\n' ) ; for ( com.android.sdklib.internal.repository.updater.PkgItem item : cat.getItems ( ) ) { sb.append ( "-- " ) . append ( item.toString ( ) ) . append ( '\n' ) ; } } return sb.toString ( ) ; }
Source:
public int size ( ) { return entrySet ( ) . size ( ) ; }

Target:
public boolean equals ( @ javax.annotation.Nullable java.lang.Object object ) { if ( object instanceof com.google.common.collect.Maps.BiMapConverter ) { com.google.common.collect.Maps.BiMapConverter < ? , ? > that = ( ( com.google.common.collect.Maps.BiMapConverter < ? , ? > ) ( object ) ) ; return this . bimap.equals ( that.bimap ) ; } return false ; }
Source:
private com.android.sdklib.internal.repository.packages.SystemImagePackage createSystemImagePackage ( java.util.Properties props ) throws com.android.sdklib.AndroidVersion.AndroidVersionException { com.android.sdklib.internal.repository.packages.SystemImagePackage p = new com.android.sdklib.internal.repository.packages.SystemImagePackageTest.SysImgPackageFakeArchive ( new com.android.sdklib.AndroidVersion ( props ) , 1 , null , props ) ; return p ; }

Target:
private com.android.sdklib.internal.repository.packages.SystemImagePackage createSystemImagePackage ( java.util.Properties props ) throws com.android.sdklib.AndroidVersion.AndroidVersionException { com.android.sdklib.internal.repository.packages.SystemImagePackage p = new com.android.sdklib.internal.repository.packages.AddonSystemImagePackageTest.SysImgPackageFakeArchive ( new com.android.sdklib.AndroidVersion ( props ) , 1 , props.getProperty ( PkgProps.ADDON_VENDOR_ID ) , props.getProperty ( PkgProps.SYS_IMG_TAG_ID ) , props.getProperty ( PkgProps.SYS_IMG_ABI ) , props ) ; return p ; }
Source:
private static void reportError ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , lombok.ast.VariableDefinition viewHolder , lombok.ast.VariableDefinition parameter ) { java.lang.String variablePrefix ; lombok.ast.VariableDefinitionEntry first = viewHolder.astVariables ( ) . first ( ) ; if ( first != null ) { variablePrefix = first.astName ( ) . astValue ( ) ; } else { variablePrefix = "ViewHolder" ; } java.lang.String message = java.lang.String.format ( ( "Do not treat position as fixed; only use immediately " + "and call `%1$s.getAdapterPosition()` to look it up later" ) , variablePrefix ) ; context.report ( com.android.tools.lint.checks.RecyclerViewDetector.ISSUE , parameter , context.getLocation ( parameter ) , message ) ; }

Target:
private static void reportError ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , com.intellij.psi.PsiParameter viewHolder , com.intellij.psi.PsiParameter parameter ) { java.lang.String variablePrefix = viewHolder.getName ( ) ; if ( variablePrefix == null ) { variablePrefix = "ViewHolder" ; } java.lang.String message = java.lang.String.format ( ( "Do not treat position as fixed; only use immediately " + "and call `%1$s.getAdapterPosition()` to look it up later" ) , variablePrefix ) ; context.report ( com.android.tools.lint.checks.RecyclerViewDetector.FIXED_POSITION , parameter , context.getLocation ( parameter ) , message ) ; }
Source:
private void dumpTimeRecs ( java.util.ArrayList < com.android.traceview.TimeLineView.Record > timeRecs ) { java.lang.System.out.format ( "\nid thread global start,end method\n" ) ; for ( com.android.traceview.TimeLineView.Record record : timeRecs ) { com.android.traceview.Call call = ( ( com.android.traceview.Call ) ( record.block ) ) ; long callTime = call.mThreadStartTime ; java.lang.System.out.format ( "%2d %6d %8d %8d %s\n" , call.getThreadId ( ) , callTime , call.mGlobalStartTime , call.mGlobalEndTime , call.getMethodData ( ) . getName ( ) ) ; } }

Target:
private void dumpTimeRecs ( java.util.ArrayList < com.android.traceview.TimeLineView.Record > timeRecs ) { java.lang.System.out.print ( "\nTime Records\n" ) ; java.lang.System.out.print ( "id t-start t-end g-start g-end method\n" ) ; for ( com.android.traceview.TimeLineView.Record record : timeRecs ) { com.android.traceview.Call call = ( ( com.android.traceview.Call ) ( record.block ) ) ; java.lang.System.out.format ( "%2d %8d %8d %8d %8d %s\n" , call.getThreadId ( ) , call.mThreadStartTime , call.mThreadEndTime , call.mGlobalStartTime , call.mGlobalEndTime , call.getMethodData ( ) . getName ( ) ) ; } }
Source:
private android.bluetooth.BluetoothTestUtils.ConnectProfileReceiver getConnectProfileReceiver ( android.bluetooth.BluetoothDevice device , int profile , int expectedFlags ) { java.lang.String [ ] actions = new java.lang.String [ ] { BluetoothA2dp.ACTION_CONNECTION_STATE_CHANGED , BluetoothHeadset.ACTION_CONNECTION_STATE_CHANGED , BluetoothInputDevice.ACTION_CONNECTION_STATE_CHANGED } ; android.bluetooth.BluetoothTestUtils.ConnectProfileReceiver receiver = new android.bluetooth.BluetoothTestUtils.ConnectProfileReceiver ( device , profile , expectedFlags ) ; addReceiver ( receiver , actions ) ; return receiver ; }

Target:
private android.bluetooth.BluetoothTestUtils.ConnectProfileReceiver getConnectProfileReceiver ( android.bluetooth.BluetoothDevice device , int profile , int expectedFlags ) { java.lang.String [ ] actions = new java.lang.String [ ] { BluetoothA2dp.ACTION_CONNECTION_STATE_CHANGED , BluetoothHeadset.ACTION_CONNECTION_STATE_CHANGED , BluetoothHidHost.ACTION_CONNECTION_STATE_CHANGED } ; android.bluetooth.BluetoothTestUtils.ConnectProfileReceiver receiver = new android.bluetooth.BluetoothTestUtils.ConnectProfileReceiver ( device , profile , expectedFlags ) ; addReceiver ( receiver , actions ) ; return receiver ; }
Source:
public void onServiceDiscovered ( java.lang.Object peerHandle , byte [ ] serviceSpecificInfo , byte [ ] matchFilter ) { android.os.Bundle mResults = new android.os.Bundle ( ) ; mResults.putInt ( "discoverySessionId" , mDiscoverySessionId ) ; mResults.putInt ( "peerId" , ( ( android.net.wifi.nan.WifiNanManager.OpaquePeerHandle ) ( peerHandle ) ) . peerId ) ; mResults.putByteArray ( "serviceSpecificInfo" , serviceSpecificInfo ) ; mResults.putByteArray ( "matchFilter" , matchFilter ) ; mResults.putLong ( "timestampMs" , java.lang.System.currentTimeMillis ( ) ) ; mEventFacade.postEvent ( "WifiNanSessionOnServiceDiscovered" , mResults ) ; }

Target:
public void onServiceDiscovered ( java.lang.Object peerHandle , byte [ ] serviceSpecificInfo , byte [ ] matchFilter ) { android.os.Bundle mResults = new android.os.Bundle ( ) ; mResults.putInt ( "discoverySessionId" , mDiscoverySessionId ) ; mResults.putInt ( "peerId" , ( ( android.net.wifi.aware.WifiAwareManager.OpaquePeerHandle ) ( peerHandle ) ) . peerId ) ; mResults.putByteArray ( "serviceSpecificInfo" , serviceSpecificInfo ) ; mResults.putByteArray ( "matchFilter" , matchFilter ) ; mResults.putLong ( "timestampMs" , java.lang.System.currentTimeMillis ( ) ) ; mEventFacade.postEvent ( "WifiAwareSessionOnServiceDiscovered" , mResults ) ; }
Source:
public void setData ( com.android.hierarchyviewerlib.device.Window window , com.android.hierarchyviewerlib.device.ViewNode viewNode ) { synchronized ( this ) { this . window = window ; tree = new com.android.hierarchyviewerlib.scene.DrawableViewNode ( viewNode ) ; tree.setLeft ( ) ; tree.placeRoot ( ) ; viewport = null ; zoom = 1 ; selectedNode = null ; } notifyTreeChanged ( ) ; }

Target:
public void setData ( com.android.hierarchyviewerlib.device.Window window , com.android.hierarchyviewerlib.device.ViewNode viewNode ) { synchronized ( this ) { if ( ( tree ) != null ) { tree.viewNode.dispose ( ) ; } this . window = window ; tree = new com.android.hierarchyviewerlib.ui.util.DrawableViewNode ( viewNode ) ; tree.setLeft ( ) ; tree.placeRoot ( ) ; viewport = null ; zoom = 1 ; selectedNode = null ; } notifyTreeChanged ( ) ; }
Source:
public javax.lang.model.element.TypeElement getTypeElement ( ) throws com.android.sched.build.SchedAnnotationProcessor.AbortException { assert ( com.android.sched.build.SchedAnnotationProcessor.Items.env ) != null ; if ( ( typeElement ) == null ) { typeElement = com.android.sched.build.SchedAnnotationProcessor.Items.env.getElementUtils ( ) . getTypeElement ( fqName ) ; if ( ( typeElement ) == null ) { com.android.sched.build.SchedAnnotationProcessor.Items.env.getMessager ( ) . printMessage ( javax.tools.Diagnostic.Kind.ERROR , ( ( "Can not get element type '" + ( fqName ) ) + "'" ) ) ; throw new com.android.sched.build.SchedAnnotationProcessor.AbortException ( ) ; } } return typeElement ; }

Target:
public javax.lang.model.element.TypeElement getTypeElement ( ) throws com.android.sched.build.SchedAnnotationProcessor.AbortException { assert ( com.android.sched.build.SchedAnnotationProcessor.Items.env ) != null ; if ( ( typeElement ) == null ) { typeElement = com.android.sched.build.SchedAnnotationProcessor.Items.env.getElementUtils ( ) . getTypeElement ( com.android.sched.build.SchedAnnotationProcessor.getCanonicalName ( fqName ) ) ; if ( ( typeElement ) == null ) { com.android.sched.build.SchedAnnotationProcessor.Items.env.getMessager ( ) . printMessage ( javax.tools.Diagnostic.Kind.ERROR , ( ( "Can not get element type '" + ( fqName ) ) + "'" ) ) ; throw new com.android.sched.build.SchedAnnotationProcessor.AbortException ( ) ; } } return typeElement ; }
Source:
protected int compareTo0 ( com.android.dx.rop.cst.Constant other ) { com.android.dx.rop.cst.CstMethodHandle otherHandle = ( ( com.android.dx.rop.cst.CstMethodHandle ) ( other ) ) ; if ( ( getKind ( ) ) == ( otherHandle.getKind ( ) ) ) { return getRef ( ) . compareTo ( otherHandle.getRef ( ) ) ; } else { return java.lang.Integer.compare ( getKind ( ) , otherHandle.getKind ( ) ) ; } }

Target:
public int getType ( ) { return type ; }
Source:
public final java.util.List < java.lang.Class < ? > > coordinateTypes ( ) { java.lang.invoke.MethodType typeGet = accessModeType ( java.lang.invoke.VarHandle.AccessMode.GET ) ; return typeGet.parameterList ( ) ; }

Target:
public final java.lang.invoke.MethodType accessModeType ( java.lang.invoke.VarHandle.AccessMode accessMode ) { switch ( coordinateTypes.size ( ) ) { case 0 : return accessMode.at.accessModeType ( null , varType ) ; case 1 : return accessMode.at.accessModeType ( coordinateTypes.get ( 0 ) , varType ) ; case 2 : return accessMode.at.accessModeType ( coordinateTypes.get ( 0 ) , varType , coordinateTypes.get ( 1 ) ) ; default : throw new java.lang.InternalError ( ( "bad coordinateTypes: " + ( coordinateTypes ) ) ) ; } }
Source:
private void updateTestProject ( ) { com.android.sdklib.internal.project.ProjectCreator creator = new com.android.sdklib.internal.project.ProjectCreator ( mSdkManager , mOsSdkFolder , ( mSdkCommandLine.isVerbose ( ) ? com.android.sdklib.internal.project.ProjectCreator.OutputLevel.VERBOSE : mSdkCommandLine.isSilent ( ) ? com.android.sdklib.internal.project.ProjectCreator.OutputLevel.SILENT : com.android.sdklib.internal.project.ProjectCreator.OutputLevel.NORMAL ) , mSdkLog ) ; java.lang.String projectDir = getProjectLocation ( mSdkCommandLine.getParamLocationPath ( ) ) ; creator.updateTestProject ( projectDir , mSdkCommandLine.getParamTestProjectMain ( ) , mSdkManager ) ; }

Target:
private void updateTestProject ( ) { com.android.sdklib.internal.project.ProjectCreator creator = getProjectCreator ( ) ; java.lang.String projectDir = getProjectLocation ( mSdkCommandLine.getParamLocationPath ( ) ) ; creator.updateTestProject ( projectDir , mSdkCommandLine.getParamTestProjectMain ( ) , mSdkManager ) ; }
Source:
public android.app.ContextImpl getSystemContext ( ) { synchronized ( this ) { if ( ( android.app.ActivityThread.mSystemContext ) == null ) { android.app.ContextImpl context = android.app.ContextImpl.createSystemContext ( this ) ; android.app.LoadedApk info = new android.app.LoadedApk ( this , "android" , context , null , android.content.res.CompatibilityInfo.DEFAULT_COMPATIBILITY_INFO ) ; context.init ( info , null , this ) ; context.getResources ( ) . updateConfiguration ( getConfiguration ( ) , getDisplayMetricsLocked ( Display.DEFAULT_DISPLAY , CompatibilityInfo.DEFAULT_COMPATIBILITY_INFO ) ) ; android.app.ActivityThread.mSystemContext = context ; } } return android.app.ActivityThread.mSystemContext ; }

Target:
public void handleInstallProvider ( android.content.pm.ProviderInfo info ) { installContentProviders ( mInitialApplication , com.google.android.collect.Lists.newArrayList ( info ) ) ; }
Source:
public synchronized java.util.Iterator < java.lang.Object > iterator ( ) { ensureSorted ( ) ; return com.google.common.collect.Iterators.< java.lang.Object > forArray ( java.lang.Long.valueOf ( getCount ( ) ) , java.lang.Double.valueOf ( getTotal ( ) ) , java.lang.Double.valueOf ( getMin ( ) ) , java.lang.Double.valueOf ( getAverage ( ) ) , java.lang.Double.valueOf ( getFirstQuartile ( ) ) , java.lang.Double.valueOf ( getMedian ( ) ) , java.lang.Double.valueOf ( getThirdQuartile ( ) ) , java.lang.Double.valueOf ( getMax ( ) ) ) ; }

Target:
public boolean isEnabled ( ) { return true ; }
Source:
private org.eclipse.jdt.internal.compiler.lookup.VariableBinding [ ] getEmulationPath ( @ javax.annotation.Nonnull org.eclipse.jdt.internal.compiler.lookup.BlockScope scope , @ javax.annotation.Nonnull org.eclipse.jdt.internal.compiler.lookup.LocalVariableBinding localVariable , org.eclipse.jdt.internal.compiler.ast.ASTNode node ) { org.eclipse.jdt.internal.compiler.lookup.VariableBinding [ ] path = scope.getEmulationPath ( localVariable ) ; if ( path == null ) { throw new com.android.jack.ir.impl.JackIrBuilder.FrontendCompilationError ( ) ; } return path ; }

Target:
private org.eclipse.jdt.internal.compiler.lookup.VariableBinding [ ] getEmulationPath ( @ javax.annotation.Nonnull org.eclipse.jdt.internal.compiler.lookup.BlockScope scope , @ javax.annotation.Nonnull org.eclipse.jdt.internal.compiler.lookup.LocalVariableBinding localVariable , org.eclipse.jdt.internal.compiler.ast.ASTNode node ) { org.eclipse.jdt.internal.compiler.lookup.VariableBinding [ ] path = scope.getEmulationPath ( localVariable ) ; if ( path == null ) { scope.problemReporter ( ) . needImplementation ( node ) ; throw new com.android.jack.ir.impl.JackIrBuilder.FrontendCompilationError ( ) ; } return path ; }
Source:
private void compileTest ( @ javax.annotation.Nonnull java.lang.String test ) throws java.lang.Exception { com.android.jack.test.toolchain.IToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( ) ; toolchain.srcToExe ( com.android.jack.test.toolchain.AbstractTestTools.getClasspathAsString ( toolchain.getDefaultBootClasspath ( ) ) , com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) , false , com.android.jack.test.toolchain.AbstractTestTools.getTestRootDir ( ( ( "com.android.jack.field." + test ) + ".jack" ) ) ) ; }

Target:
private void compileTest ( @ javax.annotation.Nonnull java.lang.String test ) throws java.lang.Exception { com.android.jack.test.toolchain.IToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( ) ; toolchain.addToClasspath ( toolchain.getDefaultBootClasspath ( ) ) . srcToExe ( com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) , false , com.android.jack.test.toolchain.AbstractTestTools.getTestRootDir ( ( ( "com.android.jack.field." + test ) + ".jack" ) ) ) ; }
Source:
public java.lang.String [ ] getIsimImpu ( ) { com.android.internal.telephony.Phone phone = getPhone ( getDefaultSubscription ( ) ) ; mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE , "Requires READ_PRIVILEGED_PHONE_STATE" ) ; com.android.internal.telephony.uicc.IsimRecords isim = phone.getIsimRecords ( ) ; if ( isim != null ) { return isim.getIsimImpu ( ) ; } else { return null ; } }

Target:
public java.lang.String [ ] getIsimPcscf ( int subId ) throws android.os.RemoteException { com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE , "Requires READ_PRIVILEGED_PHONE_STATE" ) ; com.android.internal.telephony.uicc.IsimRecords isim = phone.getIsimRecords ( ) ; if ( isim != null ) { return isim.getIsimPcscf ( ) ; } else { return null ; } } else { loge ( ( "getIsimPcscf phone is null for Subscription:" + subId ) ) ; return null ; } }
Source:
public void testInnerClass ( ) throws java.lang.Exception { assertEquals ( ( "AndroidManifest.xml:14: Error: Class referenced in the manifest, test.pkg.Foo.Bar, was not found in the project or the libraries [MissingRegistered]\n" + ( ( ( ( ( " <activity\n" + " ^\n" ) + "AndroidManifest.xml:23: Error: Class referenced in the manifest, test.pkg.Foo.Baz, was not found in the project or the libraries [MissingRegistered]\n" ) + " <activity\n" ) + " ^\n" ) + "2 errors, 0 warnings\n" ) ) , lintProject ( "registration/AndroidManifest.xml=>AndroidManifest.xml" , "bytecode/.classpath=>.classpath" , "registration/Foo.java.txt=>src/test/pkg/Foo.java" ) ) ; }

Target:
public void testInnerClass ( ) throws java.lang.Exception { mScopes = null ; assertEquals ( ( "AndroidManifest.xml:14: Error: Class referenced in the manifest, test.pkg.Foo.Bar, was not found in the project or the libraries [MissingRegistered]\n" + ( ( ( ( ( " <activity\n" + " ^\n" ) + "AndroidManifest.xml:23: Error: Class referenced in the manifest, test.pkg.Foo.Baz, was not found in the project or the libraries [MissingRegistered]\n" ) + " <activity\n" ) + " ^\n" ) + "2 errors, 0 warnings\n" ) ) , lintProject ( "registration/AndroidManifest.xml=>AndroidManifest.xml" , "bytecode/.classpath=>.classpath" , "apicheck/ApiCallTest.class.data=>bin/classes/foo/bar/ApiCallTest.class" , "registration/Foo.java.txt=>src/test/pkg/Foo.java" ) ) ; }
Source:
public boolean hasSameBehavior ( java.lang.Object a , java.lang.Object b ) { com.ibm.icu.text.DateFormatSymbols dfs_a = ( ( com.ibm.icu.text.DateFormatSymbols ) ( a ) ) ; com.ibm.icu.text.DateFormatSymbols dfs_b = ( ( com.ibm.icu.text.DateFormatSymbols ) ( b ) ) ; java.lang.String [ ] months_a = dfs_a.getMonths ( ) ; java.lang.String [ ] months_b = dfs_b.getMonths ( ) ; return com.ibm.icu.dev.test.serializable.SerializableTest.compareStrings ( months_a , months_b ) ; }

Target:
public boolean hasSameBehavior ( java.lang.Object a , java.lang.Object b ) { com.ibm.icu.text.DateFormatSymbols dfs_a = ( ( com.ibm.icu.text.DateFormatSymbols ) ( a ) ) ; com.ibm.icu.text.DateFormatSymbols dfs_b = ( ( com.ibm.icu.text.DateFormatSymbols ) ( b ) ) ; java.lang.String [ ] months_a = dfs_a.getMonths ( ) ; java.lang.String [ ] months_b = dfs_b.getMonths ( ) ; return com.ibm.icu.dev.test.serializable.SerializableTestUtility.compareStrings ( months_a , months_b ) ; }
Source:
public void enter ( ) { android.os.Message currentMessage = getCurrentMessage ( ) ; android.util.Log.i ( com.android.bluetooth.a2dp.A2dpStateMachine.TAG , ( ( ( "Enter Disconnecting(" + ( mDevice ) ) + "): " ) + ( currentMessage == null ? "null" : com.android.bluetooth.a2dp.A2dpStateMachine.messageWhatToString ( currentMessage.what ) ) ) ) ; mConnectionState = android.bluetooth.BluetoothProfile.STATE_DISCONNECTING ; broadcastConnectionState ( mConnectionState , mLastConnectionState ) ; }

Target:
public void enter ( ) { android.os.Message currentMessage = getCurrentMessage ( ) ; android.util.Log.i ( com.android.bluetooth.a2dp.A2dpStateMachine.TAG , ( ( ( "Enter Disconnecting(" + ( mDevice ) ) + "): " ) + ( currentMessage == null ? "null" : com.android.bluetooth.a2dp.A2dpStateMachine.messageWhatToString ( currentMessage.what ) ) ) ) ; sendMessageDelayed ( com.android.bluetooth.a2dp.A2dpStateMachine.CONNECT_TIMEOUT , com.android.bluetooth.a2dp.A2dpStateMachine.sConnectTimeoutMs ) ; mConnectionState = android.bluetooth.BluetoothProfile.STATE_DISCONNECTING ; broadcastConnectionState ( mConnectionState , mLastConnectionState ) ; }
Source:
static void triggerInstanceOOM ( ) { Main.InstanceMemEater memEater = Main.InstanceMemEater.blowup ( ) ; Main.InstanceMemEater lastMemEater = memEater ; do { lastMemEater.next = Main.InstanceMemEater.blowup ( ) ; lastMemEater = lastMemEater.next ; } while ( lastMemEater != null ) ; memEater.confuseCompilerOptimization ( memEater ) ; java.lang.System.out.println ( "Instance allocation failed" ) ; }

Target:
static boolean triggerInstanceOOM ( ) { Main.InstanceMemEater memEater = Main.InstanceMemEater.allocate ( ) ; Main.InstanceMemEater lastMemEater = memEater ; do { lastMemEater.next = Main.InstanceMemEater.allocate ( ) ; lastMemEater = lastMemEater.next ; } while ( lastMemEater != null ) ; memEater.confuseCompilerOptimization ( memEater ) ; return Main.InstanceMemEater.sawOome ; }
Source:
public static void touch ( java.io.File file ) throws java.io.IOException { if ( ( ! ( file.createNewFile ( ) ) ) && ( ! ( file.setLastModified ( java.lang.System.currentTimeMillis ( ) ) ) ) ) { throw new java.io.IOException ( ( "Unable to update modification time of " + file ) ) ; } }

Target:
public static void touch ( java.io.File file ) throws java.io.IOException { com.google.common.base.Preconditions.checkNotNull ( file ) ; if ( ( ! ( file.createNewFile ( ) ) ) && ( ! ( file.setLastModified ( java.lang.System.currentTimeMillis ( ) ) ) ) ) { throw new java.io.IOException ( ( "Unable to update modification time of " + file ) ) ; } }