auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private static java.nio.charset.Charset lookup ( java.lang.String charsetName ) { if ( charsetName == null ) throw new java.lang.IllegalArgumentException ( "Null charset name" ) ; if ( ( ( java.nio.charset.Charset.cache1 ) != null ) && ( charsetName.equals ( java.nio.charset.Charset.cache1.getKey ( ) ) ) ) return java.nio.charset.Charset.cache1.getValue ( ) ; return java.nio.charset.Charset.lookup2 ( charsetName ) ; }

Target:
private static java.nio.charset.Charset lookup ( java.lang.String charsetName ) { if ( charsetName == null ) throw new java.lang.IllegalArgumentException ( "Null charset name" ) ; java.lang.Object [ ] a ; if ( ( ( a = java.nio.charset.Charset.cache1 ) != null ) && ( charsetName.equals ( a [ 0 ] ) ) ) return ( ( java.nio.charset.Charset ) ( a [ 1 ] ) ) ; return java.nio.charset.Charset.lookup2 ( charsetName ) ; }
Source:
protected java.lang.String listingString0 ( boolean noteIndices ) { int baseAddress = user.getAddress ( ) ; java.lang.StringBuffer sb = new java.lang.StringBuffer ( 100 ) ; int sz = targets.length ; sb.append ( ( packed ? "packed" : "sparse" ) ) ; sb.append ( "-switch-payload // for switch @ " ) ; sb.append ( com.android.dx.util.Hex.u2 ( baseAddress ) ) ; for ( int i = 0 ; i < sz ; i ++ ) { int absTarget = targets [ i ] . getAddress ( ) ; int relTarget = absTarget - baseAddress ; sb.append ( "\n " ) ; sb.append ( cases.get ( i ) ) ; sb.append ( ": " ) ; sb.append ( com.android.dx.util.Hex.u4 ( absTarget ) ) ; sb.append ( " // " ) ; sb.append ( com.android.dx.util.Hex.s4 ( relTarget ) ) ; } return sb.toString ( ) ; }

Target:
protected java.lang.String listingString0 ( boolean noteIndices ) { int baseAddress = user.getAddress ( ) ; java.lang.StringBuilder sb = new java.lang.StringBuilder ( 100 ) ; int sz = targets.length ; sb.append ( ( packed ? "packed" : "sparse" ) ) ; sb.append ( "-switch-payload // for switch @ " ) ; sb.append ( com.android.dx.util.Hex.u2 ( baseAddress ) ) ; for ( int i = 0 ; i < sz ; i ++ ) { int absTarget = targets [ i ] . getAddress ( ) ; int relTarget = absTarget - baseAddress ; sb.append ( "\n " ) ; sb.append ( cases.get ( i ) ) ; sb.append ( ": " ) ; sb.append ( com.android.dx.util.Hex.u4 ( absTarget ) ) ; sb.append ( " // " ) ; sb.append ( com.android.dx.util.Hex.s4 ( relTarget ) ) ; } return sb.toString ( ) ; }
Source:
public com.google.gct.testing.GoogleCloudTestingConfiguration copy ( java.lang.String prefix ) { com.google.gct.testing.GoogleCloudTestingConfiguration newConfiguration = new com.google.gct.testing.GoogleCloudTestingConfiguration ( ( prefix + ( name ) ) , icon , facet ) ; newConfiguration.deviceDimension.enableAll ( deviceDimension.getEnabledTypes ( ) ) ; newConfiguration.apiDimension.enableAll ( apiDimension.getEnabledTypes ( ) ) ; newConfiguration.languageDimension.enableAll ( languageDimension.getEnabledTypes ( ) ) ; newConfiguration.orientationDimension.enableAll ( orientationDimension.getEnabledTypes ( ) ) ; return newConfiguration ; }

Target:
public com.google.gct.testing.GoogleCloudTestingConfiguration copy ( java.lang.String prefix ) { com.google.gct.testing.GoogleCloudTestingConfiguration newConfiguration = ( prefix == null ) ? new com.google.gct.testing.GoogleCloudTestingConfiguration ( id , name , icon , facet ) : new com.google.gct.testing.GoogleCloudTestingConfiguration ( ( prefix + ( name ) ) , icon , facet ) ; newConfiguration.deviceDimension.enableAll ( deviceDimension.getEnabledTypes ( ) ) ; newConfiguration.apiDimension.enableAll ( apiDimension.getEnabledTypes ( ) ) ; newConfiguration.languageDimension.enableAll ( languageDimension.getEnabledTypes ( ) ) ; newConfiguration.orientationDimension.enableAll ( orientationDimension.getEnabledTypes ( ) ) ; return newConfiguration ; }
Source:
public void test_getURIs ( ) throws java.net.URISyntaxException { java.util.List < java.net.URI > list = cookieStore.getURIs ( ) ; assertTrue ( list.isEmpty ( ) ) ; assertTrue ( ( list instanceof java.util.ArrayList ) ) ; java.net.URI uri1 = new java.net.URI ( "http://geturis1.test.com" ) ; java.net.HttpCookie cookie1 = new java.net.HttpCookie ( "cookie_name1" , "cookie_value1" ) ; cookieStore.add ( uri1 , cookie1 ) ; list = cookieStore.getURIs ( ) ; assertEquals ( "geturis1.test.com" , list.get ( 0 ) . getHost ( ) ) ; java.net.HttpCookie cookie2 = new java.net.HttpCookie ( "cookie_name2" , "cookie_value2" ) ; cookieStore.add ( uri1 , cookie2 ) ; list = cookieStore.getURIs ( ) ; assertEquals ( 1 , list.size ( ) ) ; java.net.URI uri2 = new java.net.URI ( "http://geturis2.test.com" ) ; cookieStore.add ( uri2 , cookie2 ) ; list = cookieStore.getURIs ( ) ; assertEquals ( 2 , list.size ( ) ) ; assertTrue ( list.contains ( uri1 ) ) ; assertTrue ( list.contains ( uri2 ) ) ; }

Target:
public void test_getURIs ( ) throws java.net.URISyntaxException { java.util.List < java.net.URI > list = cookieStore.getURIs ( ) ; assertTrue ( list.isEmpty ( ) ) ; java.net.URI uri1 = new java.net.URI ( "http://geturis1.test.com" ) ; java.net.HttpCookie cookie1 = new java.net.HttpCookie ( "cookie_name1" , "cookie_value1" ) ; cookieStore.add ( uri1 , cookie1 ) ; list = cookieStore.getURIs ( ) ; assertEquals ( "geturis1.test.com" , list.get ( 0 ) . getHost ( ) ) ; java.net.HttpCookie cookie2 = new java.net.HttpCookie ( "cookie_name2" , "cookie_value2" ) ; cookieStore.add ( uri1 , cookie2 ) ; list = cookieStore.getURIs ( ) ; assertEquals ( 1 , list.size ( ) ) ; java.net.URI uri2 = new java.net.URI ( "http://geturis2.test.com" ) ; cookieStore.add ( uri2 , cookie2 ) ; list = cookieStore.getURIs ( ) ; assertEquals ( 2 , list.size ( ) ) ; assertTrue ( list.contains ( uri1 ) ) ; assertTrue ( list.contains ( uri2 ) ) ; }
Source:
public org.w3c.dom.Document parse ( @ com.android.annotations.NonNull byte [ ] data ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { java.lang.String xml = com.android.utils.PositionXmlParser.getXmlString ( data ) ; xml = com.android.utils.XmlUtils.stripBom ( xml ) ; return parse ( xml , new org.xml.sax.InputSource ( new java.io.StringReader ( xml ) ) , true ) ; }

Target:
public static org.w3c.dom.Document parse ( @ com.android.annotations.NonNull byte [ ] data ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { java.lang.String xml = com.android.utils.PositionXmlParser.getXmlString ( data ) ; xml = com.android.utils.XmlUtils.stripBom ( xml ) ; return com.android.utils.PositionXmlParser.parse ( xml , new org.xml.sax.InputSource ( new java.io.StringReader ( xml ) ) , true ) ; }
Source:
public void testAddObserverReturnValue ( ) { org.chromium.base.ObserverList < java.lang.Object > observerList = new org.chromium.base.ObserverList < java.lang.Object > ( ) ; java.lang.Object a = new java.lang.Object ( ) ; org.junit.Assert.assertTrue ( observerList.addObserver ( a ) ) ; org.junit.Assert.assertFalse ( observerList.addObserver ( a ) ) ; java.lang.Object b = new java.lang.Object ( ) ; org.junit.Assert.assertTrue ( observerList.addObserver ( b ) ) ; org.junit.Assert.assertFalse ( observerList.addObserver ( null ) ) ; }

Target:
public void testAddObserverReturnValue ( ) { org.chromium.base.ObserverList < java.lang.Object > observerList = new org.chromium.base.ObserverList < java.lang.Object > ( ) ; java.lang.Object a = new java.lang.Object ( ) ; assertTrue ( observerList.addObserver ( a ) ) ; assertFalse ( observerList.addObserver ( a ) ) ; java.lang.Object b = new java.lang.Object ( ) ; assertTrue ( observerList.addObserver ( b ) ) ; assertFalse ( observerList.addObserver ( null ) ) ; }
Source:
public static byte [ ] convert ( java.lang.String bpf ) throws android.net.apf.ApfGenerator.IllegalInstructionException { android.net.apf.ApfGenerator gen = new android.net.apf.ApfGenerator ( ) ; for ( java.lang.String line : bpf.split ( "\\n" ) ) android.net.apf.Bpf2Apf.convertLine ( line , gen ) ; return gen.generate ( ) ; }

Target:
public static byte [ ] convert ( java.lang.String bpf ) throws android.net.apf.ApfGenerator.IllegalInstructionException { android.net.apf.ApfGenerator gen = new android.net.apf.ApfGenerator ( 3 ) ; for ( java.lang.String line : bpf.split ( "\\n" ) ) android.net.apf.Bpf2Apf.convertLine ( line , gen ) ; return gen.generate ( ) ; }
Source:
public boolean setOperatorBrandOverride ( java.lang.String brand ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.setOperatorBrandOverride ( brand ) ; } catch ( android.os.RemoteException ex ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , "setOperatorBrandOverride RemoteException" , ex ) ; } catch ( java.lang.NullPointerException ex ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , "setOperatorBrandOverride NPE" , ex ) ; } return false ; }

Target:
public boolean setOperatorBrandOverride ( int subId , java.lang.String brand ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.setOperatorBrandOverride ( subId , brand ) ; } catch ( android.os.RemoteException ex ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , "setOperatorBrandOverride RemoteException" , ex ) ; } catch ( java.lang.NullPointerException ex ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , "setOperatorBrandOverride NPE" , ex ) ; } return false ; }
Source:
private java.text.DateFormat getTimeFormat ( ) { int res ; android.content.Context context = getContext ( ) ; if ( android.text.format.DateFormat.is24HourFormat ( context ) ) { res = R.string.twenty_four_hour_time_format ; } else { res = R.string.twelve_hour_time_format ; } java.lang.String format = context.getString ( res ) ; return new java.text.SimpleDateFormat ( format ) ; }

Target:
private java.text.DateFormat getTimeFormat ( ) { return android.text.format.DateFormat.getTimeFormat ( getContext ( ) ) ; }
Source:
java.lang.String getRemoteName ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.btservice.AdapterService.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; com.android.bluetooth.btservice.RemoteDevices.DeviceProperties deviceProp = mRemoteDevices.getDeviceProperties ( device ) ; if ( deviceProp == null ) return null ; return deviceProp.getName ( ) ; }

Target:
java.lang.String getRemoteName ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.btservice.AdapterService.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; if ( ( mRemoteDevices ) == null ) return null ; com.android.bluetooth.btservice.RemoteDevices.DeviceProperties deviceProp = mRemoteDevices.getDeviceProperties ( device ) ; if ( deviceProp == null ) return null ; return deviceProp.getName ( ) ; }
Source:
private static void checkFromToBounds ( int arrayLength , int origin , int fence ) { if ( origin > fence ) { throw new java.lang.IllegalArgumentException ( ( ( ( ( "origin(" + origin ) + ") > fence(" ) + fence ) + ")" ) ) ; } if ( origin < 0 ) { throw new java.lang.ArrayIndexOutOfBoundsException ( origin ) ; } if ( fence > arrayLength ) { throw new java.lang.ArrayIndexOutOfBoundsException ( fence ) ; } }

Target:
private static void checkFromToBounds ( int arrayLength , int origin , int fence ) { if ( origin > fence ) { throw new java.lang.ArrayIndexOutOfBoundsException ( ( ( ( ( "origin(" + origin ) + ") > fence(" ) + fence ) + ")" ) ) ; } if ( origin < 0 ) { throw new java.lang.ArrayIndexOutOfBoundsException ( origin ) ; } if ( fence > arrayLength ) { throw new java.lang.ArrayIndexOutOfBoundsException ( fence ) ; } }
Source:
public void test_formatLjava_util_Date ( ) { try { java.text.DateFormat format = java.text.DateFormat.getDateTimeInstance ( java.text.DateFormat.SHORT , java.text.DateFormat.SHORT , java.util.Locale.US ) ; java.util.Date current = new java.util.Date ( ) ; java.lang.String dtf = format.format ( current ) ; java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat ( "M/d/yy h:mm a" ) ; assertTrue ( "Incorrect date format" , sdf.format ( current ) . equals ( dtf ) ) ; } catch ( java.lang.Exception e ) { fail ( ( "Unexpected exception " + ( e.toString ( ) ) ) ) ; } }

Target:
public void test_formatLjava_util_Date ( ) { try { java.text.DateFormat format = java.text.DateFormat.getDateTimeInstance ( java.text.DateFormat.SHORT , java.text.DateFormat.SHORT , java.util.Locale.US ) ; java.util.Date current = new java.util.Date ( ) ; java.lang.String dtf = format.format ( current ) ; java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat ( "M/d/yy h:mm a" , java.util.Locale.US ) ; assertTrue ( "Incorrect date format" , sdf.format ( current ) . equals ( dtf ) ) ; } catch ( java.lang.Exception e ) { fail ( ( "Unexpected exception " + ( e.toString ( ) ) ) ) ; } }
Source:
public final java.lang.String toHuman ( ) { java.lang.StringBuffer sb = new java.lang.StringBuffer ( 100 ) ; boolean first = true ; sb.append ( "{" ) ; for ( com.android.dx.dex.file.OffsettedItem i : items ) { if ( first ) { first = false ; } else { sb.append ( ", " ) ; } sb.append ( i.toHuman ( ) ) ; } sb.append ( "}" ) ; return sb.toString ( ) ; }

Target:
public final java.lang.String toHuman ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( 100 ) ; boolean first = true ; sb.append ( "{" ) ; for ( com.android.dx.dex.file.OffsettedItem i : items ) { if ( first ) { first = false ; } else { sb.append ( ", " ) ; } sb.append ( i.toHuman ( ) ) ; } sb.append ( "}" ) ; return sb.toString ( ) ; }
Source:
public void onClick ( android.content.DialogInterface dialog , int which ) { switch ( which ) { case android.content.DialogInterface.BUTTON_POSITIVE : com.android.bluetooth.opp.BluetoothOppManager mOppManager = com.android.bluetooth.opp.BluetoothOppManager.getInstance ( this ) ; mOppManager.enableBluetooth ( ) ; mOppManager.mSendingFlag = true ; android.widget.Toast.makeText ( this , getString ( R.string.enabling_progress_content ) , Toast.LENGTH_SHORT ) . show ( ) ; android.content.Intent in = new android.content.Intent ( this , com.android.bluetooth.opp.BluetoothOppBtEnablingActivity.class ) ; in.setFlags ( Intent.FLAG_ACTIVITY_NEW_TASK ) ; this . startActivity ( in ) ; finish ( ) ; break ; case android.content.DialogInterface.BUTTON_NEGATIVE : finish ( ) ; break ; } }

Target:
public void onClick ( android.content.DialogInterface dialog , int which ) { switch ( which ) { case android.content.DialogInterface.BUTTON_POSITIVE : mOppManager.enableBluetooth ( ) ; mOppManager.mSendingFlag = true ; android.widget.Toast.makeText ( this , getString ( R.string.enabling_progress_content ) , Toast.LENGTH_SHORT ) . show ( ) ; android.content.Intent in = new android.content.Intent ( this , com.android.bluetooth.opp.BluetoothOppBtEnablingActivity.class ) ; in.setFlags ( Intent.FLAG_ACTIVITY_NEW_TASK ) ; this . startActivity ( in ) ; finish ( ) ; break ; case android.content.DialogInterface.BUTTON_NEGATIVE : finish ( ) ; break ; } }
Source:
private static void addProperties ( @ javax.annotation.Nonnull java.util.Map < java.lang.String , java.lang.String > properties , @ javax.annotation.Nonnull java.util.List < java.lang.String > args ) { for ( java.util.Map.Entry < java.lang.String , java.lang.String > entry : properties.entrySet ( ) ) { args.add ( "-D" ) ; args.add ( ( ( ( entry.getKey ( ) ) + "=" ) + ( entry.getValue ( ) ) ) ) ; } }

Target:
protected static void addProperties ( @ javax.annotation.Nonnull java.util.Map < java.lang.String , java.lang.String > properties , @ javax.annotation.Nonnull java.util.List < java.lang.String > args ) { for ( java.util.Map.Entry < java.lang.String , java.lang.String > entry : properties.entrySet ( ) ) { args.add ( "-D" ) ; args.add ( ( ( ( entry.getKey ( ) ) + "=" ) + ( entry.getValue ( ) ) ) ) ; } }
Source:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.SuperReference x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.ast.JClass superClass ; assert ( ( superClass = curClass.classType.getSuperClass ( ) ) == null ) || ( getTypeMap ( ) . get ( x.resolvedType ) . isSameType ( superClass ) ) ; push ( makeThisRef ( makeSourceInfo ( x ) ) ) ; } catch ( java.lang.Throwable e ) { throw translateException ( x , e ) ; } }

Target:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.SuperReference x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.ast.JClass superClass ; assert ( ( superClass = curClass.classType.getSuperClass ( ) ) == null ) || ( getTypeMap ( ) . get ( x.resolvedType ) . isSameType ( superClass ) ) ; push ( makeThisRef ( makeSourceInfo ( x ) ) ) ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }
Source:
public void afterHandshake ( int session , int s , int c , java.net.Socket sock , java.io.FileDescriptor fd , org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.assertEqualCertificateChains ( org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.getServerCertificates ( ) , org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_get_certificate ( s ) ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }

Target:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.assertEqualCertificateChains ( org.apache.harmony.xnet.provider.jsse.NativeCryptoTest.getServerCertificates ( ) , org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_get_certificate ( s ) ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }
Source:
public void test_isLetterOrDigitC ( ) { assertTrue ( "Digit returned false" , java.lang.Character.isLetterOrDigit ( '9' ) ) ; assertTrue ( "Letter returned false" , java.lang.Character.isLetterOrDigit ( 'K' ) ) ; assertTrue ( "Control returned true" , ( ! ( java.lang.Character.isLetterOrDigit ( '\n' ) ) ) ) ; assertTrue ( "Punctuation returned true" , ( ! ( java.lang.Character.isLetterOrDigit ( '?' ) ) ) ) ; }

Target:
public void test_isLetterOrDigitC ( ) { assertTrue ( "Digit returned false" , java.lang.Character.isLetterOrDigit ( '9' ) ) ; assertTrue ( "Letter returned false" , java.lang.Character.isLetterOrDigit ( 'K' ) ) ; assertFalse ( "Control returned true" , java.lang.Character.isLetterOrDigit ( '\n' ) ) ; assertFalse ( "Punctuation returned true" , java.lang.Character.isLetterOrDigit ( '?' ) ) ; }
Source:
public void test_parkUntil_3 ( ) { java.util.concurrent.CyclicBarrier barrier = new java.util.concurrent.CyclicBarrier ( 2 ) ; tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker parker = new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker ( barrier , true , 1000 ) ; java.lang.Thread parkerThread = new java.lang.Thread ( parker ) ; tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.UNSAFE.unpark ( parkerThread ) ; parkerThread.start ( ) ; parker.assertDurationIsInRange ( 0 ) ; }

Target:
public void test_parkUntil_3 ( ) { java.util.concurrent.CyclicBarrier barrier = new java.util.concurrent.CyclicBarrier ( 1 ) ; tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker parker = new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker ( barrier , true , 1000 ) ; java.lang.Thread parkerThread = new java.lang.Thread ( parker ) ; tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.UNSAFE.unpark ( parkerThread ) ; parkerThread.start ( ) ; parker.assertDurationIsInRange ( 0 ) ; }
Source:
public void afterHandshake ( int session , int s , int c , java.net.Socket sock , java.io.FileDescriptor fd , org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { java.lang.String v = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_SESSION_get_version ( session ) ; assertTrue ( StandardNames.SSL_SOCKET_PROTOCOLS.contains ( v ) ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }

Target:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { java.lang.String v = org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_SESSION_get_version ( session ) ; assertTrue ( StandardNames.SSL_SOCKET_PROTOCOLS.contains ( v ) ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }
Source:
public boolean contains ( @ javax.annotation.Nullable java.lang.Object rowKey , @ javax.annotation.Nullable java.lang.Object columnKey ) { if ( ( rowKey == null ) || ( columnKey == null ) ) { return false ; } java.util.Map < C , V > map = com.google.common.collect.Maps.safeGet ( backingMap , rowKey ) ; return ( map != null ) && ( com.google.common.collect.Maps.safeContainsKey ( map , columnKey ) ) ; }

Target:
public boolean contains ( @ javax.annotation.Nullable java.lang.Object rowKey , @ javax.annotation.Nullable java.lang.Object columnKey ) { return ( ( rowKey != null ) && ( columnKey != null ) ) && ( super . contains ( rowKey , columnKey ) ) ; }
Source:
public synchronized boolean enable ( boolean quietMode ) { enforceCallingOrSelfPermission ( com.android.bluetooth.btservice.AdapterService.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH ADMIN permission" ) ; if ( mUserManager.hasUserRestriction ( UserManager.DISALLOW_BLUETOOTH , UserHandle.SYSTEM ) ) { debugLog ( "enable() called when Bluetooth was disallowed" ) ; return false ; } debugLog ( ( "enable() - Enable called with quiet mode status = " + quietMode ) ) ; mQuietmode = quietMode ; android.os.Message m = mAdapterStateMachine.obtainMessage ( AdapterState.BLE_TURN_ON ) ; mAdapterStateMachine.sendMessage ( m ) ; return true ; }

Target:
public synchronized boolean enable ( boolean quietMode ) { enforceCallingOrSelfPermission ( com.android.bluetooth.btservice.AdapterService.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH ADMIN permission" ) ; if ( mUserManager.hasUserRestriction ( UserManager.DISALLOW_BLUETOOTH , UserHandle.SYSTEM ) ) { debugLog ( "enable() called when Bluetooth was disallowed" ) ; return false ; } debugLog ( ( "enable() - Enable called with quiet mode status = " + quietMode ) ) ; mQuietmode = quietMode ; mAdapterStateMachine.sendMessage ( AdapterState.BLE_TURN_ON ) ; return true ; }
Source:
public static void checkStructure ( @ javax.annotation.CheckForNull java.io.File [ ] bootclasspath , @ javax.annotation.CheckForNull java.io.File [ ] classpath , @ javax.annotation.Nonnull java.io.File fileOrSourceList , boolean withDebugInfo ) throws java.lang.Exception { com.android.jack.TestTools.checkStructure ( bootclasspath , classpath , fileOrSourceList , withDebugInfo , false , 0.0F , ( ( com.android.jack.JarJarRules ) ( null ) ) , ( ( com.android.jack.ProguardFlags [ ] ) ( null ) ) ) ; }

Target:
public static void checkStructure ( @ javax.annotation.CheckForNull java.io.File [ ] classpath , @ javax.annotation.Nonnull java.io.File fileOrSourceList , boolean withDebugInfo ) throws java.lang.Exception { com.android.jack.TestTools.checkStructure ( classpath , fileOrSourceList , withDebugInfo , false , 0.0F , ( ( com.android.jack.JarJarRules ) ( null ) ) , ( ( com.android.jack.ProguardFlags [ ] ) ( null ) ) ) ; }
Source:
public void notifyChanged ( ) { if ( ( listeners ) != null ) { synchronized ( notifyLock ) { if ( ( listeners ) != null ) { if ( ( notifyThread ) == null ) { notifyThread = new android.icu.impl.ICUNotifier.NotifyThread ( this ) ; notifyThread.setDaemon ( true ) ; notifyThread.start ( ) ; } notifyThread.queue ( listeners.toArray ( new java.util.EventListener [ listeners.size ( ) ] ) ) ; } } } }

Target:
public void notifyChanged ( ) { synchronized ( notifyLock ) { if ( ( listeners ) != null ) { if ( ( notifyThread ) == null ) { notifyThread = new android.icu.impl.ICUNotifier.NotifyThread ( this ) ; notifyThread.setDaemon ( true ) ; notifyThread.start ( ) ; } notifyThread.queue ( listeners.toArray ( new java.util.EventListener [ listeners.size ( ) ] ) ) ; } } }
Source:
private long readId ( ) throws java.io.IOException { switch ( mIdSize ) { case 1 : return mInput.readUnsignedByte ( ) ; case 2 : return mInput.readUnsignedShort ( ) ; case 4 : return ( ( long ) ( mInput.readInt ( ) ) ) & 4294967295L ; case 8 : return mInput.readLong ( ) ; } throw new java.lang.IllegalArgumentException ( "ID Length must be 1, 2, 4, or 8" ) ; }

Target:
private long readId ( ) throws java.io.IOException { return readId ( mInput ) ; }
Source:
public void testWrapperCleanup ( ) { android.os.TestLooperManager looperManager = new android.os.TestLooperManager ( mThread.getLooper ( ) ) ; com.android.bluetooth.avrcp.MediaPlayerWrapper wrapper = com.android.bluetooth.avrcp.MediaPlayerWrapper.wrap ( mMockController , mThread.getLooper ( ) , false ) ; wrapper.registerCallback ( mTestCbs ) ; wrapper.cleanup ( ) ; verify ( mMockController ) . unregisterCallback ( any ( ) ) ; org.junit.Assert.assertNull ( wrapper.getTimeoutHandler ( ) ) ; }

Target:
public void testWrapperCleanup ( ) { android.os.TestLooperManager looperManager = new android.os.TestLooperManager ( mThread.getLooper ( ) ) ; com.android.bluetooth.avrcp.MediaPlayerWrapper wrapper = com.android.bluetooth.avrcp.MediaPlayerWrapper.wrap ( mMockController , mThread.getLooper ( ) ) ; wrapper.registerCallback ( mTestCbs ) ; wrapper.cleanup ( ) ; verify ( mMockController ) . unregisterCallback ( any ( ) ) ; org.junit.Assert.assertNull ( wrapper.getTimeoutHandler ( ) ) ; }
Source:
public boolean unregisterApp ( ) { android.util.Log.v ( android.bluetooth.BluetoothHidDevice.TAG , "unregisterApp()" ) ; boolean result = false ; final android.bluetooth.IBluetoothHidDevice service = mService ; if ( service != null ) { try { result = service.unregisterApp ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothHidDevice.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothHidDevice.TAG , "Proxy not attached to service" ) ; } return result ; }

Target:
public boolean unregisterApp ( ) { boolean result = false ; final android.bluetooth.IBluetoothHidDevice service = mService ; if ( service != null ) { try { result = service.unregisterApp ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothHidDevice.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothHidDevice.TAG , "Proxy not attached to service" ) ; } return result ; }
Source:
protected void syncSpi ( ) throws java.util.prefs.BackingStoreException { try { java.security.AccessController.doPrivileged ( new java.security.PrivilegedExceptionAction < java.lang.Void > ( ) { public java.lang.Void run ( ) throws java.util.prefs.BackingStoreException { syncSpiPrivileged ( ) ; return null ; } } ) ; } catch ( java.security.PrivilegedActionException e ) { throw ( ( java.util.prefs.BackingStoreException ) ( e.getException ( ) ) ) ; } }

Target:
protected void syncSpi ( ) throws java.util.prefs.BackingStoreException { syncSpiPrivileged ( ) ; }
Source:
public static void setAdb ( java.lang.String adb , boolean startAdb ) { if ( adb != null ) { if ( com.android.ide.eclipse.ddms.DdmsPlugin.setAdbLocation ( adb ) ) { com.android.ide.eclipse.ddms.DdmsPlugin.sPlugin.getPreferenceStore ( ) . setValue ( com.android.ide.eclipse.ddms.DdmsPlugin.ADB_LOCATION , com.android.ide.eclipse.ddms.DdmsPlugin.sAdbLocation ) ; if ( startAdb ) { new java.lang.Thread ( ) { @ java.lang.Override public void run ( ) { com.android.ide.eclipse.ddms.DdmsPlugin.getDefault ( ) . initDdmlib ( ) ; com.android.ddmlib.AndroidDebugBridge.createBridge ( com.android.ide.eclipse.ddms.DdmsPlugin.sAdbLocation , false ) ; } } . start ( ) ; } } } }

Target:
public static void setAdb ( java.lang.String adb , boolean startAdb ) { if ( adb != null ) { if ( com.android.ide.eclipse.ddms.DdmsPlugin.setAdbLocation ( adb ) ) { if ( startAdb ) { new java.lang.Thread ( ) { @ java.lang.Override public void run ( ) { com.android.ddmlib.AndroidDebugBridge.createBridge ( com.android.ide.eclipse.ddms.DdmsPlugin.sAdbLocation , false ) ; } } . start ( ) ; } } } }
Source:
protected void engineInit ( int opmode , java.security.Key key , java.security.AlgorithmParameters params , java.security.SecureRandom random ) throws java.security.InvalidAlgorithmParameterException , java.security.InvalidKeyException { if ( params != null ) { throw new java.security.InvalidAlgorithmParameterException ( ( "unknown param type: " + ( params.getClass ( ) . getName ( ) ) ) ) ; } engineInitInternal ( opmode , key ) ; }

Target:
protected void engineInit ( int opmode , java.security.Key key , java.security.AlgorithmParameters params , java.security.SecureRandom random ) throws java.security.InvalidAlgorithmParameterException , java.security.InvalidKeyException { if ( params != null ) { throw new java.security.InvalidAlgorithmParameterException ( ( "unknown param type: " + ( params.getClass ( ) . getName ( ) ) ) ) ; } engineInitInternal ( opmode , key , null ) ; }
Source:
private void fillCombo ( org.eclipse.swt.widgets.Combo combo , com.android.sdklib.resources.ResourceEnum [ ] resEnums ) { for ( com.android.sdklib.resources.ResourceEnum resEnum : resEnums ) { if ( ( ( ( mDeviceMode ) == false ) || ( ( resEnum.isValidValueForDevice ( ) ) == false ) ) && ( ( resEnum.isFakeValue ( ) ) == false ) ) { combo.add ( resEnum.getShortDisplayValue ( ) ) ; } } }

Target:
private void fillCombo ( org.eclipse.swt.widgets.Combo combo , com.android.sdklib.resources.ResourceEnum [ ] resEnums ) { for ( com.android.sdklib.resources.ResourceEnum resEnum : resEnums ) { if ( ( ( ( mDeviceMode ) == false ) || ( resEnum.isValidValueForDevice ( ) ) ) && ( ( resEnum.isFakeValue ( ) ) == false ) ) { combo.add ( resEnum.getShortDisplayValue ( ) ) ; } } }
Source:
private void registerForSimRecordEvents ( ) { com.android.internal.telephony.uicc.IccRecords r = mIccRecords.get ( ) ; if ( r == null ) { return ; } r.registerForNetworkSelectionModeAutomatic ( this , com.android.internal.telephony.gsm.EVENT_SET_NETWORK_AUTOMATIC , null ) ; r.registerForNewSms ( this , com.android.internal.telephony.gsm.EVENT_NEW_ICC_SMS , null ) ; r.registerForRecordsEvents ( this , com.android.internal.telephony.gsm.EVENT_ICC_RECORD_EVENTS , null ) ; r.registerForRecordsLoaded ( this , com.android.internal.telephony.gsm.EVENT_SIM_RECORDS_LOADED , null ) ; }

Target:
private void registerForSimRecordEvents ( ) { com.android.internal.telephony.uicc.IccRecords r = mIccRecords.get ( ) ; if ( r == null ) { return ; } r.registerForNetworkSelectionModeAutomatic ( this , com.android.internal.telephony.gsm.EVENT_SET_NETWORK_AUTOMATIC , null ) ; r.registerForRecordsEvents ( this , com.android.internal.telephony.gsm.EVENT_ICC_RECORD_EVENTS , null ) ; r.registerForRecordsLoaded ( this , com.android.internal.telephony.gsm.EVENT_SIM_RECORDS_LOADED , null ) ; }
Source:
public android.net.LinkProperties.CompareResult < android.net.RouteInfo > compareAllRoutes ( android.net.LinkProperties target ) { android.net.LinkProperties.CompareResult < android.net.RouteInfo > result = new android.net.LinkProperties.CompareResult < android.net.RouteInfo > ( ) ; result.removed = getAllRoutes ( ) ; result.added.clear ( ) ; if ( target != null ) { for ( android.net.RouteInfo r : target.getAllRoutes ( ) ) { if ( ! ( result.removed.remove ( r ) ) ) { result.added.add ( r ) ; } } } return result ; }

Target:
public android.net.LinkProperties.CompareResult < android.net.RouteInfo > compareAllRoutes ( android.net.LinkProperties target ) { return new android.net.LinkProperties.CompareResult ( getAllRoutes ( ) , ( target != null ? target.getAllRoutes ( ) : null ) ) ; }
Source:
public void run ( ) { com.android.server.location.GpsXtraDownloader xtraDownloader = new com.android.server.location.GpsXtraDownloader ( mContext , mProperties ) ; byte [ ] data = xtraDownloader.downloadXtraData ( ) ; if ( data != null ) { if ( com.android.server.location.GpsLocationProvider.DEBUG ) { android.util.Log.d ( com.android.server.location.GpsLocationProvider.TAG , "calling native_inject_xtra_data" ) ; } native_inject_xtra_data ( data , data.length ) ; } sendMessage ( com.android.server.location.GpsLocationProvider.DOWNLOAD_XTRA_DATA_FINISHED , 0 , null ) ; if ( data == null ) { mHandler.sendEmptyMessageDelayed ( com.android.server.location.GpsLocationProvider.DOWNLOAD_XTRA_DATA , com.android.server.location.GpsLocationProvider.RETRY_INTERVAL ) ; } mWakeLock.release ( ) ; }

Target:
public void run ( ) { com.android.server.location.GpsXtraDownloader xtraDownloader = new com.android.server.location.GpsXtraDownloader ( mProperties ) ; byte [ ] data = xtraDownloader.downloadXtraData ( ) ; if ( data != null ) { if ( com.android.server.location.GpsLocationProvider.DEBUG ) { android.util.Log.d ( com.android.server.location.GpsLocationProvider.TAG , "calling native_inject_xtra_data" ) ; } native_inject_xtra_data ( data , data.length ) ; } sendMessage ( com.android.server.location.GpsLocationProvider.DOWNLOAD_XTRA_DATA_FINISHED , 0 , null ) ; if ( data == null ) { mHandler.sendEmptyMessageDelayed ( com.android.server.location.GpsLocationProvider.DOWNLOAD_XTRA_DATA , com.android.server.location.GpsLocationProvider.RETRY_INTERVAL ) ; } mWakeLock.release ( ) ; }
Source:
public static org.eclipse.jdt.core.IJavaProject [ ] getJavaProjects ( org.eclipse.core.resources.IProject [ ] projects ) throws org.eclipse.core.runtime.CoreException { java.util.ArrayList < org.eclipse.jdt.core.IJavaProject > list = new java.util.ArrayList < org.eclipse.jdt.core.IJavaProject > ( ) ; for ( org.eclipse.core.resources.IProject p : projects ) { if ( ( p.isOpen ( ) ) && ( p.hasNature ( org.eclipse.jdt.core.JavaCore.NATURE_ID ) ) ) { list.add ( org.eclipse.jdt.core.JavaCore.create ( p ) ) ; } } return list.toArray ( new org.eclipse.jdt.core.IJavaProject [ list.size ( ) ] ) ; }

Target:
public static java.util.List < org.eclipse.jdt.core.IJavaProject > getJavaProjects ( java.util.List < org.eclipse.core.resources.IProject > projects ) throws org.eclipse.core.runtime.CoreException { java.util.ArrayList < org.eclipse.jdt.core.IJavaProject > list = new java.util.ArrayList < org.eclipse.jdt.core.IJavaProject > ( ) ; for ( org.eclipse.core.resources.IProject p : projects ) { if ( ( p.isOpen ( ) ) && ( p.hasNature ( org.eclipse.jdt.core.JavaCore.NATURE_ID ) ) ) { list.add ( org.eclipse.jdt.core.JavaCore.create ( p ) ) ; } } return list ; }
Source:
private void generateTestList ( java.lang.String path ) { try { java.io.File tests_list = new java.io.File ( com.android.dumprendertree.Menu.LAYOUT_TESTS_LIST_FILE ) ; java.io.BufferedOutputStream bos = new java.io.BufferedOutputStream ( new java.io.FileOutputStream ( tests_list , false ) ) ; com.android.dumprendertree.FsUtils.findLayoutTestsRecursively ( bos , path ) ; bos.flush ( ) ; bos.close ( ) ; } catch ( java.lang.Exception e ) { android.util.Log.e ( com.android.dumprendertree.Menu.LOGTAG , ( "Error when creating test list: " + ( e.getMessage ( ) ) ) ) ; } }

Target:
private void generateTestList ( java.lang.String path ) { try { java.io.File tests_list = new java.io.File ( com.android.dumprendertree.Menu.LAYOUT_TESTS_LIST_FILE ) ; java.io.BufferedOutputStream bos = new java.io.BufferedOutputStream ( new java.io.FileOutputStream ( tests_list , false ) ) ; com.android.dumprendertree.FsUtils.findLayoutTestsRecursively ( bos , path , false ) ; bos.flush ( ) ; bos.close ( ) ; } catch ( java.lang.Exception e ) { android.util.Log.e ( com.android.dumprendertree.Menu.LOGTAG , ( "Error when creating test list: " + ( e.getMessage ( ) ) ) ) ; } }
Source:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.ConditionalExpression x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.sourceinfo.SourceInfo info = makeSourceInfo ( x ) ; com.android.jack.ir.ast.JExpression valueIfFalse = pop ( x.valueIfFalse ) ; com.android.jack.ir.ast.JExpression valueIfTrue = pop ( x.valueIfTrue ) ; com.android.jack.ir.ast.JExpression condition = pop ( x.condition ) ; push ( new com.android.jack.ir.ast.JConditionalExpression ( info , condition , valueIfTrue , valueIfFalse ) ) ; } catch ( java.lang.Throwable e ) { throw translateException ( x , e ) ; } }

Target:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.ConditionalExpression x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.sourceinfo.SourceInfo info = makeSourceInfo ( x ) ; com.android.jack.ir.ast.JExpression valueIfFalse = pop ( x.valueIfFalse ) ; com.android.jack.ir.ast.JExpression valueIfTrue = pop ( x.valueIfTrue ) ; com.android.jack.ir.ast.JExpression condition = pop ( x.condition ) ; push ( new com.android.jack.ir.ast.JConditionalExpression ( info , condition , valueIfTrue , valueIfFalse ) ) ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }
Source:
public static android.telecom.DisconnectCause toTelecomDisconnectCause ( int telephonyDisconnectCause , java.lang.String reason ) { android.content.Context context = com.android.phone.PhoneGlobals.getInstance ( ) ; return new android.telecom.DisconnectCause ( com.android.services.telephony.DisconnectCauseUtil.toTelecomDisconnectCauseCode ( telephonyDisconnectCause ) , com.android.services.telephony.DisconnectCauseUtil.toTelecomDisconnectCauseLabel ( context , telephonyDisconnectCause ) , com.android.services.telephony.DisconnectCauseUtil.toTelecomDisconnectCauseDescription ( context , telephonyDisconnectCause ) , com.android.services.telephony.DisconnectCauseUtil.toTelecomDisconnectReason ( telephonyDisconnectCause , reason ) , com.android.services.telephony.DisconnectCauseUtil.toTelecomDisconnectCauseTone ( telephonyDisconnectCause ) ) ; }

Target:
public static android.telecom.DisconnectCause toTelecomDisconnectCause ( int telephonyDisconnectCause , java.lang.String reason ) { android.content.Context context = com.android.phone.PhoneGlobals.getInstance ( ) ; return new android.telecom.DisconnectCause ( com.android.services.telephony.DisconnectCauseUtil.toTelecomDisconnectCauseCode ( telephonyDisconnectCause ) , com.android.services.telephony.DisconnectCauseUtil.toTelecomDisconnectCauseLabel ( context , telephonyDisconnectCause ) , com.android.services.telephony.DisconnectCauseUtil.toTelecomDisconnectCauseDescription ( context , telephonyDisconnectCause ) , com.android.services.telephony.DisconnectCauseUtil.toTelecomDisconnectReason ( context , telephonyDisconnectCause , reason ) , com.android.services.telephony.DisconnectCauseUtil.toTelecomDisconnectCauseTone ( telephonyDisconnectCause ) ) ; }
Source:
public void test_ConstructorLjava_net_InetAddressIZ ( ) throws java.io.IOException { java.net.ServerSocket server = new java.net.ServerSocket ( 0 ) ; int serverPort = server.getLocalPort ( ) ; java.net.Socket client = new java.net.Socket ( java.net.InetAddress.getLocalHost ( ) , serverPort , true ) ; assertEquals ( "Failed to create socket" , serverPort , client.getPort ( ) ) ; client = new java.net.Socket ( java.net.InetAddress.getLocalHost ( ) , serverPort , false ) ; client.close ( ) ; }

Target:
public void test_ConstructorLjava_net_InetAddressIZ ( ) throws java.io.IOException { try ( java.net.ServerSocket server = new java.net.ServerSocket ( 0 ) ) { int serverPort = server.getLocalPort ( ) ; try ( java.net.Socket client = new java.net.Socket ( java.net.InetAddress.getLocalHost ( ) , serverPort , true ) ) { assertEquals ( "Failed to create socket" , serverPort , client.getPort ( ) ) ; } try ( java.net.Socket client = new java.net.Socket ( java.net.InetAddress.getLocalHost ( ) , serverPort , false ) ) { assertEquals ( "Failed to create socket" , serverPort , client.getPort ( ) ) ; } } }
Source:
private void writeDebugEnd ( @ javax.annotation.CheckForNull org.objectweb.asm.tree.ClassNode classNode , @ javax.annotation.Nonnegative int currentLine ) throws java.io.IOException { if ( ( classNode != null ) && ( currentLine != ( SourceInfoWriter.NO_LINE ) ) ) { sourceInfoWriter.writeDebugEnd ( classNode , ( currentLine + 1 ) ) ; } else { sourceInfoWriter.writeUnknownDebugEnd ( ) ; } }

Target:
protected void writeDebugEnd ( @ javax.annotation.CheckForNull org.objectweb.asm.tree.ClassNode classNode , @ javax.annotation.Nonnegative int currentLine ) throws java.io.IOException { if ( ( classNode != null ) && ( currentLine != ( SourceInfoWriter.NO_LINE ) ) ) { sourceInfoWriter.writeDebugEnd ( classNode , ( currentLine + 1 ) ) ; } else { sourceInfoWriter.writeUnknownDebugEnd ( ) ; } }
Source:
private void computeCatchList ( @ javax.annotation.Nonnull org.objectweb.asm.tree.LabelNode labelNode ) { for ( org.objectweb.asm.tree.TryCatchBlockNode tryCatchNode : currentMethod.tryCatchBlocks ) { java.lang.String id = getCatchId ( tryCatchNode.handler ) ; if ( ( tryCatchNode.start ) == labelNode ) { assert ! ( currentCatchList.contains ( id ) ) ; currentCatchList.add ( id ) ; } else if ( ( tryCatchNode.end ) == labelNode ) { assert currentCatchList.contains ( id ) ; currentCatchList.remove ( id ) ; } } }

Target:
private void computeCatchList ( @ javax.annotation.Nonnull org.objectweb.asm.tree.LabelNode labelNode ) { for ( org.objectweb.asm.tree.TryCatchBlockNode tryCatchNode : currentMethod.tryCatchBlocks ) { java.lang.String id = getCatchId ( tryCatchNode.handler ) ; if ( ( tryCatchNode.start ) == labelNode ) { currentCatchList.add ( id ) ; } else if ( ( tryCatchNode.end ) == labelNode ) { assert currentCatchList.contains ( id ) ; currentCatchList.remove ( id ) ; } } }
Source:
private static java.lang.String getFolderName ( com.android.ide.common.res2.ResourceItem resourceItem ) { com.android.resources.ResourceType itemType = resourceItem.getType ( ) ; java.lang.String folderName = itemType.getName ( ) ; java.lang.String qualifiers = resourceItem.getSource ( ) . getQualifiers ( ) ; if ( ! ( qualifiers.isEmpty ( ) ) ) { folderName = ( folderName + ( com.android.SdkConstants.RES_QUALIFIER_SEP ) ) + qualifiers ; } return folderName ; }

Target:
private static java.lang.String getFolderName ( com.android.ide.common.res2.ResourceItem resourceItem ) { com.android.resources.ResourceType itemType = resourceItem.getType ( ) ; java.lang.String folderName = itemType.getName ( ) ; java.lang.String qualifiers = resourceItem.getQualifiers ( ) ; if ( ! ( qualifiers.isEmpty ( ) ) ) { folderName = ( folderName + ( com.android.SdkConstants.RES_QUALIFIER_SEP ) ) + qualifiers ; } return folderName ; }
Source:
static synchronized int nativeCreateFromTypeface ( int native_instance , int style ) { android.graphics.Typeface_Delegate delegate = android.graphics.Typeface_Delegate.sManager.getDelegate ( native_instance ) ; if ( delegate == null ) { return 0 ; } android.graphics.Typeface_Delegate newDelegate = new android.graphics.Typeface_Delegate ( delegate.mFamily , style ) ; if ( ( android.graphics.Typeface_Delegate.sFontLoader ) != null ) { newDelegate.init ( ) ; } else { android.graphics.Typeface_Delegate.sPostInitDelegate.add ( newDelegate ) ; } return android.graphics.Typeface_Delegate.sManager.addNewDelegate ( newDelegate ) ; }

Target:
static synchronized long nativeCreateFromTypeface ( long native_instance , int style ) { android.graphics.Typeface_Delegate delegate = android.graphics.Typeface_Delegate.sManager.getDelegate ( native_instance ) ; if ( delegate == null ) { return 0 ; } android.graphics.Typeface_Delegate newDelegate = new android.graphics.Typeface_Delegate ( delegate.mFamily , style ) ; if ( ( android.graphics.Typeface_Delegate.sFontLoader ) != null ) { newDelegate.init ( ) ; } else { android.graphics.Typeface_Delegate.sPostInitDelegate.add ( newDelegate ) ; } return android.graphics.Typeface_Delegate.sManager.addNewDelegate ( newDelegate ) ; }
Source:
public void run ( ) { mStatusBarView.getLocationOnScreen ( mAbsPos ) ; android.util.Slog.d ( com.android.systemui.statusbar.phone.PhoneStatusBar.TAG , ( ( ( ( ( ( ( "mStatusBarView: ----- (" + ( mAbsPos [ 0 ] ) ) + "," ) + ( mAbsPos [ 1 ] ) ) + ") " ) + ( mStatusBarView.getWidth ( ) ) ) + "x" ) + ( getStatusBarHeight ( ) ) ) ) ; mStatusBarView.debug ( ) ; }

Target:
public void run ( ) { mStatusBarView.getLocationOnScreen ( mAbsPos ) ; android.util.Log.d ( com.android.systemui.statusbar.phone.PhoneStatusBar.TAG , ( ( ( ( ( ( ( "mStatusBarView: ----- (" + ( mAbsPos [ 0 ] ) ) + "," ) + ( mAbsPos [ 1 ] ) ) + ") " ) + ( mStatusBarView.getWidth ( ) ) ) + "x" ) + ( getStatusBarHeight ( ) ) ) ) ; mStatusBarView.debug ( ) ; }
Source:
public java.util.Collection < com.android.build.gradle.internal.dsl.CoreBuildType > getBuildTypes ( ) { return com.google.common.collect.ImmutableList.copyOf ( com.google.common.collect.Iterables.transform ( model.getBuildTypes ( ) , new com.google.common.base.Function < com.android.build.gradle.managed.BuildType , com.android.build.gradle.internal.dsl.CoreBuildType > ( ) { @ java.lang.Override public com.android.build.gradle.internal.dsl.CoreBuildType apply ( com.android.build.gradle.managed.BuildType buildType ) { return new com.android.build.gradle.managed.adaptor.BuildTypeAdaptor ( buildType ) ; } } ) ) ; }

Target:
public java.util.Collection < com.android.build.gradle.internal.dsl.CoreBuildType > getBuildTypes ( ) { return com.google.common.collect.ImmutableList.copyOf ( com.google.common.collect.Iterables.transform ( model.getBuildTypes ( ) . values ( ) , new com.google.common.base.Function < com.android.build.gradle.managed.BuildType , com.android.build.gradle.internal.dsl.CoreBuildType > ( ) { @ java.lang.Override public com.android.build.gradle.internal.dsl.CoreBuildType apply ( com.android.build.gradle.managed.BuildType buildType ) { return new com.android.build.gradle.managed.adaptor.BuildTypeAdaptor ( buildType ) ; } } ) ) ; }
Source:
public void afterHandshake ( int session , int s , int c , java.net.Socket sock , java.io.FileDescriptor fd , org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_renegotiate ( s ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_write ( s , fd , callback , new byte [ ] { 42 } , 0 , 1 , 0 ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }

Target:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_renegotiate ( s ) ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_write ( s , fd , callback , new byte [ ] { 42 } , 0 , 1 , 0 ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }
Source:
public static android.icu.util.UResourceBundle getBundleInstance ( java.lang.String baseName , java.lang.String localeID , java.lang.ClassLoader root , boolean disableFallback ) { android.icu.util.UResourceBundle b = android.icu.impl.ICUResourceBundle.instantiateBundle ( baseName , localeID , root , ( disableFallback ? android.icu.impl.ICUResourceBundle.OpenType.DIRECT : android.icu.impl.ICUResourceBundle.OpenType.LOCALE_DEFAULT_ROOT ) ) ; if ( b == null ) { throw new java.util.MissingResourceException ( ( ( ( ( "Could not find the bundle " + baseName ) + "/" ) + localeID ) + ".res" ) , "" , "" ) ; } return b ; }

Target:
public static android.icu.impl.ICUResourceBundle getBundleInstance ( java.lang.String baseName , java.lang.String localeID , java.lang.ClassLoader root , boolean disableFallback ) { return android.icu.impl.ICUResourceBundle.getBundleInstance ( baseName , localeID , root , ( disableFallback ? android.icu.impl.ICUResourceBundle.OpenType.DIRECT : android.icu.impl.ICUResourceBundle.OpenType.LOCALE_DEFAULT_ROOT ) ) ; }