auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testRunWithPackage ( ) throws com.android.ddmlib.AdbCommandRejectedException , com.android.ddmlib.ShellCommandUnresponsiveException , com.android.ddmlib.TimeoutException , java.io.IOException { final java.lang.String packageName = "foo.test" ; mRunner.setTestPackageName ( packageName ) ; mRunner.run ( new com.android.ddmlib.testrunner.RemoteAndroidTestRunnerTest.EmptyListener ( ) ) ; assertStringsEquals ( java.lang.String.format ( "am instrument -w -r -e package %s %s/%s" , packageName , com.android.ddmlib.testrunner.RemoteAndroidTestRunnerTest.TEST_PACKAGE , com.android.ddmlib.testrunner.RemoteAndroidTestRunnerTest.TEST_RUNNER ) , mMockDevice.getLastShellCommand ( ) ) ; }

Target:
private void runAndVerify ( java.lang.String expectedCmd ) throws java.lang.Exception { mMockDevice.executeShellCommand ( expectedCmd , ( ( com.android.ddmlib.IShellOutputReceiver ) ( org.easymock.EasyMock.anyObject ( ) ) ) , org.easymock.EasyMock.eq ( 0 ) ) ; org.easymock.EasyMock.replay ( mMockDevice ) ; mRunner.run ( mMockListener ) ; org.easymock.EasyMock.verify ( mMockDevice ) ; }
Source:
public static com.android.dialer.voicemail.model.VoicemailEntry.Builder builder ( ) { return new com.android.dialer.voicemail.model.AutoValue_VoicemailEntry.Builder ( ) . setId ( 0 ) . setTimestamp ( 0 ) . setNumber ( com.android.dialer.DialerPhoneNumber.getDefaultInstance ( ) ) . setPhotoId ( 0 ) . setDuration ( 0 ) . setCallType ( 0 ) ; }

Target:
public static com.android.dialer.voicemail.model.VoicemailEntry.Builder builder ( ) { return new com.android.dialer.voicemail.model.AutoValue_VoicemailEntry.Builder ( ) . setId ( 0 ) . setTimestamp ( 0 ) . setNumber ( com.android.dialer.DialerPhoneNumber.getDefaultInstance ( ) ) . setPhotoId ( 0 ) . setDuration ( 0 ) . setCallType ( 0 ) . setIsRead ( 0 ) ; }
Source:
public void destroy ( ) { android.net.wifi.nan.WifiNanManager mgr = mMgr.get ( ) ; if ( mgr == null ) { android.util.Log.w ( android.net.wifi.nan.WifiNanDiscoveryBaseSession.TAG , "destroy: called post GC on WifiNanManager" ) ; return ; } mgr.terminateSession ( mClientId , mSessionId ) ; mTerminated = true ; mMgr.clear ( ) ; mCloseGuard.close ( ) ; }

Target:
public void destroy ( ) { android.net.wifi.aware.WifiAwareManager mgr = mMgr.get ( ) ; if ( mgr == null ) { android.util.Log.w ( android.net.wifi.aware.WifiAwareDiscoveryBaseSession.TAG , "destroy: called post GC on WifiAwareManager" ) ; return ; } mgr.terminateSession ( mClientId , mSessionId ) ; mTerminated = true ; mMgr.clear ( ) ; mCloseGuard.close ( ) ; }
Source:
private void showDialog ( java.lang.String title , java.lang.String message ) { final android.app.AlertDialog dialog = new android.app.AlertDialog.Builder ( mContext ) . setTitle ( title ) . setMessage ( message ) . setNeutralButton ( R.string.ok , null ) . create ( ) ; if ( ! ( ( mContext ) instanceof android.app.Activity ) ) { dialog.getWindow ( ) . setType ( WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG ) ; } dialog.show ( ) ; }

Target:
private void showDialog ( java.lang.String title , java.lang.String message ) { final android.app.AlertDialog dialog = new android.app.AlertDialog.Builder ( mContext ) . setTitle ( title ) . setMessage ( message ) . setCancelable ( false ) . setNeutralButton ( R.string.ok , null ) . create ( ) ; if ( ! ( ( mContext ) instanceof android.app.Activity ) ) { dialog.getWindow ( ) . setType ( WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG ) ; } dialog.show ( ) ; }
Source:
public static java.io.InputStream getXsdStream ( int version ) { java.lang.String filename = java.lang.String.format ( "sdk-repository-%d.xsd" , version ) ; java.io.InputStream stream = com.android.sdklib.repository.SdkRepoConstants.class . getResourceAsStream ( filename ) ; if ( stream == null ) { filename = java.lang.String.format ( "-sdk-repository-%d.xsd" , version ) ; stream = com.android.sdklib.repository.SdkRepoConstants.class . getResourceAsStream ( filename ) ; } return stream ; }

Target:
public static java.io.InputStream getXsdStream ( int version ) { return com.android.sdklib.repository.SdkRepoConstants.getXsdStream ( com.android.sdklib.repository.SdkRepoConstants.NODE_SDK_REPOSITORY , version ) ; }
Source:
private java.io.File getSettingsFile ( ) { return new java.io.File ( getWorkspaceLocation ( ) , ( ( ( ( ( ( ( ( ".metadata" + ( java.io.File.separator ) ) + ".plugins" ) + ( java.io.File.separator ) ) + "org.eclipse.core.runtime" ) + ( java.io.File.separator ) ) + ".settings" ) + ( java.io.File.separator ) ) + "org.eclipse.jdt.core.prefs" ) ) ; }

Target:
private java.io.File getJdtSettingsFile ( ) { return new java.io.File ( getWorkspaceLocation ( ) , ( ( ( ( ( ( ( ( ".metadata" + ( java.io.File.separator ) ) + ".plugins" ) + ( java.io.File.separator ) ) + "org.eclipse.core.runtime" ) + ( java.io.File.separator ) ) + ".settings" ) + ( java.io.File.separator ) ) + "org.eclipse.jdt.core.prefs" ) ) ; }
Source:
private android.content.Intent waitForIntent ( int timeoutMs , java.util.concurrent.BlockingQueue < android.content.Intent > queue ) { try { android.content.Intent intent = queue.poll ( timeoutMs , java.util.concurrent.TimeUnit.MILLISECONDS ) ; org.junit.Assert.assertNotNull ( intent ) ; return intent ; } catch ( java.lang.InterruptedException e ) { org.junit.Assert.fail ( "Cannot obtain an Intent from the queue" ) ; } return null ; }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { if ( ! ( BluetoothA2dp.ACTION_CONNECTION_STATE_CHANGED.equals ( intent.getAction ( ) ) ) ) { return ; } try { mConnectionStateChangedQueue.put ( intent ) ; } catch ( java.lang.InterruptedException e ) { org.junit.Assert.fail ( ( "Cannot add Intent to the queue: " + ( e.getMessage ( ) ) ) ) ; } }
Source:
protected final void unserialize ( java.nio.ByteBuffer bytes ) { super . unserialize ( bytes ) ; m_data_ = new int [ m_dataLength_ ] ; for ( int i = 0 ; i < ( m_dataLength_ ) ; i ++ ) { m_data_ [ i ] = bytes.getInt ( ) ; } m_initialValue_ = m_data_ [ 0 ] ; }

Target:
protected final void unserialize ( java.nio.ByteBuffer bytes ) { super . unserialize ( bytes ) ; m_data_ = com.ibm.icu.impl.ICUBinary.getInts ( bytes , m_dataLength_ , 0 ) ; m_initialValue_ = m_data_ [ 0 ] ; }
Source:
public void restoreBackupData ( byte [ ] data ) { enforceChangePermission ( ) ; if ( ( mWifiStateMachineChannel ) == null ) { android.util.Slog.e ( com.android.server.wifi.WifiServiceImpl.TAG , "mWifiStateMachineChannel is not initialized" ) ; return ; } android.util.Slog.d ( com.android.server.wifi.WifiServiceImpl.TAG , "Restoring backup data" ) ; java.util.List < android.net.wifi.WifiConfiguration > wifiConfigurations = mWifiBackupRestore.retrieveConfigurationsFromBackupData ( data ) ; restoreNetworks ( wifiConfigurations ) ; android.util.Slog.d ( com.android.server.wifi.WifiServiceImpl.TAG , "Restored backup data" ) ; }

Target:
public void restoreBackupData ( byte [ ] data ) { enforceChangePermission ( ) ; mLog.trace ( "restoreBackupData uid=%" ) . c ( android.os.Binder.getCallingUid ( ) ) . flush ( ) ; if ( ( mWifiStateMachineChannel ) == null ) { android.util.Slog.e ( com.android.server.wifi.WifiServiceImpl.TAG , "mWifiStateMachineChannel is not initialized" ) ; return ; } android.util.Slog.d ( com.android.server.wifi.WifiServiceImpl.TAG , "Restoring backup data" ) ; java.util.List < android.net.wifi.WifiConfiguration > wifiConfigurations = mWifiBackupRestore.retrieveConfigurationsFromBackupData ( data ) ; restoreNetworks ( wifiConfigurations ) ; android.util.Slog.d ( com.android.server.wifi.WifiServiceImpl.TAG , "Restored backup data" ) ; }
Source:
private void displayNetworkSelectionFailed ( java.lang.Throwable ex ) { java.lang.String status ; if ( ( ( ex != null ) && ( ex instanceof com.android.internal.telephony.CommandException ) ) && ( ( ( ( com.android.internal.telephony.CommandException ) ( ex ) ) . getCommandError ( ) ) == ( CommandException.Error.ILLEGAL_SIM_OR_ME ) ) ) { status = getResources ( ) . getString ( R.string.not_allowed ) ; } else { status = getResources ( ) . getString ( R.string.connect_later ) ; } final com.android.phone.PhoneApp app = com.android.phone.PhoneApp.getInstance ( ) ; app.notificationMgr.postTransientNotification ( NotificationMgr.NETWORK_SELECTION_NOTIFICATION , status ) ; }

Target:
private void displayNetworkSelectionFailed ( java.lang.Throwable ex ) { java.lang.String status ; if ( ( ( ex != null ) && ( ex instanceof com.android.internal.telephony.CommandException ) ) && ( ( ( ( com.android.internal.telephony.CommandException ) ( ex ) ) . getCommandError ( ) ) == ( CommandException.Error.ILLEGAL_SIM_OR_ME ) ) ) { status = getResources ( ) . getString ( R.string.not_allowed ) ; } else { status = getResources ( ) . getString ( R.string.connect_later ) ; } final com.android.phone.PhoneGlobals app = com.android.phone.PhoneGlobals.getInstance ( ) ; app.notificationMgr.postTransientNotification ( NotificationMgr.NETWORK_SELECTION_NOTIFICATION , status ) ; }
Source:
public org.objectweb.asm.MethodVisitor visitMethod ( final int access , final java.lang.String name , final java.lang.String desc , final java.lang.String signature , final java.lang.String [ ] exceptions ) { return new org.objectweb.asm.MethodVisitor ( org.objectweb.asm.Opcodes.ASM4 , super . visitMethod ( access , name , desc , signature , exceptions ) ) { @ java.lang.Override public void visitMaxs ( final int maxStack , final int maxLocals ) { super . visitMaxs ( 0 , 0 ) ; } } ; }

Target:
public org.objectweb.asm.MethodVisitor visitMethod ( final int access , final java.lang.String name , final java.lang.String desc , final java.lang.String signature , final java.lang.String [ ] exceptions ) { return new org.objectweb.asm.MethodVisitor ( org.objectweb.asm.Opcodes.ASM5 , super . visitMethod ( access , name , desc , signature , exceptions ) ) { @ java.lang.Override public void visitMaxs ( final int maxStack , final int maxLocals ) { super . visitMaxs ( 0 , 0 ) ; } } ; }
Source:
public void write ( java.io.OutputStream out ) throws java.io.IOException { @ java.lang.SuppressWarnings ( value = "IOResourceOpenedButNotSafelyClosed" ) java.io.DataOutputStream dataOut = new java.io.DataOutputStream ( out ) ; try { dataOut.writeUTF ( myOldBuild ) ; dataOut.writeUTF ( myNewBuild ) ; dataOut.writeBoolean ( myIsBinary ) ; dataOut.writeBoolean ( myIsStrict ) ; com.intellij.updater.Patch.writeList ( dataOut , myDeleteFiles ) ; writeActions ( dataOut , myActions ) ; } finally { dataOut.flush ( ) ; } }

Target:
public void write ( java.io.OutputStream out ) throws java.io.IOException { @ java.lang.SuppressWarnings ( value = "IOResourceOpenedButNotSafelyClosed" ) java.io.DataOutputStream dataOut = new java.io.DataOutputStream ( out ) ; try { dataOut.writeUTF ( myOldBuild ) ; dataOut.writeUTF ( myNewBuild ) ; dataOut.writeBoolean ( myIsBinary ) ; dataOut.writeBoolean ( myIsStrict ) ; dataOut.writeBoolean ( myIsNormalized ) ; com.intellij.updater.Patch.writeList ( dataOut , myDeleteFiles ) ; writeActions ( dataOut , myActions ) ; } finally { dataOut.flush ( ) ; } }
Source:
private java.lang.StringBuffer prepareDimensionRequest ( com.google.gct.testing.GoogleCloudTestingDimension dimension ) { java.lang.StringBuffer bf = new java.lang.StringBuffer ( ) ; boolean firstType = true ; for ( com.google.gct.testing.CloudTestingType type : dimension.getEnabledTypes ( ) ) { if ( ! firstType ) { bf.append ( " || " ) ; } firstType = false ; bf.append ( ( ( ( ( dimension.getId ( ) ) + "=='" ) + ( type.getId ( ) ) ) + "'" ) ) ; } return bf ; }

Target:
private java.lang.StringBuffer prepareDimensionRequest ( com.google.gct.testing.CloudConfigurationDimension dimension ) { java.lang.StringBuffer bf = new java.lang.StringBuffer ( ) ; boolean firstType = true ; for ( com.google.gct.testing.CloudTestingType type : dimension.getEnabledTypes ( ) ) { if ( ! firstType ) { bf.append ( " || " ) ; } firstType = false ; bf.append ( ( ( ( ( dimension.getId ( ) ) + "=='" ) + ( type.getId ( ) ) ) + "'" ) ) ; } return bf ; }
Source:
public com.android.dx.cf.code.LocalVariableList.Item pcAndIndexToLocal ( int pc , int index ) { int sz = size ( ) ; for ( int i = 0 ; i < sz ; i ++ ) { com.android.dx.cf.code.LocalVariableList.Item one = ( ( com.android.dx.cf.code.LocalVariableList.Item ) ( get0 ( i ) ) ) ; if ( ( one != null ) && ( one.matchesPcAndIndex ( pc , index ) ) ) { return one ; } } return null ; }

Target:
public com.android.dx.cf.code.LocalVariableList.Item pcAndIndexToLocal ( int pc , int index ) { if ( ! ( isSorted ( ) ) ) { throw new java.lang.AssertionError ( "local variable list should be sorted" ) ; } int sz = size ( ) ; for ( int i = 0 ; i < sz ; i ++ ) { com.android.dx.cf.code.LocalVariableList.Item one = ( ( com.android.dx.cf.code.LocalVariableList.Item ) ( get0 ( i ) ) ) ; if ( ( one != null ) && ( one.matchesPcAndIndex ( pc , index ) ) ) { return one ; } } return null ; }
Source:
private java.io.File createDex ( vogar.Action action , java.io.File actionJar ) { java.io.File dex = run.localFile ( action , "classes.dex" ) ; vogar.Classpath classesToDex = vogar.Classpath.of ( actionJar ) ; classesToDex.addAll ( run.classpath ) ; if ( run.useJack ) { throw new java.lang.UnsupportedOperationException ( "Jack support for --mode=activity not yet implemented" ) ; } run.androidSdk.dex ( run.multidex , dex , classesToDex ) ; return dex ; }

Target:
private java.io.File createDex ( vogar.Action action , java.io.File actionJar ) { java.io.File dex = run.localFile ( action , "classes.dex" ) ; vogar.Classpath classesToDex = vogar.Classpath.of ( actionJar ) ; classesToDex.addAll ( run.classpath ) ; if ( run.useJack ) { throw new java.lang.UnsupportedOperationException ( "Jack support for --mode=activity not yet implemented" ) ; } java.io.File localTempDir = run.localDir ( action.getName ( ) ) ; vogar.Classpath dependentCp = new vogar.Classpath ( ) ; run.androidSdk.dex ( run.multidex , dex , localTempDir , classesToDex , dependentCp ) ; return dex ; }
Source:
public final int doFinal ( byte [ ] input , int inputOffset , int inputLen , byte [ ] output , int outputOffset ) throws javax.crypto.BadPaddingException , javax.crypto.IllegalBlockSizeException , javax.crypto.ShortBufferException { if ( ( ( mode ) != ( javax.crypto.Cipher.ENCRYPT_MODE ) ) && ( ( mode ) != ( javax.crypto.Cipher.DECRYPT_MODE ) ) ) { throw new java.lang.IllegalStateException ( ) ; } javax.crypto.Cipher.checkInputOffsetAndCount ( input.length , inputOffset , inputLen ) ; return spiImpl.engineDoFinal ( input , inputOffset , inputLen , output , outputOffset ) ; }

Target:
public final int doFinal ( java.nio.ByteBuffer input , java.nio.ByteBuffer output ) throws javax.crypto.BadPaddingException , javax.crypto.IllegalBlockSizeException , javax.crypto.ShortBufferException { if ( ( ( mode ) != ( javax.crypto.Cipher.ENCRYPT_MODE ) ) && ( ( mode ) != ( javax.crypto.Cipher.DECRYPT_MODE ) ) ) { throw new java.lang.IllegalStateException ( ) ; } if ( input == output ) { throw new java.lang.IllegalArgumentException ( "input == output" ) ; } return getSpi ( ) . engineDoFinal ( input , output ) ; }
Source:
public void testRoamingDataIcon ( ) { setupDefaultSignal ( ) ; setGsmRoaming ( true ) ; verifyLastMobileDataIndicators ( true , TelephonyIcons.TELEPHONY_SIGNAL_STRENGTH_ROAMING [ 1 ] [ DEFAULT_LEVEL ] , TelephonyIcons.ROAMING_ICON ) ; verifyLastQsMobileDataIndicators ( true , TelephonyIcons.QS_TELEPHONY_SIGNAL_STRENGTH [ 1 ] [ DEFAULT_LEVEL ] , TelephonyIcons.QS_DATA_R , false , false ) ; }

Target:
public void testAlwaysShowDataRatIcon ( ) { setupDefaultSignal ( ) ; org.mockito.Mockito.when ( mMockTm.getDataEnabled ( mSubId ) ) . thenReturn ( false ) ; updateDataConnectionState ( TelephonyManager.DATA_DISCONNECTED , TelephonyManager.NETWORK_TYPE_GSM ) ; mConfig.alwaysShowDataRatIcon = true ; mNetworkController.handleConfigurationChanged ( ) ; verifyDataIndicators ( TelephonyIcons.DATA_G [ 1 ] [ 0 ] , TelephonyIcons.QS_DATA_G ) ; }
Source:
void enableVerboseLogging ( int verbose ) { if ( verbose > 0 ) { com.android.server.wifi.WifiNative.DBG = true ; } else { com.android.server.wifi.WifiNative.DBG = false ; } if ( ( mWificondControl ) != null ) { mWificondControl.enableVerboseLogging ( ( verbose > 0 ? true : false ) ) ; } if ( ( mSupplicantStaIfaceHal ) != null ) { mSupplicantStaIfaceHal.enableVerboseLogging ( ( verbose > 0 ) ) ; } if ( ( mWifiVendorHal ) != null ) { mWifiVendorHal.enableVerboseLogging ( ( verbose > 0 ) ) ; } }

Target:
public boolean startFilteringMulticastV4Packets ( ) { return ( ( mSupplicantStaIfaceHal.stopRxFilter ( ) ) && ( mSupplicantStaIfaceHal.removeRxFilter ( SupplicantStaIfaceHal.RX_FILTER_TYPE_V4_MULTICAST ) ) ) && ( mSupplicantStaIfaceHal.startRxFilter ( ) ) ; }
Source:
public java.lang.String isValid ( java.lang.String newText ) { java.lang.Object result = this . callClosure ( filter , newText ) ; if ( result instanceof java.lang.String ) { return ( ( java.lang.String ) ( result ) ) ; } else if ( java.lang.Boolean.FALSE.equals ( result ) ) { return "" ; } return null ; }

Target:
public java.lang.String isValid ( java.lang.String newText ) { try { return filter.validate ( newText ) ; } catch ( java.lang.Exception e ) { logError ( "Custom validator failed: %s" , e.toString ( ) ) ; return "" ; } }
Source:
public void visitAttribute ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.XmlContext context , @ com.android.annotations.NonNull org.w3c.dom.Attr attribute ) { org.w3c.dom.Element element = attribute.getOwnerElement ( ) ; if ( element.hasAttributeNS ( com.android.SdkConstants.ANDROID_URI , com.android.SdkConstants.ATTR_HINT ) ) { context.report ( com.android.tools.lint.checks.AccessibilityDetector.ISSUE , element , context.getLocation ( attribute ) , ( "Do not set both contentDescription and hint: the contentDescription " + "will mask the hint" ) , null ) ; } }

Target:
public void visitAttribute ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.XmlContext context , @ com.android.annotations.NonNull org.w3c.dom.Attr attribute ) { org.w3c.dom.Element element = attribute.getOwnerElement ( ) ; if ( element.hasAttributeNS ( com.android.SdkConstants.ANDROID_URI , com.android.SdkConstants.ATTR_HINT ) ) { context.report ( com.android.tools.lint.checks.AccessibilityDetector.ISSUE , element , context.getLocation ( attribute ) , ( "Do not set both `contentDescription` and `hint`: the `contentDescription` " + "will mask the `hint`" ) , null ) ; } }
Source:
private boolean isPermissionEnforcedDefault ( java.lang.String permission ) { if ( android.Manifest.permission.READ_EXTERNAL_STORAGE.equals ( permission ) ) { return ( android.provider.Settings.Global.getInt ( mContext.getContentResolver ( ) , android.provider.Settings.Global.READ_EXTERNAL_STORAGE_ENFORCED_DEFAULT , 0 ) ) != 0 ; } else { return true ; } }

Target:
private boolean isPackageDeviceAdmin ( java.lang.String packageName , int userId ) { android.app.admin.IDevicePolicyManager dpm = IDevicePolicyManager.Stub.asInterface ( android.os.ServiceManager.getService ( Context.DEVICE_POLICY_SERVICE ) ) ; try { if ( ( dpm != null ) && ( ( dpm.packageHasActiveAdmins ( packageName , userId ) ) || ( dpm.isDeviceOwner ( packageName ) ) ) ) { return true ; } } catch ( android.os.RemoteException e ) { } return false ; }
Source:
private boolean shouldShowTos ( ) { if ( hasAcceptedTos ( ) ) { com.android.dialer.common.LogUtil.i ( "VoicemailTosMessageCreator.shouldShowTos" , "already accepted TOS" ) ; return false ; } if ( isVvm3 ( ) ) { com.android.dialer.common.LogUtil.i ( "VoicemailTosMessageCreator.shouldShowTos" , "showing TOS for verizon" ) ; return true ; } if ( ( isVoicemailTranscriptionEnabled ( ) ) && ( ! ( isLegacyVoicemailUser ( ) ) ) ) { com.android.dialer.common.LogUtil.i ( "VoicemailTosMessageCreator.shouldShowTos" , "showing TOS for Google transcription users" ) ; return true ; } return false ; }

Target:
private boolean shouldShowTos ( ) { if ( hasAcceptedTos ( ) ) { com.android.dialer.common.LogUtil.i ( "VoicemailTosMessageCreator.shouldShowTos" , "already accepted TOS" ) ; return false ; } if ( isVvm3 ( ) ) { com.android.dialer.common.LogUtil.i ( "VoicemailTosMessageCreator.shouldShowTos" , "showing TOS for verizon" ) ; return true ; } if ( ( isVoicemailTranscriptionAvailable ( ) ) && ( ! ( isLegacyVoicemailUser ( ) ) ) ) { com.android.dialer.common.LogUtil.i ( "VoicemailTosMessageCreator.shouldShowTos" , "showing TOS for Google transcription users" ) ; return true ; } return false ; }
Source:
public boolean remove ( @ javax.annotation.Nullable java.lang.Object o ) { if ( o instanceof com.google.common.collect.Multiset.Entry ) { com.google.common.collect.Multiset.Entry < ? > entry = ( ( com.google.common.collect.Multiset.Entry < ? > ) ( o ) ) ; java.util.Collection < V > collection = multimap ( ) . asMap ( ) . get ( entry.getElement ( ) ) ; if ( ( collection != null ) && ( ( collection.size ( ) ) == ( entry.getCount ( ) ) ) ) { collection.clear ( ) ; return true ; } } return false ; }

Target:
public boolean remove ( @ javax.annotation.Nullable java.lang.Object o ) { if ( o instanceof com.google.common.collect.Multiset.Entry ) { com.google.common.collect.Multiset.Entry < ? > entry = ( ( com.google.common.collect.Multiset.Entry < ? > ) ( o ) ) ; java.util.Collection < V > collection = multimap.asMap ( ) . get ( entry.getElement ( ) ) ; if ( ( collection != null ) && ( ( collection.size ( ) ) == ( entry.getCount ( ) ) ) ) { collection.clear ( ) ; return true ; } } return false ; }
Source:
public void test_parse_dayOfYearPatterns ( ) throws java.lang.Exception { java.util.GregorianCalendar cal = new java.util.GregorianCalendar ( 1970 , java.util.Calendar.JANUARY , 1 ) ; cal.setTimeZone ( java.util.TimeZone.getTimeZone ( "GMT+0:1" ) ) ; cal.set ( java.util.Calendar.DAY_OF_YEAR , 243 ) ; assertParse ( "D z" , "243 GMT+0:0" , cal.getTime ( ) , 0 , 11 ) ; }

Target:
public void test_parse_dayOfYearPatterns ( ) throws java.lang.Exception { java.util.GregorianCalendar cal = new java.util.GregorianCalendar ( 1970 , java.util.Calendar.JANUARY , 1 ) ; cal.setTimeZone ( java.util.TimeZone.getTimeZone ( "GMT+0:1" ) ) ; cal.set ( java.util.Calendar.DAY_OF_YEAR , 243 ) ; assertParse ( "D z" , "243 GMT+00:00" , cal.getTime ( ) , 0 , 13 ) ; }
Source:
public void mouseDragged ( java.awt.event.MouseEvent event ) { if ( ! ( checkLockedRegion ( event.getX ( ) , event.getY ( ) ) ) ) { paint ( event.getX ( ) , event.getY ( ) , currentButton ) ; } }

Target:
public void mousePressed ( java.awt.event.MouseEvent event ) { currentButton = ( event.isShiftDown ( ) ) ? java.awt.event.MouseEvent.BUTTON3 : event.getButton ( ) ; currentButton = ( event.isControlDown ( ) ) ? java.awt.event.MouseEvent.BUTTON2 : currentButton ; startDrawingLine ( event.getX ( ) , event.getY ( ) , currentButton ) ; }
Source:
public void enter ( ) { try { startObexServerSession ( ) ; } catch ( java.io.IOException ex ) { android.util.Log.e ( com.android.bluetooth.pbap.PbapStateMachine.TAG , ( "Caught exception starting OBEX server session" + ( ex.toString ( ) ) ) ) ; } broadcastStateTransitions ( ) ; }

Target:
public void enter ( ) { try { startObexServerSession ( ) ; } catch ( java.io.IOException ex ) { android.util.Log.e ( com.android.bluetooth.pbap.PbapStateMachine.TAG , ( "Caught exception starting OBEX server session" + ( ex.toString ( ) ) ) ) ; } broadcastStateTransitions ( ) ; com.android.bluetooth.btservice.MetricsLogger.logProfileConnectionEvent ( BluetoothMetricsProto.ProfileId.PBAP ) ; }
Source:
public void accept ( final org.objectweb.asm.MethodVisitor mv ) { org.objectweb.asm.Label [ ] labels = new org.objectweb.asm.Label [ this . labels.size ( ) ] ; for ( int i = 0 ; i < ( labels.length ) ; ++ i ) { labels [ i ] = this . labels.get ( i ) . getLabel ( ) ; } mv.visitTableSwitchInsn ( min , max , dflt.getLabel ( ) , labels ) ; }

Target:
public void accept ( final org.objectweb.asm.MethodVisitor mv ) { org.objectweb.asm.Label [ ] labels = new org.objectweb.asm.Label [ this . labels.size ( ) ] ; for ( int i = 0 ; i < ( labels.length ) ; ++ i ) { labels [ i ] = this . labels.get ( i ) . getLabel ( ) ; } mv.visitTableSwitchInsn ( min , max , dflt.getLabel ( ) , labels ) ; acceptAnnotations ( mv ) ; }
Source:
public static byte [ ] getBytes ( java.lang.String bundleFormatVersion , java.lang.String rulesVersion , java.lang.String androidRevision ) { return ( ( ( ( bundleFormatVersion + "|" ) + rulesVersion ) + "|" ) + androidRevision ) . getBytes ( java.nio.charset.StandardCharsets.US_ASCII ) ; }

Target:
public static byte [ ] toBytes ( int majorFormatVersion , int minorFormatVerison , java.lang.String rulesVersion , int revision ) { return ( ( ( ( ( libcore.tzdata.update2.BundleVersion.toFormatVersionString ( majorFormatVersion , minorFormatVerison ) ) + "|" ) + rulesVersion ) + "|" ) + ( libcore.tzdata.update2.BundleVersion.to3DigitVersionString ( revision ) ) ) . getBytes ( java.nio.charset.StandardCharsets.US_ASCII ) ; }
Source:
public static com.android.sdklib.repository.descriptors.IPkgDesc newPlatform ( @ com.android.annotations.NonNull final com.android.sdklib.AndroidVersion version , @ com.android.annotations.NonNull final com.android.sdklib.repository.MajorRevision revision , @ com.android.annotations.NonNull final com.android.sdklib.repository.FullRevision minToolsRev ) { return new com.android.sdklib.repository.descriptors.PkgDesc ( ) { @ java.lang.Override public com.android.sdklib.repository.descriptors.PkgType getType ( ) { return PkgType.PKG_PLATFORMS ; } @ java.lang.Override public com.android.sdklib.repository.MajorRevision getMajorRevision ( ) { return revision ; } @ java.lang.Override public com.android.sdklib.AndroidVersion getAndroidVersion ( ) { return version ; } @ java.lang.Override public com.android.sdklib.repository.FullRevision getMinToolsRev ( ) { return minToolsRev ; } @ java.lang.Override public java.lang.String getPath ( ) { return com.android.sdklib.AndroidTargetHash.getPlatformHashString ( getAndroidVersion ( ) ) ; } } ; }

Target:
public static com.android.sdklib.repository.descriptors.IPkgDesc newPlatform ( @ com.android.annotations.NonNull final com.android.sdklib.AndroidVersion version , @ com.android.annotations.NonNull final com.android.sdklib.repository.MajorRevision revision , @ com.android.annotations.NonNull final com.android.sdklib.repository.FullRevision minToolsRev ) { return new com.android.sdklib.repository.descriptors.PkgDesc ( ) { @ java.lang.Override public com.android.sdklib.repository.descriptors.PkgType getType ( ) { return PkgType.PKG_PLATFORMS ; } @ java.lang.Override public com.android.sdklib.repository.MajorRevision getMajorRevision ( ) { return revision ; } @ java.lang.Override public com.android.sdklib.AndroidVersion getAndroidVersion ( ) { return version ; } @ java.lang.Override public com.android.sdklib.repository.FullRevision getMinToolsRev ( ) { return minToolsRev ; } @ java.lang.Override public java.lang.String getPath ( ) { return com.android.sdklib.AndroidTargetHash.getPlatformHashString ( getAndroidVersion ( ) ) ; } @ java.lang.Override public boolean isUpdateFor ( @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.IPkgDesc existingDesc ) { return isGenericUpdateFor ( existingDesc ) ; } } ; }
Source:
public static void markDirectlyDerivedClass ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClass clazz , @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClass derived ) { assert com.android.jack.optimizations.common.TypeToBeEmittedMarker.isToBeEmitted ( clazz ) ; com.android.jack.optimizations.common.DirectlyDerivedClassesMarker marker = clazz.getMarker ( com.android.jack.optimizations.common.DirectlyDerivedClassesMarker.class ) ; if ( marker == null ) { marker = new com.android.jack.optimizations.common.DirectlyDerivedClassesMarker ( ) ; com.android.jack.optimizations.common.DirectlyDerivedClassesMarker existing = clazz.addMarkerIfAbsent ( marker ) ; if ( existing != null ) { marker = existing ; } } marker.directlyDerivedClasses.add ( derived ) ; }

Target:
public static void markDirectlyDerivedClass ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClass clazz , @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClass derived ) { assert clazz.isToEmit ( ) ; com.android.jack.optimizations.common.DirectlyDerivedClassesMarker marker = clazz.getMarker ( com.android.jack.optimizations.common.DirectlyDerivedClassesMarker.class ) ; if ( marker == null ) { marker = new com.android.jack.optimizations.common.DirectlyDerivedClassesMarker ( ) ; com.android.jack.optimizations.common.DirectlyDerivedClassesMarker existing = clazz.addMarkerIfAbsent ( marker ) ; if ( existing != null ) { marker = existing ; } } marker.directlyDerivedClasses.add ( derived ) ; }
Source:
public void testApplyingWithCriticalFiles ( ) throws java.lang.Exception { com.intellij.updater.PatchFileCreator.create ( myOlderDir , myNewerDir , myFile , java.util.Collections.< java.lang.String > emptyList ( ) , java.util.Arrays.asList ( "lib/annotations.jar" ) , java.util.Collections.< java.lang.String > emptyList ( ) , com.intellij.updater.TEST_UI ) ; com.intellij.updater.PatchFileCreator.PreparationResult preparationResult = com.intellij.updater.PatchFileCreator.prepareAndValidate ( myFile , myOlderDir , com.intellij.updater.TEST_UI ) ; assertTrue ( com.intellij.updater.PatchFileCreator.apply ( preparationResult , new java.util.HashMap < java.lang.String , com.intellij.updater.ValidationResult.Option > ( ) , com.intellij.updater.TEST_UI ) ) ; assertAppliedCorrectly ( ) ; }

Target:
public void testApplyingWithCaseChangedNames ( ) throws java.lang.Exception { com.intellij.openapi.util.io.FileUtil.rename ( new java.io.File ( myOlderDir , "Readme.txt" ) , new java.io.File ( myOlderDir , "README.txt" ) ) ; com.intellij.updater.Patch patch = com.intellij.updater.PatchFileCreator.create ( myPatchSpec , myFile , com.intellij.updater.TEST_UI ) ; assertAppliedAndRevertedCorrectly ( patch , com.intellij.updater.PatchFileCreator.prepareAndValidate ( myFile , myOlderDir , com.intellij.updater.TEST_UI ) ) ; }
Source:
private void readZoneTab ( libcore.io.BufferIterator it , int zoneTabOffset , int zoneTabSize ) { byte [ ] bytes = new byte [ zoneTabSize ] ; it.seek ( zoneTabOffset ) ; it.readByteArray ( bytes , 0 , bytes.length ) ; zoneTab = new java.lang.String ( bytes , 0 , bytes.length , java.nio.charset.Charsets.US_ASCII ) ; }

Target:
private void readZoneTab ( libcore.io.BufferIterator it , int zoneTabOffset , int zoneTabSize ) { byte [ ] bytes = new byte [ zoneTabSize ] ; it.seek ( zoneTabOffset ) ; it.readByteArray ( bytes , 0 , bytes.length ) ; zoneTab = new java.lang.String ( bytes , 0 , bytes.length , java.nio.charset.StandardCharsets.US_ASCII ) ; }
Source:
protected void doFullTaskAction ( ) { forEachInputFile = $missing$ ; java.lang.String split ; com.android.build.gradle.tasks.File file ; com.android.build.gradle.tasks.File outFile = new com.android.build.gradle.tasks.File ( outputDirectory , this . getOutputFileNameForSplit ( split ) ) ; getBuilder ( ) . signApk ( file , signingConfig , outFile ) ; }

Target:
public void setDensitySplits ( java.util.Set < java.lang.String > densitySplits ) { this . densitySplits = densitySplits ; }
Source:
public void close ( ) throws java.io.IOException { synchronized ( closeLock ) { if ( closed ) { return ; } closed = true ; } if ( ( channel ) != null ) { fd.decrementAndGetUseCount ( ) ; channel.close ( ) ; } int useCount = fd.decrementAndGetUseCount ( ) ; if ( useCount <= 0 ) { libcore.io.IoBridge.closeAndSignalBlockedThreads ( fd ) ; } }

Target:
public void close ( ) throws java.io.IOException { synchronized ( closeLock ) { if ( closed ) { return ; } closed = true ; } guard.close ( ) ; if ( ( channel ) != null ) { fd.decrementAndGetUseCount ( ) ; channel.close ( ) ; } int useCount = fd.decrementAndGetUseCount ( ) ; if ( useCount <= 0 ) { libcore.io.IoBridge.closeAndSignalBlockedThreads ( fd ) ; } }
Source:
public static boolean isKeyAlgorithmSupported ( java.lang.String algorithm ) { return "RSA" . equals ( algorithm ) ; }

Target:
public static boolean isKeyAlgorithmSupported ( java.lang.String algorithm ) { final java.lang.String algUpper = algorithm.toUpperCase ( java.util.Locale.US ) ; return ( ( "DSA" . equals ( algUpper ) ) || ( "EC" . equals ( algUpper ) ) ) || ( "RSA" . equals ( algUpper ) ) ; }
Source:
public static byte [ ] getMagicForApi ( int api ) { { HEAD ( ( bda1c3 = "Support dex version 38 in smali" ) ) ; return org.jf.dexlib2.dexbacked.raw.HeaderItem.MAGIC_VALUES [ 0 ] ; } { return org.jf.dexlib2.dexbacked.raw.HeaderItem.getMagicForDexVersion ( 35 ) ; } }

Target:
public static byte [ ] getMagicForApi ( int api ) { if ( api < 24 ) { return org.jf.dexlib2.dexbacked.raw.HeaderItem.getMagicForDexVersion ( 35 ) ; } else if ( api < 26 ) { return org.jf.dexlib2.dexbacked.raw.HeaderItem.getMagicForDexVersion ( 37 ) ; } else { return org.jf.dexlib2.dexbacked.raw.HeaderItem.getMagicForDexVersion ( 38 ) ; } }
Source:
public void postUrl ( java.lang.String url , byte [ ] postData ) { checkThread ( ) ; if ( DebugFlags.TRACE_API ) android.util.Log.d ( android.webkit.WebView.LOGTAG , ( "postUrl=" + url ) ) ; if ( android.webkit.URLUtil.isNetworkUrl ( url ) ) { mProvider.postUrl ( url , postData ) ; } else { mProvider.loadUrl ( url ) ; } }

Target:
public void postUrl ( java.lang.String url , byte [ ] postData ) { checkThread ( ) ; if ( android.webkit.WebView.TRACE ) android.util.Log.d ( android.webkit.WebView.LOGTAG , ( "postUrl=" + url ) ) ; if ( android.webkit.URLUtil.isNetworkUrl ( url ) ) { mProvider.postUrl ( url , postData ) ; } else { mProvider.loadUrl ( url ) ; } }
Source:
public void saveProperties ( java.util.Properties props ) { super . saveProperties ( props ) ; props.setProperty ( PkgProps.PKG_MAJOR_REV , java.lang.Integer.toString ( mPreviewVersion.getMajor ( ) ) ) ; props.setProperty ( PkgProps.PKG_MINOR_REV , java.lang.Integer.toString ( mPreviewVersion.getMinor ( ) ) ) ; props.setProperty ( PkgProps.PKG_MICRO_REV , java.lang.Integer.toString ( mPreviewVersion.getMicro ( ) ) ) ; props.setProperty ( PkgProps.PKG_PREVIEW_REV , java.lang.Integer.toString ( mPreviewVersion.getPreview ( ) ) ) ; }

Target:
public void saveProperties ( java.util.Properties props ) { super . saveProperties ( props ) ; props.setProperty ( PkgProps.PKG_REVISION , mPreviewVersion.toString ( ) ) ; }
Source:
public boolean releaseWifiLock ( android.os.IBinder binder ) { if ( mWifiLockManager.releaseWifiLock ( binder ) ) { mWifiController.sendMessage ( com.android.server.wifi.WifiController.CMD_LOCKS_CHANGED ) ; return true ; } return false ; }

Target:
public boolean releaseWifiLock ( android.os.IBinder binder ) { mLog.trace ( "releaseWifiLock uid=%" ) . c ( android.os.Binder.getCallingUid ( ) ) . flush ( ) ; if ( mWifiLockManager.releaseWifiLock ( binder ) ) { mWifiController.sendMessage ( com.android.server.wifi.WifiController.CMD_LOCKS_CHANGED ) ; return true ; } return false ; }
Source:
public void writeToParcel ( android.os.Parcel dest , int flags ) { dest.writeLong ( totalBytes ) ; dest.writeLong ( audioBytes ) ; dest.writeLong ( videoBytes ) ; dest.writeLong ( imageBytes ) ; dest.writeLong ( appBytes ) ; }

Target:
public void writeToParcel ( android.os.Parcel dest , int flags ) { dest.writeLong ( totalBytes ) ; dest.writeLong ( audioBytes ) ; dest.writeLong ( videoBytes ) ; dest.writeLong ( imageBytes ) ; dest.writeLong ( appBytes ) ; dest.writeLong ( obbBytes ) ; }
Source:
public static com.intellij.execution.ui.ConsoleView createAndAttachConsole ( @ org.jetbrains.annotations.NotNull final java.lang.String testFrameworkName , @ org.jetbrains.annotations.NotNull final com.intellij.execution.process.ProcessHandler processHandler , @ org.jetbrains.annotations.NotNull final com.intellij.execution.configurations.CommandLineState commandLineState , @ org.jetbrains.annotations.NotNull final com.intellij.execution.configurations.ModuleRunConfiguration config , @ org.jetbrains.annotations.NotNull final com.intellij.execution.Executor executor ) throws com.intellij.execution.ExecutionException { final com.intellij.execution.testframework.TestConsoleProperties consoleProperties = new com.intellij.execution.testframework.sm.runner.SMTRunnerConsoleProperties ( config , testFrameworkName , executor ) ; return com.google.gct.testing.results.GoogleCloudTestResultsConnectionUtil.createAndAttachConsole ( testFrameworkName , processHandler , consoleProperties , commandLineState.getEnvironment ( ) ) ; }

Target:
public static com.intellij.execution.ui.ConsoleView createConsole ( @ org.jetbrains.annotations.NotNull final java.lang.String testFrameworkName , @ org.jetbrains.annotations.NotNull final com.intellij.execution.configurations.CommandLineState commandLineState , @ org.jetbrains.annotations.NotNull final com.intellij.execution.configurations.ModuleRunConfiguration config , @ org.jetbrains.annotations.NotNull final com.intellij.execution.Executor executor , @ org.jetbrains.annotations.NotNull final com.google.gct.testing.CloudMatrixExecutionCancellator matrixExecutionCancellator ) throws com.intellij.execution.ExecutionException { final com.intellij.execution.testframework.TestConsoleProperties consoleProperties = new com.intellij.execution.testframework.sm.runner.SMTRunnerConsoleProperties ( config , testFrameworkName , executor ) ; return com.google.gct.testing.results.GoogleCloudTestResultsConnectionUtil.createConsole ( testFrameworkName , consoleProperties , commandLineState.getEnvironment ( ) , matrixExecutionCancellator ) ; }
Source:
private java.util.List < java.lang.String > getStringList ( java.lang.StringBuilder stringAccumulator ) { java.util.List < java.lang.String > filteredStrings = new java.util.ArrayList < java.lang.String > ( ) ; for ( java.lang.String s : com.android.sdklib.devices.DeviceParser.DeviceHandler.getString ( mStringAccumulator ) . split ( com.android.sdklib.devices.DeviceParser.DeviceHandler.sSpaceRegex ) ) { if ( ( s != null ) && ( ! ( s.isEmpty ( ) ) ) ) { filteredStrings.add ( s.trim ( ) ) ; } } return filteredStrings ; }

Target:
private static java.util.List < java.lang.String > getStringList ( java.lang.StringBuilder stringAccumulator ) { java.util.List < java.lang.String > filteredStrings = new java.util.ArrayList < java.lang.String > ( ) ; for ( java.lang.String s : com.android.sdklib.devices.DeviceParser.DeviceHandler.sSpaceSplitter.split ( stringAccumulator ) ) { if ( ( s != null ) && ( ! ( s.isEmpty ( ) ) ) ) { filteredStrings.add ( s.trim ( ) ) ; } } return filteredStrings ; }
Source:
public void testPullNonExternalCall ( ) throws java.lang.Exception { com.android.server.telecom.tests.IdPair ids = startAndMakeActiveIncomingCall ( "650-555-1212" , mPhoneAccountA0.getAccountHandle ( ) , mConnectionServiceFixtureA ) ; assertEquals ( Call.STATE_ACTIVE , mInCallServiceFixtureX.getCall ( ids.mCallId ) . getState ( ) ) ; mInCallServiceFixtureX.mInCallAdapter.pullExternalCall ( ids.mCallId ) ; java.lang.Thread.sleep ( com.android.server.telecom.tests.TEST_TIMEOUT ) ; org.mockito.Mockito.verify ( mConnectionServiceFixtureA.getTestDouble ( ) , org.mockito.Mockito.never ( ) ) . pullExternalCall ( org.mockito.Matchers.eq ( ids.mCallId ) , org.mockito.Matchers.any ( ) ) ; }

Target:
public void testSendConnectionEventNull ( ) throws java.lang.Exception { com.android.server.telecom.tests.IdPair ids = startAndMakeActiveIncomingCall ( "650-555-1212" , mPhoneAccountA0.getAccountHandle ( ) , mConnectionServiceFixtureA ) ; org.junit.Assert.assertEquals ( Call.STATE_ACTIVE , mInCallServiceFixtureX.getCall ( ids.mCallId ) . getState ( ) ) ; mConnectionServiceFixtureA.sendConnectionEvent ( ids.mConnectionId , com.android.server.telecom.tests.BasicCallTests.TEST_EVENT , null ) ; org.mockito.Mockito.verify ( mInCallServiceFixtureX.getTestDouble ( ) , org.mockito.Mockito.timeout ( com.android.server.telecom.tests.TEST_TIMEOUT ) ) . onConnectionEvent ( ids.mCallId , com.android.server.telecom.tests.BasicCallTests.TEST_EVENT , null ) ; }
Source:
public static com.android.sdklib.repository.descriptors.PkgDesc.Builder newAddonSysImg ( @ com.android.annotations.NonNull com.android.sdklib.AndroidVersion version , @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.IdDisplay addonVendor , @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.IdDisplay addonName , @ com.android.annotations.NonNull java.lang.String abi , @ com.android.annotations.NonNull com.android.sdklib.repository.MajorRevision revision ) { com.android.sdklib.repository.descriptors.PkgDesc.Builder p = new com.android.sdklib.repository.descriptors.PkgDesc.Builder ( PkgType.PKG_ADDON_SYS_IMAGES ) ; p.mAndroidVersion = version ; p.mMajorRevision = revision ; p.mTag = addonName ; p.mPath = abi ; p.mVendor = addonVendor ; return p ; }

Target:
public static com.android.sdklib.repository.descriptors.PkgDesc.Builder newAddonSysImg ( @ com.android.annotations.NonNull com.android.sdklib.AndroidVersion version , @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.IdDisplay addonVendor , @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.IdDisplay addonName , @ com.android.annotations.NonNull java.lang.String abi , @ com.android.annotations.NonNull com.android.sdklib.repository.MajorRevision revision ) { com.android.sdklib.repository.descriptors.PkgDesc.Builder p = new com.android.sdklib.repository.descriptors.PkgDesc.Builder ( PkgType.PKG_ADDON_SYS_IMAGE ) ; p.mAndroidVersion = version ; p.mMajorRevision = revision ; p.mTag = addonName ; p.mPath = abi ; p.mVendor = addonVendor ; return p ; }
Source:
public void testNewInstanceString_StringBufferConstructor ( ) { runTestNewInstanceString ( "(Ljava/lang/StringBuffer;)V" , new org.apache.harmony.jpda.tests.jdwp.ClassType.NewInstanceStringTest.ConstructorArgumentsProvider ( ) { @ java.lang.Override public void provideConstructorArguments ( java.util.List < org.apache.harmony.jpda.tests.framework.jdwp.Value > constructorArguments ) { long debuggeeClassId = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value stringBufferValue = getStaticFieldValue ( debuggeeClassId , "STRING_BUFFER" ) ; constructorArguments.add ( stringBufferValue ) ; } } ) ; }

Target:
public void testNewInstanceString_IntArrayIntIntConstructor ( ) { runTestNewInstanceString ( "([III)V" , new org.apache.harmony.jpda.tests.jdwp.ClassType.ConstructorArgumentsProvider ( ) { @ java.lang.Override public void provideConstructorArguments ( java.util.List < org.apache.harmony.jpda.tests.framework.jdwp.Value > constructorArguments ) { long debuggeeClassId = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value intArrayValue = getStaticFieldValue ( debuggeeClassId , "INT_ARRAY" ) ; constructorArguments.add ( intArrayValue ) ; constructorArguments.add ( new org.apache.harmony.jpda.tests.framework.jdwp.Value ( 0 ) ) ; constructorArguments.add ( new org.apache.harmony.jpda.tests.framework.jdwp.Value ( 1 ) ) ; } } ) ; }
Source:
public void testGetMatch1 ( ) throws java.lang.Exception { try { mKeyCharacterMap.getMatch ( KeyEvent.KEYCODE_0 , null ) ; fail ( "should throw exception" ) ; } catch ( java.lang.Exception e ) { } assertEquals ( '' , mKeyCharacterMap.getMatch ( KeyEvent.KEYCODE_E , chars ) ) ; assertEquals ( 'A' , mKeyCharacterMap.getMatch ( KeyEvent.KEYCODE_A , chars ) ) ; assertEquals ( 'B' , mKeyCharacterMap.getMatch ( KeyEvent.KEYCODE_B , chars ) ) ; }

Target:
public void testGetMatch1 ( ) throws java.lang.Exception { try { mKeyCharacterMap.getMatch ( KeyEvent.KEYCODE_0 , null ) ; fail ( "should throw exception" ) ; } catch ( java.lang.Exception e ) { } assertEquals ( '' , mKeyCharacterMap.getMatch ( getCharacterKeyCode ( 'E' ) , chars ) ) ; assertEquals ( 'A' , mKeyCharacterMap.getMatch ( getCharacterKeyCode ( 'A' ) , chars ) ) ; assertEquals ( 'B' , mKeyCharacterMap.getMatch ( getCharacterKeyCode ( 'B' ) , chars ) ) ; }
Source:
synchronized void nAllocationRead ( int id , float [ ] d ) { validate ( ) ; rsnAllocationRead ( mContext , id , d ) ; }

Target:
synchronized void nAllocationData3D ( long id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , int [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes ) ; }
Source:
public java.lang.String toString ( ) { return ( ( ( "ActivityIntentInfo{" + ( java.lang.Integer.toHexString ( java.lang.System.identityHashCode ( this ) ) ) ) + " " ) + ( activity.info.name ) ) + "}" ; }

Target:
public java.lang.String toString ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( 128 ) ; sb.append ( "ActivityIntentInfo{" ) ; sb.append ( java.lang.Integer.toHexString ( java.lang.System.identityHashCode ( this ) ) ) ; sb.append ( ' ' ) ; activity.appendComponentShortName ( sb ) ; sb.append ( '}' ) ; return sb.toString ( ) ; }
Source:
public void testLibraryProjects ( ) throws java.lang.Exception { java.io.File master = getProjectDir ( "MasterProject" , "bytecode/AndroidManifestWrongRegs.xml=>AndroidManifest.xml" , "multiproject/main.properties=>project.properties" , "bytecode/.classpath=>.classpath" ) ; java.io.File library = getProjectDir ( "LibraryProject" , "multiproject/library-manifest.xml=>AndroidManifest.xml" , "multiproject/library.properties=>project.properties" , "bytecode/OnClickActivity.java.txt=>src/test/pkg/OnClickActivity.java" , "bytecode/OnClickActivity.class.data=>bin/classes/test/pkg/OnClickActivity.class" , "bytecode/TestService.java.txt=>src/test/pkg/TestService.java" , "bytecode/TestService.class.data=>bin/classes/test/pkg/TestService.class" , "bytecode/TestProvider.java.txt=>src/test/pkg/TestProvider.java" , "bytecode/TestProvider.class.data=>bin/classes/test/pkg/TestProvider.class" , "bytecode/TestProvider2.java.txt=>src/test/pkg/TestProvider2.java" , "bytecode/TestProvider2.class.data=>bin/classes/test/pkg/TestProvider2.class" ) ; assertEquals ( ( "MasterProject/AndroidManifest.xml:17: Error: Class referenced in the manifest, test.pkg.TestReceiver, was not found in the project or the libraries [MissingRegistered]\n" + ( ( " <service android:name=\"TestReceiver\" />\n" + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) ) , checkLint ( java.util.Arrays.asList ( master , library ) ) ) ; }

Target:
public void testLibraryProjects ( ) throws java.lang.Exception { mScopes = null ; java.io.File master = getProjectDir ( "MasterProject" , "bytecode/AndroidManifestWrongRegs.xml=>AndroidManifest.xml" , "multiproject/main.properties=>project.properties" , "bytecode/.classpath=>.classpath" ) ; java.io.File library = getProjectDir ( "LibraryProject" , "multiproject/library-manifest.xml=>AndroidManifest.xml" , "multiproject/library.properties=>project.properties" , "bytecode/OnClickActivity.java.txt=>src/test/pkg/OnClickActivity.java" , "bytecode/OnClickActivity.class.data=>bin/classes/test/pkg/OnClickActivity.class" , "bytecode/TestService.java.txt=>src/test/pkg/TestService.java" , "bytecode/TestService.class.data=>bin/classes/test/pkg/TestService.class" , "bytecode/TestProvider.java.txt=>src/test/pkg/TestProvider.java" , "bytecode/TestProvider.class.data=>bin/classes/test/pkg/TestProvider.class" , "bytecode/TestProvider2.java.txt=>src/test/pkg/TestProvider2.java" , "bytecode/TestProvider2.class.data=>bin/classes/test/pkg/TestProvider2.class" ) ; assertEquals ( ( "MasterProject/AndroidManifest.xml:17: Error: Class referenced in the manifest, test.pkg.TestReceiver, was not found in the project or the libraries [MissingRegistered]\n" + ( ( " <service android:name=\"TestReceiver\" />\n" + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) ) , checkLint ( java.util.Arrays.asList ( master , library ) ) ) ; }