auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void onPostDialChar ( java.lang.String callId , char nextChar ) throws android.os.RemoteException { android.telecom.Log.startSession ( "CSW.oPDC" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { logIncoming ( "onPostDialChar %s %s" , callId , nextChar ) ; com.android.server.telecom.Call call = mCallIdMapper.getCall ( callId ) ; if ( call != null ) { call.onPostDialChar ( nextChar ) ; } else { } } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; android.telecom.Log.endSession ( ) ; } }

Target:
public void onPostDialChar ( java.lang.String callId , char nextChar , android.telecom.Logging.Session.Info sessionInfo ) throws android.os.RemoteException { android.telecom.Log.startSession ( sessionInfo , "CSW.oPDC" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { logIncoming ( "onPostDialChar %s %s" , callId , nextChar ) ; com.android.server.telecom.Call call = mCallIdMapper.getCall ( callId ) ; if ( call != null ) { call.onPostDialChar ( nextChar ) ; } else { } } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; android.telecom.Log.endSession ( ) ; } }
Source:
private void incrementSimulatedDeviceClock ( int incMillis ) { long currentElapsedRealtime = mDeviceState.elapsedRealtime ( ) ; org.mockito.Mockito.when ( mDeviceState.elapsedRealtime ( ) ) . thenReturn ( ( currentElapsedRealtime + incMillis ) ) ; long currentTimeMillis = mDeviceState.currentTimeMillis ( ) ; org.mockito.Mockito.when ( mDeviceState.elapsedRealtime ( ) ) . thenReturn ( ( currentTimeMillis + incMillis ) ) ; }

Target:
private void incrementSimulatedDeviceClock ( int incMillis ) { long currentElapsedRealtime = mTimeServiceHelper.elapsedRealtime ( ) ; org.mockito.Mockito.when ( mTimeServiceHelper.elapsedRealtime ( ) ) . thenReturn ( ( currentElapsedRealtime + incMillis ) ) ; long currentTimeMillis = mTimeServiceHelper.currentTimeMillis ( ) ; org.mockito.Mockito.when ( mTimeServiceHelper.elapsedRealtime ( ) ) . thenReturn ( ( currentTimeMillis + incMillis ) ) ; }
Source:
public void run ( ) { mHandler.removeCallbacks ( this ) ; android.content.pm.PackageStats stats = new android.content.pm.PackageStats ( packageName ) ; final boolean success ; synchronized ( mInstallLock ) { success = getPackageSizeInfoLI ( packageName , stats ) ; } android.os.Message msg = mHandler.obtainMessage ( com.android.server.pm.PackageManagerService.INIT_COPY ) ; msg.obj = new com.android.server.pm.PackageManagerService.MeasureParams ( stats , success , observer ) ; mHandler.sendMessage ( msg ) ; }

Target:
public void run ( ) { updateExternalMediaStatusInner ( mediaStatus , reportStatus ) ; }
Source:
protected void engineUpdate ( byte [ ] input , int offset , int len ) { final org.conscrypt.NativeRef.EVP_MD_CTX ctxLocal = ctx ; if ( signing ) { org.conscrypt.NativeCrypto.EVP_SignUpdate ( ctxLocal , input , offset , len ) ; } else { org.conscrypt.NativeCrypto.EVP_VerifyUpdate ( ctxLocal , input , offset , len ) ; } }

Target:
protected void engineUpdate ( byte [ ] input , int offset , int len ) { final org.conscrypt.NativeRef.EVP_MD_CTX ctxLocal = ctx ; if ( signing ) { org.conscrypt.NativeCrypto.EVP_DigestSignUpdate ( ctxLocal , input , offset , len ) ; } else { org.conscrypt.NativeCrypto.EVP_DigestVerifyUpdate ( ctxLocal , input , offset , len ) ; } }
Source:
private java.lang.String [ ] executeSuShellAdbCommand ( int numLinesOutputExpected , java.lang.String ... command ) throws com.android.tradefed.device.DeviceNotAvailableException { java.lang.String [ ] lines = executeSuShellAdbCommand ( command ) ; assertEquals ( java.lang.String.format ( java.util.Locale.US , "Expected %d lines output, got %d running %s: %s" , numLinesOutputExpected , lines.length , java.util.Arrays.toString ( command ) , java.util.Arrays.toString ( lines ) ) , numLinesOutputExpected , lines.length ) ; return lines ; }

Target:
private java.lang.String [ ] executeSuShellAdbCommand ( int numLinesOutputExpected , java.lang.String ... command ) throws com.android.tradefed.device.DeviceNotAvailableException { java.lang.String [ ] lines = filterAdbLines ( executeSuShellAdbCommand ( command ) ) ; assertEquals ( java.lang.String.format ( java.util.Locale.US , "Expected %d lines output, got %d running %s: %s" , numLinesOutputExpected , lines.length , java.util.Arrays.toString ( command ) , java.util.Arrays.toString ( lines ) ) , numLinesOutputExpected , lines.length ) ; return lines ; }
Source:
com.google.common.collect.MapMaker setKeyStrength ( com.google.common.collect.MapMakerInternalMap.Strength strength ) { com.google.common.base.Preconditions.checkState ( ( ( keyStrength ) == null ) , "Key strength was already set to %s" , keyStrength ) ; keyStrength = com.google.common.base.Preconditions.checkNotNull ( strength ) ; if ( strength != ( com.google.common.collect.MapMakerInternalMap.Strength.STRONG ) ) { useCustomMap = true ; } return this ; }

Target:
com.google.common.collect.MapMaker setKeyStrength ( com.google.common.collect.MapMakerInternalMap.Strength strength ) { com.google.common.base.Preconditions.checkState ( ( ( keyStrength ) == null ) , "Key strength was already set to %s" , keyStrength ) ; keyStrength = com.google.common.base.Preconditions.checkNotNull ( strength ) ; com.google.common.base.Preconditions.checkArgument ( ( ( keyStrength ) != ( com.google.common.collect.MapMakerInternalMap.Strength.SOFT ) ) , "Soft keys are not supported" ) ; if ( strength != ( com.google.common.collect.MapMakerInternalMap.Strength.STRONG ) ) { useCustomMap = true ; } return this ; }
Source:
public static org.conscrypt.OpenSSLECGroupContext getCurveByName ( java.lang.String curveName ) { if ( "secp256r1" . equals ( curveName ) ) { curveName = "prime256v1" ; } else if ( "secp192r1" . equals ( curveName ) ) { curveName = "prime192v1" ; } final long ctx = org.conscrypt.NativeCrypto.EC_GROUP_new_by_curve_name ( curveName ) ; if ( ctx == 0 ) { return null ; } org.conscrypt.NativeCrypto.EC_GROUP_set_point_conversion_form ( ctx , NativeCrypto.POINT_CONVERSION_UNCOMPRESSED ) ; org.conscrypt.NativeCrypto.EC_GROUP_set_asn1_flag ( ctx , NativeCrypto.OPENSSL_EC_NAMED_CURVE ) ; return new org.conscrypt.OpenSSLECGroupContext ( ctx ) ; }

Target:
public static org.conscrypt.OpenSSLECGroupContext getCurveByName ( java.lang.String curveName ) { if ( "secp256r1" . equals ( curveName ) ) { curveName = "prime256v1" ; } else if ( "secp192r1" . equals ( curveName ) ) { curveName = "prime192v1" ; } final long ctx = org.conscrypt.NativeCrypto.EC_GROUP_new_by_curve_name ( curveName ) ; if ( ctx == 0 ) { return null ; } org.conscrypt.NativeRef.EC_GROUP groupRef = new org.conscrypt.NativeRef.EC_GROUP ( ctx ) ; org.conscrypt.NativeCrypto.EC_GROUP_set_point_conversion_form ( groupRef , NativeCrypto.POINT_CONVERSION_UNCOMPRESSED ) ; org.conscrypt.NativeCrypto.EC_GROUP_set_asn1_flag ( groupRef , NativeCrypto.OPENSSL_EC_NAMED_CURVE ) ; return new org.conscrypt.OpenSSLECGroupContext ( groupRef ) ; }
Source:
public void testSmallEnumSetSerialization ( ) { assertTrue ( ( ( libcore.java.util.EnumSetTest.Roshambo.values ( ) . length ) <= 64 ) ) ; java.lang.String s = "aced0005737200246a6176612e7574696c2e456e756d5365742453657269616c" + ( ( ( ( ( ( ( "697a6174696f6e50726f78790507d3db7654cad10200024c000b656c656d656e7" + "4547970657400114c6a6176612f6c616e672f436c6173733b5b0008656c656d65" ) + "6e74737400115b4c6a6176612f6c616e672f456e756d3b7870767200266c69626" ) + "36f72652e6a6176612e7574696c2e456e756d5365745465737424526f7368616d" ) + "626f00000000000000001200007872000e6a6176612e6c616e672e456e756d000" ) + "00000000000001200007870757200115b4c6a6176612e6c616e672e456e756d3b" ) + "a88dea2d33d22f980200007870000000027e71007e0004740004524f434b7e710" ) + "07e000474000853434953534f5253" ) ; java.util.EnumSet < libcore.java.util.EnumSetTest.Roshambo > set = java.util.EnumSet.of ( libcore.java.util.EnumSetTest.Roshambo.ROCK , libcore.java.util.EnumSetTest.Roshambo.SCISSORS ) ; new libcore.util.SerializationTester < java.util.EnumSet < libcore.java.util.EnumSetTest.Roshambo > > ( set , s ) . test ( ) ; }

Target:
public void testSmallEnumSetSerialization ( ) { assertTrue ( ( ( libcore.java.util.EnumSetTest.Roshambo.values ( ) . length ) <= 64 ) ) ; java.lang.String s = "aced0005737200246a6176612e7574696c2e456e756d5365742453657269616c" + ( ( ( ( ( ( ( "697a6174696f6e50726f78790507d3db7654cad10200024c000b656c656d656e7" + "4547970657400114c6a6176612f6c616e672f436c6173733b5b0008656c656d65" ) + "6e74737400115b4c6a6176612f6c616e672f456e756d3b7870767200266c69626" ) + "36f72652e6a6176612e7574696c2e456e756d5365745465737424526f7368616d" ) + "626f00000000000000001200007872000e6a6176612e6c616e672e456e756d000" ) + "00000000000001200007870757200115b4c6a6176612e6c616e672e456e756d3b" ) + "a88dea2d33d22f980200007870000000027e71007e0004740004524f434b7e710" ) + "07e000474000853434953534f5253" ) ; java.util.EnumSet < libcore.java.util.EnumSetTest.Roshambo > set = java.util.EnumSet.of ( libcore.java.util.EnumSetTest.Roshambo.ROCK , libcore.java.util.EnumSetTest.Roshambo.SCISSORS ) ; new libcore.libcore.util.SerializationTester < java.util.EnumSet < libcore.java.util.EnumSetTest.Roshambo > > ( set , s ) . test ( ) ; }
Source:
public static long queryNumEntries ( android.database.sqlite.SQLiteDatabase db , java.lang.String table ) { android.database.Cursor cursor = db.query ( table , android.database.DatabaseUtils.countProjection , null , null , null , null , null ) ; try { cursor.moveToFirst ( ) ; return cursor.getLong ( 0 ) ; } finally { cursor.close ( ) ; } }

Target:
public static void cursorShortToContentValuesIfPresent ( android.database.Cursor cursor , android.content.ContentValues values , java.lang.String column ) { final int index = cursor.getColumnIndexOrThrow ( column ) ; if ( ! ( cursor.isNull ( index ) ) ) { values.put ( column , cursor.getShort ( index ) ) ; } }
Source:
native void rsnAllocationData2D ( int con , int id , int xoff , int yoff , int mip , int face , int w , int h , byte [ ] d , int sizeBytes ) ;

Target:
synchronized void nAllocationData3D ( long id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , long [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes ) ; }
Source:
public void log ( java.lang.String log ) { synchronized ( mLogText ) { mLogText.append ( "=> " ) . append ( log ) ; } }

Target:
public void logError ( java.lang.String log ) { if ( acceptLog ( log ) ) { if ( ( mLog ) != null ) { mLog.error ( null , " %1$s" , log ) ; } else { synchronized ( mLogText ) { mLogText.append ( "ERROR: " ) . append ( log ) ; } } } }
Source:
public void testApplyingWithCaseChangedNames ( ) throws java.lang.Exception { com.intellij.openapi.util.io.FileUtil.rename ( new java.io.File ( myOlderDir , "Readme.txt" ) , new java.io.File ( myOlderDir , "README.txt" ) ) ; com.intellij.updater.PatchFileCreator.create ( myOlderDir , myNewerDir , myFile , java.util.Collections.< java.lang.String > emptyList ( ) , java.util.Collections.< java.lang.String > emptyList ( ) , java.util.Collections.< java.lang.String > emptyList ( ) , com.intellij.updater.TEST_UI ) ; assertAppliedAndRevertedCorrectly ( com.intellij.updater.PatchFileCreator.prepareAndValidate ( myFile , myOlderDir , com.intellij.updater.TEST_UI ) ) ; }

Target:
public void testApplyingWithCaseChangedNames ( ) throws java.lang.Exception { com.intellij.openapi.util.io.FileUtil.rename ( new java.io.File ( myOlderDir , "Readme.txt" ) , new java.io.File ( myOlderDir , "README.txt" ) ) ; com.intellij.updater.PatchFileCreator.create ( "from" , "to" , myOlderDir , myNewerDir , myFile , java.util.Collections.< java.lang.String > emptyList ( ) , java.util.Collections.< java.lang.String > emptyList ( ) , java.util.Collections.< java.lang.String > emptyList ( ) , com.intellij.updater.TEST_UI ) ; assertAppliedAndRevertedCorrectly ( com.intellij.updater.PatchFileCreator.prepareAndValidate ( myFile , myOlderDir , com.intellij.updater.TEST_UI ) ) ; }
Source:
private void addProjects ( @ com.android.annotations.NonNull java.io.File dir , @ com.android.annotations.NonNull java.util.Map < java.io.File , com.android.tools.lint.detector.api.Project > fileToProject , @ com.android.annotations.NonNull java.io.File rootDir ) { if ( mCanceled ) { return ; } if ( isProjectDir ( dir ) ) { registerProjectFile ( fileToProject , dir , dir , rootDir ) ; } else { java.io.File [ ] files = dir.listFiles ( ) ; if ( files != null ) { for ( java.io.File file : files ) { if ( file.isDirectory ( ) ) { addProjects ( file , fileToProject , rootDir ) ; } } } } }

Target:
private void addProjects ( @ com.android.annotations.NonNull java.io.File dir , @ com.android.annotations.NonNull java.util.Map < java.io.File , com.android.tools.lint.detector.api.Project > fileToProject , @ com.android.annotations.NonNull java.io.File rootDir ) { if ( mCanceled ) { return ; } if ( com.android.tools.lint.detector.api.LintUtils.isProjectDir ( dir ) ) { registerProjectFile ( fileToProject , dir , dir , rootDir ) ; } else { java.io.File [ ] files = dir.listFiles ( ) ; if ( files != null ) { for ( java.io.File file : files ) { if ( file.isDirectory ( ) ) { addProjects ( file , fileToProject , rootDir ) ; } } } } }
Source:
protected void createFieldEditors ( ) { org.eclipse.jface.preference.FontFieldEditor ffe = new org.eclipse.jface.preference.FontFieldEditor ( com.android.ddmuilib.logcat.LogCatPanel.LOGCAT_VIEW_FONT_PREFKEY , com.android.ide.eclipse.ddms.i18n.Messages.LogCatPreferencePage_Display_Font , getFieldEditorParent ( ) ) ; addField ( ffe ) ; mMaxMessages = new org.eclipse.jface.preference.IntegerFieldEditor ( com.android.ddmuilib.logcat.LogCatMessageList.MAX_MESSAGES_PREFKEY , com.android.ide.eclipse.ddms.i18n.Messages.LogCatPreferencePage_MaxMessages , getFieldEditorParent ( ) ) ; addField ( mMaxMessages ) ; createHorizontalSeparator ( ) ; if ( com.android.ide.eclipse.base.InstallDetails.isAdtInstalled ( ) ) { createAdtSpecificFieldEditors ( ) ; } }

Target:
protected void createFieldEditors ( ) { org.eclipse.jface.preference.FontFieldEditor ffe = new org.eclipse.jface.preference.FontFieldEditor ( com.android.ddmuilib.logcat.LogCatPanel.LOGCAT_VIEW_FONT_PREFKEY , com.android.ide.eclipse.ddms.i18n.Messages.LogCatPreferencePage_Display_Font , getFieldEditorParent ( ) ) ; addField ( ffe ) ; mMaxMessages = new org.eclipse.jface.preference.IntegerFieldEditor ( com.android.ddmuilib.logcat.LogCatMessageList.MAX_MESSAGES_PREFKEY , com.android.ide.eclipse.ddms.i18n.Messages.LogCatPreferencePage_MaxMessages , getFieldEditorParent ( ) ) ; addField ( mMaxMessages ) ; mAutoScrollLock = new org.eclipse.jface.preference.BooleanFieldEditor ( com.android.ddmuilib.logcat.LogCatPanel.AUTO_SCROLL_LOCK_PREFKEY , "Automatically enable/disable scroll lock based on the scrollbar position" , getFieldEditorParent ( ) ) ; addField ( mAutoScrollLock ) ; createHorizontalSeparator ( ) ; if ( com.android.ide.eclipse.base.InstallDetails.isAdtInstalled ( ) ) { createAdtSpecificFieldEditors ( ) ; } }
Source:
public void onItemSelected ( int position ) { android.util.Log.d ( com.example.android.wearable.wear.weardrawers.MainActivity.TAG , ( "WearableNavigationDrawerView triggered onItemSelected(): " + position ) ) ; mSelectedPlanet = position ; java.lang.String selectedPlanetImage = mSolarSystem.get ( mSelectedPlanet ) . getImage ( ) ; int drawableId = getResources ( ) . getIdentifier ( selectedPlanetImage , "drawable" , getPackageName ( ) ) ; mPlanetFragment.updatePlanet ( drawableId ) ; }

Target:
public void onGlobalLayout ( ) { mWearableDrawerLayout.getViewTreeObserver ( ) . removeOnGlobalLayoutListener ( this ) ; mWearableDrawerLayout.peekDrawer ( Gravity.TOP ) ; mWearableDrawerLayout.peekDrawer ( Gravity.BOTTOM ) ; }
Source:
private int findNextUnreservedRopReg ( int startReg , int width ) { int reg ; reg = reservedRopRegs.nextClearBit ( startReg ) ; while ( true ) { int i = 1 ; while ( ( i < width ) && ( ! ( reservedRopRegs.get ( ( reg + i ) ) ) ) ) { i ++ ; } if ( i == width ) { return reg ; } reg = reservedRopRegs.nextClearBit ( ( reg + i ) ) ; } }

Target:
private int findNextUnreservedRopReg ( int startReg , int width , com.android.dx.ssa.back.FirstFitLocalCombiningAllocator.Alignment alignment ) { int reg = alignment.nextClearBit ( reservedRopRegs , startReg ) ; while ( true ) { int i = 1 ; while ( ( i < width ) && ( ! ( reservedRopRegs.get ( ( reg + i ) ) ) ) ) { i ++ ; } if ( i == width ) { return reg ; } reg = alignment.nextClearBit ( reservedRopRegs , ( reg + i ) ) ; } }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDynamicCastOperation expr ) { return expr.canThrow ( ) ? visitThrowingRValue ( expr ) : visitNonThrowingOperation ( expr ) ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDynamicCastOperation expr ) { if ( ( expr.getTypes ( ) . size ( ) ) > 1 ) { throw new com.android.jack.ir.JNodeInternalError ( expr , "Intersection types are invalid on this level" ) ; } return expr.canThrow ( ) ? visitThrowingRValue ( expr ) : visitNonThrowingOperation ( expr ) ; }
Source:
public static boolean isVideoCallingWarnDisabled ( android.content.Context context ) { android.content.SharedPreferences eabPref = context.getSharedPreferences ( com.android.service.ims.presence.SharedPrefUtil.EAB_SHARED_PREF , Context.MODE_PRIVATE ) ; return eabPref.getBoolean ( com.android.service.ims.presence.SharedPrefUtil.VIDEO_CALLING_WARN_SHOW , false ) ; }

Target:
private static long validateDeviceTimestamp ( android.content.Context context , long lastSyncedTimestamp ) { long deviceCurrentTimeMillis = java.lang.System.currentTimeMillis ( ) ; if ( ( lastSyncedTimestamp != 0 ) && ( lastSyncedTimestamp > deviceCurrentTimeMillis ) ) { android.content.SharedPreferences.Editor eabPref = context.getSharedPreferences ( com.android.service.ims.presence.SharedPrefUtil.EAB_SHARED_PREF , Context.MODE_PRIVATE ) . edit ( ) ; eabPref.putLong ( com.android.service.ims.presence.SharedPrefUtil.CONTACT_CHANGED_PREF_KEY , 0 ) ; eabPref.putLong ( com.android.service.ims.presence.SharedPrefUtil.CONTACT_DELETE_PREF_KEY , 0 ) ; eabPref.putLong ( com.android.service.ims.presence.SharedPrefUtil.CONTACT_PROFILE_CHANGED_PREF_KEY , 0 ) ; eabPref.commit ( ) ; lastSyncedTimestamp = 0 ; } return lastSyncedTimestamp ; }
Source:
public void testAesCbcHmacSha1Tcp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA1 , getAuthKey ( 160 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , false , 1 , true ) ; }

Target:
public void testAesCbcHmacMd5Udp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , android.net.cts.IpSecManagerTest.getKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , false , 1 , true ) ; }
Source:
private java.lang.Object implRemove ( java.lang.Object key ) { if ( registered ) { java.security.Security.increaseVersion ( ) ; } if ( key instanceof java.lang.String ) { java.lang.String keyString = ( ( java.lang.String ) ( key ) ) ; if ( keyString.startsWith ( "Provider." ) ) { return null ; } legacyChanged = true ; if ( ( legacyStrings ) == null ) { legacyStrings = new java.util.LinkedHashMap < java.lang.String , java.lang.String > ( ) ; } legacyStrings.remove ( keyString ) ; } return super . remove ( key ) ; }

Target:
private boolean checkLegacy ( java.lang.Object key ) { if ( registered ) { java.security.Security.increaseVersion ( ) ; } java.lang.String keyString = ( ( java.lang.String ) ( key ) ) ; if ( keyString.startsWith ( "Provider." ) ) { return false ; } legacyChanged = true ; if ( ( legacyStrings ) == null ) { legacyStrings = new java.util.LinkedHashMap < java.lang.String , java.lang.String > ( ) ; } return true ; }
Source:
public java.util.Collection < java.lang.String > getSubPackageNames ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JPackage loading ) { java.util.List < java.lang.String > subs = new java.util.ArrayList < java.lang.String > ( ) ; for ( com.android.sched.vfs.InputVElement sub : packageVDir.list ( ) ) { if ( sub.isVDir ( ) ) { subs.add ( sub.getName ( ) ) ; } } return subs ; }

Target:
public java.util.Collection < java.lang.String > getSubPackageNames ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JPackage loading ) { return collections.getUnmodifiableCollection ( vdirCache.keySet ( ) ) ; }
Source:
public < T extends com.android.jack.ir.ast.JNode > void accept ( @ javax.annotation.Nonnull java.util.Collection < T > collection ) { for ( T element : collection ) { element.traverse ( this ) ; } }

Target:
public < T extends com.android.jack.ir.ast.JNode > void accept ( @ javax.annotation.Nonnull java.util.Collection < T > collection ) { for ( T element : collection ) { try { element.traverse ( this ) ; } catch ( java.lang.RuntimeException e ) { throw com.android.jack.ir.ast.JVisitor.wrapException ( element , e ) ; } catch ( java.lang.Error e ) { throw com.android.jack.ir.ast.JVisitor.wrapException ( element , e ) ; } } }
Source:
public java.util.ArrayList < android.util.Pair < java.lang.String , android.media.MediaFormat > > readTrackInfoFiles ( ) throws java.io.IOException { java.util.ArrayList < android.util.Pair < java.lang.String , android.media.MediaFormat > > trackInfos = new java.util.ArrayList < > ( ) ; try { trackInfos.add ( mStorageManager.readTrackInfoFile ( false ) ) ; } catch ( java.io.FileNotFoundException e ) { } try { trackInfos.add ( mStorageManager.readTrackInfoFile ( true ) ) ; } catch ( java.io.FileNotFoundException e ) { } return trackInfos ; }

Target:
public java.util.List < com.android.tv.tuner.exoplayer.buffer.BufferManager.TrackFormat > readTrackInfoFiles ( ) throws java.io.IOException { java.util.List < com.android.tv.tuner.exoplayer.buffer.BufferManager.TrackFormat > trackFormatList = new java.util.ArrayList < > ( ) ; trackFormatList.addAll ( mStorageManager.readTrackInfoFiles ( false ) ) ; trackFormatList.addAll ( mStorageManager.readTrackInfoFiles ( true ) ) ; if ( trackFormatList.isEmpty ( ) ) { throw new java.io.IOException ( "No track information to load" ) ; } return trackFormatList ; }
Source:
public int size ( ) { return tableOfContents.typeIds.size ; }

Target:
private java.util.List < java.lang.String > readTypeNames ( java.util.List < java.lang.String > strings , java.util.List < java.lang.Integer > typeIds ) { java.lang.String [ ] result = new java.lang.String [ tableOfContents.typeIds.size ] ; for ( int i = 0 ; i < ( tableOfContents.typeIds.size ) ; ++ i ) { result [ i ] = strings.get ( typeIds.get ( i ) . intValue ( ) ) ; } return java.util.Arrays.asList ( result ) ; }
Source:
public void test002f ( ) throws java.lang.Exception { java.io.File jackOutput = com.android.jack.test.toolchain.AbstractTestTools.createTempFile ( "jackoutput" , ".zip" ) ; runTest002 ( jackOutput , true , "keep-first" ) ; java.util.zip.ZipFile zipFile = new java.util.zip.ZipFile ( jackOutput ) ; checkResourceContent ( zipFile , com.android.jack.fileconflict.FileConflictTests.RESOURCE1_LONGPATH , "Res1" ) ; checkResourceContent ( zipFile , com.android.jack.fileconflict.FileConflictTests.RESOURCE2_LONGPATH , "Res2" ) ; checkResourceContent ( zipFile , com.android.jack.fileconflict.FileConflictTests.RESOURCE3_LONGPATH , "Res3" ) ; }

Target:
public void test002f ( ) throws java.lang.Exception { java.io.File jackOutput ; java.io.ByteArrayOutputStream errOut = new java.io.ByteArrayOutputStream ( ) ; jackOutput = runTest002 ( true , "keep-first" , errOut , false , false ) ; java.util.zip.ZipFile zipFile = new java.util.zip.ZipFile ( jackOutput ) ; checkResourceContent ( zipFile , com.android.jack.fileconflict.FileConflictTests.RESOURCE1_LONGPATH , "Res1" ) ; checkResourceContent ( zipFile , com.android.jack.fileconflict.FileConflictTests.RESOURCE2_LONGPATH , "Res2" ) ; checkResourceContent ( zipFile , com.android.jack.fileconflict.FileConflictTests.RESOURCE3_LONGPATH , "Res3" ) ; junit.framework.Assert.assertTrue ( errOut.toString ( ) . isEmpty ( ) ) ; }
Source:
public com.android.jack.dx.io.instructions.DecodedInstruction decode ( int opcodeUnit , com.android.jack.dx.io.instructions.CodeInput in ) throws java.io.EOFException { int opcode = com.android.jack.dx.io.instructions.InstructionCodec.byte0 ( opcodeUnit ) ; int a = com.android.jack.dx.io.instructions.InstructionCodec.byte1 ( opcodeUnit ) ; long literal = ( ( short ) ( in.read ( ) ) ) ; literal <<= ( opcode == ( com.android.jack.dx.io.Opcodes.CONST_HIGH16 ) ) ? 16 : 48 ; return new com.android.jack.dx.io.instructions.OneRegisterDecodedInstruction ( this , opcode , 0 , null , 0 , literal , a ) ; }

Target:
public com.android.jack.dx.io.instructions.DecodedInstruction decode ( int opcodeUnit , com.android.jack.dx.io.instructions.CodeInput in ) throws java.io.EOFException { int opcode = com.android.jack.dx.io.instructions.InstructionCodec.byte0 ( opcodeUnit ) ; int a = com.android.jack.dx.io.instructions.InstructionCodec.byte1 ( opcodeUnit ) ; long literal = ( ( short ) ( in.read ( ) ) ) ; literal <<= ( opcode == ( com.android.jack.dx.io.Opcodes.CONST_HIGH16 ) ) ? 16 : 48 ; return new com.android.jack.dx.io.instructions.OneRegisterDecodedInstruction ( this , opcode , 0 , com.android.jack.dx.io.IndexType.NONE , 0 , literal , a ) ; }
Source:
private void addAnnotations ( @ com.android.annotations.Nullable org.eclipse.jdt.internal.compiler.ast.Annotation [ ] annotations , @ com.android.annotations.NonNull com.android.build.gradle.tasks.annotations.Extractor.Item item ) { if ( annotations != null ) { for ( org.eclipse.jdt.internal.compiler.ast.Annotation annotation : annotations ) { com.android.build.gradle.tasks.annotations.Extractor.AnnotationData annotationData = createAnnotation ( annotation ) ; if ( annotationData != null ) { item.annotations.add ( annotationData ) ; } } } }

Target:
private void addAnnotations ( @ com.android.annotations.Nullable org.eclipse.jdt.internal.compiler.ast.Annotation [ ] annotations , @ com.android.annotations.NonNull com.android.build.gradle.tasks.annotations.Extractor.Item item ) { if ( annotations != null ) { for ( org.eclipse.jdt.internal.compiler.ast.Annotation annotation : annotations ) { if ( isRelevantAnnotation ( annotation ) ) { com.android.build.gradle.tasks.annotations.Extractor.AnnotationData annotationData = createAnnotation ( annotation ) ; if ( annotationData != null ) { item.annotations.add ( annotationData ) ; } } } } }
Source:
public void testAesCbcHmacSha384Udp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA384 , getAuthKey ( 384 ) , 192 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 , true ) ; }

Target:
public void testAesGcm128Tcp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm authCrypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_CRYPT_AES_GCM , android.net.cts.IpSecManagerTest.AEAD_KEY , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , null , null , authCrypt , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , null , null , authCrypt , false , 1 , true ) ; }
Source:
public java.lang.String name ( ) { return ( ( ( ( ( "NetworkAgentInfo [" + ( networkInfo.getTypeName ( ) ) ) + " (" ) + ( networkInfo.getSubtypeName ( ) ) ) + ") - " ) + ( ( network ) == null ? "null" : network.toString ( ) ) ) + "]" ; }

Target:
public java.lang.String name ( ) { return ( ( ( ( ( "NetworkAgentInfo [" + ( networkInfo.getTypeName ( ) ) ) + " (" ) + ( networkInfo.getSubtypeName ( ) ) ) + ") - " ) + ( java.util.Objects.toString ( network ) ) ) + "]" ; }
Source:
public android.content.pm.KeySet getKeySetByAlias ( java.lang.String packageName , java.lang.String alias ) { if ( ( packageName == null ) || ( alias == null ) ) { return null ; } synchronized ( mPackages ) { final android.content.pm.PackageParser.Package pkg = mPackages.get ( packageName ) ; if ( pkg == null ) { android.util.Slog.w ( com.android.server.pm.PackageManagerService.TAG , ( "KeySet requested for unknown package:" + packageName ) ) ; throw new java.lang.IllegalArgumentException ( ( "Unknown package: " + packageName ) ) ; } com.android.server.pm.KeySetManagerService ksms = mSettings.mKeySetManagerService ; return new android.content.pm.KeySet ( ksms.getKeySetByAliasAndPackageNameLPr ( packageName , alias ) ) ; } }

Target:
public android.content.pm.KeySet getKeySetByAlias ( java.lang.String packageName , java.lang.String alias ) { if ( ( packageName == null ) || ( alias == null ) ) { return null ; } synchronized ( mPackages ) { final android.content.pm.PackageParser.Package pkg = mPackages.get ( packageName ) ; if ( pkg == null ) { android.util.Slog.w ( com.android.server.pm.PackageManagerService.TAG , ( "KeySet requested for unknown package: " + packageName ) ) ; throw new java.lang.IllegalArgumentException ( ( "Unknown package: " + packageName ) ) ; } com.android.server.pm.KeySetManagerService ksms = mSettings.mKeySetManagerService ; return new android.content.pm.KeySet ( ksms.getKeySetByAliasAndPackageNameLPr ( packageName , alias ) ) ; } }
Source:
public void log ( java.util.logging.Level level , java.lang.String msg , java.lang.Object param1 ) { if ( ( ( level.intValue ( ) ) < ( levelValue ) ) || ( ( levelValue ) == ( java.util.logging.Logger.offValue ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; java.lang.Object [ ] params = new java.lang.Object [ ] { param1 } ; lr.setParameters ( params ) ; doLog ( lr ) ; }

Target:
public void log ( java.util.logging.Level level , java.lang.String msg , java.lang.Object param1 ) { if ( ! ( isLoggable ( level ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; java.lang.Object [ ] params = new java.lang.Object [ ] { param1 } ; lr.setParameters ( params ) ; doLog ( lr ) ; }
Source:
public java.net.URL findResource ( java.lang.String name , boolean check ) { sun.misc.URLClassPath.Loader loader ; for ( int i = 0 ; ( loader = getLoader ( i ) ) != null ; i ++ ) { java.net.URL url = loader.findResource ( name , check ) ; if ( url != null ) { return url ; } } return null ; }

Target:
public java.net.URL findResource ( java.lang.String name , boolean check ) { sun.misc.URLClassPath.Loader loader ; int [ ] cache = getLookupCache ( name ) ; for ( int i = 0 ; ( loader = getNextLoader ( cache , i ) ) != null ; i ++ ) { java.net.URL url = loader.findResource ( name , check ) ; if ( url != null ) { return url ; } } return null ; }
Source:
public void onActivityResult ( int requestCode , int resultCode , android.content.Intent data ) { super . onActivityResult ( requestCode , resultCode , data ) ; if ( requestCode == ( com.android.settings.CredentialStorage.CONFIRM_KEY_GUARD_REQUEST ) ) { if ( resultCode == ( android.app.Activity.RESULT_OK ) ) { java.lang.String password = data.getStringExtra ( ChooseLockSettingsHelper.EXTRA_KEY_PASSWORD ) ; if ( ! ( android.text.TextUtils.isEmpty ( password ) ) ) { mKeyStore.password ( password ) ; return ; } } finish ( ) ; } }

Target:
public void onActivityResult ( int requestCode , int resultCode , android.content.Intent data ) { super . onActivityResult ( requestCode , resultCode , data ) ; if ( requestCode == ( com.android.settings.CredentialStorage.CONFIRM_KEY_GUARD_REQUEST ) ) { if ( resultCode == ( android.app.Activity.RESULT_OK ) ) { java.lang.String password = data.getStringExtra ( ChooseLockSettingsHelper.EXTRA_KEY_PASSWORD ) ; if ( ! ( android.text.TextUtils.isEmpty ( password ) ) ) { mKeyStore.unlock ( password ) ; return ; } } finish ( ) ; } }
Source:
private javax.net.ssl.SSLSocketFactory makeSocketFactory ( javax.net.ssl.KeyManager [ ] keyManagers , javax.net.ssl.TrustManager [ ] trustManagers ) { try { com.android.org.conscrypt.OpenSSLContextImpl sslContext = com.android.org.conscrypt.OpenSSLContextImpl.getPreferred ( ) ; sslContext.engineInit ( keyManagers , trustManagers , null ) ; sslContext.engineGetClientSessionContext ( ) . setPersistentCache ( mSessionCache ) ; return sslContext.engineGetSocketFactory ( ) ; } catch ( java.security.KeyManagementException e ) { android.util.Log.wtf ( android.net.SSLCertificateSocketFactory.TAG , e ) ; return ( ( javax.net.ssl.SSLSocketFactory ) ( javax.net.ssl.SSLSocketFactory.getDefault ( ) ) ) ; } }

Target:
private javax.net.ssl.SSLSocketFactory makeSocketFactory ( javax.net.ssl.KeyManager [ ] keyManagers , javax.net.ssl.TrustManager [ ] trustManagers ) { try { com.android.org.conscrypt.OpenSSLContextImpl sslContext = ( ( com.android.org.conscrypt.OpenSSLContextImpl ) ( com.android.org.conscrypt.Conscrypt.newPreferredSSLContextSpi ( ) ) ) ; sslContext.engineInit ( keyManagers , trustManagers , null ) ; sslContext.engineGetClientSessionContext ( ) . setPersistentCache ( mSessionCache ) ; return sslContext.engineGetSocketFactory ( ) ; } catch ( java.security.KeyManagementException e ) { android.util.Log.wtf ( android.net.SSLCertificateSocketFactory.TAG , e ) ; return ( ( javax.net.ssl.SSLSocketFactory ) ( javax.net.ssl.SSLSocketFactory.getDefault ( ) ) ) ; } }
Source:
public void run ( ) { android.renderscript.RenderScript pRS = android.renderscript.RenderScript.create ( mCtx ) ; com.android.rs.test.ScriptC_foreach_bounds s = new com.android.rs.test.ScriptC_foreach_bounds ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; initializeGlobals ( pRS , s ) ; s.invoke_verify_root ( ) ; s.invoke_foreach_bounds_test ( ) ; pRS.finish ( ) ; waitForMessage ( ) ; pRS.destroy ( ) ; }

Target:
public void run ( ) { android.renderscript.RenderScript pRS = android.renderscript.RenderScript.create ( mCtx ) ; com.android.rs.test.ScriptC_foreach_bounds s = new com.android.rs.test.ScriptC_foreach_bounds ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; initializeGlobals ( pRS , s ) ; s.invoke_verify_root ( ) ; s.invoke_foreach_bounds_test ( ) ; pRS.finish ( ) ; waitForMessage ( ) ; A.getType ( ) . destroy ( ) ; A.destroy ( ) ; s.destroy ( ) ; pRS.destroy ( ) ; }
Source:
synchronized void nScriptBindAllocation ( long script , long alloc , int slot ) { validate ( ) ; rsnScriptBindAllocation ( mContext , script , alloc , slot ) ; }

Target:
synchronized void nAllocationRead2D ( long id , int xoff , int yoff , int mip , int face , int w , int h , java.lang.Object d , int sizeBytes , android.support.v8.renderscript.Element.DataType dt , int mSize , boolean usePadding ) { validate ( ) ; rsnAllocationRead2D ( mContext , id , xoff , yoff , mip , face , w , h , d , sizeBytes , dt.mID , mSize , usePadding ) ; }
Source:
public void setUp ( ) throws java.lang.IllegalAccessException , java.lang.NoSuchMethodException , java.lang.reflect.InvocationTargetException { if ( ( android.os.Looper.myLooper ( ) ) == null ) { android.os.Looper.prepare ( ) ; } org.junit.Assert.assertNotNull ( android.os.Looper.myLooper ( ) ) ; org.mockito.MockitoAnnotations.initMocks ( this ) ; mProfiles = com.android.bluetooth.btservice.Config.getSupportedProfiles ( ) ; java.lang.reflect.Method method = com.android.bluetooth.btservice.AdapterService.class . getDeclaredMethod ( "setAdapterService" , com.android.bluetooth.btservice.AdapterService.class ) ; method.setAccessible ( true ) ; method.invoke ( null , mMockAdapterService ) ; org.junit.Assert.assertNotNull ( com.android.bluetooth.btservice.AdapterService.getAdapterService ( ) ) ; }

Target:
public void setUp ( ) throws java.lang.IllegalAccessException , java.lang.NoSuchMethodException , java.lang.reflect.InvocationTargetException { if ( ( android.os.Looper.myLooper ( ) ) == null ) { android.os.Looper.prepare ( ) ; } org.junit.Assert.assertNotNull ( android.os.Looper.myLooper ( ) ) ; org.mockito.MockitoAnnotations.initMocks ( this ) ; mProfiles = com.android.bluetooth.btservice.Config.getSupportedProfiles ( ) ; mMockAdapterService.initNative ( ) ; com.android.bluetooth.TestUtils.setAdapterService ( mMockAdapterService ) ; org.junit.Assert.assertNotNull ( com.android.bluetooth.btservice.AdapterService.getAdapterService ( ) ) ; }
Source:
public void testHasAction ( ) { android.content.Intent intent = new android.content.Intent ( android.content.Intent.ACTION_VIEW ) . addCategory ( "category" ) . setDataAndType ( uri , Context.ACTIVITY_SERVICE ) . putExtra ( "key" , "value" ) ; assertTrue ( android.support.test.espresso.intent.matcher.IntentMatchers.hasAction ( Intent.ACTION_VIEW ) . matches ( intent ) ) ; assertTrue ( android.support.test.espresso.intent.matcher.IntentMatchers.hasAction ( org.hamcrest.Matchers.equalTo ( Intent.ACTION_VIEW ) ) . matches ( intent ) ) ; }

Target:
public void hasActionTesting ( ) { android.content.Intent intent = new android.content.Intent ( android.content.Intent.ACTION_VIEW ) . addCategory ( "category" ) . setDataAndType ( uri , Context.ACTIVITY_SERVICE ) . putExtra ( "key" , "value" ) ; org.junit.Assert.assertTrue ( android.support.test.espresso.intent.matcher.IntentMatchers.hasAction ( Intent.ACTION_VIEW ) . matches ( intent ) ) ; org.junit.Assert.assertTrue ( android.support.test.espresso.intent.matcher.IntentMatchers.hasAction ( org.hamcrest.Matchers.equalTo ( Intent.ACTION_VIEW ) ) . matches ( intent ) ) ; }
Source:
public final byte [ ] wrap ( java.security.Key key ) throws java.security.InvalidKeyException , javax.crypto.IllegalBlockSizeException { if ( ! ( ( this ) instanceof javax.crypto.NullCipher ) ) { if ( ! ( initialized ) ) { throw new java.lang.IllegalStateException ( "Cipher not initialized" ) ; } if ( ( opmode ) != ( javax.crypto.Cipher.WRAP_MODE ) ) { throw new java.lang.IllegalStateException ( ( "Cipher not initialized " + "for wrapping keys" ) ) ; } } chooseFirstProvider ( ) ; return spi.engineWrap ( key ) ; }

Target:
public final byte [ ] wrap ( java.security.Key key ) throws java.security.InvalidKeyException , javax.crypto.IllegalBlockSizeException { if ( ! ( ( this ) instanceof javax.crypto.NullCipher ) ) { if ( ! ( initialized ) ) { throw new java.lang.IllegalStateException ( "Cipher not initialized" ) ; } if ( ( opmode ) != ( javax.crypto.Cipher.WRAP_MODE ) ) { throw new java.lang.IllegalStateException ( ( "Cipher not initialized " + "for wrapping keys" ) ) ; } } updateProviderIfNeeded ( ) ; return spi.engineWrap ( key ) ; }
Source:
private void addSeriesRecording ( com.android.tv.dvr.RecordedProgram recordedProgram ) { com.android.tv.dvr.SeriesRecording seriesRecording = com.android.tv.dvr.SeriesRecording.builder ( recordedProgram.getInputId ( ) , recordedProgram ) . setPriority ( mScheduleManager.suggestNewSeriesPriority ( ) ) . setState ( SeriesRecording.STATE_SERIES_STOPPED ) . build ( ) ; mDataManager.addSeriesRecording ( seriesRecording ) ; addRecordedProgramToSeriesRecording ( seriesRecording ) ; }

Target:
private void addSeriesRecording ( com.android.tv.dvr.data.RecordedProgram recordedProgram ) { com.android.tv.dvr.data.SeriesRecording seriesRecording = com.android.tv.dvr.data.SeriesRecording.builder ( recordedProgram.getInputId ( ) , recordedProgram ) . setPriority ( mScheduleManager.suggestNewSeriesPriority ( ) ) . setState ( SeriesRecording.STATE_SERIES_STOPPED ) . build ( ) ; mDataManager.addSeriesRecording ( seriesRecording ) ; addRecordedProgramToSeriesRecording ( seriesRecording ) ; }
Source:
public void validateUserCredentialWithoutCaCert ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.Credential cred = new android.net.wifi.hotspot2.pps.Credential ( ) ; cred.realm = "realm" ; cred.userCredential = new android.net.wifi.hotspot2.pps.Credential.UserCredential ( ) ; cred.userCredential.username = "username" ; cred.userCredential.password = "password" ; cred.userCredential.eapType = android.net.wifi.EAPConstants.EAP_TTLS ; cred.userCredential.nonEapInnerMethod = "MS-CHAP" ; org.junit.Assert.assertFalse ( cred.validate ( ) ) ; }

Target:
public void validateUserCredentialWithoutPassword ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.Credential cred = android.net.wifi.hotspot2.pps.CredentialTest.createCredentialWithUserCredential ( ) ; cred.getUserCredential ( ) . setPassword ( null ) ; org.junit.Assert.assertFalse ( cred.validate ( ) ) ; }
Source:
private void read ( java.io.InputStream patchIn ) throws java.io.IOException { @ java.lang.SuppressWarnings ( value = "IOResourceOpenedButNotSafelyClosed" ) java.io.DataInputStream in = new java.io.DataInputStream ( patchIn ) ; myOldBuild = in.readUTF ( ) ; myNewBuild = in.readUTF ( ) ; myIsBinary = in.readBoolean ( ) ; myIsStrict = in.readBoolean ( ) ; myIsNormalized = in.readBoolean ( ) ; myActions = readActions ( in ) ; }

Target:
private void read ( java.io.InputStream patchIn ) throws java.io.IOException { @ java.lang.SuppressWarnings ( value = "IOResourceOpenedButNotSafelyClosed" ) java.io.DataInputStream in = new java.io.DataInputStream ( patchIn ) ; myOldBuild = in.readUTF ( ) ; myNewBuild = in.readUTF ( ) ; myIsBinary = in.readBoolean ( ) ; myIsStrict = in.readBoolean ( ) ; myIsNormalized = in.readBoolean ( ) ; myWarnings = com.intellij.updater.Patch.readMap ( in ) ; myActions = readActions ( in ) ; }
Source:
private void boldViewHolderIfUnread ( ) { com.android.dialer.common.LogUtil.v ( "NewVoicemailViewHolder.boldViewHolderIfUnread" , "id:%d, isRead:%d" , voicemailEntryOfViewHolder.id ( ) , voicemailEntryOfViewHolder.isRead ( ) ) ; if ( ( voicemailEntryOfViewHolder.isRead ( ) ) == 0 ) { primaryTextView.setTypeface ( null , Typeface.BOLD ) ; secondaryTextView.setTypeface ( null , Typeface.BOLD ) ; transcriptionTextView.setTypeface ( null , Typeface.BOLD ) ; } }

Target:
private void boldViewHolderIfUnread ( ) { com.android.dialer.common.LogUtil.v ( "NewVoicemailViewHolder.boldViewHolderIfUnread" , "id:%d, isRead:%d" , voicemailEntryOfViewHolder.id ( ) , voicemailEntryOfViewHolder.isRead ( ) ) ; if ( ( voicemailEntryOfViewHolder.isRead ( ) ) == 0 ) { primaryTextView.setTypeface ( Typeface.DEFAULT , Typeface.BOLD ) ; secondaryTextView.setTypeface ( Typeface.DEFAULT , Typeface.BOLD ) ; transcriptionTextView.setTypeface ( Typeface.DEFAULT , Typeface.BOLD ) ; } }
Source:
public static void main ( java.lang.String [ ] args ) { if ( ( args.length ) == 0 ) { args = new java.lang.String [ ] { "com.android.ahat.DiffFieldsTest" , "com.android.ahat.DiffTest" , "com.android.ahat.DominatorsTest" , "com.android.ahat.InstanceTest" , "com.android.ahat.NativeAllocationTest" , "com.android.ahat.ObjectHandlerTest" , "com.android.ahat.OverviewHandlerTest" , "com.android.ahat.PerformanceTest" , "com.android.ahat.RootedHandlerTest" , "com.android.ahat.QueryTest" , "com.android.ahat.SiteHandlerTest" } ; } org.junit.runner.JUnitCore.main ( args ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { if ( ( args.length ) == 0 ) { args = new java.lang.String [ ] { "com.android.ahat.DiffFieldsTest" , "com.android.ahat.DiffTest" , "com.android.ahat.DominatorsTest" , "com.android.ahat.InstanceTest" , "com.android.ahat.NativeAllocationTest" , "com.android.ahat.ObjectHandlerTest" , "com.android.ahat.OverviewHandlerTest" , "com.android.ahat.PerformanceTest" , "com.android.ahat.RootedHandlerTest" , "com.android.ahat.QueryTest" , "com.android.ahat.SiteHandlerTest" , "com.android.ahat.SiteTest" } ; } org.junit.runner.JUnitCore.main ( args ) ; }
Source:
public com.android.ide.eclipse.adt.internal.resources.manager.ResourceRepository loadFrameworkResources ( com.android.sdklib.IAndroidTarget androidTarget ) { java.lang.String osResourcesPath = androidTarget.getPath ( IAndroidTarget.RESOURCES ) ; com.android.io.FolderWrapper frameworkRes = new com.android.io.FolderWrapper ( osResourcesPath ) ; if ( frameworkRes.exists ( ) ) { com.android.ide.eclipse.adt.internal.resources.manager.FrameworkResources resources = new com.android.ide.eclipse.adt.internal.resources.manager.FrameworkResources ( ) ; try { loadResources ( resources , frameworkRes ) ; resources.loadPublicResources ( frameworkRes , com.android.ide.eclipse.adt.AdtPlugin.getDefault ( ) ) ; return resources ; } catch ( java.io.IOException e ) { } } return null ; }

Target:
public com.android.ide.common.resources.ResourceRepository loadFrameworkResources ( com.android.sdklib.IAndroidTarget androidTarget ) { java.lang.String osResourcesPath = androidTarget.getPath ( IAndroidTarget.RESOURCES ) ; com.android.io.FolderWrapper frameworkRes = new com.android.io.FolderWrapper ( osResourcesPath ) ; if ( frameworkRes.exists ( ) ) { com.android.ide.common.resources.FrameworkResources resources = new com.android.ide.common.resources.FrameworkResources ( ) ; try { loadResources ( resources , frameworkRes ) ; resources.loadPublicResources ( frameworkRes , com.android.ide.eclipse.adt.AdtPlugin.getDefault ( ) ) ; return resources ; } catch ( java.io.IOException e ) { } } return null ; }
Source:
public boolean reportError ( android.bluetooth.BluetoothDevice device , byte error ) { android.util.Log.v ( android.bluetooth.BluetoothInputHost.TAG , ( ( ( "reportError(): device=" + device ) + " error=" ) + error ) ) ; boolean result = false ; final android.bluetooth.IBluetoothInputHost service = mService ; if ( service != null ) { try { result = service.reportError ( device , error ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothInputHost.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothInputHost.TAG , "Proxy not attached to service" ) ; } return result ; }

Target:
public boolean reportError ( android.bluetooth.BluetoothDevice device , byte error ) { android.util.Log.v ( android.bluetooth.BluetoothHidDevice.TAG , ( ( ( "reportError(): device=" + device ) + " error=" ) + error ) ) ; boolean result = false ; final android.bluetooth.IBluetoothHidDevice service = mService ; if ( service != null ) { try { result = service.reportError ( device , error ) ; } 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:
public void visitMethod ( com.google.gct.intellij.endpoints.validation.PsiMethod psiMethod ) { if ( ! ( isEndpointClass ( psiMethod ) ) ) { return ; } if ( ! ( isApiMethod ( psiMethod ) ) ) { return ; } com.google.gct.intellij.endpoints.validation.PsiParameterList parameterList = psiMethod.getParameterList ( ) ; java.util.Map < java.lang.String , com.google.gct.intellij.endpoints.validation.PsiParameter > methodNames = com.google.common.collect.Maps.newHashMap ( ) ; for ( com.google.gct.intellij.endpoints.validation.PsiParameter aParameter : parameterList.getParameters ( ) ) { validateMethodNameUnique ( aParameter , methodNames ) ; } }

Target:
public void visitMethod ( com.google.gct.intellij.endpoints.validation.PsiMethod psiMethod ) { if ( ! ( isEndpointClass ( psiMethod ) ) ) { return ; } if ( hasTransformer ( psiMethod ) ) { return ; } if ( ! ( isApiMethod ( psiMethod ) ) ) { return ; } com.google.gct.intellij.endpoints.validation.PsiParameterList parameterList = psiMethod.getParameterList ( ) ; java.util.Map < java.lang.String , com.google.gct.intellij.endpoints.validation.PsiParameter > methodNames = com.google.common.collect.Maps.newHashMap ( ) ; for ( com.google.gct.intellij.endpoints.validation.PsiParameter aParameter : parameterList.getParameters ( ) ) { validateMethodNameUnique ( aParameter , methodNames ) ; } }