auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected boolean doCheckState ( ) { if ( ! ( super . doCheckState ( ) ) ) { setErrorMessage ( Messages.NDKPreferencePage_not_a_valid_directory ) ; return false ; } java.lang.String dirname = getTextControl ( ) . getText ( ) . trim ( ) ; if ( ! ( com.android.ide.eclipse.ndk.internal.NdkManager.isValidNdkLocation ( dirname ) ) ) { setErrorMessage ( Messages.NDKPreferencePage_not_a_valid_NDK_directory ) ; return false ; } return true ; }

Target:
protected boolean doCheckState ( ) { if ( ! ( super . doCheckState ( ) ) ) { setErrorMessage ( Messages.NDKPreferencePage_not_a_valid_directory ) ; return false ; } java.lang.String dirname = getTextControl ( ) . getText ( ) . trim ( ) ; if ( ( ! ( dirname.isEmpty ( ) ) ) && ( ! ( com.android.ide.eclipse.ndk.internal.NdkManager.isValidNdkLocation ( dirname ) ) ) ) { setErrorMessage ( Messages.NDKPreferencePage_not_a_valid_NDK_directory ) ; return false ; } return true ; }
Source:
public static java.lang.String getClientKeyType ( byte keyType ) { switch ( keyType ) { case NativeCrypto.TLS_CT_RSA_SIGN : return org.conscrypt.OpenSSLSocketImpl.KEY_TYPE_RSA ; case NativeCrypto.TLS_CT_DSS_SIGN : return org.conscrypt.OpenSSLSocketImpl.KEY_TYPE_DSA ; case NativeCrypto.TLS_CT_RSA_FIXED_DH : return org.conscrypt.OpenSSLSocketImpl.KEY_TYPE_DH_RSA ; case NativeCrypto.TLS_CT_DSS_FIXED_DH : return org.conscrypt.OpenSSLSocketImpl.KEY_TYPE_DH_DSA ; case NativeCrypto.TLS_CT_ECDSA_SIGN : return org.conscrypt.OpenSSLSocketImpl.KEY_TYPE_EC ; case NativeCrypto.TLS_CT_RSA_FIXED_ECDH : return org.conscrypt.OpenSSLSocketImpl.KEY_TYPE_EC_RSA ; case NativeCrypto.TLS_CT_ECDSA_FIXED_ECDH : return org.conscrypt.OpenSSLSocketImpl.KEY_TYPE_EC_EC ; default : return null ; } }

Target:
public java.lang.String chooseClientAlias ( javax.net.ssl.X509KeyManager keyManager , javax.security.auth.x500.X500Principal [ ] issuers , java.lang.String [ ] keyTypes ) { return keyManager.chooseClientAlias ( keyTypes , null , this ) ; }
Source:
public void getIccCardStatus ( android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_GET_SIM_STATUS , result ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }

Target:
public void getAllowedCarriers ( android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_GET_ALLOWED_CARRIERS , response ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) { riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; } send ( rr ) ; }
Source:
public void setData ( com.android.ddmlib.IDevice device , com.android.ddmlib.RawImage image , com.android.hierarchyviewerlib.device.ViewNode viewNode ) { synchronized ( this ) { this . device = device ; this . image = image ; this . viewNode = viewNode ; this . crosshairLocation = new com.android.hierarchyviewerlib.models.PixelPerfectModel.Point ( ( ( image.width ) / 2 ) , ( ( image.height ) / 2 ) ) ; this . selected = null ; } notifyImageLoaded ( ) ; }

Target:
public void setData ( com.android.ddmlib.IDevice device , com.android.ddmlib.RawImage image , com.android.hierarchyviewerlib.device.ViewNode viewNode ) { synchronized ( this ) { this . device = device ; this . image = image ; this . viewNode = viewNode ; if ( image != null ) { this . crosshairLocation = new com.android.hierarchyviewerlib.models.PixelPerfectModel.Point ( ( ( image.width ) / 2 ) , ( ( image.height ) / 2 ) ) ; } else { this . crosshairLocation = null ; } this . selected = null ; zoom = com.android.hierarchyviewerlib.models.PixelPerfectModel.DEFAULT_ZOOM ; } notifyImageLoaded ( ) ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JCatchBlock jCatchBlock ) { com.android.jack.ir.sourceinfo.SourceInfo sourceInfo = jCatchBlock.getSourceInfo ( ) ; com.android.jack.ir.ast.JLocalRef localRef = new com.android.jack.ir.ast.JLocalRef ( sourceInfo , jCatchBlock.getCatchVar ( ) ) ; com.android.jack.ir.ast.JAsgOperation assign = new com.android.jack.ir.ast.JAsgOperation ( sourceInfo , localRef , new com.android.jack.ir.ast.JExceptionRuntimeValue ( sourceInfo , ( ( com.android.jack.ir.ast.JClassOrInterface ) ( localRef.getType ( ) ) ) ) ) ; tr.append ( new com.android.jack.transformations.request.PrependStatement ( jCatchBlock , assign.makeStatement ( ) ) ) ; return super . visit ( jCatchBlock ) ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JCatchBlock jCatchBlock ) { com.android.jack.ir.sourceinfo.SourceInfo sourceInfo = jCatchBlock.getSourceInfo ( ) ; com.android.jack.ir.ast.JLocalRef localRef = jCatchBlock.getCatchVar ( ) . makeRef ( sourceInfo ) ; com.android.jack.ir.ast.JAsgOperation assign = new com.android.jack.ir.ast.JAsgOperation ( sourceInfo , localRef , new com.android.jack.ir.ast.JExceptionRuntimeValue ( sourceInfo , ( ( com.android.jack.ir.ast.JClassOrInterface ) ( localRef.getType ( ) ) ) ) ) ; tr.append ( new com.android.jack.transformations.request.PrependStatement ( jCatchBlock , assign.makeStatement ( ) ) ) ; return super . visit ( jCatchBlock ) ; }
Source:
public static void cancelNotification ( @ android.support.annotation.NonNull android.content.Context context , @ android.support.annotation.NonNull android.telecom.PhoneAccountHandle phoneAccountHandle ) { com.android.dialer.common.LogUtil.enterBlock ( "LegacyVoicemailNotifier.cancelNotification" ) ; com.android.dialer.common.Assert.checkArgument ( android.support.v4.os.BuildCompat.isAtLeastO ( ) ) ; com.android.dialer.common.Assert.isNotNull ( phoneAccountHandle ) ; com.android.dialer.notification.DialerNotificationManager.cancel ( context , com.android.dialer.app.calllog.LegacyVoicemailNotifier.getNotificationTag ( context , phoneAccountHandle ) , com.android.dialer.app.calllog.LegacyVoicemailNotifier.NOTIFICATION_ID ) ; }

Target:
public static void cancelNotification ( @ android.support.annotation.NonNull android.content.Context context , @ android.support.annotation.NonNull android.telecom.PhoneAccountHandle phoneAccountHandle ) { com.android.dialer.common.LogUtil.enterBlock ( "LegacyVoicemailNotifier.cancelNotification" ) ; com.android.dialer.common.Assert.checkArgument ( android.support.v4.os.BuildCompat.isAtLeastO ( ) ) ; com.android.dialer.common.Assert.isNotNull ( phoneAccountHandle ) ; if ( "null" . equals ( phoneAccountHandle.getId ( ) ) ) { com.android.dialer.common.LogUtil.i ( "LegacyVoicemailNotifier.cancelNotification" , "'null' id, canceling all legacy voicemail notifications" ) ; com.android.dialer.notification.DialerNotificationManager.cancelAll ( context , com.android.dialer.app.calllog.LegacyVoicemailNotifier.NOTIFICATION_TAG ) ; } else { com.android.dialer.notification.DialerNotificationManager.cancel ( context , com.android.dialer.app.calllog.LegacyVoicemailNotifier.getNotificationTag ( context , phoneAccountHandle ) , com.android.dialer.app.calllog.LegacyVoicemailNotifier.NOTIFICATION_ID ) ; } }
Source:
public void testGetPath_ApiAndApiClassResourceSet ( ) { initializePsiClass ( "\"res1\"" , "\"res2\"" ) ; initializePsiMethod ( "foo" , "\"\"" , "\"\"" ) ; org.mockito.MockitoAnnotations.initMocks ( this ) ; com.google.gct.intellij.endpoints.validation.RestSignatureInspection inspection = new com.google.gct.intellij.endpoints.validation.RestSignatureInspection ( ) ; java.lang.String path = inspection.getPath ( mockPsiMethod ) ; junit.framework.Assert.assertEquals ( "res2" , path ) ; }

Target:
public void testGetPath_ApiAndApiClassResourceSet ( ) { initializePsiClass ( "\"res1\"" , "\"res2\"" ) ; initializePsiMethod ( "foo" , "\"\"" , "\"\"" ) ; org.mockito.MockitoAnnotations.initMocks ( this ) ; com.google.gct.idea.appengine.validation.RestSignatureInspection inspection = new com.google.gct.idea.appengine.validation.RestSignatureInspection ( ) ; java.lang.String path = inspection.getPath ( mockPsiMethod ) ; junit.framework.Assert.assertEquals ( "res2" , path ) ; }
Source:
private java.lang.String dumpEntry ( int offset ) { if ( com.android.tools.lint.checks.TypoLookup.DEBUG_SEARCH ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; for ( int i = offset ; i < ( mData.length ) ; i ++ ) { if ( ( mData [ i ] ) == 0 ) { break ; } char c = ( ( char ) ( com.google.common.primitives.UnsignedBytes.toInt ( mData [ i ] ) ) ) ; sb.append ( c ) ; } return sb.toString ( ) ; } else { return "<disabled>" ; } }

Target:
private java.lang.String dumpEntry ( int offset ) { if ( com.android.tools.lint.checks.TypoLookup.DEBUG_SEARCH ) { int end = offset ; while ( ( mData [ end ] ) != 0 ) { end ++ ; } return new java.lang.String ( mData , offset , ( end - offset ) , com.google.common.base.Charsets.UTF_8 ) ; } else { return "<disabled>" ; } }
Source:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , long [ ] data ) { mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , ( ( data.length ) * 8 ) ) ; }

Target:
private void copy1DRangeFromUnchecked ( int off , int count , java.lang.Object array , android.support.v8.renderscript.Element.DataType dt , int arrayLen ) { final int dataSize = ( mType.mElement.getBytesSize ( ) ) * count ; data1DChecks ( off , count , ( arrayLen * ( dt.mSize ) ) , dataSize ) ; mRS.nAllocationData1D ( getIDSafe ( ) , off , mSelectedLOD , count , array , dataSize , dt ) ; }
Source:
public void testFilteredOutBuildType ( ) throws java.lang.Exception { com.android.build.gradle.model.AndroidProjectTest.ProjectData projectData = getModelForProject ( com.android.build.gradle.model.AndroidProjectTest.FOLDER_TEST_REGULAR , "filteredOutBuildType" ) ; com.android.builder.model.AndroidProject model = projectData.model ; assertEquals ( "Variant Count" , 1 , model.getVariants ( ) . size ( ) ) ; com.android.builder.model.Variant variant = model.getVariants ( ) . iterator ( ) . next ( ) ; assertEquals ( "Variant name" , "release" , variant.getBuildType ( ) ) ; }

Target:
public void testFilteredOutBuildType ( ) throws java.lang.Exception { com.android.build.gradle.model.AndroidProjectTest.ProjectData projectData = getModelForProject ( com.android.build.gradle.model.AndroidProjectTest.FOLDER_TEST_SAMPLE , "filteredOutBuildType" ) ; com.android.builder.model.AndroidProject model = projectData.model ; assertEquals ( "Variant Count" , 1 , model.getVariants ( ) . size ( ) ) ; com.android.builder.model.Variant variant = model.getVariants ( ) . iterator ( ) . next ( ) ; assertEquals ( "Variant name" , "release" , variant.getBuildType ( ) ) ; }
Source:
public static void onWebViewProviderChanged ( android.content.pm.PackageInfo packageInfo , java.lang.String cacheKey ) { synchronized ( android.webkit.WebViewZygote.sLock ) { android.webkit.WebViewZygote.sPackage = packageInfo ; android.webkit.WebViewZygote.sPackageCacheKey = cacheKey ; if ( ! ( android.webkit.WebViewZygote.sMultiprocessEnabled ) ) { return ; } final java.lang.String serviceName = android.webkit.WebViewZygote.getServiceNameLocked ( ) ; android.webkit.WebViewZygote.sZygote = null ; if ( android.os.SystemService.isStopped ( serviceName ) ) { android.os.SystemService.start ( serviceName ) ; } else { android.os.SystemService.restart ( serviceName ) ; } android.webkit.WebViewZygote.sStartedService = true ; } }

Target:
public static void onWebViewProviderChanged ( android.content.pm.PackageInfo packageInfo , android.content.pm.ApplicationInfo originalAppInfo ) { synchronized ( android.webkit.WebViewZygote.sLock ) { android.webkit.WebViewZygote.sPackage = packageInfo ; android.webkit.WebViewZygote.sPackageOriginalAppInfo = originalAppInfo ; if ( ! ( android.webkit.WebViewZygote.sMultiprocessEnabled ) ) { return ; } android.webkit.WebViewZygote.stopZygoteLocked ( ) ; } }
Source:
protected boolean stop ( ) { if ( ( mHandler ) != null ) { mHandler.removeCallbacksAndMessages ( null ) ; android.os.Looper looper = mHandler.getLooper ( ) ; if ( looper != null ) { looper.quit ( ) ; } } cleanupApps ( ) ; return true ; }

Target:
protected boolean stop ( ) { com.android.bluetooth.hdp.HealthService.setHealthService ( null ) ; if ( ( mHandler ) != null ) { mHandler.removeCallbacksAndMessages ( null ) ; android.os.Looper looper = mHandler.getLooper ( ) ; if ( looper != null ) { looper.quit ( ) ; } } cleanupApps ( ) ; return true ; }
Source:
public void testParse0 ( ) throws java.lang.Exception { android.text.format.Time t = new android.text.format.Time ( android.text.format.Time.TIMEZONE_UTC ) ; assertFalse ( t.parse ( "12345678T901234" ) ) ; assertTrue ( t.parse ( "20081013T160000Z" ) ) ; assertEquals ( 2008 , t.year ) ; assertEquals ( 9 , t.month ) ; assertEquals ( 13 , t.monthDay ) ; assertEquals ( 16 , t.hour ) ; assertEquals ( 0 , t.minute ) ; assertEquals ( 0 , t.second ) ; }

Target:
private static void assertFormatEquals ( android.text.format.Time t , java.lang.String formatArg , java.lang.String expected ) { assertEquals ( expected , t.format ( formatArg ) ) ; }
Source:
public static void write ( java.io.FileDescriptor fd , byte [ ] bytes , int byteOffset , int byteCount ) throws java.io.IOException { java.util.Arrays.checkOffsetAndCount ( bytes.length , byteOffset , byteCount ) ; if ( byteCount == 0 ) { return ; } try { while ( byteCount > 0 ) { int bytesWritten = Libcore.os.write ( fd , bytes , byteOffset , byteCount ) ; byteCount -= bytesWritten ; byteOffset += bytesWritten ; } } catch ( android.system.ErrnoException errnoException ) { throw errnoException.rethrowAsIOException ( ) ; } }

Target:
public static void write ( java.io.FileDescriptor fd , byte [ ] bytes , int byteOffset , int byteCount ) throws java.io.IOException { libcore.util.ArrayUtils.throwsIfOutOfBounds ( bytes.length , byteOffset , byteCount ) ; if ( byteCount == 0 ) { return ; } try { while ( byteCount > 0 ) { int bytesWritten = Libcore.os.write ( fd , bytes , byteOffset , byteCount ) ; byteCount -= bytesWritten ; byteOffset += bytesWritten ; } } catch ( android.system.ErrnoException errnoException ) { throw errnoException.rethrowAsIOException ( ) ; } }
Source:
public java.util.List < android.bluetooth.BluetoothDevice > bluetoothGetConnectedDevicesOnProfile ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "profileId" , description = "profileId same as BluetoothProfile" ) java.lang.Integer profileId ) { android.bluetooth.BluetoothProfile profile = null ; switch ( profileId ) { case android.bluetooth.BluetoothProfile.A2DP_SINK : return mA2dpSinkProfile.bluetoothA2dpSinkGetConnectedDevices ( ) ; case android.bluetooth.BluetoothProfile.HEADSET_CLIENT : return mHfpClientProfile.bluetoothHfpClientGetConnectedDevices ( ) ; case android.bluetooth.BluetoothProfile.PBAP_CLIENT : return mPbapClientProfile.bluetoothPbapClientGetConnectedDevices ( ) ; default : com.googlecode.android_scripting.Log.w ( ( ( "Profile id " + profileId ) + " is not yet supported." ) ) ; return new java.util.ArrayList < android.bluetooth.BluetoothDevice > ( ) ; } }

Target:
public java.util.List < android.bluetooth.BluetoothDevice > bluetoothGetConnectedDevicesOnProfile ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "profileId" , description = "profileId same as BluetoothProfile" ) java.lang.Integer profileId ) { android.bluetooth.BluetoothProfile profile = null ; switch ( profileId ) { case android.bluetooth.BluetoothProfile.A2DP_SINK : return mA2dpSinkProfile.bluetoothA2dpSinkGetConnectedDevices ( ) ; case android.bluetooth.BluetoothProfile.HEADSET_CLIENT : return mHfpClientProfile.bluetoothHfpClientGetConnectedDevices ( ) ; case android.bluetooth.BluetoothProfile.PBAP_CLIENT : return mPbapClientProfile.bluetoothPbapClientGetConnectedDevices ( ) ; case android.bluetooth.BluetoothProfile.MAP_CLIENT : return mMapClientProfile.bluetoothMapClientGetConnectedDevices ( ) ; default : com.googlecode.android_scripting.Log.w ( ( ( "Profile id " + profileId ) + " is not yet supported." ) ) ; return new java.util.ArrayList < android.bluetooth.BluetoothDevice > ( ) ; } }
Source:
private static void testAllClassesQuery ( com.android.tools.perflib.heap.State state ) { java.util.Map < java.lang.String , java.util.Set < com.android.tools.perflib.heap.ClassObj > > allClasses = com.android.tools.perflib.heap.Queries.allClasses ( state ) ; for ( java.lang.String thePackage : allClasses.keySet ( ) ) { java.lang.System.out.println ( ( "------------------- " + thePackage ) ) ; java.util.Set < com.android.tools.perflib.heap.ClassObj > classes = allClasses.get ( thePackage ) ; for ( com.android.tools.perflib.heap.ClassObj theClass : classes ) { java.lang.System.out.println ( ( " " + ( theClass.mClassName ) ) ) ; } } }

Target:
private static void testAllClassesQuery ( com.android.tools.perflib.heap.Snapshot snapshot ) { java.util.Map < java.lang.String , java.util.Set < com.android.tools.perflib.heap.ClassObj > > allClasses = com.android.tools.perflib.heap.Queries.allClasses ( snapshot ) ; for ( java.lang.String thePackage : allClasses.keySet ( ) ) { java.lang.System.out.println ( ( "------------------- " + thePackage ) ) ; java.util.Set < com.android.tools.perflib.heap.ClassObj > classes = allClasses.get ( thePackage ) ; for ( com.android.tools.perflib.heap.ClassObj theClass : classes ) { java.lang.System.out.println ( ( " " + ( theClass.mClassName ) ) ) ; } } }
Source:
private void readProgramHeaders ( long phOffset , int phNumber , int phSize ) throws java.io.IOException { for ( int i = 0 ; i < phNumber ; i ++ ) { final long baseOffset = phOffset + ( i * phSize ) ; final long type = readWord ( baseOffset ) ; if ( type == ( android.security.cts.ReadElf.PT_LOAD ) ) { final long virtAddress = readWord ( ( baseOffset + ( ( mHalfWordSize ) * ( android.security.cts.ReadElf.PHOFF_VADDR ) ) ) ) ; if ( virtAddress == 0 ) { mIsPIE = true ; } } } }

Target:
private void readProgramHeaders ( long phOffset , int phNumber , int phSize ) throws java.io.IOException { for ( int i = 0 ; i < phNumber ; i ++ ) { final long baseOffset = phOffset + ( i * phSize ) ; final long type = readWord ( baseOffset ) ; if ( type == ( android.os.cts.ReadElf.PT_LOAD ) ) { final long virtAddress = readWord ( ( baseOffset + ( ( mHalfWordSize ) * ( android.os.cts.ReadElf.PHOFF_VADDR ) ) ) ) ; if ( virtAddress == 0 ) { mIsPIE = true ; } } } }
Source:
public static com.android.jack.dx.rop.code.SourcePosition getSourcePosition ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JNode stmt ) { if ( ( stmt.getSourceInfo ( ) ) != ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN ) ) { return new com.android.jack.dx.rop.code.SourcePosition ( new com.android.jack.dx.rop.cst.CstString ( stmt.getSourceInfo ( ) . getFileName ( ) ) , ( - 1 ) , stmt.getSourceInfo ( ) . getStartLine ( ) ) ; } else { return new com.android.jack.dx.rop.code.SourcePosition ( null , ( - 1 ) , ( - 1 ) ) ; } }

Target:
public static com.android.jack.dx.rop.code.SourcePosition getSourcePosition ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JNode stmt ) { if ( ( stmt.getSourceInfo ( ) ) == ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN ) ) { return com.android.jack.dx.rop.code.SourcePosition.NO_INFO ; } return new com.android.jack.dx.rop.code.SourcePosition ( new com.android.jack.dx.rop.cst.CstString ( stmt.getSourceInfo ( ) . getFileName ( ) ) , ( - 1 ) , stmt.getSourceInfo ( ) . getStartLine ( ) ) ; }
Source:
public void test_unmodifiableList_sort ( ) { try { java.util.Collections.unmodifiableList ( new java.util.ArrayList < > ( ) ) . sort ( ( k1 , k2 ) -> 1 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } try { java.util.ArrayList l = new java.util.ArrayList ( ) ; l.add ( 1 ) ; l.add ( 2 ) ; java.util.Collections.unmodifiableList ( l ) . sort ( ( k1 , k2 ) -> 1 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } }

Target:
public void test_EmptyMap_computeIfPresent ( ) { try { java.util.Collections.emptyMap ( ) . computeIfPresent ( 1 , ( k , v ) -> 5.0 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } }
Source:
private void createPropertySheet ( ) { mPropertySheetComposite = new org.eclipse.wb.internal.core.editor.structure.PageSiteComposite ( mControl , org.eclipse.swt.SWT.BORDER ) ; mPropertySheetComposite.setTitleText ( "Properties" ) ; mPropertySheetComposite.setTitleImage ( com.android.ide.eclipse.adt.internal.editors.IconFactory.getInstance ( ) . getIcon ( "properties_view" ) ) ; mPropertySheet = new com.android.ide.eclipse.adt.internal.editors.layout.properties.PropertySheetPage ( mGraphicalEditorPart ) ; mPropertySheetComposite.setPage ( mPropertySheet ) ; }

Target:
public void mouseUp ( org.eclipse.swt.events.MouseEvent e ) { mPressInPropSheet = false ; }
Source:
public com.android.jack.ir.ast.JParameterRef exportAsJast ( @ javax.annotation.Nonnull com.android.jack.jayce.v0002.io.ExportSession exportSession ) { assert ( sourceInfo ) != null ; assert ( localId ) != null ; com.android.jack.ir.ast.JParameterRef jRef = new com.android.jack.ir.ast.JParameterRef ( sourceInfo.exportAsJast ( exportSession ) , com.android.jack.ir.ast.JParameterUnresolved.INSTANCE ) ; exportSession.getParameterResolver ( ) . addLink ( localId , new com.android.jack.jayce.linker.ParameterRefLinker ( jRef ) ) ; return jRef ; }

Target:
public com.android.jack.ir.ast.JParameterRef exportAsJast ( @ javax.annotation.Nonnull com.android.jack.jayce.v0002.io.ExportSession exportSession ) { assert ( sourceInfo ) != null ; assert ( localId ) != null ; com.android.jack.ir.ast.JParameterRef jRef = JParameterUnresolved.INSTANCE.makeRef ( sourceInfo.exportAsJast ( exportSession ) ) ; exportSession.getParameterResolver ( ) . addLink ( localId , new com.android.jack.jayce.linker.ParameterRefLinker ( jRef ) ) ; return jRef ; }
Source:
public void test_bind_unresolvedAddress ( ) throws java.io.IOException { java.nio.channels.DatagramChannel dc = java.nio.channels.DatagramChannel.open ( ) ; try { dc.bind ( new java.net.InetSocketAddress ( "unresolvedname" , 31415 ) ) ; fail ( ) ; } catch ( java.nio.channels.UnresolvedAddressException expected ) { } assertNull ( dc.getLocalAddress ( ) ) ; assertTrue ( dc.isOpen ( ) ) ; assertFalse ( dc.isConnected ( ) ) ; dc.close ( ) ; }

Target:
public void test_bind_unresolvedAddress ( ) throws java.io.IOException { java.nio.channels.DatagramChannel dc = java.nio.channels.DatagramChannel.open ( ) ; try { dc.socket ( ) . bind ( new java.net.InetSocketAddress ( "unresolvedname" , 31415 ) ) ; fail ( ) ; } catch ( java.io.IOException expected ) { } assertTrue ( dc.isOpen ( ) ) ; assertFalse ( dc.isConnected ( ) ) ; dc.close ( ) ; }
Source:
private static dalvik.system.DexPathList.Element [ ] makePathElements ( java.util.List < java.io.File > files , java.util.List < java.io.IOException > suppressedExceptions , java.lang.ClassLoader loader ) { return dalvik.system.DexPathList.makeElements ( files , null , suppressedExceptions , true , loader ) ; }

Target:
public synchronized void maybeInit ( ) { if ( initialized ) { return ; } initialized = true ; if ( ( zipDir ) == null ) { return ; } try { urlHandler = new libcore.io.ClassPathURLStreamHandler ( path.getPath ( ) ) ; } catch ( java.io.IOException ioe ) { java.lang.System.logE ( ( "Unable to open zip file: " + ( path ) ) , ioe ) ; urlHandler = null ; } }
Source:
public synchronized java.util.Iterator < java.lang.Object > iterator ( ) { return com.google.common.collect.Iterators.forArray ( java.lang.Integer.valueOf ( getCount ( ) ) , java.lang.Double.valueOf ( getTotal ( ) ) , java.lang.Double.valueOf ( getMin ( ) ) , java.lang.Double.valueOf ( getAverage ( ) ) , java.lang.Double.valueOf ( getMax ( ) ) , getMinObject ( ) , getMaxObject ( ) ) ; }

Target:
public synchronized java.util.Iterator < java.lang.Object > iterator ( ) { return com.google.common.collect.Iterators.forArray ( java.lang.Integer.valueOf ( getCount ( ) ) , java.lang.Integer.valueOf ( getNaNCount ( ) ) , java.lang.Double.valueOf ( getTotal ( ) ) , java.lang.Double.valueOf ( getMin ( ) ) , java.lang.Double.valueOf ( getAverage ( ) ) , java.lang.Double.valueOf ( getMax ( ) ) , getMinObject ( ) , getMaxObject ( ) ) ; }
Source:
public void tearDown ( com.android.tradefed.device.ITestDevice device , com.android.tradefed.build.IBuildInfo buildInfo , java.lang.Throwable e ) throws com.android.tradefed.device.DeviceNotAvailableException { if ( ( mVenvDir ) != null ) { try { com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer.recursiveDelete ( mVenvDir.toPath ( ) ) ; com.android.tradefed.log.LogUtil.CLog.i ( "Deleted the virtual env's temp working dir, %s." , mVenvDir ) ; } catch ( java.io.IOException exception ) { com.android.tradefed.log.LogUtil.CLog.e ( "Failed to delete %s: %s" , mVenvDir , exception ) ; } mVenvDir = null ; } }

Target:
public void tearDown ( com.android.tradefed.invoker.IInvocationContext context , java.lang.Throwable e ) throws com.android.tradefed.device.DeviceNotAvailableException { if ( ( mVenvDir ) != null ) { try { com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer.recursiveDelete ( mVenvDir.toPath ( ) ) ; com.android.tradefed.log.LogUtil.CLog.i ( "Deleted the virtual env's temp working dir, %s." , mVenvDir ) ; } catch ( java.io.IOException exception ) { com.android.tradefed.log.LogUtil.CLog.e ( "Failed to delete %s: %s" , mVenvDir , exception ) ; } mVenvDir = null ; } }
Source:
public boolean isTtySupported ( java.lang.String callingPackage ) { try { com.android.server.telecom.Log.startSession ( "TSI.iTS" ) ; if ( ! ( canReadPhoneState ( callingPackage , "hasVoiceMailNumber" ) ) ) { return false ; } synchronized ( mLock ) { return mCallsManager.isTtySupported ( ) ; } } finally { com.android.server.telecom.Log.endSession ( ) ; } }

Target:
public boolean isTtySupported ( java.lang.String callingPackage ) { try { android.telecom.Log.startSession ( "TSI.iTS" ) ; if ( ! ( canReadPhoneState ( callingPackage , "hasVoiceMailNumber" ) ) ) { return false ; } synchronized ( mLock ) { return mCallsManager.isTtySupported ( ) ; } } finally { android.telecom.Log.endSession ( ) ; } }
Source:
public void readContent ( @ javax.annotation.Nonnull com.android.jack.jayce.v0002.io.JayceInternalReaderImpl in ) throws java.io.IOException { modifiers = in.readInt ( ) ; type = in.readId ( ) ; name = in.readId ( ) ; initialValue = in.readNode ( com.android.jack.jayce.v0002.nodes.NLiteral.class ) ; ordinal = in.readInt ( ) ; annotations = in.readNodes ( com.android.jack.jayce.v0002.nodes.NAnnotationLiteral.class ) ; markers = in.readNodes ( com.android.jack.jayce.v0002.nodes.NMarker.class ) ; }

Target:
public void readContent ( @ javax.annotation.Nonnull com.android.jack.jayce.v0002.io.JayceInternalReaderImpl in ) throws java.io.IOException { modifiers = in.readInt ( ) ; type = in.readId ( ) ; name = in.readId ( ) ; initialValue = in.readNode ( com.android.jack.jayce.v0002.nodes.NLiteral.class ) ; ordinal = in.readInt ( ) ; annotations = in.readNodes ( com.android.jack.jayce.v0002.nodes.NAnnotation.class ) ; markers = in.readNodes ( com.android.jack.jayce.v0002.nodes.NMarker.class ) ; }
Source:
public void onConfigurationChanged ( final android.content.res.Configuration newConfig ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onConfigurationChanged ( newConfig ) ; } } ) ; return ; } mAwContents.onConfigurationChanged ( newConfig ) ; }

Target:
public void onDraw ( final android.graphics.Canvas canvas ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { runVoidTaskOnUiThreadBlocking ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onDraw ( canvas ) ; } } ) ; return ; } mAwContents.onDraw ( canvas ) ; }
Source:
static < D extends java.lang.reflect.GenericDeclaration > java.lang.reflect.TypeVariable < D > newTypeVariable ( D declaration , java.lang.String name , java.lang.reflect.Type ... bounds ) { return new com.google.common.reflect.Types.TypeVariableImpl < D > ( declaration , name , ( ( bounds.length ) == 0 ? new java.lang.reflect.Type [ ] { java.lang.Object.class } : bounds ) ) ; }

Target:
static < D extends java.lang.reflect.GenericDeclaration > java.lang.reflect.TypeVariable < D > newArtificialTypeVariable ( D declaration , java.lang.String name , java.lang.reflect.Type ... bounds ) { return new com.google.common.reflect.Types.TypeVariableImpl < D > ( declaration , name , ( ( bounds.length ) == 0 ? new java.lang.reflect.Type [ ] { java.lang.Object.class } : bounds ) ) ; }
Source:
private void emitTypeIndex ( com.android.jack.dx.rop.cst.CstType type ) throws java.io.IOException { if ( ( type == null ) || ( ( file ) == null ) ) { output.writeUleb128 ( 0 ) ; } else { output.writeUleb128 ( ( 1 + ( file.getTypeIds ( ) . indexOf ( type ) ) ) ) ; } if ( com.android.jack.dx.dex.file.DebugInfoEncoder.DEBUG ) { java.lang.System.err.printf ( "Emit type %s\n" , ( type == null ? "<null>" : type.toHuman ( ) ) ) ; } }

Target:
private void emitTypeIndex ( com.android.jack.dx.rop.type.Type type ) throws java.io.IOException { if ( ( type == null ) || ( ( file ) == null ) ) { output.writeUleb128 ( 0 ) ; } else { output.writeUleb128 ( ( 1 + ( file.getTypeIds ( ) . indexOf ( type ) ) ) ) ; } if ( com.android.jack.dx.dex.file.DebugInfoEncoder.DEBUG ) { java.lang.System.err.printf ( "Emit type %s\n" , ( type == null ? "<null>" : type.toHuman ( ) ) ) ; } }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { updateLaunchConfigurationDialog ( ) ; boolean auto = mAutoTargetButton.getSelection ( ) ; mPreferredAvdSelector.setEnabled ( auto ) ; mPreferredAvdLabel.setEnabled ( auto ) ; boolean all = mAllDevicesTargetButton.getSelection ( ) ; mDeviceTypeCombo.setEnabled ( all ) ; }

Target:
private void targetModeChanged ( ) { updateLaunchConfigurationDialog ( ) ; boolean auto = mAutoTargetButton.getSelection ( ) ; mPreferredAvdSelector.setEnabled ( auto ) ; mPreferredAvdLabel.setEnabled ( auto ) ; boolean all = mAllDevicesTargetButton.getSelection ( ) ; mDeviceTypeCombo.setEnabled ( all ) ; }
Source:
private void copy1DRangeToUnchecked ( int off , int count , java.lang.Object array , android.renderscript.Element.DataType dt , int arrayLen ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy1DRangeToUnchecked" ) ; final int dataSize = ( mType.mElement.getBytesSize ( ) ) * count ; data1DChecks ( off , count , ( arrayLen * ( dt.mSize ) ) , dataSize ) ; mRS.nAllocationRead1D ( getIDSafe ( ) , off , mSelectedLOD , count , array , dataSize , dt ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
private void copyTo ( java.lang.Object array , android.renderscript.Element.DataType dt , int arrayLen ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copyTo" ) ; mRS.validate ( ) ; boolean usePadding = false ; if ( ( mAutoPadding ) && ( ( mType.getElement ( ) . getVectorSize ( ) ) == 3 ) ) { usePadding = true ; } mRS.nAllocationRead ( getID ( mRS ) , array , dt , mType.mElement.mType.mSize , usePadding ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }
Source:
private static libcore.tzdata.update2.tools.TimeZoneBundleBuilder createValidTimeZoneBundleBuilder ( java.lang.String rulesVersion , int revision ) throws java.lang.Exception { byte [ ] bionicTzData = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createTzData ( rulesVersion ) ; byte [ ] icuData = new byte [ ] { 'a' } ; libcore.tzdata.update2.BundleVersion bundleVersion = new libcore.tzdata.update2.BundleVersion ( BundleVersion.CURRENT_FORMAT_MAJOR_VERSION , BundleVersion.CURRENT_FORMAT_MINOR_VERSION , rulesVersion , revision ) ; return new libcore.tzdata.update2.tools.TimeZoneBundleBuilder ( ) . setBundleVersion ( bundleVersion ) . setTzData ( bionicTzData ) . setIcuData ( icuData ) ; }

Target:
private static libcore.tzdata.update2.tools.TimeZoneDistroBuilder createValidTimeZoneDistroBuilder ( java.lang.String rulesVersion , int revision ) throws java.lang.Exception { byte [ ] bionicTzData = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createTzData ( rulesVersion ) ; byte [ ] icuData = new byte [ ] { 'a' } ; libcore.tzdata.update2.DistroVersion distroVersion = new libcore.tzdata.update2.DistroVersion ( DistroVersion.CURRENT_FORMAT_MAJOR_VERSION , DistroVersion.CURRENT_FORMAT_MINOR_VERSION , rulesVersion , revision ) ; return new libcore.tzdata.update2.tools.TimeZoneDistroBuilder ( ) . setDistroVersion ( distroVersion ) . setTzData ( bionicTzData ) . setIcuData ( icuData ) ; }
Source:
private boolean processRefresh ( com.android.internal.telephony.gsm.stk.CommandDetails cmdDet , java.util.List < com.android.internal.telephony.gsm.stk.ComprehensionTlv > ctlvs ) { com.android.internal.telephony.gsm.stk.StkLog.d ( this , "process Refresh" ) ; switch ( cmdDet.commandQualifier ) { case com.android.internal.telephony.gsm.stk.CommandParamsFactory.REFRESH_NAA_INIT_AND_FULL_FILE_CHANGE : case com.android.internal.telephony.gsm.stk.CommandParamsFactory.REFRESH_NAA_INIT_AND_FILE_CHANGE : case com.android.internal.telephony.gsm.stk.CommandParamsFactory.REFRESH_NAA_INIT : case com.android.internal.telephony.gsm.stk.CommandParamsFactory.REFRESH_UICC_RESET : mCmdParams = new com.android.internal.telephony.gsm.stk.DisplayTextParams ( cmdDet , null ) ; break ; } return false ; }

Target:
private boolean processRefresh ( com.android.internal.telephony.cat.CommandDetails cmdDet , java.util.List < com.android.internal.telephony.cat.ComprehensionTlv > ctlvs ) { com.android.internal.telephony.cat.CatLog.d ( this , "process Refresh" ) ; switch ( cmdDet.commandQualifier ) { case com.android.internal.telephony.cat.CommandParamsFactory.REFRESH_NAA_INIT_AND_FULL_FILE_CHANGE : case com.android.internal.telephony.cat.CommandParamsFactory.REFRESH_NAA_INIT_AND_FILE_CHANGE : case com.android.internal.telephony.cat.CommandParamsFactory.REFRESH_NAA_INIT : case com.android.internal.telephony.cat.CommandParamsFactory.REFRESH_UICC_RESET : mCmdParams = new com.android.internal.telephony.cat.DisplayTextParams ( cmdDet , null ) ; break ; } return false ; }
Source:
public void deleteOdex ( java.lang.String apkPath , java.lang.String instructionSet , java.lang.String outputPath ) throws com.android.internal.os.InstallerConnection.InstallerException { checkLock ( ) ; try { mInstalld.deleteOdex ( apkPath , instructionSet , outputPath ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void createOatDir ( java.lang.String oatDir , java.lang.String dexInstructionSet ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.createOatDir ( oatDir , dexInstructionSet ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }
Source:
protected void onCreate ( android.os.Bundle icicle ) { super . onCreate ( icicle ) ; com.android.server.telecom.Log.d ( this , "Settings: onCreate()..." ) ; com.android.server.telecom.QuickResponseUtils.maybeMigrateLegacyQuickResponses ( this ) ; getPreferenceManager ( ) . setSharedPreferencesName ( QuickResponseUtils.SHARED_PREFERENCES_NAME ) ; mPrefs = getPreferenceManager ( ) . getSharedPreferences ( ) ; }

Target:
protected void onCreate ( android.os.Bundle icicle ) { super . onCreate ( icicle ) ; android.telecom.Log.d ( this , "Settings: onCreate()..." ) ; com.android.server.telecom.QuickResponseUtils.maybeMigrateLegacyQuickResponses ( this ) ; getPreferenceManager ( ) . setSharedPreferencesName ( QuickResponseUtils.SHARED_PREFERENCES_NAME ) ; mPrefs = getPreferenceManager ( ) . getSharedPreferences ( ) ; }
Source:
public static void setPrivateDataDirectorySuffix ( java.lang.String suffix , android.content.Context context ) { if ( ! ( org.chromium.base.PathUtils.sInitializationStarted.getAndSet ( true ) ) ) { org.chromium.base.PathUtils.sDataDirectorySuffix = suffix ; org.chromium.base.PathUtils.sDataDirectoryAppContext = context.getApplicationContext ( ) ; org.chromium.base.PathUtils.sDirPathFetchTask = new android.os.AsyncTask < java.lang.Void , java.lang.Void , java.lang.String [ ] > ( ) { @ java.lang.Override protected java.lang.String [ ] doInBackground ( java.lang.Void ... unused ) { return org.chromium.base.PathUtils.setPrivateDataDirectorySuffixInternal ( ) ; } } . executeOnExecutor ( AsyncTask.THREAD_POOL_EXECUTOR ) ; } }

Target:
public static void setPrivateDataDirectorySuffix ( java.lang.String suffix ) { if ( ! ( org.chromium.base.PathUtils.sInitializationStarted.getAndSet ( true ) ) ) { assert ( org.chromium.base.ContextUtils.getApplicationContext ( ) ) != null ; org.chromium.base.PathUtils.sDataDirectorySuffix = suffix ; org.chromium.base.PathUtils.sDirPathFetchTask = new android.os.AsyncTask < java.lang.Void , java.lang.Void , java.lang.String [ ] > ( ) { @ java.lang.Override protected java.lang.String [ ] doInBackground ( java.lang.Void ... unused ) { return org.chromium.base.PathUtils.setPrivateDataDirectorySuffixInternal ( ) ; } } . executeOnExecutor ( AsyncTask.THREAD_POOL_EXECUTOR ) ; } }
Source:
public void cdmaSubscriptionSourceChanged ( int indicationType , int var2 ) { }

Target:
public void stkCallControlAlphaNotify ( int indicationType , java.lang.String alpha ) { mRil.processIndication ( indicationType ) ; if ( RIL.RILJ_LOGD ) mRil.unsljLogRet ( com.android.internal.telephony.RILConstants.RIL_UNSOL_STK_CC_ALPHA_NOTIFY , alpha ) ; if ( ( mRil.mCatCcAlphaRegistrant ) != null ) { mRil.mCatCcAlphaRegistrant.notifyRegistrant ( new android.os.AsyncResult ( null , alpha , null ) ) ; } }
Source:
public void onOrientationChanged ( int rotation ) { if ( rotation == ( android.view.OrientationEventListener.ORIENTATION_UNKNOWN ) ) { return ; } final int orientation = toScreenOrientation ( rotation ) ; if ( ( orientation != ( com.android.incallui.InCallOrientationEventListener.SCREEN_ORIENTATION_UNKNOWN ) ) && ( ( com.android.incallui.InCallOrientationEventListener.sCurrentOrientation ) != orientation ) ) { com.android.dialer.common.LogUtil.i ( "InCallOrientationEventListener.onOrientationChanged" , "orientation: %d -> %d" , com.android.incallui.InCallOrientationEventListener.sCurrentOrientation , orientation ) ; com.android.incallui.InCallOrientationEventListener.sCurrentOrientation = orientation ; com.android.incallui.InCallPresenter.getInstance ( ) . onDeviceOrientationChange ( com.android.incallui.InCallOrientationEventListener.sCurrentOrientation ) ; } }

Target:
public void onOrientationChanged ( int rotation ) { if ( rotation == ( android.view.OrientationEventListener.ORIENTATION_UNKNOWN ) ) { return ; } final int orientation = toScreenOrientation ( rotation ) ; if ( ( orientation != ( com.android.incallui.InCallOrientationEventListener.SCREEN_ORIENTATION_UNKNOWN ) ) && ( ( com.android.incallui.InCallOrientationEventListener.currentOrientation ) != orientation ) ) { com.android.dialer.common.LogUtil.i ( "InCallOrientationEventListener.onOrientationChanged" , "orientation: %d -> %d" , com.android.incallui.InCallOrientationEventListener.currentOrientation , orientation ) ; com.android.incallui.InCallOrientationEventListener.currentOrientation = orientation ; com.android.incallui.InCallPresenter.getInstance ( ) . onDeviceOrientationChange ( com.android.incallui.InCallOrientationEventListener.currentOrientation ) ; } }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mDevice = getDevice ( ) ; sepolicyAnalyze = copyResourceToTempFile ( "/sepolicy-analyze" ) ; sepolicyAnalyze.setExecutable ( true ) ; devicePolicyFile = java.io.File.createTempFile ( "sepolicy" , ".tmp" ) ; devicePolicyFile.deleteOnExit ( ) ; mDevice.executeAdbCommand ( "pull" , "/sys/fs/selinux/policy" , devicePolicyFile.getAbsolutePath ( ) ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mDevice = getDevice ( ) ; sepolicyAnalyze = copyResourceToTempFile ( "/sepolicy-analyze" ) ; sepolicyAnalyze.setExecutable ( true ) ; devicePolicyFile = java.io.File.createTempFile ( "sepolicy" , ".tmp" ) ; devicePolicyFile.deleteOnExit ( ) ; mDevice.pullFile ( "/sys/fs/selinux/policy" , devicePolicyFile ) ; }
Source:
protected void init ( ) { android.icu.dev.test.util.LocaleAliasCollationTest.available = android.icu.util.ULocale.getAvailableLocales ( ) ; for ( int i = 0 ; i < ( android.icu.dev.test.util.LocaleAliasCollationTest.available.length ) ; i ++ ) { availableMap.put ( android.icu.dev.test.util.LocaleAliasCollationTest.available [ i ] . toString ( ) , "" ) ; } }

Target:
public void init ( ) { available = android.icu.util.ULocale.getAvailableLocales ( ) ; for ( int i = 0 ; i < ( available.length ) ; i ++ ) { availableMap.put ( available [ i ] . toString ( ) , "" ) ; } }
Source:
public boolean isValidNumberForRegion ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number , java.lang.String regionCode ) { int countryCode = number.getCountryCode ( ) ; com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata metadata = getMetadataForRegionOrCallingCode ( countryCode , regionCode ) ; if ( ( metadata == null ) || ( ( ! ( com.google.i18n.phonenumbers.PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY.equals ( regionCode ) ) ) && ( countryCode != ( getCountryCodeForValidRegion ( regionCode ) ) ) ) ) { return false ; } java.lang.String nationalSignificantNumber = getNationalSignificantNumber ( number ) ; return ( getNumberTypeHelper ( nationalSignificantNumber , metadata ) ) != ( com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType.UNKNOWN ) ; }

Target:
boolean isNumberMatchingDesc ( java.lang.String nationalNumber , com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneNumberDesc numberDesc ) { java.util.regex.Matcher nationalNumberPatternMatcher = regexCache.getPatternForRegex ( numberDesc.nationalNumberPattern ) . matcher ( nationalNumber ) ; return ( isNumberPossibleForDesc ( nationalNumber , numberDesc ) ) && ( nationalNumberPatternMatcher.matches ( ) ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; org.chromium.base.ContextUtils.initApplicationContext ( getInstrumentation ( ) . getTargetContext ( ) . getApplicationContext ( ) ) ; org.chromium.base.library_loader.LibraryLoader.get ( LibraryProcessType.PROCESS_BROWSER ) . ensureInitialized ( ) ; nativeInit ( ) ; mTestEnvironmentPointer = nativeSetupTestEnvironment ( ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; android.content.Context appContext = getInstrumentation ( ) . getTargetContext ( ) . getApplicationContext ( ) ; org.chromium.base.ContextUtils.initApplicationContext ( appContext ) ; org.chromium.base.library_loader.LibraryLoader.get ( LibraryProcessType.PROCESS_BROWSER ) . ensureInitialized ( appContext ) ; nativeInit ( ) ; mTestEnvironmentPointer = nativeSetupTestEnvironment ( ) ; }
Source:
protected void printProblem ( @ javax.annotation.Nonnull com.android.jack.reporting.Reportable.ProblemLevel problemLevel , @ javax.annotation.Nonnull java.lang.String message , @ javax.annotation.CheckForNull java.lang.String fileName , int startLine , int endLine , int startColumn , int endColumn ) { if ( problemLevel.isVisibleWith ( verbosityLevel ) ) { printFilteredProblem ( problemLevel , message , fileName , startLine , endLine , startColumn , endColumn ) ; } }

Target:
public void report ( @ javax.annotation.Nonnull com.android.jack.reporting.Severity severity , @ javax.annotation.Nonnull com.android.jack.reporting.Reportable reportable ) { if ( ( severity == ( Severity.FATAL ) ) || ( reportable.getDefaultProblemLevel ( ) . isVisibleWith ( verbosityLevel ) ) ) { toProcess.add ( new com.android.jack.reporting.CommonReporter.ProblemDescription ( severity , reportable ) ) ; } }
Source:
public void checkServerTrusted ( java.security.cert.X509Certificate [ ] chain , java.lang.String authType ) throws java.security.cert.CertificateException { checkTrusted ( chain , authType , null , false ) ; }

Target:
public void checkClientTrusted ( java.security.cert.X509Certificate [ ] chain , java.lang.String authType , java.net.Socket socket ) throws java.security.cert.CertificateException { javax.net.ssl.SSLSession session = null ; javax.net.ssl.SSLParameters parameters = null ; if ( socket instanceof javax.net.ssl.SSLSocket ) { javax.net.ssl.SSLSocket sslSocket = ( ( javax.net.ssl.SSLSocket ) ( socket ) ) ; session = org.conscrypt.TrustManagerImpl.getHandshakeSessionOrThrow ( sslSocket ) ; parameters = sslSocket.getSSLParameters ( ) ; } checkTrusted ( chain , authType , session , parameters , true ) ; }
Source:
protected com.android.jack.ir.ast.JArrayType getArrayType ( @ javax.annotation.Nonnull java.lang.String typeName ) throws com.android.jack.ir.ast.JTypeLookupException { int typeNameLength = typeName.length ( ) ; assert ( typeNameLength > 0 ) && ( ( typeName.charAt ( 0 ) ) == '[' ) ; int dim = 0 ; do { dim ++ ; assert dim < typeNameLength ; } while ( ( typeName.charAt ( dim ) ) == '[' ) ; return getArrayType ( getType ( typeName.substring ( dim ) ) , dim ) ; }

Target:
protected com.android.jack.ir.ast.JArrayType findArrayType ( @ javax.annotation.Nonnull java.lang.String typeName ) throws com.android.jack.ir.ast.JTypeLookupException { int typeNameLength = typeName.length ( ) ; assert ( typeNameLength > 0 ) && ( ( typeName.charAt ( 0 ) ) == '[' ) ; int dim = 0 ; do { dim ++ ; assert dim < typeNameLength ; } while ( ( typeName.charAt ( dim ) ) == '[' ) ; return getArrayType ( getType ( typeName.substring ( dim ) ) , dim ) ; }
Source:
public void destroy ( ) { synchronized ( exitValueMutex ) { if ( ( exitValue ) == null ) { try { Libcore.os.kill ( pid , java.lang.SIGKILL ) ; } catch ( libcore.io.ErrnoException e ) { java.lang.System.logI ( ( "Failed to destroy process " + ( pid ) ) , e ) ; } } } libcore.io.IoUtils.closeQuietly ( inputStream ) ; libcore.io.IoUtils.closeQuietly ( errorStream ) ; libcore.io.IoUtils.closeQuietly ( outputStream ) ; }

Target:
public void destroy ( ) { synchronized ( exitValueMutex ) { if ( ( exitValue ) == null ) { try { Libcore.os.kill ( pid , java.lang.SIGKILL ) ; } catch ( android.system.ErrnoException e ) { java.lang.System.logI ( ( "Failed to destroy process " + ( pid ) ) , e ) ; } } } libcore.io.IoUtils.closeQuietly ( inputStream ) ; libcore.io.IoUtils.closeQuietly ( errorStream ) ; libcore.io.IoUtils.closeQuietly ( outputStream ) ; }
Source:
static boolean isValidSniHostname ( java.lang.String sniHostname ) { if ( sniHostname == null ) { return false ; } return ( ( sniHostname.indexOf ( '.' ) ) != ( - 1 ) ) && ( ! ( org.conscrypt.Platform.isLiteralIpAddress ( sniHostname ) ) ) ; }

Target:
static boolean isValidSniHostname ( java.lang.String sniHostname ) { if ( sniHostname == null ) { return false ; } return ( ( ( ( sniHostname.equalsIgnoreCase ( "localhost" ) ) || ( ( sniHostname.indexOf ( '.' ) ) != ( - 1 ) ) ) && ( ! ( org.conscrypt.Platform.isLiteralIpAddress ( sniHostname ) ) ) ) && ( ! ( sniHostname.endsWith ( "." ) ) ) ) && ( ( sniHostname.indexOf ( '' ) ) == ( - 1 ) ) ; }
Source:
public com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor getBaseViewDescriptor ( ) { if ( ( mBaseViewDescriptor ) == null ) { for ( com.android.ide.eclipse.adt.internal.editors.descriptors.ElementDescriptor desc : mViewDescriptors ) { if ( desc instanceof com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor ) { com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor viewDesc = ( ( com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor ) ( desc ) ) ; if ( SdkConstants.CLASS_VIEW.equals ( viewDesc.getFullClassName ( ) ) ) { mBaseViewDescriptor = viewDesc ; break ; } } } } return mBaseViewDescriptor ; }

Target:
public com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor getBaseViewDescriptor ( ) { if ( ( mBaseViewDescriptor ) == null ) { mBaseViewDescriptor = findDescriptorByClass ( SdkConstants.CLASS_VIEW ) ; } return mBaseViewDescriptor ; }