auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void onClick ( android.content.DialogInterface dialog , int item ) { mBackend.setActivatedOnDock ( ( ( item == 0 ) || ( item == 2 ) ) ) ; mBackend.setActivatedOnSleep ( ( ( item == 1 ) || ( item == 2 ) ) ) ; }

Target:
public void onClick ( android.content.DialogInterface dialog , int item ) { mBackend.setActivatedOnDock ( ( ( item == 0 ) || ( item == 2 ) ) ) ; mBackend.setActivatedOnSleep ( ( ( item == 1 ) || ( item == 2 ) ) ) ; dialog.dismiss ( ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; final com.android.tests.basic.Main a = getActivity ( ) ; assertNotNull ( a ) ; mTextView = com.google.common.collect.ImmutableList.of ( ( ( android.widget.TextView ) ( a.findViewById ( R.id.text ) ) ) ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; final com.android.tests.basic.Main a = getActivity ( ) ; assertNotNull ( a ) ; mTextView = ( ( android.widget.TextView ) ( a.findViewById ( R.id.text ) ) ) ; solo = new com.jayway.android.robotium.solo.Solo ( getInstrumentation ( ) , getActivity ( ) ) ; }
Source:
public void testOtherRandomDirectoriesNotWritable ( ) throws java.lang.Exception { java.util.Set < java.io.File > writableDirs = new java.util.HashSet < java.io.File > ( ) ; for ( java.lang.String dir : android.permission.cts.FileSystemPermissionTest.OTHER_RANDOM_DIRECTORIES ) { java.io.File start = new java.io.File ( dir ) ; writableDirs.addAll ( getWritableDirectoryiesAndSubdirectoriesOf ( start ) ) ; } assertTrue ( ( "Found writable directories: " + ( writableDirs.toString ( ) ) ) , writableDirs.isEmpty ( ) ) ; }

Target:
public void testOtherRandomDirectoriesNotWritable ( ) throws java.lang.Exception { java.util.Set < java.io.File > writableDirs = new java.util.HashSet < java.io.File > ( ) ; for ( java.lang.String dir : android.permission.cts.FileSystemPermissionTest.OTHER_RANDOM_DIRECTORIES ) { java.io.File start = new java.io.File ( dir ) ; writableDirs.addAll ( getWritableDirectoriesAndSubdirectoriesOf ( start ) ) ; } assertTrue ( ( "Found writable directories: " + ( writableDirs.toString ( ) ) ) , writableDirs.isEmpty ( ) ) ; }
Source:
public boolean checkAndSet ( java.lang.String value , com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config ) { com.android.ide.eclipse.adt.internal.resources.configurations.ScreenSizeQualifier.ScreenSize size = com.android.ide.eclipse.adt.internal.resources.configurations.ScreenSizeQualifier.ScreenSize.getEnum ( value ) ; if ( size != null ) { com.android.ide.eclipse.adt.internal.resources.configurations.ScreenSizeQualifier qualifier = new com.android.ide.eclipse.adt.internal.resources.configurations.ScreenSizeQualifier ( size ) ; config.setScreenSizeQualifier ( qualifier ) ; return true ; } return false ; }

Target:
public boolean checkAndSet ( java.lang.String value , com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config ) { com.android.sdklib.resources.ScreenSize size = com.android.sdklib.resources.ScreenSize.getEnum ( value ) ; if ( size != null ) { com.android.ide.eclipse.adt.internal.resources.configurations.ScreenSizeQualifier qualifier = new com.android.ide.eclipse.adt.internal.resources.configurations.ScreenSizeQualifier ( size ) ; config.setScreenSizeQualifier ( qualifier ) ; return true ; } return false ; }
Source:
private static void addZipEntry ( java.util.zip.ZipOutputStream zos , java.lang.String name , byte [ ] content ) throws libcore.tzdata.update2.DistroException { try { java.util.zip.ZipEntry zipEntry = new java.util.zip.ZipEntry ( name ) ; zipEntry.setSize ( content.length ) ; zos.putNextEntry ( zipEntry ) ; zos.write ( content ) ; zos.closeEntry ( ) ; } catch ( java.io.IOException e ) { throw new libcore.tzdata.update2.DistroException ( "Unable to add zip entry" , e ) ; } }

Target:
private static void addZipEntry ( java.util.zip.ZipOutputStream zos , java.lang.String name , byte [ ] content ) throws libcore.tzdata.shared2.DistroException { try { java.util.zip.ZipEntry zipEntry = new java.util.zip.ZipEntry ( name ) ; zipEntry.setSize ( content.length ) ; zos.putNextEntry ( zipEntry ) ; zos.write ( content ) ; zos.closeEntry ( ) ; } catch ( java.io.IOException e ) { throw new libcore.tzdata.shared2.DistroException ( "Unable to add zip entry" , e ) ; } }
Source:
public static com.android.sdklib.repository.descriptors.PkgDesc.Builder newSysImg ( @ com.android.annotations.NonNull com.android.sdklib.AndroidVersion version , @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.IdDisplay tag , @ com.android.annotations.NonNull java.lang.String abi , @ com.android.annotations.NonNull com.android.sdklib.repository.MajorRevision revision ) { com.android.sdklib.repository.descriptors.PkgDesc.Builder p = new com.android.sdklib.repository.descriptors.PkgDesc.Builder ( PkgType.PKG_SYS_IMAGES ) ; p.mAndroidVersion = version ; p.mMajorRevision = revision ; p.mTag = tag ; p.mPath = abi ; p.mVendor = null ; return p ; }

Target:
public static com.android.sdklib.repository.descriptors.PkgDesc.Builder newSysImg ( @ com.android.annotations.NonNull com.android.sdklib.AndroidVersion version , @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.IdDisplay tag , @ com.android.annotations.NonNull java.lang.String abi , @ com.android.annotations.NonNull com.android.sdklib.repository.MajorRevision revision ) { com.android.sdklib.repository.descriptors.PkgDesc.Builder p = new com.android.sdklib.repository.descriptors.PkgDesc.Builder ( PkgType.PKG_SYS_IMAGE ) ; p.mAndroidVersion = version ; p.mMajorRevision = revision ; p.mTag = tag ; p.mPath = abi ; p.mVendor = null ; return p ; }
Source:
public void run ( ) { while ( ( mWapPushMan ) == null ) { mOwner.bindService ( new android.content.Intent ( com.android.internal.telephony.IWapPushManager.class . getName ( ) ) , wapPushConnection , Context.BIND_AUTO_CREATE ) ; try { java.lang.Thread.sleep ( BIND_RETRY_INTERVAL ) ; } catch ( java.lang.InterruptedException e ) { if ( false ) android.util.Log.v ( com.android.internal.telephony.WapPushOverSms.LOG_TAG , "sleep interrupted." ) ; } } }

Target:
public void run ( ) { while ( ( mWapPushMan ) == null ) { mOwner.bindService ( new android.content.Intent ( com.android.internal.telephony.IWapPushManager.class . getName ( ) ) , wapPushConnection , Context.BIND_AUTO_CREATE ) ; try { java.lang.Thread.sleep ( BIND_RETRY_INTERVAL ) ; } catch ( java.lang.InterruptedException e ) { if ( false ) android.telephony.Rlog.v ( com.android.internal.telephony.WapPushOverSms.LOG_TAG , "sleep interrupted." ) ; } } }
Source:
public void testResValuesMerge ( ) { com.android.builder.model.ProductFlavor productFlavor = mCustom.mergeOver ( mCustom2 ) ; java.util.Map < java.lang.String , com.android.builder.model.ClassField > resValues = productFlavor.getResValues ( ) ; assertEquals ( 3 , resValues.size ( ) ) ; assertEquals ( "oneValue" , resValues.get ( "one" ) . getValue ( ) ) ; assertEquals ( "twoValue" , resValues.get ( "two" ) . getValue ( ) ) ; assertEquals ( "threeValue" , resValues.get ( "three" ) . getValue ( ) ) ; }

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.String > manifestPlaceholders = flavor.getManifestPlaceholders ( ) ; assertEquals ( 3 , manifestPlaceholders.size ( ) ) ; assertEquals ( "oneValue" , manifestPlaceholders.get ( "one" ) ) ; assertEquals ( "twoValue" , manifestPlaceholders.get ( "two" ) ) ; assertEquals ( "threeValue" , manifestPlaceholders.get ( "three" ) ) ; }
Source:
private void setStacked ( boolean stacked ) { setOrientation ( ( stacked ? android.widget.LinearLayout.VERTICAL : android.widget.LinearLayout.HORIZONTAL ) ) ; setGravity ( ( stacked ? android.view.Gravity.RIGHT : android.view.Gravity.BOTTOM ) ) ; final android.view.View spacer = findViewById ( R.id.spacer ) ; if ( spacer != null ) { spacer.setVisibility ( ( stacked ? android.view.View.GONE : android.view.View.INVISIBLE ) ) ; } final int childCount = getChildCount ( ) ; for ( int i = childCount - 2 ; i >= 0 ; i -- ) { bringChildToFront ( getChildAt ( i ) ) ; } }

Target:
private void setStacked ( boolean stacked ) { setOrientation ( ( stacked ? android.widget.LinearLayout.VERTICAL : android.widget.LinearLayout.HORIZONTAL ) ) ; setGravity ( ( stacked ? android.view.Gravity.END : android.view.Gravity.BOTTOM ) ) ; final android.view.View spacer = findViewById ( R.id.spacer ) ; if ( spacer != null ) { spacer.setVisibility ( ( stacked ? android.view.View.GONE : android.view.View.INVISIBLE ) ) ; } final int childCount = getChildCount ( ) ; for ( int i = childCount - 2 ; i >= 0 ; i -- ) { bringChildToFront ( getChildAt ( i ) ) ; } }
Source:
public void testIgnoreLeapNoSync ( ) throws java.lang.Exception { final byte [ ] reply = libcore.util.HexEncoding.decode ( android.net.SntpClientTest.WORKING_VERSION4.toCharArray ( ) , false ) ; reply [ 0 ] |= ( ( byte ) ( 192 ) ) ; mServer.setServerReply ( reply ) ; assertFalse ( mClient.requestTime ( mServer.getAddress ( ) , mServer.getPort ( ) , 500 ) ) ; assertEquals ( 1 , mServer.numRequestsReceived ( ) ) ; assertEquals ( 1 , mServer.numRepliesSent ( ) ) ; }

Target:
public void testTimeoutFailure ( ) throws java.lang.Exception { mServer.clearServerReply ( ) ; assertFalse ( mClient.requestTime ( mServer.getAddress ( ) , mServer.getPort ( ) , 500 , mNetwork ) ) ; assertEquals ( 1 , mServer.numRequestsReceived ( ) ) ; assertEquals ( 0 , mServer.numRepliesSent ( ) ) ; }
Source:
public void elementType ( java.lang.String name , int model , int memberOf , int flags ) { org.ccil.cowan.tagsoup.ElementType e = new org.ccil.cowan.tagsoup.ElementType ( name , model , memberOf , flags , this ) ; theElementTypes.put ( name.toLowerCase ( ) , e ) ; if ( memberOf == ( org.ccil.cowan.tagsoup.Schema.M_ROOT ) ) theRoot = e ; }

Target:
public void elementType ( java.lang.String name , int model , int memberOf , int flags ) { org.ccil.cowan.tagsoup.ElementType e = new org.ccil.cowan.tagsoup.ElementType ( name , model , memberOf , flags , this ) ; theElementTypes.put ( name.toLowerCase ( java.util.Locale.ROOT ) , e ) ; if ( memberOf == ( org.ccil.cowan.tagsoup.Schema.M_ROOT ) ) theRoot = e ; }
Source:
public void getWithCacheHit ( ) throws java.lang.Exception { android.graphics.Bitmap bitmap = android.graphics.Bitmap.createBitmap ( 1 , 1 , null ) ; com.android.volley.toolbox.ImageLoader.ImageListener listener = mock ( ImageLoader.ImageListener.class ) ; when ( mImageCache.getBitmap ( anyString ( ) ) ) . thenReturn ( bitmap ) ; com.android.volley.toolbox.ImageLoader.ImageContainer ic = mImageLoader.get ( "http://foo" , listener ) ; org.junit.Assert.assertSame ( bitmap , ic.getBitmap ( ) ) ; verify ( listener ) . onResponse ( ic , true ) ; }

Target:
public void getWithCacheHit ( ) throws java.lang.Exception { android.graphics.Bitmap bitmap = android.graphics.Bitmap.createBitmap ( 1 , 1 , null ) ; com.android.volley.toolbox.ImageLoader.ImageListener listener = org.mockito.Mockito.mock ( ImageLoader.ImageListener.class ) ; org.mockito.Mockito.when ( mImageCache.getBitmap ( org.mockito.Mockito.anyString ( ) ) ) . thenReturn ( bitmap ) ; com.android.volley.toolbox.ImageLoader.ImageContainer ic = mImageLoader.get ( "http://foo" , listener ) ; org.junit.Assert.assertSame ( bitmap , ic.getBitmap ( ) ) ; org.mockito.Mockito.verify ( listener ) . onResponse ( ic , true ) ; }
Source:
private PackageParser.Package scanPackageLI ( android.content.pm.PackageParser.Package pkg , int parseFlags , int scanFlags , long currentTime , android.os.UserHandle user ) throws com.android.server.pm.PackageManagerException { boolean success = false ; try { final android.content.pm.PackageParser.Package res = scanPackageDirtyLI ( pkg , parseFlags , scanFlags , currentTime , user ) ; success = true ; return res ; } finally { if ( ( ! success ) && ( ( scanFlags & ( com.android.server.pm.PackageManagerService.SCAN_DELETE_DATA_ON_FAILURES ) ) != 0 ) ) { removeDataDirsLI ( pkg.volumeUuid , pkg.packageName ) ; } } }

Target:
private PackageParser.Package scanPackageTracedLI ( java.io.File scanFile , final int parseFlags , int scanFlags , long currentTime , android.os.UserHandle user ) throws com.android.server.pm.PackageManagerException { android.os.Trace.traceBegin ( android.os.Trace.TRACE_TAG_PACKAGE_MANAGER , "scanPackage" ) ; try { return scanPackageLI ( scanFile , parseFlags , scanFlags , currentTime , user ) ; } finally { android.os.Trace.traceEnd ( android.os.Trace.TRACE_TAG_PACKAGE_MANAGER ) ; } }
Source:
private static void assertEqualGroupList ( java.util.List < com.android.build.gradle.internal.ProductFlavorCombo > expected , java.util.List < com.android.build.gradle.internal.ProductFlavorCombo > actual ) { assertEquals ( expected.size ( ) , actual.size ( ) ) ; for ( int i = 0 ; i < ( expected.size ( ) ) ; i ++ ) { assertArrayEquals ( ( "Unexpected value for ProductFlavorCombo " + i ) , expected.get ( i ) . getFlavorList ( ) . toArray ( ) , actual.get ( i ) . getFlavorList ( ) . toArray ( ) ) ; } }

Target:
private static void assertEqualGroupList ( java.util.List < com.android.build.gradle.internal.ProductFlavorCombo > expected , java.util.List < com.android.build.gradle.internal.ProductFlavorCombo > actual ) { org.junit.Assert.assertEquals ( expected.size ( ) , actual.size ( ) ) ; for ( int i = 0 ; i < ( expected.size ( ) ) ; i ++ ) { org.junit.Assert.assertArrayEquals ( ( "Unexpected value for ProductFlavorCombo " + i ) , expected.get ( i ) . getFlavorList ( ) . toArray ( ) , actual.get ( i ) . getFlavorList ( ) . toArray ( ) ) ; } }
Source:
private com.google.gdt.eclipse.login.common.GoogleLoginState createGoogleLoginState ( ) { com.google.gdt.eclipse.login.common.GoogleLoginState state = new com.google.gdt.eclipse.login.common.GoogleLoginState ( clientInfo.getClientId ( ) , clientInfo.getClientSecret ( ) , com.google.gct.login.OAuthScopeRegistry.getScopes ( ) , new com.google.gct.login.GoogleLogin.AndroidPreferencesOAuthDataStore ( ) , uiFacade , new com.google.gct.login.GoogleLogin.AndroidLoggerFacade ( ) ) ; com.google.gct.login.GoogleLogin.addLoginListenersFromExtensionPoints ( state ) ; return state ; }

Target:
private com.google.gdt.eclipse.login.common.GoogleLoginState createGoogleLoginState ( ) { com.google.gdt.eclipse.login.common.GoogleLoginState state = new com.google.gdt.eclipse.login.common.GoogleLoginState ( clientInfo.getId ( ) , clientInfo.getInfo ( ) , com.google.gct.login.OAuthScopeRegistry.getScopes ( ) , new com.google.gct.login.GoogleLogin.AndroidPreferencesOAuthDataStore ( ) , uiFacade , new com.google.gct.login.GoogleLogin.AndroidLoggerFacade ( ) ) ; com.google.gct.login.GoogleLogin.addLoginListenersFromExtensionPoints ( state ) ; return state ; }
Source:
private void updateLogo ( @ android.support.annotation.Nullable android.graphics.Bitmap logo ) { if ( logo == null ) { updateProgramTextView ( mLastUpdatedProgram ) ; return ; } mChannelLogoImageView.setImageBitmap ( logo ) ; mChannelLogoImageView.setVisibility ( View.VISIBLE ) ; updateProgramTextView ( mLastUpdatedProgram ) ; if ( ( mResizeAnimator ) == null ) { java.lang.String description = mProgramDescriptionTextView.getText ( ) . toString ( ) ; boolean needFadeAnimation = ! ( description.equals ( mProgramDescriptionText ) ) ; updateBannerHeight ( needFadeAnimation ) ; } else { mProgramInfoUpdatePendingByResizing = true ; } }

Target:
private void updateLogo ( @ android.support.annotation.Nullable android.graphics.Bitmap logo ) { if ( logo == null ) { updateProgramTextView ( mLastUpdatedProgram ) ; return ; } mChannelLogoImageView.setImageBitmap ( logo ) ; mChannelLogoImageView.setVisibility ( View.VISIBLE ) ; updateProgramTextView ( mLastUpdatedProgram ) ; if ( ( mResizeAnimator ) == null ) { java.lang.String description = mProgramDescriptionTextView.getText ( ) . toString ( ) ; boolean programDescriptionNeedFadeAnimation = ( ! ( description.equals ( mProgramDescriptionText ) ) ) && ( ! ( mUpdateOnTune ) ) ; updateBannerHeight ( programDescriptionNeedFadeAnimation ) ; } else { mProgramInfoUpdatePendingByResizing = true ; } }
Source:
public com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType getNumberType ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number ) { java.lang.String regionCode = getRegionCodeForNumber ( number ) ; com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneMetadata metadata = getMetadataForRegionOrCallingCode ( number.getCountryCode ( ) , regionCode ) ; if ( metadata == null ) { return com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType.UNKNOWN ; } java.lang.String nationalSignificantNumber = getNationalSignificantNumber ( number ) ; return getNumberTypeHelper ( nationalSignificantNumber , metadata ) ; }

Target:
public com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType getNumberType ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number ) { java.lang.String regionCode = getRegionCodeForNumber ( number ) ; com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata metadata = getMetadataForRegionOrCallingCode ( number.getCountryCode ( ) , regionCode ) ; if ( metadata == null ) { return com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType.UNKNOWN ; } java.lang.String nationalSignificantNumber = getNationalSignificantNumber ( number ) ; return getNumberTypeHelper ( nationalSignificantNumber , metadata ) ; }
Source:
synchronized void nScriptSetVarVE ( long id , int slot , byte [ ] val , long e , int [ ] dims ) { validate ( ) ; rsnScriptSetVarVE ( mContext , id , slot , val , e , dims ) ; }

Target:
synchronized void nScriptSetVarVE ( long id , int slot , byte [ ] val , long e , int [ ] dims , boolean mUseInc ) { validate ( ) ; long curCon = mContext ; if ( mUseInc ) { curCon = mIncCon ; } rsnScriptSetVarVE ( curCon , id , slot , val , e , dims , mUseInc ) ; }
Source:
public static org.jetbrains.plugins.github.api.GithubRepoDetailed getDetailedRepoInfo ( @ org.jetbrains.annotations.NotNull org.jetbrains.plugins.github.api.GithubAuthData auth , @ org.jetbrains.annotations.NotNull java.lang.String owner , @ org.jetbrains.annotations.NotNull java.lang.String name ) throws java.io.IOException { final java.lang.String request = ( ( "/repos/" + owner ) + "/" ) + name ; com.google.gson.JsonElement jsonObject = org.jetbrains.plugins.github.api.GithubApiUtil.getRequest ( auth , request ) ; return org.jetbrains.plugins.github.api.GithubApiUtil.createDataFromRaw ( org.jetbrains.plugins.github.api.GithubApiUtil.fromJson ( jsonObject , org.jetbrains.plugins.github.api.GithubRepoRaw.class ) , org.jetbrains.plugins.github.api.GithubRepoDetailed.class ) ; }

Target:
public static org.jetbrains.plugins.github.api.GithubRepoDetailed getDetailedRepoInfo ( @ org.jetbrains.annotations.NotNull org.jetbrains.plugins.github.util.GithubAuthData auth , @ org.jetbrains.annotations.NotNull java.lang.String owner , @ org.jetbrains.annotations.NotNull java.lang.String name ) throws java.io.IOException { final java.lang.String request = ( ( "/repos/" + owner ) + "/" ) + name ; com.google.gson.JsonElement jsonObject = org.jetbrains.plugins.github.api.GithubApiUtil.getRequest ( auth , request ) ; return org.jetbrains.plugins.github.api.GithubApiUtil.createDataFromRaw ( org.jetbrains.plugins.github.api.GithubApiUtil.fromJson ( jsonObject , org.jetbrains.plugins.github.api.GithubRepoRaw.class ) , org.jetbrains.plugins.github.api.GithubRepoDetailed.class ) ; }
Source:
public boolean providerMeetsCriteria ( java.lang.String provider , android.location.Criteria criteria ) { com.android.server.location.LocationProviderInterface p = mProvidersByName.get ( provider ) ; if ( p == null ) { throw new java.lang.IllegalArgumentException ( ( "provider=" + provider ) ) ; } return p.meetsCriteria ( criteria ) ; }

Target:
public boolean providerMeetsCriteria ( java.lang.String provider , android.location.Criteria criteria ) { com.android.server.location.LocationProviderInterface p = mProvidersByName.get ( provider ) ; if ( p == null ) { throw new java.lang.IllegalArgumentException ( ( "provider=" + provider ) ) ; } boolean result = android.location.LocationProvider.propertiesMeetCriteria ( p.getName ( ) , p.getProperties ( ) , criteria ) ; if ( com.android.server.LocationManagerService.D ) android.util.Log.d ( com.android.server.LocationManagerService.TAG , ( ( ( ( ( "providerMeetsCriteria(" + provider ) + ", " ) + criteria ) + ")=" ) + result ) ) ; return result ; }
Source:
public freemarker.template.TemplateModel exec ( java.util.List args ) throws freemarker.template.TemplateModelException { if ( ( args.size ( ) ) != 1 ) { throw new freemarker.template.TemplateModelException ( "Wrong arguments" ) ; } java.lang.String string = args.get ( 0 ) . toString ( ) ; return new freemarker.template.SimpleScalar ( com.android.ide.eclipse.adt.internal.refactorings.extractstring.ExtractStringRefactoring.escapeString ( string ) ) ; }

Target:
public freemarker.template.TemplateModel exec ( java.util.List args ) throws freemarker.template.TemplateModelException { if ( ( args.size ( ) ) != 1 ) { throw new freemarker.template.TemplateModelException ( "Wrong arguments" ) ; } java.lang.String string = args.get ( 0 ) . toString ( ) ; return new freemarker.template.SimpleScalar ( com.android.ide.common.resources.ValueResourceParser.escapeResourceString ( string ) ) ; }
Source:
private void generateDocument ( java.io.File reportDir , long elapsedTime ) { java.lang.String timestamp = getTimestamp ( ) ; java.io.OutputStream stream = null ; try { stream = createOutputResultStream ( reportDir ) ; org.kxml2.io.KXmlSerializer serializer = new org.kxml2.io.KXmlSerializer ( ) ; serializer.setOutput ( stream , SdkConstants.UTF_8 ) ; serializer.startDocument ( SdkConstants.UTF_8 , null ) ; serializer.setFeature ( "http://xmlpull.org/v1/doc/features.html#indent-output" , true ) ; printTestResults ( serializer , timestamp , elapsedTime ) ; serializer.endDocument ( ) ; java.lang.String msg = java.lang.String.format ( ( "XML test result file generated at %s. Total tests %d, " + "Failed %d, Error %d" ) , getAbsoluteReportPath ( ) , mRunResult.getNumTests ( ) , mRunResult.getNumFailedTests ( ) , mRunResult.getNumErrorTests ( ) ) ; com.android.ddmlib.Log.logAndDisplay ( LogLevel.INFO , com.android.ddmlib.testrunner.XmlTestRunListener.LOG_TAG , msg ) ; } catch ( java.io.IOException e ) { com.android.ddmlib.Log.e ( com.android.ddmlib.testrunner.XmlTestRunListener.LOG_TAG , "Failed to generate report data" ) ; } finally { if ( stream != null ) { try { stream.close ( ) ; } catch ( java.io.IOException ignored ) { } } } }

Target:
public void testRunEnded ( long elapsedTime , java.util.Map < java.lang.String , java.lang.String > runMetrics ) { mRunResult.testRunEnded ( elapsedTime , runMetrics ) ; generateDocument ( mReportDir , elapsedTime ) ; }
Source:
private void visit ( com.android.tools.lint.detector.api.XmlContext context , org.w3c.dom.Node node ) { if ( ( node.getNodeType ( ) ) == ( org.w3c.dom.Node.TEXT_NODE ) ) { check ( context , node , node.getTextContent ( ) ) ; } else { org.w3c.dom.NodeList children = node.getChildNodes ( ) ; for ( int i = 0 , n = children.getLength ( ) ; i < n ; i ++ ) { visit ( context , children.item ( i ) ) ; } } }

Target:
private void visit ( com.android.tools.lint.detector.api.XmlContext context , org.w3c.dom.Node node ) { if ( ( node.getNodeType ( ) ) == ( org.w3c.dom.Node.TEXT_NODE ) ) { check ( context , node , node.getNodeValue ( ) ) ; } else { org.w3c.dom.NodeList children = node.getChildNodes ( ) ; for ( int i = 0 , n = children.getLength ( ) ; i < n ; i ++ ) { visit ( context , children.item ( i ) ) ; } } }
Source:
public com.android.ide.eclipse.adt.internal.resources.manager.ResourceFile getFile ( java.lang.String filename ) { if ( ( mFiles ) != null ) { for ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFile f : mFiles ) { if ( f.getFile ( ) . getName ( ) . equals ( filename ) ) { return f ; } } } return null ; }

Target:
public com.android.ide.common.resources.ResourceFile getFile ( java.lang.String filename ) { if ( ( mFiles ) != null ) { for ( com.android.ide.common.resources.ResourceFile f : mFiles ) { if ( f.getFile ( ) . getName ( ) . equals ( filename ) ) { return f ; } } } return null ; }
Source:
public void testInflatingStreamsRequiringZipRefill ( ) throws java.io.IOException { int originalSize = 1024 * 1024 ; byte [ ] readBuffer = new byte [ 8192 ] ; java.util.zip.ZipInputStream in = new java.util.zip.ZipInputStream ( new java.io.FileInputStream ( createZipFile ( 1 , originalSize ) ) ) ; while ( ( in.getNextEntry ( ) ) != null ) { while ( ( in.read ( readBuffer , 0 , readBuffer.length ) ) != ( - 1 ) ) { } } in.close ( ) ; }

Target:
public void testInflatingStreamsRequiringZipRefill ( ) throws java.io.IOException { int originalSize = 1024 * 1024 ; byte [ ] readBuffer = new byte [ 8192 ] ; java.util.zip.ZipInputStream in = new java.util.zip.ZipInputStream ( new java.io.FileInputStream ( libcore.java.util.zip.ZipFileTest.createZipFile ( 1 , originalSize ) ) ) ; while ( ( in.getNextEntry ( ) ) != null ) { while ( ( in.read ( readBuffer , 0 , readBuffer.length ) ) != ( - 1 ) ) { } } in.close ( ) ; }
Source:
public java.lang.String getClientName ( int pid ) { synchronized ( mClients ) { for ( com.android.ddmlib.Client c : mClients ) { if ( ( c.getClientData ( ) . getPid ( ) ) == pid ) { return c.getClientData ( ) . getClientDescription ( ) ; } } } return null ; }

Target:
private void addClientInfo ( com.android.ddmlib.Client client ) { com.android.ddmlib.ClientData cd = client.getClientData ( ) ; setClientInfo ( cd.getPid ( ) , cd.getClientDescription ( ) ) ; }
Source:
public void testBatteryStatsUpdated ( ) throws java.lang.Exception { int [ ] relevantStates = new int [ ] { WifiStateTracker.SCAN_MODE , WifiStateTracker.CONNECTED , WifiStateTracker.DISCONNECTED , WifiStateTracker.SOFT_AP } ; for ( int i = 0 ; i < ( relevantStates.length ) ; i ++ ) { mWifiStateTracker.updateState ( relevantStates [ i ] ) ; } org.mockito.Mockito.verify ( mBatteryStats , org.mockito.Mockito.times ( relevantStates.length ) ) . noteWifiState ( org.mockito.Mockito.anyInt ( ) , org.mockito.Mockito.anyString ( ) ) ; }

Target:
public void testBatteryStatsUpdated ( ) throws java.lang.Exception { int [ ] relevantStates = new int [ ] { WifiStateTracker.SCAN_MODE , WifiStateTracker.CONNECTED , WifiStateTracker.DISCONNECTED , WifiStateTracker.SOFT_AP } ; for ( int i = 0 ; i < ( relevantStates.length ) ; i ++ ) { mWifiStateTracker.updateState ( relevantStates [ i ] ) ; } org.mockito.Mockito.verify ( mBatteryStats , org.mockito.Mockito.times ( relevantStates.length ) ) . noteWifiState ( org.mockito.Mockito.anyInt ( ) , org.mockito.Mockito.any ( ) ) ; }
Source:
private static com.google.i18n.phonenumbers.prefixmapper.PrefixTimeZonesMap loadPrefixTimeZonesMapFromFile ( java.lang.String path ) { java.io.InputStream source = com.google.i18n.phonenumbers.PhoneNumberToTimeZonesMapper.class . getResourceAsStream ( path ) ; java.io.ObjectInputStream in = null ; com.google.i18n.phonenumbers.prefixmapper.PrefixTimeZonesMap map = new com.google.i18n.phonenumbers.prefixmapper.PrefixTimeZonesMap ( ) ; try { in = new java.io.ObjectInputStream ( source ) ; map.readExternal ( in ) ; } catch ( java.io.IOException e ) { com.google.i18n.phonenumbers.PhoneNumberToTimeZonesMapper.LOGGER.log ( java.util.logging.Level.WARNING , e.toString ( ) ) ; } finally { com.google.i18n.phonenumbers.PhoneNumberToTimeZonesMapper.close ( in ) ; } return map ; }

Target:
private static com.google.i18n.phonenumbers.prefixmapper.PrefixTimeZonesMap loadPrefixTimeZonesMapFromFile ( java.lang.String path ) { java.io.InputStream source = com.google.i18n.phonenumbers.PhoneNumberToTimeZonesMapper.class . getResourceAsStream ( path ) ; java.io.ObjectInputStream in = null ; com.google.i18n.phonenumbers.prefixmapper.PrefixTimeZonesMap map = new com.google.i18n.phonenumbers.prefixmapper.PrefixTimeZonesMap ( ) ; try { in = new java.io.ObjectInputStream ( source ) ; map.readExternal ( in ) ; } catch ( java.io.IOException e ) { com.google.i18n.phonenumbers.PhoneNumberToTimeZonesMapper.logger.log ( java.util.logging.Level.WARNING , e.toString ( ) ) ; } finally { com.google.i18n.phonenumbers.PhoneNumberToTimeZonesMapper.close ( in ) ; } return map ; }
Source:
private static java.util.List < java.lang.String > getRefCompilerArguments ( com.android.jack.Options compilerArgs ) { java.util.List < java.lang.String > arguments = new java.util.ArrayList < java.lang.String > ( compilerArgs.ecjArguments ) ; if ( ( compilerArgs.classpath ) != null ) { arguments.add ( "-classpath" ) ; arguments.add ( compilerArgs.classpath ) ; } if ( ( compilerArgs.bootclasspath ) != null ) { arguments.add ( "-bootclasspath" ) ; arguments.add ( compilerArgs.bootclasspath ) ; } return arguments ; }

Target:
private static java.util.List < java.lang.String > getRefCompilerArguments ( com.android.jack.Options compilerArgs ) { java.util.List < java.lang.String > arguments = new java.util.ArrayList < java.lang.String > ( compilerArgs.ecjArguments ) ; if ( ( compilerArgs.classpath ) != null ) { arguments.add ( "-classpath" ) ; arguments.add ( compilerArgs.classpath.replace ( "core-stubs-mini.jack" , "core-stubs-mini.jar" ) ) ; } if ( ( compilerArgs.bootclasspath ) != null ) { arguments.add ( "-bootclasspath" ) ; arguments.add ( compilerArgs.bootclasspath.replace ( "core-stubs-mini.jack" , "core-stubs-mini.jar" ) ) ; } return arguments ; }
Source:
private void startListeningForSimChanges ( ) { if ( com.android.server.connectivity.Tethering.DBG ) android.util.Log.d ( com.android.server.connectivity.Tethering.TAG , "startListeningForSimChanges" ) ; if ( ( mBroadcastReceiver ) == null ) { mBroadcastReceiver = new com.android.server.connectivity.Tethering.TetherMasterSM.SimChangeBroadcastReceiver ( mSimBcastGenerationNumber.incrementAndGet ( ) ) ; final android.content.IntentFilter filter = new android.content.IntentFilter ( ) ; filter.addAction ( TelephonyIntents.ACTION_SIM_STATE_CHANGED ) ; mContext.registerReceiver ( mBroadcastReceiver , filter ) ; } }

Target:
private void startListeningForSimChanges ( ) { if ( com.android.server.connectivity.Tethering.DBG ) android.util.Log.d ( com.android.server.connectivity.Tethering.TAG , "startListeningForSimChanges" ) ; if ( ( mBroadcastReceiver ) == null ) { mBroadcastReceiver = new com.android.server.connectivity.Tethering.TetherMasterSM.SimChangeBroadcastReceiver ( mSimBcastGenerationNumber.incrementAndGet ( ) ) ; final android.content.IntentFilter filter = new android.content.IntentFilter ( ) ; filter.addAction ( TelephonyIntents.ACTION_SIM_STATE_CHANGED ) ; mContext.registerReceiver ( mBroadcastReceiver , filter , null , mTetherMasterSM.getHandler ( ) ) ; } }
Source:
public void cleanup ( ) { mRemoteDevices = null ; if ( ( mProfileConnectionState ) != null ) { mProfileConnectionState.clear ( ) ; mProfileConnectionState = null ; } mService.unregisterReceiver ( mReceiver ) ; mService = null ; mBondedDevices.clear ( ) ; }

Target:
public void cleanup ( ) { mRemoteDevices = null ; if ( ( mProfileConnectionState ) != null ) { mProfileConnectionState.clear ( ) ; mProfileConnectionState = null ; } if ( mReceiverRegistered ) { mService.unregisterReceiver ( mReceiver ) ; mReceiverRegistered = false ; } mService = null ; mBondedDevices.clear ( ) ; }
Source:
private static void onBatteryChargingChanged ( android.content.Intent intent ) { assert ( org.chromium.base.PowerMonitor.sInstance ) != null ; int chargePlug = intent.getIntExtra ( BatteryManager.EXTRA_PLUGGED , ( - 1 ) ) ; org.chromium.base.PowerMonitor.sInstance.mIsBatteryPower = ( chargePlug != ( android.os.BatteryManager.BATTERY_PLUGGED_USB ) ) && ( chargePlug != ( android.os.BatteryManager.BATTERY_PLUGGED_AC ) ) ; org.chromium.base.PowerMonitor.nativeOnBatteryChargingChanged ( ) ; }

Target:
public static void create ( android.content.Context context ) { context = context.getApplicationContext ( ) ; if ( ( org.chromium.base.PowerMonitor.sInstance ) == null ) { org.chromium.base.PowerMonitor.sInstance = org.chromium.base.PowerMonitor.LazyHolder.INSTANCE ; org.chromium.base.ApplicationStatus.registerApplicationStateListener ( org.chromium.base.PowerMonitor.sInstance ) ; android.content.IntentFilter ifilter = new android.content.IntentFilter ( android.content.Intent.ACTION_BATTERY_CHANGED ) ; android.content.Intent batteryStatusIntent = context.registerReceiver ( null , ifilter ) ; if ( batteryStatusIntent != null ) org.chromium.base.PowerMonitor.onBatteryChargingChanged ( batteryStatusIntent ) ; } }
Source:
public java.util.List < java.lang.String > lookupCountryCodesForZoneId ( java.lang.String zoneId ) { java.util.List < java.lang.String > isoCodes = new java.util.ArrayList < > ( 2 ) ; for ( libcore.util.CountryTimeZones countryTimeZones : countryTimeZonesList ) { boolean match = libcore.util.CountryTimeZones.TimeZoneMapping.containsTimeZoneId ( countryTimeZones.getTimeZoneMappings ( ) , zoneId ) ; if ( match ) { isoCodes.add ( countryTimeZones.getCountryIso ( ) ) ; } } return java.util.Collections.unmodifiableList ( isoCodes ) ; }

Target:
public java.util.List < libcore.util.CountryTimeZones > lookupCountryTimeZonesForZoneId ( java.lang.String zoneId ) { java.util.List < libcore.util.CountryTimeZones > matches = new java.util.ArrayList < > ( 2 ) ; for ( libcore.util.CountryTimeZones countryTimeZones : countryTimeZonesList ) { boolean match = libcore.util.CountryTimeZones.TimeZoneMapping.containsTimeZoneId ( countryTimeZones.getTimeZoneMappings ( ) , zoneId ) ; if ( match ) { matches.add ( countryTimeZones ) ; } } return java.util.Collections.unmodifiableList ( matches ) ; }
Source:
public void copy2DRangeFrom ( int xoff , int yoff , int w , int h , short [ ] data ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy2DRangeFrom" ) ; validateIsInt16 ( ) ; copy2DRangeFromUnchecked ( xoff , yoff , w , h , data ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copyFrom ( short [ ] d ) { validateIsInt16 ( ) ; copyFromUnchecked ( d , Element.DataType.SIGNED_16 , d.length ) ; }
Source:
public java.lang.String getPackageFromManifest ( ) { assert ( mType ) != ( com.android.builder.core.VariantConfiguration.Type.TEST ) ; java.io.File manifestLocation = mDefaultSourceProvider.getManifestFile ( ) ; java.lang.String packageName = sManifestParser.getPackage ( manifestLocation ) ; if ( packageName == null ) { throw new java.lang.RuntimeException ( java.lang.String.format ( "Cannot read packageName from %1$s" , mDefaultSourceProvider.getManifestFile ( ) . getAbsolutePath ( ) ) ) ; } return packageName ; }

Target:
public java.lang.String getPackageFromManifest ( ) { com.google.common.base.Preconditions.checkState ( ( ! ( mType.isForTesting ( ) ) ) ) ; java.io.File manifestLocation = mDefaultSourceProvider.getManifestFile ( ) ; java.lang.String packageName = sManifestParser.getPackage ( manifestLocation ) ; if ( packageName == null ) { throw new java.lang.RuntimeException ( java.lang.String.format ( "Cannot read packageName from %1$s" , mDefaultSourceProvider.getManifestFile ( ) . getAbsolutePath ( ) ) ) ; } return packageName ; }
Source:
private synchronized void onSetReport ( byte reportType , byte reportId , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( ( ( "onSetReport(): reportType=" + reportType ) + " reportId=" ) + reportId ) ) ; } java.nio.ByteBuffer bb = java.nio.ByteBuffer.wrap ( data ) ; android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidDeviceService.MESSAGE_SET_REPORT ) ; msg.arg1 = reportType ; msg.arg2 = reportId ; msg.obj = bb ; mHandler.sendMessage ( msg ) ; }

Target:
synchronized void onSetReportFromNative ( byte reportType , byte reportId , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( ( ( "onSetReport(): reportType=" + reportType ) + " reportId=" ) + reportId ) ) ; } java.nio.ByteBuffer bb = java.nio.ByteBuffer.wrap ( data ) ; android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidDeviceService.MESSAGE_SET_REPORT ) ; msg.arg1 = reportType ; msg.arg2 = reportId ; msg.obj = bb ; mHandler.sendMessage ( msg ) ; }
Source:
protected void buildCompilationList ( org.eclipse.core.resources.IProject project , java.util.List < org.eclipse.core.runtime.IPath > sourceFolderPathList ) { org.eclipse.core.resources.IWorkspaceRoot root = org.eclipse.core.resources.ResourcesPlugin.getWorkspace ( ) . getRoot ( ) ; for ( org.eclipse.core.runtime.IPath sourceFolderPath : sourceFolderPathList ) { org.eclipse.core.resources.IFolder sourceFolder = root.getFolder ( sourceFolderPath ) ; if ( ( sourceFolder.exists ( ) ) && ( ( sourceFolder.equals ( getGenFolder ( ) ) ) == false ) ) { scanFolderForAidl ( sourceFolder , sourceFolder ) ; } } }

Target:
protected void loadOutputAndDependencies ( ) { org.eclipse.core.runtime.IProgressMonitor monitor = new org.eclipse.core.runtime.NullProgressMonitor ( ) ; java.util.Collection < com.android.ide.eclipse.adt.internal.build.NonJavaFileBundle > bundles = getBundles ( ) ; for ( com.android.ide.eclipse.adt.internal.build.NonJavaFileBundle bundle : bundles ) { try { org.eclipse.core.resources.IFile javaFile = getAidlOutputFile ( bundle.getSourceFile ( ) , false , monitor ) ; bundle.setOutputFile ( javaFile ) ; } catch ( org.eclipse.core.runtime.CoreException e ) { } } }
Source:
void handleIdleModeChanged ( ) { boolean doScan = false ; synchronized ( this ) { boolean idle = mPowerManager.isDeviceIdleMode ( ) ; if ( ( mInIdleMode ) != idle ) { mInIdleMode = idle ; if ( ! idle ) { if ( mScanPending ) { mScanPending = false ; doScan = true ; } } } } if ( doScan ) { startScan ( null , null ) ; } }

Target:
void handleIdleModeChanged ( ) { boolean doScan = false ; synchronized ( this ) { boolean idle = mPowerManager.isDeviceIdleMode ( ) ; if ( ( mInIdleMode ) != idle ) { mInIdleMode = idle ; if ( ! idle ) { if ( mScanPending ) { mScanPending = false ; doScan = true ; } } } } if ( doScan ) { startScan ( null , null , "" ) ; } }
Source:
private void checkModifiers ( javax.lang.model.element.Element annotatedElement ) throws com.google.devtools.common.options.processor.OptionProcessor.OptionProcessorException { if ( ! ( annotatedElement.getModifiers ( ) . contains ( javax.lang.model.element.Modifier.PUBLIC ) ) ) { throw new com.google.devtools.common.options.processor.OptionProcessor.OptionProcessorException ( annotatedElement , "@Option annotated fields should be public." ) ; } if ( annotatedElement.getModifiers ( ) . contains ( javax.lang.model.element.Modifier.STATIC ) ) { throw new com.google.devtools.common.options.processor.OptionProcessor.OptionProcessorException ( annotatedElement , "@Option annotated fields should not be static." ) ; } if ( annotatedElement.getModifiers ( ) . contains ( javax.lang.model.element.Modifier.FINAL ) ) { throw new com.google.devtools.common.options.processor.OptionProcessor.OptionProcessorException ( annotatedElement , "@Option annotated fields should not be final." ) ; } }

Target:
private void checkModifiers ( javax.lang.model.element.VariableElement optionField ) throws com.google.devtools.common.options.processor.OptionProcessor.OptionProcessorException { if ( ! ( optionField.getModifiers ( ) . contains ( javax.lang.model.element.Modifier.PUBLIC ) ) ) { throw new com.google.devtools.common.options.processor.OptionProcessor.OptionProcessorException ( optionField , "@Option annotated fields should be public." ) ; } if ( optionField.getModifiers ( ) . contains ( javax.lang.model.element.Modifier.STATIC ) ) { throw new com.google.devtools.common.options.processor.OptionProcessor.OptionProcessorException ( optionField , "@Option annotated fields should not be static." ) ; } if ( optionField.getModifiers ( ) . contains ( javax.lang.model.element.Modifier.FINAL ) ) { throw new com.google.devtools.common.options.processor.OptionProcessor.OptionProcessorException ( optionField , "@Option annotated fields should not be final." ) ; } }
Source:
private static void sendMulticastMessage ( java.net.InetAddress group , int port , java.lang.String msg , java.net.NetworkInterface sendingInterface ) throws java.io.IOException { java.nio.channels.DatagramChannel dc = java.nio.channels.DatagramChannel.open ( ) ; if ( sendingInterface != null ) { dc.setOption ( java.net.StandardSocketOptions.IP_MULTICAST_IF , sendingInterface ) ; } libcore.java.nio.channels.DatagramChannelMulticastTest.sendMessage ( dc , msg , new java.net.InetSocketAddress ( group , port ) ) ; dc.close ( ) ; }

Target:
private void test_dropAnySource_twice ( java.lang.Iterable < java.net.NetworkInterface > networkInterfaces , java.net.InetAddress group ) throws java.lang.Exception { for ( java.net.NetworkInterface networkInterface : networkInterfaces ) { java.nio.channels.DatagramChannel dc = libcore.java.nio.channels.DatagramChannelMulticastTest.createReceiverChannel ( ) ; java.nio.channels.MembershipKey membershipKey = dc.join ( group , networkInterface ) ; assertTrue ( membershipKey.isValid ( ) ) ; membershipKey.drop ( ) ; assertFalse ( membershipKey.isValid ( ) ) ; membershipKey.drop ( ) ; dc.close ( ) ; } }
Source:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { java.lang.String a = org.conscrypt.NativeCrypto.SSL_SESSION_cipher ( session ) ; assertTrue ( NativeCrypto.OPENSSL_TO_STANDARD_CIPHER_SUITES.containsKey ( a ) ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }

Target:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { java.lang.String a = org.conscrypt.NativeCrypto.SSL_SESSION_cipher ( session ) ; org.junit.Assert.assertTrue ( NativeCrypto.OPENSSL_TO_STANDARD_CIPHER_SUITES.containsKey ( a ) ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }
Source:
private static java.util.List < java.lang.String > getDebugJvmArguments ( ) { java.util.List < java.lang.String > jvmArguments = new java.util.ArrayList < java.lang.String > ( ) ; jvmArguments.add ( "-XX:MaxPermSize=1024m" ) ; java.lang.String debugIntegrationTest = java.lang.System.getenv ( "DEBUG_INNER_TEST" ) ; if ( ! ( com.google.common.base.Strings.isNullOrEmpty ( debugIntegrationTest ) ) ) { jvmArguments.add ( "-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005" ) ; } return jvmArguments ; }

Target:
private java.util.List < java.lang.String > getJvmArguments ( ) { java.util.List < java.lang.String > jvmArguments = new java.util.ArrayList < java.lang.String > ( ) ; if ( ! ( com.google.common.base.Strings.isNullOrEmpty ( heapSize ) ) ) { jvmArguments.add ( ( "-Xmx" + ( heapSize ) ) ) ; } jvmArguments.add ( "-XX:MaxPermSize=1024m" ) ; java.lang.String debugIntegrationTest = java.lang.System.getenv ( "DEBUG_INNER_TEST" ) ; if ( ! ( com.google.common.base.Strings.isNullOrEmpty ( debugIntegrationTest ) ) ) { jvmArguments.add ( "-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005" ) ; } return jvmArguments ; }
Source:
public java.io.OutputStream newOutputStream ( int index ) throws java.io.IOException { synchronized ( this ) { if ( ( entry.currentEditor ) != ( this ) ) { throw new java.lang.IllegalStateException ( ) ; } return new libcore.io.DiskLruCache.Editor.FaultHidingOutputStream ( new java.io.FileOutputStream ( entry.getDirtyFile ( index ) ) ) ; } }

Target:
public java.io.OutputStream newOutputStream ( int index ) throws java.io.IOException { synchronized ( this ) { if ( ( entry.currentEditor ) != ( this ) ) { throw new java.lang.IllegalStateException ( ) ; } if ( ! ( entry.readable ) ) { written [ index ] = true ; } return new libcore.io.DiskLruCache.Editor.FaultHidingOutputStream ( new java.io.FileOutputStream ( entry.getDirtyFile ( index ) ) ) ; } }
Source:
public int getDownloadStatus ( android.telephony.mbms.DownloadRequest downloadRequest , android.telephony.mbms.FileInfo fileInfo ) { android.os.Bundle b = new android.os.Bundle ( ) ; b.putString ( android.telephony.cts.embmstestapp.CtsDownloadService.METHOD_NAME , android.telephony.cts.embmstestapp.CtsDownloadService.METHOD_GET_DOWNLOAD_STATUS ) ; b.putParcelable ( android.telephony.cts.embmstestapp.CtsDownloadService.ARGUMENT_DOWNLOAD_REQUEST , downloadRequest ) ; b.putParcelable ( android.telephony.cts.embmstestapp.CtsDownloadService.ARGUMENT_FILE_INFO , fileInfo ) ; mReceivedCalls.add ( b ) ; return android.telephony.MbmsDownloadSession.STATUS_ACTIVELY_DOWNLOADING ; }

Target:
public int requestDownloadState ( android.telephony.mbms.DownloadRequest downloadRequest , android.telephony.mbms.FileInfo fileInfo ) { android.os.Bundle b = new android.os.Bundle ( ) ; b.putString ( android.telephony.cts.embmstestapp.CtsDownloadService.METHOD_NAME , android.telephony.cts.embmstestapp.CtsDownloadService.METHOD_GET_DOWNLOAD_STATUS ) ; b.putParcelable ( android.telephony.cts.embmstestapp.CtsDownloadService.ARGUMENT_DOWNLOAD_REQUEST , downloadRequest ) ; b.putParcelable ( android.telephony.cts.embmstestapp.CtsDownloadService.ARGUMENT_FILE_INFO , fileInfo ) ; mReceivedCalls.add ( b ) ; return android.telephony.MbmsDownloadSession.STATUS_ACTIVELY_DOWNLOADING ; }
Source:
public boolean isRunProguard ( ) { com.android.build.gradle.internal.core.Type type = getType ( ) ; return ( getBuildType ( ) . isRunProguard ( ) ) && ( ( type != ( Type.TEST ) ) || ( ( getTestedConfig ( ) . getType ( ) ) != ( Type.LIBRARY ) ) ) ; }

Target:
public boolean isMinifyEnabled ( ) { com.android.build.gradle.internal.core.Type type = getType ( ) ; return ( getBuildType ( ) . isMinifyEnabled ( ) ) && ( ( type != ( Type.TEST ) ) || ( ( getTestedConfig ( ) . getType ( ) ) != ( Type.LIBRARY ) ) ) ; }
Source:
private void recomputePadding ( ) { setPadding ( mPaddingLeft , mPaddingTop , mUserPaddingRight , mUserPaddingBottom ) ; }

Target:
void performCollectViewAttributes ( int visibility ) { if ( ( ( visibility & ( android.view.View.VISIBILITY_MASK ) ) == ( android.view.View.VISIBLE ) ) && ( ( mAttachInfo ) != null ) ) { if ( ( ( mViewFlags ) & ( android.view.View.KEEP_SCREEN_ON ) ) == ( android.view.View.KEEP_SCREEN_ON ) ) { mAttachInfo.mKeepScreenOn = true ; } mAttachInfo.mSystemUiVisibility |= mSystemUiVisibility ; android.view.View.ListenerInfo li = mListenerInfo ; if ( ( li != null ) && ( ( li.mOnSystemUiVisibilityChangeListener ) != null ) ) { mAttachInfo.mHasSystemUiListeners = true ; } } }
Source:
public java.lang.String getFolderSegment ( com.android.sdklib.IAndroidTarget target ) { if ( ( mValue ) != null ) { return mValue.getValue ( ) ; } return "" ; }

Target:
public boolean isBetterMatchThan ( com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier compareTo , com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier reference ) { if ( compareTo == null ) { return true ; } com.android.ide.eclipse.adt.internal.resources.configurations.DockModeQualifier compareQualifier = ( ( com.android.ide.eclipse.adt.internal.resources.configurations.DockModeQualifier ) ( compareTo ) ) ; com.android.ide.eclipse.adt.internal.resources.configurations.DockModeQualifier referenceQualifier = ( ( com.android.ide.eclipse.adt.internal.resources.configurations.DockModeQualifier ) ( reference ) ) ; if ( ( compareQualifier.getValue ( ) ) == ( referenceQualifier.getValue ( ) ) ) { return false ; } else if ( ( mValue ) == ( com.android.sdklib.resources.DockMode.NONE ) ) { return true ; } return false ; }