auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private java.lang.String parseLicense ( org.w3c.dom.Node packageNode , java.util.Map < java.lang.String , java.lang.String > licenses ) { org.w3c.dom.Node usesLicense = com.android.sdklib.internal.repository.packages.PackageParserUtils.findChildElement ( packageNode , SdkRepoConstants.NODE_USES_LICENSE ) ; if ( usesLicense != null ) { org.w3c.dom.Node ref = usesLicense.getAttributes ( ) . getNamedItem ( SdkRepoConstants.ATTR_REF ) ; if ( ref != null ) { java.lang.String licenseRef = ref.getNodeValue ( ) ; return licenses.get ( licenseRef ) ; } } return null ; }

Target:
private com.android.sdklib.internal.repository.packages.Package.License parseLicense ( org.w3c.dom.Node packageNode , java.util.Map < java.lang.String , java.lang.String > licenses ) { org.w3c.dom.Node usesLicense = com.android.sdklib.internal.repository.packages.PackageParserUtils.findChildElement ( packageNode , SdkRepoConstants.NODE_USES_LICENSE ) ; if ( usesLicense != null ) { org.w3c.dom.Node ref = usesLicense.getAttributes ( ) . getNamedItem ( SdkRepoConstants.ATTR_REF ) ; if ( ref != null ) { java.lang.String licenseRef = ref.getNodeValue ( ) ; return new com.android.sdklib.internal.repository.packages.Package.License ( licenses.get ( licenseRef ) , licenseRef ) ; } } return null ; }
Source:
protected void fillFileTypes ( ) { for ( com.android.jack.library.FileType ft : com.android.jack.library.FileType.values ( ) ) { try { java.lang.String propertyName = buildPropertyName ( ft , null ) ; if ( ( containsProperty ( propertyName ) ) && ( java.lang.Boolean.parseBoolean ( getProperty ( propertyName ) ) ) ) { fileTypes.add ( ft ) ; } } catch ( com.android.jack.library.LibraryFormatException e ) { throw new java.lang.AssertionError ( ) ; } } }

Target:
protected void fillFileTypes ( ) { for ( com.android.jack.library.FileType ft : com.android.jack.library.FileType.values ( ) ) { try { java.lang.String propertyName = buildPropertyName ( ft , null ) ; if ( ( containsProperty ( propertyName ) ) && ( java.lang.Boolean.parseBoolean ( getProperty ( propertyName ) ) ) ) { fileTypes.add ( ft ) ; } } catch ( com.android.jack.library.MissingLibraryPropertyException e ) { throw new java.lang.AssertionError ( e ) ; } } }
Source:
public int compare ( double [ ] left , double [ ] right ) { int minLength = java.lang.Math.min ( left.length , right.length ) ; for ( int i = 0 ; i < minLength ; i ++ ) { int result = com.google.common.primitives.Doubles.compare ( left [ i ] , right [ i ] ) ; if ( result != 0 ) { return result ; } } return ( left.length ) - ( right.length ) ; }

Target:
public int compare ( double [ ] left , double [ ] right ) { int minLength = java.lang.Math.min ( left.length , right.length ) ; for ( int i = 0 ; i < minLength ; i ++ ) { int result = java.lang.Double.compare ( left [ i ] , right [ i ] ) ; if ( result != 0 ) { return result ; } } return ( left.length ) - ( right.length ) ; }
Source:
static void blowup ( char [ ] [ ] holder ) { try { for ( int i = 0 ; i < ( holder.length ) ; ++ i ) { holder [ i ] = new char [ 128 * 1024 ] ; } } catch ( java.lang.OutOfMemoryError oome ) { Main.ArrayMemEater.sawOome = true ; } }

Target:
static boolean triggerArrayOOM ( ) { Main.ArrayMemEater.blowup ( new char [ 128 * 1024 ] [ ] ) ; return Main.ArrayMemEater.sawOome ; }
Source:
public void testConnectViaHttpProxyToHttpsUsingBadProxyAndHttpResponseCache ( ) throws java.lang.Exception { libcore.javax.net.ssl.TestSSLContext testSSLContext = libcore.javax.net.ssl.TestSSLContext.create ( ) ; initResponseCache ( ) ; server.useHttps ( testSSLContext.serverContext.getSocketFactory ( ) , true ) ; com.google.mockwebserver.MockResponse badProxyResponse = new com.google.mockwebserver.MockResponse ( ) . setSocketPolicy ( SocketPolicy.UPGRADE_TO_SSL_AT_END ) . clearHeaders ( ) . setBody ( "bogus proxy connect response content" ) ; server.enqueue ( badProxyResponse ) ; server.enqueue ( new com.google.mockwebserver.MockResponse ( ) . setBody ( "response" ) ) ; server.play ( ) ; java.net.URL url = new java.net.URL ( "https://android.com/foo" ) ; libcore.java.net.URLConnectionTest.ProxyConfig proxyConfig = libcore.java.net.URLConnectionTest.ProxyConfig.PROXY_SYSTEM_PROPERTY ; javax.net.ssl.HttpsURLConnection connection = ( ( javax.net.ssl.HttpsURLConnection ) ( proxyConfig.connect ( server , url ) ) ) ; connection.setSSLSocketFactory ( testSSLContext.clientContext.getSocketFactory ( ) ) ; connection.setHostnameVerifier ( new libcore.java.net.URLConnectionTest.RecordingHostnameVerifier ( ) ) ; assertContent ( "response" , connection ) ; com.google.mockwebserver.RecordedRequest connect = server.takeRequest ( ) ; assertEquals ( "CONNECT android.com:443 HTTP/1.1" , connect.getRequestLine ( ) ) ; assertContains ( connect.getHeaders ( ) , "Host: android.com" ) ; }

Target:
public void testConnectViaHttpProxyToHttpsUsingBadProxyAndHttpResponseCache ( ) throws java.lang.Exception { libcore.javax.net.ssl.TestSSLContext testSSLContext = createDefaultTestSSLContext ( ) ; initResponseCache ( ) ; server.useHttps ( testSSLContext.serverContext.getSocketFactory ( ) , true ) ; com.google.mockwebserver.MockResponse badProxyResponse = new com.google.mockwebserver.MockResponse ( ) . setSocketPolicy ( SocketPolicy.UPGRADE_TO_SSL_AT_END ) . clearHeaders ( ) . setBody ( "bogus proxy connect response content" ) ; server.enqueue ( badProxyResponse ) ; server.enqueue ( new com.google.mockwebserver.MockResponse ( ) . setBody ( "response" ) ) ; server.play ( ) ; java.net.URL url = new java.net.URL ( "https://android.com/foo" ) ; libcore.java.net.URLConnectionTest.ProxyConfig proxyConfig = libcore.java.net.URLConnectionTest.ProxyConfig.PROXY_SYSTEM_PROPERTY ; javax.net.ssl.HttpsURLConnection connection = ( ( javax.net.ssl.HttpsURLConnection ) ( proxyConfig.connect ( server , url ) ) ) ; connection.setSSLSocketFactory ( testSSLContext.clientContext.getSocketFactory ( ) ) ; connection.setHostnameVerifier ( new libcore.java.net.URLConnectionTest.RecordingHostnameVerifier ( ) ) ; assertContent ( "response" , connection ) ; com.google.mockwebserver.RecordedRequest connect = server.takeRequest ( ) ; assertEquals ( "CONNECT android.com:443 HTTP/1.1" , connect.getRequestLine ( ) ) ; assertContains ( connect.getHeaders ( ) , "Host: android.com" ) ; }
Source:
public void getByteBufferFromAllPossibleRanges ( ) throws java.lang.Exception { for ( int begin = 0 ; begin < ( mChain.size ( ) ) ; begin ++ ) { for ( int end = begin + 1 ; end < ( mChain.size ( ) ) ; end ++ ) { int size = end - begin ; java.nio.ByteBuffer buffer = mChain.getByteBuffer ( begin , size ) ; assertByteBufferEquals ( java.nio.ByteBuffer.wrap ( "1234567890" . substring ( begin , end ) . getBytes ( ) ) , buffer ) ; } } }

Target:
public void getByteBufferFromAllPossibleRanges ( ) throws java.lang.Exception { for ( int begin = 0 ; begin < ( mChain.size ( ) ) ; begin ++ ) { for ( int end = begin + 1 ; end < ( mChain.size ( ) ) ; end ++ ) { int size = end - begin ; java.nio.ByteBuffer buffer = mChain.getByteBuffer ( begin , size ) ; assertByteBufferEquals ( java.nio.ByteBuffer.wrap ( "1234567890" . substring ( begin , end ) . getBytes ( java.nio.charset.StandardCharsets.US_ASCII ) ) , buffer ) ; } } }
Source:
protected synchronized java.io.OutputStream getOutputStream ( ) throws java.io.IOException { if ( isClosedOrPending ( ) ) { throw new java.io.IOException ( "Socket Closed" ) ; } if ( shut_wr ) { throw new java.io.IOException ( "Socket output is shutdown" ) ; } return new java.net.SocketOutputStream ( this ) ; }

Target:
protected synchronized java.io.OutputStream getOutputStream ( ) throws java.io.IOException { synchronized ( fdLock ) { if ( isClosedOrPending ( ) ) throw new java.io.IOException ( "Socket Closed" ) ; if ( shut_wr ) throw new java.io.IOException ( "Socket output is shutdown" ) ; if ( ( socketOutputStream ) == null ) socketOutputStream = new java.net.SocketOutputStream ( this ) ; } return socketOutputStream ; }
Source:
public void testImsServiceDownSentCompatNotAvailable ( ) throws android.os.RemoteException { mTestImsServiceBinder.createImsFeature ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 , ImsFeature.MMTEL , mTestCallback ) ; org.mockito.ArgumentCaptor < android.content.Intent > intentCaptor = org.mockito.ArgumentCaptor.forClass ( android.content.Intent.class ) ; org.mockito.Mockito.verify ( mMockContext ) . sendBroadcast ( intentCaptor.capture ( ) ) ; junit.framework.Assert.assertNotNull ( intentCaptor.getValue ( ) ) ; verifyServiceDownSent ( intentCaptor.getValue ( ) ) ; }

Target:
public void testImsServiceDownSentCompatInitializing ( ) throws android.os.RemoteException { mTestImsServiceBinder.createImsFeature ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 , ImsFeature.MMTEL , mTestCallback ) ; mTestImsService.mSpyMMTelFeature.sendSetFeatureState ( ImsFeature.STATE_INITIALIZING ) ; org.mockito.ArgumentCaptor < android.content.Intent > intentCaptor = org.mockito.ArgumentCaptor.forClass ( android.content.Intent.class ) ; org.mockito.Mockito.verify ( mMockContext ) . sendBroadcast ( intentCaptor.capture ( ) ) ; try { junit.framework.Assert.assertNotNull ( intentCaptor.getValue ( ) ) ; verifyServiceDownSent ( intentCaptor.getValue ( ) ) ; } catch ( java.lang.IndexOutOfBoundsException e ) { junit.framework.Assert.fail ( "Did not receive all intents" ) ; } }
Source:
public java.lang.Object getTag ( int key ) { android.util.SparseArray < java.lang.Object > tags = null ; synchronized ( android.view.View.sTagsLock ) { if ( ( android.view.View.sTags ) != null ) { tags = android.view.View.sTags.get ( this ) ; } } if ( tags != null ) return tags.get ( key ) ; return null ; }

Target:
public java.lang.Object getTag ( int key ) { if ( ( mKeyedTags ) != null ) return mKeyedTags.get ( key ) ; return null ; }
Source:
java.lang.IllegalArgumentException toParseException ( java.lang.String message ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( "Unexpected character in decimal format pattern: '" ) ; sb.append ( pattern ) ; sb.append ( "': " ) ; sb.append ( message ) ; sb.append ( ": " ) ; if ( ( peek ( ) ) == ( - 1 ) ) { sb.append ( "EOL" ) ; } else { sb.append ( "'" ) ; sb.append ( java.lang.Character.toChars ( peek ( ) ) ) ; sb.append ( "'" ) ; } return new java.lang.IllegalArgumentException ( sb.toString ( ) ) ; }

Target:
java.lang.IllegalArgumentException toParseException ( java.lang.String message ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( "Malformed pattern for ICU DecimalFormat: \"" ) ; sb.append ( pattern ) ; sb.append ( "\": " ) ; sb.append ( message ) ; sb.append ( " at position " ) ; sb.append ( offset ) ; return new java.lang.IllegalArgumentException ( sb.toString ( ) ) ; }
Source:
void replySucceeded ( android.os.Message msg ) { if ( ( msg.replyTo ) != null ) { android.os.Message reply = android.os.Message.obtain ( ) ; reply.what = android.net.wifi.WifiScanner.CMD_OP_SUCCEEDED ; reply.arg2 = msg.arg2 ; if ( ( msg.obj ) != null ) { reply.obj = msg.obj ; } try { msg.replyTo.send ( reply ) ; } catch ( android.os.RemoteException e ) { } } else { } }

Target:
void replySucceeded ( android.os.Message msg ) { if ( ( msg.replyTo ) != null ) { android.os.Message reply = android.os.Message.obtain ( ) ; reply.what = android.net.wifi.WifiScanner.CMD_OP_SUCCEEDED ; reply.arg2 = msg.arg2 ; if ( ( msg.obj ) != null ) { reply.obj = msg.obj ; } try { msg.replyTo.send ( reply ) ; mLog.trace ( "replySucceeded recvdMessage=%" ) . c ( msg.what ) . flush ( ) ; } catch ( android.os.RemoteException e ) { } } else { } }
Source:
private void assertVerifiedForEach ( java.lang.String apkFilenamePatternInResources , java.lang.String [ ] args , java.lang.Integer minSdkVersionOverride ) throws java.lang.Exception { for ( java.lang.String arg : args ) { java.lang.String apkFilenameInResources = java.lang.String.format ( java.util.Locale.US , apkFilenamePatternInResources , arg ) ; assertVerified ( apkFilenameInResources , minSdkVersionOverride ) ; } }

Target:
private void assertVerifiedForEach ( java.lang.String apkFilenamePatternInResources , java.lang.String [ ] args , java.lang.Integer minSdkVersionOverride , java.lang.Integer maxSdkVersionOverride ) throws java.lang.Exception { for ( java.lang.String arg : args ) { java.lang.String apkFilenameInResources = java.lang.String.format ( java.util.Locale.US , apkFilenamePatternInResources , arg ) ; assertVerified ( apkFilenameInResources , minSdkVersionOverride , maxSdkVersionOverride ) ; } }
Source:
public java.lang.String wifiNanCreateNetworkSpecifier ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "role" , description = "The role of the device: Initiator (0) or Responder (1)" ) java.lang.Integer role , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "sessionId" , description = "The session ID returned when session was created using publish or subscribe" ) java.lang.Integer sessionId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "peerId" , description = "The ID of the peer (obtained through OnMatch or OnMessageReceived" ) java.lang.Integer peerId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "token" , description = "Arbitrary token message to be sent to peer as part of data-path creation process" ) java.lang.String token ) { android.net.wifi.nan.WifiNanDiscoveryBaseSession session = mSessions.get ( sessionId ) ; if ( session == null ) { throw new java.lang.IllegalStateException ( ( ( "Calling wifiNanStartRanging before session (session ID " + sessionId ) + " is ready" ) ) ; } byte [ ] bytes = token.getBytes ( ) ; return session.createNetworkSpecifier ( role , peerId , bytes ) ; }

Target:
public java.lang.String wifiNanCreateNetworkSpecifier ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "role" , description = "The role of the device: Initiator (0) or Responder (1)" ) java.lang.Integer role , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "sessionId" , description = "The session ID returned when session was created using publish or subscribe" ) java.lang.Integer sessionId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "peerId" , description = "The ID of the peer (obtained through OnMatch or OnMessageReceived" ) java.lang.Integer peerId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "token" , description = "Arbitrary token message to be sent to peer as part of data-path creation process" ) java.lang.String token ) { android.net.wifi.nan.WifiNanDiscoveryBaseSession session ; synchronized ( mLock ) { session = mDiscoverySessions.get ( sessionId ) ; } if ( session == null ) { throw new java.lang.IllegalStateException ( ( ( "Calling wifiNanStartRanging before session (session ID " + sessionId ) + " is ready" ) ) ; } byte [ ] bytes = token.getBytes ( ) ; return session.createNetworkSpecifier ( role , peerId , bytes ) ; }
Source:
public void copy ( @ javax.annotation.Nonnull com.android.sched.vfs.VFile vFile ) throws com.android.sched.util.file.CannotCloseInputException , com.android.sched.util.file.CannotCloseOutputException , com.android.sched.util.file.CannotReadException , com.android.sched.util.file.CannotWriteException , com.android.sched.util.file.WrongPermissionException { try ( java.io.InputStream is = getInputStream ( ) ) { try ( java.io.OutputStream os = vFile.getOutputStream ( ) ) { new com.android.sched.util.stream.LocationByteStreamSucker ( is , os , this , vFile ) . suck ( ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.file.CannotCloseOutputException ( vFile , e ) ; } } catch ( java.io.IOException e ) { throw new com.android.sched.util.file.CannotCloseInputException ( this , e ) ; } }

Target:
public void copy ( @ javax.annotation.Nonnull com.android.sched.vfs.VFile vFile ) throws com.android.sched.util.file.CannotCloseException , com.android.sched.util.file.CannotReadException , com.android.sched.util.file.CannotWriteException , com.android.sched.util.file.WrongPermissionException { try ( java.io.InputStream is = getInputStream ( ) ) { try ( java.io.OutputStream os = vFile.getOutputStream ( ) ) { new com.android.sched.util.stream.LocationByteStreamSucker ( is , os , this , vFile ) . suck ( ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.file.CannotCloseException ( vFile , e ) ; } } catch ( java.io.IOException e ) { throw new com.android.sched.util.file.CannotCloseException ( this , e ) ; } }
Source:
public boolean visit ( org.eclipse.jdt.internal.compiler.ast.FieldDeclaration x , org.eclipse.jdt.internal.compiler.lookup.MethodScope scope ) { try { pushInitializerMethodInfo ( x , scope ) ; return true ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }

Target:
public boolean visit ( org.eclipse.jdt.internal.compiler.ast.Initializer x , org.eclipse.jdt.internal.compiler.lookup.MethodScope scope ) { try { pushInitializerMethodInfo ( x , scope ) ; return true ; } catch ( com.android.jack.lookup.JMethodLookupException e ) { throw translateException ( x , e ) ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }
Source:
public void lookupTypeError2 ( ) throws com.android.jack.ir.ast.JTypeLookupException { boolean fail = false ; try { com.android.jack.gwt.BinaryLookup.lookup.getType ( "" ) ; fail = true ; } catch ( java.lang.AssertionError e ) { } junit.framework.Assert.assertFalse ( fail ) ; }

Target:
public void lookupTypeError2 ( ) throws com.android.jack.ir.ast.JTypeLookupException { org.junit.Assume.assumeTrue ( com.android.jack.TestTools.areAssertionsEnabled ( ) ) ; boolean fail = false ; try { com.android.jack.gwt.BinaryLookup.lookup.getType ( "" ) ; fail = true ; } catch ( java.lang.AssertionError e ) { } junit.framework.Assert.assertFalse ( fail ) ; }
Source:
public boolean checkAndSet ( java.lang.String value , com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config ) { com.android.resources.NavigationState state = com.android.resources.NavigationState.getEnum ( value ) ; if ( state != null ) { com.android.ide.eclipse.adt.internal.resources.configurations.NavigationStateQualifier qualifier = new com.android.ide.eclipse.adt.internal.resources.configurations.NavigationStateQualifier ( ) ; qualifier.mValue = state ; config.setNavigationStateQualifier ( qualifier ) ; return true ; } return false ; }

Target:
public boolean checkAndSet ( java.lang.String value , com.android.ide.common.resources.configuration.FolderConfiguration config ) { com.android.resources.NavigationState state = com.android.resources.NavigationState.getEnum ( value ) ; if ( state != null ) { com.android.ide.common.resources.configuration.NavigationStateQualifier qualifier = new com.android.ide.common.resources.configuration.NavigationStateQualifier ( ) ; qualifier.mValue = state ; config.setNavigationStateQualifier ( qualifier ) ; return true ; } return false ; }
Source:
public void fillRect ( int x1 , int y1 , int x2 , int y2 ) { checkGC ( ) ; int x = mHScale.translate ( x1 ) ; int y = mVScale.translate ( y1 ) ; int w = mHScale.scale ( ( x2 - x1 ) ) ; int h = mVScale.scale ( ( y2 - y1 ) ) ; getGc ( ) . fillRectangle ( x , y , w , h ) ; }

Target:
public void fillRect ( int x1 , int y1 , int x2 , int y2 ) { checkGC ( ) ; useFillAlpha ( ) ; int x = mHScale.translate ( x1 ) ; int y = mVScale.translate ( y1 ) ; int w = mHScale.scale ( ( x2 - x1 ) ) ; int h = mVScale.scale ( ( y2 - y1 ) ) ; getGc ( ) . fillRectangle ( x , y , w , h ) ; }
Source:
public void testAlwaysSameValueWithSameSeed ( ) throws java.lang.Exception { byte [ ] seed1 = new byte [ ] { 'a' , 'b' , 'c' } ; java.security.SecureRandom sr1 = java.security.SecureRandom.getInstance ( "SHA1PRNG" ) ; sr1.setSeed ( seed1 ) ; assertEquals ( 6180693691264871500L , sr1.nextLong ( ) ) ; }

Target:
public void testAlwaysSameValueWithSameSeed ( ) throws java.lang.Exception { byte [ ] seed1 = new byte [ ] { 'a' , 'b' , 'c' } ; java.security.SecureRandom sr1 = java.security.SecureRandom.getInstance ( "SHA1PRNG" , "Crypto" ) ; sr1.setSeed ( seed1 ) ; assertEquals ( 6180693691264871500L , sr1.nextLong ( ) ) ; }
Source:
public void createControl ( org.eclipse.swt.widgets.Composite parent ) { org.eclipse.swt.widgets.Composite content = new org.eclipse.swt.widgets.Composite ( parent , org.eclipse.swt.SWT.NONE ) ; org.eclipse.swt.layout.GridLayout layout = new org.eclipse.swt.layout.GridLayout ( ) ; layout.numColumns = 1 ; content.setLayout ( layout ) ; createStringGroup ( content ) ; createResFileGroup ( content ) ; validatePage ( ) ; setControl ( content ) ; }

Target:
public void createControl ( org.eclipse.swt.widgets.Composite parent ) { org.eclipse.swt.widgets.Composite content = new org.eclipse.swt.widgets.Composite ( parent , org.eclipse.swt.SWT.NONE ) ; org.eclipse.swt.layout.GridLayout layout = new org.eclipse.swt.layout.GridLayout ( ) ; content.setLayout ( layout ) ; createStringGroup ( content ) ; createResFileGroup ( content ) ; createOptionGroup ( content ) ; initUi ( ) ; setControl ( content ) ; }
Source:
public static void startCallForRow ( android.app.Activity activity , com.android.dialer.calllog.model.CoalescedRow row ) { com.android.dialer.precall.PreCall.start ( activity , new com.android.dialer.callintent.CallIntentBuilder ( row.getNumber ( ) . getNormalizedNumber ( ) , CallInitiationType.Type.CALL_LOG ) . setIsVideoCall ( ( ( ( row.getFeatures ( ) ) & ( android.provider.CallLog.Calls.FEATURES_VIDEO ) ) == ( android.provider.CallLog.Calls.FEATURES_VIDEO ) ) ) ) ; }

Target:
public static void startCallForRow ( android.app.Activity activity , com.android.dialer.calllog.model.CoalescedRow row ) { com.android.dialer.precall.PreCall.start ( activity , new com.android.dialer.callintent.CallIntentBuilder ( row.getNumber ( ) . getNormalizedNumber ( ) , CallInitiationType.Type.CALL_LOG ) . setIsVideoCall ( ( ( ( row.getFeatures ( ) ) & ( android.provider.CallLog.Calls.FEATURES_VIDEO ) ) == ( android.provider.CallLog.Calls.FEATURES_VIDEO ) ) ) . setIsDuoCall ( com.android.dialer.duo.DuoComponent.get ( activity ) . getDuo ( ) . isDuoAccount ( row.getPhoneAccountComponentName ( ) ) ) ) ; }
Source:
public void testInstall_withBadlyFormedDistroVersion ( ) throws java.lang.Exception { libcore.tzdata.update2.DistroVersion validDistroVersion = new libcore.tzdata.update2.DistroVersion ( 1 , 1 , libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; byte [ ] invalidFormatVersionBytes = validDistroVersion.toBytes ( ) ; invalidFormatVersionBytes [ 0 ] = 'A' ; libcore.tzdata.update2.TimeZoneDistro distro = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createTimeZoneDistroWithVersionBytes ( invalidFormatVersionBytes ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_FAIL_BAD_DISTRO_STRUCTURE , installer.installWithErrorCode ( distro.getBytes ( ) ) ) ; assertNoContentInstalled ( ) ; }

Target:
public void testInstall_withBadlyFormedDistroVersion ( ) throws java.lang.Exception { libcore.tzdata.shared2.DistroVersion validDistroVersion = new libcore.tzdata.shared2.DistroVersion ( 1 , 1 , libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; byte [ ] invalidFormatVersionBytes = validDistroVersion.toBytes ( ) ; invalidFormatVersionBytes [ 0 ] = 'A' ; libcore.tzdata.shared2.TimeZoneDistro distro = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createTimeZoneDistroWithVersionBytes ( invalidFormatVersionBytes ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_FAIL_BAD_DISTRO_STRUCTURE , installer.installWithErrorCode ( distro.getBytes ( ) ) ) ; assertNoContentInstalled ( ) ; }
Source:
private com.android.jack.ir.ast.JDefinedClassOrInterface getAccessorClassForSuperCall ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface declaringType ) { com.android.jack.ir.ast.JDefinedClass enclosing = ( ( com.android.jack.ir.ast.JDefinedClass ) ( currentType ) ) ; while ( ! ( com.android.jack.transformations.ast.inner.InnerAccessorGenerator.isSuperClassOf ( ( ( com.android.jack.ir.ast.JDefinedClass ) ( declaringType ) ) , enclosing ) ) ) { enclosing = ( ( com.android.jack.ir.ast.JDefinedClass ) ( enclosing.getEnclosingType ( ) ) ) ; } return enclosing ; }

Target:
private com.android.jack.ir.ast.JDefinedClassOrInterface getAccessorClassForSuperCall ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface declaringType ) { com.android.jack.ir.ast.JDefinedClassOrInterface enclosing = currentType ; while ( ! ( enclosing.canBeSafelyUpcast ( declaringType ) ) ) { enclosing = ( ( com.android.jack.ir.ast.JDefinedClassOrInterface ) ( enclosing.getEnclosingType ( ) ) ) ; } return enclosing ; }
Source:
public boolean setP2pPowerSave ( java.lang.String iface , boolean enabled ) { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( enabled ) { return doBooleanCommandNative ( ( ( "IFNAME=" + iface ) + " P2P_SET ps 1" ) ) ; } else { return doBooleanCommandNative ( ( ( "IFNAME=" + iface ) + " P2P_SET ps 0" ) ) ; } } }

Target:
public boolean setP2pPowerSave ( java.lang.String iface , boolean enabled ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.setPowerSave ( iface , enabled ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( enabled ) { return doBooleanCommandNative ( ( ( "IFNAME=" + iface ) + " P2P_SET ps 1" ) ) ; } else { return doBooleanCommandNative ( ( ( "IFNAME=" + iface ) + " P2P_SET ps 0" ) ) ; } } } }
Source:
public void testTranslucentShowWhenLockedActivity ( ) throws java.lang.Exception { if ( ( ! ( isHandheld ( ) ) ) || ( isUiModeLockedToVrHeadset ( ) ) ) { return ; } launchActivity ( "ShowWhenLockedTranslucentActivity" ) ; mAmWmState.computeState ( mDevice , new java.lang.String [ ] { "ShowWhenLockedTranslucentActivity" } ) ; mAmWmState.assertVisibility ( "ShowWhenLockedTranslucentActivity" , true ) ; gotoKeyguard ( ) ; mAmWmState.computeState ( mDevice , null ) ; mAmWmState.assertVisibility ( "ShowWhenLockedTranslucentActivity" , true ) ; assertWallpaperShowing ( ) ; assertShowingAndOccluded ( ) ; pressHomeButton ( ) ; unlockDevice ( ) ; }

Target:
public void testTranslucentShowWhenLockedActivity ( ) throws java.lang.Exception { if ( ! ( supportsKeyguard ( ) ) ) { return ; } launchActivity ( "ShowWhenLockedTranslucentActivity" ) ; mAmWmState.computeState ( mDevice , new java.lang.String [ ] { "ShowWhenLockedTranslucentActivity" } ) ; mAmWmState.assertVisibility ( "ShowWhenLockedTranslucentActivity" , true ) ; gotoKeyguard ( ) ; mAmWmState.computeState ( mDevice , null ) ; mAmWmState.assertVisibility ( "ShowWhenLockedTranslucentActivity" , true ) ; assertWallpaperShowing ( ) ; assertShowingAndOccluded ( ) ; pressHomeButton ( ) ; unlockDevice ( ) ; }
Source:
public void testSortBySource_DeletePackage ( ) { com.android.sdklib.internal.repository.SdkSource src1 = new com.android.sdklib.internal.repository.SdkRepoSource ( "http://example.com/url" , "repo1" ) ; m.updateStart ( ) ; assertTrue ( m.updateSourcePackages ( false , null , new java.lang.Package [ ] { new com.android.sdklib.internal.repository.MockEmptyPackage ( src1 , "type1" , 1 ) } ) ) ; assertFalse ( m.updateSourcePackages ( false , src1 , new java.lang.Package [ ] { new com.android.sdklib.internal.repository.MockEmptyPackage ( src1 , "type1" , 1 ) } ) ) ; assertTrue ( m.updateEnd ( false ) ) ; assertEquals ( ( "PkgCategorySource <source=repo1 (example.com), #items=1>\n" + "-- <INSTALLED, pkg:MockEmptyPackage \'type1\' rev=1>\n" ) , getTree ( m , false ) ) ; m.updateStart ( ) ; assertTrue ( m.updateSourcePackages ( false , null , new java.lang.Package [ 0 ] ) ) ; assertTrue ( m.updateSourcePackages ( false , src1 , new java.lang.Package [ ] { new com.android.sdklib.internal.repository.MockEmptyPackage ( src1 , "type1" , 1 ) } ) ) ; assertTrue ( m.updateEnd ( false ) ) ; assertEquals ( ( "PkgCategorySource <source=repo1 (example.com), #items=1>\n" + "-- <NEW, pkg:MockEmptyPackage \'type1\' rev=1>\n" ) , getTree ( m , false ) ) ; }

Target:
public void testSortBySource_DeletePackage ( ) { com.android.sdklib.internal.repository.sources.SdkSource src1 = new com.android.sdklib.internal.repository.sources.SdkRepoSource ( "http://example.com/url" , "repo1" ) ; m.updateStart ( ) ; assertTrue ( m.updateSourcePackages ( false , null , new java.lang.Package [ ] { new com.android.sdklib.internal.repository.packages.MockEmptyPackage ( src1 , "type1" , 1 ) } ) ) ; assertFalse ( m.updateSourcePackages ( false , src1 , new java.lang.Package [ ] { new com.android.sdklib.internal.repository.packages.MockEmptyPackage ( src1 , "type1" , 1 ) } ) ) ; assertTrue ( m.updateEnd ( false ) ) ; assertEquals ( ( "PkgCategorySource <source=repo1 (example.com), #items=1>\n" + "-- <INSTALLED, pkg:MockEmptyPackage \'type1\' rev=1>\n" ) , getTree ( m , false ) ) ; m.updateStart ( ) ; assertTrue ( m.updateSourcePackages ( false , null , new java.lang.Package [ 0 ] ) ) ; assertTrue ( m.updateSourcePackages ( false , src1 , new java.lang.Package [ ] { new com.android.sdklib.internal.repository.packages.MockEmptyPackage ( src1 , "type1" , 1 ) } ) ) ; assertTrue ( m.updateEnd ( false ) ) ; assertEquals ( ( "PkgCategorySource <source=repo1 (example.com), #items=1>\n" + "-- <NEW, pkg:MockEmptyPackage \'type1\' rev=1>\n" ) , getTree ( m , false ) ) ; }
Source:
synchronized void nAllocationRead3D ( long id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , java.lang.Object d , int sizeBytes , android.renderscript.Element.DataType dt ) { validate ( ) ; rsnAllocationRead3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes , dt.mID ) ; }

Target:
native void rsnAllocationRead2D ( long con , long id , int xoff , int yoff , int mip , int face , int w , int h , java.lang.Object d , int sizeBytes , int dt , int mSize , boolean usePadding ) ;
Source:
public void testMultiCharMinusSignAndPercentage ( ) { java.text.DecimalFormatSymbols dfs = new java.text.DecimalFormatSymbols ( java.util.Locale.forLanguageTag ( "ar-AR" ) ) ; assertEquals ( '٪' , dfs.getPercent ( ) ) ; assertEquals ( '-' , dfs.getMinusSign ( ) ) ; }

Target:
public void testMultiCharMinusSignAndPercentage ( ) { java.text.DecimalFormatSymbols dfs ; dfs = new java.text.DecimalFormatSymbols ( java.util.Locale.forLanguageTag ( "ar" ) ) ; assertEquals ( '%' , dfs.getPercent ( ) ) ; assertEquals ( '-' , dfs.getMinusSign ( ) ) ; dfs = new java.text.DecimalFormatSymbols ( java.util.Locale.forLanguageTag ( "fa" ) ) ; assertEquals ( '٪' , dfs.getPercent ( ) ) ; assertEquals ( '−' , dfs.getMinusSign ( ) ) ; }
Source:
private java.lang.CharSequence getErrorMessage ( android.os.AsyncResult ar ) { if ( ( ar.exception ) instanceof com.android.internal.telephony.CommandException ) { com.android.internal.telephony.CommandException.Error err = ( ( com.android.internal.telephony.CommandException ) ( ar.exception ) ) . getCommandError ( ) ; if ( err == ( CommandException.Error.FDN_CHECK_FAILURE ) ) { android.telephony.Rlog.i ( com.android.internal.telephony.imsphone.ImsPhoneMmiCode.LOG_TAG , "FDN_CHECK_FAILURE" ) ; return mContext.getText ( com.android.internal.R.string.mmiFdnError ) ; } } return mContext.getText ( com.android.internal.R.string.mmiError ) ; }

Target:
private java.lang.CharSequence getErrorMessage ( android.os.AsyncResult ar ) { java.lang.CharSequence errorMessage ; return ( errorMessage = getMmiErrorMessage ( ar ) ) != null ? errorMessage : mContext.getText ( com.android.internal.R.string.mmiError ) ; }
Source:
public boolean resetRoamingConfiguration ( ) { android.util.Log.d ( com.android.server.wifi.WifiNative.TAG , "resetRoamingConfiguration " ) ; try { if ( ( mWifiVendorHal ) != null ) { com.android.server.wifi.WifiNative.RoamingConfig config = new com.android.server.wifi.WifiNative.RoamingConfig ( ) ; return mWifiVendorHal.configureRoaming ( config ) ; } } catch ( java.lang.UnsupportedOperationException e ) { } return false ; }

Target:
public int stopRssiMonitoring ( ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.stopRssiMonitoring ( ) ; } else { android.util.Log.d ( com.android.server.wifi.WifiNative.TAG , ( "stopRssiMonitoring, cmdId " + ( com.android.server.wifi.WifiNative.sRssiMonitorCmdId ) ) ) ; synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { int ret = 0 ; if ( ( com.android.server.wifi.WifiNative.sRssiMonitorCmdId ) != 0 ) { ret = com.android.server.wifi.WifiNative.stopRssiMonitoringNative ( com.android.server.wifi.WifiNative.sWlan0Index , com.android.server.wifi.WifiNative.sRssiMonitorCmdId ) ; } com.android.server.wifi.WifiNative.sRssiMonitorCmdId = 0 ; return ret ; } else { return - 1 ; } } } }
Source:
public java.util.SortedSet < java.lang.String > getLanguages ( ) { java.util.SortedSet < java.lang.String > set = new java.util.TreeSet < java.lang.String > ( ) ; java.util.Collection < java.util.List < com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder > > folderList = mFolderMap.values ( ) ; for ( java.util.List < com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder > folderSubList : folderList ) { for ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder folder : folderSubList ) { com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config = folder.getConfiguration ( ) ; com.android.ide.eclipse.adt.internal.resources.configurations.LanguageQualifier lang = config.getLanguageQualifier ( ) ; if ( lang != null ) { set.add ( lang.getStringValue ( ) ) ; } } } return set ; }

Target:
public java.util.SortedSet < java.lang.String > getLanguages ( ) { java.util.SortedSet < java.lang.String > set = new java.util.TreeSet < java.lang.String > ( ) ; java.util.Collection < java.util.List < com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder > > folderList = mFolderMap.values ( ) ; for ( java.util.List < com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder > folderSubList : folderList ) { for ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder folder : folderSubList ) { com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config = folder.getConfiguration ( ) ; com.android.ide.eclipse.adt.internal.resources.configurations.LanguageQualifier lang = config.getLanguageQualifier ( ) ; if ( lang != null ) { set.add ( lang.getShortDisplayValue ( ) ) ; } } } return set ; }
Source:
protected void copyFrom ( android.telephony.SignalStrength s ) { mGsmSignalStrength = s.mGsmSignalStrength ; mGsmBitErrorRate = s.mGsmBitErrorRate ; mCdmaDbm = s.mCdmaDbm ; mCdmaEcio = s.mCdmaEcio ; mEvdoDbm = s.mEvdoDbm ; mEvdoEcio = s.mEvdoEcio ; mEvdoSnr = s.mEvdoSnr ; mLteSignalStrength = s.mLteSignalStrength ; mLteRsrp = s.mLteRsrp ; mLteRsrq = s.mLteRsrq ; mLteRssnr = s.mLteRssnr ; mLteCqi = s.mLteCqi ; mTdScdmaRscp = s.mTdScdmaRscp ; mLteRsrpBoost = s.mLteRsrpBoost ; mIsGsm = s.mIsGsm ; mUseOnlyRsrpForLteLevel = s.mUseOnlyRsrpForLteLevel ; setLteRsrpThresholds ( s.mLteRsrpThresholds ) ; }

Target:
protected void copyFrom ( android.telephony.SignalStrength s ) { mGsmSignalStrength = s.mGsmSignalStrength ; mGsmBitErrorRate = s.mGsmBitErrorRate ; mCdmaDbm = s.mCdmaDbm ; mCdmaEcio = s.mCdmaEcio ; mEvdoDbm = s.mEvdoDbm ; mEvdoEcio = s.mEvdoEcio ; mEvdoSnr = s.mEvdoSnr ; mLteSignalStrength = s.mLteSignalStrength ; mLteRsrp = s.mLteRsrp ; mLteRsrq = s.mLteRsrq ; mLteRssnr = s.mLteRssnr ; mLteCqi = s.mLteCqi ; mTdScdmaRscp = s.mTdScdmaRscp ; mWcdmaSignalStrength = s.mWcdmaSignalStrength ; mWcdmaRscpAsu = s.mWcdmaRscpAsu ; mWcdmaRscp = s.mWcdmaRscp ; mLteRsrpBoost = s.mLteRsrpBoost ; mIsGsm = s.mIsGsm ; mUseOnlyRsrpForLteLevel = s.mUseOnlyRsrpForLteLevel ; mWcdmaDefaultSignalMeasurement = s.mWcdmaDefaultSignalMeasurement ; setLteRsrpThresholds ( s.mLteRsrpThresholds ) ; setWcdmaRscpThresholds ( s.mWcdmaRscpThresholds ) ; }
Source:
public void getRadioCapability ( android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_GET_RADIO_CAPABILITY , response ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }

Target:
public void getAllowedCarriers ( android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_GET_ALLOWED_CARRIERS , response , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) { riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; } send ( rr ) ; }
Source:
public synchronized com.android.builder.sdk.SdkLoader getSdkLoader ( ) { if ( ( sdkLoader ) == null ) { if ( isRegularSdk ) { if ( ( sdkFolder ) == null ) { throw new java.lang.RuntimeException ( "SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable." ) ; } if ( ( ( com.android.build.gradle.BasePlugin.TEST_SDK_DIR ) == null ) && ( ! ( sdkFolder.isDirectory ( ) ) ) ) { throw new java.lang.RuntimeException ( java.lang.String.format ( "The SDK directory '%s' does not exist." , sdkFolder ) ) ; } sdkLoader = com.android.builder.sdk.DefaultSdkLoader.getLoader ( sdkFolder ) ; } else { sdkLoader = com.android.builder.sdk.PlatformLoader.getLoader ( sdkFolder ) ; } } return sdkLoader ; }

Target:
public java.io.File getAndCheckSdkFolder ( ) { if ( ( sdkFolder ) == null ) { throw new java.lang.RuntimeException ( "SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable." ) ; } return sdkFolder ; }
Source:
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 ; }

Target:
public boolean disconnectAudio ( android.bluetooth.BluetoothDevice device ) { final android.bluetooth.IBluetoothHeadsetClient service = mService ; if ( ( service != null ) && ( isEnabled ( ) ) ) { try { return service.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:
void consume ( int code ) { java.lang.System.out.print ( code ) ; java.lang.System.out.print ( ", " ) ; ( col ) ++ ; if ( ( col ) == ( colMax ) ) { java.lang.System.out.println ( ) ; ( row ) ++ ; col = 0 ; } }

Target:
void consume ( int code ) { java.lang.System.out.printf ( "0x%x, " , code ) ; ( col ) ++ ; if ( ( col ) == ( colMax ) ) { java.lang.System.out.println ( ) ; ( row ) ++ ; col = 0 ; } }
Source:
public static void doTest ( ) { art.Redefinition.enableCommonRetransformation ( true ) ; art.Redefinition.doCommonClassRetransformation ( art.Test983.Transform.class ) ; art.Redefinition.doCommonClassRetransformation ( java.lang.Object.class ) ; art.Redefinition.doCommonClassRetransformation ( java.lang.ClassLoader.class ) ; art.Redefinition.enableCommonRetransformation ( false ) ; }

Target:
public static void doTest ( ) { art.Test983.setupLoadHook ( ) ; art.Redefinition.enableCommonRetransformation ( true ) ; art.Redefinition.doCommonClassRetransformation ( art.Test983.Transform.class ) ; art.Redefinition.doCommonClassRetransformation ( java.lang.Object.class ) ; art.Redefinition.doCommonClassRetransformation ( java.lang.ClassLoader.class ) ; art.Redefinition.enableCommonRetransformation ( false ) ; }
Source:
void onDisconnect ( com.android.internal.telephony.gsm.DisconnectCause cause ) { this . cause = cause ; if ( ! ( disconnected ) ) { index = - 1 ; disconnectTime = java.lang.System.currentTimeMillis ( ) ; duration = ( android.os.SystemClock.elapsedRealtime ( ) ) - ( connectTimeReal ) ; disconnected = true ; if ( false ) android.util.Log.d ( com.android.internal.telephony.gsm.GsmConnection.LOG_TAG , ( "[GSMConn] onDisconnect: cause=" + cause ) ) ; owner.phone.notifyDisconnect ( this ) ; if ( ( parent ) != null ) { parent.connectionDisconnected ( this ) ; } } releaseWakeLock ( ) ; }

Target:
void onDisconnect ( com.android.internal.telephony.gsm.DisconnectCause cause ) { this . cause = cause ; if ( ! ( disconnected ) ) { index = - 1 ; disconnectTime = java.lang.System.currentTimeMillis ( ) ; duration = ( android.os.SystemClock.elapsedRealtime ( ) ) - ( connectTimeReal ) ; disconnected = true ; if ( false ) android.telephony.Rlog.d ( com.android.internal.telephony.gsm.GsmConnection.LOG_TAG , ( "[GSMConn] onDisconnect: cause=" + cause ) ) ; owner.phone.notifyDisconnect ( this ) ; if ( ( parent ) != null ) { parent.connectionDisconnected ( this ) ; } } releaseWakeLock ( ) ; }
Source:
public void clientSetPreferredPhy ( int clientIf , java.lang.String address , int txPhy , int rxPhy , int phyOptions ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; }

Target:
void clientReadPhy ( int clientIf , java.lang.String address ) { enforceCallingOrSelfPermission ( com.android.bluetooth.gatt.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; java.lang.Integer connId = mClientMap.connIdByAddress ( clientIf , address ) ; if ( connId == null ) { android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( "clientReadPhy() - no connection to " + address ) ) ; return ; } if ( com.android.bluetooth.gatt.GattService.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( ( ( "clientReadPhy() - address=" + address ) + ", connId=" ) + connId ) ) ; gattClientReadPhyNative ( clientIf , connId ) ; }
Source:
private static long [ ] readLongArray ( java.io.DataInputStream dis , int count ) throws java.io.IOException { long [ ] ret = new long [ count ] ; for ( int i = 0 ; i < count ; i ++ ) { ret [ i ] = dis.readLong ( ) ; } return ret ; }

Target:
public java.lang.String getDisplayName ( java.util.Locale locale ) { return icuCurrency.getDisplayName ( locale ) ; }
Source:
public void stopStreaming ( ) { }

Target:
public void stopStreaming ( ) throws android.telephony.mbms.MbmsException { if ( ( mService ) == null ) { throw new java.lang.IllegalStateException ( "No streaming service attached" ) ; } try { mService.stopStreaming ( mAppName , mSubscriptionId , mServiceInfo.getServiceId ( ) ) ; } catch ( android.os.DeadObjectException e ) { android.util.Log.w ( android.telephony.mbms.StreamingService.LOG_TAG , "Remote process died" ) ; mService = null ; throw new android.telephony.mbms.MbmsException ( MbmsException.ERROR_SERVICE_LOST ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.telephony.mbms.StreamingService.LOG_TAG , ( "Caught remote exception calling stopStreaming: " + e ) ) ; throw new android.telephony.mbms.MbmsException ( MbmsException.ERROR_UNKNOWN_REMOTE_EXCEPTION ) ; } }
Source:
public static java.util.List < org.jetbrains.plugins.github.api.GithubPullRequest > getPullRequests ( @ org.jetbrains.annotations.NotNull org.jetbrains.plugins.github.api.GithubAuthData auth , @ org.jetbrains.annotations.NotNull java.lang.String user , @ org.jetbrains.annotations.NotNull java.lang.String repo ) throws java.io.IOException { java.lang.String path = ( ( ( ( "/repos/" + user ) + "/" ) + repo ) + "/pulls?" ) + ( org.jetbrains.plugins.github.api.GithubApiUtil.PER_PAGE ) ; org.jetbrains.plugins.github.api.GithubApiUtil.PagedRequest < org.jetbrains.plugins.github.api.GithubPullRequest > request = new org.jetbrains.plugins.github.api.GithubApiUtil.PagedRequest < org.jetbrains.plugins.github.api.GithubPullRequest > ( path , org.jetbrains.plugins.github.api.GithubPullRequest.class , org.jetbrains.plugins.github.api.GithubPullRequestRaw [ ] . class , org.jetbrains.plugins.github.api.GithubApiUtil.ACCEPT_HTML_BODY_MARKUP ) ; return request.getAll ( auth ) ; }

Target:
public static java.util.List < org.jetbrains.plugins.github.api.GithubPullRequest > getPullRequests ( @ org.jetbrains.annotations.NotNull org.jetbrains.plugins.github.util.GithubAuthData auth , @ org.jetbrains.annotations.NotNull java.lang.String user , @ org.jetbrains.annotations.NotNull java.lang.String repo ) throws java.io.IOException { java.lang.String path = ( ( ( ( "/repos/" + user ) + "/" ) + repo ) + "/pulls?" ) + ( org.jetbrains.plugins.github.api.GithubApiUtil.PER_PAGE ) ; org.jetbrains.plugins.github.api.GithubApiUtil.PagedRequest < org.jetbrains.plugins.github.api.GithubPullRequest > request = new org.jetbrains.plugins.github.api.GithubApiUtil.PagedRequest < org.jetbrains.plugins.github.api.GithubPullRequest > ( path , org.jetbrains.plugins.github.api.GithubPullRequest.class , org.jetbrains.plugins.github.api.GithubPullRequestRaw [ ] . class , org.jetbrains.plugins.github.api.GithubApiUtil.ACCEPT_HTML_BODY_MARKUP ) ; return request.getAll ( auth ) ; }
Source:
public void visitInvokeDynamicInsn ( java.lang.String name , java.lang.String desc , org.objectweb.asm.Handle bsm , java.lang.Object ... bsmArgs ) { buf.setLength ( 0 ) ; buf.append ( tab2 ) . append ( "INVOKEDYNAMIC" ) . append ( ' ' ) ; buf.append ( name ) ; appendDescriptor ( org.objectweb.asm.util.Textifier.METHOD_DESCRIPTOR , desc ) ; buf.append ( " [" ) ; appendHandle ( bsm ) ; buf.append ( tab3 ) . append ( "// arguments:" ) ; if ( ( bsmArgs.length ) == 0 ) { buf.append ( " none" ) ; } else { buf.append ( '\n' ) . append ( tab3 ) ; for ( int i = 0 ; i < ( bsmArgs.length ) ; i ++ ) { java.lang.Object cst = bsmArgs [ i ] ; if ( cst instanceof java.lang.String ) { org.objectweb.asm.util.Printer.appendString ( buf , ( ( java.lang.String ) ( cst ) ) ) ; } else if ( cst instanceof org.objectweb.asm.Type ) { buf.append ( ( ( org.objectweb.asm.Type ) ( cst ) ) . getDescriptor ( ) ) . append ( ".class" ) ; } else if ( cst instanceof org.objectweb.asm.Handle ) { appendHandle ( ( ( org.objectweb.asm.Handle ) ( cst ) ) ) ; } else { buf.append ( cst ) ; } buf.append ( ", " ) ; } buf.setLength ( ( ( buf.length ( ) ) - 2 ) ) ; } buf.append ( '\n' ) ; buf.append ( tab2 ) . append ( "]\n" ) ; text.add ( buf.toString ( ) ) ; }

Target:
public org.objectweb.asm.util.Printer visitTryCatchAnnotation ( int typeRef , org.objectweb.asm.TypePath typePath , java.lang.String desc , boolean visible ) { buf.setLength ( 0 ) ; buf.append ( tab2 ) . append ( "TRYCATCHBLOCK @" ) ; appendDescriptor ( org.objectweb.asm.util.Textifier.FIELD_DESCRIPTOR , desc ) ; buf.append ( '(' ) ; text.add ( buf.toString ( ) ) ; org.objectweb.asm.util.Textifier t = createTextifier ( ) ; text.add ( t.getText ( ) ) ; buf.setLength ( 0 ) ; buf.append ( ") : " ) ; appendTypeReference ( typeRef ) ; buf.append ( ", " ) . append ( typePath ) ; buf.append ( ( visible ? "\n" : " // invisible\n" ) ) ; text.add ( buf.toString ( ) ) ; return t ; }