auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public com.android.builder.model.AndroidProject getSingleModel ( ) { org.gradle.tooling.ProjectConnection connection = getProjectConnection ( ) ; try { java.util.Map < java.lang.String , com.android.builder.model.AndroidProject > modelMap = com.android.build.gradle.integration.common.fixture.GradleTestProject.buildModel ( connection ) ; org.junit.Assert.assertEquals ( "Quering GradleTestProject.getModel() with multi-project settings" , 1 , modelMap.size ( ) ) ; return modelMap.get ( ":" ) ; } finally { connection.close ( ) ; } }

Target:
private com.android.builder.model.AndroidProject execute ( @ com.android.annotations.NonNull java.util.List < java.lang.String > arguments , boolean returnModel , boolean emulateStudio_1_0 , @ com.android.annotations.NonNull java.lang.String ... tasks ) { org.gradle.tooling.ProjectConnection connection = getProjectConnection ( ) ; try { executeBuild ( arguments , connection , tasks ) ; if ( returnModel ) { java.util.Map < java.lang.String , com.android.builder.model.AndroidProject > modelMap = com.android.build.gradle.integration.common.fixture.GradleTestProject.buildModel ( connection , emulateStudio_1_0 ) ; org.junit.Assert.assertEquals ( "Quering GradleTestProject.getModel() with multi-project settings" , 1 , modelMap.size ( ) ) ; return modelMap.get ( ":" ) ; } } finally { connection.close ( ) ; } return null ; }
Source:
public java.util.Iterator < com.android.sched.vfs.InputVFile > iterator ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType ) { if ( ! ( containsFileType ( fileType ) ) ) { return com.google.common.collect.Iterators.emptyIterator ( ) ; } java.util.List < com.android.sched.vfs.InputVFile > inputVFiles = new java.util.ArrayList < com.android.sched.vfs.InputVFile > ( ) ; fillFiles ( getSectionVFS ( fileType ) . getRootInputVDir ( ) , fileType , inputVFiles ) ; return inputVFiles.listIterator ( ) ; }

Target:
public java.util.Iterator < com.android.sched.vfs.InputVFile > iterator ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType ) { if ( ! ( containsFileType ( fileType ) ) ) { return com.google.common.collect.ImmutableSet.< com.android.sched.vfs.InputVFile > of ( ) . iterator ( ) ; } java.util.List < com.android.sched.vfs.InputVFile > inputVFiles = new java.util.ArrayList < com.android.sched.vfs.InputVFile > ( ) ; fillFiles ( getSectionVFS ( fileType ) . getRootInputVDir ( ) , fileType , inputVFiles ) ; return inputVFiles.listIterator ( ) ; }
Source:
public android.os.Messenger getMessenger ( ) { if ( ( mClientHandler ) != null ) { return new android.os.Messenger ( mClientHandler ) ; } else { loge ( "WifiScanningServiceImpl trying to get messenger w/o initialization" ) ; return null ; } }

Target:
public android.os.Messenger getMessenger ( ) { if ( ( mClientHandler ) != null ) { mLog.trace ( "getMessenger() uid=%" ) . c ( android.os.Binder.getCallingUid ( ) ) . flush ( ) ; return new android.os.Messenger ( mClientHandler ) ; } loge ( "WifiScanningServiceImpl trying to get messenger w/o initialization" ) ; return null ; }
Source:
public void run ( ) { try { delegate.get ( ) ; } catch ( java.lang.Error e ) { throw e ; } catch ( java.lang.InterruptedException e ) { java.lang.Thread.currentThread ( ) . interrupt ( ) ; throw new java.lang.AssertionError ( e ) ; } catch ( java.lang.Throwable e ) { } executionList.execute ( ) ; }

Target:
public void run ( ) { try { com.google.common.util.concurrent.Uninterruptibles.getUninterruptibly ( delegate ) ; } catch ( java.lang.Error e ) { throw e ; } catch ( java.lang.Throwable e ) { } executionList.execute ( ) ; }
Source:
public boolean isImsUseEnabled ( ) { boolean imsUseEnabled = ( ( com.android.ims.ImsManager.isVolteEnabledByPlatform ( mContext ) ) && ( com.android.ims.ImsManager.isEnhanced4gLteModeSettingEnabledByUser ( mContext ) ) ) || ( ( ( com.android.ims.ImsManager.isWfcEnabledByPlatform ( mContext ) ) && ( com.android.ims.ImsManager.isWfcEnabledByUser ( mContext ) ) ) && ( com.android.ims.ImsManager.isNonTtyOrTtyOnVolteEnabled ( mContext ) ) ) ; return imsUseEnabled ; }

Target:
public void setSystemProperty ( java.lang.String property , java.lang.String value ) { if ( getUnitTestMode ( ) ) { return ; } android.telephony.TelephonyManager.setTelephonyProperty ( mPhoneId , property , value ) ; }
Source:
public void test_init_limitting_to_1method_and_run_for_SimpleTest2_should_perform_test ( ) { java.lang.Class < ? > target = vogar.target.junit3.SimpleTest2.class ; java.lang.String actionName = "actionName" ; runner.init ( monitor , actionName , "testSimple2" , target , skipPastReference , testEnvironment , 0 , false ) ; runner.run ( "" , null , null ) ; org.mockito.Mockito.verify ( monitor ) . outcomeStarted ( runner , ( ( target.getName ( ) ) + "#testSimple2" ) , actionName ) ; org.mockito.Mockito.verify ( monitor ) . outcomeFinished ( Result.SUCCESS ) ; }

Target:
public void test_run_for_SimpleTest2_limiting_to_1method_with_both_run_should_perform_test ( ) { java.lang.Class < ? > target = vogar.target.junit3.SimpleTest2.class ; java.lang.String actionName = "actionName" ; vogar.target.Runner runner = new vogar.target.junit.JUnitRunner ( monitor , actionName , "testSimple3" , target , skipPastReference , testEnvironment , 0 ) ; runner.run ( "" , null , new java.lang.String [ ] { "testSimple2" } ) ; org.mockito.Mockito.verify ( monitor ) . outcomeStarted ( runner , ( ( target.getName ( ) ) + "#testSimple2" ) , actionName ) ; org.mockito.Mockito.verify ( monitor ) . outcomeFinished ( Result.SUCCESS ) ; }
Source:
public void processImsSsData ( android.os.AsyncResult data ) throws com.android.ims.ImsException { try { com.android.ims.ImsSsData ssData = ( ( com.android.ims.ImsSsData ) ( data.result ) ) ; parseSsData ( ssData ) ; } catch ( java.lang.ClassCastException | java.lang.NullPointerException ex ) { throw new com.android.ims.ImsException ( "Exception in parsing SS Data" , 0 ) ; } }

Target:
public void processImsSsData ( android.os.AsyncResult data ) throws com.android.ims.ImsException { try { android.telephony.ims.ImsSsData ssData = ( ( android.telephony.ims.ImsSsData ) ( data.result ) ) ; parseSsData ( ssData ) ; } catch ( java.lang.ClassCastException | java.lang.NullPointerException ex ) { throw new com.android.ims.ImsException ( "Exception in parsing SS Data" , 0 ) ; } }
Source:
public boolean contains ( java.lang.Object obj ) { if ( obj instanceof com.google.common.collect.Table.Cell ) { com.google.common.collect.Table.Cell < ? , ? , ? > cell = ( ( com.google.common.collect.Table.Cell < ? , ? , ? > ) ( obj ) ) ; return containsMapping ( cell.getRowKey ( ) , cell.getColumnKey ( ) , cell.getValue ( ) ) ; } return false ; }

Target:
public java.util.Collection < V > values ( ) { return super . values ( ) ; }
Source:
public java.lang.String getLayoutResourceName ( ) { java.lang.String name = mEditedFile.getName ( ) ; int dotIndex = name.indexOf ( '.' ) ; if ( dotIndex != ( - 1 ) ) { name = name.substring ( 0 , dotIndex ) ; } return name ; }

Target:
public java.lang.String getLayoutResourceName ( ) { return com.android.ide.eclipse.adt.internal.resources.ResourceHelper.getLayoutName ( mEditedFile ) ; }
Source:
public void loadPlugIns ( ) { if ( ( getState ( ) ) == ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) ) { _loadPlugIns ( mUniqueId , new java.lang.ref.WeakReference < android.drm.DrmManagerClient > ( this ) ) ; mCurrentState = android.drm.DrmManagerClient.STATE_INITIALIZED ; } }

Target:
public int loadPlugIns ( ) { int result = android.drm.DrmManagerClient.ERROR_UNKNOWN ; if ( ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) == ( getState ( ) ) ) { if ( null != ( mEventHandler ) ) { android.os.Message msg = mEventHandler.obtainMessage ( android.drm.DrmManagerClient.ACTION_INITIALIZE , new java.lang.ref.WeakReference < android.drm.DrmManagerClient > ( this ) ) ; result = ( mEventHandler.sendMessage ( msg ) ) ? android.drm.DrmManagerClient.ERROR_NONE : result ; } } else { result = android.drm.DrmManagerClient.ERROR_NONE ; } return result ; }
Source:
private void init ( java.lang.String pattern ) { this . icuDecimalFormat = new java.text.DecimalFormat ( pattern , symbols.getIcuDecimalFormatSymbols ( ) ) ; maximumIntegerDigits = icuDecimalFormat.getMaximumIntegerDigits ( ) ; minimumIntegerDigits = icuDecimalFormat.getMinimumIntegerDigits ( ) ; maximumFractionDigits = icuDecimalFormat.getMaximumFractionDigits ( ) ; minimumFractionDigits = icuDecimalFormat.getMinimumFractionDigits ( ) ; }

Target:
private void updateFieldsFromIcu ( ) { if ( ( icuDecimalFormat.getMaximumIntegerDigits ( ) ) == ( java.text.DecimalFormat.DOUBLE_INTEGER_DIGITS ) ) { icuDecimalFormat.setMaximumIntegerDigits ( 2000000000 ) ; } maximumIntegerDigits = icuDecimalFormat.getMaximumIntegerDigits ( ) ; minimumIntegerDigits = icuDecimalFormat.getMinimumIntegerDigits ( ) ; maximumFractionDigits = icuDecimalFormat.getMaximumFractionDigits ( ) ; minimumFractionDigits = icuDecimalFormat.getMinimumFractionDigits ( ) ; }
Source:
public void TestSpaceParsing ( ) { java.lang.String [ ] DATA = new java.lang.String [ ] { "yyyy MM dd" , "MMMM d yy" , " 04 05 06" , null , null , "04 05 06" , null , "MM d yy" , " 04 05 06" , "2006 04 05" , null , "04 05 06" , "2006 04 05" , "MMMM d yy" , " Apr 05 06" , "2006 04 05" , null , "Apr 05 06" , "2006 04 05" } ; expectParse ( DATA , new java.util.Locale ( "en" , "" , "" ) ) ; }

Target:
public void TestSpaceParsing ( ) { java.lang.String [ ] DATA = new java.lang.String [ ] { "yyyy MM dd HH:mm:ss" , "MMMM d yy" , " 04 05 06" , null , null , "04 05 06" , null , "MM d yy" , " 04 05 06" , "2006 04 05 00:00:00" , null , "04 05 06" , "2006 04 05 00:00:00" , "MMMM d yy" , " Apr 05 06" , "2006 04 05 00:00:00" , null , "Apr 05 06" , "2006 04 05 00:00:00" , "hh:mm:ss a" , "12:34:56 PM" , "1970 01 01 12:34:56" , null , "12:34:56PM" , "1970 01 01 12:34:56" , null , "12.34.56PM" , "1970 01 01 12:34:56" , null , "12 : 34 : 56 PM" , "1970 01 01 12:34:56" } ; expectParse ( DATA , new java.util.Locale ( "en" , "" , "" ) ) ; }
Source:
public void hideBootMessages ( ) { mHandler.post ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { if ( ( mBootMsgDialog ) != null ) { mBootMsgDialog.dismiss ( ) ; mBootMsgDialog = null ; } } } ) ; }

Target:
public void systemReady ( ) { mKeyguardDelegate = new com.android.internal.policy.impl.keyguard.KeyguardServiceDelegate ( mContext , null ) ; mKeyguardDelegate.onSystemReady ( ) ; readCameraLensCoverState ( ) ; updateUiMode ( ) ; synchronized ( mLock ) { updateOrientationListenerLp ( ) ; mSystemReady = true ; mHandler.post ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { updateSettings ( ) ; } } ) ; } }
Source:
public android.bluetooth.BluetoothSocket createRfcommSocket ( int channel ) throws java.io.IOException { if ( ( isBluetoothEnabled ( ) ) == false ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "Bluetooth is not enabled" ) ; throw new java.io.IOException ( ) ; } return new android.bluetooth.BluetoothSocket ( BluetoothSocket.TYPE_RFCOMM , ( - 1 ) , true , true , this , channel , null ) ; }

Target:
public android.bluetooth.BluetoothSocket createScoSocket ( ) throws java.io.IOException { if ( ! ( isBluetoothEnabled ( ) ) ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "Bluetooth is not enabled" ) ; throw new java.io.IOException ( ) ; } return new android.bluetooth.BluetoothSocket ( BluetoothSocket.TYPE_SCO , ( - 1 ) , true , true , this , ( - 1 ) , null ) ; }
Source:
private static com.google.common.collect.ImmutableSet < java.lang.Class < ? > > getRawTypes ( java.lang.reflect.Type [ ] types ) { com.google.common.collect.ImmutableSet.Builder < java.lang.Class < ? > > builder = com.google.common.collect.ImmutableSet.builder ( ) ; for ( java.lang.reflect.Type type : types ) { builder.addAll ( com.google.common.reflect.TypeToken.getRawTypes ( type ) ) ; } return builder.build ( ) ; }

Target:
private java.lang.reflect.Type [ ] resolveInPlace ( java.lang.reflect.Type [ ] types ) { for ( int i = 0 ; i < ( types.length ) ; i ++ ) { types [ i ] = resolveType ( types [ i ] ) . getType ( ) ; } return types ; }
Source:
public void testAdoptNode ( ) throws java.lang.Exception { org.w3c.dom.Document document = com.android.builder.resources.NoteUtilsTest.createDocument ( ) ; org.w3c.dom.Node rootNode = document.createElement ( "root" ) ; document.appendChild ( rootNode ) ; org.w3c.dom.Node node = document.createElement ( "some-node" ) ; org.w3c.dom.Node child1 = document.createElement ( "child1" ) ; org.w3c.dom.Node child2 = document.createElement ( "child2" ) ; node.appendChild ( child1 ) . appendChild ( child2 ) ; com.android.builder.resources.NodeUtils.addAttribute ( document , node , null , "foo" , "bar" ) ; com.android.builder.resources.NodeUtils.addAttribute ( document , node , "http://some.uri" , "foo2" , "bar2" ) ; com.android.builder.resources.NodeUtils.addAttribute ( document , child1 , "http://some.other.uri" , "blah" , "test" ) ; com.android.builder.resources.NodeUtils.addAttribute ( document , child2 , "http://another.uri" , "blah" , "test" ) ; org.w3c.dom.Document document2 = com.android.builder.resources.NoteUtilsTest.createDocument ( ) ; rootNode = document2.createElement ( "root" ) ; document2.appendChild ( rootNode ) ; assertTrue ( com.android.builder.resources.NodeUtils.compareElementNode ( node , com.android.builder.resources.NodeUtils.adoptNode ( document2 , node ) ) ) ; }

Target:
public void testAdoptNode ( ) throws java.lang.Exception { org.w3c.dom.Document document = com.android.builder.resources.NodeUtilsTest.createDocument ( ) ; org.w3c.dom.Node rootNode = document.createElement ( "root" ) ; document.appendChild ( rootNode ) ; org.w3c.dom.Node node = document.createElement ( "some-node" ) ; org.w3c.dom.Node child1 = document.createElement ( "child1" ) ; org.w3c.dom.Node child2 = document.createElement ( "child2" ) ; node.appendChild ( child1 ) . appendChild ( child2 ) ; com.android.builder.resources.NodeUtils.addAttribute ( document , node , null , "foo" , "bar" ) ; com.android.builder.resources.NodeUtils.addAttribute ( document , node , "http://some.uri" , "foo2" , "bar2" ) ; com.android.builder.resources.NodeUtils.addAttribute ( document , child1 , "http://some.other.uri" , "blah" , "test" ) ; com.android.builder.resources.NodeUtils.addAttribute ( document , child2 , "http://another.uri" , "blah" , "test" ) ; org.w3c.dom.Document document2 = com.android.builder.resources.NodeUtilsTest.createDocument ( ) ; rootNode = document2.createElement ( "root" ) ; document2.appendChild ( rootNode ) ; assertTrue ( com.android.builder.resources.NodeUtils.compareElementNode ( node , com.android.builder.resources.NodeUtils.adoptNode ( document2 , node ) ) ) ; }
Source:
public static int internalMethodParameterCount ( java.lang.String internalMethodDescriptor ) { proguard.classfile.util.InternalTypeEnumeration internalTypeEnumeration = new proguard.classfile.util.InternalTypeEnumeration ( internalMethodDescriptor ) ; int counter = 0 ; while ( internalTypeEnumeration.hasMoreTypes ( ) ) { internalTypeEnumeration.nextType ( ) ; counter ++ ; } return counter ; }

Target:
public static int internalMethodParameterCount ( java.lang.String internalMethodDescriptor ) { int counter = 0 ; int index = 1 ; while ( true ) { char c = internalMethodDescriptor.charAt ( ( index ++ ) ) ; switch ( c ) { case ClassConstants.TYPE_ARRAY : { break ; } case ClassConstants.TYPE_CLASS_START : { counter ++ ; index = ( internalMethodDescriptor.indexOf ( ClassConstants.TYPE_CLASS_END , index ) ) + 1 ; break ; } default : { counter ++ ; break ; } case ClassConstants.METHOD_ARGUMENTS_CLOSE : { return counter ; } } } }
Source:
public lombok.ast.AstVisitor createJavaVisitor ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context ) { if ( ! ( context.getProject ( ) . getReportIssues ( ) ) ) { return null ; } return new com.android.tools.lint.checks.OverdrawDetector.OverdrawVisitor ( ) ; }

Target:
public void checkClass ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull com.intellij.psi.PsiClass declaration ) { if ( ! ( context.getProject ( ) . getReportIssues ( ) ) ) { return ; } java.lang.String name = declaration.getQualifiedName ( ) ; if ( name != null ) { declaration.accept ( new com.android.tools.lint.checks.OverdrawDetector.OverdrawVisitor ( name , declaration ) ) ; } }
Source:
private static void setFieldPosition ( libcore.icu.NativeDecimalFormat.FieldPositionIterator fpi , java.text.FieldPosition fp ) { if ( ( fpi != null ) && ( fp != null ) ) { int field = libcore.icu.NativeDecimalFormat.FieldPositionIterator.getNativeFieldPositionId ( fp ) ; if ( field != ( - 1 ) ) { while ( fpi.next ( ) ) { if ( ( fpi.fieldId ( ) ) == field ) { fp.setBeginIndex ( fpi.start ( ) ) ; fp.setEndIndex ( fpi.limit ( ) ) ; break ; } } } } }

Target:
private static void updateFieldPosition ( java.text.FieldPosition fp , libcore.icu.NativeDecimalFormat.FieldPositionIterator fpi ) { int field = libcore.icu.NativeDecimalFormat.translateFieldId ( fp ) ; if ( field != ( - 1 ) ) { while ( fpi.next ( ) ) { if ( ( fpi.fieldId ( ) ) == field ) { fp.setBeginIndex ( fpi.start ( ) ) ; fp.setEndIndex ( fpi.limit ( ) ) ; return ; } } } }
Source:
public void setLoadingStatus ( java.lang.String requestedLocale ) { java.lang.String locale = getLocaleID ( ) ; if ( locale.equals ( "root" ) ) { setLoadingStatus ( android.icu.impl.ICUResourceBundle.FROM_ROOT ) ; } else if ( locale.equals ( requestedLocale ) ) { setLoadingStatus ( android.icu.impl.ICUResourceBundle.FROM_LOCALE ) ; } else { setLoadingStatus ( android.icu.impl.ICUResourceBundle.FROM_FALLBACK ) ; } }

Target:
protected android.icu.impl.ICUResourceBundle createInstance ( java.lang.String unusedKey , android.icu.impl.ICUResourceBundle.Loader loader ) { return loader.load ( ) ; }
Source:
synchronized void nAllocationData2D ( long id , int xoff , int yoff , int mip , int face , int w , int h , long [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData2D ( mContext , id , xoff , yoff , mip , face , w , h , d , sizeBytes ) ; }

Target:
synchronized void nAllocationRead ( long id , java.lang.Object d , android.support.v8.renderscript.Element.DataType dt , int mSize , boolean usePadding ) { validate ( ) ; rsnAllocationRead ( mContext , id , d , dt.mID , mSize , usePadding ) ; }
Source:
private static java.lang.String decodeUtf8 ( byte [ ] data , int offset , int numFields ) throws com.android.internal.telephony.cdma.sms.BearerData.CodingException { if ( ( numFields < 0 ) || ( ( numFields + offset ) > ( data.length ) ) ) { throw new com.android.internal.telephony.cdma.sms.BearerData.CodingException ( "UTF-8 decode failed: offset or length out of range" ) ; } try { return new java.lang.String ( data , offset , numFields , "UTF-8" ) ; } catch ( java.io.UnsupportedEncodingException ex ) { throw new com.android.internal.telephony.cdma.sms.BearerData.CodingException ( ( "UTF-8 decode failed: " + ex ) ) ; } }

Target:
private static byte [ ] encodeShiftJis ( java.lang.String msg ) throws com.android.internal.telephony.cdma.sms.BearerData.CodingException { try { return msg.getBytes ( "Shift_JIS" ) ; } catch ( java.io.UnsupportedEncodingException ex ) { throw new com.android.internal.telephony.cdma.sms.BearerData.CodingException ( ( "Shift-JIS encode failed: " + ex ) ) ; } }
Source:
public void validatePolicyWithInvalidSsid ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.Policy policy = android.net.wifi.hotspot2.pps.PolicyTest.createPolicy ( ) ; byte [ ] rawSsidBytes = new byte [ ( android.net.wifi.hotspot2.pps.PolicyTest.MAX_SSID_BYTES ) + 1 ] ; java.util.Arrays.fill ( rawSsidBytes , ( ( byte ) ( 'a' ) ) ) ; policy.excludedSsidList = new java.lang.String [ ] { new java.lang.String ( rawSsidBytes , java.nio.charset.StandardCharsets.UTF_8 ) } ; org.junit.Assert.assertFalse ( policy.validate ( ) ) ; }

Target:
public void validatePolicyWithInvalidSsid ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.Policy policy = android.net.wifi.hotspot2.pps.PolicyTest.createPolicy ( ) ; byte [ ] rawSsidBytes = new byte [ ( android.net.wifi.hotspot2.pps.PolicyTest.MAX_SSID_BYTES ) + 1 ] ; java.util.Arrays.fill ( rawSsidBytes , ( ( byte ) ( 'a' ) ) ) ; java.lang.String [ ] excludedSsidList = new java.lang.String [ ] { new java.lang.String ( rawSsidBytes , java.nio.charset.StandardCharsets.UTF_8 ) } ; policy.setExcludedSsidList ( excludedSsidList ) ; org.junit.Assert.assertFalse ( policy.validate ( ) ) ; }
Source:
private void recordInheritedMethods ( ) { com.google.devtools.build.android.desugar.DefaultMethodClassFixer.InstanceMethodRecorder recorder = new com.google.devtools.build.android.desugar.DefaultMethodClassFixer.InstanceMethodRecorder ( ) ; java.lang.String internalName = superName ; while ( internalName != null ) { org.objectweb.asm.ClassReader bytecode = bootclasspath.readIfKnown ( internalName ) ; if ( bytecode == null ) { bytecode = com.google.common.base.Preconditions.checkNotNull ( classpath.readIfKnown ( internalName ) , "Superclass not found: %s" , internalName ) ; } bytecode.accept ( recorder , ( ( org.objectweb.asm.ClassReader.SKIP_CODE ) | ( org.objectweb.asm.ClassReader.SKIP_DEBUG ) ) ) ; internalName = bytecode.getSuperName ( ) ; } }

Target:
private void recordInheritedMethods ( ) { com.google.devtools.build.android.desugar.DefaultMethodClassFixer.InstanceMethodRecorder recorder = new com.google.devtools.build.android.desugar.DefaultMethodClassFixer.InstanceMethodRecorder ( mayNeedInterfaceStubsForEmulatedSuperclass ( ) ) ; java.lang.String internalName = superName ; while ( internalName != null ) { org.objectweb.asm.ClassReader bytecode = bootclasspath.readIfKnown ( internalName ) ; if ( bytecode == null ) { bytecode = com.google.common.base.Preconditions.checkNotNull ( classpath.readIfKnown ( internalName ) , "Superclass not found: %s" , internalName ) ; } bytecode.accept ( recorder , ( ( org.objectweb.asm.ClassReader.SKIP_CODE ) | ( org.objectweb.asm.ClassReader.SKIP_DEBUG ) ) ) ; internalName = bytecode.getSuperName ( ) ; } }
Source:
public void test_ConstructorZ ( ) { java.util.Timer t = null ; try { t = new java.util.Timer ( true ) ; tests.api.java.util.TimerTest.TimerTestTask testTask = new tests.api.java.util.TimerTest.TimerTestTask ( ) ; t.schedule ( testTask , 200 ) ; synchronized ( sync ) { try { sync.wait ( 1000 ) ; } catch ( java.lang.InterruptedException e ) { } } assertEquals ( "TimerTask.run() method not called after 200ms" , 1 , testTask.wasRun ( ) ) ; t.cancel ( ) ; } finally { if ( t != null ) t.cancel ( ) ; } }

Target:
public void test_ConstructorZ ( ) { java.util.Timer t = null ; try { t = new java.util.Timer ( true ) ; tests.api.java.util.TimerTest.TimerTestTask testTask = new tests.api.java.util.TimerTest.TimerTestTask ( ) ; t.schedule ( testTask , 200 ) ; awaitRun ( testTask ) ; t.cancel ( ) ; } finally { if ( t != null ) t.cancel ( ) ; } }
Source:
private void disableArcIfExist ( ) { assertRunOnServiceThread ( ) ; android.hardware.hdmi.HdmiDeviceInfo avr = getAvrDeviceInfo ( ) ; if ( avr == null ) { return ; } removeAction ( com.android.server.hdmi.RequestArcInitiationAction.class ) ; if ( ( ! ( hasAction ( com.android.server.hdmi.RequestArcTerminationAction.class ) ) ) && ( isArcEstablished ( ) ) ) { addAndStartAction ( new com.android.server.hdmi.RequestArcTerminationAction ( this , avr.getLogicalAddress ( ) ) ) ; } }

Target:
private void disableArcIfExist ( ) { assertRunOnServiceThread ( ) ; android.hardware.hdmi.HdmiDeviceInfo avr = getAvrDeviceInfo ( ) ; if ( avr == null ) { return ; } removeAction ( com.android.server.hdmi.RequestShortAudioDescriptorAction.class ) ; com.android.server.hdmi.RequestShortAudioDescriptorAction.removeAudioFormat ( ) ; removeAction ( com.android.server.hdmi.RequestArcInitiationAction.class ) ; if ( ( ! ( hasAction ( com.android.server.hdmi.RequestArcTerminationAction.class ) ) ) && ( isArcEstablished ( ) ) ) { addAndStartAction ( new com.android.server.hdmi.RequestArcTerminationAction ( this , avr.getLogicalAddress ( ) ) ) ; } }
Source:
protected void deleteFile ( java.io.File dir ) { if ( dir.isDirectory ( ) ) { for ( java.io.File f : dir.listFiles ( ) ) { deleteFile ( f ) ; } } else if ( dir.isFile ( ) ) { assertTrue ( dir.getPath ( ) , dir.delete ( ) ) ; } }

Target:
protected java.lang.String checkLint ( java.util.List < java.io.File > files ) throws java.lang.Exception { mOutput = new java.lang.StringBuilder ( ) ; com.android.tools.lint.checks.AbstractCheckTest.TestLintClient lintClient = createClient ( ) ; java.lang.String result = lintClient.analyze ( files ) ; if ( ( java.io.File.separatorChar ) != '/' ) { result = result.replace ( java.io.File.separatorChar , '/' ) ; } for ( java.io.File f : files ) { deleteFile ( f ) ; } return result ; }
Source:
private void responseSetupDataCall ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , android.hardware.radio.V1_0.SetupDataCallResult setupDataCallResult ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { com.android.internal.telephony.dataconnection.DataCallResponse ret = com.android.internal.telephony.RIL.convertDataCallResult ( setupDataCallResult ) ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }

Target:
private void responseString ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , java.lang.String str ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , str ) ; } mRil.processResponseDone ( rr , responseInfo , str ) ; } }
Source:
public android.bluetooth.BluetoothSocket createInsecureRfcommSocketToServiceRecord ( java.util.UUID uuid ) throws java.io.IOException { if ( ( isBluetoothEnabled ( ) ) == false ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "Bluetooth is not enabled" ) ; throw new java.io.IOException ( ) ; } return new android.bluetooth.BluetoothSocket ( BluetoothSocket.TYPE_RFCOMM , ( - 1 ) , false , false , this , ( - 1 ) , new android.os.ParcelUuid ( uuid ) ) ; }

Target:
public android.bluetooth.BluetoothSocket createRfcommSocket ( int channel ) throws java.io.IOException { if ( ! ( isBluetoothEnabled ( ) ) ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "Bluetooth is not enabled" ) ; throw new java.io.IOException ( ) ; } return new android.bluetooth.BluetoothSocket ( BluetoothSocket.TYPE_RFCOMM , ( - 1 ) , true , true , this , channel , null ) ; }
Source:
public static com.ibm.icu.dev.test.TestUtil.JavaVendor getJavaVendor ( ) { com.ibm.icu.dev.test.TestUtil.JavaVendor vendor = com.ibm.icu.dev.test.TestUtil.JavaVendor.Unknown ; java.lang.String javaVendorProp = java.lang.System.getProperty ( "java.vendor" , "" ) . toLowerCase ( java.util.Locale.US ) . trim ( ) ; if ( javaVendorProp.startsWith ( "ibm" ) ) { vendor = com.ibm.icu.dev.test.TestUtil.JavaVendor.IBM ; } else if ( ( javaVendorProp.startsWith ( "sun" ) ) || ( javaVendorProp.startsWith ( "oracle" ) ) ) { vendor = com.ibm.icu.dev.test.TestUtil.JavaVendor.Oracle ; } return vendor ; }

Target:
public static com.ibm.icu.dev.test.TestUtil.JavaVendor getJavaVendor ( ) { com.ibm.icu.dev.test.TestUtil.JavaVendor vendor = com.ibm.icu.dev.test.TestUtil.JavaVendor.Unknown ; java.lang.String javaVendorProp = java.lang.System.getProperty ( "java.vendor" , "" ) . toLowerCase ( java.util.Locale.US ) . trim ( ) ; if ( javaVendorProp.startsWith ( "ibm" ) ) { vendor = com.ibm.icu.dev.test.TestUtil.JavaVendor.IBM ; } else if ( ( javaVendorProp.startsWith ( "sun" ) ) || ( javaVendorProp.startsWith ( "oracle" ) ) ) { vendor = com.ibm.icu.dev.test.TestUtil.JavaVendor.Oracle ; } else if ( javaVendorProp.contains ( "android" ) ) { vendor = com.ibm.icu.dev.test.TestUtil.JavaVendor.Android ; } return vendor ; }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { if ( Intent.ACTION_USER_SWITCHED.equals ( intent.getAction ( ) ) ) { mSettingsObserver.onChange ( false ) ; synchronized ( mWindowManagerFuncs.getWindowManagerLock ( ) ) { mLastSystemUiFlags = 0 ; updateSystemUiVisibilityLw ( ) ; } } }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { if ( Intent.ACTION_DOCK_EVENT.equals ( intent.getAction ( ) ) ) { mDockMode = intent.getIntExtra ( Intent.EXTRA_DOCK_STATE , Intent.EXTRA_DOCK_STATE_UNDOCKED ) ; } else { try { android.app.IUiModeManager uiModeService = IUiModeManager.Stub.asInterface ( android.os.ServiceManager.getService ( Context.UI_MODE_SERVICE ) ) ; mUiMode = uiModeService.getCurrentModeType ( ) ; } catch ( android.os.RemoteException e ) { } } updateRotation ( true ) ; synchronized ( mLock ) { updateOrientationListenerLp ( ) ; } }
Source:
public android.content.pm.ResolveInfo resolveIntent ( android.content.Intent intent , java.lang.String resolvedType , int flags , int userId ) { if ( ! ( com.android.server.pm.PackageManagerService.sUserManager.exists ( userId ) ) ) return null ; java.util.List < android.content.pm.ResolveInfo > query = queryIntentActivities ( intent , resolvedType , flags , userId ) ; return chooseBestActivity ( intent , resolvedType , flags , query , userId ) ; }

Target:
public android.content.pm.ResolveInfo resolveIntent ( android.content.Intent intent , java.lang.String resolvedType , int flags , int userId ) { if ( ! ( com.android.server.pm.PackageManagerService.sUserManager.exists ( userId ) ) ) return null ; enforceCrossUserPermission ( android.os.Binder.getCallingUid ( ) , userId , false , "resolve intent" ) ; java.util.List < android.content.pm.ResolveInfo > query = queryIntentActivities ( intent , resolvedType , flags , userId ) ; return chooseBestActivity ( intent , resolvedType , flags , query , userId ) ; }
Source:
private void onCreateImsFeatureInternal ( int slotId , int featureType , com.android.ims.internal.IImsFeatureStatusCallback c ) { android.util.SparseArray < android.telephony.ims.feature.ImsFeature > featureMap = mFeatures.get ( slotId ) ; if ( featureMap == null ) { featureMap = new android.util.SparseArray ( ) ; mFeatures.put ( slotId , featureMap ) ; } android.telephony.ims.feature.ImsFeature f = makeImsFeature ( slotId , featureType ) ; if ( f != null ) { f.setContext ( this ) ; f.setSlotId ( slotId ) ; f.setImsFeatureStatusCallback ( c ) ; featureMap.put ( featureType , f ) ; } }

Target:
private void onCreateImsFeatureInternal ( int slotId , int featureType , com.android.ims.internal.IImsFeatureStatusCallback c ) { android.util.SparseArray < android.telephony.ims.feature.ImsFeature > featureMap = mFeatures.get ( slotId ) ; if ( featureMap == null ) { featureMap = new android.util.SparseArray ( ) ; mFeatures.put ( slotId , featureMap ) ; } android.telephony.ims.feature.ImsFeature f = makeImsFeature ( slotId , featureType ) ; if ( f != null ) { f.setContext ( this ) ; f.setSlotId ( slotId ) ; f.addImsFeatureStatusCallback ( c ) ; featureMap.put ( featureType , f ) ; } }
Source:
private long getPlayPosition ( ) { long songPosition = - 1L ; if ( ( mCurrentPosMs ) != ( android.media.RemoteControlClient.PLAYBACK_POSITION_ALWAYS_UNKNOWN ) ) { if ( ( mCurrentPlayState ) == ( android.media.RemoteControlClient.PLAYSTATE_PLAYING ) ) { songPosition = ( ( android.os.SystemClock.elapsedRealtime ( ) ) - ( mPlayStartTimeMs ) ) + ( mCurrentPosMs ) ; } else { songPosition = mCurrentPosMs ; } } if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "position=" + songPosition ) ) ; return songPosition ; }

Target:
private long getPlayPosition ( ) { long songPosition = - 1L ; if ( ( mCurrentPosMs ) != ( android.media.session.PlaybackState.PLAYBACK_POSITION_UNKNOWN ) ) { if ( ( mCurrentPlayState.getState ( ) ) == ( android.media.session.PlaybackState.STATE_PLAYING ) ) { songPosition = ( ( android.os.SystemClock.elapsedRealtime ( ) ) - ( mPlayStartTimeMs ) ) + ( mCurrentPosMs ) ; } else { songPosition = mCurrentPosMs ; } } if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "position=" + songPosition ) ) ; return songPosition ; }
Source:
public static void makeDirectoryWorldAccessible ( java.io.File directory ) throws java.io.IOException { if ( ! ( directory.isDirectory ( ) ) ) { throw new java.io.IOException ( ( directory + " must be a directory" ) ) ; } libcore.tzdata.update2.FileUtils.makeWorldReadable ( directory ) ; if ( ! ( directory.setExecutable ( true , false ) ) ) { throw new java.io.IOException ( ( ( "Unable to make " + directory ) + " world-executable" ) ) ; } }

Target:
public static void makeDirectoryWorldAccessible ( java.io.File directory ) throws java.io.IOException { if ( ! ( directory.isDirectory ( ) ) ) { throw new java.io.IOException ( ( directory + " must be a directory" ) ) ; } libcore.tzdata.shared2.FileUtils.makeWorldReadable ( directory ) ; if ( ! ( directory.setExecutable ( true , false ) ) ) { throw new java.io.IOException ( ( ( "Unable to make " + directory ) + " world-executable" ) ) ; } }
Source:
static void loadAllContacts ( android.content.Context context , android.os.Handler handler ) { if ( com.android.bluetooth.pbap.BluetoothPbapUtils.V ) { android.util.Log.v ( com.android.bluetooth.pbap.BluetoothPbapUtils.TAG , "Loading Contacts ..." ) ; } java.lang.String [ ] projection = new java.lang.String [ ] { android.provider.ContactsContract.Data.CONTACT_ID , android.provider.ContactsContract.Data.DATA1 , android.provider.ContactsContract.Data.MIMETYPE } ; com.android.bluetooth.pbap.BluetoothPbapUtils.sTotalContacts = com.android.bluetooth.pbap.BluetoothPbapUtils.fetchAndSetContacts ( context , handler , projection , null , null , true ) ; if ( ( com.android.bluetooth.pbap.BluetoothPbapUtils.sTotalContacts ) < 0 ) { com.android.bluetooth.pbap.BluetoothPbapUtils.sTotalContacts = 0 ; return ; } com.android.bluetooth.pbap.BluetoothPbapUtils.sContactsLoaded = true ; }

Target:
static void loadAllContacts ( android.content.Context context , android.os.Handler handler ) { if ( com.android.bluetooth.pbap.BluetoothPbapUtils.V ) { android.util.Log.v ( com.android.bluetooth.pbap.BluetoothPbapUtils.TAG , "Loading Contacts ..." ) ; } java.lang.String [ ] projection = new java.lang.String [ ] { android.provider.ContactsContract.Data.CONTACT_ID , android.provider.ContactsContract.Data.DATA1 , android.provider.ContactsContract.Data.MIMETYPE } ; com.android.bluetooth.pbap.BluetoothPbapUtils.sTotalContacts = com.android.bluetooth.pbap.BluetoothPbapUtils.fetchAndSetContacts ( context , handler , projection , null , null , true ) ; if ( ( com.android.bluetooth.pbap.BluetoothPbapUtils.sTotalContacts ) < 0 ) { com.android.bluetooth.pbap.BluetoothPbapUtils.sTotalContacts = 0 ; return ; } handler.sendMessage ( handler.obtainMessage ( BluetoothPbapService.CONTACTS_LOADED ) ) ; }
Source:
public void onCreateActions ( java.util.List < android.support.v17.leanback.widget.GuidedAction > actions , android.os.Bundle savedInstanceState ) { android.app.Activity activity = getActivity ( ) ; actions.add ( new android.support.v17.leanback.widget.GuidedAction.Builder ( activity ) . id ( com.android.tv.dvr.ui.DvrMissingStorageErrorFragment.ACTION_CANCEL ) . title ( getResources ( ) . getString ( R.string.dvr_action_error_cancel ) ) . build ( ) ) ; actions.add ( new android.support.v17.leanback.widget.GuidedAction.Builder ( activity ) . id ( com.android.tv.dvr.ui.DvrMissingStorageErrorFragment.ACTION_FORGET_STORAGE ) . title ( getResources ( ) . getString ( R.string.dvr_action_error_forget_storage ) ) . build ( ) ) ; }

Target:
public void onGuidedActionClicked ( android.support.v17.leanback.widget.GuidedAction action ) { android.app.Activity activity = getActivity ( ) ; if ( activity instanceof com.android.tv.dvr.ui.browse.DvrDetailsActivity ) { activity.finish ( ) ; } else { dismissDialog ( ) ; } if ( ( action.getId ( ) ) != ( com.android.tv.dvr.ui.DvrMissingStorageErrorFragment.ACTION_OPEN_STORAGE_SETTINGS ) ) { return ; } final android.content.Intent intent = new android.content.Intent ( android.provider.Settings.ACTION_INTERNAL_STORAGE_SETTINGS ) ; try { getContext ( ) . startActivity ( intent ) ; } catch ( android.content.ActivityNotFoundException e ) { android.util.Log.e ( com.android.tv.dvr.ui.DvrMissingStorageErrorFragment.TAG , "Can't start internal storage settings activity" , e ) ; } }
Source:
public static void assertArrayEquals ( java.lang.String message , char [ ] expecteds , char [ ] actuals ) { java.lang.String expectedString = java.util.Arrays.toString ( expecteds ) ; java.lang.String actualString = java.util.Arrays.toString ( actuals ) ; if ( ! ( expectedString.equals ( actualString ) ) ) { fail ( message , ( ( ( "expected " + expectedString ) + " but was " ) + actualString ) ) ; } }

Target:
public static void assertArrayEquals ( java.lang.String message , char [ ] expecteds , char [ ] actuals ) { java.lang.String expectedString = java.util.Arrays.toString ( expecteds ) ; java.lang.String actualString = java.util.Arrays.toString ( actuals ) ; if ( ! ( expectedString.equals ( actualString ) ) ) { org.junit.Assert.fail ( message , ( ( ( "expected " + expectedString ) + " but was " ) + actualString ) ) ; } }
Source:
public void testListIterator2_IndexOutOfBoundsException ( ) { try { java.util.concurrent.CopyOnWriteArrayList c = new java.util.concurrent.CopyOnWriteArrayList ( ) ; c.add ( "adasd" ) ; c.add ( "asdasdas" ) ; c.listIterator ( 100 ) ; shouldThrow ( ) ; } catch ( java.lang.IndexOutOfBoundsException success ) { } }

Target:
public void testAdd2_IndexOutOfBoundsException ( ) { java.util.concurrent.CopyOnWriteArrayList c = jsr166.CopyOnWriteArrayListTest.populatedArray ( 5 ) ; java.util.List [ ] lists = new java.util.List [ ] { c , c.subList ( 1 , ( ( c.size ( ) ) - 1 ) ) } ; for ( java.util.List list : lists ) { try { list.add ( ( ( list.size ( ) ) + 1 ) , "qwerty" ) ; shouldThrow ( ) ; } catch ( java.lang.IndexOutOfBoundsException success ) { } } }
Source:
public void testHasExtraWithKey ( ) { android.content.Intent intent = new android.content.Intent ( ) . putExtra ( "key1" , "value1" ) . putExtra ( "key2" , 100.0 ) ; assertTrue ( android.support.test.espresso.intent.matcher.IntentMatchers.hasExtraWithKey ( "key1" ) . matches ( intent ) ) ; assertTrue ( android.support.test.espresso.intent.matcher.IntentMatchers.hasExtraWithKey ( "key2" ) . matches ( intent ) ) ; }

Target:
public void hasExtraWithKeyTesting ( ) { android.content.Intent intent = new android.content.Intent ( ) . putExtra ( "key1" , "value1" ) . putExtra ( "key2" , 100.0 ) ; org.junit.Assert.assertTrue ( android.support.test.espresso.intent.matcher.IntentMatchers.hasExtraWithKey ( "key1" ) . matches ( intent ) ) ; org.junit.Assert.assertTrue ( android.support.test.espresso.intent.matcher.IntentMatchers.hasExtraWithKey ( "key2" ) . matches ( intent ) ) ; }
Source:
public static java.lang.Class < ? > forName ( java.lang.String className , boolean initializeBoolean , java.lang.ClassLoader classLoader ) throws java.lang.ClassNotFoundException { if ( classLoader == null ) { classLoader = java.lang.ClassLoader.getSystemClassLoader ( ) ; } java.lang.Class < ? > result ; try { result = java.lang.Class.classForName ( className , initializeBoolean , classLoader ) ; } catch ( java.lang.ClassNotFoundException e ) { java.lang.Throwable cause = e.getCause ( ) ; if ( cause instanceof java.lang.ExceptionInInitializerError ) { throw ( ( java.lang.ExceptionInInitializerError ) ( cause ) ) ; } throw e ; } return result ; }

Target:
public static java.lang.Class < ? > forName ( java.lang.String className , boolean shouldInitialize , java.lang.ClassLoader classLoader ) throws java.lang.ClassNotFoundException { if ( classLoader == null ) { classLoader = java.lang.ClassLoader.getSystemClassLoader ( ) ; } java.lang.Class < ? > result ; try { result = java.lang.Class.classForName ( className , shouldInitialize , classLoader ) ; } catch ( java.lang.ClassNotFoundException e ) { java.lang.Throwable cause = e.getCause ( ) ; if ( cause instanceof java.lang.ExceptionInInitializerError ) { throw ( ( java.lang.ExceptionInInitializerError ) ( cause ) ) ; } throw e ; } return result ; }
Source:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( R.layout.activity_analog_complication_config ) ; mAdapter = new com.example.android.wearable.watchface.config.AnalogComplicationConfigRecyclerViewAdapter ( getApplicationContext ( ) , com.example.android.wearable.watchface.model.AnalogComplicationConfigData.getWatchFaceServiceClass ( ) , com.example.android.wearable.watchface.model.AnalogComplicationConfigData.getDataToPopulateAdapter ( this ) ) ; mWearableRecyclerView = ( ( android.support.wear.widget.WearableRecyclerView ) ( findViewById ( R.id.wearable_recycler_view ) ) ) ; mWearableRecyclerView.setEdgeItemsCenteringEnabled ( true ) ; mWearableRecyclerView.setLayoutManager ( new android.support.v7.widget.LinearLayoutManager ( this ) ) ; mWearableRecyclerView.setHasFixedSize ( true ) ; mWearableRecyclerView.setAdapter ( mAdapter ) ; }

Target:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( R.layout.activity_analog_complication_config ) ; mAdapter = new com.example.android.wearable.watchface.config.AnalogComplicationConfigRecyclerViewAdapter ( getApplicationContext ( ) , com.example.android.wearable.watchface.model.AnalogComplicationConfigData.getWatchFaceServiceClass ( ) , com.example.android.wearable.watchface.model.AnalogComplicationConfigData.getDataToPopulateAdapter ( this ) ) ; mWearableRecyclerView = ( ( android.support.wearable.view.WearableRecyclerView ) ( findViewById ( R.id.wearable_recycler_view ) ) ) ; mWearableRecyclerView.setCenterEdgeItems ( true ) ; mWearableRecyclerView.setHasFixedSize ( true ) ; mWearableRecyclerView.setAdapter ( mAdapter ) ; }
Source:
void enableVerboseLogging ( int verbose ) { if ( verbose > 0 ) { com.android.server.wifi.WifiNative.DBG = true ; } else { com.android.server.wifi.WifiNative.DBG = false ; } if ( ( mWificondControl ) != null ) { mWificondControl.enableVerboseLogging ( ( verbose > 0 ? true : false ) ) ; } if ( ( mSupplicantStaIfaceHal ) != null ) { mSupplicantStaIfaceHal.enableVerboseLogging ( ( verbose > 0 ) ) ; } }

Target:
void enableVerboseLogging ( int verbose ) { if ( verbose > 0 ) { com.android.server.wifi.WifiNative.DBG = true ; } else { com.android.server.wifi.WifiNative.DBG = false ; } if ( ( mWificondControl ) != null ) { mWificondControl.enableVerboseLogging ( ( verbose > 0 ? true : false ) ) ; } if ( ( mSupplicantStaIfaceHal ) != null ) { mSupplicantStaIfaceHal.enableVerboseLogging ( ( verbose > 0 ) ) ; } if ( ( mWifiVendorHal ) != null ) { mWifiVendorHal.enableVerboseLogging ( ( verbose > 0 ) ) ; } }
Source:
public void onActivityCreated ( android.os.Bundle savedInstanceState ) { super . onActivityCreated ( savedInstanceState ) ; getEmptyTextView ( ) . setText ( R.string.apn_settings_not_available ) ; mUnavailable = isUiRestricted ( ) ; setHasOptionsMenu ( ( ! ( mUnavailable ) ) ) ; if ( mUnavailable ) { setPreferenceScreen ( new android.support.v7.preference.PreferenceScreen ( getPrefContext ( ) , null ) ) ; getPreferenceScreen ( ) . removeAll ( ) ; return ; } addPreferencesFromResource ( R.xml.apn_settings ) ; }

Target:
public void onActivityCreated ( android.os.Bundle savedInstanceState ) { super . onActivityCreated ( savedInstanceState ) ; getEmptyTextView ( ) . setText ( R.string.apn_settings_not_available ) ; mUnavailable = isUiRestricted ( ) ; setHasOptionsMenu ( ( ! ( mUnavailable ) ) ) ; if ( mUnavailable ) { addPreferencesFromResource ( R.xml.empty_settings ) ; return ; } addPreferencesFromResource ( R.xml.apn_settings ) ; }
Source:
protected com.android.sched.vfs.OutputVFile getOutputDex ( @ javax.annotation.Nonnull com.android.sched.vfs.OutputVDir outputVDir , int dexCount ) throws com.android.jack.JackIOException { assert dexCount >= 1 ; java.lang.String dexName ; if ( dexCount == 1 ) { dexName = DexFileWriter.DEX_FILENAME ; } else { dexName = ( ( DexFileWriter.DEX_PREFIX ) + dexCount ) + ( BinaryKind.DEX.getFileExtension ( ) ) ; } try { return outputVDir.createOutputVFile ( new com.android.sched.vfs.VPath ( dexName , '/' ) ) ; } catch ( java.io.IOException e ) { throw new com.android.jack.JackIOException ( ( ( ( "Cannot create dex file '" + dexName ) + "' in " ) + outputVDir ) , e ) ; } }

Target:
protected com.android.sched.vfs.OutputVFile getOutputDex ( @ javax.annotation.Nonnull com.android.sched.vfs.OutputVDir outputVDir , int dexCount ) throws com.android.jack.backend.dex.DexWritingException { assert dexCount >= 1 ; java.lang.String dexName ; if ( dexCount == 1 ) { dexName = DexFileWriter.DEX_FILENAME ; } else { dexName = ( ( DexFileWriter.DEX_PREFIX ) + dexCount ) + ( BinaryKind.DEX.getFileExtension ( ) ) ; } try { return outputVDir.createOutputVFile ( new com.android.sched.vfs.VPath ( dexName , '/' ) ) ; } catch ( com.android.sched.util.file.CannotCreateFileException e ) { throw new com.android.jack.backend.dex.DexWritingException ( e ) ; } }
Source:
public void copy2DRangeFrom ( int xoff , int yoff , int w , int h , int [ ] data ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy2DRangeFrom" ) ; validateIsInt32 ( ) ; copy2DRangeFromUnchecked ( xoff , yoff , w , h , data ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copyFrom ( int [ ] d ) { validateIsInt32 ( ) ; copyFromUnchecked ( d , Element.DataType.SIGNED_32 , d.length ) ; }
Source:
public boolean zoomIn ( ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return zoomIn ( ) ; } } ) ; return ret ; } return mAwContents.zoomIn ( ) ; }

Target:
public boolean zoomOut ( ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return zoomOut ( ) ; } } ) ; return ret ; } return mAwContents.zoomOut ( ) ; }
Source:
private static synchronized java.lang.String [ ] getZoneIDs ( ) { if ( ( com.ibm.icu.impl.ZoneMeta.ZONEIDS ) == null ) { try { com.ibm.icu.util.UResourceBundle top = com.ibm.icu.util.UResourceBundle.getBundleInstance ( ICUResourceBundle.ICU_BASE_NAME , com.ibm.icu.impl.ZoneMeta.ZONEINFORESNAME , ICUResourceBundle.ICU_DATA_CLASS_LOADER ) ; com.ibm.icu.impl.ZoneMeta.ZONEIDS = top.getStringArray ( com.ibm.icu.impl.ZoneMeta.kNAMES ) ; } catch ( java.util.MissingResourceException ex ) { } } if ( ( com.ibm.icu.impl.ZoneMeta.ZONEIDS ) == null ) { com.ibm.icu.impl.ZoneMeta.ZONEIDS = new java.lang.String [ 0 ] ; } return com.ibm.icu.impl.ZoneMeta.ZONEIDS ; }

Target:
private static synchronized java.lang.String [ ] getZoneIDs ( ) { if ( ( com.ibm.icu.impl.ZoneMeta.ZONEIDS ) == null ) { try { com.ibm.icu.util.UResourceBundle top = com.ibm.icu.util.UResourceBundle.getBundleInstance ( ICUData.ICU_BASE_NAME , com.ibm.icu.impl.ZoneMeta.ZONEINFORESNAME , ICUResourceBundle.ICU_DATA_CLASS_LOADER ) ; com.ibm.icu.impl.ZoneMeta.ZONEIDS = top.getStringArray ( com.ibm.icu.impl.ZoneMeta.kNAMES ) ; } catch ( java.util.MissingResourceException ex ) { } } if ( ( com.ibm.icu.impl.ZoneMeta.ZONEIDS ) == null ) { com.ibm.icu.impl.ZoneMeta.ZONEIDS = new java.lang.String [ 0 ] ; } return com.ibm.icu.impl.ZoneMeta.ZONEIDS ; }
Source:
public void spyNewClass ( ) throws java.lang.Exception { com.android.dx.mockito.tests.MockTests.TestClass t = org.mockito.Mockito.spy ( com.android.dx.mockito.tests.MockTests.TestClass.class ) ; org.junit.Assert.assertEquals ( "A" , t.returnA ( ) ) ; org.mockito.Mockito.when ( t.returnA ( ) ) . thenReturn ( "B" ) ; org.junit.Assert.assertEquals ( "B" , t.returnA ( ) ) ; }

Target:
public void spyNewClass ( ) throws java.lang.Exception { com.android.dx.mockito.tests.GeneralMocking.TestClass t = org.mockito.Mockito.spy ( com.android.dx.mockito.tests.GeneralMocking.TestClass.class ) ; org.junit.Assert.assertEquals ( "A" , t.returnA ( ) ) ; org.mockito.Mockito.when ( t.returnA ( ) ) . thenReturn ( "B" ) ; org.junit.Assert.assertEquals ( "B" , t.returnA ( ) ) ; }