auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public com.android.sched.vfs.InputOutputVFile getFile ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath typePath ) throws com.android.jack.library.FileTypeDoesNotExistException { try { return getSectionVFS ( fileType ) . getRootInputOutputVDir ( ) . getInputVFile ( buildFileVPath ( fileType , typePath ) ) ; } catch ( com.android.sched.util.file.NotFileOrDirectoryException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } catch ( com.android.sched.util.file.NoSuchFileException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } catch ( com.android.sched.util.file.CannotCreateFileException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } }

Target:
public com.android.sched.vfs.InputOutputVFile getFile ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath typePath ) throws com.android.jack.library.FileTypeDoesNotExistException { try { return getSectionVFS ( fileType ) . getRootInputOutputVDir ( ) . getInputVFile ( buildFileVPath ( fileType , typePath ) ) ; } catch ( com.android.sched.util.file.CannotCreateFileException | com.android.sched.util.file.NoSuchFileException | com.android.sched.util.file.NotFileOrDirectoryException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } }
Source:
public static com.android.ide.common.resources.configuration.CountryCodeQualifier getQualifier ( java.lang.String segment ) { java.util.regex.Matcher m = com.android.ide.common.resources.configuration.CountryCodeQualifier.sCountryCodePattern.matcher ( segment ) ; if ( m.matches ( ) ) { java.lang.String v = m.group ( 1 ) ; int code = - 1 ; try { code = java.lang.Integer.parseInt ( v ) ; } catch ( java.lang.NumberFormatException e ) { return null ; } com.android.ide.common.resources.configuration.CountryCodeQualifier qualifier = new com.android.ide.common.resources.configuration.CountryCodeQualifier ( code ) ; return qualifier ; } return null ; }

Target:
public static com.android.ide.common.resources.configuration.CountryCodeQualifier getQualifier ( java.lang.String segment ) { java.util.regex.Matcher m = com.android.ide.common.resources.configuration.CountryCodeQualifier.sCountryCodePattern.matcher ( segment ) ; if ( m.matches ( ) ) { java.lang.String v = m.group ( 1 ) ; int code ; try { code = java.lang.Integer.parseInt ( v ) ; } catch ( java.lang.NumberFormatException e ) { return null ; } com.android.ide.common.resources.configuration.CountryCodeQualifier qualifier = new com.android.ide.common.resources.configuration.CountryCodeQualifier ( code ) ; return qualifier ; } return null ; }
Source:
public void test_getSoTimeout ( ) throws java.lang.Exception { java.net.DatagramSocket ds = new java.net.DatagramSocket ( ) ; final int timeoutSet = 100 ; ds.setSoTimeout ( timeoutSet ) ; int actualTimeout = ds.getSoTimeout ( ) ; assertTrue ( "Returned incorrect timeout" , ( ( java.lang.Math.abs ( ( actualTimeout - timeoutSet ) ) ) <= 10 ) ) ; }

Target:
public void test_getSoTimeout ( ) throws java.lang.Exception { try ( java.net.DatagramSocket ds = new java.net.DatagramSocket ( ) ) { final int timeoutSet = 100 ; ds.setSoTimeout ( timeoutSet ) ; int actualTimeout = ds.getSoTimeout ( ) ; assertTrue ( "Returned incorrect timeout" , ( ( java.lang.Math.abs ( ( actualTimeout - timeoutSet ) ) ) <= 10 ) ) ; } }
Source:
public java.lang.String getMacAddress ( ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { return mSupplicantStaIfaceHal.getMacAddress ( ) ; } else { java.lang.String ret = doStringCommand ( "DRIVER MACADDR" ) ; if ( ! ( android.text.TextUtils.isEmpty ( ret ) ) ) { java.lang.String [ ] tokens = ret.split ( " = " ) ; if ( ( tokens.length ) == 2 ) return tokens [ 1 ] ; } return null ; } }

Target:
public java.lang.String getMacAddress ( ) { return mSupplicantStaIfaceHal.getMacAddress ( ) ; }
Source:
public void testGetCurrentNetworkWpsNfcConfigurationToken ( ) throws java.lang.Exception { java.lang.String token = "45adbc1" ; org.mockito.Mockito.when ( mSupplicantStaNetworkMock.getWpsNfcConfigurationToken ( ) ) . thenReturn ( token ) ; executeAndValidateInitializationSequence ( false , false , false ) ; assertTrue ( ( ( mDut.getCurrentNetworkWpsNfcConfigurationToken ( ) ) == null ) ) ; executeAndValidateConnectSequence ( 4 , false , false ) ; assertEquals ( token , mDut.getCurrentNetworkWpsNfcConfigurationToken ( ) ) ; }

Target:
public void testGetCurrentNetworkWpsNfcConfigurationToken ( ) throws java.lang.Exception { java.lang.String token = "45adbc1" ; org.mockito.Mockito.when ( mSupplicantStaNetworkMock.getWpsNfcConfigurationToken ( ) ) . thenReturn ( token ) ; executeAndValidateInitializationSequence ( ) ; assertTrue ( ( ( mDut.getCurrentNetworkWpsNfcConfigurationToken ( ) ) == null ) ) ; executeAndValidateConnectSequence ( 4 , false , false ) ; assertEquals ( token , mDut.getCurrentNetworkWpsNfcConfigurationToken ( ) ) ; }
Source:
public void testGetCoreInterfaceRewritingTarget_staticInterfaceMethod ( ) throws java.lang.Exception { com.google.devtools.build.android.desugar.CoreLibrarySupport support = new com.google.devtools.build.android.desugar.CoreLibrarySupport ( new com.google.devtools.build.android.desugar.CoreLibraryRewriter ( "" ) , java.lang.Thread.currentThread ( ) . getContextClassLoader ( ) , null , com.google.common.collect.ImmutableList.of ( ) , com.google.common.collect.ImmutableList.of ( "java/util/Comparator" ) , com.google.common.collect.ImmutableList.of ( ) , com.google.common.collect.ImmutableList.of ( ) ) ; com.google.common.truth.Truth.assertThat ( support.getCoreInterfaceRewritingTarget ( Opcodes.INVOKESTATIC , "java/util/Comparator" , "reverseOrder" , "()Ljava/util/Comparator;" , true ) ) . isEqualTo ( java.util.Comparator.class ) ; }

Target:
public void testGetCoreInterfaceRewritingTarget_staticInterfaceMethod ( ) throws java.lang.Exception { com.google.devtools.build.android.desugar.CoreLibrarySupport support = new com.google.devtools.build.android.desugar.CoreLibrarySupport ( new com.google.devtools.build.android.desugar.CoreLibraryRewriter ( "" ) , java.lang.Thread.currentThread ( ) . getContextClassLoader ( ) , com.google.common.collect.ImmutableList.of ( ) , com.google.common.collect.ImmutableList.of ( "java/util/Comparator" ) , com.google.common.collect.ImmutableList.of ( ) , com.google.common.collect.ImmutableList.of ( ) ) ; com.google.common.truth.Truth.assertThat ( support.getCoreInterfaceRewritingTarget ( Opcodes.INVOKESTATIC , "java/util/Comparator" , "reverseOrder" , "()Ljava/util/Comparator;" , true ) ) . isEqualTo ( java.util.Comparator.class ) ; }
Source:
void internalDelete ( @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.CannotDeleteFileException { ensureFullyLoaded ( ) ; for ( com.android.sched.vfs.BaseVDir wrappedDir : wrappedDirs ) { try { com.android.sched.vfs.BaseVFile vFile = wrappedDir.getVFile ( name ) ; wrappedDir.delete ( vFile ) ; } catch ( com.android.sched.util.file.NotFileException e ) { } catch ( com.android.sched.util.file.NoSuchFileException e ) { } } }

Target:
void internalDelete ( @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.CannotDeleteFileException { ensureFullyLoaded ( ) ; synchronized ( wrappedDirs ) { for ( com.android.sched.vfs.BaseVDir wrappedDir : wrappedDirs ) { try { com.android.sched.vfs.BaseVFile vFile = wrappedDir.getVFile ( name ) ; wrappedDir.delete ( vFile ) ; } catch ( com.android.sched.util.file.NotFileException e ) { } catch ( com.android.sched.util.file.NoSuchFileException e ) { } } } }
Source:
public boolean equals ( java.lang.Object other ) { if ( ! ( other instanceof com.android.dx.rop.code.RegisterSpec ) ) { if ( other instanceof com.android.dx.rop.code.RegisterSpec.ForComparison ) { com.android.dx.rop.code.RegisterSpec.ForComparison fc = ( ( com.android.dx.rop.code.RegisterSpec.ForComparison ) ( other ) ) ; return equals ( fc.reg , fc.type , fc.local ) ; } return false ; } com.android.dx.rop.code.RegisterSpec spec = ( ( com.android.dx.rop.code.RegisterSpec ) ( other ) ) ; return equals ( spec.reg , spec.type , spec.local ) ; }

Target:
public boolean equals ( java.lang.Object other ) { if ( ( this ) == other ) { return true ; } if ( ! ( other instanceof com.android.dx.rop.code.RegisterSpec ) ) { if ( other instanceof com.android.dx.rop.code.RegisterSpec.ForComparison ) { com.android.dx.rop.code.RegisterSpec.ForComparison fc = ( ( com.android.dx.rop.code.RegisterSpec.ForComparison ) ( other ) ) ; return equals ( fc.reg , fc.type , fc.local ) ; } return false ; } com.android.dx.rop.code.RegisterSpec spec = ( ( com.android.dx.rop.code.RegisterSpec ) ( other ) ) ; return equals ( spec.reg , spec.type , spec.local ) ; }
Source:
public void setUp ( ) { org.mockito.MockitoAnnotations.initMocks ( this ) ; mStorage = new com.android.networkrecommendation.DefaultNetworkRecommendationService.ScoreStorage ( ) ; mNetworkScoreManager = ( ( android.net.NetworkScoreManager ) ( android.support.test.InstrumentationRegistry.getTargetContext ( ) . getSystemService ( Context.NETWORK_SCORE_SERVICE ) ) ) ; mProvider = new com.android.networkrecommendation.DefaultNetworkRecommendationService.DefaultNetworkRecommendationProvider ( new android.os.Handler ( android.os.Looper.getMainLooper ( ) ) , mNetworkScoreManager , mStorage ) ; }

Target:
public void setUp ( ) { org.mockito.MockitoAnnotations.initMocks ( this ) ; mProvider = new com.android.networkrecommendation.DefaultNetworkRecommendationService.DefaultNetworkRecommendationProvider ( new android.os.Handler ( android.os.Looper.getMainLooper ( ) ) , mNetworkScoreManager , new com.android.networkrecommendation.DefaultNetworkRecommendationService.ScoreStorage ( ) ) ; }
Source:
public < T > T execute ( @ org.jetbrains.annotations.NotNull java.lang.String projectPath , @ org.jetbrains.annotations.Nullable org.jetbrains.plugins.gradle.settings.GradleExecutionSettings settings , @ org.jetbrains.annotations.NotNull com.intellij.util.Function < org.jetbrains.plugins.gradle.service.project.ProjectConnection , T > f ) { org.jetbrains.plugins.gradle.service.project.ProjectConnection connection = org.jetbrains.plugins.gradle.service.project.GradleExecutionHelper.getConnection ( projectPath , settings ) ; try { return f.fun ( connection ) ; } catch ( com.intellij.openapi.externalSystem.model.ExternalSystemException e ) { throw e ; } catch ( java.lang.Throwable e ) { throw new com.intellij.openapi.externalSystem.model.ExternalSystemException ( e ) ; } finally { try { connection.close ( ) ; } catch ( java.lang.Throwable e ) { } } }

Target:
public < T > T execute ( @ org.jetbrains.annotations.NotNull java.lang.String projectPath , @ org.jetbrains.annotations.Nullable org.jetbrains.plugins.gradle.settings.GradleExecutionSettings settings , @ org.jetbrains.annotations.NotNull com.intellij.util.Function < org.jetbrains.plugins.gradle.service.project.ProjectConnection , T > f ) { org.jetbrains.plugins.gradle.service.project.ProjectConnection connection = org.jetbrains.plugins.gradle.service.project.GradleExecutionHelper.getConnection ( projectPath , settings ) ; try { return f.fun ( connection ) ; } catch ( java.lang.Throwable e ) { throw new com.intellij.openapi.externalSystem.model.ExternalSystemException ( e ) ; } finally { try { connection.close ( ) ; } catch ( java.lang.Throwable e ) { } } }
Source:
public void disableScoring ( ) { if ( ( mNetworkScorerAppManager.isCallerActiveScorer ( getCallingUid ( ) ) ) || ( ( mContext.checkCallingOrSelfPermission ( permission.BROADCAST_NETWORK_PRIVILEGED ) ) == ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) ) { setScorerInternal ( null ) ; } else { throw new java.lang.SecurityException ( "Caller is neither the active scorer nor the scorer manager." ) ; } }

Target:
public void disableScoring ( ) { if ( ( mNetworkScorerAppManager.isCallerActiveScorer ( getCallingUid ( ) ) ) || ( ( mContext.checkCallingOrSelfPermission ( permission.BROADCAST_NETWORK_PRIVILEGED ) ) == ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) ) { } else { throw new java.lang.SecurityException ( "Caller is neither the active scorer nor the scorer manager." ) ; } }
Source:
public void test_ConstructorLjava_net_Proxy_Exception ( ) { java.net.SocketAddress addr1 = java.net.InetSocketAddress.createUnresolved ( "127.0.0.1" , 80 ) ; java.net.SocketAddress addr2 = new java.net.InetSocketAddress ( "localhost" , 80 ) ; java.net.Proxy proxy1 = new java.net.Proxy ( java.net.Proxy.Type.HTTP , addr1 ) ; try { new java.net.Socket ( proxy1 ) ; fail ( "should throw IllegalArgumentException" ) ; } catch ( java.lang.IllegalArgumentException e ) { } java.net.Proxy proxy2 = new java.net.Proxy ( java.net.Proxy.Type.SOCKS , addr1 ) ; new java.net.Socket ( proxy2 ) ; new java.net.Socket ( java.net.Proxy.NO_PROXY ) ; }

Target:
public void test_ConstructorLjava_net_Proxy_Exception ( ) { java.net.SocketAddress addr1 = java.net.InetSocketAddress.createUnresolved ( "127.0.0.1" , 80 ) ; java.net.Proxy proxy1 = new java.net.Proxy ( java.net.Proxy.Type.HTTP , addr1 ) ; try { new java.net.Socket ( proxy1 ) ; fail ( "should throw IllegalArgumentException" ) ; } catch ( java.lang.IllegalArgumentException e ) { } java.net.Proxy proxy2 = new java.net.Proxy ( java.net.Proxy.Type.SOCKS , addr1 ) ; new java.net.Socket ( proxy2 ) ; new java.net.Socket ( java.net.Proxy.NO_PROXY ) ; }
Source:
static int native_saveLayer ( int nativeCanvas , android.graphics.RectF bounds , int paint , int layerFlags ) { android.graphics.Canvas_Delegate canvasDelegate = android.graphics.Canvas_Delegate.sManager.getDelegate ( nativeCanvas ) ; if ( canvasDelegate == null ) { return 0 ; } android.graphics.Paint_Delegate paintDelegate = android.graphics.Paint_Delegate.getDelegate ( paint ) ; if ( paintDelegate == null ) { return 0 ; } return canvasDelegate.saveLayer ( bounds , paintDelegate , layerFlags ) ; }

Target:
static long native_saveLayer ( long nativeCanvas , android.graphics.RectF bounds , long paint , int layerFlags ) { android.graphics.Canvas_Delegate canvasDelegate = android.graphics.Canvas_Delegate.sManager.getDelegate ( nativeCanvas ) ; if ( canvasDelegate == null ) { return 0 ; } android.graphics.Paint_Delegate paintDelegate = android.graphics.Paint_Delegate.getDelegate ( paint ) ; if ( paintDelegate == null ) { return 0 ; } return canvasDelegate.saveLayer ( bounds , paintDelegate , layerFlags ) ; }
Source:
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 ) ) ; } } } }

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 ) { mRulesEngine.callClosure ( ( ( com.android.ide.eclipse.adt.editors.layout.gscripts.MenuAction.Action ) ( a2 ) ) . getAction ( ) , action , key , ( ! isChecked ) ) ; } } }
Source:
public void setUp ( ) throws java.lang.Exception { mTestProc = new java.io.File ( android.support.test.InstrumentationRegistry.getContext ( ) . getFilesDir ( ) , "proc" ) ; if ( mTestProc.exists ( ) ) { libcore.io.IoUtils.deleteContents ( mTestProc ) ; } mFactory = new com.android.internal.net.NetworkStatsFactory ( mTestProc ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { mTestProc = new java.io.File ( android.support.test.InstrumentationRegistry.getContext ( ) . getFilesDir ( ) , "proc" ) ; if ( mTestProc.exists ( ) ) { libcore.io.IoUtils.deleteContents ( mTestProc ) ; } mFactory = new com.android.internal.net.NetworkStatsFactory ( mTestProc , false ) ; }
Source:
public void testRemoveNetworksForUser ( ) throws java.lang.Exception { verifyAddNetworkToWifiConfigManager ( com.android.server.wifi.WifiConfigurationTestUtil.createOpenNetwork ( ) ) ; verifyAddNetworkToWifiConfigManager ( com.android.server.wifi.WifiConfigurationTestUtil.createPskNetwork ( ) ) ; verifyAddNetworkToWifiConfigManager ( com.android.server.wifi.WifiConfigurationTestUtil.createWepNetwork ( ) ) ; assertFalse ( mWifiConfigManager.getConfiguredNetworks ( ) . isEmpty ( ) ) ; assertTrue ( mWifiConfigManager.removeNetworksForUser ( com.android.server.wifi.WifiConfigManagerTest.TEST_DEFAULT_USER ) ) ; assertTrue ( mWifiConfigManager.getConfiguredNetworks ( ) . isEmpty ( ) ) ; }

Target:
public void testRemoveNetworksForUser ( ) throws java.lang.Exception { verifyAddNetworkToWifiConfigManager ( com.android.server.wifi.WifiConfigurationTestUtil.createOpenNetwork ( ) ) ; verifyAddNetworkToWifiConfigManager ( com.android.server.wifi.WifiConfigurationTestUtil.createPskNetwork ( ) ) ; verifyAddNetworkToWifiConfigManager ( com.android.server.wifi.WifiConfigurationTestUtil.createWepNetwork ( ) ) ; assertFalse ( mWifiConfigManager.getConfiguredNetworks ( ) . isEmpty ( ) ) ; assertEquals ( 3 , mWifiConfigManager.removeNetworksForUser ( com.android.server.wifi.WifiConfigManagerTest.TEST_DEFAULT_USER ) . size ( ) ) ; assertTrue ( mWifiConfigManager.getConfiguredNetworks ( ) . isEmpty ( ) ) ; }
Source:
private boolean isSupportedApplication ( com.android.internal.telephony.uicc.UiccCardApplication app ) { if ( ( ( ( ( ( app.getType ( ) ) != ( com.android.internal.telephony.uicc.IccCardApplicationStatus.AppType.APPTYPE_USIM ) ) && ( ( app.getType ( ) ) != ( com.android.internal.telephony.uicc.IccCardApplicationStatus.AppType.APPTYPE_CSIM ) ) ) && ( ( app.getType ( ) ) != ( com.android.internal.telephony.uicc.IccCardApplicationStatus.AppType.APPTYPE_ISIM ) ) ) && ( ( app.getType ( ) ) != ( com.android.internal.telephony.uicc.IccCardApplicationStatus.AppType.APPTYPE_SIM ) ) ) && ( ( app.getType ( ) ) != ( com.android.internal.telephony.uicc.IccCardApplicationStatus.AppType.APPTYPE_RUIM ) ) ) { return false ; } return true ; }

Target:
private boolean isSupportedApplication ( com.android.internal.telephony.uicc.UiccCardApplication app ) { if ( ( ( ( ( app.getType ( ) ) != ( com.android.internal.telephony.uicc.IccCardApplicationStatus.AppType.APPTYPE_USIM ) ) && ( ( app.getType ( ) ) != ( com.android.internal.telephony.uicc.IccCardApplicationStatus.AppType.APPTYPE_CSIM ) ) ) && ( ( app.getType ( ) ) != ( com.android.internal.telephony.uicc.IccCardApplicationStatus.AppType.APPTYPE_SIM ) ) ) && ( ( app.getType ( ) ) != ( com.android.internal.telephony.uicc.IccCardApplicationStatus.AppType.APPTYPE_RUIM ) ) ) { return false ; } return true ; }
Source:
public void run ( ) { android.renderscript.RenderScript pRS = android.renderscript.RenderScript.create ( mCtx ) ; com.android.rs.test.ScriptC_array_init s = new com.android.rs.test.ScriptC_array_init ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; checkInit ( s ) ; s.invoke_array_init_test ( ) ; pRS.finish ( ) ; waitForMessage ( ) ; pRS.destroy ( ) ; passTest ( ) ; }

Target:
public void run ( ) { android.renderscript.RenderScript pRS = android.renderscript.RenderScript.create ( mCtx ) ; com.android.rs.test.ScriptC_array_init s = new com.android.rs.test.ScriptC_array_init ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; checkInit ( s ) ; s.invoke_array_init_test ( ) ; pRS.finish ( ) ; waitForMessage ( ) ; s.destroy ( ) ; pRS.destroy ( ) ; passTest ( ) ; }
Source:
public void traverse ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JVisitor visitor ) { if ( visitor.visit ( this ) ) { visitor.accept ( ifExpr ) ; if ( ( thenStmt ) != null ) { visitor.accept ( thenStmt ) ; } if ( ( elseStmt ) != null ) { visitor.accept ( elseStmt ) ; } } visitor.endVisit ( this ) ; }

Target:
public void traverse ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JVisitor visitor ) { if ( visitor.visit ( this ) ) { visitor.accept ( ifExpr ) ; visitor.accept ( thenStmt ) ; if ( ( elseStmt ) != null ) { visitor.accept ( elseStmt ) ; } } visitor.endVisit ( this ) ; }
Source:
private com.android.jill.frontend.java.Variable getStackVariable ( @ javax.annotation.Nonnull org.objectweb.asm.tree.analysis.Frame < org.objectweb.asm.tree.analysis.BasicValue > frame , int stackIdx ) { int stackHeight = ( frame.getStackSize ( ) ) + stackIdx ; org.objectweb.asm.tree.analysis.BasicValue bv = frame.getStack ( stackHeight ) ; assert bv != ( org.objectweb.asm.tree.analysis.BasicValue.UNINITIALIZED_VALUE ) ; java.lang.String id = ( ( "-s_" + stackHeight ) + "_" ) + ( typeToUntypedDesc ( bv.getType ( ) ) ) ; com.android.jill.frontend.java.Variable variable = getVariable ( id , id , typeToUntyped ( bv.getType ( ) ) , null ) ; return variable ; }

Target:
private com.android.jill.frontend.java.Variable getStackVariable ( @ javax.annotation.Nonnull org.objectweb.asm.tree.analysis.Frame < org.objectweb.asm.tree.analysis.BasicValue > frame , int stackIdx ) { int stackHeight = ( frame.getStackSize ( ) ) + stackIdx ; org.objectweb.asm.tree.analysis.BasicValue bv = frame.getStack ( stackHeight ) ; assert bv != ( org.objectweb.asm.tree.analysis.BasicValue.UNINITIALIZED_VALUE ) ; java.lang.String id = ( ( "-s_" + stackHeight ) + "_" ) + ( typeToUntypedDesc ( bv.getType ( ) ) ) ; com.android.jill.frontend.java.Variable variable = getVariable ( id , id , typeToUntyped ( bv.getType ( ) ) ) ; return variable ; }
Source:
protected org.w3c.dom.Node createItemNode ( @ com.android.annotations.NonNull org.w3c.dom.Document document , @ com.android.annotations.NonNull com.android.builder.internal.compiler.DexKey itemKey , @ com.android.annotations.NonNull com.android.builder.internal.compiler.BaseItem item ) throws java.io.IOException { org.w3c.dom.Node itemNode = super . createItemNode ( document , itemKey , item ) ; org.w3c.dom.Attr attr = document.createAttribute ( com.android.builder.internal.compiler.PreDexCache.ATTR_JUMBO_MODE ) ; attr.setValue ( java.lang.Boolean.toString ( itemKey.isJumboMode ( ) ) ) ; itemNode.getAttributes ( ) . setNamedItem ( attr ) ; return itemNode ; }

Target:
protected org.w3c.dom.Node createItemNode ( @ com.android.annotations.NonNull org.w3c.dom.Document document , @ com.android.annotations.NonNull com.android.builder.internal.compiler.DexKey itemKey , @ com.android.annotations.NonNull com.android.builder.internal.compiler.BaseItem item ) throws java.io.IOException { org.w3c.dom.Node itemNode = super . createItemNode ( document , itemKey , item ) ; if ( itemNode != null ) { org.w3c.dom.Attr attr = document.createAttribute ( com.android.builder.internal.compiler.PreDexCache.ATTR_JUMBO_MODE ) ; attr.setValue ( java.lang.Boolean.toString ( itemKey.isJumboMode ( ) ) ) ; itemNode.getAttributes ( ) . setNamedItem ( attr ) ; } return itemNode ; }
Source:
public static org.apache.harmony.xnet.provider.jsse.OpenSSLEngine getInstance ( java.lang.String engine ) throws java.lang.IllegalArgumentException { if ( engine == null ) { throw new java.lang.NullPointerException ( "engine == null" ) ; } final int engineCtx ; synchronized ( org.apache.harmony.xnet.provider.jsse.OpenSSLEngine.mLoadingLock ) { engineCtx = org.apache.harmony.xnet.provider.jsse.NativeCrypto.ENGINE_by_id ( engine ) ; if ( engineCtx == 0 ) { throw new java.lang.IllegalArgumentException ( ( "Unknown ENGINE id: " + engine ) ) ; } org.apache.harmony.xnet.provider.jsse.NativeCrypto.ENGINE_add ( engineCtx ) ; } return new org.apache.harmony.xnet.provider.jsse.OpenSSLEngine ( engineCtx ) ; }

Target:
public static org.apache.harmony.xnet.provider.jsse.OpenSSLEngine getInstance ( java.lang.String engine ) throws java.lang.IllegalArgumentException { if ( engine == null ) { throw new java.lang.NullPointerException ( "engine == null" ) ; } final long engineCtx ; synchronized ( org.apache.harmony.xnet.provider.jsse.OpenSSLEngine.mLoadingLock ) { engineCtx = org.apache.harmony.xnet.provider.jsse.NativeCrypto.ENGINE_by_id ( engine ) ; if ( engineCtx == 0 ) { throw new java.lang.IllegalArgumentException ( ( "Unknown ENGINE id: " + engine ) ) ; } org.apache.harmony.xnet.provider.jsse.NativeCrypto.ENGINE_add ( engineCtx ) ; } return new org.apache.harmony.xnet.provider.jsse.OpenSSLEngine ( engineCtx ) ; }
Source:
private void castIfNeeded ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExpression exprToCast , @ javax.annotation.Nonnull com.android.jack.ir.ast.JType expectedType ) { if ( ( expectedType instanceof com.android.jack.ir.types.JNumericType ) && ( ! ( exprToCast.getType ( ) . isSameType ( expectedType ) ) ) ) { tr.append ( new com.android.jack.transformations.request.Replace ( exprToCast , new com.android.jack.ir.ast.JDynamicCastOperation ( exprToCast.getSourceInfo ( ) , expectedType , exprToCast ) ) ) ; } }

Target:
private void castIfNeeded ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExpression exprToCast , @ javax.annotation.Nonnull com.android.jack.ir.ast.JType expectedType ) { if ( ( expectedType instanceof com.android.jack.ir.types.JNumericType ) && ( ! ( exprToCast.getType ( ) . isSameType ( expectedType ) ) ) ) { tr.append ( new com.android.jack.transformations.request.Replace ( exprToCast , new com.android.jack.ir.ast.JDynamicCastOperation ( exprToCast.getSourceInfo ( ) , exprToCast , expectedType ) ) ) ; } }
Source:
public void test_x_UTF_16LE_BOM ( ) throws java.lang.Exception { java.nio.charset.Charset cs = java.nio.charset.Charset.forName ( "x-UTF-16LE-BOM" ) ; assertEncodes ( cs , "a٦" , 255 , 254 , 'a' , 0 , 102 , 6 ) ; assertDecodes ( cs , "a٦" , 255 , 254 , 'a' , 0 , 102 , 6 ) ; assertDecodes ( cs , "愀昆" , 254 , 255 , 'a' , 0 , 102 , 6 ) ; assertDecodes ( cs , "a٦" , 'a' , 0 , 102 , 6 ) ; }

Target:
public void test_x_UTF_16LE_BOM ( ) throws java.lang.Exception { java.nio.charset.Charset cs = java.nio.charset.Charset.forName ( "x-UTF-16LE-BOM" ) ; assertEncodes ( cs , "a٦" , 255 , 254 , 'a' , 0 , 102 , 6 ) ; assertDecodes ( cs , "a٦" , 255 , 254 , 'a' , 0 , 102 , 6 ) ; assertDecodes ( cs , "a٦" , 'a' , 0 , 102 , 6 ) ; }
Source:
public static void printVersion ( @ javax.annotation.Nonnull java.io.PrintStream printStream , @ javax.annotation.Nonnull com.android.jack.plugin.v01.Plugin plugin ) { printStream.println ( ( ( ( ( ( ( "Jack plugin: " + ( plugin.getFriendlyName ( ) ) ) + " (" ) + ( plugin.getCanonicalName ( ) ) ) + ") " ) + ( plugin.getVersion ( ) . getVerboseVersion ( ) ) ) + '.' ) ) ; printStream.println ( ( ( " " + ( plugin.getDescription ( ) ) ) + '.' ) ) ; }

Target:
public static void printVersion ( @ javax.annotation.Nonnull java.io.PrintStream printStream , @ javax.annotation.Nonnull com.android.jack.plugin.v01.Plugin plugin ) { printStream.println ( ( ( ( ( ( ( "Jack plugin: " + ( plugin.getCanonicalName ( ) ) ) + " (" ) + ( plugin.getFriendlyName ( ) ) ) + ") " ) + ( plugin.getVersion ( ) . getVerboseVersion ( ) ) ) + '.' ) ) ; printStream.println ( ( ( " " + ( plugin.getDescription ( ) ) ) + '.' ) ) ; }
Source:
public boolean requestDrawGL ( android.graphics.Canvas canvas , boolean waitForCompletion , android.view.View containerView ) { if ( ( mGLfunctor ) == null ) { mGLfunctor = new com.android.webview.chromium.DrawGLFunctor ( mAwContents.getAwDrawGLViewContext ( ) ) ; } boolean result = mGLfunctor.requestDrawGL ( ( ( android.view.HardwareCanvas ) ( canvas ) ) , containerView.getViewRootImpl ( ) ) ; if ( result && waitForCompletion ) { java.lang.Runnable r = new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { } } ; result = containerView.executeHardwareAction ( r ) ; } return result ; }

Target:
public boolean requestDrawGL ( android.graphics.Canvas canvas , boolean waitForCompletion , android.view.View containerView ) { if ( ( mGLfunctor ) == null ) { mGLfunctor = new com.android.webview.chromium.DrawGLFunctor ( mAwContents.getAwDrawGLViewContext ( ) ) ; } return mGLfunctor.requestDrawGL ( ( ( android.view.HardwareCanvas ) ( canvas ) ) , containerView.getViewRootImpl ( ) , waitForCompletion ) ; }
Source:
public int hashCode ( ) { int hash = 1 ; hash = ( hash * 17 ) + ( ( int ) ( ctx ) ) ; hash = ( hash * 31 ) + ( ( int ) ( ( engine ) == null ? 0 : engine.getEngineContext ( ) ) ) ; return hash ; }

Target:
public int hashCode ( ) { int hash = 1 ; hash = ( hash * 17 ) + ( ctx.hashCode ( ) ) ; hash = ( hash * 31 ) + ( ( int ) ( ( engine ) == null ? 0 : engine.getEngineContext ( ) ) ) ; return hash ; }
Source:
public static android.support.v8.renderscript.ScriptIntrinsic3DLUT create ( android.support.v8.renderscript.RenderScript rs , android.support.v8.renderscript.Element e ) { if ( rs.isNative ) { android.support.v8.renderscript.RenderScriptThunker rst = ( ( android.support.v8.renderscript.RenderScriptThunker ) ( rs ) ) ; return android.support.v8.renderscript.ScriptIntrinsic3DLUTThunker.create ( rs , e ) ; } int id = rs.nScriptIntrinsicCreate ( 8 , e.getID ( rs ) ) ; if ( ! ( e.isCompatible ( android.support.v8.renderscript.Element.U8_4 ( rs ) ) ) ) { throw new android.support.v8.renderscript.RSIllegalArgumentException ( "Element must be compatible with uchar4." ) ; } return new android.support.v8.renderscript.ScriptIntrinsic3DLUT ( id , rs , e ) ; }

Target:
public static android.support.v8.renderscript.ScriptIntrinsic3DLUT create ( android.support.v8.renderscript.RenderScript rs , android.support.v8.renderscript.Element e ) { int id = rs.nScriptIntrinsicCreate ( 8 , e.getID ( rs ) ) ; if ( ! ( e.isCompatible ( android.support.v8.renderscript.Element.U8_4 ( rs ) ) ) ) { throw new android.support.v8.renderscript.RSIllegalArgumentException ( "Element must be compatible with uchar4." ) ; } return new android.support.v8.renderscript.ScriptIntrinsic3DLUT ( id , rs , e ) ; }
Source:
private void enableAdvertising ( com.android.bluetooth.gatt.AdvertiseClient client , boolean enable ) { int advertiserId = client.advertiserId ; int advertiseTimeoutSeconds = ( ( int ) ( java.util.concurrent.TimeUnit.MILLISECONDS.toSeconds ( client.settings.getTimeout ( ) ) ) ) ; if ( mAdapterService.isMultiAdvertisementSupported ( ) ) { gattClientEnableAdvNative ( advertiserId , enable , advertiseTimeoutSeconds ) ; } else { gattAdvertiseNative ( client.advertiserId , enable ) ; } }

Target:
private void enableAdvertising ( com.android.bluetooth.gatt.AdvertiseClient client , boolean enable ) { int advertiserId = client.advertiserId ; int advertiseTimeoutSeconds = ( ( int ) ( java.util.concurrent.TimeUnit.MILLISECONDS.toSeconds ( client.settings.getTimeout ( ) ) ) ) ; if ( mAdapterService.isMultiAdvertisementSupported ( ) ) { gattClientEnableAdvNative ( advertiserId , enable , advertiseTimeoutSeconds ) ; } else { gattAdvertiseNative ( enable ) ; } }
Source:
private java.lang.String prepareProgressString ( java.lang.String progressMessage ) { return com.google.gct.testing.CloudTestingUtils.shouldShowProgressTimestamps ( ) ? ( ( ( progressMessage.substring ( 0 , ( ( progressMessage.length ( ) ) - 1 ) ) ) + "\t" ) + ( java.lang.System.currentTimeMillis ( ) ) ) + "\n" : progressMessage ; }

Target:
private java.lang.String prepareProgressString ( java.lang.String progressMessage ) { return com.google.gct.testing.CloudTestingUtils.shouldShowProgressTimestamps ( ) ? ( ( progressMessage + "\t" ) + ( java.lang.System.currentTimeMillis ( ) ) ) + "\n" : progressMessage + "\n" ; }
Source:
private static void printInContent ( com.intellij.execution.ui.RunContentDescriptor descriptor , java.lang.Object o , com.intellij.execution.ui.ConsoleViewContentType contentType ) { com.intellij.execution.console.RunIdeConsoleAction.selectContent ( descriptor ) ; com.intellij.execution.impl.ConsoleViewImpl consoleView = ( ( com.intellij.execution.impl.ConsoleViewImpl ) ( descriptor.getExecutionConsole ( ) ) ) ; consoleView.print ( ( o + "\n" ) , contentType ) ; consoleView.scrollToEnd ( ) ; }

Target:
private static void printInContent ( com.intellij.execution.ui.RunContentDescriptor descriptor , java.lang.Object o , com.intellij.execution.ui.ConsoleViewContentType contentType ) { com.intellij.execution.console.RunIdeConsoleAction.selectContent ( descriptor ) ; com.intellij.execution.impl.ConsoleViewImpl consoleView = ( ( com.intellij.execution.impl.ConsoleViewImpl ) ( descriptor.getExecutionConsole ( ) ) ) ; consoleView.print ( ( o + "\n" ) , contentType ) ; }
Source:
public boolean addLogger ( java.util.logging.Logger logger ) { final java.lang.String name = logger.getName ( ) ; if ( name == null ) { throw new java.lang.NullPointerException ( ) ; } drainLoggerRefQueueBounded ( ) ; java.util.logging.LogManager.LoggerContext cx = getUserContext ( ) ; if ( cx.addLocalLogger ( logger ) ) { loadLoggerHandlers ( logger , name , ( name + ".handlers" ) ) ; return true ; } else { return false ; } }

Target:
public boolean addLogger ( java.util.logging.Logger logger ) { final java.lang.String name = logger.getName ( ) ; if ( name == null ) { throw new java.lang.NullPointerException ( ) ; } drainLoggerRefQueueBounded ( ) ; java.util.logging.LogManager.LoggerContext cx = getUserContext ( ) ; if ( cx.addLocalLogger ( logger , this ) ) { loadLoggerHandlers ( logger , name , ( name + ".handlers" ) ) ; return true ; } else { return false ; } }
Source:
public void setCurrency ( java.util.Currency currency ) { if ( currency == null ) { throw new java.lang.NullPointerException ( "currency == null" ) ; } if ( currency == ( this . currency ) ) { return ; } this . currency = currency ; intlCurrencySymbol = currency.getCurrencyCode ( ) ; currencySymbol = currency.getSymbol ( locale ) ; }

Target:
public void setCurrency ( java.util.Currency currency ) { if ( currency == null ) { throw new java.lang.NullPointerException ( "currency == null" ) ; } this . currency = currency ; intlCurrencySymbol = currency.getCurrencyCode ( ) ; currencySymbol = currency.getSymbol ( locale ) ; }
Source:
void applyPositionAttributes ( ) { if ( ( getGridAttribute ( node , com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_COLUMN ) ) == null ) { setGridAttribute ( node , com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_COLUMN , column ) ; } if ( ( getGridAttribute ( node , com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_ROW ) ) == null ) { setGridAttribute ( node , com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_ROW , row ) ; } }

Target:
void applyPositionAttributes ( ) { setGridAttribute ( node , com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_COLUMN , column ) ; setGridAttribute ( node , com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_ROW , row ) ; }
Source:
public void testSubscribeTerminatedFail ( ) throws org.json.JSONException { final int subscribeId = 167 ; android.os.Bundle args = new android.os.Bundle ( ) ; args.putInt ( "subscribe_id" , subscribeId ) ; args.putInt ( "reason" , WifiAwareNative.AWARE_STATUS_INTERNAL_FAILURE ) ; com.android.server.wifi.aware.WifiAwareHalMock.callSubscribeTerminated ( com.android.server.wifi.HalMockUtils.convertBundleToJson ( args ) . toString ( ) ) ; org.mockito.Mockito.verify ( mAwareStateManager ) . onSessionTerminatedNotification ( subscribeId , DiscoverySessionCallback.TERMINATE_REASON_FAIL , false ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mAwareStateManager ) ; }

Target:
public void testSubscribeTerminatedFail ( ) throws org.json.JSONException { final int subscribeId = 167 ; android.os.Bundle args = new android.os.Bundle ( ) ; args.putInt ( "subscribe_id" , subscribeId ) ; args.putInt ( "reason" , WifiAwareNative.AWARE_STATUS_INTERNAL_FAILURE ) ; com.android.server.wifi.aware.WifiAwareHalMock.callSubscribeTerminated ( com.android.server.wifi.HalMockUtils.convertBundleToJson ( args ) . toString ( ) ) ; org.mockito.Mockito.verify ( mAwareStateManager ) . onSessionTerminatedNotification ( subscribeId , WifiAwareNative.AWARE_STATUS_INTERNAL_FAILURE , false ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mAwareStateManager ) ; }
Source:
public static < E > java.util.Set < java.util.Set < E > > powerSet ( java.util.Set < E > set ) { com.google.common.collect.ImmutableSet < E > input = com.google.common.collect.ImmutableSet.copyOf ( set ) ; com.google.common.base.Preconditions.checkArgument ( ( ( input.size ( ) ) <= 30 ) , "Too many elements to create power set: %s > 30" , input.size ( ) ) ; return new com.google.common.collect.Sets.PowerSet < E > ( input ) ; }

Target:
public static < E > java.util.Set < java.util.Set < E > > powerSet ( java.util.Set < E > set ) { return new com.google.common.collect.Sets.PowerSet < E > ( set ) ; }
Source:
public boolean equals ( @ javax.annotation.Nullable java.lang.Object object ) { if ( object == ( this ) ) { return true ; } if ( ( ( ( object instanceof com.google.common.collect.ImmutableSet ) && ( isHashCodeFast ( ) ) ) && ( ( ( com.google.common.collect.ImmutableSet < ? > ) ( object ) ) . isHashCodeFast ( ) ) ) && ( ( hashCode ( ) ) != ( object.hashCode ( ) ) ) ) { return false ; } return com.google.common.collect.Sets.equalsImpl ( this , object ) ; }

Target:
public boolean equals ( @ javax.annotation.Nullable java.lang.Object object ) { if ( object == ( this ) ) { return true ; } else if ( ( ( ( object instanceof com.google.common.collect.ImmutableSet ) && ( isHashCodeFast ( ) ) ) && ( ( ( com.google.common.collect.ImmutableSet < ? > ) ( object ) ) . isHashCodeFast ( ) ) ) && ( ( hashCode ( ) ) != ( object.hashCode ( ) ) ) ) { return false ; } return com.google.common.collect.Sets.equalsImpl ( this , object ) ; }
Source:
public void testOneSystemOneUserOneDeleted ( ) throws java.lang.Exception { org.conscrypt.TrustedCertificateStoreTest.install ( org.conscrypt.TrustedCertificateStoreTest.getCa1 ( ) , org.conscrypt.TrustedCertificateStoreTest.getAliasSystemCa1 ( ) ) ; store.installCertificate ( org.conscrypt.TrustedCertificateStoreTest.getCa2 ( ) ) ; store.deleteCertificateEntry ( org.conscrypt.TrustedCertificateStoreTest.getAliasSystemCa1 ( ) ) ; assertDeleted ( org.conscrypt.TrustedCertificateStoreTest.getCa1 ( ) , org.conscrypt.TrustedCertificateStoreTest.getAliasSystemCa1 ( ) ) ; assertRootCa ( org.conscrypt.TrustedCertificateStoreTest.getCa2 ( ) , org.conscrypt.TrustedCertificateStoreTest.getAliasUserCa2 ( ) ) ; assertAliases ( org.conscrypt.TrustedCertificateStoreTest.getAliasUserCa2 ( ) ) ; }

Target:
public void testOneSystemOneUserOneDeleted ( ) throws java.lang.Exception { install ( org.conscrypt.TrustedCertificateStoreTest.getCa1 ( ) , org.conscrypt.TrustedCertificateStoreTest.getAliasSystemCa1 ( ) ) ; store.installCertificate ( org.conscrypt.TrustedCertificateStoreTest.getCa2 ( ) ) ; store.deleteCertificateEntry ( org.conscrypt.TrustedCertificateStoreTest.getAliasSystemCa1 ( ) ) ; assertDeleted ( org.conscrypt.TrustedCertificateStoreTest.getCa1 ( ) , org.conscrypt.TrustedCertificateStoreTest.getAliasSystemCa1 ( ) ) ; assertRootCa ( org.conscrypt.TrustedCertificateStoreTest.getCa2 ( ) , org.conscrypt.TrustedCertificateStoreTest.getAliasUserCa2 ( ) ) ; assertAliases ( org.conscrypt.TrustedCertificateStoreTest.getAliasUserCa2 ( ) ) ; }
Source:
public void visitSwitch ( int opcode , int offset , int length , com.android.dx.cf.code.SwitchList cases , int padding ) { int sz = cases.size ( ) ; java.lang.StringBuffer sb = new java.lang.StringBuffer ( ( ( sz * 20 ) + 100 ) ) ; sb.append ( header ( offset ) ) ; if ( padding != 0 ) { sb.append ( ( " // padding: " + ( com.android.dx.util.Hex.u4 ( padding ) ) ) ) ; } sb.append ( '\n' ) ; for ( int i = 0 ; i < sz ; i ++ ) { sb.append ( " " ) ; sb.append ( com.android.dx.util.Hex.s4 ( cases.getValue ( i ) ) ) ; sb.append ( ": " ) ; sb.append ( com.android.dx.util.Hex.u2 ( cases.getTarget ( i ) ) ) ; sb.append ( '\n' ) ; } sb.append ( " default: " ) ; sb.append ( com.android.dx.util.Hex.u2 ( cases.getDefaultTarget ( ) ) ) ; observer.parsed ( bytes , offset , length , sb.toString ( ) ) ; }

Target:
public void visitSwitch ( int opcode , int offset , int length , com.android.dx.cf.code.SwitchList cases , int padding ) { int sz = cases.size ( ) ; java.lang.StringBuilder sb = new java.lang.StringBuilder ( ( ( sz * 20 ) + 100 ) ) ; sb.append ( header ( offset ) ) ; if ( padding != 0 ) { sb.append ( ( " // padding: " + ( com.android.dx.util.Hex.u4 ( padding ) ) ) ) ; } sb.append ( '\n' ) ; for ( int i = 0 ; i < sz ; i ++ ) { sb.append ( " " ) ; sb.append ( com.android.dx.util.Hex.s4 ( cases.getValue ( i ) ) ) ; sb.append ( ": " ) ; sb.append ( com.android.dx.util.Hex.u2 ( cases.getTarget ( i ) ) ) ; sb.append ( '\n' ) ; } sb.append ( " default: " ) ; sb.append ( com.android.dx.util.Hex.u2 ( cases.getDefaultTarget ( ) ) ) ; observer.parsed ( bytes , offset , length , sb.toString ( ) ) ; }
Source:
public void test_addPathToNameLintLjava_lang_String ( ) { for ( int type = 0 ; type <= 8 ; type ++ ) { try { new java.security.cert.X509CertSelector ( ) . addPathToName ( type , ( ( java.lang.String ) ( null ) ) ) ; fail ( "IOException expected!" ) ; } catch ( java.io.IOException ioe ) { } } }

Target:
public void test_addPathToNameLintLjava_lang_String ( ) { for ( int type = 0 ; type <= 8 ; type ++ ) { try { new java.security.cert.X509CertSelector ( ) . addPathToName ( type , ( ( java.lang.String ) ( null ) ) ) ; fail ( ) ; } catch ( java.io.IOException expected ) { } } }
Source:
public void TestTypes ( ) { java.lang.String [ ] locs = new java.lang.String [ ] { "en_US_VALLEYGIRL" , "en_US_VALLEYGIRL@collation=phonebook;calendar=japanese" , "en_US_VALLEYGIRL@collation=phonebook;calendar=gregorian" , "ja_JP@calendar=japanese" , "th_TH@calendar=buddhist" , "th-TH-u-ca-gregory" , "ja_JP_TRADITIONAL" , "th_TH_TRADITIONAL" , "th_TH_TRADITIONAL@calendar=gregorian" , "en_US" , "th_TH" , "th" , "en_TH" , "th_TH@calendar=iso8601" , "fr_CH" , "fr_SA" , "fr_CH@rg=sazzzz" , "fr_CH@calendar=japanese;rg=sazzzz" , "fr_TH@rg=SA" , "th@rg=SA" } ; java.lang.String [ ] types = new java.lang.String [ ] { "gregorian" , "japanese" , "gregorian" , "japanese" , "buddhist" , "gregorian" , "japanese" , "buddhist" , "gregorian" , "gregorian" , "buddhist" , "buddhist" , "buddhist" , "gregorian" , "gregorian" , "islamic-umalqura" , "islamic-umalqura" , "japanese" , "buddhist" , "buddhist" } ; for ( int i = 0 ; i < ( locs.length ) ; i ++ ) { com.ibm.icu.util.Calendar cal = com.ibm.icu.util.Calendar.getInstance ( new com.ibm.icu.util.ULocale ( locs [ i ] ) ) ; if ( ! ( cal.getType ( ) . equals ( types [ i ] ) ) ) { errln ( ( ( ( ( ( locs [ i ] ) + " Calendar type " ) + ( cal.getType ( ) ) ) + " instead of " ) + ( types [ i ] ) ) ) ; } } }

Target:
public void TestTypes ( ) { java.lang.String [ ] locs = new java.lang.String [ ] { "en_US_VALLEYGIRL" , "en_US_VALLEYGIRL@collation=phonebook;calendar=japanese" , "en_US_VALLEYGIRL@collation=phonebook;calendar=gregorian" , "ja_JP@calendar=japanese" , "th_TH@calendar=buddhist" , "th-TH-u-ca-gregory" , "ja_JP_TRADITIONAL" , "th_TH_TRADITIONAL" , "th_TH_TRADITIONAL@calendar=gregorian" , "en_US" , "th_TH" , "th" , "en_TH" , "th_TH@calendar=iso8601" , "fr_CH" , "fr_SA" , "fr_CH@rg=sazzzz" , "fr_CH@calendar=japanese;rg=sazzzz" , "fr_TH@rg=SA" , "th@rg=SA" } ; java.lang.String [ ] types = new java.lang.String [ ] { "gregorian" , "japanese" , "gregorian" , "japanese" , "buddhist" , "gregorian" , "japanese" , "buddhist" , "gregorian" , "gregorian" , "gregorian" , "gregorian" , "gregorian" , "gregorian" , "gregorian" , "islamic-umalqura" , "islamic-umalqura" , "japanese" , "gregorian" , "gregorian" } ; for ( int i = 0 ; i < ( locs.length ) ; i ++ ) { com.ibm.icu.util.Calendar cal = com.ibm.icu.util.Calendar.getInstance ( new com.ibm.icu.util.ULocale ( locs [ i ] ) ) ; if ( ! ( cal.getType ( ) . equals ( types [ i ] ) ) ) { errln ( ( ( ( ( ( locs [ i ] ) + " Calendar type " ) + ( cal.getType ( ) ) ) + " instead of " ) + ( types [ i ] ) ) ) ; } } }
Source:
protected synchronized int peek ( java.net.InetAddress i ) throws java.io.IOException { java.net.DatagramPacket p = new java.net.DatagramPacket ( libcore.util.EmptyArray.BYTE , 0 ) ; doRecv ( p , android.system.OsConstants.MSG_PEEK ) ; i.holder ( ) . address = p.getAddress ( ) . holder ( ) . address ; return p.getPort ( ) ; }

Target:
protected synchronized native int peek ( java.net.InetAddress i ) throws java.io.IOException ;
Source:
public void testIpManagerEventSerialization ( ) { android.net.ConnectivityMetricsEvent ev = com.android.server.connectivity.MetricsTestUtil.describeIpEvent ( com.android.server.connectivity.MetricsTestUtil.aType ( android.net.metrics.IpManagerEvent.class ) , com.android.server.connectivity.MetricsTestUtil.aString ( "wlan0" ) , com.android.server.connectivity.MetricsTestUtil.anInt ( IpManagerEvent.PROVISIONING_OK ) , com.android.server.connectivity.MetricsTestUtil.aLong ( 5678 ) ) ; java.lang.String want = com.android.server.connectivity.IpConnectivityEventBuilderTest.joinLines ( "dropped_events: 0" , "events <" , " time_ms: 1" , " transport: 0" , " ip_provisioning_event <" , " event_type: 1" , " if_name: \"wlan0\"" , " latency_ms: 5678" , " >" , ">" , "version: 2" ) ; com.android.server.connectivity.IpConnectivityEventBuilderTest.verifySerialization ( want , ev ) ; }

Target:
public void testIpManagerEventSerialization ( ) { android.net.ConnectivityMetricsEvent ev = com.android.server.connectivity.MetricsTestUtil.describeIpEvent ( com.android.server.connectivity.MetricsTestUtil.aType ( android.net.metrics.IpManagerEvent.class ) , com.android.server.connectivity.MetricsTestUtil.aString ( "wlan0" ) , com.android.server.connectivity.MetricsTestUtil.anInt ( IpManagerEvent.PROVISIONING_OK ) , com.android.server.connectivity.MetricsTestUtil.aLong ( 5678 ) ) ; java.lang.String want = com.android.server.connectivity.IpConnectivityEventBuilderTest.joinLines ( "dropped_events: 0" , "events <" , " ip_provisioning_event <" , " event_type: 1" , " if_name: \"wlan0\"" , " latency_ms: 5678" , " >" , " time_ms: 1" , " transport: 0" , ">" , "version: 2" ) ; com.android.server.connectivity.IpConnectivityEventBuilderTest.verifySerialization ( want , ev ) ; }
Source:
public void testInitialConditions ( ) { waitUntilChannelLoadingFinish ( ) ; java.util.List < com.android.tv.data.Channel > channelList = mActivity.getChannelDataManager ( ) . getChannelList ( ) ; assertTrue ( "Expected at least one channel" , ( ( channelList.size ( ) ) > 0 ) ) ; assertFalse ( "PIP disabled" , mActivity.isPipEnabled ( ) ) ; }

Target:
public void testInitialConditions ( ) { waitUntilChannelLoadingFinish ( ) ; java.util.List < com.android.tv.data.Channel > channelList = mActivity.getChannelDataManager ( ) . getChannelList ( ) ; assertTrue ( "Expected at least one channel" , ( ( channelList.size ( ) ) > 0 ) ) ; }
Source:
public void setSimPowerStateForSlot ( int slotIndex , boolean powerUp ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { telephony.setSimPowerStateForSlot ( slotIndex , powerUp ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#setSimPowerStateForSlot" , e ) ; } catch ( java.lang.SecurityException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Permission error calling ITelephony#setSimPowerStateForSlot" , e ) ; } }

Target:
public void setSimPowerStateForSlot ( int slotIndex , int state ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { telephony.setSimPowerStateForSlot ( slotIndex , state ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#setSimPowerStateForSlot" , e ) ; } catch ( java.lang.SecurityException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Permission error calling ITelephony#setSimPowerStateForSlot" , e ) ; } }