auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testOverlay1Content ( ) throws java.lang.Exception { java.io.File project = buildProject ( "overlay1" , BasePlugin.GRADLE_MIN_VERSION ) ; java.io.File drawableOutput = new java.io.File ( project , ( ( "build/" + ( com.android.build.gradle.BasePlugin.FD_INTERMEDIATES ) ) + "/res/debug/drawable" ) ) ; com.android.build.gradle.ManualBuildTest.checkImageColor ( drawableOutput , "no_overlay.png" , com.android.build.gradle.ManualBuildTest.GREEN ) ; com.android.build.gradle.ManualBuildTest.checkImageColor ( drawableOutput , "type_overlay.png" , com.android.build.gradle.ManualBuildTest.GREEN ) ; }

Target:
public void testOverlay1Content ( ) throws java.lang.Exception { java.io.File project = buildProject ( "overlay1" , BasePlugin.GRADLE_MIN_VERSION ) ; java.io.File drawableOutput = new java.io.File ( project , ( ( "build/" + ( com.android.builder.model.AndroidProject.FD_INTERMEDIATES ) ) + "/res/debug/drawable" ) ) ; com.android.build.gradle.ManualBuildTest.checkImageColor ( drawableOutput , "no_overlay.png" , com.android.build.gradle.ManualBuildTest.GREEN ) ; com.android.build.gradle.ManualBuildTest.checkImageColor ( drawableOutput , "type_overlay.png" , com.android.build.gradle.ManualBuildTest.GREEN ) ; }
Source:
public final void createBaseTest ( com.android.rs.image2.ImageProcessingActivity2 ipact ) { act = ipact ; mRS = ipact.mProcessor.mRS ; mInPixelsAllocation = ipact.mProcessor.mInPixelsAllocation ; mInPixelsAllocation2 = ipact.mProcessor.mInPixelsAllocation2 ; mOutPixelsAllocation = ipact.mProcessor.mOutDisplayAllocation1 ; createTest ( act.getResources ( ) ) ; }

Target:
public final void createBaseTest ( com.android.rs.image2.ImageProcessingActivity2 ipact ) { act = ipact ; mRS = ipact.mProcessor.mRS ; mInPixelsAllocation = ipact.mProcessor.mInPixelsAllocation ; mInPixelsAllocation2 = ipact.mProcessor.mInPixelsAllocation2 ; if ( ( ipact.mProcessor.mOutDisplayAllocation1 ) == null ) { mOutPixelsAllocation = ipact.mProcessor.mOutDisplayAllocationIO ; } else { mOutPixelsAllocation = ipact.mProcessor.mOutDisplayAllocation1 ; } createTest ( act.getResources ( ) ) ; }
Source:
protected void createChildren ( org.eclipse.swt.widgets.Composite parent , java.lang.Object header ) { assert categoryToItems != null ; java.util.List < com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor > list = categoryToItems.get ( header ) ; for ( com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor desc : list ) { createItem ( parent , desc ) ; } }

Target:
protected void createChildren ( org.eclipse.swt.widgets.Composite parent , java.lang.Object header ) { assert categoryToItems != null ; java.util.List < com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor > list = categoryToItems.get ( header ) ; if ( list == null ) { assert header.equals ( "Custom & Library Views" ) ; addCustomItems ( parent ) ; return ; } else { for ( com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor desc : list ) { createItem ( parent , desc ) ; } } }
Source:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) { java.lang.String binaryName = remapper.mapValue ( formatter.getName ( type ) ) ; java.lang.String simpleName = com.android.jack.util.NamingTools.getSimpleClassNameFromBinaryName ( binaryName ) ; type.setName ( simpleName ) ; lookup.removeType ( type ) ; type.getEnclosingPackage ( ) . remove ( type ) ; java.lang.String packageName = com.android.jack.util.NamingTools.getPackageNameFromBinaryName ( binaryName ) ; com.android.jack.ir.ast.JPackage newPackage = lookup.getOrCreatePackage ( packageName ) ; type.setEnclosingPackage ( newPackage ) ; newPackage.addType ( type ) ; }

Target:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) { java.lang.String binaryName = remapper.mapValue ( formatter.getName ( type ) ) ; java.lang.String simpleName = com.android.jack.util.NamingTools.getSimpleClassNameFromBinaryName ( binaryName ) ; type.setName ( simpleName ) ; java.lang.String packageName = com.android.jack.util.NamingTools.getPackageNameFromBinaryName ( binaryName ) ; com.android.jack.ir.ast.JPackage newPackage = lookup.getOrCreatePackage ( packageName ) ; lookup.removeType ( type ) ; request.append ( new com.android.jack.transformations.request.ChangeEnclosingPackage ( type , newPackage ) ) ; }
Source:
private void addFolder ( com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources resources , com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config , org.eclipse.core.resources.IFile [ ] memberList ) throws java.lang.Exception { java.lang.String folderName = config.getFolderName ( ResourceFolderType.LAYOUT ) ; org.eclipse.core.resources.IFolder folder = com.android.ide.eclipse.mock.Mocks.createFolder ( folderName , memberList ) ; com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder resFolder = _addProjectResourceFolder ( resources , config , folder ) ; for ( org.eclipse.core.resources.IFile file : memberList ) { resFolder.addFile ( new com.android.ide.eclipse.adt.internal.resources.manager.SingleResourceFile ( new com.android.ide.eclipse.adt.io.IFileWrapper ( file ) , resFolder ) ) ; } }

Target:
private void addFolder ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceRepository resources , com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config , org.eclipse.core.resources.IFile [ ] memberList ) throws java.lang.Exception { java.lang.String folderName = config.getFolderName ( ResourceFolderType.LAYOUT ) ; org.eclipse.core.resources.IFolder folder = com.android.ide.eclipse.mock.Mocks.createFolder ( folderName , memberList ) ; com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder resFolder = _addProjectResourceFolder ( resources , config , folder ) ; for ( org.eclipse.core.resources.IFile file : memberList ) { resFolder.addFile ( new com.android.ide.eclipse.adt.internal.resources.manager.SingleResourceFile ( new com.android.ide.eclipse.adt.io.IFileWrapper ( file ) , resFolder ) ) ; } }
Source:
public void execute ( java.lang.String programName ) { java.lang.StringBuilder commandBuilder = new java.lang.StringBuilder ( ) ; commandBuilder.append ( "dalvikvm64 " ) ; commandBuilder.append ( "-cp " ) . append ( testLocation ) . append ( "/" ) . append ( programName ) . append ( " " ) ; commandBuilder.append ( executeClass ) ; executionResult = executeCommandWithTimeout ( commandBuilder.toString ( ) , true ) ; }

Target:
public void execute ( java.lang.String programName ) { java.lang.StringBuilder commandBuilder = new java.lang.StringBuilder ( ) ; commandBuilder.append ( "dalvikvm64 -Xcompiler-option --compiler-backend=Quick " ) ; commandBuilder.append ( "-cp " ) . append ( testLocation ) . append ( "/" ) . append ( programName ) . append ( " " ) ; commandBuilder.append ( executeClass ) ; executionResult = executeCommandWithTimeout ( commandBuilder.toString ( ) , true ) ; }
Source:
public java.util.List < com.android.resources.ResourceType > getResourceTypes ( ) { update ( ) ; if ( ( mResourceTypeList ) == null ) { java.util.Set < com.android.resources.ResourceType > keys = mResourceItems.keySet ( ) ; mResourceTypeList = new java.util.ArrayList < com.android.resources.ResourceType > ( ) ; mResourceTypeList.addAll ( keys ) ; mResourceTypeList = java.util.Collections.unmodifiableList ( mResourceTypeList ) ; } return mResourceTypeList ; }

Target:
public java.util.Collection < com.android.resources.ResourceType > getResourceTypes ( ) { return mResourceTypeList ; }
Source:
public void testAssistantStackLaunchNewTaskWithDockedStack ( ) throws java.lang.Exception { if ( ! ( supportsSplitScreenMultiWindow ( ) ) ) return ; launchActivity ( android.server.cts.ActivityManagerAssistantStackTests.TEST_ACTIVITY ) ; launchActivityInDockStack ( android.server.cts.ActivityManagerAssistantStackTests.DOCKED_ACTIVITY ) ; mAmWmState.assertContainsStack ( "Must contain fullscreen stack." , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; mAmWmState.assertContainsStack ( "Must contain docked stack." , android.server.cts.DOCKED_STACK_ID ) ; enableAssistant ( ) ; assertAssistantStackCanLaunchAndReturnFromNewTask ( ) ; disableAssistant ( ) ; }

Target:
public void testAssistantStackLaunchNewTaskWithDockedStack ( ) throws java.lang.Exception { if ( ( ! ( supportsSplitScreenMultiWindow ( ) ) ) || ( ! ( assistantRunsOnPrimaryDisplay ( ) ) ) ) return ; launchActivity ( android.server.cts.ActivityManagerAssistantStackTests.TEST_ACTIVITY ) ; launchActivityInDockStack ( android.server.cts.ActivityManagerAssistantStackTests.DOCKED_ACTIVITY ) ; mAmWmState.assertContainsStack ( "Must contain fullscreen stack." , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; mAmWmState.assertContainsStack ( "Must contain docked stack." , android.server.cts.DOCKED_STACK_ID ) ; enableAssistant ( ) ; assertAssistantStackCanLaunchAndReturnFromNewTask ( ) ; disableAssistant ( ) ; }
Source:
public static void atraceDumpAndSendInBackground ( final android.content.Context context , final java.lang.String tags ) { new android.os.AsyncTask < java.lang.Void , java.lang.Void , java.lang.Void > ( ) { @ java.lang.Override protected java.lang.Void doInBackground ( java.lang.Void ... params ) { com.android.traceur.AtraceUtils.atraceDumpAndSend ( context , tags , Receiver.BUFFER_SIZE_KB ) ; return null ; } } . execute ( ) ; }

Target:
protected java.lang.Void doInBackground ( java.lang.Void ... params ) { com.android.traceur.AtraceUtils.atraceDump ( mFile ) ; return null ; }
Source:
private void setWifiStatus ( ) { android.net.wifi.WifiManager wifiManager = ( ( android.net.wifi.WifiManager ) ( getSystemService ( com.android.settings.deviceinfo.WIFI_SERVICE ) ) ) ; android.net.wifi.WifiInfo wifiInfo = wifiManager.getConnectionInfo ( ) ; android.preference.Preference wifiMacAddressPref = findPreference ( com.android.settings.deviceinfo.Status.KEY_WIFI_MAC_ADDRESS ) ; java.lang.String macAddress = ( wifiInfo == null ) ? null : wifiInfo.getMacAddress ( ) ; wifiMacAddressPref.setSummary ( ( ! ( android.text.TextUtils.isEmpty ( macAddress ) ) ? macAddress : getString ( R.string.status_unavailable ) ) ) ; }

Target:
private void setWifiStatus ( ) { android.net.wifi.WifiInfo wifiInfo = mWifiManager.getConnectionInfo ( ) ; java.lang.String macAddress = ( wifiInfo == null ) ? null : wifiInfo.getMacAddress ( ) ; mWifiMacAddress.setSummary ( ( ! ( android.text.TextUtils.isEmpty ( macAddress ) ) ? macAddress : mUnavailable ) ) ; }
Source:
public java.lang.String getNumberLabel ( ) { switch ( nameSource ) { case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_DEFAULT_DIRECTORY : return com.android.dialer.common.Assert.isNotNull ( firstDefaultCp2Contact ) . getLabel ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_EXTENDED_DIRECTORY : return com.android.dialer.common.Assert.isNotNull ( firstExtendedCp2Contact ) . getLabel ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PEOPLE_API : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.NONE : return "" ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( java.lang.String.format ( "Unsupported name source: %s" , nameSource ) ) ; } }

Target:
public java.lang.String getNumberLabel ( ) { switch ( nameSource ) { case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_DEFAULT_DIRECTORY : return com.android.dialer.common.Assert.isNotNull ( firstDefaultCp2Contact ) . getLabel ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_EXTENDED_DIRECTORY : return com.android.dialer.common.Assert.isNotNull ( firstExtendedCp2Contact ) . getLabel ( ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PEOPLE_API : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CNAP : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.NONE : return "" ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( java.lang.String.format ( "Unsupported name source: %s" , nameSource ) ) ; } }
Source:
public final void test_getPeerPrincipal ( ) throws java.lang.Exception { java.net.URL url = new java.net.URL ( "https://localhost:55555" ) ; javax.net.ssl.HttpsURLConnection connection = ( ( javax.net.ssl.HttpsURLConnection ) ( url.openConnection ( ) ) ) ; try { connection.getPeerPrincipal ( ) ; fail ( "IllegalStateException wasn't thrown" ) ; } catch ( java.lang.IllegalStateException expected ) { } javax.net.ssl.HttpsURLConnection con = new tests.api.javax.net.ssl.MyHttpsURLConnection ( new java.net.URL ( "https://www.fortify.net/" ) , "X.508" ) ; try { java.security.Principal p = con.getPeerPrincipal ( ) ; fail ( "SSLPeerUnverifiedException wasn't thrown" ) ; } catch ( javax.net.ssl.SSLPeerUnverifiedException expected ) { } con = new tests.api.javax.net.ssl.MyHttpsURLConnection ( new java.net.URL ( "https://www.fortify.net/" ) , "X.509" ) ; java.security.Principal p = con.getPeerPrincipal ( ) ; assertNotNull ( p ) ; }

Target:
public final void test_getPeerPrincipal ( ) throws java.lang.Exception { java.net.URL url = new java.net.URL ( "https://localhost:55555" ) ; javax.net.ssl.HttpsURLConnection connection = ( ( javax.net.ssl.HttpsURLConnection ) ( url.openConnection ( ) ) ) ; try { connection.getPeerPrincipal ( ) ; fail ( "IllegalStateException wasn't thrown" ) ; } catch ( java.lang.IllegalStateException expected ) { } javax.net.ssl.HttpsURLConnection con = new org.apache.harmony.tests.javax.net.ssl.MyHttpsURLConnection ( new java.net.URL ( "https://www.fortify.net/" ) , "X.508" ) ; try { java.security.Principal p = con.getPeerPrincipal ( ) ; fail ( "SSLPeerUnverifiedException wasn't thrown" ) ; } catch ( javax.net.ssl.SSLPeerUnverifiedException expected ) { } con = new org.apache.harmony.tests.javax.net.ssl.MyHttpsURLConnection ( new java.net.URL ( "https://www.fortify.net/" ) , "X.509" ) ; java.security.Principal p = con.getPeerPrincipal ( ) ; assertNotNull ( p ) ; }
Source:
private boolean describeFlat ( ) { return ( java.lang.System.getProperty ( "JUnitParams.flat" ) ) != null ; }

Target:
private void verifyMethodCanBeRunByStandardRunner ( org.junit.runners.model.FrameworkMethod method ) { java.util.List < java.lang.Throwable > errors = new java.util.ArrayList < java.lang.Throwable > ( ) ; method.validatePublicVoidNoArg ( false , errors ) ; if ( ! ( errors.isEmpty ( ) ) ) { throw new java.lang.RuntimeException ( errors.get ( 0 ) ) ; } }
Source:
private void addListeners ( java.util.List < org.junit.runner.notification.RunListener > listeners , org.junit.runner.JUnitCore testRunner , java.io.PrintStream writer ) { if ( getBooleanArgument ( com.android.test.runner.AndroidJUnitRunner.ARGUMENT_SUITE_ASSIGNMENT ) ) { addListener ( listeners , testRunner , new com.android.test.runner.listener.SuiteAssignmentPrinter ( writer ) ) ; } else { addListener ( listeners , testRunner , new org.junit.internal.TextListener ( writer ) ) ; addListener ( listeners , testRunner , new com.android.test.runner.listener.InstrumentationResultPrinter ( this ) ) ; addDelayListener ( listeners , testRunner ) ; addCoverageListener ( listeners , testRunner ) ; } }

Target:
private void addListeners ( java.util.List < org.junit.runner.notification.RunListener > listeners , org.junit.runner.JUnitCore testRunner , java.io.PrintStream writer ) { if ( getBooleanArgument ( com.android.test.runner.AndroidJUnitRunner.ARGUMENT_SUITE_ASSIGNMENT ) ) { addListener ( listeners , testRunner , new com.android.test.runner.listener.SuiteAssignmentPrinter ( writer ) ) ; } else { addListener ( listeners , testRunner , new org.junit.internal.TextListener ( writer ) ) ; addListener ( listeners , testRunner , new com.android.test.runner.listener.InstrumentationResultPrinter ( this ) ) ; addDelayListener ( listeners , testRunner ) ; addCoverageListener ( listeners , testRunner ) ; } addExtraListeners ( listeners , testRunner , writer ) ; }
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 ProductFlavorGroup " + 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 ) { 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 ( ) ) ; } }
Source:
protected void visit ( org.eclipse.jdt.core.dom.Javadoc javadoc , org.eclipse.jdt.core.dom.rewrite.ASTRewrite rewrite ) { for ( org.eclipse.jdt.core.dom.TagElement tagElement : ( ( java.util.List < org.eclipse.jdt.core.dom.TagElement > ) ( javadoc.tags ( ) ) ) ) { java.lang.String tagName = tagElement.getTagName ( ) ; if ( tagName == null ) { continue ; } if ( tagsToRemove.contains ( tagName.toLowerCase ( ) ) ) { rewrite.remove ( tagElement , null ) ; } } }

Target:
protected void visit ( com.google.currysrc.api.process.Reporter reporter , org.eclipse.jdt.core.dom.Javadoc javadoc , org.eclipse.jdt.core.dom.rewrite.ASTRewrite rewrite ) { for ( org.eclipse.jdt.core.dom.TagElement tagElement : ( ( java.util.List < org.eclipse.jdt.core.dom.TagElement > ) ( javadoc.tags ( ) ) ) ) { java.lang.String tagName = tagElement.getTagName ( ) ; if ( tagName == null ) { continue ; } if ( tagsToRemove.contains ( tagName.toLowerCase ( ) ) ) { rewrite.remove ( tagElement , null ) ; } } }
Source:
public void onInitializeAccessibilityEvent ( final android.view.accessibility.AccessibilityEvent event ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { runVoidTaskOnUiThreadBlocking ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onInitializeAccessibilityEvent ( event ) ; } } ) ; return ; } mAwContents.onInitializeAccessibilityEvent ( event ) ; }

Target:
public void onInitializeAccessibilityNodeInfo ( final android.view.accessibility.AccessibilityNodeInfo info ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { runVoidTaskOnUiThreadBlocking ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onInitializeAccessibilityNodeInfo ( info ) ; } } ) ; return ; } mAwContents.onInitializeAccessibilityNodeInfo ( info ) ; }
Source:
private void boldViewHolderIfUnread ( ) { com.android.dialer.common.LogUtil.v ( "NewVoicemailViewHolder.boldViewHolderIfUnread" , "id:%d, isRead:%d" , voicemailEntryOfViewHolder.id ( ) , voicemailEntryOfViewHolder.isRead ( ) ) ; if ( ( voicemailEntryOfViewHolder.isRead ( ) ) == 0 ) { primaryTextView.setTypeface ( Typeface.DEFAULT , Typeface.BOLD ) ; secondaryTextView.setTypeface ( Typeface.DEFAULT , Typeface.BOLD ) ; transcriptionTextView.setTypeface ( Typeface.DEFAULT , Typeface.BOLD ) ; } }

Target:
private void boldViewHolderIfUnread ( ) { com.android.dialer.common.LogUtil.v ( "NewVoicemailViewHolder.boldViewHolderIfUnread" , "id:%d, isRead:%d" , voicemailEntryOfViewHolder.getId ( ) , voicemailEntryOfViewHolder.getIsRead ( ) ) ; if ( ( voicemailEntryOfViewHolder.getIsRead ( ) ) == 0 ) { primaryTextView.setTypeface ( Typeface.DEFAULT , Typeface.BOLD ) ; secondaryTextView.setTypeface ( Typeface.DEFAULT , Typeface.BOLD ) ; transcriptionTextView.setTypeface ( Typeface.DEFAULT , Typeface.BOLD ) ; } }
Source:
public final short getShort ( ) { int newPosition = ( position ) + ( libcore.io.SizeOf.SHORT ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferUnderflowException ( ) ; } short result = this . block.peekShort ( ( ( offset ) + ( position ) ) , order ) ; position = newPosition ; return result ; }

Target:
public java.nio.ByteBuffer putShort ( short value ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } int newPosition = ( position ) + ( libcore.io.SizeOf.SHORT ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferOverflowException ( ) ; } this . block.pokeShort ( ( ( offset ) + ( position ) ) , value , order ) ; position = newPosition ; return this ; }
Source:
private static java.io.File securityPropFile ( java.lang.String filename ) { java.lang.String sep = java.io.File.separator ; return new java.io.File ( ( ( ( ( ( ( ( java.lang.System.getProperty ( "java.home" ) ) + sep ) + "lib" ) + sep ) + "security" ) + sep ) + filename ) ) ; }

Target:
private static java.io.Reader getSecurityPropertiesReader ( ) throws java.lang.Exception { java.io.InputStream configStream = java.security.Security.class . getResourceAsStream ( "security.properties" ) ; return new java.io.InputStreamReader ( new java.io.BufferedInputStream ( configStream ) , "ISO-8859-1" ) ; }
Source:
public void setClassAnnotations ( com.android.dx.rop.annotation.Annotations annotations ) { if ( annotations == null ) { throw new java.lang.NullPointerException ( "annotations == null" ) ; } if ( ( classAnnotations ) != null ) { throw new java.lang.UnsupportedOperationException ( "class annotations already set" ) ; } classAnnotations = new com.android.dx.dex.file.AnnotationSetItem ( annotations ) ; }

Target:
public void setClassAnnotations ( com.android.dx.rop.annotation.Annotations annotations , com.android.dx.dex.file.DexFile dexFile ) { if ( annotations == null ) { throw new java.lang.NullPointerException ( "annotations == null" ) ; } if ( ( classAnnotations ) != null ) { throw new java.lang.UnsupportedOperationException ( "class annotations already set" ) ; } classAnnotations = new com.android.dx.dex.file.AnnotationSetItem ( annotations , dexFile ) ; }
Source:
public void testConnectFailureDueToNetworkSaveFailure ( ) throws java.lang.Exception { executeAndValidateInitializationSequence ( ) ; setupMocksForConnectSequence ( false ) ; org.mockito.Mockito.when ( mSupplicantStaNetworkMock.saveWifiConfiguration ( org.mockito.Matchers.any ( android.net.wifi.WifiConfiguration.class ) ) ) . thenReturn ( false ) ; assertFalse ( mDut.connectToNetwork ( new android.net.wifi.WifiConfiguration ( ) , false ) ) ; }

Target:
public void testConnectFailureDueToNetworkSaveFailure ( ) throws java.lang.Exception { executeAndValidateInitializationSequence ( ) ; setupMocksForConnectSequence ( true ) ; org.mockito.Mockito.when ( mSupplicantStaNetworkMock.saveWifiConfiguration ( org.mockito.Matchers.any ( android.net.wifi.WifiConfiguration.class ) ) ) . thenReturn ( false ) ; assertFalse ( mDut.connectToNetwork ( new android.net.wifi.WifiConfiguration ( ) , false ) ) ; org.mockito.Mockito.verify ( mISupplicantStaIfaceMock , org.mockito.Mockito.times ( 2 ) ) . removeNetwork ( org.mockito.Matchers.anyInt ( ) ) ; }
Source:
public void transform ( org.eclipse.jdt.core.dom.CompilationUnit cu , org.eclipse.jface.text.Document document ) { java.util.List < org.eclipse.jdt.core.dom.BodyDeclaration > matchingNodes = com.google.common.collect.Lists.newArrayList ( ) ; for ( com.google.currysrc.api.transform.ast.BodyDeclarationLocater locater : blacklist ) { org.eclipse.jdt.core.dom.BodyDeclaration bodyDeclaration = locater.find ( cu ) ; if ( bodyDeclaration != null ) { matchingNodes.add ( bodyDeclaration ) ; } } java.util.Collections.sort ( matchingNodes , new com.google.currysrc.api.transform.ast.StartPositionComparator ( ) ) ; for ( org.eclipse.jdt.core.dom.BodyDeclaration bodyDeclaration : com.google.common.collect.Lists.reverse ( matchingNodes ) ) { com.google.currysrc.api.transform.JavadocUtils.insertCommentText ( document , bodyDeclaration , com.android.icu4j.srcgen.HideOriginalDeprecatedSet.HIDDEN_TAG_COMMENT ) ; } }

Target:
public void transform ( org.eclipse.jdt.core.dom.CompilationUnit cu , org.eclipse.jdt.core.dom.rewrite.ASTRewrite rewrite ) { java.util.List < org.eclipse.jdt.core.dom.BodyDeclaration > matchingNodes = com.google.common.collect.Lists.newArrayList ( ) ; for ( com.google.currysrc.api.transform.ast.BodyDeclarationLocater locater : blacklist ) { org.eclipse.jdt.core.dom.BodyDeclaration bodyDeclaration = locater.find ( cu ) ; if ( bodyDeclaration != null ) { matchingNodes.add ( bodyDeclaration ) ; } } java.util.Collections.sort ( matchingNodes , new com.google.currysrc.api.transform.ast.StartPositionComparator ( ) ) ; for ( org.eclipse.jdt.core.dom.BodyDeclaration bodyDeclaration : com.google.common.collect.Lists.reverse ( matchingNodes ) ) { com.google.currysrc.api.transform.JavadocUtils.addJavadocTag ( rewrite , bodyDeclaration , com.android.icu4j.srcgen.HideOriginalDeprecatedSet.HIDDEN_TAG_COMMENT ) ; } }
Source:
private java.lang.String getStringRepresentation ( com.google.gct.testing.GoogleCloudTestingDimension dimension ) { java.lang.StringBuffer sb = new java.lang.StringBuffer ( ) ; sb.append ( dimension.getId ( ) ) ; for ( com.google.gct.testing.GoogleCloudTestingType type : dimension.getEnabledTypes ( ) ) { sb.append ( type.getId ( ) ) ; } return sb.toString ( ) ; }

Target:
private java.lang.String getStringRepresentation ( com.google.gct.testing.GoogleCloudTestingDimension dimension ) { java.lang.StringBuffer sb = new java.lang.StringBuffer ( ) ; sb.append ( dimension.getId ( ) ) ; for ( com.google.gct.testing.CloudTestingType type : dimension.getEnabledTypes ( ) ) { sb.append ( type.getId ( ) ) ; } return sb.toString ( ) ; }
Source:
public static boolean isProjectDir ( @ com.android.annotations.NonNull java.io.File dir ) { boolean hasManifest = new java.io.File ( dir , com.android.SdkConstants.ANDROID_MANIFEST_XML ) . exists ( ) ; if ( hasManifest ) { if ( dir.getName ( ) . equals ( com.android.SdkConstants.BIN_FOLDER ) ) { dir = dir.getParentFile ( ) ; if ( ( dir != null ) && ( com.android.tools.lint.detector.api.LintUtils.isProjectDir ( dir ) ) ) { return false ; } } } return hasManifest ; }

Target:
public static boolean isProjectDir ( @ com.android.annotations.NonNull java.io.File dir ) { boolean hasManifest = new java.io.File ( dir , com.android.SdkConstants.ANDROID_MANIFEST_XML ) . exists ( ) ; if ( hasManifest ) { if ( dir.getName ( ) . equals ( com.android.SdkConstants.BIN_FOLDER ) ) { dir = dir.getParentFile ( ) ; if ( ( dir != null ) && ( com.android.tools.lint.detector.api.LintUtils.isProjectDir ( dir ) ) ) { return false ; } } } else if ( com.android.tools.lint.detector.api.Project.isAospFrameworksProject ( dir ) ) { return true ; } return hasManifest ; }
Source:
public static java.lang.String getSyntheticSwitchMapFieldName ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedEnum enumType ) { java.lang.String enumName = com.android.jack.util.NamingTools.getValidName ( com.android.jack.ir.formatter.BinaryQualifiedNameFormatter.getFormatter ( ) . getName ( enumType ) ) ; java.lang.String fieldName = com.android.jack.util.NamingTools.getNonSourceConflictingName ( ( enumName + ( com.android.jack.transformations.enums.OptimizationUtil.Suffix ) ) ) ; return fieldName ; }

Target:
public static java.lang.String getEnumNameFromSyntheticField ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JField syntheticField ) { java.lang.String fieldName = syntheticField.getName ( ) . replace ( com.android.jack.transformations.enums.OptimizationUtil.ShorterPrefix , '/' ) ; return ( "L" + ( fieldName.substring ( 1 , ( ( fieldName.length ( ) ) - ( com.android.jack.transformations.enums.OptimizationUtil.Suffix.length ( ) ) ) ) ) ) + ";" ; }
Source:
public java.lang.Object getCategoryKey ( java.lang.Package pkg ) { if ( pkg instanceof com.android.sdklib.internal.repository.packages.IPackageVersion ) { return ( ( com.android.sdklib.internal.repository.packages.IPackageVersion ) ( pkg ) ) . getVersion ( ) ; } else if ( ( pkg instanceof com.android.sdklib.internal.repository.packages.ToolPackage ) || ( pkg instanceof com.android.sdklib.internal.repository.packages.PlatformToolPackage ) ) { return PkgCategoryApi.KEY_TOOLS ; } else { return PkgCategoryApi.KEY_EXTRA ; } }

Target:
public java.lang.Object getCategoryKey ( java.lang.Package pkg ) { if ( pkg instanceof com.android.sdklib.internal.repository.packages.IAndroidVersionProvider ) { return ( ( com.android.sdklib.internal.repository.packages.IAndroidVersionProvider ) ( pkg ) ) . getAndroidVersion ( ) ; } else if ( ( pkg instanceof com.android.sdklib.internal.repository.packages.ToolPackage ) || ( pkg instanceof com.android.sdklib.internal.repository.packages.PlatformToolPackage ) ) { return PkgCategoryApi.KEY_TOOLS ; } else { return PkgCategoryApi.KEY_EXTRA ; } }
Source:
protected boolean stop ( ) { if ( com.android.bluetooth.gatt.GattService.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , "stop()" ) ; mClientMap.clear ( ) ; mServerMap.clear ( ) ; mHandleMap.clear ( ) ; mReliableQueue.clear ( ) ; if ( ( mAdvertiseManager ) != null ) mAdvertiseManager.cleanup ( ) ; if ( ( mScanManager ) != null ) mScanManager.cleanup ( ) ; return true ; }

Target:
protected boolean stop ( ) { if ( com.android.bluetooth.gatt.GattService.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , "stop()" ) ; mAdvertiserMap.clear ( ) ; mScannerMap.clear ( ) ; mClientMap.clear ( ) ; mServerMap.clear ( ) ; mHandleMap.clear ( ) ; mReliableQueue.clear ( ) ; if ( ( mAdvertiseManager ) != null ) mAdvertiseManager.cleanup ( ) ; if ( ( mScanManager ) != null ) mScanManager.cleanup ( ) ; return true ; }
Source:
protected void realCompute ( ) { jsr166.RecursiveActionTest.FibAction f = new jsr166.RecursiveActionTest.FibAction ( 8 ) ; assertSame ( f , f.fork ( ) ) ; helpQuiesce ( ) ; assertEquals ( 21 , f.result ) ; assertEquals ( 0 , getQueuedTaskCount ( ) ) ; checkCompletedNormally ( f ) ; }

Target:
protected void realCompute ( ) { jsr166.RecursiveActionTest.FibAction f = new jsr166.RecursiveActionTest.FibAction ( 8 ) ; assertSame ( f , f.fork ( ) ) ; helpQuiesce ( ) ; while ( ! ( f.isDone ( ) ) ) ; assertEquals ( 21 , f.result ) ; assertEquals ( 0 , getQueuedTaskCount ( ) ) ; checkCompletedNormally ( f ) ; }
Source:
static com.android.bluetooth.a2dp.A2dpStateMachine make ( com.android.bluetooth.a2dp.A2dpService svc , android.content.Context context , com.android.bluetooth.a2dp.A2dpNativeInterface a2dpNativeInterface , android.os.Looper looper ) { if ( com.android.bluetooth.a2dp.A2dpStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.a2dp.A2dpStateMachine.TAG , "make" ) ; } com.android.bluetooth.a2dp.A2dpStateMachine a2dpSm = new com.android.bluetooth.a2dp.A2dpStateMachine ( svc , context , a2dpNativeInterface , looper ) ; a2dpSm.start ( ) ; return a2dpSm ; }

Target:
public void cleanup ( ) { if ( com.android.bluetooth.a2dp.A2dpStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.a2dp.A2dpStateMachine.TAG , ( "cleanup for device " + ( mDevice ) ) ) ; } }
Source:
public static android.hardware.cts.helpers.sensorverification.EventTimestampSynchronizationVerification getDefault ( android.hardware.cts.helpers.TestSensorEnvironment environment ) { int reportLatencyUs = environment.getMaxReportLatencyUs ( ) ; int fifoMaxEventCount = environment.getSensor ( ) . getFifoMaxEventCount ( ) ; if ( fifoMaxEventCount > 0 ) { int fifoBasedReportLatencyUs = fifoMaxEventCount * ( environment.getMaximumExpectedSamplingPeriodUs ( ) ) ; reportLatencyUs = java.lang.Math.min ( reportLatencyUs , fifoBasedReportLatencyUs ) ; } long reportLatencyNs = java.util.concurrent.TimeUnit.MICROSECONDS.toNanos ( reportLatencyUs ) ; return new android.hardware.cts.helpers.sensorverification.EventTimestampSynchronizationVerification ( android.hardware.cts.helpers.sensorverification.EventTimestampSynchronizationVerification.DEFAULT_THRESHOLD_NS , reportLatencyNs ) ; }

Target:
public static android.hardware.cts.helpers.sensorverification.EventTimestampSynchronizationVerification getDefault ( android.hardware.cts.helpers.TestSensorEnvironment environment ) { long reportLatencyUs = environment.getMaxReportLatencyUs ( ) ; long fifoMaxEventCount = environment.getSensor ( ) . getFifoMaxEventCount ( ) ; int maximumExpectedSamplingPeriodUs = environment.getMaximumExpectedSamplingPeriodUs ( ) ; if ( ( fifoMaxEventCount > 0 ) && ( maximumExpectedSamplingPeriodUs != ( java.lang.Integer.MAX_VALUE ) ) ) { long fifoBasedReportLatencyUs = fifoMaxEventCount * maximumExpectedSamplingPeriodUs ; reportLatencyUs = java.lang.Math.min ( reportLatencyUs , fifoBasedReportLatencyUs ) ; } long reportLatencyNs = java.util.concurrent.TimeUnit.MICROSECONDS.toNanos ( reportLatencyUs ) ; return new android.hardware.cts.helpers.sensorverification.EventTimestampSynchronizationVerification ( android.hardware.cts.helpers.sensorverification.EventTimestampSynchronizationVerification.DEFAULT_THRESHOLD_NS , reportLatencyNs ) ; }
Source:
public void testAbiOnlyWithNoMatch ( ) { java.util.List < com.android.build.VariantOutput > list = com.google.common.collect.Lists.newArrayList ( ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getAbiOutput ( "foo" , 1 ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getAbiOutput ( "bar" , 2 ) ) ; java.util.List < com.android.build.OutputFile > result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , 160 , "zzz" ) ; assertEquals ( 0 , result.size ( ) ) ; }

Target:
public void testMultiFilterWithNoMatch ( ) throws com.android.ide.common.process.ProcessException { java.util.List < com.android.build.VariantOutput > list = com.google.common.collect.Lists.newArrayList ( ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getOutput ( 320 , "zzz" , 1 ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getOutput ( 160 , "bar" , 2 ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getOutput ( 320 , "foo" , 3 ) ) ; java.util.List < java.io.File > result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , 160 , "zzz" ) ; assertEquals ( 0 , result.size ( ) ) ; }
Source:
public static void setRcsTestMode ( boolean test ) { com.android.ims.internal.Logger.rcsTestMode = test ; if ( ( android.os.Build.IS_DEBUGGABLE ) || ( com.android.ims.internal.Logger.rcsTestMode ) ) { com.android.ims.internal.Logger.traceLevel = com.android.ims.internal.Logger.DEBUG_LEVEL ; } else { com.android.ims.internal.Logger.traceLevel = com.android.ims.internal.Logger.ERROR_LEVEL ; } }

Target:
public static void setRcsTestMode ( boolean test ) { com.android.ims.internal.Logger.mRcsTestMode = test ; com.android.ims.internal.Logger.DEBUG = com.android.ims.internal.Logger.isLoggable ( android.util.Log.DEBUG ) ; com.android.ims.internal.Logger.INFO = com.android.ims.internal.Logger.isLoggable ( android.util.Log.INFO ) ; com.android.ims.internal.Logger.VERBOSE = com.android.ims.internal.Logger.isLoggable ( android.util.Log.VERBOSE ) ; com.android.ims.internal.Logger.WARN = com.android.ims.internal.Logger.isLoggable ( android.util.Log.WARN ) ; com.android.ims.internal.Logger.ERROR = com.android.ims.internal.Logger.isLoggable ( android.util.Log.ERROR ) ; }
Source:
public java.lang.StringBuffer format ( double number , java.lang.StringBuffer result , java.text.FieldPosition fieldPosition ) { return format ( number , result , fieldPosition , false ) ; }

Target:
public java.lang.Object clone ( ) { android.icu.text.DecimalFormat other = ( ( android.icu.text.DecimalFormat ) ( super . clone ( ) ) ) ; other.symbols = ( ( android.icu.text.DecimalFormatSymbols ) ( symbols.clone ( ) ) ) ; other.properties = properties.clone ( ) ; other.exportedProperties = new android.icu.impl.number.Properties ( ) ; other.refreshFormatter ( ) ; return other ; }
Source:
public boolean passwordUid ( java.lang.String password , int uid ) { try { mError = mBinder.password_uid ( password , uid ) ; return ( mError ) == ( android.security.KeyStore.NO_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return false ; } }

Target:
public android.security.KeyStore.State state ( ) { return state ( android.os.UserHandle.myUserId ( ) ) ; }
Source:
public void recycle ( ) { if ( mRecycled ) { throw new java.lang.RuntimeException ( ( ( toString ( ) ) + " recycled twice!" ) ) ; } mRecycled = true ; mXml = null ; mTheme = null ; mResources.mTypedArrayPool.release ( this ) ; }

Target:
public void recycle ( ) { if ( mRecycled ) { throw new java.lang.RuntimeException ( ( ( toString ( ) ) + " recycled twice!" ) ) ; } mRecycled = true ; mXml = null ; mTheme = null ; mAssets = null ; mResources.mTypedArrayPool.release ( this ) ; }
Source:
private java.util.Map < java.lang.String , com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor > getHiddenAttributeDescriptors ( ) { if ( ( mCachedHiddenAttributes ) == null ) { mCachedHiddenAttributes = new java.util.HashMap < java.lang.String , com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor > ( ) ; for ( com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor attr_desc : getAttributeDescriptors ( ) ) { if ( attr_desc instanceof com.android.ide.eclipse.adt.internal.editors.descriptors.XmlnsAttributeDescriptor ) { mCachedHiddenAttributes.put ( ( ( com.android.ide.eclipse.adt.internal.editors.descriptors.XmlnsAttributeDescriptor ) ( attr_desc ) ) . getXmlNsName ( ) , attr_desc ) ; } } } return mCachedHiddenAttributes ; }

Target:
private java.util.Map < java.lang.String , com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor > getHiddenAttributeDescriptors ( ) { if ( ( mCachedHiddenAttributes ) == null ) { mCachedHiddenAttributes = new java.util.HashMap < java.lang.String , com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor > ( ) ; for ( com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor attrDesc : getAttributeDescriptors ( ) ) { if ( attrDesc instanceof com.android.ide.eclipse.adt.internal.editors.descriptors.XmlnsAttributeDescriptor ) { mCachedHiddenAttributes.put ( ( ( com.android.ide.eclipse.adt.internal.editors.descriptors.XmlnsAttributeDescriptor ) ( attrDesc ) ) . getXmlNsName ( ) , attrDesc ) ; } } } return mCachedHiddenAttributes ; }
Source:
protected void runTest ( ) throws java.lang.Throwable { if ( ( testType ) == ( com.android.build.gradle.AutomatedBuildTest.TestType.BUILD ) ) { buildProject ( testFolder , projectName , gradleVersion ) ; } else if ( ( testType ) == ( com.android.build.gradle.AutomatedBuildTest.TestType.REPORT ) ) { runTasksOn ( testFolder , projectName , gradleVersion , "androidDependencies" , "signingReport" ) ; } }

Target:
protected void runTest ( ) throws java.lang.Throwable { switch ( testType ) { case BUILD : buildProject ( testFolder , projectName , gradleVersion ) ; break ; case JACK : buildProject ( testFolder , projectName , gradleVersion , com.google.common.collect.Lists.newArrayList ( "-PCUSTOM_JACK=1" , "-PCUSTOM_BUILDTOOLS=21.1.0" ) ) ; break ; case REPORT : runTasksOn ( testFolder , projectName , gradleVersion , "androidDependencies" , "signingReport" ) ; break ; } }
Source:
public static com.android.monkeyrunner.MonkeyImage loadImageFromFile ( org.python.core.PyObject [ ] args , java.lang.String [ ] kws ) { org.python.core.ArgParser ap = com.android.monkeyrunner.JythonUtils.createArgParser ( args , kws ) ; com.google.common.base.Preconditions.checkNotNull ( ap ) ; java.lang.String path = ap.getString ( 0 ) ; com.android.monkeyrunner.core.IMonkeyImage image = com.android.monkeyrunner.core.MonkeyImageBase.loadImageFromFile ( path ) ; return new com.android.monkeyrunner.MonkeyImage ( image ) ; }

Target:
public static com.android.monkeyrunner.MonkeyImage loadImageFromFile ( org.python.core.PyObject [ ] args , java.lang.String [ ] kws ) { org.python.core.ArgParser ap = com.android.monkeyrunner.JythonUtils.createArgParser ( args , kws ) ; com.google.common.base.Preconditions.checkNotNull ( ap ) ; java.lang.String path = ap.getString ( 0 ) ; com.android.chimpchat.core.IChimpImage image = com.android.chimpchat.core.ChimpImageBase.loadImageFromFile ( path ) ; return new com.android.monkeyrunner.MonkeyImage ( image ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mProv = new org.apache.harmony.security.tests.support.SpiEngUtils ( ) . new tests.api.javax.net.ssl.MyProvider ( "MyKMFProvider" , "Provider for testing" , tests.api.javax.net.ssl.KeyManagerFactory2Test.srvKeyManagerFactory.concat ( "." ) . concat ( tests.api.javax.net.ssl.KeyManagerFactory2Test.defaultAlg ) , tests.api.javax.net.ssl.KeyManagerFactory2Test.KeyManagerFactoryProviderClass ) ; java.security.Security.insertProviderAt ( mProv , 2 ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mProv = new org.apache.harmony.security.tests.support.SpiEngUtils ( ) . new org.apache.harmony.tests.javax.net.ssl.MyProvider ( "MyKMFProvider" , "Provider for testing" , org.apache.harmony.tests.javax.net.ssl.KeyManagerFactory2Test.srvKeyManagerFactory.concat ( "." ) . concat ( org.apache.harmony.tests.javax.net.ssl.KeyManagerFactory2Test.defaultAlg ) , org.apache.harmony.tests.javax.net.ssl.KeyManagerFactory2Test.KeyManagerFactoryProviderClass ) ; java.security.Security.insertProviderAt ( mProv , 2 ) ; }
Source:
public void actionPerformed ( com.intellij.openapi.actionSystem.AnActionEvent e ) { com.intellij.openapi.project.Project project = PlatformDataKeys.PROJECT.getData ( e.getDataContext ( ) ) ; if ( project == null ) { project = com.intellij.openapi.project.ProjectManager.getInstance ( ) . getDefaultProject ( ) ; } if ( com.intellij.ide.actions.ShowStructureSettingsAction.isGradleProject ( project ) ) { com.intellij.openapi.ui.Messages.showInfoMessage ( ( "We will provide a UI to configure project settings later. " + "Until then, please manually edit your build.gradle file(s.)" ) , "Project Structure" ) ; return ; } com.intellij.openapi.options.ShowSettingsUtil.getInstance ( ) . editConfigurable ( project , OptionsEditorDialog.DIMENSION_KEY , com.intellij.openapi.roots.ui.configuration.ProjectStructureConfigurable.getInstance ( project ) ) ; }

Target:
public static void showDisabledProjectStructureDialogMessage ( ) { com.intellij.openapi.ui.Messages.showInfoMessage ( ( "We will provide a UI to configure project settings later. " + "Until then, please manually edit your build.gradle file(s.)" ) , "Project Structure" ) ; }
Source:
public final void testCollectIds3 ( ) { java.util.Map < java.lang.String , com.android.ide.common.layout.Pair < java.lang.String , java.lang.String > > idMap = new java.util.HashMap < java.lang.String , com.android.ide.common.layout.Pair < java.lang.String , java.lang.String > > ( ) ; com.android.ide.common.api.IDragElement [ ] elements = createSampleElements ( ) ; java.util.Map < java.lang.String , com.android.ide.common.layout.Pair < java.lang.String , java.lang.String > > ids = new com.android.ide.common.layout.BaseLayout ( ) . collectIds ( idMap , elements ) ; assertEquals ( 5 , ids.size ( ) ) ; assertContainsSame ( java.util.Arrays.asList ( "@+id/Button01" , "@+id/Button02" , "@+id/Button011" , "@+id/Button012" , "@+id/LinearLayout01" ) , ids.keySet ( ) ) ; assertEquals ( com.android.ide.common.layout.Pair.of ( "@+id/LinearLayout01" , "android.widget.LinearLayout" ) , ids.get ( "@+id/LinearLayout01" ) ) ; }

Target:
public final void testCollectIds3 ( ) { java.util.Map < java.lang.String , com.android.ide.common.layout.Pair < java.lang.String , java.lang.String > > idMap = new java.util.HashMap < java.lang.String , com.android.ide.common.layout.Pair < java.lang.String , java.lang.String > > ( ) ; com.android.ide.common.api.IDragElement [ ] elements = createSampleElements ( ) ; java.util.Map < java.lang.String , com.android.ide.common.layout.Pair < java.lang.String , java.lang.String > > ids = new com.android.ide.common.layout.BaseLayoutRule ( ) . collectIds ( idMap , elements ) ; assertEquals ( 5 , ids.size ( ) ) ; assertContainsSame ( java.util.Arrays.asList ( "@+id/Button01" , "@+id/Button02" , "@+id/Button011" , "@+id/Button012" , "@+id/LinearLayout01" ) , ids.keySet ( ) ) ; assertEquals ( com.android.ide.common.layout.Pair.of ( "@+id/LinearLayout01" , "android.widget.LinearLayout" ) , ids.get ( "@+id/LinearLayout01" ) ) ; }
Source:
void assertPhoneAccountRegistered ( final android.telecom.PhoneAccountHandle handle ) { waitUntilConditionIsTrueOrTimeout ( new android.telecom.cts.BaseTelecomTestWithMockServices.Condition ( ) { @ java.lang.Override public java.lang.Object expected ( ) { return true ; } @ java.lang.Override public java.lang.Object actual ( ) { return ( mTelecomManager.getPhoneAccount ( handle ) ) != null ; } } , android.telecom.cts.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS , ( "Phone account registration failed for " + handle ) ) ; }

Target:
void assertPhoneAccountRegistered ( final android.telecom.PhoneAccountHandle handle ) { waitUntilConditionIsTrueOrTimeout ( new android.telecom.cts.BaseTelecomTestWithMockServices.Condition ( ) { @ java.lang.Override public java.lang.Object expected ( ) { return true ; } @ java.lang.Override public java.lang.Object actual ( ) { return ( mTelecomManager.getPhoneAccount ( handle ) ) != null ; } } , android.telecom.cts.TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS , ( "Phone account registration failed for " + handle ) ) ; }
Source:
private void init ( ) { final android.os.Messenger messenger = getMessenger ( ) ; if ( messenger == null ) throw new java.lang.RuntimeException ( "Failed to initialize" ) ; android.os.HandlerThread t = new android.os.HandlerThread ( "NsdManager" ) ; t.start ( ) ; mHandler = new android.net.nsd.NsdManager.ServiceHandler ( t.getLooper ( ) ) ; mAsyncChannel.connect ( mContext , mHandler , messenger ) ; try { mConnected.await ( ) ; } catch ( java.lang.InterruptedException e ) { android.util.Log.e ( android.net.nsd.NsdManager.TAG , "interrupted wait at init" ) ; } }

Target:
private static void fatal ( java.lang.String msg ) { android.util.Log.e ( android.net.nsd.NsdManager.TAG , msg ) ; throw new java.lang.RuntimeException ( msg ) ; }
Source:
public com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation getAnnotation ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedPackage pkg , @ com.android.annotations.NonNull java.lang.String type ) { com.android.tools.lint.ExternalAnnotationRepository.ClassInfo c = findPackage ( pkg ) ; if ( c == null ) { return null ; } if ( ( c.annotations ) != null ) { for ( com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation : c.annotations ) { if ( type.equals ( annotation.getSignature ( ) ) ) { return annotation ; } } } return null ; }

Target:
public java.util.List < com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation > getAnnotations ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedPackage pkg ) { com.android.tools.lint.ExternalAnnotationRepository.ClassInfo c = findPackage ( pkg ) ; if ( c == null ) { return null ; } return c.getAnnotations ( ) ; }
Source:
public void updateConnectStatus ( ) { getPassButton ( ) . setEnabled ( ( ( mOutputDevInfo ) != null ) ) ; }

Target:
public void updateConnectStatus ( ) { mRecordBtn.setEnabled ( ( ( mIsPeripheralAttached ) && ( ( mSelectedProfile ) != null ) ) ) ; mRecordLoopbackBtn.setEnabled ( ( ( mIsPeripheralAttached ) && ( ( mSelectedProfile ) != null ) ) ) ; getPassButton ( ) . setEnabled ( ( ( ( mSelectedProfile ) != null ) && ( ( mOutputDevInfo ) != null ) ) ) ; }
Source:
public void testSetToNow0 ( ) throws java.lang.Exception { android.text.format.Time t = new android.text.format.Time ( android.text.format.Time.TIMEZONE_UTC ) ; t.setToNow ( ) ; long currentTime = java.lang.System.currentTimeMillis ( ) ; long time = t.toMillis ( false ) ; assertEquals ( currentTime , time , 500 ) ; }

Target:
public void testSetToNow0 ( ) throws java.lang.Exception { android.text.format.Time t = new android.text.format.Time ( android.text.format.Time.TIMEZONE_UTC ) ; long currentTime = java.lang.System.currentTimeMillis ( ) ; t.setToNow ( ) ; long time = t.toMillis ( false ) ; assertEquals ( currentTime , time , 999 ) ; }