auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void setAbsoluteVolume ( int volume ) { if ( volume == ( mLocalVolume ) ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) { android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "setAbsoluteVolume is setting same index, ignore " + volume ) ) ; } return ; } final com.android.bluetooth.avrcp.Avrcp.AvrcpMessageHandler handler = mHandler ; if ( handler == null ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , "setAbsoluteVolume: mHandler is already null" ) ; return ; } handler.removeMessages ( com.android.bluetooth.avrcp.Avrcp.MSG_ADJUST_VOLUME ) ; android.os.Message msg = handler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_SET_ABSOLUTE_VOLUME , volume , 0 ) ; handler.sendMessage ( msg ) ; }

Target:
public void setAbsoluteVolume ( int volume ) { if ( volume == ( mLocalVolume ) ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) { android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "setAbsoluteVolume is setting same index, ignore " + volume ) ) ; } return ; } final com.android.bluetooth.avrcp.Avrcp.AvrcpMessageHandler handler = mHandler ; if ( handler == null ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , "setAbsoluteVolume: mHandler is already null" ) ; return ; } android.os.Message msg = handler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_SET_ABSOLUTE_VOLUME , volume , 0 ) ; handler.sendMessage ( msg ) ; }
Source:
public int getCount ( ) { int count = mapEntry.getValue ( ) . get ( ) ; if ( count == 0 ) { com.google.common.collect.Count frequency = backingMap.get ( getElement ( ) ) ; if ( frequency != null ) { count = frequency.get ( ) ; } } return count ; }

Target:
public int getCount ( ) { com.google.common.collect.Count count = mapEntry.getValue ( ) ; if ( ( count == null ) || ( ( count.get ( ) ) == 0 ) ) { com.google.common.collect.Count frequency = backingMap.get ( getElement ( ) ) ; if ( frequency != null ) { return frequency.get ( ) ; } } return count == null ? 0 : count.get ( ) ; }
Source:
public com.android.sched.vfs.BaseVFile getVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotDirectoryException , com.android.sched.util.file.NotFileException { com.android.sched.vfs.BaseVDir dir = this ; java.util.Iterator < java.lang.String > iter = path.split ( ) . iterator ( ) ; java.lang.String name ; while ( iter.hasNext ( ) ) { name = iter.next ( ) ; if ( iter.hasNext ( ) ) { dir = vfs.getVDir ( dir , name ) ; } else { return vfs.getVFile ( dir , name ) ; } } throw new java.lang.AssertionError ( ) ; }

Target:
public com.android.sched.vfs.BaseVFile getVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotDirectoryException , com.android.sched.util.file.NotFileException { com.android.sched.vfs.BaseVDir dir = this ; java.util.Iterator < java.lang.String > iter = path.split ( ) . iterator ( ) ; java.lang.String name ; while ( iter.hasNext ( ) ) { name = iter.next ( ) ; if ( iter.hasNext ( ) ) { dir = dir.getVDir ( name ) ; } else { return dir.getVFile ( name ) ; } } throw new java.lang.AssertionError ( ) ; }
Source:
private static void assertSupportedCipherSuites ( java.util.Set < java.lang.String > expected , java.lang.String [ ] cipherSuites ) { java.util.Set < java.lang.String > remainingCipherSuites = libcore.java.security.StandardNames.assertValidCipherSuites ( expected , cipherSuites ) ; assertEquals ( "Missing cipher suites" , java.util.Collections.EMPTY_SET , remainingCipherSuites ) ; assertEquals ( expected.size ( ) , cipherSuites.length ) ; }

Target:
private static void assertSupportedCipherSuites ( java.util.Set < java.lang.String > expected , java.lang.String [ ] cipherSuites ) { java.util.Set < java.lang.String > remainingCipherSuites = libcore.java.security.StandardNames.assertValidCipherSuites ( expected , cipherSuites ) ; org.junit.Assert.assertEquals ( "Missing cipher suites" , java.util.Collections.EMPTY_SET , remainingCipherSuites ) ; org.junit.Assert.assertEquals ( expected.size ( ) , cipherSuites.length ) ; }
Source:
public boolean getAnyDataEnabled ( ) { if ( ! ( mDataEnabledSettings.isDataEnabled ( true ) ) ) return false ; com.android.internal.telephony.dataconnection.DcTracker.DataAllowFailReason failureReason = new com.android.internal.telephony.dataconnection.DcTracker.DataAllowFailReason ( ) ; if ( ! ( isDataAllowed ( failureReason ) ) ) { if ( com.android.internal.telephony.dataconnection.DcTracker.DBG ) log ( failureReason.getDataAllowFailReason ( ) ) ; return false ; } for ( com.android.internal.telephony.dataconnection.ApnContext apnContext : mApnContexts.values ( ) ) { if ( isDataAllowedForApn ( apnContext ) ) { return true ; } } return false ; }

Target:
public boolean isDataEnabled ( ) { return mDataEnabledSettings.isDataEnabled ( ) ; }
Source:
synchronized android.telecom.Connection onCreateIncomingConnection ( android.bluetooth.BluetoothHeadsetClientCall call ) { com.android.bluetooth.hfpclient.connserv.HfpClientConnection connection = connection = mConnections.get ( call.getUUID ( ) ) ; if ( connection != null ) { connection.onAdded ( ) ; updateConferenceableConnections ( ) ; return connection ; } else { android.util.Log.e ( mTAG , ( ( "Call " + call ) + " ignored: connection does not exist" ) ) ; return null ; } }

Target:
synchronized android.telecom.Connection onCreateIncomingConnection ( android.bluetooth.BluetoothHeadsetClientCall call ) { com.android.bluetooth.hfpclient.connserv.HfpClientConnection connection = mConnections.get ( call.getUUID ( ) ) ; if ( connection != null ) { connection.onAdded ( ) ; return connection ; } else { android.util.Log.e ( mTAG , ( ( "Call " + call ) + " ignored: connection does not exist" ) ) ; return null ; } }
Source:
public void setupMenu ( java.lang.String appName , org.eclipse.swt.widgets.Menu swtMenu , com.android.menubar.IMenuBarCallback callbacks ) { mAppName = appName ; final org.eclipse.swt.widgets.Display display = swtMenu.getDisplay ( ) ; com.android.menubar.internal.MenuBarEnhancerCocoa.ActionProctarget target = new com.android.menubar.internal.MenuBarEnhancerCocoa.ActionProctarget ( callbacks ) ; try { initialize ( target ) ; } catch ( java.lang.Exception e ) { throw new java.lang.IllegalStateException ( e ) ; } display.disposeExec ( new java.lang.Runnable ( ) { public void run ( ) { invoke ( com.android.menubar.internal.MenuBarEnhancerCocoa.mProc3Args , "dispose" ) ; } } ) ; }

Target:
public void setupMenu ( java.lang.String appName , org.eclipse.swt.widgets.Display display , com.android.menubar.IMenuBarCallback callbacks ) { mAppName = appName ; com.android.menubar.internal.MenuBarEnhancerCocoa.ActionProctarget target = new com.android.menubar.internal.MenuBarEnhancerCocoa.ActionProctarget ( callbacks ) ; try { initialize ( target ) ; } catch ( java.lang.Exception e ) { throw new java.lang.IllegalStateException ( e ) ; } display.disposeExec ( new java.lang.Runnable ( ) { public void run ( ) { invoke ( com.android.menubar.internal.MenuBarEnhancerCocoa.mProc3Args , "dispose" ) ; } } ) ; }
Source:
public void handlePackagesChanged ( ) { final int oldItemCount = getCount ( ) ; rebuildList ( ) ; notifyDataSetChanged ( ) ; if ( ( mList.size ( ) ) <= 0 ) { finish ( ) ; } final int newItemCount = getCount ( ) ; if ( newItemCount != oldItemCount ) { resizeGrid ( ) ; } }

Target:
public int getCount ( ) { return mList.size ( ) ; }
Source:
boolean checkAppSwitchAllowedLocked ( int callingPid , int callingUid , java.lang.String name ) { if ( ( mAppSwitchesAllowedTime ) < ( android.os.SystemClock.uptimeMillis ( ) ) ) { return true ; } final int perm = checkComponentPermission ( android.Manifest.permission.STOP_APP_SWITCHES , callingPid , callingUid , ( - 1 ) ) ; if ( perm == ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) { return true ; } android.util.Slog.w ( com.android.server.am.ActivityManagerService.TAG , ( ( ( name + " request from " ) + callingUid ) + " stopped" ) ) ; return false ; }

Target:
boolean checkAppSwitchAllowedLocked ( int callingPid , int callingUid , java.lang.String name ) { if ( ( mAppSwitchesAllowedTime ) < ( android.os.SystemClock.uptimeMillis ( ) ) ) { return true ; } final int perm = checkComponentPermission ( android.Manifest.permission.STOP_APP_SWITCHES , callingPid , callingUid , ( - 1 ) , true ) ; if ( perm == ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) { return true ; } android.util.Slog.w ( com.android.server.am.ActivityManagerService.TAG , ( ( ( name + " request from " ) + callingUid ) + " stopped" ) ) ; return false ; }
Source:
private void updateAndSendIntent ( android.bluetooth.BluetoothDevice device , int newDeviceState , int prevDeviceState ) { if ( newDeviceState == ( android.bluetooth.BluetoothHealth.STATE_DISCONNECTED ) ) { mHealthDevices.remove ( device ) ; } else { mHealthDevices.put ( device , newDeviceState ) ; } notifyProfileConnectionStateChanged ( device , BluetoothProfile.HEALTH , newDeviceState , prevDeviceState ) ; }

Target:
private void updateAndSendIntent ( android.bluetooth.BluetoothDevice device , int newDeviceState , int prevDeviceState ) { if ( newDeviceState == ( android.bluetooth.BluetoothHealth.STATE_DISCONNECTED ) ) { mHealthDevices.remove ( device ) ; } else { mHealthDevices.put ( device , newDeviceState ) ; } }
Source:
private boolean needFullBuild ( ) { com.android.jack.ir.ast.JSession session = com.android.jack.Jack.getSession ( ) ; return ( ( ( incrementalInputLibrary ) == null ) || ( ! ( libraryDependencies.hasSameLibraryOnClasspath ( session.getLibraryDependencies ( ) ) ) ) ) || ( ! ( libraryDependencies.hasSameImportedLibrary ( session.getLibraryDependencies ( ) ) ) ) ; }

Target:
private boolean needFullBuild ( ) { return true ; }
Source:
public void test2 ( ) throws java.lang.Exception { check ( "test.pkg" , ( "int drawable foobar 0x7f020000\n" + ( ( ( ( "int drawable ic_launcher 0x7f020001\n" + "int string app_name 0x7f030000\n" ) + "int string lib1 0x7f030001\n" ) + "int style AppBaseTheme 0x7f040000\n" ) + "int style AppTheme 0x7f040001\n" ) ) , ( "/* AUTO-GENERATED FILE. DO NOT MODIFY.\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( " *\n" + " * This class was automatically generated by the\n" ) + " * aapt tool from the resource data it found. It\n" ) + " * should not be modified by hand.\n" ) + " */\n" ) + "package test.pkg;\n" ) + "\n" ) + "public final class R {\n" ) + " public static final class style {\n" ) + " public static final int AppBaseTheme = 0x7f040000;\n" ) + " public static final int AppTheme = 0x7f040001;\n" ) + " }\n" ) + " public static final class string {\n" ) + " public static final int app_name = 0x7f030000;\n" ) + " public static final int lib1 = 0x7f030001;\n" ) + " }\n" ) + " public static final class drawable {\n" ) + " public static final int ic_launcher = 0x7f020001;\n" ) + " public static final int foobar = 0x7f020000;\n" ) + " }\n" ) + "}\n" ) ) ) ; }

Target:
public void test2 ( ) throws java.lang.Exception { check ( "test.pkg" , ( "int drawable foobar 0x7f020000\n" + ( ( ( ( "int drawable ic_launcher 0x7f020001\n" + "int string app_name 0x7f030000\n" ) + "int string lib1 0x7f030001\n" ) + "int style AppBaseTheme 0x7f040000\n" ) + "int style AppTheme 0x7f040001\n" ) ) , ( "/* AUTO-GENERATED FILE. DO NOT MODIFY.\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( " *\n" + " * This class was automatically generated by the\n" ) + " * aapt tool from the resource data it found. It\n" ) + " * should not be modified by hand.\n" ) + " */\n" ) + "package test.pkg;\n" ) + "\n" ) + "public final class R {\n" ) + " public static final class style {\n" ) + " public static final int AppBaseTheme = 0x7f040000;\n" ) + " public static final int AppTheme = 0x7f040001;\n" ) + " }\n" ) + " public static final class string {\n" ) + " public static final int app_name = 0x7f030000;\n" ) + " public static final int lib1 = 0x7f030001;\n" ) + " }\n" ) + " public static final class drawable {\n" ) + " public static final int foobar = 0x7f020000;\n" ) + " public static final int ic_launcher = 0x7f020001;\n" ) + " }\n" ) + "}\n" ) ) ) ; }
Source:
public static com.android.manifmerger.XmlDocument load ( com.android.manifmerger.KeyResolver < java.lang.String > selectors , com.android.manifmerger.PlaceholderHandler.KeyBasedValueResolver < com.android.manifmerger.ManifestMerger2.SystemProperty > systemPropertyResolver , com.android.ide.common.blame.SourceFile sourceFile , java.lang.String xml , com.android.manifmerger.XmlDocument.Type type , com.google.common.base.Optional < java.lang.String > mainManifestPackageName ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { com.android.utils.PositionXmlParser positionXmlParser = new com.android.utils.PositionXmlParser ( ) ; org.w3c.dom.Document domDocument = positionXmlParser.parse ( xml ) ; return domDocument != null ? new com.android.manifmerger.XmlDocument ( positionXmlParser , sourceFile , selectors , systemPropertyResolver , domDocument.getDocumentElement ( ) , type , mainManifestPackageName ) : null ; }

Target:
public static com.android.manifmerger.XmlDocument load ( com.android.manifmerger.KeyResolver < java.lang.String > selectors , com.android.manifmerger.PlaceholderHandler.KeyBasedValueResolver < com.android.manifmerger.ManifestMerger2.SystemProperty > systemPropertyResolver , com.android.ide.common.blame.SourceFile sourceFile , java.lang.String xml , com.android.manifmerger.XmlDocument.Type type , com.google.common.base.Optional < java.lang.String > mainManifestPackageName ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { org.w3c.dom.Document domDocument = com.android.utils.PositionXmlParser.parse ( xml ) ; return domDocument != null ? new com.android.manifmerger.XmlDocument ( sourceFile , selectors , systemPropertyResolver , domDocument.getDocumentElement ( ) , type , mainManifestPackageName ) : null ; }
Source:
private void markAddressNotResolvable ( com.android.ddmlib.NativeLibraryMapInfo lib , java.lang.Long addr ) { mAddressResolution.put ( addr , new com.android.ddmlib.NativeStackCallInfo ( addr.longValue ( ) , lib.getLibraryName ( ) , java.lang.Long.toHexString ( addr ) , "" ) ) ; mUnresolvableAddresses.add ( addr ) ; }

Target:
private void markAddressNotResolvable ( com.android.ddmlib.NativeLibraryMapInfo lib , java.lang.Long addr ) { mAddressResolution.put ( addr , new com.android.ddmlib.NativeStackCallInfo ( addr , lib.getLibraryName ( ) , java.lang.Long.toHexString ( addr ) , "" ) ) ; mUnresolvableAddresses.add ( addr ) ; }
Source:
protected final void disposeContent ( com.intellij.designer.DesignerEditorPanelFacade designer ) { java.lang.String key = getComponentName ( ) ; com.intellij.designer.LightToolWindow toolWindow = ( ( com.intellij.designer.LightToolWindow ) ( designer.getClientProperty ( key ) ) ) ; designer.putClientProperty ( key , null ) ; toolWindow.dispose ( ) ; }

Target:
protected final void disposeContent ( com.intellij.designer.DesignerEditorPanelFacade designer ) { java.lang.String key = getComponentName ( ) ; com.intellij.designer.LightToolWindow toolWindow = ( ( com.intellij.designer.LightToolWindow ) ( designer.getClientProperty ( key ) ) ) ; designer.putClientProperty ( key , null ) ; if ( toolWindow != null ) { toolWindow.dispose ( ) ; } }
Source:
public boolean startLoggingRingBuffer ( int verboseLevel , int flags , int maxInterval , int minDataSize , java.lang.String ringName ) { try { if ( ( mWifiVendorHal ) != null ) { return mWifiVendorHal.startLoggingRingBuffer ( verboseLevel , flags , maxInterval , minDataSize , ringName ) ; } } catch ( java.lang.UnsupportedOperationException e ) { } legacyHalWarning ( ) ; synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.startLoggingRingBufferNative ( com.android.server.wifi.WifiNative.sWlan0Index , verboseLevel , flags , maxInterval , minDataSize , ringName ) ; } else { return false ; } } }

Target:
public boolean startLoggingRingBuffer ( int verboseLevel , int flags , int maxInterval , int minDataSize , java.lang.String ringName ) { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.startLoggingRingBufferNative ( com.android.server.wifi.WifiNative.sWlan0Index , verboseLevel , flags , maxInterval , minDataSize , ringName ) ; } else { return false ; } } }
Source:
public com.android.jack.dx.io.instructions.DecodedInstruction withIndex ( int newFirstIndex , int newSecondIndex ) { assert ( getSecondIndexType ( ) ) == ( com.android.jack.dx.io.IndexType.NONE ) ; return new com.android.jack.dx.io.instructions.TwoRegisterDecodedInstruction ( getFormat ( ) , getOpcode ( ) , newFirstIndex , getFirstIndexType ( ) , getTarget ( ) , getLiteral ( ) , a , b ) ; }

Target:
public com.android.jack.dx.io.instructions.DecodedInstruction withIndex ( int newFirstIndex , int newSecondIndex ) { return new com.android.jack.dx.io.instructions.TwoRegisterDecodedInstruction ( getFormat ( ) , getOpcode ( ) , newFirstIndex , getFirstIndexType ( ) , getTarget ( ) , getLiteral ( ) , a , b , newSecondIndex , getSecondIndexType ( ) ) ; }
Source:
public void testManifestPlaceholdersMerge ( ) { com.android.builder.model.ProductFlavor flavor = com.android.builder.core.DefaultProductFlavor.mergeFlavors ( mCustom2 , mCustom ) ; java.util.Map < java.lang.String , java.lang.String > manifestPlaceholders = flavor.getManifestPlaceholders ( ) ; assertEquals ( 3 , manifestPlaceholders.size ( ) ) ; assertEquals ( "oneValue" , manifestPlaceholders.get ( "one" ) ) ; assertEquals ( "twoValue" , manifestPlaceholders.get ( "two" ) ) ; assertEquals ( "threeValue" , manifestPlaceholders.get ( "three" ) ) ; }

Target:
public void testManifestPlaceholdersMerge ( ) { com.android.builder.model.ProductFlavor flavor = com.android.builder.core.DefaultProductFlavor.mergeFlavors ( mCustom2 , mCustom ) ; java.util.Map < java.lang.String , java.lang.Object > manifestPlaceholders = flavor.getManifestPlaceholders ( ) ; assertEquals ( 3 , manifestPlaceholders.size ( ) ) ; assertEquals ( "oneValue" , manifestPlaceholders.get ( "one" ) ) ; assertEquals ( "twoValue" , manifestPlaceholders.get ( "two" ) ) ; assertEquals ( "threeValue" , manifestPlaceholders.get ( "three" ) ) ; }
Source:
public void testSingleOutput ( ) { com.android.build.SplitOutput match ; java.util.List < com.android.build.SplitOutput > list = com.google.common.collect.Lists.newArrayList ( ) ; list.add ( ( match = com.android.ide.common.build.SplitOutputMatcherTest.getUniversalOutput ( ) ) ) ; com.android.build.SplitOutput result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , 160 , "foo" ) ; assertEquals ( match , result ) ; }

Target:
public void testSingleOutput ( ) { com.android.build.SplitOutput match ; java.util.List < com.android.build.SplitOutput > list = com.google.common.collect.Lists.newArrayList ( ) ; list.add ( ( match = com.android.ide.common.build.SplitOutputMatcherTest.getUniversalOutput ( 1 ) ) ) ; com.android.build.SplitOutput result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , 160 , "foo" ) ; assertEquals ( match , result ) ; }
Source:
public void copy1DRangeFromUnchecked ( int off , int count , float [ ] d ) { int dataSize = ( mType.mElement.getBytesSize ( ) ) * count ; data1DChecks ( off , count , ( ( d.length ) * 4 ) , dataSize ) ; mRS.nAllocationData1D ( getIDSafe ( ) , off , mSelectedLOD , count , d , dataSize ) ; }

Target:
public void copy1DRangeFromUnchecked ( int off , int count , float [ ] d ) { copy1DRangeFromUnchecked ( off , count , ( ( java.lang.Object ) ( d ) ) , Element.DataType.FLOAT_32 , d.length ) ; }
Source:
private static boolean nodeNeedsUniquePredecessor ( com.android.jack.ir.ast.cfg.JBasicBlock block ) { if ( block instanceof com.android.jack.ir.ast.cfg.JExitBasicBlock ) { throw new java.lang.RuntimeException ( "exit bblock doesn't need unique pred" ) ; } int countPredecessors = block.getPredecessorCount ( ) ; int countSuccessors = block.getSuccessors ( ) . size ( ) ; boolean needsUniquePredecessor = ( countPredecessors > 1 ) && ( countSuccessors > 1 ) ; assert ( ! needsUniquePredecessor ) || ( ! ( ( block instanceof com.android.jack.ir.ast.cfg.JCaseBasicBlock ) || ( block instanceof com.android.jack.ir.ast.cfg.JCatchBasicBlock ) ) ) ; return needsUniquePredecessor ; }

Target:
private static boolean nodeNeedsUniquePredecessor ( com.android.jack.ir.ast.cfg.JBasicBlock block ) { if ( block instanceof com.android.jack.ir.ast.cfg.JExitBasicBlock ) { return false ; } int countPredecessors = block.getPredecessorCount ( ) ; int countSuccessors = block.getSuccessors ( ) . size ( ) ; boolean needsUniquePredecessor = ( countPredecessors > 1 ) && ( countSuccessors > 1 ) ; assert ( ! needsUniquePredecessor ) || ( ! ( ( block instanceof com.android.jack.ir.ast.cfg.JCaseBasicBlock ) || ( block instanceof com.android.jack.ir.ast.cfg.JCatchBasicBlock ) ) ) ; return needsUniquePredecessor ; }
Source:
public int getOffset ( long when ) { int unix = ( ( int ) ( when / 1000 ) ) ; int transition = java.util.Arrays.binarySearch ( mTransitions , unix ) ; if ( transition < 0 ) { transition = ( ~ transition ) - 1 ; if ( transition < 0 ) { return mEarliestRawOffset ; } } return ( mRawOffset ) + ( ( mOffsets [ ( ( mTypes [ transition ] ) & 255 ) ] ) * 1000 ) ; }

Target:
public int getOffset ( long when ) { long unix = when / 1000 ; int transition = java.util.Arrays.binarySearch ( mTransitions , unix ) ; if ( transition < 0 ) { transition = ( ~ transition ) - 1 ; if ( transition < 0 ) { return mEarliestRawOffset ; } } return ( mRawOffset ) + ( ( mOffsets [ ( ( mTypes [ transition ] ) & 255 ) ] ) * 1000 ) ; }
Source:
private com.ibm.icu.text.UnicodeSet getEquivalentDecimals ( char decimal , boolean strictParse ) { com.ibm.icu.text.UnicodeSet equivSet = UnicodeSet.EMPTY ; if ( strictParse ) { if ( com.ibm.icu.text.DecimalFormat.strictDotEquivalents.contains ( decimal ) ) { equivSet = com.ibm.icu.text.DecimalFormat.strictDotEquivalents ; } else if ( com.ibm.icu.text.DecimalFormat.strictCommaEquivalents.contains ( decimal ) ) { equivSet = com.ibm.icu.text.DecimalFormat.strictCommaEquivalents ; } } else { if ( com.ibm.icu.text.DecimalFormat.dotEquivalents.contains ( decimal ) ) { equivSet = com.ibm.icu.text.DecimalFormat.dotEquivalents ; } else if ( com.ibm.icu.text.DecimalFormat.commaEquivalents.contains ( decimal ) ) { equivSet = com.ibm.icu.text.DecimalFormat.commaEquivalents ; } } return equivSet ; }

Target:
private com.ibm.icu.text.UnicodeSet getEquivalentDecimals ( java.lang.String decimal , boolean strictParse ) { com.ibm.icu.text.UnicodeSet equivSet = UnicodeSet.EMPTY ; if ( strictParse ) { if ( com.ibm.icu.text.DecimalFormat.strictDotEquivalents.contains ( decimal ) ) { equivSet = com.ibm.icu.text.DecimalFormat.strictDotEquivalents ; } else if ( com.ibm.icu.text.DecimalFormat.strictCommaEquivalents.contains ( decimal ) ) { equivSet = com.ibm.icu.text.DecimalFormat.strictCommaEquivalents ; } } else { if ( com.ibm.icu.text.DecimalFormat.dotEquivalents.contains ( decimal ) ) { equivSet = com.ibm.icu.text.DecimalFormat.dotEquivalents ; } else if ( com.ibm.icu.text.DecimalFormat.commaEquivalents.contains ( decimal ) ) { equivSet = com.ibm.icu.text.DecimalFormat.commaEquivalents ; } } return equivSet ; }
Source:
protected void engineInit ( int opmode , java.security.Key key , java.security.spec.AlgorithmParameterSpec params , java.security.SecureRandom random ) throws java.security.InvalidAlgorithmParameterException , java.security.InvalidKeyException { final byte [ ] iv ; if ( params instanceof javax.crypto.spec.IvParameterSpec ) { javax.crypto.spec.IvParameterSpec ivParams = ( ( javax.crypto.spec.IvParameterSpec ) ( params ) ) ; iv = ivParams.getIV ( ) ; } else { iv = null ; } engineInitInternal ( opmode , key , iv ) ; }

Target:
protected void engineInit ( int opmode , java.security.Key key , java.security.spec.AlgorithmParameterSpec params , java.security.SecureRandom random ) throws java.security.InvalidAlgorithmParameterException , java.security.InvalidKeyException { final byte [ ] iv ; if ( params instanceof javax.crypto.spec.IvParameterSpec ) { javax.crypto.spec.IvParameterSpec ivParams = ( ( javax.crypto.spec.IvParameterSpec ) ( params ) ) ; iv = ivParams.getIV ( ) ; } else { iv = null ; } engineInitInternal ( opmode , key , iv , random ) ; }
Source:
public void beforeCheckProject ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context ) { mApiDatabase = com.android.tools.lint.checks.ApiLookup.get ( context.getClient ( ) ) ; if ( ! ( mWarnedMissingDb ) ) { mWarnedMissingDb = true ; context.report ( IssueRegistry.LINT_ERROR , com.android.tools.lint.detector.api.Location.create ( context.file ) , "Can't find API database; API check not performed" , null ) ; } }

Target:
public void beforeCheckProject ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context ) { mApiDatabase = com.android.tools.lint.checks.ApiLookup.get ( context.getClient ( ) ) ; if ( ( ( mApiDatabase ) == null ) && ( ! ( mWarnedMissingDb ) ) ) { mWarnedMissingDb = true ; context.report ( IssueRegistry.LINT_ERROR , com.android.tools.lint.detector.api.Location.create ( context.file ) , "Can't find API database; API check not performed" , null ) ; } }
Source:
public void testConfigurationUpdatesWhenRotatingToSideFromDocked ( ) throws java.lang.Exception { if ( ! ( supportsScreenRotation ( ) ) ) { com.android.tradefed.log.LogUtil.CLog.logAndDisplay ( LogLevel.INFO , "Skipping test: no rotation support" ) ; return ; } if ( ( ! ( supportsSplitScreenMultiWindow ( ) ) ) || ( ! ( supportsMultiWindowMode ( ) ) ) ) { com.android.tradefed.log.LogUtil.CLog.logAndDisplay ( LogLevel.INFO , "Skipping test: no multi-window support" ) ; return ; } setDeviceRotation ( 0 ) ; launchActivityInDockStack ( android.server.cts.LAUNCHING_ACTIVITY ) ; launchActivityToSide ( false , false , android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME ) ; final android.server.cts.ReportedSizes initialSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME ) ; rotateAndCheckSizes ( initialSizes ) ; }

Target:
public void testConfigurationUpdatesWhenRotatingToSideFromDocked ( ) throws java.lang.Exception { if ( ! ( supportsScreenRotation ( ) ) ) { com.android.tradefed.log.LogUtil.CLog.logAndDisplay ( LogLevel.INFO , "Skipping test: no rotation support" ) ; return ; } if ( ! ( supportsSplitScreenMultiWindow ( ) ) ) { com.android.tradefed.log.LogUtil.CLog.logAndDisplay ( LogLevel.INFO , "Skipping test: no multi-window support" ) ; return ; } setDeviceRotation ( 0 ) ; launchActivityInDockStack ( android.server.cts.LAUNCHING_ACTIVITY ) ; launchActivityToSide ( false , false , android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME ) ; final android.server.cts.ReportedSizes initialSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME ) ; rotateAndCheckSizes ( initialSizes ) ; }
Source:
public boolean resetPnoList ( ) { legacyHalWarning ( ) ; android.util.Log.e ( com.android.server.wifi.WifiNative.TAG , ( "resetPnoList cmd " + ( com.android.server.wifi.WifiNative.sPnoCmdId ) ) ) ; synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { com.android.server.wifi.WifiNative.sPnoCmdId = com.android.server.wifi.WifiNative.getNewCmdIdLocked ( ) ; com.android.server.wifi.WifiNative.sPnoEventHandler = null ; if ( com.android.server.wifi.WifiNative.resetPnoListNative ( com.android.server.wifi.WifiNative.sWlan0Index , com.android.server.wifi.WifiNative.sPnoCmdId ) ) { return true ; } } return false ; } }

Target:
public boolean resetPnoList ( ) { android.util.Log.e ( com.android.server.wifi.WifiNative.TAG , ( "resetPnoList cmd " + ( com.android.server.wifi.WifiNative.sPnoCmdId ) ) ) ; synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { com.android.server.wifi.WifiNative.sPnoCmdId = com.android.server.wifi.WifiNative.getNewCmdIdLocked ( ) ; com.android.server.wifi.WifiNative.sPnoEventHandler = null ; if ( com.android.server.wifi.WifiNative.resetPnoListNative ( com.android.server.wifi.WifiNative.sWlan0Index , com.android.server.wifi.WifiNative.sPnoCmdId ) ) { return true ; } } return false ; } }
Source:
public void onSystemStart ( ) throws com.android.jack.server.api.v01.ServerException { assert ( launcherHandle ) != null ; assert ( jackServer ) == null ; try { com.android.jack.server.JackHttpServer.cleanUp ( launcherHandle ) ; } catch ( java.io.IOException e ) { throw new com.android.jack.server.api.v01.ServerException ( e.getMessage ( ) , e ) ; } }

Target:
public void onSystemStart ( ) { }
Source:
public void putAll ( com.google.common.collect.Table < ? extends R , ? extends C , ? extends V > table ) { for ( com.google.common.collect.Table.Cell < ? extends R , ? extends C , ? extends V > cell : table.cellSet ( ) ) { put ( cell.getRowKey ( ) , cell.getColumnKey ( ) , cell.getValue ( ) ) ; } }

Target:
public void putAll ( com.google.common.collect.Table < ? extends R , ? extends C , ? extends V > table ) { super . putAll ( table ) ; }
Source:
protected void startActivity ( java.lang.String uri , java.lang.String action , java.lang.String data , java.lang.String mimetype , java.util.Collection < java.lang.String > categories , java.util.Map < java.lang.String , java.lang.Object > extras , java.lang.String component , int flags ) { java.util.List < java.lang.String > intentArgs = buildIntentArgString ( uri , action , data , mimetype , categories , extras , component , flags ) ; shell ( com.google.common.collect.Lists.asList ( "am" , "start" , intentArgs.toArray ( com.android.monkeyrunner.adb.AdbMonkeyDevice.ZERO_LENGTH_STRING_ARRAY ) ) . toArray ( com.android.monkeyrunner.adb.AdbMonkeyDevice.ZERO_LENGTH_STRING_ARRAY ) ) ; }

Target:
public void startActivity ( java.lang.String uri , java.lang.String action , java.lang.String data , java.lang.String mimetype , java.util.Collection < java.lang.String > categories , java.util.Map < java.lang.String , java.lang.Object > extras , java.lang.String component , int flags ) { java.util.List < java.lang.String > intentArgs = buildIntentArgString ( uri , action , data , mimetype , categories , extras , component , flags ) ; shell ( com.google.common.collect.Lists.asList ( "am" , "start" , intentArgs.toArray ( com.android.monkeyrunner.adb.AdbMonkeyDevice.ZERO_LENGTH_STRING_ARRAY ) ) . toArray ( com.android.monkeyrunner.adb.AdbMonkeyDevice.ZERO_LENGTH_STRING_ARRAY ) ) ; }
Source:
public int [ ] blend ( int [ ] src , int [ ] dst ) { return new int [ ] { java.lang.Math.max ( src [ 0 ] , dst [ 0 ] ) , java.lang.Math.max ( src [ 1 ] , dst [ 1 ] ) , java.lang.Math.max ( src [ 2 ] , dst [ 2 ] ) , java.lang.Math.min ( 255 , ( ( src [ 3 ] ) + ( dst [ 3 ] ) ) ) } ; }

Target:
public int [ ] blend ( int [ ] src , int [ ] dst , int [ ] result ) { for ( int i = 0 ; i < 3 ; i ++ ) { result [ i ] = java.lang.Math.max ( src [ i ] , dst [ i ] ) ; } result [ 3 ] = java.lang.Math.min ( 255 , ( ( src [ 3 ] ) + ( dst [ 3 ] ) ) ) ; return result ; }
Source:
public byte [ ] toDex ( java.io.Writer humanOut , boolean verbose ) throws java.io.IOException { boolean annotate = humanOut != null ; com.android.dx.util.ByteArrayAnnotatedOutput result = toDex0 ( annotate , verbose , null ) ; if ( annotate ) { result.writeAnnotationsTo ( humanOut ) ; } return result.getArray ( ) ; }

Target:
public byte [ ] toDex ( java.io.Writer humanOut , boolean verbose ) throws java.io.IOException { boolean annotate = humanOut != null ; com.android.dx.util.ByteArrayAnnotatedOutput result = toDex0 ( annotate , verbose ) ; if ( annotate ) { result.writeAnnotationsTo ( humanOut ) ; } return result.getArray ( ) ; }
Source:
static int oneArrayAbs ( int [ ] a , int lo ) { int x = 0 ; for ( int i = java.lang.Math.abs ( lo ) ; i < ( a.length ) ; i ++ ) { x += a [ i ] ; } return x ; }

Target:
static int oneArrayAbs ( int [ ] a , int [ ] b ) { int x = 0 ; for ( int i = java.lang.Math.abs ( b.length ) ; i < ( a.length ) ; i ++ ) { x += a [ i ] ; } return x ; }
Source:
public void nextBytes ( byte [ ] bytes ) { synchronized ( this ) { if ( ( drbg ) == null ) { drbg = drbgProvider.get ( entropySource ) ; } if ( ( drbg.generate ( bytes , null , predictionResistant ) ) < 0 ) { drbg.reseed ( entropySource.getEntropy ( ) ) ; drbg.generate ( bytes , null , predictionResistant ) ; } } }

Target:
public void nextBytes ( byte [ ] bytes ) { synchronized ( this ) { if ( ( drbg ) == null ) { drbg = drbgProvider.get ( entropySource ) ; } if ( ( drbg.generate ( bytes , null , predictionResistant ) ) < 0 ) { drbg.reseed ( null ) ; drbg.generate ( bytes , null , predictionResistant ) ; } } }
Source:
private int getNewSpiResourceId ( int direction , java.lang.String remoteAddress , int returnSpi ) throws java.lang.Exception { org.mockito.Mockito.when ( mMockNetd.ipSecAllocateSpi ( org.mockito.Matchers.anyInt ( ) , org.mockito.Matchers.anyInt ( ) , org.mockito.Matchers.anyString ( ) , org.mockito.Matchers.anyString ( ) , org.mockito.Matchers.anyInt ( ) ) ) . thenReturn ( returnSpi ) ; android.net.IpSecSpiResponse spi = mIpSecService.allocateSecurityParameterIndex ( direction , android.net.NetworkUtils.numericToInetAddress ( remoteAddress ) . getHostAddress ( ) , IpSecManager.INVALID_SECURITY_PARAMETER_INDEX , new android.os.Binder ( ) ) ; return spi.resourceId ; }

Target:
private int getNewSpiResourceId ( java.lang.String remoteAddress , int returnSpi ) throws java.lang.Exception { org.mockito.Mockito.when ( mMockNetd.ipSecAllocateSpi ( org.mockito.Matchers.anyInt ( ) , org.mockito.Matchers.anyString ( ) , org.mockito.Matchers.anyString ( ) , org.mockito.Matchers.anyInt ( ) ) ) . thenReturn ( returnSpi ) ; android.net.IpSecSpiResponse spi = mIpSecService.allocateSecurityParameterIndex ( android.net.NetworkUtils.numericToInetAddress ( remoteAddress ) . getHostAddress ( ) , IpSecManager.INVALID_SECURITY_PARAMETER_INDEX , new android.os.Binder ( ) ) ; return spi.resourceId ; }
Source:
protected void readResponse ( java.io.InputStream stream ) throws java.io.IOException { android.util.Log.v ( com.android.bluetooth.pbapclient.BluetoothPbapRequestPullPhoneBook.TAG , "readResponse" ) ; mResponse = new com.android.bluetooth.pbapclient.BluetoothPbapVcardList ( mAccount , stream , mFormat ) ; if ( com.android.bluetooth.pbapclient.BluetoothPbapRequestPullPhoneBook.VDBG ) { android.util.Log.d ( com.android.bluetooth.pbapclient.BluetoothPbapRequestPullPhoneBook.TAG , ( ( "Read " + ( mResponse.getCount ( ) ) ) + " entries." ) ) ; } }

Target:
protected void readResponse ( java.io.InputStream stream ) throws java.io.IOException { if ( com.android.bluetooth.pbapclient.BluetoothPbapRequestPullPhoneBook.VDBG ) android.util.Log.v ( com.android.bluetooth.pbapclient.BluetoothPbapRequestPullPhoneBook.TAG , "readResponse" ) ; mResponse = new com.android.bluetooth.pbapclient.BluetoothPbapVcardList ( mAccount , stream , mFormat ) ; if ( com.android.bluetooth.pbapclient.BluetoothPbapRequestPullPhoneBook.VDBG ) { android.util.Log.d ( com.android.bluetooth.pbapclient.BluetoothPbapRequestPullPhoneBook.TAG , ( ( "Read " + ( mResponse.getCount ( ) ) ) + " entries." ) ) ; } }
Source:
public void testConstructor_CaliperBenchmark ( ) throws java.lang.Exception { vogar.target.TestRunner runner = testRunnerRule.createTestRunner ( "-i" , "runtime" ) ; runner.run ( ) ; java.lang.String out = ios.contents ( Stream.OUT ) ; out = out.replaceAll ( "\t[^\n]+\\n" , "" ) ; org.junit.Assert.assertEquals ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "" + "//00xx{\"outcome\":\"" ) + ( vogar.target.TestRunnerTest.CaliperBenchmark.class . getName ( ) ) ) + "\"," ) + "\"runner\":\"" ) + ( vogar.target.CaliperRunner.class . getName ( ) ) ) + "\"}\n" ) + "Experiment selection: \n" ) + " Benchmark Methods: [timeMethod]\n" ) + " Instruments: [runtime]\n" ) + " User parameters: {}\n" ) + " Virtual machines: [default]\n" ) + " Selection type: Full cartesian product\n" ) + "\n" ) + "This selection yields 1 experiments.\n" ) + ( com.google.caliper.runner.UserCodeException.class . getName ( ) ) ) + ": An exception was thrown from the benchmark code\n" ) + "Caused by: " ) + ( java.lang.IllegalStateException.class . getName ( ) ) ) + ": " ) + ( vogar.target.TestRunnerTest.CaliperBenchmark.CALIPER_BENCHMARK_MESSAGE ) ) + "\n" ) + "//00xx{\"result\":\"SUCCESS\"}\n" ) + "//00xx{\"completedNormally\":true}\n" ) , out ) ; }

Target:
public void testConstructor_CaliperBenchmark ( ) throws java.lang.Exception { vogar.target.TestRunner runner = testRunnerRule.createTestRunner ( "-i" , "runtime" ) ; runner.run ( ) ; java.lang.String out = ios.contents ( Stream.OUT ) ; out = out.replaceAll ( "\t[^\n]+\\n" , "" ) ; org.junit.Assert.assertEquals ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "" + "//00xx{\"outcome\":\"" ) + ( vogar.target.TestRunnerTest.CaliperBenchmark.class . getName ( ) ) ) + "\"}\n" ) + "Experiment selection: \n" ) + " Benchmark Methods: [timeMethod]\n" ) + " Instruments: [runtime]\n" ) + " User parameters: {}\n" ) + " Virtual machines: [default]\n" ) + " Selection type: Full cartesian product\n" ) + "\n" ) + "This selection yields 1 experiments.\n" ) + ( com.google.caliper.runner.UserCodeException.class . getName ( ) ) ) + ": An exception was thrown from the benchmark code\n" ) + "Caused by: " ) + ( java.lang.IllegalStateException.class . getName ( ) ) ) + ": " ) + ( vogar.target.TestRunnerTest.CaliperBenchmark.CALIPER_BENCHMARK_MESSAGE ) ) + "\n" ) + "//00xx{\"result\":\"SUCCESS\"}\n" ) + "//00xx{\"completedNormally\":true}\n" ) , out ) ; }
Source:
public void updateSubscriptionNickname ( int subscriptionId , java.lang.String nickname , android.app.PendingIntent callbackIntent ) { if ( ! ( isEnabled ( ) ) ) { android.telephony.euicc.EuiccManager.sendUnavailableError ( callbackIntent ) ; return ; } try { getIEuiccController ( ) . updateSubscriptionNickname ( subscriptionId , nickname , callbackIntent ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void updateSubscriptionNickname ( int subscriptionId , java.lang.String nickname , android.app.PendingIntent callbackIntent ) { if ( ! ( isEnabled ( ) ) ) { android.telephony.euicc.EuiccManager.sendUnavailableError ( callbackIntent ) ; return ; } try { android.telephony.euicc.EuiccManager.getIEuiccController ( ) . updateSubscriptionNickname ( subscriptionId , nickname , callbackIntent ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
public void addImsServiceFeatureCallback ( com.android.ims.internal.IImsServiceFeatureCallback callback ) { synchronized ( mLock ) { mImsStatusCallbacks.add ( callback ) ; if ( ( ( mImsFeatures ) == null ) || ( mImsFeatures.isEmpty ( ) ) ) { return ; } try { for ( android.telephony.ims.stub.ImsFeatureConfiguration.FeatureSlotPair i : mImsFeatures ) { callback.imsFeatureCreated ( i.slotId , i.featureType ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.w ( com.android.internal.telephony.ims.ImsServiceController.LOG_TAG , "addImsServiceFeatureCallback: exception notifying callback" ) ; } } }

Target:
public void addImsServiceFeatureCallback ( com.android.ims.internal.IImsServiceFeatureCallback callback ) { mImsStatusCallbacks.add ( callback ) ; synchronized ( mLock ) { if ( ( ( mImsFeatures ) == null ) || ( mImsFeatures.isEmpty ( ) ) ) { return ; } try { for ( android.telephony.ims.stub.ImsFeatureConfiguration.FeatureSlotPair i : mImsFeatures ) { callback.imsFeatureCreated ( i.slotId , i.featureType ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.w ( com.android.internal.telephony.ims.ImsServiceController.LOG_TAG , "addImsServiceFeatureCallback: exception notifying callback" ) ; } } }
Source:
private void validateInstall ( ) { com.android.ide.eclipse.monitor.SdkToolsLocator locator = new com.android.ide.eclipse.monitor.SdkToolsLocator ( mTextBox.getText ( ) ) ; com.android.ide.eclipse.monitor.SdkToolsLocator.SdkInstallStatus status = locator.isValidInstallation ( ) ; if ( status.isValid ( ) ) { mStatusLabel.setText ( "" ) ; getButton ( IDialogConstants.OK_ID ) . setEnabled ( true ) ; } else { mStatusLabel.setText ( status.getErrorMessage ( ) ) ; mStatusLabel.pack ( ) ; getButton ( IDialogConstants.OK_ID ) . setEnabled ( false ) ; } }

Target:
private void validateInstall ( ) { com.android.ide.eclipse.monitor.SdkToolsLocator locator = new com.android.ide.eclipse.monitor.SdkToolsLocator ( new java.io.File ( mTextBox.getText ( ) ) ) ; com.android.ide.eclipse.monitor.SdkToolsLocator.SdkInstallStatus status = locator.isValidInstallation ( ) ; if ( status.isValid ( ) ) { mStatusLabel.setText ( "" ) ; getButton ( IDialogConstants.OK_ID ) . setEnabled ( true ) ; } else { mStatusLabel.setText ( status.getErrorMessage ( ) ) ; mStatusLabel.pack ( ) ; getButton ( IDialogConstants.OK_ID ) . setEnabled ( false ) ; } }
Source:
public void testHandshake ( ) throws java.io.IOException , java.lang.InterruptedException { prepareEngines ( ) ; assertTrue ( "handshake failed" , doHandshake ( ) ) ; java.lang.System.out.println ( clientEngine.engine.getSession ( ) . getCipherSuite ( ) ) ; assertEquals ( "Handshake not finished" , javax.net.ssl.SSLEngineResult.HandshakeStatus.FINISHED , clientEngine.getStatus ( ) ) ; assertEquals ( "Handshake not finished" , javax.net.ssl.SSLEngineResult.HandshakeStatus.FINISHED , serverEngine.getStatus ( ) ) ; }

Target:
public void testHandshake ( ) throws java.lang.Exception { prepareEngines ( ) ; assertTrue ( "handshake failed" , doHandshake ( ) ) ; java.lang.System.out.println ( clientEngine.engine.getSession ( ) . getCipherSuite ( ) ) ; assertEquals ( "Handshake not finished" , javax.net.ssl.SSLEngineResult.HandshakeStatus.FINISHED , clientEngine.getStatus ( ) ) ; assertEquals ( "Handshake not finished" , javax.net.ssl.SSLEngineResult.HandshakeStatus.FINISHED , serverEngine.getStatus ( ) ) ; }
Source:
public java.lang.Integer contactsGetCount ( ) { java.lang.Integer result = 0 ; android.database.Cursor cursor = mContentResolver.query ( com.googlecode.android_scripting.facade.ContactsFacade.CONTACTS_URI , null , null , null , null ) ; if ( cursor != null ) { result = cursor.getCount ( ) ; cursor.close ( ) ; } return result ; }

Target:
public java.lang.Integer contactsGetCount ( ) { java.lang.Integer count = 0 ; android.database.Cursor cursor = mContentResolver.query ( com.googlecode.android_scripting.facade.ContactsFacade.CONTACTS_URI , null , null , null , null ) ; if ( cursor != null ) { count = cursor.getCount ( ) ; cursor.close ( ) ; } return count ; }
Source:
private static void updateProjectionMap ( android.database.sqlite.SQLiteDatabase db , java.lang.String tableName , java.util.Map < java.lang.String , java.lang.String > projectionMap ) { try ( android.database.Cursor cursor = db.rawQuery ( ( ( "SELECT * FROM " + tableName ) + " LIMIT 0" ) , null ) ) { for ( java.lang.String columnName : cursor.getColumnNames ( ) ) { if ( ! ( projectionMap.containsKey ( columnName ) ) ) { projectionMap.put ( columnName , ( ( tableName + '.' ) + columnName ) ) ; } } } }

Target:
private void updateProjectionMap ( android.database.sqlite.SQLiteDatabase db , java.lang.String tableName , java.util.Map < java.lang.String , java.lang.String > projectionMap ) { try ( android.database.Cursor cursor = db.rawQuery ( ( ( "SELECT * FROM " + tableName ) + " LIMIT 0" ) , null ) ) { for ( java.lang.String columnName : cursor.getColumnNames ( ) ) { if ( ! ( projectionMap.containsKey ( columnName ) ) ) { projectionMap.put ( columnName , ( ( tableName + '.' ) + columnName ) ) ; } } } }
Source:
public static org.bouncycastle.asn1.ASN1ObjectIdentifier getNamedCurveOid ( java.lang.String name ) { org.bouncycastle.asn1.ASN1ObjectIdentifier oid = org.bouncycastle.asn1.x9.X962NamedCurves.getOID ( name ) ; if ( oid == null ) { oid = org.bouncycastle.asn1.sec.SECNamedCurves.getOID ( name ) ; if ( oid == null ) { oid = org.bouncycastle.asn1.nist.NISTNamedCurves.getOID ( name ) ; } if ( oid == null ) { oid = org.bouncycastle.asn1.teletrust.TeleTrusTNamedCurves.getOID ( name ) ; } if ( oid == null ) { oid = org.bouncycastle.asn1.cryptopro.ECGOST3410NamedCurves.getOID ( name ) ; } } return oid ; }

Target:
public static org.bouncycastle.asn1.ASN1ObjectIdentifier getNamedCurveOid ( java.lang.String name ) { org.bouncycastle.asn1.ASN1ObjectIdentifier oid = org.bouncycastle.asn1.x9.X962NamedCurves.getOID ( name ) ; if ( oid == null ) { oid = org.bouncycastle.asn1.sec.SECNamedCurves.getOID ( name ) ; if ( oid == null ) { oid = org.bouncycastle.asn1.nist.NISTNamedCurves.getOID ( name ) ; } } return oid ; }
Source:
public android.bluetooth.le.BluetoothLeAdvertiser getBluetoothLeAdvertiser ( ) { if ( ! ( getLeAccess ( ) ) ) return null ; if ( ( ! ( isMultipleAdvertisementSupported ( ) ) ) && ( ! ( isPeripheralModeSupported ( ) ) ) ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "Bluetooth LE advertising not supported" ) ; return null ; } synchronized ( mLock ) { if ( ( android.bluetooth.BluetoothAdapter.sBluetoothLeAdvertiser ) == null ) { android.bluetooth.BluetoothAdapter.sBluetoothLeAdvertiser = new android.bluetooth.le.BluetoothLeAdvertiser ( mManagerService ) ; } } return android.bluetooth.BluetoothAdapter.sBluetoothLeAdvertiser ; }

Target:
public android.bluetooth.le.BluetoothLeAdvertiser getBluetoothLeAdvertiser ( ) { if ( ! ( getLeAccess ( ) ) ) return null ; synchronized ( mLock ) { if ( ( android.bluetooth.BluetoothAdapter.sBluetoothLeAdvertiser ) == null ) { android.bluetooth.BluetoothAdapter.sBluetoothLeAdvertiser = new android.bluetooth.le.BluetoothLeAdvertiser ( mManagerService ) ; } } return android.bluetooth.BluetoothAdapter.sBluetoothLeAdvertiser ; }
Source:
public static void setTimestamp ( int id , long value ) { try { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.w.lock ( ) ; com.intellij.openapi.vfs.newvfs.persistent.FSRecords.incModCount ( id ) ; com.intellij.openapi.vfs.newvfs.persistent.FSRecords.getRecords ( ) . putLong ( com.intellij.openapi.vfs.newvfs.persistent.FSRecords.getOffset ( id , com.intellij.openapi.vfs.newvfs.persistent.FSRecords.TIMESTAMP_OFFSET ) , value ) ; } catch ( java.lang.Throwable e ) { throw com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.handleError ( e ) ; } finally { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.w.unlock ( ) ; } }

Target:
public static void setTimestamp ( int id , long value ) { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.w.lock ( ) ; try { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.incModCount ( id ) ; com.intellij.openapi.vfs.newvfs.persistent.FSRecords.getRecords ( ) . putLong ( com.intellij.openapi.vfs.newvfs.persistent.FSRecords.getOffset ( id , com.intellij.openapi.vfs.newvfs.persistent.FSRecords.TIMESTAMP_OFFSET ) , value ) ; } catch ( java.lang.Throwable e ) { throw com.intellij.openapi.vfs.newvfs.persistent.FSRecords.DbConnection.handleError ( e ) ; } finally { com.intellij.openapi.vfs.newvfs.persistent.FSRecords.w.unlock ( ) ; } }