auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void onAllRecordsLoaded ( ) { android.util.Log.d ( com.android.internal.telephony.cdma.RuimRecords.LOG_TAG , "RuimRecords: record load complete" ) ; recordsLoadedRegistrants.notifyRegistrants ( new android.os.AsyncResult ( null , null , null ) ) ; ( ( com.android.internal.telephony.cdma.CDMAPhone ) ( phone ) ) . mRuimCard.broadcastIccStateChangedIntent ( RuimCard.INTENT_VALUE_ICC_LOADED , null ) ; }

Target:
protected void onAllRecordsLoaded ( ) { android.util.Log.d ( com.android.internal.telephony.cdma.RuimRecords.LOG_TAG , "RuimRecords: record load complete" ) ; java.lang.String operator = getRUIMOperatorNumeric ( ) ; android.os.SystemProperties.set ( com.android.internal.telephony.TelephonyProperties.PROPERTY_ICC_OPERATOR_NUMERIC , operator ) ; if ( ( mImsi ) != null ) { android.os.SystemProperties.set ( com.android.internal.telephony.TelephonyProperties.PROPERTY_ICC_OPERATOR_ISO_COUNTRY , com.android.internal.telephony.MccTable.countryCodeForMcc ( java.lang.Integer.parseInt ( mImsi.substring ( 0 , 3 ) ) ) ) ; } recordsLoadedRegistrants.notifyRegistrants ( new android.os.AsyncResult ( null , null , null ) ) ; ( ( com.android.internal.telephony.cdma.CDMAPhone ) ( phone ) ) . mRuimCard.broadcastIccStateChangedIntent ( RuimCard.INTENT_VALUE_ICC_LOADED , null ) ; }
Source:
public boolean updateSubscribe ( short transactionId , android.net.wifi.nan.SubscribeConfig config ) { if ( mIsPublishSession ) { android.util.Log.e ( com.android.server.wifi.nan.WifiNanSessionState.TAG , "A PUBLISH session is being used to subscribe" ) ; try { mCallback.onSessionConfigFail ( WifiNanSessionCallback.REASON_OTHER ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.server.wifi.nan.WifiNanSessionState.TAG , ( "updateSubscribe: RemoteException=" + e ) ) ; } return false ; } return com.android.server.wifi.nan.WifiNanNative.getInstance ( ) . subscribe ( transactionId , mPubSubId , config ) ; }

Target:
public boolean updateSubscribe ( short transactionId , android.net.wifi.nan.SubscribeConfig config ) { if ( mIsPublishSession ) { android.util.Log.e ( com.android.server.wifi.nan.WifiNanDiscoverySessionState.TAG , "A PUBLISH session is being used to subscribe" ) ; try { mCallback.onSessionConfigFail ( WifiNanDiscoverySessionCallback.REASON_OTHER ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.server.wifi.nan.WifiNanDiscoverySessionState.TAG , ( "updateSubscribe: RemoteException=" + e ) ) ; } return false ; } return com.android.server.wifi.nan.WifiNanNative.getInstance ( ) . subscribe ( transactionId , mPubSubId , config ) ; }
Source:
public com.google.common.collect.ImmutableMap.Builder < K , V > put ( K key , V value ) { entries.add ( com.google.common.collect.ImmutableMap.entryOf ( key , value ) ) ; return this ; }

Target:
public com.google.common.collect.ImmutableMap.Builder < K , V > put ( K key , V value ) { ensureCapacity ( ( ( size ) + 1 ) ) ; com.google.common.collect.ImmutableMapEntry.TerminalEntry < K , V > entry = com.google.common.collect.ImmutableMap.entryOf ( key , value ) ; entries [ ( ( size ) ++ ) ] = entry ; return this ; }
Source:
public void processNewLines ( java.lang.String [ ] lines ) { for ( java.lang.String line : lines ) { if ( ( line.length ( ) ) > 0 ) { if ( line.startsWith ( com.android.ddmlib.Device.InstallReceiver.SUCCESS_OUTPUT ) ) { mErrorMessage = null ; } else { java.util.regex.Matcher m = com.android.ddmlib.Device.InstallReceiver.FAILURE_PATTERN.matcher ( line ) ; if ( m.matches ( ) ) { mErrorMessage = m.group ( 1 ) ; } } } } }

Target:
public void processNewLines ( java.lang.String [ ] lines ) { for ( java.lang.String line : lines ) { if ( ! ( line.isEmpty ( ) ) ) { if ( line.startsWith ( com.android.ddmlib.Device.InstallReceiver.SUCCESS_OUTPUT ) ) { mErrorMessage = null ; } else { java.util.regex.Matcher m = com.android.ddmlib.Device.InstallReceiver.FAILURE_PATTERN.matcher ( line ) ; if ( m.matches ( ) ) { mErrorMessage = m.group ( 1 ) ; } } } } }
Source:
private void executeProgramLoadingTask ( ) { if ( ( mProgramLoadTask ) != null ) { mProgramLoadTask.cancel ( true ) ; } mProgramLoadTask = new com.android.tv.dvr.EpisodicProgramLoadTask ( getContext ( ) , mSeriesRecording ) { @ java.lang.Override protected void onPostExecute ( java.util.List < com.android.tv.data.Program > programs ) { mPrograms = programs ; onProgramsUpdated ( ) ; } } ; mProgramLoadTask.setLoadCurrentProgram ( true ) . setLoadDisallowedProgram ( true ) . setLoadScheduledEpisode ( true ) . setIgnoreChannelOption ( true ) . execute ( ) ; }

Target:
private void executeProgramLoadingTask ( ) { if ( ( mProgramLoadTask ) != null ) { mProgramLoadTask.cancel ( true ) ; } mProgramLoadTask = new com.android.tv.dvr.provider.EpisodicProgramLoadTask ( getContext ( ) , mSeriesRecording ) { @ java.lang.Override protected void onPostExecute ( java.util.List < com.android.tv.data.Program > programs ) { mPrograms = ( programs == null ) ? java.util.Collections.EMPTY_LIST : programs ; onProgramsUpdated ( ) ; } } ; mProgramLoadTask.setLoadCurrentProgram ( true ) . setLoadDisallowedProgram ( true ) . setLoadScheduledEpisode ( true ) . setIgnoreChannelOption ( true ) . execute ( ) ; }
Source:
public com.android.jack.ir.ast.JDefinedClass create ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JPackage enclosingPackage , @ javax.annotation.Nonnull com.android.jack.jayce.JayceClassOrInterfaceLoader loader ) { assert ( signature ) != null ; java.lang.String binaryName = com.android.jack.util.NamingTools.getClassBinaryNameFromDescriptor ( signature ) ; java.lang.String simpleName = com.android.jack.util.NamingTools.getSimpleClassNameFromBinaryName ( binaryName ) ; com.android.jack.ir.ast.JDefinedClass jClassType = new com.android.jack.ir.ast.JDefinedClass ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN , simpleName , modifiers , enclosingPackage , loader ) ; return jClassType ; }

Target:
public com.android.jack.ir.ast.JDefinedClass create ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JPackage enclosingPackage , @ javax.annotation.Nonnull com.android.jack.jayce.JayceClassOrInterfaceLoader loader ) { assert ( signature ) != null ; java.lang.String binaryName = com.android.jack.util.NamingTools.getClassBinaryNameFromDescriptor ( signature ) ; java.lang.String simpleName = com.android.jack.util.NamingTools.getSimpleClassNameFromBinaryName ( binaryName ) ; modifiers &= ~ ( com.android.jack.ir.ast.JModifier.ANONYMOUS_TYPE ) ; com.android.jack.ir.ast.JDefinedClass jClassType = new com.android.jack.ir.ast.JDefinedClass ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN , simpleName , modifiers , enclosingPackage , loader ) ; return jClassType ; }
Source:
public void visitProgramMethod ( proguard.optimize.info.ProgramClass programClass , proguard.optimize.info.ProgramMethod programMethod ) { hasSideEffects = ( ! ( proguard.optimize.info.NoSideEffectMethodMarker.hasNoSideEffects ( programMethod ) ) ) && ( ( proguard.optimize.info.SideEffectMethodMarker.hasSideEffects ( programMethod ) ) || ( ( ! ( programClass.equals ( referencingClass ) ) ) && ( ! ( initializedSuperClasses ( referencingClass ) . containsAll ( initializedSuperClasses ( programClass ) ) ) ) ) ) ; }

Target:
public void visitProgramField ( proguard.optimize.info.ProgramClass programClass , proguard.optimize.info.ProgramField programField ) { hasSideEffects = ( ( includeLocalFieldAccess ) || ( ! ( programClass.equals ( referencingClass ) ) ) ) && ( ( ( ( writingField ) && ( proguard.optimize.info.ReadWriteFieldMarker.isRead ( programField ) ) ) || ( ( ( programField.getAccessFlags ( ) ) & ( ClassConstants.ACC_VOLATILE ) ) != 0 ) ) || ( mayHaveSideEffects ( referencingClass , programClass ) ) ) ; }
Source:
public void test002 ( ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( TEST002 ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JillBasedToolchain.class ) . setWithDebugInfos ( true ) . addProperty ( Optimizations.REMOVE_UNUSED_NON_SYNTHETIC_DEFINITION.getName ( ) , java.lang.String.valueOf ( false ) ) . compileAndRunTest ( true ) ; }

Target:
public void test002 ( ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( TEST002 ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JillBasedToolchain.class ) . setWithDebugInfos ( true ) . addProperty ( Optimizations.REMOVE_UNUSED_NON_SYNTHETIC_DEFINITION.getName ( ) , java.lang.String.valueOf ( false ) ) . addProperty ( CodeItemBuilder.DEX_OPTIMIZE.getName ( ) , "true" ) . compileAndRunTest ( true ) ; }
Source:
private void initializeWindowCoordinator ( ) { final org.eclipse.ui.IWorkbench workbench = org.eclipse.ui.PlatformUI.getWorkbench ( ) ; workbench.getDisplay ( ) . asyncExec ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { org.eclipse.ui.IWorkbenchWindow window = workbench.getActiveWorkbenchWindow ( ) ; if ( window != null ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutWindowCoordinator.start ( window ) ; } } } ) ; }

Target:
private void initializeWindowCoordinator ( ) { final org.eclipse.ui.IWorkbench workbench = org.eclipse.ui.PlatformUI.getWorkbench ( ) ; workbench.addWindowListener ( this ) ; workbench.getDisplay ( ) . asyncExec ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { for ( org.eclipse.ui.IWorkbenchWindow window : workbench.getWorkbenchWindows ( ) ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutWindowCoordinator.get ( window , true ) ; } } } ) ; }
Source:
public java.lang.String getCdmaEriTextForSubscriber ( int subId , java.lang.String callingPackage ) { if ( ! ( canReadPhoneState ( callingPackage , "getCdmaEriIconTextForSubscriber" ) ) ) { return null ; } final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { return phone.getCdmaEriText ( ) ; } else { return null ; } }

Target:
public java.lang.String getDeviceSoftwareVersionForSlot ( int slotIndex , java.lang.String callingPackage ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , callingPackage , "getDeviceSoftwareVersionForSlot" ) ) ) { return null ; } com.android.internal.telephony.Phone phone = com.android.internal.telephony.PhoneFactory.getPhone ( slotIndex ) ; return phone == null ? null : phone.getDeviceSvn ( ) ; }
Source:
public java.lang.Object clone ( ) { com.ibm.icu.text.RuleBasedBreakIterator result = ( ( com.ibm.icu.text.RuleBasedBreakIterator ) ( super . clone ( ) ) ) ; if ( ( fText ) != null ) { result.fText = ( ( java.text.CharacterIterator ) ( fText.clone ( ) ) ) ; } return result ; }

Target:
public java.lang.Object clone ( ) { com.ibm.icu.text.RuleBasedBreakIterator result = ( ( com.ibm.icu.text.RuleBasedBreakIterator ) ( super . clone ( ) ) ) ; if ( ( fText ) != null ) { result.fText = ( ( java.text.CharacterIterator ) ( fText.clone ( ) ) ) ; } synchronized ( com.ibm.icu.text.RuleBasedBreakIterator.gAllBreakEngines ) { result.fBreakEngines = new java.util.ArrayList < com.ibm.icu.text.LanguageBreakEngine > ( com.ibm.icu.text.RuleBasedBreakIterator.gAllBreakEngines ) ; } result.fLookAheadMatches = new com.ibm.icu.text.RuleBasedBreakIterator.LookAheadResults ( ) ; if ( ( fCachedBreakPositions ) != null ) { result.fCachedBreakPositions = fCachedBreakPositions.clone ( ) ; } return result ; }
Source:
public static org.eclipse.core.resources.IResource [ ] getResourcesToMap ( org.eclipse.core.resources.IProject project ) { java.util.ArrayList < org.eclipse.core.resources.IResource > array = new java.util.ArrayList < org.eclipse.core.resources.IResource > ( 2 ) ; array.add ( project ) ; org.eclipse.core.resources.IFile manifest = com.android.ide.eclipse.adt.internal.project.AndroidManifestParser.getManifest ( project ) ; if ( manifest != null ) { array.add ( manifest ) ; } return array.toArray ( new org.eclipse.core.resources.IResource [ array.size ( ) ] ) ; }

Target:
public static org.eclipse.core.resources.IResource [ ] getResourcesToMap ( org.eclipse.core.resources.IProject project ) { java.util.ArrayList < org.eclipse.core.resources.IResource > array = new java.util.ArrayList < org.eclipse.core.resources.IResource > ( 2 ) ; array.add ( project ) ; org.eclipse.core.resources.IFile manifest = com.android.ide.eclipse.adt.internal.project.ProjectHelper.getManifest ( project ) ; if ( manifest != null ) { array.add ( manifest ) ; } return array.toArray ( new org.eclipse.core.resources.IResource [ array.size ( ) ] ) ; }
Source:
public java.lang.Number parse ( java.lang.String text , java.text.ParsePosition parsePosition ) { return ( ( java.lang.Number ) ( parse ( text , parsePosition , null ) ) ) ; }

Target:
public java.lang.Number parse ( java.lang.String text , java.text.ParsePosition parsePosition ) { com.ibm.icu.impl.number.Properties pprops = com.ibm.icu.text.DecimalFormat.threadLocalProperties.get ( ) ; synchronized ( this ) { pprops.copyFrom ( properties ) ; } java.lang.Number result = com.ibm.icu.impl.number.Parse.parse ( text , parsePosition , pprops , symbols ) ; if ( result instanceof java.math.BigDecimal ) { result = new com.ibm.icu.math.BigDecimal ( ( ( java.math.BigDecimal ) ( result ) ) ) ; } return result ; }
Source:
public void testAesCbcHmacSha512Udp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA512 , getAuthKey ( 512 ) , 256 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth ) ; }

Target:
public void testAesCbcHmacSha512Tcp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA512 , getAuthKey ( 512 ) , 256 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 , true ) ; }
Source:
public void onClick ( android.view.View view ) { com.android.dialer.common.LogUtil.i ( "NewVoicemailMediaPlayer.playButtonListener" , "play button for voicemailUri: %s" , voicemailUri.toString ( ) ) ; if ( ( ( mediaPlayer.getLastPausedVoicemailUri ( ) ) != null ) && ( mediaPlayer.getLastPausedVoicemailUri ( ) . toString ( ) . contentEquals ( voicemailUri.toString ( ) ) ) ) { com.android.dialer.common.LogUtil.i ( "NewVoicemailMediaPlayer.playButtonListener" , "resume playing voicemailUri: %s" , voicemailUri.toString ( ) ) ; newVoicemailViewHolderListener.resumePausedViewHolder ( newVoicemailViewHolder ) ; } else { playVoicemailWhenAvailableLocally ( ) ; } }

Target:
public void onClick ( android.view.View view ) { com.android.dialer.common.LogUtil.i ( "NewVoicemailMediaPlayer.playButtonListener" , "play button for voicemailUri: %s" , java.lang.String.valueOf ( voicemailUri ) ) ; if ( ( ( mediaPlayer.getLastPausedVoicemailUri ( ) ) != null ) && ( mediaPlayer.getLastPausedVoicemailUri ( ) . toString ( ) . contentEquals ( voicemailUri.toString ( ) ) ) ) { com.android.dialer.common.LogUtil.i ( "NewVoicemailMediaPlayer.playButtonListener" , "resume playing voicemailUri: %s" , voicemailUri.toString ( ) ) ; newVoicemailViewHolderListener.resumePausedViewHolder ( newVoicemailViewHolder ) ; } else { playVoicemailWhenAvailableLocally ( ) ; } }
Source:
private void setUrlChoice ( int urlChoice ) { switch ( urlChoice ) { case 0 : useProd.setSelected ( true ) ; break ; case 1 : useStaging.setSelected ( true ) ; break ; case 2 : useTest.setSelected ( true ) ; break ; case 3 : useCustom.setSelected ( true ) ; break ; default : throw new java.lang.RuntimeException ( ( "Unsupported URL choice: " + urlChoice ) ) ; } }

Target:
private void setBackendOption ( com.google.gct.testing.config.GoogleCloudTestingConfigurable.BackendOption backendOption ) { switch ( backendOption ) { case PROD : useProd.setSelected ( true ) ; break ; case STAGING : useStaging.setSelected ( true ) ; break ; case TEST : useTest.setSelected ( true ) ; break ; case CUSTOM : useCustom.setSelected ( true ) ; break ; default : throw new java.lang.RuntimeException ( ( "Unsupported backend option: " + backendOption ) ) ; } }
Source:
private static boolean isValidJavaPackage ( java.lang.String javaPackageName ) { java.lang.String [ ] strSections = javaPackageName.split ( "." ) ; for ( java.lang.String strSection : strSections ) { if ( ! ( CollectAllTests.isValidJavaIdentifier ( strSection ) ) ) { return false ; } } return true ; }

Target:
private static boolean isValidJavaPackage ( java.lang.String javaPackageName ) { java.lang.String [ ] strSections = javaPackageName.split ( "\\." ) ; for ( java.lang.String strSection : strSections ) { if ( ! ( CollectAllTests.isValidJavaIdentifier ( strSection ) ) ) { return false ; } } return true ; }
Source:
private void rescale ( int direction ) { double s = mCanvasViewer.getCanvas ( ) . getScale ( ) ; if ( direction > 0 ) { s = s * 2 ; } else { s = s / 2 ; } mCanvasViewer.getCanvas ( ) . setScale ( s , true ) ; }

Target:
private void rescale ( int direction ) { double s = mCanvasViewer.getCanvas ( ) . getScale ( ) ; if ( direction > 0 ) { s = s * 1.2 ; } else { s = s / 1.2 ; } if ( ( java.lang.Math.abs ( ( s - 1.0 ) ) ) < 1.0E-4 ) { s = 1.0 ; } mCanvasViewer.getCanvas ( ) . setScale ( s , true ) ; }
Source:
public boolean disableDataConnectivity ( ) { enforceModifyPermission ( ) ; int subId = mSubscriptionController.getDefaultDataSubId ( ) ; final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { phone.setDataEnabled ( false ) ; return true ; } else { return false ; } }

Target:
public boolean enableDataConnectivity ( ) { enforceModifyPermission ( ) ; int subId = mSubscriptionController.getDefaultDataSubId ( ) ; final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { phone.setUserDataEnabled ( true ) ; return true ; } else { return false ; } }
Source:
public void run ( ) { android.renderscript.RenderScript pRS = android.renderscript.RenderScript.create ( mCtx ) ; com.android.rs.unittest.ScriptC_struct_field_simple s = new com.android.rs.unittest.ScriptC_struct_field_simple ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; com.android.rs.unittest.ScriptField_Simple.Item simple = new com.android.rs.unittest.ScriptField_Simple.Item ( ) ; final int I = 305419896 ; final long L = 8526495043095935640L ; simple.I = I ; simple.L = L ; s.set_simple ( simple ) ; s.invoke_checkSimple ( I , L ) ; pRS.finish ( ) ; pRS.destroy ( ) ; }

Target:
public void run ( ) { android.renderscript.RenderScript pRS = createRenderScript ( true ) ; com.android.rs.unittest.ScriptC_struct_field_simple s = new com.android.rs.unittest.ScriptC_struct_field_simple ( pRS ) ; com.android.rs.unittest.ScriptField_Simple.Item simple = new com.android.rs.unittest.ScriptField_Simple.Item ( ) ; final int I = 305419896 ; final long L = 8526495043095935640L ; simple.I = I ; simple.L = L ; s.set_simple ( simple ) ; s.invoke_checkSimple ( I , L ) ; pRS.finish ( ) ; pRS.destroy ( ) ; }
Source:
private boolean tryMapRegs ( java.util.ArrayList < com.android.dx.ssa.back.RegisterSpec > specs , int ropReg , int maxAllowedCategory , boolean markReserved ) { boolean remaining = false ; for ( com.android.dx.ssa.back.RegisterSpec spec : specs ) { if ( ssaRegsMapped.get ( spec.getReg ( ) ) ) { continue ; } boolean succeeded ; succeeded = tryMapReg ( spec , ropReg , maxAllowedCategory ) ; remaining = ( ! succeeded ) || remaining ; if ( succeeded && markReserved ) { markReserved ( ropReg , spec.getCategory ( ) ) ; } } return ! remaining ; }

Target:
private boolean tryMapRegs ( java.util.ArrayList < com.android.dx.rop.code.RegisterSpec > specs , int ropReg , int maxAllowedCategory , boolean markReserved ) { boolean remaining = false ; for ( com.android.dx.rop.code.RegisterSpec spec : specs ) { if ( ssaRegsMapped.get ( spec.getReg ( ) ) ) { continue ; } boolean succeeded ; succeeded = tryMapReg ( spec , ropReg , maxAllowedCategory ) ; remaining = ( ! succeeded ) || remaining ; if ( succeeded && markReserved ) { markReserved ( ropReg , spec.getCategory ( ) ) ; } } return ! remaining ; }
Source:
protected void addCommonClientTlvs ( java.nio.ByteBuffer buf ) { android.net.dhcp.DhcpPacket.addTlv ( buf , android.net.dhcp.DhcpPacket.DHCP_MAX_MESSAGE_SIZE , ( ( short ) ( android.net.dhcp.DhcpPacket.MAX_LENGTH ) ) ) ; android.net.dhcp.DhcpPacket.addTlv ( buf , android.net.dhcp.DhcpPacket.DHCP_VENDOR_CLASS_ID , getVendorId ( ) ) ; android.net.dhcp.DhcpPacket.addTlv ( buf , android.net.dhcp.DhcpPacket.DHCP_HOST_NAME , getHostname ( ) ) ; }

Target:
protected void addCommonClientTlvs ( java.nio.ByteBuffer buf ) { android.net.dhcp.DhcpPacket.addTlv ( buf , android.net.dhcp.DhcpPacket.DHCP_MAX_MESSAGE_SIZE , ( ( short ) ( android.net.dhcp.DhcpPacket.MAX_LENGTH ) ) ) ; android.net.dhcp.DhcpPacket.addTlv ( buf , android.net.dhcp.DhcpPacket.DHCP_VENDOR_CLASS_ID , getVendorId ( ) ) ; final java.lang.String hn = getHostname ( ) ; if ( ! ( android.text.TextUtils.isEmpty ( hn ) ) ) android.net.dhcp.DhcpPacket.addTlv ( buf , android.net.dhcp.DhcpPacket.DHCP_HOST_NAME , hn ) ; }
Source:
public void visitMethodInsn ( int opcode , java.lang.String owner , java.lang.String name , java.lang.String desc , boolean itf ) { printer.visitMethodInsn ( opcode , owner , name , desc , itf ) ; printTypeOfOperandStack ( ) ; super . visitMethodInsn ( opcode , owner , name , desc , itf ) ; }

Target:
public void visitMethodInsn ( int opcode , java.lang.String owner , java.lang.String name , java.lang.String desc , boolean itf ) { printer.visitMethodInsn ( opcode , owner , name , desc , itf ) ; printTypeOfOperandStackTop ( ) ; super . visitMethodInsn ( opcode , owner , name , desc , itf ) ; }
Source:
private void dumpReferences ( ) { if ( mDebug ) { for ( com.android.build.gradle.tasks.ResourceUsageAnalyzer.Resource resource : mResources ) { if ( ( resource.references ) != null ) { java.lang.System.out.println ( ( ( resource + " => " ) + ( resource.references ) ) ) ; } } } }

Target:
private void dumpReferences ( ) { if ( mDebug ) { java.lang.System.out.println ( "Resource Reference Graph:" ) ; for ( com.android.build.gradle.tasks.ResourceUsageAnalyzer.Resource resource : mResources ) { if ( ( resource.references ) != null ) { java.lang.System.out.println ( ( ( resource + " => " ) + ( resource.references ) ) ) ; } } } }
Source:
public static lombok.ast.Node getCompilationUnit ( java.lang.String javaSource ) { com.android.tools.lint.detector.api.LintUtilsTest.TestContext context = new com.android.tools.lint.detector.api.LintUtilsTest.TestContext ( javaSource , new java.io.File ( "test" ) ) ; com.android.tools.lint.client.api.IJavaParser parser = new com.android.tools.lint.EcjParser ( new com.android.tools.lint.LintCliClient ( ) ) ; lombok.ast.Node compilationUnit = parser.parseJava ( context ) ; assertNotNull ( javaSource , compilationUnit ) ; return compilationUnit ; }

Target:
public com.android.sdklib.IAndroidTarget getCompileTarget ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Project project ) { com.android.sdklib.IAndroidTarget [ ] targets = getTargets ( ) ; for ( int i = ( targets.length ) - 1 ; i >= 0 ; i -- ) { com.android.sdklib.IAndroidTarget target = targets [ i ] ; if ( target.isPlatform ( ) ) { return target ; } } return super . getCompileTarget ( project ) ; }
Source:
public void run ( ) { if ( ( ( ( mPlayer ) != null ) && ( ! ( mSeeking ) ) ) && ( ( mDuration ) != 0 ) ) { int progress = ( mPlayer.getCurrentPosition ( ) ) / ( mDuration ) ; mSeekBar.setProgress ( mPlayer.getCurrentPosition ( ) ) ; } mProgressRefresher.removeCallbacksAndMessages ( null ) ; mProgressRefresher.postDelayed ( new com.android.music.AudioPreview.ProgressRefresher ( ) , 200 ) ; }

Target:
private void updatePlayPause ( ) { android.widget.ImageButton b = ( ( android.widget.ImageButton ) ( findViewById ( R.id.playpause ) ) ) ; if ( ( b != null ) && ( ( mPlayer ) != null ) ) { if ( mPlayer.isPlaying ( ) ) { b.setImageResource ( R.drawable.btn_playback_ic_pause_small ) ; } else { b.setImageResource ( R.drawable.btn_playback_ic_play_small ) ; mProgressRefresher.removeCallbacksAndMessages ( null ) ; } } }
Source:
public void testSubjectAltNameWithIpAddress ( ) { assertTrue ( verifyWithServerCertificate ( "1.2.3.4" , new libcore.javax.net.ssl.DefaultHostnameVerifierTest.StubX509Certificate ( "" ) . addSubjectAlternativeName ( libcore.javax.net.ssl.DefaultHostnameVerifierTest.ALT_IPA_NAME , "1.2.3.4" ) ) ) ; assertFalse ( verifyWithServerCertificate ( "1.2.3.5" , new libcore.javax.net.ssl.DefaultHostnameVerifierTest.StubX509Certificate ( "" ) . addSubjectAlternativeName ( libcore.javax.net.ssl.DefaultHostnameVerifierTest.ALT_IPA_NAME , "1.2.3.4" ) ) ) ; assertTrue ( verifyWithServerCertificate ( "192.168.100.1" , new libcore.javax.net.ssl.DefaultHostnameVerifierTest.StubX509Certificate ( "" ) . addSubjectAlternativeName ( libcore.javax.net.ssl.DefaultHostnameVerifierTest.ALT_IPA_NAME , "1.2.3.4" ) . addSubjectAlternativeName ( libcore.javax.net.ssl.DefaultHostnameVerifierTest.ALT_IPA_NAME , "192.168.100.1" ) ) ) ; }

Target:
public void testSubjectAltNameWithWildcard ( ) { assertTrue ( verifyWithServerCertificate ( "imap.g.com" , libcore.javax.net.ssl.DefaultHostnameVerifierTest.StubX509Certificate.dns ( "*.g.com" ) ) ) ; }
Source:
void readSyncDataset ( java.io.BufferedReader br ) throws java.io.IOException { updateDataSet ( com.android.ddmuilib.SysinfoPanel.BugReportParser.readSyncDataset ( br ) ) ; }

Target:
private void updateDataSet ( final java.util.List < com.android.ddmuilib.SysinfoPanel.BugReportParser.DataValue > data , final java.lang.String label ) { org.eclipse.swt.widgets.Display.getDefault ( ) . syncExec ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { mLabel.setText ( label ) ; for ( com.android.ddmuilib.SysinfoPanel.BugReportParser.DataValue d : data ) { mDataset.setValue ( d.name , d.value ) ; } } } ) ; }
Source:
public void feed ( long offset , long size , com.android.apksigner.core.util.DataSink sink ) throws java.io.IOException { checkChunkValid ( offset , size ) ; int chunkPosition = ( ( int ) ( offset ) ) ; int chunkLimit = ( ( int ) ( chunkPosition + size ) ) ; java.nio.ByteBuffer chunk ; synchronized ( mBuffer ) { mBuffer.position ( 0 ) ; mBuffer.limit ( chunkLimit ) ; mBuffer.position ( chunkPosition ) ; chunk = mBuffer.slice ( ) ; } sink.consume ( chunk ) ; }

Target:
public void feed ( long offset , long size , com.android.apksigner.core.util.DataSink sink ) throws java.io.IOException { if ( ( size < 0 ) || ( size > ( mSize ) ) ) { throw new java.lang.IllegalArgumentException ( ( ( ( "size: " + size ) + ", source size: " ) + ( mSize ) ) ) ; } sink.consume ( getByteBuffer ( offset , ( ( int ) ( size ) ) ) ) ; }
Source:
public java.util.Set < ? extends javax.lang.model.element.Element > process ( com.google.common.collect.SetMultimap < java.lang.Class < ? extends java.lang.annotation.Annotation > , javax.lang.model.element.Element > elementsByAnnotation ) { for ( javax.lang.model.element.Element element : elementsByAnnotation.get ( com.android.dialer.rootcomponentgenerator.annotation.IncludeInDialerRoot.class ) ) { generateMetadataFor ( com.android.dialer.rootcomponentgenerator.annotation.IncludeInDialerRoot.class , com.google.auto.common.MoreElements.asType ( element ) ) ; } for ( javax.lang.model.element.Element element : elementsByAnnotation.get ( com.android.dialer.rootcomponentgenerator.annotation.InstallIn.class ) ) { if ( ( element.getAnnotation ( com.android.dialer.rootcomponentgenerator.annotation.InstallIn.class ) . variants ( ) . length ) == 0 ) { processingEnv.getMessager ( ) . printMessage ( javax.tools.Diagnostic.Kind.ERROR , java.lang.String.format ( "@InstallIn %s must have at least one variant" , element ) ) ; continue ; } generateMetadataFor ( com.android.dialer.rootcomponentgenerator.annotation.InstallIn.class , com.google.auto.common.MoreElements.asType ( element ) ) ; } return java.util.Collections.emptySet ( ) ; }

Target:
public java.util.Set < ? extends javax.lang.model.element.Element > process ( com.google.common.collect.SetMultimap < java.lang.Class < ? extends java.lang.annotation.Annotation > , javax.lang.model.element.Element > elementsByAnnotation ) { for ( javax.lang.model.element.Element element : elementsByAnnotation.get ( com.android.dialer.inject.IncludeInDialerRoot.class ) ) { generateMetadataFor ( com.android.dialer.inject.IncludeInDialerRoot.class , com.google.auto.common.MoreElements.asType ( element ) ) ; } for ( javax.lang.model.element.Element element : elementsByAnnotation.get ( com.android.dialer.inject.InstallIn.class ) ) { if ( ( element.getAnnotation ( com.android.dialer.inject.InstallIn.class ) . variants ( ) . length ) == 0 ) { processingEnv.getMessager ( ) . printMessage ( javax.tools.Diagnostic.Kind.ERROR , java.lang.String.format ( "@InstallIn %s must have at least one variant" , element ) ) ; continue ; } generateMetadataFor ( com.android.dialer.inject.InstallIn.class , com.google.auto.common.MoreElements.asType ( element ) ) ; } return java.util.Collections.emptySet ( ) ; }
Source:
private static < T > com.google.common.util.concurrent.ListenableFuture < T > submitAndAddQueueListener ( com.google.common.util.concurrent.ListeningExecutorService executorService , java.util.concurrent.Callable < T > task , final java.util.concurrent.BlockingQueue < java.util.concurrent.Future < T > > queue ) { final com.google.common.util.concurrent.ListenableFuture < T > future = executorService.submit ( task ) ; future.addListener ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { queue.add ( future ) ; } } , com.google.common.util.concurrent.MoreExecutors.sameThreadExecutor ( ) ) ; return future ; }

Target:
private static < T > com.google.common.util.concurrent.ListenableFuture < T > submitAndAddQueueListener ( com.google.common.util.concurrent.ListeningExecutorService executorService , java.util.concurrent.Callable < T > task , final java.util.concurrent.BlockingQueue < java.util.concurrent.Future < T > > queue ) { final com.google.common.util.concurrent.ListenableFuture < T > future = executorService.submit ( task ) ; future.addListener ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { queue.add ( future ) ; } } , com.google.common.util.concurrent.MoreExecutors.directExecutor ( ) ) ; return future ; }
Source:
synchronized void nScriptSetVarF ( int id , int slot , float val ) { validate ( ) ; rsnScriptSetVarF ( mContext , id , slot , val ) ; }

Target:
synchronized void nScriptForEach ( long id , int slot , long ain , long aout , byte [ ] params ) { validate ( ) ; if ( params == null ) { rsnScriptForEach ( mContext , id , slot , ain , aout ) ; } else { rsnScriptForEach ( mContext , id , slot , ain , aout , params ) ; } }
Source:
private synchronized void markIfNecessary ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JNode node , @ javax.annotation.Nonnull com.android.jack.shrob.spec.KeepModifier modifier ) { com.android.jack.shrob.seed.SeedMarker marker = node.getMarker ( com.android.jack.shrob.seed.SeedMarker.class ) ; if ( marker == null ) { node.addMarker ( new com.android.jack.shrob.seed.SeedMarker ( modifier ) ) ; } else { com.android.jack.shrob.spec.KeepModifier previousModifier = marker.getModifier ( ) ; if ( previousModifier != modifier ) { marker.setModifier ( new com.android.jack.shrob.spec.KeepModifier ( ) ) ; } } }

Target:
private void markIfNecessary ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JNode node , @ javax.annotation.Nonnull com.android.jack.shrob.spec.KeepModifier modifier ) { com.android.jack.shrob.seed.SeedMarker marker = node.addMarkerIfAbsent ( new com.android.jack.shrob.seed.SeedMarker ( modifier ) ) ; if ( marker != null ) { marker.mergeModifier ( modifier ) ; } }
Source:
public static java.lang.String intToDoubleToIntPrint ( int value ) { double d = ( ( double ) ( value ) ) ; int i = ( ( int ) ( d ) ) ; return ( ( "d=" + d ) + ", i=" ) + i ; }

Target:
public static java.lang.String $noinline$floatToDoubleToIntPrint ( float value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } double d = ( ( double ) ( value ) ) ; int i = ( ( int ) ( d ) ) ; return ( ( "d=" + d ) + ", i=" ) + i ; }
Source:
private boolean isStagedStatus ( java.lang.String requiredStatus , java.lang.String versionString ) { try { return ( getStagedOperationType ( ) . equals ( requiredStatus ) ) && ( getStagedInstallVersion ( ) . equals ( versionString ) ) ; } catch ( java.lang.Exception e ) { throw new java.lang.AssertionError ( "Failed to read staged status" , e ) ; } }

Target:
private boolean isStagedUninstall ( ) { try { return getStagedOperationType ( ) . equals ( com.android.timezone.xts.TimeZoneUpdateHostTest.STAGED_OPERATION_UNINSTALL ) ; } catch ( java.lang.Exception e ) { throw new java.lang.AssertionError ( "Failed to read staged status" , e ) ; } }
Source:
public void copy2DRangeFrom ( int xoff , int yoff , int w , int h , byte [ ] data ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy2DRangeFrom" ) ; validateIsInt8 ( ) ; copy2DRangeFromUnchecked ( xoff , yoff , w , h , data ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copy1DRangeFrom ( int off , int count , byte [ ] d ) { validateIsInt8 ( ) ; copy1DRangeFromUnchecked ( off , count , d , Element.DataType.SIGNED_8 , d.length ) ; }
Source:
private void setAndBroadcastNetworkSetTime ( long time ) { if ( com.android.internal.telephony.NitzStateMachine.DBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.NitzStateMachine.LOG_TAG , ( ( "setAndBroadcastNetworkSetTime: time=" + time ) + "ms" ) ) ; } android.os.SystemClock.setCurrentTimeMillis ( time ) ; android.content.Intent intent = new android.content.Intent ( TelephonyIntents.ACTION_NETWORK_SET_TIME ) ; intent.addFlags ( Intent.FLAG_RECEIVER_REPLACE_PENDING ) ; intent.putExtra ( "time" , time ) ; mContext.sendStickyBroadcastAsUser ( intent , UserHandle.ALL ) ; com.android.internal.telephony.metrics.TelephonyMetrics.getInstance ( ) . writeNITZEvent ( mPhone.getPhoneId ( ) , time ) ; }

Target:
private void setAndBroadcastNetworkSetTime ( long time ) { if ( com.android.internal.telephony.NitzStateMachine.DBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.NitzStateMachine.LOG_TAG , ( ( "setAndBroadcastNetworkSetTime: time=" + time ) + "ms" ) ) ; } mTimeServiceHelper.setDeviceTime ( time ) ; com.android.internal.telephony.metrics.TelephonyMetrics.getInstance ( ) . writeNITZEvent ( mPhone.getPhoneId ( ) , time ) ; }
Source:
private static void onTransmitFollowupEvent ( short transactionId , int reason ) { if ( com.android.server.wifi.nan.WifiNanNative.VDBG ) { android.util.Log.v ( com.android.server.wifi.nan.WifiNanNative.TAG , ( ( ( "onTransmitFollowupEvent: transactionId=" + transactionId ) + ", reason=" ) + reason ) ) ; } if ( reason == ( com.android.server.wifi.nan.WifiNanNative.NAN_STATUS_SUCCESS ) ) { com.android.server.wifi.nan.WifiNanStateManager.getInstance ( ) . onMessageSendSuccessNotification ( transactionId ) ; } else { com.android.server.wifi.nan.WifiNanStateManager.getInstance ( ) . onMessageSendFailNotification ( transactionId , com.android.server.wifi.nan.WifiNanNative.translateHalStatusToNanSessionCallbackReason ( reason ) ) ; } }

Target:
private static void onDisabledEvent ( int status ) { if ( com.android.server.wifi.nan.WifiNanNative.VDBG ) android.util.Log.v ( com.android.server.wifi.nan.WifiNanNative.TAG , ( "onDisabledEvent: status=" + status ) ) ; com.android.server.wifi.nan.WifiNanStateManager.getInstance ( ) . onNanDownNotification ( status ) ; }
Source:
public static void computeAtanh ( android.renderscript.cts.TestAtanh.ArgumentsFloatFloat args ) { args.ulf = 5 ; args.ulfRelaxed = 128 ; double x = ( ( double ) ( args.in ) ) ; args.out = ( ( float ) ( ( ( java.lang.StrictMath.log ( ( 1 + x ) ) ) - ( java.lang.StrictMath.log ( ( 1 - x ) ) ) ) / 2 ) ) ; }

Target:
public static void computeAtanh ( android.renderscript.cts.TestAtanh.ArgumentsFloatFloat args ) { args.ulf = 5 ; args.ulfRelaxed = 128 ; double x = ( ( double ) ( args.in ) ) ; args.out = ( ( float ) ( ( java.lang.StrictMath.log ( ( ( x + 1.0 ) / ( x - 1.0 ) ) ) ) / 2.0 ) ) ; }
Source:
public android.support.v7.widget.RecyclerView.ViewHolder onCreateViewHolder ( android.view.ViewGroup viewGroup , @ com.android.dialer.calllog.ui.NewCallLogAdapter.RowType int viewType ) { switch ( viewType ) { case com.android.dialer.calllog.ui.NewCallLogAdapter.RowType.HEADER_TODAY : case com.android.dialer.calllog.ui.NewCallLogAdapter.RowType.HEADER_OLDER : return new com.android.dialer.calllog.ui.HeaderViewHolder ( android.view.LayoutInflater.from ( viewGroup.getContext ( ) ) . inflate ( R.layout.new_call_log_header , viewGroup , false ) ) ; case com.android.dialer.calllog.ui.NewCallLogAdapter.RowType.CALL_LOG_ENTRY : return new com.android.dialer.calllog.ui.NewCallLogViewHolder ( android.view.LayoutInflater.from ( viewGroup.getContext ( ) ) . inflate ( R.layout.new_call_log_entry , viewGroup , false ) , clock , realtimeRowProcessor ) ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( ( "Unsupported view type: " + viewType ) ) ; } }

Target:
public android.support.v7.widget.RecyclerView.ViewHolder onCreateViewHolder ( android.view.ViewGroup viewGroup , @ com.android.dialer.calllog.ui.NewCallLogAdapter.RowType int viewType ) { switch ( viewType ) { case com.android.dialer.calllog.ui.NewCallLogAdapter.RowType.HEADER_TODAY : case com.android.dialer.calllog.ui.NewCallLogAdapter.RowType.HEADER_YESTERDAY : case com.android.dialer.calllog.ui.NewCallLogAdapter.RowType.HEADER_OLDER : return new com.android.dialer.calllog.ui.HeaderViewHolder ( android.view.LayoutInflater.from ( viewGroup.getContext ( ) ) . inflate ( R.layout.new_call_log_header , viewGroup , false ) ) ; case com.android.dialer.calllog.ui.NewCallLogAdapter.RowType.CALL_LOG_ENTRY : return new com.android.dialer.calllog.ui.NewCallLogViewHolder ( android.view.LayoutInflater.from ( viewGroup.getContext ( ) ) . inflate ( R.layout.new_call_log_entry , viewGroup , false ) , clock , realtimeRowProcessor ) ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( ( "Unsupported view type: " + viewType ) ) ; } }
Source:
private org.eclipse.swt.graphics.Point getElementCenter ( com.android.monkeyrunner.easy.By selector ) { com.android.hierarchyviewerlib.device.ViewNode node = mHierarchyViewer.findView ( selector ) ; if ( node == null ) { throw new org.python.core.PyException ( org.python.core.Py.ValueError , java.lang.String.format ( "View not found: %s" , selector ) ) ; } org.eclipse.swt.graphics.Point p = com.android.monkeyrunner.easy.HierarchyViewer.getAbsoluteCenterOfView ( node ) ; return p ; }

Target:
public java.lang.String getFocusedWindowId ( ) { return mHierarchyViewer.getFocusedWindowName ( ) ; }
Source:
public int getState ( ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.DEBUG ) { android.util.Log.d ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , ( "getState = " + ( mService.getState ( ) ) ) ) ; } com.android.bluetooth.pbap.BluetoothPbapService service = getService ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_PERM ) ; if ( service == null ) { return android.bluetooth.BluetoothProfile.STATE_DISCONNECTED ; } return service.getState ( ) ; }

Target:
java.util.List < android.bluetooth.BluetoothDevice > getDevicesMatchingConnectionStates ( int [ ] states ) { enforceCallingOrSelfPermission ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; java.util.List < android.bluetooth.BluetoothDevice > devices = new java.util.ArrayList < android.bluetooth.BluetoothDevice > ( ) ; if ( ( mRemoteDevice ) != null ) { for ( int state : states ) { if ( state == ( mState ) ) { devices.add ( mRemoteDevice ) ; break ; } } } return devices ; }
Source:
public void test_removeFirst ( ) { ll.removeFirst ( ) ; assertTrue ( "Failed to remove first element" , ( ( ll.getFirst ( ) ) != ( objArray [ 0 ] ) ) ) ; ll.clear ( ) ; try { ll.removeFirst ( ) ; fail ( "NoSuchElementException expected" ) ; } catch ( java.util.NoSuchElementException e ) { } }

Target:
public void test_removeLast ( ) { ll.removeLast ( ) ; assertTrue ( "Failed to remove last element" , ( ( ll.getLast ( ) ) != ( objArray [ ( ( objArray.length ) - 1 ) ] ) ) ) ; java.util.LinkedList list = new java.util.LinkedList ( ) ; try { list.removeLast ( ) ; fail ( "Should throw NoSuchElementException" ) ; } catch ( java.util.NoSuchElementException e ) { } }
Source:
public void test_parse ( ) throws java.text.ParseException { java.text.MessageFormat mf = new java.text.MessageFormat ( "{0,number,#,####}" , java.util.Locale.US ) ; java.lang.Object [ ] res = mf.parse ( "1,00,00" ) ; assertEquals ( "Assert 0: incorrect size of parsed data " , 1 , res.length ) ; assertEquals ( "Assert 1: parsed value incorrectly" , new java.lang.Long ( 10000 ) , ( ( java.lang.Long ) ( res [ 0 ] ) ) ) ; }

Target:
public void test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition ( ) { new org.apache.harmony.tests.java.text.Support_MessageFormat ( "test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition" ) . t_format_with_FieldPosition ( ) ; java.lang.String pattern = "On {4,date} at {3,time}, he ate {2,number, integer} hamburger{2,choice,1#|1<s}." ; java.text.MessageFormat format = new java.text.MessageFormat ( pattern , java.util.Locale.US ) ; java.lang.Object [ ] objects = new java.lang.Object [ ] { "" , new java.lang.Integer ( 3 ) , 8 , "" } ; try { format.format ( objects , new java.lang.StringBuffer ( ) , new java.text.FieldPosition ( java.text.DateFormat.Field.AM_PM ) ) ; fail ( ) ; } catch ( java.lang.IllegalArgumentException expected ) { } }
Source:
public void testKeyStore_IsKeyEntry_CA_Encrypted_Failure ( ) throws java.lang.Exception { setupPassword ( ) ; mKeyStore.load ( null , null ) ; assertTrue ( mAndroidKeyStore.put ( ( ( Credentials.CA_CERTIFICATE ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) , android.security.AndroidKeyStoreTest.FAKE_CA_1 , KeyStore.UID_SELF , KeyStore.FLAG_ENCRYPTED ) ) ; assertFalse ( "Should return false for CA certificate" , mKeyStore.isKeyEntry ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) ; }

Target:
public void testKeyStore_IsKeyEntry_CA_Encrypted_Failure ( ) throws java.lang.Exception { setupPassword ( ) ; mKeyStore.load ( null , null ) ; assertTrue ( mAndroidKeyStore.put ( ( ( Credentials.CA_CERTIFICATE ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) , android.security.AndroidKeyStoreTest.FAKE_RSA_CA_1 , KeyStore.UID_SELF , KeyStore.FLAG_ENCRYPTED ) ) ; assertFalse ( "Should return false for CA certificate" , mKeyStore.isKeyEntry ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) ; }
Source:
private void createContextMenu ( ) { mMenuManager = new org.eclipse.jface.action.MenuManager ( ) ; createMenuAction ( mMenuManager ) ; setMenu ( mMenuManager.createContextMenu ( this ) ) ; }

Target:
public void run ( ) { for ( com.android.ide.eclipse.adt.editors.layout.gscripts.MenuAction a2 : actionsMap.get ( action.getId ( ) ) ) { if ( a2 instanceof com.android.ide.eclipse.adt.editors.layout.gscripts.MenuAction.Action ) { groovy.lang.Closure c = ( ( com.android.ide.eclipse.adt.editors.layout.gscripts.MenuAction.Action ) ( a2 ) ) . getAction ( ) ; if ( c != null ) { mRulesEngine.callClosure ( ( ( com.android.ide.eclipse.adt.editors.layout.gscripts.MenuAction.Action ) ( a2 ) ) . getAction ( ) , action , null , ( ! isChecked ) ) ; } } } }
Source:
public int hashCode ( ) { if ( ( mValue ) != null ) { return mValue.hashCode ( ) ; } return 0 ; }

Target:
public java.lang.String getFolderSegment ( com.android.sdklib.IAndroidTarget target ) { if ( ( mValue ) != null ) { if ( target != null ) { com.android.sdklib.AndroidVersion version = target.getVersion ( ) ; if ( ( ( version.getApiLevel ( ) ) <= 3 ) && ( ( version.getCodename ( ) ) == null ) ) { return mValue.getLegacyValue ( ) ; } } return mValue.getValue ( ) ; } return "" ; }
Source:
final void internalAddCall ( android.telecom.ParcelableCall parcelableCall ) { android.telecom.Call call = new android.telecom.Call ( this , parcelableCall.getId ( ) , mInCallAdapter , parcelableCall.getState ( ) ) ; mCallByTelecomCallId.put ( parcelableCall.getId ( ) , call ) ; mCalls.add ( call ) ; checkCallTree ( parcelableCall ) ; call.internalUpdate ( parcelableCall , mCallByTelecomCallId ) ; fireCallAdded ( call ) ; }

Target:
final void internalAddCall ( android.telecom.ParcelableCall parcelableCall ) { android.telecom.Call call = new android.telecom.Call ( this , parcelableCall.getId ( ) , mInCallAdapter , parcelableCall.getState ( ) , mCallingPackage ) ; mCallByTelecomCallId.put ( parcelableCall.getId ( ) , call ) ; mCalls.add ( call ) ; checkCallTree ( parcelableCall ) ; call.internalUpdate ( parcelableCall , mCallByTelecomCallId ) ; fireCallAdded ( call ) ; }
Source:
public void end ( com.android.monkeyrunner.adb.LinearInterpolator.Point point ) { try { manager.touchUp ( point.getX ( ) , point.getY ( ) ) ; } catch ( java.io.IOException e ) { com.android.monkeyrunner.adb.AdbMonkeyDevice.LOG.log ( java.util.logging.Level.SEVERE , "Error sending drag end event" , e ) ; } }

Target:
public void end ( com.android.monkeyrunner.adb.LinearInterpolator.Point point ) { try { manager.touchMove ( point.getX ( ) , point.getY ( ) ) ; manager.touchUp ( point.getX ( ) , point.getY ( ) ) ; } catch ( java.io.IOException e ) { com.android.monkeyrunner.adb.AdbMonkeyDevice.LOG.log ( java.util.logging.Level.SEVERE , "Error sending drag end event" , e ) ; } }
Source:
static void rethrow ( final java.lang.Throwable ex ) { if ( ex != null ) { if ( ex instanceof java.lang.Error ) throw ( ( java.lang.Error ) ( ex ) ) ; if ( ex instanceof java.lang.RuntimeException ) throw ( ( java.lang.RuntimeException ) ( ex ) ) ; throw java.util.concurrent.ForkJoinTask.uncheckedThrowable ( ex , java.lang.RuntimeException.class ) ; } }

Target:
static void rethrow ( java.lang.Throwable ex ) { if ( ex != null ) java.util.concurrent.ForkJoinTask.< java.lang.RuntimeException > uncheckedThrow ( ex ) ; }
Source:
public void toStringNewArray001 ( ) { java.util.List < com.android.jack.ir.ast.JExpression > dims = new java.util.ArrayList < com.android.jack.ir.ast.JExpression > ( ) ; dims.add ( new com.android.jack.ir.ast.JAbsentArrayDimension ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN ) ) ; com.android.jack.ir.ast.JNewArray newArray = com.android.jack.ir.ast.JNewArray.createWithDims ( SourceInfo.UNKNOWN , JPrimitiveTypeEnum.INT.getType ( ) . getArray ( ) , dims ) ; com.android.jack.util.DefaultTextOutput out = new com.android.jack.util.DefaultTextOutput ( false ) ; com.android.jack.ir.impl.ToStringGenerationVisitor v = new com.android.jack.ir.impl.ToStringGenerationVisitor ( out ) ; v.accept ( newArray ) ; junit.framework.Assert.assertTrue ( "new int[]" . equals ( out.toString ( ) ) ) ; }

Target:
public void toStringNewArray001 ( ) { java.util.List < com.android.jack.ir.ast.JExpression > dims = new java.util.ArrayList < com.android.jack.ir.ast.JExpression > ( ) ; dims.add ( new com.android.jack.ir.ast.JAbsentArrayDimension ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN ) ) ; com.android.jack.ir.ast.JNewArray newArray = com.android.jack.ir.ast.JNewArray.createWithDims ( SourceInfo.UNKNOWN , JPrimitiveTypeEnum.INT.getType ( ) . getArray ( ) , dims ) ; com.android.jack.util.DefaultTextOutput out = new com.android.jack.util.DefaultTextOutput ( false ) ; com.android.jack.ir.impl.BaseGenerationVisitor v = new com.android.jack.ir.impl.BaseGenerationVisitor ( out ) ; v.accept ( newArray ) ; junit.framework.Assert.assertTrue ( "new int[]" . equals ( out.toString ( ) ) ) ; }