auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void sendNanStateChangedBroadcast ( boolean enabled ) { if ( com.android.server.wifi.nan.WifiNanStateManager.VDBG ) { android.util.Log.v ( com.android.server.wifi.nan.WifiNanStateManager.TAG , ( "sendNanStateChangedBroadcast: enabled=" + enabled ) ) ; } final android.content.Intent intent = new android.content.Intent ( android.net.wifi.nan.WifiNanManager.ACTION_WIFI_NAN_STATE_CHANGED ) ; intent.addFlags ( Intent.FLAG_RECEIVER_REGISTERED_ONLY ) ; if ( enabled ) { intent.putExtra ( WifiNanManager.EXTRA_WIFI_STATE , WifiNanManager.WIFI_NAN_STATE_ENABLED ) ; } else { intent.putExtra ( WifiNanManager.EXTRA_WIFI_STATE , WifiNanManager.WIFI_NAN_STATE_DISABLED ) ; } mContext.sendBroadcastAsUser ( intent , UserHandle.ALL ) ; }

Target:
private void sendNanStateChangedBroadcast ( boolean enabled ) { if ( com.android.server.wifi.nan.WifiNanStateManager.VDBG ) { android.util.Log.v ( com.android.server.wifi.nan.WifiNanStateManager.TAG , ( "sendNanStateChangedBroadcast: enabled=" + enabled ) ) ; } final android.content.Intent intent = new android.content.Intent ( android.net.wifi.nan.WifiNanManager.ACTION_WIFI_NAN_STATE_CHANGED ) ; intent.addFlags ( Intent.FLAG_RECEIVER_REGISTERED_ONLY ) ; mContext.sendBroadcastAsUser ( intent , UserHandle.ALL ) ; }
Source:
private static void assertPhoneAccountHandleEquals ( android.telecom.PhoneAccountHandle a , android.telecom.PhoneAccountHandle b ) { if ( a != b ) { assertEquals ( a.getComponentName ( ) . getPackageName ( ) , b.getComponentName ( ) . getPackageName ( ) ) ; assertEquals ( a.getComponentName ( ) . getClassName ( ) , b.getComponentName ( ) . getClassName ( ) ) ; assertEquals ( a.getId ( ) , b.getId ( ) ) ; } }

Target:
private static void assertPhoneAccountHandleEquals ( android.telecom.PhoneAccountHandle a , android.telecom.PhoneAccountHandle b ) { if ( a != b ) { org.junit.Assert.assertEquals ( a.getComponentName ( ) . getPackageName ( ) , b.getComponentName ( ) . getPackageName ( ) ) ; org.junit.Assert.assertEquals ( a.getComponentName ( ) . getClassName ( ) , b.getComponentName ( ) . getClassName ( ) ) ; org.junit.Assert.assertEquals ( a.getId ( ) , b.getId ( ) ) ; } }
Source:
public static java.io.InputStream newFileInputStream ( java.io.File file , boolean normalize ) throws java.io.IOException { java.io.FileInputStream inputStream = new java.io.FileInputStream ( file ) ; if ( ( ! normalize ) || ( ! ( com.intellij.updater.Utils.isZipFile ( file.getName ( ) ) ) ) ) { return inputStream ; } return new com.intellij.updater.Utils.NormalizedZipInputStream ( file ) ; }

Target:
public static java.io.InputStream newFileInputStream ( java.io.File file , boolean normalize ) throws java.io.IOException { if ( ( ! normalize ) || ( ! ( com.intellij.updater.Utils.isZipFile ( file.getName ( ) ) ) ) ) { return new java.io.FileInputStream ( file ) ; } return new com.intellij.updater.Utils.NormalizedZipInputStream ( file ) ; }
Source:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { if ( ( ( ( method.getEnclosingType ( ) . isExternal ( ) ) || ( method.isNative ( ) ) ) || ( method.isAbstract ( ) ) ) || ( ! ( filter.accept ( this . getClass ( ) , method ) ) ) ) { return ; } com.android.jack.transformations.request.TransformationRequest request = new com.android.jack.transformations.request.TransformationRequest ( method ) ; com.android.jack.transformations.rop.cast.RopCastLegalizer.Visitor visitor = new com.android.jack.transformations.rop.cast.RopCastLegalizer.Visitor ( request ) ; visitor.accept ( method ) ; request.commit ( ) ; }

Target:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { if ( ( ( method.isNative ( ) ) || ( method.isAbstract ( ) ) ) || ( ! ( filter.accept ( this . getClass ( ) , method ) ) ) ) { return ; } com.android.jack.transformations.request.TransformationRequest request = new com.android.jack.transformations.request.TransformationRequest ( method ) ; com.android.jack.transformations.rop.cast.RopCastLegalizer.Visitor visitor = new com.android.jack.transformations.rop.cast.RopCastLegalizer.Visitor ( request ) ; visitor.accept ( method ) ; request.commit ( ) ; }
Source:
private static void assertValues ( android.net.NetworkStats.Entry entry , long rxBytes , long rxPackets , long txBytes , long txPackets , long operations ) { assertEquals ( rxBytes , entry.rxBytes ) ; assertEquals ( rxPackets , entry.rxPackets ) ; assertEquals ( txBytes , entry.txBytes ) ; assertEquals ( txPackets , entry.txPackets ) ; assertEquals ( operations , entry.operations ) ; }

Target:
private static void assertValues ( android.net.NetworkStats.Entry entry , long rxBytes , long rxPackets , long txBytes , long txPackets , long operations ) { org.junit.Assert.assertEquals ( rxBytes , entry.rxBytes ) ; org.junit.Assert.assertEquals ( rxPackets , entry.rxPackets ) ; org.junit.Assert.assertEquals ( txBytes , entry.txBytes ) ; org.junit.Assert.assertEquals ( txPackets , entry.txPackets ) ; org.junit.Assert.assertEquals ( operations , entry.operations ) ; }
Source:
public boolean find ( int start ) { if ( ( start < 0 ) || ( start > ( input.length ( ) ) ) ) { throw new java.lang.IndexOutOfBoundsException ( ( ( ( "start=" + start ) + "; length=" ) + ( input.length ( ) ) ) ) ; } matchFound = java.util.regex.Matcher.findImpl ( address , input , start , matchOffsets ) ; return matchFound ; }

Target:
public boolean find ( int start ) { if ( ( start < 0 ) || ( start > ( input.length ( ) ) ) ) { throw new java.lang.IndexOutOfBoundsException ( ( ( ( "start=" + start ) + "; length=" ) + ( input.length ( ) ) ) ) ; } synchronized ( this ) { matchFound = java.util.regex.Matcher.findImpl ( address , input , start , matchOffsets ) ; } return matchFound ; }
Source:
public vogar.target.TargetRunner newRunner ( vogar.monitor.TargetMonitor monitor , java.lang.String qualification , java.lang.Class < ? > klass , java.util.concurrent.atomic.AtomicReference < java.lang.String > skipPastReference , vogar.target.TestEnvironment testEnvironment , int timeoutSeconds , boolean profile , java.lang.String [ ] args ) { if ( new vogar.ClassAnalyzer ( klass ) . hasMethod ( true , void . class , "main" , java.lang.String [ ] . class ) ) { return new vogar.target.MainTargetRunner ( monitor , klass , args ) ; } else { return null ; } }

Target:
public vogar.target.TargetRunner newRunner ( vogar.monitor.TargetMonitor monitor , java.lang.String qualification , java.lang.Class < ? > klass , java.util.concurrent.atomic.AtomicReference < java.lang.String > skipPastReference , vogar.target.TestEnvironment testEnvironment , int timeoutSeconds , java.lang.String [ ] args ) { if ( new vogar.ClassAnalyzer ( klass ) . hasMethod ( true , void . class , "main" , java.lang.String [ ] . class ) ) { return new vogar.target.MainTargetRunner ( monitor , klass , args ) ; } else { return null ; } }
Source:
private android.server.cts.ReportedSizes getActivityDisplaySize ( java.lang.String activityName , int stackId ) throws java.lang.Exception { mAmWmState.computeState ( mDevice , new java.lang.String [ ] { activityName } , false ) ; mAmWmState.assertContainsStack ( ( "Must contain stack " + stackId ) , stackId ) ; final android.server.cts.ReportedSizes details = getLastReportedSizesForActivity ( activityName ) ; assertNotNull ( details ) ; return details ; }

Target:
private android.server.cts.ReportedSizes getActivityDisplaySize ( java.lang.String activityName ) throws java.lang.Exception { mAmWmState.computeState ( mDevice , new java.lang.String [ ] { activityName } , false ) ; final android.server.cts.ReportedSizes details = getLastReportedSizesForActivity ( activityName ) ; assertNotNull ( details ) ; return details ; }
Source:
public void onResume ( ) { super . onResume ( ) ; com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkInputActivity.LOG_TAG , ( ( ( "onResume - mIsResponseSent[" + ( mIsResponseSent ) ) + "], slot id: " ) + ( mSlotId ) ) ) ; startTimeOut ( ) ; appService.getStkContext ( mSlotId ) . setPendingActivityInstance ( null ) ; if ( mIsResponseSent ) { cancelTimeOut ( ) ; finish ( ) ; } }

Target:
public void onResume ( ) { super . onResume ( ) ; com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkInputActivity.LOG_TAG , ( ( ( "onResume - mIsResponseSent[" + ( mIsResponseSent ) ) + "], slot id: " ) + ( mSlotId ) ) ) ; startTimeOut ( ) ; }
Source:
public static void setExecutable ( java.io.File file , boolean executable ) throws java.io.IOException { if ( executable && ( ! ( file.setExecutable ( true ) ) ) ) { Runner.logger.error ( "Can't set executable permissions for file" ) ; throw new java.io.IOException ( ( "Cannot set executable permissions for: " + file ) ) ; } }

Target:
public static void setExecutable ( java.io.File file , boolean executable ) throws java.io.IOException { if ( executable && ( ! ( file.setExecutable ( true , false ) ) ) ) { Runner.logger.error ( "Can't set executable permissions for file" ) ; throw new java.io.IOException ( ( "Cannot set executable permissions for: " + file ) ) ; } }
Source:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , float [ ] data ) { mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , ( ( data.length ) * 4 ) ) ; }

Target:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , byte [ ] data ) { mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , data.length ) ; }
Source:
synchronized void nAllocationData2D ( int id , int xoff , int yoff , int mip , int face , int w , int h , float [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData2D ( mContext , id , xoff , yoff , mip , face , w , h , d , sizeBytes ) ; }

Target:
synchronized void nAllocationData2D ( long id , int xoff , int yoff , int mip , int face , int w , int h , long [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData2D ( mContext , id , xoff , yoff , mip , face , w , h , d , sizeBytes ) ; }
Source:
public void test_reverseOrder ( ) { java.util.Comparator comp = java.util.Collections.reverseOrder ( ) ; java.util.LinkedList list2 = new java.util.LinkedList ( ll ) ; java.util.Collections.sort ( list2 , comp ) ; final int llSize = ll.size ( ) ; for ( int counter = 0 ; counter < llSize ; counter ++ ) assertEquals ( "New comparator does not reverse sorting order" , list2.get ( ( ( llSize - counter ) - 1 ) ) , ll.get ( counter ) ) ; }

Target:
public void test_reverseOrder ( ) { java.util.Comparator comp = java.util.Collections.reverseOrder ( ) ; java.util.LinkedList list2 = new java.util.LinkedList ( ll ) ; java.util.Collections.sort ( list2 , comp ) ; final int llSize = ll.size ( ) ; for ( int i = 0 ; i < llSize ; i ++ ) assertEquals ( "New comparator does not reverse sorting order" , list2.get ( ( ( llSize - i ) - 1 ) ) , ll.get ( i ) ) ; }
Source:
static void getBoolean ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , boolean value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { final boolean got = ( v == null ) ? ( ( boolean ) ( m.invokeExact ( ) ) ) : ( ( boolean ) ( m.invokeExact ( v ) ) ) ; Main.Tester.assertTrue ( ( got == value ) ) ; } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertEquals ( exceptionThrown , expectFailure ) ; }

Target:
static void getBoolean ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , boolean value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { final boolean got = ( v == null ) ? ( ( boolean ) ( m.invokeExact ( ) ) ) : ( ( boolean ) ( m.invokeExact ( v ) ) ) ; Main.Tester.assertTrue ( ( got == value ) ) ; } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertEquals ( expectFailure , exceptionThrown ) ; }
Source:
public void testMultiIntent ( ) throws java.lang.Exception { assertEquals ( "No warnings." , lintProject ( xml ( "AndroidManifest.xml" , ( "" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" + "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n" ) + " package=\"com.example.helloworld\" >\n" ) + "\n" ) + " <application\n" ) + " android:allowBackup=\"true\"\n" ) + " android:icon=\"@mipmap/ic_launcher\"\n" ) + " android:label=\"@string/app_name\"\n" ) + " android:theme=\"@style/AppTheme\" >\n" ) + " <activity\n" ) + " android:name=\".FullscreenActivity\"\n" ) + " android:configChanges=\"orientation|keyboardHidden|screenSize\"\n" ) + " android:label=\"@string/title_activity_fullscreen\"\n" ) + " android:theme=\"@style/FullscreenTheme\" >\n" ) + " <intent-filter>\n" ) + " <action android:name=\"android.intent.action.MAIN\" />\n" ) + " <category android:name=\"android.intent.category.LAUNCHER\" />\n" ) + " </intent-filter>" ) + " <intent-filter android:label=\"@string/title_activity_fullscreen\">\n" ) + " <action android:name=\"android.intent.action.VIEW\" />\n" ) + " <!-- Accepts URIs that begin with \"http://example.com/gizmos” -->\n" ) + " <data android:scheme=\"http\"\n" ) + " android:host=\"example.com\"\n" ) + " android:pathPrefix=\"/gizmos\" />\n" ) + " <category android:name=\"android.intent.category.DEFAULT\" />\n" ) + " <category android:name=\"android.intent.category.BROWSABLE\" />\n" ) + " </intent-filter>\n" ) + " </activity>\n" ) + " </application>\n" ) + "\n" ) + "</manifest>\n" ) ) ) ) ) ; }

Target:
public void testMultiIntent ( ) throws java.lang.Exception { assertEquals ( "No warnings." , lintProject ( xml ( "AndroidManifest.xml" , ( "" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" + "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n" ) + " package=\"com.example.helloworld\" >\n" ) + "\n" ) + " <application\n" ) + " android:allowBackup=\"true\"\n" ) + " android:icon=\"@mipmap/ic_launcher\"\n" ) + " android:label=\"@string/app_name\"\n" ) + " android:theme=\"@style/AppTheme\" >\n" ) + " <activity\n" ) + " android:name=\".FullscreenActivity\"\n" ) + " android:configChanges=\"orientation|keyboardHidden|screenSize\"\n" ) + " android:label=\"@string/title_activity_fullscreen\"\n" ) + " android:theme=\"@style/FullscreenTheme\" >\n" ) + " <intent-filter>\n" ) + " <action android:name=\"android.intent.action.MAIN\" />\n" ) + " <category android:name=\"android.intent.category.LAUNCHER\" />\n" ) + " </intent-filter>" ) + " <intent-filter android:label=\"@string/title_activity_fullscreen\">\n" ) + " <action android:name=\"android.intent.action.VIEW\" />\n" ) + " <data android:scheme=\"http\"\n" ) + " android:host=\"example.com\"\n" ) + " android:pathPrefix=\"/gizmos\" />\n" ) + " <category android:name=\"android.intent.category.DEFAULT\" />\n" ) + " <category android:name=\"android.intent.category.BROWSABLE\" />\n" ) + " </intent-filter>\n" ) + " </activity>\n" ) + " </application>\n" ) + "\n" ) + "</manifest>\n" ) ) ) ) ) ; }
Source:
public static java.lang.String get ( java.lang.String key ) { if ( ( key.length ( ) ) > ( android.os.SystemProperties.PROP_NAME_MAX ) ) { throw new java.lang.IllegalArgumentException ( ( "key.length > " + ( android.os.SystemProperties.PROP_NAME_MAX ) ) ) ; } if ( android.os.SystemProperties.TRACK_KEY_ACCESS ) android.os.SystemProperties.onKeyAccess ( key ) ; return android.os.SystemProperties.native_get ( key ) ; }

Target:
public static java.lang.String get ( java.lang.String key ) { if ( android.os.SystemProperties.TRACK_KEY_ACCESS ) android.os.SystemProperties.onKeyAccess ( key ) ; return android.os.SystemProperties.native_get ( key ) ; }
Source:
public void run ( ) { if ( ! ( mResultText.isDisposed ( ) ) ) { mResultText.setVisible ( true ) ; java.lang.String lastText = mResultText.getText ( ) ; if ( ( ( ( lastText != null ) && ( ( lastText.length ( ) ) > 0 ) ) && ( ! ( lastText.endsWith ( "\n" ) ) ) ) && ( ! ( result.startsWith ( "\n" ) ) ) ) { mResultText.append ( "\n" ) ; } mResultText.append ( result ) ; } }

Target:
public void run ( ) { if ( ! ( mResultText.isDisposed ( ) ) ) { mResultText.setVisible ( true ) ; java.lang.String lastText = mResultText.getText ( ) ; if ( ( ( ( lastText != null ) && ( ( lastText.length ( ) ) > 0 ) ) && ( ! ( lastText.endsWith ( "\n" ) ) ) ) && ( ! ( info.startsWith ( "\n" ) ) ) ) { mResultText.append ( "\n" ) ; } mResultText.append ( info ) ; } }
Source:
private static void removeUser ( java.util.prefs.Preferences prefs , java.lang.String user ) { java.lang.String allUsersString = prefs.get ( com.google.gct.login.GoogleLoginPrefs.USERS , "" ) ; java.util.SortedSet < java.lang.String > allUsers = new java.util.TreeSet < java.lang.String > ( ) ; for ( java.lang.String scope : allUsersString.split ( com.google.gct.login.GoogleLoginPrefs.DELIMITER ) ) { allUsers.add ( scope ) ; } allUsers.remove ( user ) ; com.google.common.base.Joiner joiner = com.google.common.base.Joiner.on ( com.google.gct.login.GoogleLoginPrefs.DELIMITER ) ; prefs.put ( com.google.gct.login.GoogleLoginPrefs.USERS , joiner.join ( allUsers ) ) ; }

Target:
private static void removeUser ( java.util.prefs.Preferences prefs , java.lang.String user ) { java.lang.String allUsersString = prefs.get ( com.google.gct.login.GoogleLoginPrefs.USERS , "" ) ; java.util.List < java.lang.String > allUsers = new java.util.ArrayList < java.lang.String > ( ) ; for ( java.lang.String scope : allUsersString.split ( com.google.gct.login.GoogleLoginPrefs.DELIMITER ) ) { allUsers.add ( scope ) ; } allUsers.remove ( user ) ; com.google.common.base.Joiner joiner = com.google.common.base.Joiner.on ( com.google.gct.login.GoogleLoginPrefs.DELIMITER ) ; prefs.put ( com.google.gct.login.GoogleLoginPrefs.USERS , joiner.join ( allUsers ) ) ; }
Source:
static void division ( java.math.BigInt dividend , java.math.BigInt divisor , java.math.BigInt quotient , java.math.BigInt remainder ) { int quot ; int rem ; if ( quotient != null ) { quotient.makeValid ( ) ; quot = quotient.bignum ; } else { quot = 0 ; } if ( remainder != null ) { remainder.makeValid ( ) ; rem = remainder.bignum ; } else { rem = 0 ; } java.math.BigInt.Check ( java.math.NativeBN.BN_div ( quot , rem , dividend.bignum , divisor.bignum ) ) ; }

Target:
static void division ( java.math.BigInt dividend , java.math.BigInt divisor , java.math.BigInt quotient , java.math.BigInt remainder ) { long quot ; long rem ; if ( quotient != null ) { quotient.makeValid ( ) ; quot = quotient.bignum ; } else { quot = 0 ; } if ( remainder != null ) { remainder.makeValid ( ) ; rem = remainder.bignum ; } else { rem = 0 ; } java.math.BigInt.Check ( java.math.NativeBN.BN_div ( quot , rem , dividend.bignum , divisor.bignum ) ) ; }
Source:
android.view.animation.Animation loadAnimation ( android.view.WindowManager.LayoutParams lp , int animAttr ) { int anim = 0 ; android.content.Context context = mContext ; if ( animAttr >= 0 ) { com.android.server.AttributeCache.Entry ent = getCachedAnimations ( lp ) ; if ( ent != null ) { context = ent.context ; anim = ent.array.getResourceId ( animAttr , 0 ) ; } } if ( anim != 0 ) { return android.view.animation.AnimationUtils.loadAnimation ( context , anim ) ; } return null ; }

Target:
android.view.animation.Animation loadAnimation ( int userId , android.view.WindowManager.LayoutParams lp , int animAttr ) { int anim = 0 ; android.content.Context context = mContext ; if ( animAttr >= 0 ) { com.android.server.AttributeCache.Entry ent = getCachedAnimations ( userId , lp ) ; if ( ent != null ) { context = ent.context ; anim = ent.array.getResourceId ( animAttr , 0 ) ; } } if ( anim != 0 ) { return android.view.animation.AnimationUtils.loadAnimation ( context , anim ) ; } return null ; }
Source:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { com.android.jack.ir.ast.JDefinedClassOrInterface declaringClass = method.getEnclosingType ( ) ; if ( ( declaringClass.isExternal ( ) ) || ( ! ( filter.accept ( this . getClass ( ) , method ) ) ) ) { return ; } method.setBody ( null ) ; }

Target:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { if ( ! ( filter.accept ( this . getClass ( ) , method ) ) ) { return ; } method.setBody ( null ) ; }
Source:
public com.google.mockwebserver.MockResponse clone ( ) { try { com.google.mockwebserver.MockResponse result = ( ( com.google.mockwebserver.MockResponse ) ( super . clone ( ) ) ) ; result.headers = new java.util.ArrayList < java.lang.String > ( result.headers ) ; return result ; } catch ( java.lang.CloneNotSupportedException e ) { throw new java.lang.AssertionError ( ) ; } }

Target:
public com.google.mockwebserver.MockResponse clone ( ) { try { return ( ( com.google.mockwebserver.MockResponse ) ( super . clone ( ) ) ) ; } catch ( java.lang.CloneNotSupportedException e ) { throw new java.lang.AssertionError ( ) ; } }
Source:
private void handleReleasedFocus ( com.android.server.telecom.ConnectionServiceFocusManager.ConnectionServiceFocus connectionServiceFocus ) { android.telecom.Log.d ( this , "handleReleasedFocus connSvr = %s" , connectionServiceFocus ) ; if ( java.util.Objects.equals ( mCurrentFocus , connectionServiceFocus ) ) { mEventHandler.removeMessages ( com.android.server.telecom.ConnectionServiceFocusManager.MSG_RELEASE_FOCUS_TIMEOUT , mCurrentFocusRequest ) ; com.android.server.telecom.ConnectionServiceFocusManager.ConnectionServiceFocus newCSF = null ; if ( ( mCurrentFocusRequest ) != null ) { newCSF = mCurrentFocusRequest.call.getConnectionServiceWrapper ( ) ; } updateConnectionServiceFocus ( newCSF ) ; updateCurrentFocusCall ( ) ; if ( ( mCurrentFocusRequest ) != null ) { onRequestFocusDone ( mCurrentFocusRequest ) ; mCurrentFocusRequest = null ; } } }

Target:
private void handleReleasedFocus ( com.android.server.telecom.ConnectionServiceFocusManager.ConnectionServiceFocus connectionServiceFocus ) { if ( java.util.Objects.equals ( mCurrentFocus , connectionServiceFocus ) ) { mEventHandler.removeMessages ( com.android.server.telecom.ConnectionServiceFocusManager.MSG_RELEASE_FOCUS_TIMEOUT , mCurrentFocusRequest ) ; com.android.server.telecom.ConnectionServiceFocusManager.ConnectionServiceFocus newCSF = null ; if ( ( mCurrentFocusRequest ) != null ) { newCSF = mCurrentFocusRequest.call.getConnectionServiceWrapper ( ) ; } updateConnectionServiceFocus ( newCSF ) ; updateCurrentFocusCall ( ) ; if ( ( mCurrentFocusRequest ) != null ) { onRequestFocusDone ( mCurrentFocusRequest ) ; mCurrentFocusRequest = null ; } } }
Source:
public void testAddAccount_allowed ( ) throws java.lang.Exception { android.os.Bundle result = mAccountManager.addAccount ( MockAccountAuthenticator.ACCOUNT_TYPE , null , null , null , null , null , null ) . getResult ( ) ; java.lang.String accountType = result.getString ( AccountManager.KEY_ACCOUNT_TYPE ) ; java.lang.String accountName = result.getString ( AccountManager.KEY_ACCOUNT_NAME ) ; assertEquals ( MockAccountAuthenticator.ACCOUNT_TYPE , accountType ) ; android.accounts.Account account = new android.accounts.Account ( accountName , accountType ) ; java.lang.String authToken = mAccountManager.blockingGetAuthToken ( account , "authTokenType" , false ) ; assertEquals ( MockAccountAuthenticator.AUTH_TOKEN , authToken ) ; }

Target:
public void testAddAccount_allowed ( ) throws java.lang.Exception { android.os.Bundle result = mAccountManager.addAccount ( MockAccountAuthenticator.ACCOUNT_TYPE , null , null , null , null , null , null ) . getResult ( ) ; assertEquals ( MockAccountAuthenticator.ACCOUNT_TYPE , result.getString ( AccountManager.KEY_ACCOUNT_TYPE ) ) ; }
Source:
public static void checkStructure ( @ javax.annotation.CheckForNull java.io.File [ ] bootclasspath , @ javax.annotation.CheckForNull java.io.File [ ] classpath , @ javax.annotation.Nonnull java.io.File fileOrSourceList , boolean withDebugInfo , @ javax.annotation.CheckForNull com.android.jack.ProguardFlags [ ] proguardFlagFiles ) throws java.lang.Exception { com.android.jack.TestTools.checkStructure ( bootclasspath , classpath , fileOrSourceList , withDebugInfo , false , 0.0F , ( ( com.android.jack.JarJarRules ) ( null ) ) , proguardFlagFiles ) ; }

Target:
public static void checkStructure ( @ javax.annotation.CheckForNull java.io.File [ ] classpath , @ javax.annotation.Nonnull java.io.File fileOrSourceList , boolean withDebugInfo ) throws java.lang.Exception { com.android.jack.TestTools.checkStructure ( classpath , fileOrSourceList , withDebugInfo , false , 0.0F , ( ( com.android.jack.JarJarRules ) ( null ) ) , ( ( com.android.jack.ProguardFlags [ ] ) ( null ) ) ) ; }
Source:
public void test_ConstructorLjava_util_Properties ( ) { java.util.Properties systemProperties = java.lang.System.getProperties ( ) ; java.util.Properties properties = new java.util.Properties ( systemProperties ) ; java.util.Enumeration < ? > propertyNames = systemProperties.propertyNames ( ) ; java.lang.String propertyName = null ; while ( propertyNames.hasMoreElements ( ) ) { propertyName = ( ( java.lang.String ) ( propertyNames.nextElement ( ) ) ) ; assertEquals ( "failed to construct correct properties" , systemProperties.get ( propertyName ) , properties.getProperty ( propertyName ) ) ; } }

Target:
public void test_ConstructorLjava_util_Properties ( ) { java.util.Properties systemProperties = java.lang.System.getProperties ( ) ; java.util.Properties properties = new java.util.Properties ( systemProperties ) ; java.util.Enumeration < ? > propertyNames = systemProperties.propertyNames ( ) ; java.lang.String propertyName = null ; while ( propertyNames.hasMoreElements ( ) ) { propertyName = ( ( java.lang.String ) ( propertyNames.nextElement ( ) ) ) ; assertEquals ( "failed to construct correct properties" , systemProperties.getProperty ( propertyName ) , properties.getProperty ( propertyName ) ) ; } }
Source:
private com.android.dex.Dex mergeDexes ( ) throws java.io.IOException { mergeStringIds ( ) ; mergeTypeIds ( ) ; mergeTypeLists ( ) ; mergeProtoIds ( ) ; mergeFieldIds ( ) ; mergeMethodIds ( ) ; mergeAnnotations ( ) ; unionAnnotationSetsAndDirectories ( ) ; mergeClassDefs ( ) ; contentsOut.header.off = 0 ; contentsOut.header.size = 1 ; contentsOut.fileSize = dexOut.getLength ( ) ; contentsOut.computeSizesFromOffsets ( ) ; contentsOut.writeHeader ( headerOut ) ; contentsOut.writeMap ( mapListOut ) ; new com.android.dx.io.DexHasher ( ) . writeHashes ( dexOut ) ; return dexOut ; }

Target:
private com.android.dex.Dex mergeDexes ( ) throws java.io.IOException { mergeStringIds ( ) ; mergeTypeIds ( ) ; mergeTypeLists ( ) ; mergeProtoIds ( ) ; mergeFieldIds ( ) ; mergeMethodIds ( ) ; mergeAnnotations ( ) ; unionAnnotationSetsAndDirectories ( ) ; mergeClassDefs ( ) ; contentsOut.header.off = 0 ; contentsOut.header.size = 1 ; contentsOut.fileSize = dexOut.getLength ( ) ; contentsOut.computeSizesFromOffsets ( ) ; contentsOut.writeHeader ( headerOut ) ; contentsOut.writeMap ( mapListOut ) ; dexOut.writeHashes ( ) ; return dexOut ; }
Source:
com.android.server.wifi.WifiStateMachine mockWifiStateMachine ( ) { com.android.server.wifi.WifiStateMachine stateMachine = mock ( com.android.server.wifi.WifiStateMachine.class ) ; when ( stateMachine.getFrequencyBand ( ) ) . thenReturn ( 1 ) ; when ( stateMachine.isLinkDebouncing ( ) ) . thenReturn ( false ) ; when ( stateMachine.isConnected ( ) ) . thenReturn ( false ) ; when ( stateMachine.isDisconnected ( ) ) . thenReturn ( true ) ; when ( stateMachine.isSupplicantTransientState ( ) ) . thenReturn ( false ) ; return stateMachine ; }

Target:
com.android.server.wifi.WifiStateMachine mockWifiStateMachine ( ) { com.android.server.wifi.WifiStateMachine stateMachine = mock ( com.android.server.wifi.WifiStateMachine.class ) ; when ( stateMachine.isLinkDebouncing ( ) ) . thenReturn ( false ) ; when ( stateMachine.isConnected ( ) ) . thenReturn ( false ) ; when ( stateMachine.isDisconnected ( ) ) . thenReturn ( true ) ; when ( stateMachine.isSupplicantTransientState ( ) ) . thenReturn ( false ) ; return stateMachine ; }
Source:
private java.lang.String normalizeWord ( java.lang.String word ) { switch ( this ) { case LOWER_HYPHEN : return com.google.common.base.Ascii.toLowerCase ( word ) ; case LOWER_UNDERSCORE : return com.google.common.base.Ascii.toLowerCase ( word ) ; case LOWER_CAMEL : return com.google.common.base.CaseFormat.firstCharOnlyToUpper ( word ) ; case UPPER_CAMEL : return com.google.common.base.CaseFormat.firstCharOnlyToUpper ( word ) ; case UPPER_UNDERSCORE : return com.google.common.base.Ascii.toUpperCase ( word ) ; } throw new java.lang.RuntimeException ( ( "unknown case: " + ( this ) ) ) ; }

Target:
java.lang.String normalizeWord ( java.lang.String word ) { return com.google.common.base.Ascii.toLowerCase ( word ) ; }
Source:
private java.lang.String convertOpertatorInfoToString ( int status ) { if ( status == ( android.hardware.radio.V1_0.OperatorStatus.UNKNOWN ) ) { return "unknown" ; } else if ( status == ( android.hardware.radio.V1_0.OperatorStatus.AVAILABLE ) ) { return "available" ; } else if ( status == ( android.hardware.radio.V1_0.OperatorStatus.CURRENT ) ) { return "current" ; } else if ( status == ( android.hardware.radio.V1_0.OperatorStatus.FORBIDDEN ) ) { return "forbidden" ; } else { return "" ; } }

Target:
private static java.lang.String convertOpertatorInfoToString ( int status ) { if ( status == ( android.hardware.radio.V1_0.OperatorStatus.UNKNOWN ) ) { return "unknown" ; } else if ( status == ( android.hardware.radio.V1_0.OperatorStatus.AVAILABLE ) ) { return "available" ; } else if ( status == ( android.hardware.radio.V1_0.OperatorStatus.CURRENT ) ) { return "current" ; } else if ( status == ( android.hardware.radio.V1_0.OperatorStatus.FORBIDDEN ) ) { return "forbidden" ; } else { return "" ; } }
Source:
public void run ( ) { com.android.rs.test_v16.RenderScript pRS = com.android.rs.test_v16.RenderScript.create ( mCtx ) ; com.android.rs.test_v16.ScriptC_fp_mad s = new com.android.rs.test_v16.ScriptC_fp_mad ( pRS , mRes , R.raw.fp_mad ) ; pRS.setMessageHandler ( mRsMessage ) ; s.invoke_fp_mad_test ( 0 , 0 ) ; pRS.finish ( ) ; waitForMessage ( ) ; pRS.destroy ( ) ; }

Target:
public void run ( ) { com.android.rs.test_v16.RenderScript pRS = com.android.rs.test_v16.RenderScript.create ( mCtx ) ; com.android.rs.test_v16.ScriptC_fp_mad s = new com.android.rs.test_v16.ScriptC_fp_mad ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; s.invoke_fp_mad_test ( 0 , 0 ) ; pRS.finish ( ) ; waitForMessage ( ) ; pRS.destroy ( ) ; }
Source:
public byte [ ] generateCertificateSignature ( byte [ ] hash ) throws java.io.IOException { try { if ( org.bouncycastle.crypto.tls.TlsUtils.isTLSv12 ( context ) ) { return signer.generateRawSignature ( signatureAndHashAlgorithm , privateKey , hash ) ; } else { return signer.generateRawSignature ( privateKey , hash ) ; } } catch ( org.bouncycastle.crypto.CryptoException e ) { throw new org.bouncycastle.crypto.tls.TlsFatalAlert ( AlertDescription.internal_error ) ; } }

Target:
public byte [ ] generateCertificateSignature ( byte [ ] hash ) throws java.io.IOException { try { if ( org.bouncycastle.crypto.tls.TlsUtils.isTLSv12 ( context ) ) { return signer.generateRawSignature ( signatureAndHashAlgorithm , privateKey , hash ) ; } else { return signer.generateRawSignature ( privateKey , hash ) ; } } catch ( org.bouncycastle.crypto.CryptoException e ) { throw new org.bouncycastle.crypto.tls.TlsFatalAlert ( AlertDescription.internal_error , e ) ; } }
Source:
static void native_addCircle ( int nPath , float x , float y , float radius , int dir ) { android.graphics.Path_Delegate pathDelegate = android.graphics.Path_Delegate.sManager.getDelegate ( nPath ) ; if ( pathDelegate == null ) { return ; } pathDelegate.mPath.append ( new java.awt.geom.Ellipse2D.Float ( ( x - radius ) , ( y - radius ) , ( radius * 2 ) , ( radius * 2 ) ) , false ) ; }

Target:
static void native_addCircle ( long nPath , float x , float y , float radius , int dir ) { android.graphics.Path_Delegate pathDelegate = android.graphics.Path_Delegate.sManager.getDelegate ( nPath ) ; if ( pathDelegate == null ) { return ; } pathDelegate.mPath.append ( new java.awt.geom.Ellipse2D.Float ( ( x - radius ) , ( y - radius ) , ( radius * 2 ) , ( radius * 2 ) ) , false ) ; }
Source:
public static boolean isFilterBitSet ( byte [ ] filter , int filterBit ) { if ( com.android.bluetooth.pbap.BluetoothPbapUtils.hasFilter ( filter ) ) { int byteNumber = 7 - ( filterBit / 8 ) ; int bitNumber = filterBit % 8 ; if ( byteNumber < ( filter.length ) ) { return ( ( filter [ byteNumber ] ) & ( 1 << bitNumber ) ) > 0 ; } } return false ; }

Target:
private static boolean isFilterBitSet ( byte [ ] filter , int filterBit ) { if ( com.android.bluetooth.pbap.BluetoothPbapUtils.hasFilter ( filter ) ) { int byteNumber = 7 - ( filterBit / 8 ) ; int bitNumber = filterBit % 8 ; if ( byteNumber < ( filter.length ) ) { return ( ( filter [ byteNumber ] ) & ( 1 << bitNumber ) ) > 0 ; } } return false ; }
Source:
protected boolean removePackage ( java.lang.String packageName ) { try { java.lang.String result = device.uninstallPackage ( packageName ) ; if ( result != null ) { com.android.monkeyrunner.adb.AdbMonkeyDevice.LOG.log ( java.util.logging.Level.SEVERE , ( ( ( "Got error uninstalling package " + packageName ) + ": " ) + result ) ) ; return false ; } return true ; } catch ( com.android.ddmlib.InstallException e ) { com.android.monkeyrunner.adb.AdbMonkeyDevice.LOG.log ( java.util.logging.Level.SEVERE , ( "Error installing package: " + packageName ) , e ) ; return false ; } }

Target:
public boolean removePackage ( java.lang.String packageName ) { try { java.lang.String result = device.uninstallPackage ( packageName ) ; if ( result != null ) { com.android.monkeyrunner.adb.AdbMonkeyDevice.LOG.log ( java.util.logging.Level.SEVERE , ( ( ( "Got error uninstalling package " + packageName ) + ": " ) + result ) ) ; return false ; } return true ; } catch ( com.android.ddmlib.InstallException e ) { com.android.monkeyrunner.adb.AdbMonkeyDevice.LOG.log ( java.util.logging.Level.SEVERE , ( "Error installing package: " + packageName ) , e ) ; return false ; } }
Source:
public void testInflatingStreamsRequiringZipRefill ( ) throws java.io.IOException { int originalSize = 1024 * 1024 ; byte [ ] readBuffer = new byte [ 8192 ] ; java.util.zip.ZipInputStream in = new java.util.zip.ZipInputStream ( new java.io.FileInputStream ( createZipFile ( originalSize ) ) ) ; while ( ( in.getNextEntry ( ) ) != null ) { while ( ( in.read ( readBuffer , 0 , readBuffer.length ) ) != ( - 1 ) ) { } } in.close ( ) ; }

Target:
public void testInflatingStreamsRequiringZipRefill ( ) throws java.io.IOException { int originalSize = 1024 * 1024 ; byte [ ] readBuffer = new byte [ 8192 ] ; java.util.zip.ZipInputStream in = new java.util.zip.ZipInputStream ( new java.io.FileInputStream ( createZipFile ( 1 , originalSize ) ) ) ; while ( ( in.getNextEntry ( ) ) != null ) { while ( ( in.read ( readBuffer , 0 , readBuffer.length ) ) != ( - 1 ) ) { } } in.close ( ) ; }
Source:
public void test_accept_SOTIMEOUT ( ) throws java.io.IOException { final int SO_TIMEOUT = 10 ; java.nio.channels.ServerSocketChannel sc = java.nio.channels.ServerSocketChannel.open ( ) ; try { sc.bind ( null ) ; sc.configureBlocking ( false ) ; java.net.ServerSocket ss = sc.socket ( ) ; ss.setSoTimeout ( SO_TIMEOUT ) ; java.nio.channels.SocketChannel client = sc.accept ( ) ; assertNull ( client ) ; int soTimeout = ss.getSoTimeout ( ) ; assertEquals ( SO_TIMEOUT , soTimeout ) ; } finally { sc.close ( ) ; } }

Target:
public void test_accept_SOTIMEOUT ( ) throws java.io.IOException { final int SO_TIMEOUT = 10 ; java.nio.channels.ServerSocketChannel sc = java.nio.channels.ServerSocketChannel.open ( ) ; try { sc.socket ( ) . bind ( null ) ; sc.configureBlocking ( false ) ; java.net.ServerSocket ss = sc.socket ( ) ; ss.setSoTimeout ( SO_TIMEOUT ) ; java.nio.channels.SocketChannel client = sc.accept ( ) ; assertNull ( client ) ; int soTimeout = ss.getSoTimeout ( ) ; assertEquals ( SO_TIMEOUT , soTimeout ) ; } finally { sc.close ( ) ; } }
Source:
public void testConstructor5 ( ) { try { jsr166.DelayQueueTest.PDelay [ ] ints = new jsr166.DelayQueueTest.PDelay [ SIZE ] ; for ( int i = 0 ; i < ( ( SIZE ) - 1 ) ; ++ i ) ints [ i ] = new jsr166.DelayQueueTest.PDelay ( i ) ; java.util.concurrent.DelayQueue q = new java.util.concurrent.DelayQueue ( java.util.Arrays.asList ( ints ) ) ; shouldThrow ( ) ; } catch ( java.lang.NullPointerException success ) { } }

Target:
public void testConstructor5 ( ) { try { jsr166.DelayQueueTest.PDelay [ ] ints = new jsr166.DelayQueueTest.PDelay [ SIZE ] ; for ( int i = 0 ; i < ( ( SIZE ) - 1 ) ; ++ i ) ints [ i ] = new jsr166.DelayQueueTest.PDelay ( i ) ; new java.util.concurrent.DelayQueue ( java.util.Arrays.asList ( ints ) ) ; shouldThrow ( ) ; } catch ( java.lang.NullPointerException success ) { } }
Source:
public java.lang.String read ( ) { try { int numRead = mPipeFromInCall.read ( mReadBuffer , 0 , android.telecom.Connection.RttTextStream.READ_BUFFER_SIZE ) ; if ( numRead < 0 ) { return null ; } return new java.lang.String ( mReadBuffer , 0 , numRead ) ; } catch ( java.io.IOException e ) { android.telecom.Log.w ( this , "Exception encountered when reading from InputStreamReader: %s" , e ) ; return null ; } }

Target:
public java.lang.String read ( ) throws java.io.IOException { int numRead = mPipeFromInCall.read ( mReadBuffer , 0 , android.telecom.Connection.RttTextStream.READ_BUFFER_SIZE ) ; if ( numRead < 0 ) { return null ; } return new java.lang.String ( mReadBuffer , 0 , numRead ) ; }
Source:
static void division ( java.math.BigInt dividend , java.math.BigInt divisor , java.math.BigInt quotient , java.math.BigInt remainder ) { long quot ; long rem ; if ( quotient != null ) { quotient.makeValid ( ) ; quot = quotient.bignum ; } else { quot = 0 ; } if ( remainder != null ) { remainder.makeValid ( ) ; rem = remainder.bignum ; } else { rem = 0 ; } java.math.BigInt.Check ( java.math.NativeBN.BN_div ( quot , rem , dividend.bignum , divisor.bignum ) ) ; }

Target:
static void division ( java.math.BigInt dividend , java.math.BigInt divisor , java.math.BigInt quotient , java.math.BigInt remainder ) { long quot ; long rem ; if ( quotient != null ) { quotient.makeValid ( ) ; quot = quotient.bignum ; } else { quot = 0 ; } if ( remainder != null ) { remainder.makeValid ( ) ; rem = remainder.bignum ; } else { rem = 0 ; } java.math.NativeBN.BN_div ( quot , rem , dividend.bignum , divisor.bignum ) ; }
Source:
public boolean onPreferenceChange ( android.preference.Preference preference , java.lang.Object newValue ) { if ( preference == ( mAutoSelect ) ) { boolean autoSelect = ( ( java.lang.Boolean ) ( newValue ) ) ; logd ( ( "onPreferenceChange autoSelect: " + ( java.lang.String.valueOf ( autoSelect ) ) ) ) ; selectNetworkAutomatic ( autoSelect ) ; com.android.internal.logging.MetricsLogger.action ( getContext ( ) , MetricsEvent.ACTION_MOBILE_NETWORK_AUTO_SELECT_NETWORK_TOGGLE , autoSelect ) ; return true ; } return false ; }

Target:
public boolean onPreferenceChange ( android.preference.Preference preference , java.lang.Object newValue ) { if ( preference == ( mAutoSelect ) ) { boolean autoSelect = ( ( java.lang.Boolean ) ( newValue ) ) ; selectNetworkAutomatic ( autoSelect ) ; com.android.internal.logging.MetricsLogger.action ( getContext ( ) , MetricsEvent.ACTION_MOBILE_NETWORK_AUTO_SELECT_NETWORK_TOGGLE , autoSelect ) ; return true ; } return false ; }
Source:
static com.google.common.base.Optional < com.android.dialer.smartdial.map.SmartDialMap > getExtraMap ( android.content.Context context ) { if ( ! ( com.android.dialer.configprovider.ConfigProviderBindings.get ( context ) . getBoolean ( com.android.dialer.smartdial.map.CompositeSmartDialMap.FLAG_ENABLE_DUAL_ALPHABETS , false ) ) ) { return com.google.common.base.Optional.absent ( ) ; } java.lang.String languageCode = com.android.dialer.compat.CompatUtils.getLocale ( context ) . getISO3Language ( ) ; return com.android.dialer.smartdial.map.CompositeSmartDialMap.EXTRA_MAPS.containsKey ( languageCode ) ? com.google.common.base.Optional.of ( com.android.dialer.smartdial.map.CompositeSmartDialMap.EXTRA_MAPS.get ( languageCode ) ) : com.google.common.base.Optional.absent ( ) ; }

Target:
static com.google.common.base.Optional < com.android.dialer.smartdial.map.SmartDialMap > getExtraMap ( android.content.Context context ) { java.lang.String languageCode = com.android.dialer.compat.CompatUtils.getLocale ( context ) . getISO3Language ( ) ; return com.android.dialer.smartdial.map.CompositeSmartDialMap.EXTRA_MAPS.containsKey ( languageCode ) ? com.google.common.base.Optional.of ( com.android.dialer.smartdial.map.CompositeSmartDialMap.EXTRA_MAPS.get ( languageCode ) ) : com.google.common.base.Optional.absent ( ) ; }
Source:
public boolean visit ( org.eclipse.jdt.internal.compiler.ast.TypeDeclaration typeDeclaration , org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope scope ) { org.eclipse.jdt.internal.compiler.ast.Annotation [ ] annotations = typeDeclaration.annotations ; if ( hasRelevantAnnotations ( annotations ) ) { org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding binding = typeDeclaration.binding ; if ( binding == null ) { return true ; } java.lang.String fqn = new java.lang.String ( typeDeclaration.binding.readableName ( ) ) ; com.android.build.gradle.tasks.annotations.Extractor.Item item = com.android.build.gradle.tasks.annotations.Extractor.ClassItem.create ( fqn , com.android.build.gradle.tasks.annotations.Extractor.ClassKind.forType ( typeDeclaration ) ) ; addItem ( fqn , item ) ; addAnnotations ( annotations , item ) ; } return true ; }

Target:
public boolean visit ( org.eclipse.jdt.internal.compiler.ast.TypeDeclaration typeDeclaration , org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope scope ) { org.eclipse.jdt.internal.compiler.ast.Annotation [ ] annotations = typeDeclaration.annotations ; if ( hasRelevantAnnotations ( annotations ) ) { org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding binding = typeDeclaration.binding ; if ( binding == null ) { return true ; } java.lang.String fqn = new java.lang.String ( typeDeclaration.binding.readableName ( ) ) ; com.android.build.gradle.tasks.annotations.Extractor.Item item = com.android.build.gradle.tasks.annotations.Extractor.ClassItem.create ( fqn ) ; addItem ( fqn , item ) ; addAnnotations ( annotations , item ) ; } return true ; }
Source:
public java.lang.String getValue ( java.lang.String uri , java.lang.String localName ) { if ( uri == null ) { throw new java.lang.NullPointerException ( "uri == null" ) ; } if ( localName == null ) { throw new java.lang.NullPointerException ( "localName == null" ) ; } int pointer = getPointer ( ) ; if ( pointer == 0 ) { return null ; } return org.apache.harmony.xml.ExpatAttributes.getValue ( pointer , uri , localName ) ; }

Target:
public java.lang.String getValue ( java.lang.String uri , java.lang.String localName ) { if ( uri == null ) { throw new java.lang.NullPointerException ( "uri == null" ) ; } if ( localName == null ) { throw new java.lang.NullPointerException ( "localName == null" ) ; } long pointer = getPointer ( ) ; if ( pointer == 0 ) { return null ; } return org.apache.harmony.xml.ExpatAttributes.getValue ( pointer , uri , localName ) ; }
Source:
public java.lang.Iterable < com.android.tools.lint.ResolvedAnnotation > getAnnotations ( ) { org.eclipse.jdt.internal.compiler.lookup.AnnotationBinding [ ] annotations = mBinding.getAnnotations ( ) ; int count = annotations.length ; if ( count > 0 ) { java.util.List < com.android.tools.lint.ResolvedAnnotation > result = com.google.common.collect.Lists.newArrayListWithExpectedSize ( count ) ; for ( org.eclipse.jdt.internal.compiler.lookup.AnnotationBinding annotation : annotations ) { result.add ( new com.android.tools.lint.EcjParser.EcjResolvedAnnotation ( annotation ) ) ; } return result ; } return java.util.Collections.emptyList ( ) ; }

Target:
public java.lang.Iterable < com.android.tools.lint.ResolvedAnnotation > getAnnotations ( ) { org.eclipse.jdt.internal.compiler.lookup.AnnotationBinding [ ] annotations = mBinding.getAnnotations ( ) ; int count = annotations.length ; if ( count > 0 ) { java.util.List < com.android.tools.lint.ResolvedAnnotation > result = com.google.common.collect.Lists.newArrayListWithExpectedSize ( count ) ; for ( org.eclipse.jdt.internal.compiler.lookup.AnnotationBinding annotation : annotations ) { if ( annotation != null ) { result.add ( new com.android.tools.lint.EcjParser.EcjResolvedAnnotation ( annotation ) ) ; } } return result ; } return java.util.Collections.emptyList ( ) ; }
Source:
private void checkGraphic ( java.lang.String baseName , com.android.assetstudiolib.GraphicGenerator.Shape shape , int minSdk , java.lang.String folderName , int expectedCount ) throws java.io.IOException { com.android.assetstudiolib.NotificationIconGenerator.NotificationOptions options = new com.android.assetstudiolib.NotificationIconGenerator.NotificationOptions ( ) ; options.shape = shape ; options.minSdk = minSdk ; com.android.assetstudiolib.NotificationIconGenerator generator = new com.android.assetstudiolib.NotificationIconGenerator ( ) ; checkGraphic ( expectedCount , folderName , baseName , generator , options ) ; }

Target:
private void checkGraphic ( java.lang.String baseName , int minSdk , java.lang.String folderName , int expectedCount ) throws java.io.IOException { com.android.assetstudiolib.NotificationIconGenerator.NotificationOptions options = new com.android.assetstudiolib.NotificationIconGenerator.NotificationOptions ( ) ; options.minSdk = minSdk ; com.android.assetstudiolib.NotificationIconGenerator generator = new com.android.assetstudiolib.NotificationIconGenerator ( ) ; checkGraphic ( expectedCount , folderName , baseName , generator , options ) ; }
Source:
public vogar.target.TargetRunner newRunner ( vogar.monitor.TargetMonitor monitor , java.lang.String qualification , java.lang.Class < ? > klass , java.util.concurrent.atomic.AtomicReference < java.lang.String > skipPastReference , vogar.target.TestEnvironment testEnvironment , int timeoutSeconds , boolean profile , java.lang.String [ ] args ) { for ( vogar.target.RunnerFactory runnerFactory : runnerFactories ) { vogar.target.TargetRunner targetRunner = runnerFactory.newRunner ( monitor , qualification , klass , skipPastReference , testEnvironment , timeoutSeconds , profile , args ) ; if ( targetRunner != null ) { return targetRunner ; } } return null ; }

Target:
public vogar.target.TargetRunner newRunner ( vogar.monitor.TargetMonitor monitor , java.lang.String qualification , java.lang.Class < ? > klass , java.util.concurrent.atomic.AtomicReference < java.lang.String > skipPastReference , vogar.target.TestEnvironment testEnvironment , int timeoutSeconds , java.lang.String [ ] args ) { for ( vogar.target.RunnerFactory runnerFactory : runnerFactories ) { vogar.target.TargetRunner targetRunner = runnerFactory.newRunner ( monitor , qualification , klass , skipPastReference , testEnvironment , timeoutSeconds , args ) ; if ( targetRunner != null ) { return targetRunner ; } } return null ; }
Source:
static void setDouble ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , double value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { if ( v == null ) { m.invokeExact ( value ) ; } else { m.invokeExact ( v , value ) ; } } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertActualAndExpectedMatch ( exceptionThrown , expectFailure ) ; }

Target:
static void setDouble ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , double value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { if ( v == null ) { m.invokeExact ( value ) ; } else { m.invokeExact ( v , value ) ; } } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertEquals ( exceptionThrown , expectFailure ) ; }