auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private boolean handleMultipartyIncallSupplementaryService ( java.lang.String dialString ) throws com.android.internal.telephony.CallStateException { if ( ( dialString.length ( ) ) > 1 ) { return false ; } if ( com.android.internal.telephony.gsm.GSMPhone.LOCAL_DEBUG ) android.telephony.Rlog.d ( com.android.internal.telephony.gsm.GSMPhone.LOG_TAG , "MmiCode 3: merge calls" ) ; try { conference ( ) ; } catch ( com.android.internal.telephony.CallStateException e ) { if ( com.android.internal.telephony.gsm.GSMPhone.LOCAL_DEBUG ) android.telephony.Rlog.d ( com.android.internal.telephony.gsm.GSMPhone.LOG_TAG , "conference failed" , e ) ; notifySuppServiceFailed ( Phone.SuppService.CONFERENCE ) ; } return true ; }

Target:
private boolean handleMultipartyIncallSupplementaryService ( java.lang.String dialString ) { if ( ( dialString.length ( ) ) > 1 ) { return false ; } if ( com.android.internal.telephony.gsm.GSMPhone.LOCAL_DEBUG ) android.telephony.Rlog.d ( com.android.internal.telephony.gsm.GSMPhone.LOG_TAG , "MmiCode 3: merge calls" ) ; conference ( ) ; return true ; }
Source:
protected static java.lang.String regListString ( com.android.dx.rop.code.RegisterSpecList list ) { int sz = list.size ( ) ; java.lang.StringBuffer sb = new java.lang.StringBuffer ( ( ( sz * 5 ) + 2 ) ) ; sb.append ( '{' ) ; for ( int i = 0 ; i < sz ; i ++ ) { if ( i != 0 ) { sb.append ( ", " ) ; } sb.append ( list.get ( i ) . regString ( ) ) ; } sb.append ( '}' ) ; return sb.toString ( ) ; }

Target:
protected static java.lang.String regListString ( com.android.dx.rop.code.RegisterSpecList list ) { int sz = list.size ( ) ; java.lang.StringBuilder sb = new java.lang.StringBuilder ( ( ( sz * 5 ) + 2 ) ) ; sb.append ( '{' ) ; for ( int i = 0 ; i < sz ; i ++ ) { if ( i != 0 ) { sb.append ( ", " ) ; } sb.append ( list.get ( i ) . regString ( ) ) ; } sb.append ( '}' ) ; return sb.toString ( ) ; }
Source:
synchronized void nAllocationData3D ( int id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , short [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes ) ; }

Target:
synchronized void nAllocationData3D ( long id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , long [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes ) ; }
Source:
public static void run ( ) { art.Main.bindAgentJNIForClass ( art.Test901.class ) ; java.lang.System.out.println ( "Hello, world!" ) ; if ( art.Test901.checkLivePhase ( ) ) { java.lang.System.out.println ( "Agent in live phase." ) ; } if ( art.Test901.checkUnattached ( ) ) { java.lang.System.out.println ( "Received expected error for unattached JVMTI calls" ) ; } art.Test901.set ( 0 ) ; art.Test901.set ( 1 ) ; art.Test901.set ( 2 ) ; art.Test901.set ( 4 ) ; art.Test901.set ( 8 ) ; }

Target:
public static void run ( ) { java.lang.System.out.println ( "Hello, world!" ) ; if ( art.Test901.checkLivePhase ( ) ) { java.lang.System.out.println ( "Agent in live phase." ) ; } if ( art.Test901.checkUnattached ( ) ) { java.lang.System.out.println ( "Received expected error for unattached JVMTI calls" ) ; } art.Test901.set ( 0 ) ; art.Test901.set ( 1 ) ; art.Test901.set ( 2 ) ; art.Test901.set ( 4 ) ; art.Test901.set ( 8 ) ; }
Source:
public java.lang.Object clone ( ) { try { java.util.IdentityHashMap < K , V > m = ( ( java.util.IdentityHashMap < K , V > ) ( super . clone ( ) ) ) ; m.entrySet = null ; m.table = table.clone ( ) ; return m ; } catch ( java.lang.CloneNotSupportedException e ) { throw new java.lang.InternalError ( ) ; } }

Target:
public java.lang.Object clone ( ) { try { java.util.IdentityHashMap < ? , ? > m = ( ( java.util.IdentityHashMap < ? , ? > ) ( super . clone ( ) ) ) ; m.entrySet = null ; m.table = table.clone ( ) ; return m ; } catch ( java.lang.CloneNotSupportedException e ) { throw new java.lang.InternalError ( e ) ; } }
Source:
java.util.List < com.android.internal.util.Predicate < android.test.suitebuilder.TestMethod > > getBuilderRequirements ( ) { java.util.List < com.android.internal.util.Predicate < android.test.suitebuilder.TestMethod > > builderRequirements = super . getBuilderRequirements ( ) ; com.android.internal.util.Predicate < android.test.suitebuilder.TestMethod > brokenTestPredicate = com.android.internal.util.Predicates.not ( new android.test.suitebuilder.annotation.HasAnnotation ( dalvik.annotation.BrokenTest.class ) ) ; builderRequirements.add ( brokenTestPredicate ) ; builderRequirements.add ( getFeaturePredicate ( ) ) ; if ( ! ( mSingleTest ) ) { com.android.internal.util.Predicate < android.test.suitebuilder.TestMethod > sideEffectPredicate = com.android.internal.util.Predicates.not ( new android.test.suitebuilder.annotation.HasAnnotation ( dalvik.annotation.SideEffect.class ) ) ; builderRequirements.add ( sideEffectPredicate ) ; } return builderRequirements ; }

Target:
java.util.List < com.android.internal.util.Predicate < android.test.suitebuilder.TestMethod > > getBuilderRequirements ( ) { java.util.List < com.android.internal.util.Predicate < android.test.suitebuilder.TestMethod > > builderRequirements = super . getBuilderRequirements ( ) ; com.android.internal.util.Predicate < android.test.suitebuilder.TestMethod > brokenTestPredicate = com.android.internal.util.Predicates.not ( new android.test.suitebuilder.annotation.HasAnnotation ( dalvik.annotation.BrokenTest.class ) ) ; builderRequirements.add ( brokenTestPredicate ) ; if ( ! ( mSingleTest ) ) { com.android.internal.util.Predicate < android.test.suitebuilder.TestMethod > sideEffectPredicate = com.android.internal.util.Predicates.not ( new android.test.suitebuilder.annotation.HasAnnotation ( dalvik.annotation.SideEffect.class ) ) ; builderRequirements.add ( sideEffectPredicate ) ; } return builderRequirements ; }
Source:
public void afterCheckProject ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context ) { if ( ( mPendingErrors ) != null ) { for ( com.android.utils.Pair < java.lang.String , com.android.tools.lint.detector.api.Location > pair : mPendingErrors ) { java.lang.String inflatedLayout = pair.getFirst ( ) ; if ( ( ( mLayoutsWithRootLayoutParams ) == null ) || ( ! ( mLayoutsWithRootLayoutParams.contains ( inflatedLayout ) ) ) ) { continue ; } com.android.tools.lint.detector.api.Location location = pair.getSecond ( ) ; context.report ( com.android.tools.lint.checks.LayoutInflationDetector.ISSUE , location , com.android.tools.lint.checks.LayoutInflationDetector.ERROR_MESSAGE , null ) ; } } }

Target:
public void afterCheckProject ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context ) { if ( ( mPendingErrors ) != null ) { for ( com.android.utils.Pair < java.lang.String , com.android.tools.lint.detector.api.Location > pair : mPendingErrors ) { java.lang.String inflatedLayout = pair.getFirst ( ) ; if ( ( ( mLayoutsWithRootLayoutParams ) == null ) || ( ! ( mLayoutsWithRootLayoutParams.contains ( inflatedLayout ) ) ) ) { continue ; } com.android.tools.lint.detector.api.Location location = pair.getSecond ( ) ; context.report ( com.android.tools.lint.checks.LayoutInflationDetector.ISSUE , location , com.android.tools.lint.checks.LayoutInflationDetector.ERROR_MESSAGE ) ; } } }
Source:
public static void assertSupportedCipherSuites ( java.util.Set < java.lang.String > expected , java.lang.String [ ] cipherSuites ) { java.util.Set < java.lang.String > remainingCipherSuites = libcore.java.security.StandardNames.assertValidCipherSuites ( expected , cipherSuites ) ; assertEquals ( "Missing cipher suites" , java.util.Collections.EMPTY_SET , remainingCipherSuites ) ; assertEquals ( expected.size ( ) , cipherSuites.length ) ; }

Target:
private static void assertSupportedCipherSuites ( java.util.Set < java.lang.String > expected , java.lang.String [ ] cipherSuites ) { java.util.Set < java.lang.String > remainingCipherSuites = libcore.java.security.StandardNames.assertValidCipherSuites ( expected , cipherSuites ) ; assertEquals ( "Missing cipher suites" , java.util.Collections.EMPTY_SET , remainingCipherSuites ) ; assertEquals ( expected.size ( ) , cipherSuites.length ) ; }
Source:
public boolean handleMessage ( android.os.Message msg ) { switch ( msg.what ) { case com.android.server.net.NetworkStatsService.MSG_PERFORM_POLL : { final int flags = msg.arg1 ; mService.performPoll ( flags ) ; return true ; } case com.android.server.net.NetworkStatsService.MSG_UPDATE_IFACES : { mService.updateIfaces ( ) ; return true ; } case com.android.server.net.NetworkStatsService.MSG_REGISTER_GLOBAL_ALERT : { mService.registerGlobalAlert ( ) ; return true ; } default : { return false ; } } }

Target:
public boolean handleMessage ( android.os.Message msg ) { switch ( msg.what ) { case com.android.server.net.NetworkStatsService.MSG_PERFORM_POLL : { final int flags = msg.arg1 ; mService.performPoll ( flags ) ; return true ; } case com.android.server.net.NetworkStatsService.MSG_UPDATE_IFACES : { mService.updateIfaces ( null ) ; return true ; } case com.android.server.net.NetworkStatsService.MSG_REGISTER_GLOBAL_ALERT : { mService.registerGlobalAlert ( ) ; return true ; } default : { return false ; } } }
Source:
public void reloadConfig ( ) throws com.android.jack.server.api.v01.ServerException , com.android.sched.util.file.NotFileException , com.android.sched.util.file.WrongPermissionException , java.io.IOException { shutdownConnections ( ) ; try { loadConfig ( ) ; buildInstalledJackCache ( ) ; start ( ) ; } catch ( java.io.IOException e ) { shutdown ( ) ; throw e ; } }

Target:
public void reloadConfig ( ) throws com.android.jack.server.api.v01.ServerException , com.android.sched.util.file.NotFileException , com.android.sched.util.file.WrongPermissionException , java.io.IOException { shutdownConnections ( ) ; try { loadConfig ( ) ; buildInstalledJackCache ( ) ; start ( new java.util.HashMap < java.lang.String , java.lang.Object > ( ) ) ; } catch ( java.io.IOException e ) { shutdown ( ) ; throw e ; } }
Source:
public void testDevMemSane ( ) throws java.lang.Exception { java.io.File f = new java.io.File ( "/dev/mem" ) ; assertFalse ( f.canRead ( ) ) ; assertFalse ( f.canWrite ( ) ) ; assertFalse ( f.canExecute ( ) ) ; assertFalse ( f.exists ( ) ) ; }

Target:
public void testDevMemSane ( ) throws java.lang.Exception { java.io.File f = new java.io.File ( "/dev/mem" ) ; assertFalse ( f.exists ( ) ) ; }
Source:
private static void onSubscribeTerminated ( int subscribeId , int status ) { if ( com.android.server.wifi.aware.WifiAwareNative.VDBG ) { android.util.Log.v ( com.android.server.wifi.aware.WifiAwareNative.TAG , ( ( ( "onSubscribeTerminated: subscribeId=" + subscribeId ) + ", status=" ) + status ) ) ; } com.android.server.wifi.aware.WifiAwareNative.sWifiAwareStateManager.onSessionTerminatedNotification ( subscribeId , ( status == ( com.android.server.wifi.aware.WifiAwareNative.AWARE_STATUS_SUCCESS ) ? android.net.wifi.aware.DiscoverySessionCallback.TERMINATE_REASON_DONE : android.net.wifi.aware.DiscoverySessionCallback.TERMINATE_REASON_FAIL ) , false ) ; }

Target:
private static void onSubscribeTerminated ( int subscribeId , int status ) { if ( com.android.server.wifi.aware.WifiAwareNative.VDBG ) { android.util.Log.v ( com.android.server.wifi.aware.WifiAwareNative.TAG , ( ( ( "onSubscribeTerminated: subscribeId=" + subscribeId ) + ", status=" ) + status ) ) ; } com.android.server.wifi.aware.WifiAwareNative.sWifiAwareStateManager.onSessionTerminatedNotification ( subscribeId , status , false ) ; }
Source:
public void updateBounds ( final com.intellij.ui.BalloonImpl balloon ) { final java.awt.Rectangle bounds = getUpdatedBounds ( balloon.myLayeredPane.getSize ( ) , balloon.myForcedBounds , balloon.myComp.getPreferredSize ( ) , balloon.myShowPointer , balloon.myTargetPoint , balloon.myContainerInsets ) ; final java.awt.Point point = getShiftedPoint ( bounds.getLocation ( ) , ( - ( balloon.getShadowBorderSize ( ) ) ) ) ; bounds.setLocation ( point ) ; balloon.myComp._setBounds ( bounds ) ; }

Target:
public void updateBounds ( final com.intellij.ui.BalloonImpl balloon ) { if ( ( ( balloon.myLayeredPane ) == null ) || ( ( balloon.myComp ) == null ) ) return ; final java.awt.Rectangle bounds = getUpdatedBounds ( balloon.myLayeredPane.getSize ( ) , balloon.myForcedBounds , balloon.myComp.getPreferredSize ( ) , balloon.myShowPointer , balloon.myTargetPoint , balloon.myContainerInsets ) ; final java.awt.Point point = getShiftedPoint ( bounds.getLocation ( ) , ( - ( balloon.getShadowBorderSize ( ) ) ) ) ; bounds.setLocation ( point ) ; balloon.myComp._setBounds ( bounds ) ; }
Source:
public void testSnkPlay ( ) { streamHandler.handleMessage ( streamHandler.obtainMessage ( A2dpSinkStreamHandler.SNK_PLAY ) ) ; org.mockito.Mockito.verify ( mockAudioManager , org.mockito.Mockito.times ( 1 ) ) . requestAudioFocus ( org.mockito.Mockito.any ( ) , org.mockito.Mockito.anyInt ( ) , org.mockito.Mockito.anyInt ( ) ) ; org.mockito.Mockito.verify ( mockA2dpSink , org.mockito.Mockito.times ( 1 ) ) . informAudioFocusStateNative ( 1 ) ; org.mockito.Mockito.verify ( mockA2dpSink , org.mockito.Mockito.times ( 1 ) ) . informAudioTrackGainNative ( 1.0F ) ; }

Target:
public void testSnkPlay ( ) { streamHandler.handleMessage ( streamHandler.obtainMessage ( A2dpSinkStreamHandler.SNK_PLAY ) ) ; org.mockito.Mockito.verify ( mockAudioManager , org.mockito.Mockito.times ( 1 ) ) . requestAudioFocus ( org.mockito.Mockito.any ( ) ) ; org.mockito.Mockito.verify ( mockA2dpSink , org.mockito.Mockito.times ( 1 ) ) . informAudioFocusStateNative ( 1 ) ; org.mockito.Mockito.verify ( mockA2dpSink , org.mockito.Mockito.times ( 1 ) ) . informAudioTrackGainNative ( 1.0F ) ; }
Source:
static int hashCodeImpl ( java.util.List < ? > list ) { int hashCode = 1 ; for ( java.lang.Object o : list ) { hashCode = ( 31 * hashCode ) + ( o == null ? 0 : o.hashCode ( ) ) ; } return hashCode ; }

Target:
static int hashCodeImpl ( java.util.List < ? > list ) { int hashCode = 1 ; for ( java.lang.Object o : list ) { hashCode = ( 31 * hashCode ) + ( o == null ? 0 : o.hashCode ( ) ) ; hashCode = ~ ( ~ hashCode ) ; } return hashCode ; }
Source:
private static java.lang.String makeKeyStringFromBytes ( java.nio.ByteBuffer keyBytes , int keyOffset ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; byte b ; while ( ( b = keyBytes.get ( keyOffset ) ) != 0 ) { ++ keyOffset ; sb.append ( ( ( char ) ( b ) ) ) ; } return sb.toString ( ) ; }

Target:
private static java.lang.String makeKeyStringFromBytes ( byte [ ] keyBytes , int keyOffset ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; byte b ; while ( ( b = keyBytes [ keyOffset ] ) != 0 ) { ++ keyOffset ; sb.append ( ( ( char ) ( b ) ) ) ; } return sb.toString ( ) ; }
Source:
public int stopUsingNetworkFeature ( int networkType , java.lang.String feature ) { android.net.NetworkCapabilities netCap = networkCapabilitiesForFeature ( networkType , feature ) ; if ( netCap == null ) { android.util.Log.d ( android.net.ConnectivityManager.TAG , ( ( ( "Can't satisfy stopUsingNetworkFeature for " + networkType ) + ", " ) + feature ) ) ; return - 1 ; } android.net.ConnectivityManager.NetworkCallback networkCallback = removeRequestForFeature ( netCap ) ; if ( networkCallback != null ) { android.util.Log.d ( android.net.ConnectivityManager.TAG , ( ( ( "stopUsingNetworkFeature for " + networkType ) + ", " ) + feature ) ) ; unregisterNetworkCallback ( networkCallback ) ; } return 1 ; }

Target:
public int stopUsingNetworkFeature ( int networkType , java.lang.String feature ) { android.net.NetworkCapabilities netCap = networkCapabilitiesForFeature ( networkType , feature ) ; if ( netCap == null ) { android.util.Log.d ( android.net.ConnectivityManager.TAG , ( ( ( "Can't satisfy stopUsingNetworkFeature for " + networkType ) + ", " ) + feature ) ) ; return - 1 ; } if ( removeRequestForFeature ( netCap ) ) { android.util.Log.d ( android.net.ConnectivityManager.TAG , ( ( ( "stopUsingNetworkFeature for " + networkType ) + ", " ) + feature ) ) ; } return 1 ; }
Source:
public java.lang.String toString ( ) { java.lang.StringBuffer b = new java.lang.StringBuffer ( ) ; return ( ( codepoint ) == ( codepointEnd ) ? com.ibm.icu.text.UnicodeSet._appendToPat ( b , codepoint , false ) : com.ibm.icu.text.UnicodeSet._appendToPat ( com.ibm.icu.text.UnicodeSet._appendToPat ( b , codepoint , false ) . append ( '-' ) , codepointEnd , false ) ) . toString ( ) ; }

Target:
public java.lang.String toString ( ) { java.lang.StringBuilder b = new java.lang.StringBuilder ( ) ; return ( ( codepoint ) == ( codepointEnd ) ? com.ibm.icu.text.UnicodeSet._appendToPat ( b , codepoint , false ) : com.ibm.icu.text.UnicodeSet._appendToPat ( com.ibm.icu.text.UnicodeSet._appendToPat ( b , codepoint , false ) . append ( '-' ) , codepointEnd , false ) ) . toString ( ) ; }
Source:
public void testAddNonComparable ( ) { try { java.util.concurrent.ConcurrentSkipListSet q = new java.util.concurrent.ConcurrentSkipListSet ( ) ; q.add ( new java.lang.Object ( ) ) ; q.add ( new java.lang.Object ( ) ) ; q.add ( new java.lang.Object ( ) ) ; shouldThrow ( ) ; } catch ( java.lang.ClassCastException success ) { } }

Target:
public void testAddNonComparable ( ) { java.util.concurrent.ConcurrentSkipListSet q = new java.util.concurrent.ConcurrentSkipListSet ( ) ; try { q.add ( new java.lang.Object ( ) ) ; q.add ( new java.lang.Object ( ) ) ; shouldThrow ( ) ; } catch ( java.lang.ClassCastException success ) { } }
Source:
public int getHash ( ) { return ( ( name ) + ( com.google.common.collect.FluentIterable.from ( getDimensions ( ) ) . transform ( new com.google.common.base.Function < com.google.gct.testing.GoogleCloudTestingDimension , java.lang.String > ( ) { @ java.lang.Override public java.lang.String apply ( com.google.gct.testing.GoogleCloudTestingDimension dimension ) { return getStringRepresentation ( dimension ) ; } } ) . toString ( ) ) ) . hashCode ( ) ; }

Target:
private int getHash ( ) { return ( ( name ) + ( com.google.common.collect.FluentIterable.from ( getDimensions ( ) ) . transform ( new com.google.common.base.Function < com.google.gct.testing.GoogleCloudTestingDimension , java.lang.String > ( ) { @ java.lang.Override public java.lang.String apply ( com.google.gct.testing.GoogleCloudTestingDimension dimension ) { return getStringRepresentation ( dimension ) ; } } ) . toString ( ) ) ) . hashCode ( ) ; }
Source:
private < T > void testCompareResult ( java.util.List < T > oldItems , java.util.List < T > newItems , java.util.List < T > expectAdded , java.util.List < T > expectRemoved ) { android.net.LinkProperties.CompareResult < T > result = new android.net.LinkProperties.CompareResult ( newItems , oldItems ) ; assertEquals ( new android.util.ArraySet ( expectAdded ) , new android.util.ArraySet ( result.added ) ) ; assertEquals ( new android.util.ArraySet ( expectRemoved ) , new android.util.ArraySet ( result.removed ) ) ; }

Target:
private < T > void testCompareResult ( java.util.List < T > oldItems , java.util.List < T > newItems , java.util.List < T > expectRemoved , java.util.List < T > expectAdded ) { android.net.LinkProperties.CompareResult < T > result = new android.net.LinkProperties.CompareResult ( oldItems , newItems ) ; assertEquals ( new android.util.ArraySet ( expectAdded ) , new android.util.ArraySet ( result.added ) ) ; assertEquals ( new android.util.ArraySet ( expectRemoved ) , new android.util.ArraySet ( result.removed ) ) ; }
Source:
public void testReceiveSend_64K ( ) throws java.lang.Exception { java.lang.StringBuffer str64k = new java.lang.StringBuffer ( ) ; for ( int i = 0 ; i < ( org.apache.harmony.tests.java.nio.channels.DatagramChannelTest.CAPACITY_64KB ) ; i ++ ) { str64k.append ( 'a' ) ; } java.lang.String str = str64k.toString ( ) ; try { java.lang.Thread.sleep ( org.apache.harmony.tests.java.nio.channels.DatagramChannelTest.TIME_UNIT ) ; channel2.send ( java.nio.ByteBuffer.wrap ( str.getBytes ( ) ) , datagramSocket1Address ) ; fail ( "Should throw SocketException!" ) ; } catch ( java.net.SocketException e ) { } }

Target:
public void testReceiveSend_64K ( ) throws java.lang.Exception { java.lang.StringBuffer str64k = new java.lang.StringBuffer ( ) ; for ( int i = 0 ; i < ( org.apache.harmony.tests.java.nio.channels.DatagramChannelTest.CAPACITY_64KB ) ; i ++ ) { str64k.append ( 'a' ) ; } java.lang.String str = str64k.toString ( ) ; try { java.lang.Thread.sleep ( org.apache.harmony.tests.java.nio.channels.DatagramChannelTest.TIME_UNIT ) ; channel2.send ( java.nio.ByteBuffer.wrap ( str.getBytes ( ) ) , datagramSocket1Address ) ; fail ( "Should throw SocketException!" ) ; } catch ( java.net.SocketException expected ) { } }
Source:
private java.util.Collection < com.android.jack.ir.ast.JMethodId > collectAllMethodIdsInHierarchy ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface referenceType ) { java.util.Set < com.android.jack.ir.ast.JMethodId > collectedMethods = new java.util.HashSet < com.android.jack.ir.ast.JMethodId > ( ) ; assert ( allTypes ) != null ; for ( com.android.jack.ir.ast.JDefinedClassOrInterface type : allTypes ) { if ( ( referenceType.canBeSafelyUpcast ( type ) ) || ( type.canBeSafelyUpcast ( referenceType ) ) ) { for ( com.android.jack.ir.ast.JMethod method : type.getMethods ( ) ) { collectedMethods.add ( method.getMethodId ( ) ) ; } } } return collectedMethods ; }

Target:
public static java.util.Collection < com.android.jack.ir.ast.JMethodId > collectAllMethodIdsInHierarchy ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface referenceType , @ javax.annotation.Nonnull java.util.Collection < com.android.jack.ir.ast.JDefinedClassOrInterface > allTypes ) { java.util.Set < com.android.jack.ir.ast.JMethodId > collectedMethods = new java.util.HashSet < com.android.jack.ir.ast.JMethodId > ( ) ; for ( com.android.jack.ir.ast.JDefinedClassOrInterface type : allTypes ) { if ( ( referenceType.canBeSafelyUpcast ( type ) ) || ( type.canBeSafelyUpcast ( referenceType ) ) ) { for ( com.android.jack.ir.ast.JMethod method : type.getMethods ( ) ) { collectedMethods.add ( method.getMethodId ( ) ) ; } } } return collectedMethods ; }
Source:
private com.android.server.am.HistoryRecord getCallingRecordLocked ( android.os.IBinder token ) { int index = indexOfTokenLocked ( token , true ) ; if ( index >= 0 ) { com.android.server.am.HistoryRecord r = ( ( com.android.server.am.HistoryRecord ) ( mHistory.get ( index ) ) ) ; if ( r != null ) { return r.resultTo ; } } return null ; }

Target:
private com.android.server.am.HistoryRecord getCallingRecordLocked ( android.os.IBinder token ) { int index = indexOfTokenLocked ( token ) ; if ( index >= 0 ) { com.android.server.am.HistoryRecord r = ( ( com.android.server.am.HistoryRecord ) ( mHistory.get ( index ) ) ) ; if ( r != null ) { return r.resultTo ; } } return null ; }
Source:
com.android.bluetooth.gatt.ContextMap < T > . App getByName ( java.lang.String name ) { java.util.Iterator < com.android.bluetooth.gatt.ContextMap < T > . App > i = mApps.iterator ( ) ; while ( i.hasNext ( ) ) { com.android.bluetooth.gatt.ContextMap < T > . App entry = i.next ( ) ; if ( entry.name.equals ( name ) ) return entry ; } android.util.Log.e ( com.android.bluetooth.gatt.ContextMap.TAG , ( "Context not found for name " + name ) ) ; return null ; }

Target:
com.android.bluetooth.gatt.ContextMap < T > . App getByName ( java.lang.String name ) { synchronized ( mApps ) { java.util.Iterator < com.android.bluetooth.gatt.ContextMap < T > . App > i = mApps.iterator ( ) ; while ( i.hasNext ( ) ) { com.android.bluetooth.gatt.ContextMap < T > . App entry = i.next ( ) ; if ( entry.name.equals ( name ) ) return entry ; } } android.util.Log.e ( com.android.bluetooth.gatt.ContextMap.TAG , ( "Context not found for name " + name ) ) ; return null ; }
Source:
protected void engineInit ( int opmode , java.security.Key key , java.security.spec.AlgorithmParameterSpec params , java.security.SecureRandom random ) throws java.security.InvalidAlgorithmParameterException , java.security.InvalidKeyException { if ( ( params != null ) && ( ( padding ) != ( NativeConstants.RSA_PKCS1_OAEP_PADDING ) ) ) { throw new java.security.InvalidAlgorithmParameterException ( ( "unknown param type: " + ( params.getClass ( ) . getName ( ) ) ) ) ; } engineInitInternal ( opmode , key ) ; }

Target:
protected void engineInit ( int opmode , java.security.Key key , java.security.spec.AlgorithmParameterSpec params , java.security.SecureRandom random ) throws java.security.InvalidAlgorithmParameterException , java.security.InvalidKeyException { if ( params != null ) { throw new java.security.InvalidAlgorithmParameterException ( ( "unknown param type: " + ( params.getClass ( ) . getName ( ) ) ) ) ; } engineInitInternal ( opmode , key , params ) ; }
Source:
public void close ( ) { if ( ! ( closed ) ) { closed = true ; ids = null ; byteOffsets = null ; rawUtcOffsetsCache = null ; mappedFile = null ; cache.evictAll ( ) ; if ( ( mappedFile ) != null ) { try { mappedFile.close ( ) ; } catch ( android.system.ErrnoException ignored ) { } } } }

Target:
public void close ( ) { if ( ! ( closed ) ) { closed = true ; ids = null ; byteOffsets = null ; rawUtcOffsetsCache = null ; cache.evictAll ( ) ; if ( ( mappedFile ) != null ) { try { mappedFile.close ( ) ; } catch ( android.system.ErrnoException ignored ) { } mappedFile = null ; } } }
Source:
com.android.bluetooth.gatt.ContextMap < T > . App getByUuid ( java.util.UUID uuid ) { java.util.Iterator < com.android.bluetooth.gatt.ContextMap < T > . App > i = mApps.iterator ( ) ; while ( i.hasNext ( ) ) { com.android.bluetooth.gatt.ContextMap < T > . App entry = i.next ( ) ; if ( entry.uuid.equals ( uuid ) ) return entry ; } android.util.Log.e ( com.android.bluetooth.gatt.ContextMap.TAG , ( "Context not found for UUID " + uuid ) ) ; return null ; }

Target:
com.android.bluetooth.gatt.ContextMap < T > . App getByUuid ( java.util.UUID uuid ) { synchronized ( mApps ) { java.util.Iterator < com.android.bluetooth.gatt.ContextMap < T > . App > i = mApps.iterator ( ) ; while ( i.hasNext ( ) ) { com.android.bluetooth.gatt.ContextMap < T > . App entry = i.next ( ) ; if ( entry.uuid.equals ( uuid ) ) return entry ; } } android.util.Log.e ( com.android.bluetooth.gatt.ContextMap.TAG , ( "Context not found for UUID " + uuid ) ) ; return null ; }
Source:
public void testInstallEmptySystemExists ( ) throws java.lang.Exception { org.conscrypt.TrustedCertificateStoreTest.install ( org.conscrypt.TrustedCertificateStoreTest.getCa1 ( ) , org.conscrypt.TrustedCertificateStoreTest.getAliasSystemCa1 ( ) ) ; assertRootCa ( org.conscrypt.TrustedCertificateStoreTest.getCa1 ( ) , org.conscrypt.TrustedCertificateStoreTest.getAliasSystemCa1 ( ) ) ; assertAliases ( org.conscrypt.TrustedCertificateStoreTest.getAliasSystemCa1 ( ) ) ; store.installCertificate ( org.conscrypt.TrustedCertificateStoreTest.getCa1 ( ) ) ; assertRootCa ( org.conscrypt.TrustedCertificateStoreTest.getCa1 ( ) , org.conscrypt.TrustedCertificateStoreTest.getAliasSystemCa1 ( ) ) ; assertAliases ( org.conscrypt.TrustedCertificateStoreTest.getAliasSystemCa1 ( ) ) ; }

Target:
public void testInstallEmptySystemExists ( ) throws java.lang.Exception { install ( org.conscrypt.TrustedCertificateStoreTest.getCa1 ( ) , org.conscrypt.TrustedCertificateStoreTest.getAliasSystemCa1 ( ) ) ; assertRootCa ( org.conscrypt.TrustedCertificateStoreTest.getCa1 ( ) , org.conscrypt.TrustedCertificateStoreTest.getAliasSystemCa1 ( ) ) ; assertAliases ( org.conscrypt.TrustedCertificateStoreTest.getAliasSystemCa1 ( ) ) ; store.installCertificate ( org.conscrypt.TrustedCertificateStoreTest.getCa1 ( ) ) ; assertRootCa ( org.conscrypt.TrustedCertificateStoreTest.getCa1 ( ) , org.conscrypt.TrustedCertificateStoreTest.getAliasSystemCa1 ( ) ) ; assertAliases ( org.conscrypt.TrustedCertificateStoreTest.getAliasSystemCa1 ( ) ) ; }
Source:
public boolean equals ( java.lang.Object o ) { if ( ( this ) == o ) return true ; if ( ( o == null ) || ( ( getClass ( ) ) != ( o.getClass ( ) ) ) ) return false ; com.android.builder.BuildConfig that = ( ( com.android.builder.BuildConfig ) ( o ) ) ; if ( ! ( mBuildConfigLines.equals ( that.mBuildConfigLines ) ) ) return false ; return true ; }

Target:
public boolean equals ( java.lang.Object o ) { if ( ( this ) == o ) return true ; if ( ( o == null ) || ( ( getClass ( ) ) != ( o.getClass ( ) ) ) ) return false ; com.android.builder.BuildConfig that = ( ( com.android.builder.BuildConfig ) ( o ) ) ; return mBuildConfigLines.equals ( that.mBuildConfigLines ) ; }
Source:
public boolean setDfsFlag ( boolean dfsOn ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.setDfsFlag ( dfsOn ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.setDfsFlagNative ( com.android.server.wifi.WifiNative.sWlan0Index , dfsOn ) ; } else { return false ; } } } }

Target:
public boolean setDfsFlag ( boolean dfsOn ) { return mWifiVendorHal.setDfsFlag ( dfsOn ) ; }
Source:
public void test_getOOBInline ( ) throws java.lang.Exception { java.net.Socket theSocket = new java.net.Socket ( ) ; theSocket.setOOBInline ( true ) ; assertTrue ( "expected OOBIline to be true" , theSocket.getOOBInline ( ) ) ; theSocket.setOOBInline ( false ) ; assertFalse ( "expected OOBIline to be false" , theSocket.getOOBInline ( ) ) ; theSocket.setOOBInline ( false ) ; assertFalse ( "expected OOBIline to be false" , theSocket.getOOBInline ( ) ) ; }

Target:
public void test_getOOBInline ( ) throws java.lang.Exception { try ( java.net.Socket theSocket = new java.net.Socket ( ) ) { theSocket.setOOBInline ( true ) ; assertTrue ( "expected OOBIline to be true" , theSocket.getOOBInline ( ) ) ; theSocket.setOOBInline ( false ) ; assertFalse ( "expected OOBIline to be false" , theSocket.getOOBInline ( ) ) ; theSocket.setOOBInline ( false ) ; assertFalse ( "expected OOBIline to be false" , theSocket.getOOBInline ( ) ) ; } }
Source:
private void setAdvertisingData ( com.android.bluetooth.gatt.AdvertiseClient client , android.bluetooth.le.AdvertiseData data , boolean isScanResponse ) { if ( data == null ) { return ; } byte [ ] data_out = advertiseDataToBytes ( data ) ; if ( mAdapterService.isMultiAdvertisementSupported ( ) ) { gattClientSetAdvDataNative ( client.advertiserId , isScanResponse , data_out ) ; } else { gattSetAdvDataNative ( isScanResponse , data_out ) ; } }

Target:
private void setAdvertisingData ( com.android.bluetooth.gatt.AdvertiseClient client , android.bluetooth.le.AdvertiseData data , boolean isScanResponse ) { if ( data == null ) { return ; } byte [ ] data_out = advertiseDataToBytes ( data ) ; gattClientSetAdvDataNative ( client.advertiserId , isScanResponse , data_out ) ; }
Source:
static java.lang.String slashify ( char [ ] [ ] name ) { java.lang.StringBuffer result = new java.lang.StringBuffer ( ) ; for ( int i = 0 ; i < ( name.length ) ; ++ i ) { if ( i > 0 ) { result.append ( '/' ) ; } result.append ( name [ i ] ) ; } return result.toString ( ) ; }

Target:
static java.lang.String slashify ( char [ ] [ ] name ) { java.lang.StringBuilder result = new java.lang.StringBuilder ( ) ; for ( int i = 0 ; i < ( name.length ) ; ++ i ) { if ( i > 0 ) { result.append ( '/' ) ; } result.append ( name [ i ] ) ; } return result.toString ( ) ; }
Source:
final void removeCecDevice ( int address ) { assertRunOnServiceThread ( ) ; android.hardware.hdmi.HdmiDeviceInfo avr = getAvrDeviceInfo ( ) ; if ( ( avr != null ) && ( address == ( avr.getLogicalAddress ( ) ) ) ) { removeAction ( com.android.server.hdmi.RequestShortAudioDescriptorAction.class ) ; com.android.server.hdmi.RequestShortAudioDescriptorAction.removeAudioFormat ( ) ; } android.hardware.hdmi.HdmiDeviceInfo info = removeDeviceInfo ( android.hardware.hdmi.HdmiDeviceInfo.idForCecDevice ( address ) ) ; mCecMessageCache.flushMessagesFrom ( address ) ; invokeDeviceEventListener ( info , HdmiControlManager.DEVICE_EVENT_REMOVE_DEVICE ) ; }

Target:
final void removeCecDevice ( int address ) { assertRunOnServiceThread ( ) ; android.hardware.hdmi.HdmiDeviceInfo info = removeDeviceInfo ( android.hardware.hdmi.HdmiDeviceInfo.idForCecDevice ( address ) ) ; mCecMessageCache.flushMessagesFrom ( address ) ; invokeDeviceEventListener ( info , HdmiControlManager.DEVICE_EVENT_REMOVE_DEVICE ) ; }
Source:
public void developerOptionsEnabled ( ) throws java.lang.Exception { android.app.Instrumentation instrumentation = testFramework.getInstrumentation ( ) ; if ( ! ( com.android.devtools.systemimage.uitest.utils.DeveloperOptionsManager.isDeveloperOptionsEnabled ( instrumentation ) ) ) { com.android.devtools.systemimage.uitest.utils.DeveloperOptionsManager.enableDeveloperOptions ( instrumentation ) ; } else { return ; } assertTrue ( "Failed to enable Developer options." , com.android.devtools.systemimage.uitest.utils.DeveloperOptionsManager.isDeveloperOptionsEnabled ( instrumentation ) ) ; }

Target:
public void developerOptionsEnabled ( ) throws java.lang.Exception { if ( ! ( com.android.devtools.systemimage.uitest.utils.DeveloperOptionsManager.isDeveloperOptionsEnabled ( testFramework ) ) ) { com.android.devtools.systemimage.uitest.utils.DeveloperOptionsManager.enableDeveloperOptions ( testFramework ) ; } else { return ; } assertTrue ( "Failed to enable Developer options." , com.android.devtools.systemimage.uitest.utils.DeveloperOptionsManager.isDeveloperOptionsEnabled ( testFramework ) ) ; }
Source:
public void testFailed ( com.android.ide.eclipse.adt.internal.launch.junit.runtime.TestFailure status , com.android.ddmlib.testrunner.TestIdentifier test , java.lang.String trace ) { java.lang.String statusString ; if ( status == ( TestFailure.ERROR ) ) { statusString = org.eclipse.jdt.internal.junit.runner.MessageIds.TEST_ERROR ; } else { statusString = org.eclipse.jdt.internal.junit.runner.MessageIds.TEST_FAILED ; } org.eclipse.jdt.internal.junit.runner.TestReferenceFailure failure = new org.eclipse.jdt.internal.junit.runner.TestReferenceFailure ( new com.android.ide.eclipse.adt.internal.launch.junit.runtime.TestCaseReference ( test ) , statusString , trace , null ) ; mExecution.getListener ( ) . notifyTestFailed ( failure ) ; }

Target:
public synchronized void testFailed ( com.android.ide.eclipse.adt.internal.launch.junit.runtime.TestFailure status , com.android.ddmlib.testrunner.TestIdentifier test , java.lang.String trace ) { java.lang.String statusString ; if ( status == ( TestFailure.ERROR ) ) { statusString = org.eclipse.jdt.internal.junit.runner.MessageIds.TEST_ERROR ; } else { statusString = org.eclipse.jdt.internal.junit.runner.MessageIds.TEST_FAILED ; } org.eclipse.jdt.internal.junit.runner.TestReferenceFailure failure = new org.eclipse.jdt.internal.junit.runner.TestReferenceFailure ( new com.android.ide.eclipse.adt.internal.launch.junit.runtime.TestCaseReference ( test ) , statusString , trace , null ) ; mExecution.getListener ( ) . notifyTestFailed ( failure ) ; }
Source:
public < T extends com.android.sched.marker.Marker > boolean containsMarker ( @ javax.annotation.Nonnull java.lang.Class < T > cls ) { assert isValidMarker ( cls ) : ( ( ( "Marker '" + ( com.android.sched.item.Items.getName ( cls ) ) ) + "' is not supported for class '" ) + ( this . getClass ( ) . getName ( ) ) ) + "'" ; synchronized ( lock ) { if ( ( markers ) == null ) { return false ; } } return markers.containsKey ( cls ) ; }

Target:
public < T extends com.android.sched.marker.Marker > boolean containsMarker ( @ javax.annotation.Nonnull java.lang.Class < T > cls ) { synchronized ( lock ) { assert isValidMarker ( cls ) : ( ( ( "Marker '" + ( com.android.sched.item.Items.getName ( cls ) ) ) + "' is not supported for class '" ) + ( this . getClass ( ) . getName ( ) ) ) + "'" ; if ( ( markers ) == null ) { return false ; } return markers.containsKey ( cls ) ; } }
Source:
public java.lang.String getDeviceSvnUsingSubId ( int subId , java.lang.String callingPackage ) { com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mContext , callingPackage , "getDeviceSvn" ) ) ) { return null ; } return phone.getDeviceSvn ( ) ; } else { loge ( "getDeviceSvn phone is null" ) ; return null ; } }

Target:
public java.lang.String getDeviceSvnUsingSubId ( int subId , java.lang.String callingPackage ) { com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mContext , subId , callingPackage , "getDeviceSvn" ) ) ) { return null ; } return phone.getDeviceSvn ( ) ; } else { loge ( "getDeviceSvn phone is null" ) ; return null ; } }
Source:
private lombok.ast.Node findSurroundingMethod ( lombok.ast.Node scope ) { while ( scope != null ) { java.lang.Class < ? extends lombok.ast.Node > type = scope.getClass ( ) ; if ( ( type == ( lombok.ast.MethodDeclaration.class ) ) || ( type == ( lombok.ast.ConstructorDeclaration.class ) ) ) { return scope ; } scope = scope.getParent ( ) ; } return null ; }

Target:
private static lombok.ast.Node findSurroundingMethod ( lombok.ast.Node scope ) { while ( scope != null ) { java.lang.Class < ? extends lombok.ast.Node > type = scope.getClass ( ) ; if ( ( type == ( lombok.ast.MethodDeclaration.class ) ) || ( type == ( lombok.ast.ConstructorDeclaration.class ) ) ) { return scope ; } scope = scope.getParent ( ) ; } return null ; }
Source:
public static void sort ( short [ ] a , int fromIndex , int toIndex ) { java.util.Arrays.rangeCheck ( a.length , fromIndex , toIndex ) ; java.util.DualPivotQuicksort.sort ( a , fromIndex , ( toIndex - 1 ) ) ; }

Target:
public static void sort ( long [ ] a , int fromIndex , int toIndex ) { java.util.Arrays.rangeCheck ( a.length , fromIndex , toIndex ) ; java.util.DualPivotQuicksort.sort ( a , fromIndex , ( toIndex - 1 ) , null , 0 , 0 ) ; }
Source:
private static void cleanUpDir ( java.io.File dir ) { if ( ! ( dir.isDirectory ( ) ) ) { return ; } java.io.File [ ] files = dir.listFiles ( ) ; for ( java.io.File file : files ) { if ( file.isDirectory ( ) ) { dalvik.system.DexClassLoaderTest.cleanUpDir ( file ) ; } else { assertTrue ( file.delete ( ) ) ; } } }

Target:
private static void cleanUpDir ( java.io.File dir ) { if ( ! ( dir.isDirectory ( ) ) ) { return ; } java.io.File [ ] files = dir.listFiles ( ) ; for ( java.io.File file : files ) { if ( file.isDirectory ( ) ) { dalvik.system.DexClassLoaderTest.cleanUpDir ( file ) ; } else { assertTrue ( file.delete ( ) ) ; } } assertTrue ( dir.delete ( ) ) ; }
Source:
public com.android.jack.dx.io.instructions.DecodedInstruction withIndex ( int newFirstIndex , int newSecondIndex ) { assert ( getSecondIndexType ( ) ) == ( com.android.jack.dx.io.IndexType.NONE ) ; return new com.android.jack.dx.io.instructions.OneRegisterDecodedInstruction ( getFormat ( ) , getOpcode ( ) , newFirstIndex , getFirstIndexType ( ) , getTarget ( ) , getLiteral ( ) , a ) ; }

Target:
public com.android.jack.dx.io.instructions.DecodedInstruction withIndex ( int newFirstIndex , int newSecondIndex ) { return new com.android.jack.dx.io.instructions.OneRegisterDecodedInstruction ( getFormat ( ) , getOpcode ( ) , newFirstIndex , getFirstIndexType ( ) , getTarget ( ) , getLiteral ( ) , a , newSecondIndex , getSecondIndexType ( ) ) ; }
Source:
public boolean onCanceledViaNewOutgoingCallBroadcast ( final com.android.server.telecom.Call call ) { mPendingCallsToDisconnect.add ( call ) ; mHandler.postDelayed ( new java.lang.Runnable ( "CM.oCVNOCB" ) { @ java.lang.Override public void loggedRun ( ) { synchronized ( mLock ) { if ( mPendingCallsToDisconnect.remove ( call ) ) { android.telecom.Log.i ( this , "Delayed disconnection of call: %s" , call ) ; call.disconnect ( ) ; } } } } . prepare ( ) , com.android.server.telecom.Timeouts.getNewOutgoingCallCancelMillis ( mContext.getContentResolver ( ) ) ) ; return true ; }

Target:
public boolean onCanceledViaNewOutgoingCallBroadcast ( final com.android.server.telecom.Call call ) { mPendingCallsToDisconnect.add ( call ) ; mHandler.postDelayed ( new java.lang.Runnable ( "CM.oCVNOCB" , mLock ) { @ java.lang.Override public void loggedRun ( ) { if ( mPendingCallsToDisconnect.remove ( call ) ) { android.telecom.Log.i ( this , "Delayed disconnection of call: %s" , call ) ; call.disconnect ( ) ; } } } . prepare ( ) , com.android.server.telecom.Timeouts.getNewOutgoingCallCancelMillis ( mContext.getContentResolver ( ) ) ) ; return true ; }
Source:
private static java.nio.ByteBuffer getDataFromFile ( java.lang.String itemPath ) { for ( com.ibm.icu.impl.ICUBinary.DataFile dataFile : com.ibm.icu.impl.ICUBinary.icuDataFiles ) { if ( ( dataFile.pkgBytes ) != null ) { java.nio.ByteBuffer data = com.ibm.icu.impl.ICUBinary.DatPackageReader.getData ( dataFile.pkgBytes , itemPath ) ; if ( data != null ) { return data ; } } else if ( itemPath.equals ( dataFile.itemPath ) ) { return com.ibm.icu.impl.ICUBinary.mapFile ( dataFile.path ) ; } } return null ; }

Target:
private static java.nio.ByteBuffer getDataFromFile ( java.lang.String itemPath ) { for ( com.ibm.icu.impl.ICUBinary.DataFile dataFile : com.ibm.icu.impl.ICUBinary.icuDataFiles ) { java.nio.ByteBuffer data = dataFile.getData ( itemPath ) ; if ( data != null ) { return data ; } } return null ; }
Source:
private void setWeekCountData ( java.util.Locale desiredLocale ) { int [ ] data = java.util.Calendar.cachedLocaleData.get ( desiredLocale ) ; if ( data == null ) { libcore.icu.LocaleData localeData = libcore.icu.LocaleData.get ( desiredLocale ) ; data = new int [ 2 ] ; data [ 0 ] = localeData.firstDayOfWeek.intValue ( ) ; data [ 1 ] = localeData.minimalDaysInFirstWeek.intValue ( ) ; java.util.Calendar.cachedLocaleData.putIfAbsent ( desiredLocale , data ) ; } firstDayOfWeek = data [ 0 ] ; minimalDaysInFirstWeek = data [ 1 ] ; }

Target:
private void setWeekCountData ( java.util.Locale desiredLocale ) { int [ ] data = java.util.Calendar.cachedLocaleData.get ( desiredLocale ) ; if ( data == null ) { data = new int [ 2 ] ; libcore.icu.LocaleData localeData = libcore.icu.LocaleData.get ( desiredLocale ) ; data [ 0 ] = localeData.firstDayOfWeek.intValue ( ) ; data [ 1 ] = localeData.minimalDaysInFirstWeek.intValue ( ) ; java.util.Calendar.cachedLocaleData.putIfAbsent ( desiredLocale , data ) ; } firstDayOfWeek = data [ 0 ] ; minimalDaysInFirstWeek = data [ 1 ] ; }
Source:
private static < K , V1 , V2 > com.google.common.collect.Maps.EntryTransformer < K , V1 , V2 > asEntryTransformer ( final com.google.common.base.Function < ? super V1 , V2 > function ) { com.google.common.base.Preconditions.checkNotNull ( function ) ; return new com.google.common.collect.Maps.EntryTransformer < K , V1 , V2 > ( ) { @ java.lang.Override public V2 transformEntry ( K key , V1 value ) { return function.apply ( value ) ; } } ; }

Target:
static < K , V1 , V2 > com.google.common.collect.Maps.EntryTransformer < K , V1 , V2 > asEntryTransformer ( final com.google.common.base.Function < ? super V1 , V2 > function ) { com.google.common.base.Preconditions.checkNotNull ( function ) ; return new com.google.common.collect.Maps.EntryTransformer < K , V1 , V2 > ( ) { @ java.lang.Override public V2 transformEntry ( K key , V1 value ) { return function.apply ( value ) ; } } ; }
Source:
public static int forkAndSpecialize ( int uid , int gid , int [ ] gids , boolean enableDebugger , int [ ] [ ] rlimits ) { int debugFlags = ( enableDebugger ) ? dalvik.system.Zygote.DEBUG_ENABLE_DEBUGGER : 0 ; return dalvik.system.Zygote.forkAndSpecialize ( uid , gid , gids , debugFlags , rlimits ) ; }

Target:
public static int forkAndSpecialize ( int uid , int gid , int [ ] gids , boolean enableDebugger , int [ ] [ ] rlimits ) { int debugFlags = ( enableDebugger ) ? dalvik.system.Zygote.DEBUG_ENABLE_DEBUGGER : 0 ; return dalvik.system.Zygote.forkAndSpecialize ( uid , gid , gids , debugFlags , rlimits , null , null ) ; }
Source:
void addEntry ( int hash , K key , V value , int bucketIndex ) { java.util.LinkedHashMap.LinkedHashMapEntry < K , V > eldest = header.after ; if ( eldest != ( header ) ) { boolean removeEldest ; ( size ) ++ ; try { removeEldest = removeEldestEntry ( eldest ) ; } finally { ( size ) -- ; } if ( removeEldest ) { removeEntryForKey ( eldest.key ) ; } } super . addEntry ( hash , key , value , bucketIndex ) ; }

Target:
void addEntry ( int hash , K key , V value , int bucketIndex ) { super . addEntry ( hash , key , value , bucketIndex ) ; java.util.LinkedHashMap.LinkedHashMapEntry < K , V > eldest = header.after ; if ( removeEldestEntry ( eldest ) ) { removeEntryForKey ( eldest.key ) ; } }
Source:
private boolean canRejectCallWithSms ( ) { return ( ( primaryCallState ) != null ) && ( ! ( ( ( ( primaryCallState.state ) == ( com.android.incallui.call.DialerCall.State.DISCONNECTED ) ) || ( ( primaryCallState.state ) == ( com.android.incallui.call.DialerCall.State.DISCONNECTING ) ) ) || ( ( primaryCallState.state ) == ( com.android.incallui.call.DialerCall.State.IDLE ) ) ) ) ; }

Target:
private boolean canRejectCallWithSms ( ) { return ( ( primaryCallState ) != null ) && ( ! ( ( ( ( primaryCallState.state ( ) ) == ( com.android.incallui.call.DialerCall.State.DISCONNECTED ) ) || ( ( primaryCallState.state ( ) ) == ( com.android.incallui.call.DialerCall.State.DISCONNECTING ) ) ) || ( ( primaryCallState.state ( ) ) == ( com.android.incallui.call.DialerCall.State.IDLE ) ) ) ) ; }
Source:
private static java.util.List < java.lang.String > getRefCompilerArguments ( com.android.jack.Options compilerArgs ) { java.util.List < java.lang.String > arguments = new java.util.ArrayList < java.lang.String > ( compilerArgs.ecjArguments ) ; if ( ( compilerArgs.classpath ) != null ) { arguments.add ( "-classpath" ) ; arguments.add ( compilerArgs.classpath.replace ( "core-stubs-mini.jack" , "core-stubs-mini.jar" ) ) ; } if ( ( compilerArgs.bootclasspath ) != null ) { arguments.add ( "-bootclasspath" ) ; arguments.add ( compilerArgs.bootclasspath.replace ( "core-stubs-mini.jack" , "core-stubs-mini.jar" ) ) ; } return arguments ; }

Target:
private static java.util.List < java.lang.String > getRefCompilerArguments ( com.android.jack.Options compilerArgs ) { java.util.List < java.lang.String > arguments = new java.util.ArrayList < java.lang.String > ( compilerArgs.ecjArguments ) ; if ( ( compilerArgs.classpath ) != null ) { arguments.add ( "-classpath" ) ; arguments.add ( compilerArgs.classpath.replace ( "core-stubs-mini.jack" , "core-stubs-mini.jar" ) ) ; } return arguments ; }
Source:
public void dispose ( ) throws android.telephony.mbms.MbmsException { if ( ( mService ) == null ) { throw new java.lang.IllegalStateException ( "No streaming service attached" ) ; } try { mService.disposeStream ( 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 dispose: " + e ) ) ; throw new android.telephony.mbms.MbmsException ( MbmsException.ERROR_UNKNOWN_REMOTE_EXCEPTION ) ; } }

Target:
public void dispose ( ) throws android.telephony.mbms.MbmsException { if ( ( mService ) == null ) { throw new java.lang.IllegalStateException ( "No streaming service attached" ) ; } try { mService.disposeStream ( mAppName , mSubscriptionId , mServiceInfo.getServiceId ( ) ) ; } catch ( android.os.RemoteException 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 ) ; } }
Source:
public void testIllegalMethodInsnNullDesc ( ) { org.objectweb.asm.MethodVisitor mv = new org.objectweb.asm.util.CheckMethodAdapter ( null ) ; mv.visitCode ( ) ; try { mv.visitMethodInsn ( org.objectweb.asm.util.INVOKEVIRTUAL , "C" , "m" , null ) ; fail ( ) ; } catch ( java.lang.Exception e ) { } }

Target:
public void testIllegalMethodInsnNullDesc ( ) { org.objectweb.asm.MethodVisitor mv = new org.objectweb.asm.util.CheckMethodAdapter ( null ) ; mv.visitCode ( ) ; try { mv.visitMethodInsn ( org.objectweb.asm.util.INVOKEVIRTUAL , "C" , "m" , null , false ) ; fail ( ) ; } catch ( java.lang.Exception e ) { } }