auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testRightEventBitItIsForwarded ( ) throws java.lang.Exception { setUpMocks ( false , true ) ; com.ericsson.gerrit.plugins.syncevents.Context.setForwardedEvent ( ) ; eventHandler.onEvent ( event ) ; com.ericsson.gerrit.plugins.syncevents.Context.unsetForwardedEvent ( ) ; verifyAll ( ) ; }

Target:
public void testRightEventIsForwarded ( ) throws java.lang.Exception { setUpMocks ( true ) ; com.ericsson.gerrit.plugins.syncevents.Context.setForwardedEvent ( ) ; eventHandler.onEvent ( event ) ; com.ericsson.gerrit.plugins.syncevents.Context.unsetForwardedEvent ( ) ; org.mockito.Mockito.verifyZeroInteractions ( restSession ) ; }
Source:
public java.lang.Object createEntry ( final java.lang.Object key ) throws java.lang.Exception { return lookup ( ( ( com.google.gerrit.client.reviewdb.Account.Id ) ( key ) ) ) ; }

Target:
protected com.google.gerrit.server.account.AccountState createEntry ( com.google.gerrit.client.reviewdb.Account.Id key ) throws java.lang.Exception { return lookup ( key ) ; }
Source:
private void header ( final int col , final java.lang.String title ) { table.setText ( 0 , col , title ) ; table.getCellFormatter ( ) . addStyleName ( 0 , col , "header" ) ; }

Target:
private void header ( final int col , final java.lang.String title ) { table.setText ( 0 , col , title ) ; table.getCellFormatter ( ) . addStyleName ( 0 , col , Gerrit.RESOURCES.css ( ) . header ( ) ) ; }
Source:
protected void onExit ( int rc ) { eventListenerRegistration.remove ( ) ; synchronized ( taskLock ) { done = true ; } super . onExit ( rc ) ; }

Target:
private void removeEventListenerRegistration ( ) { if ( ( eventListenerRegistration ) != null ) { eventListenerRegistration.remove ( ) ; } }
Source:
static void postSignIn ( ) { com.google.gerrit.client.Gerrit.refreshMenuBar ( ) ; }

Target:
static void postSignIn ( ) { com.google.gerrit.client.Gerrit.refreshMenuBar ( ) ; for ( final com.google.gerrit.client.SignedInListener l : com.google.gerrit.client.Gerrit.signedInListeners ) { l.onSignIn ( ) ; } }
Source:
public com.google.gerrit.reviewdb.client.Project.NameKey getProjectNameKey ( ) { return null ; }

Target:
public com.google.gerrit.reviewdb.client.Project.NameKey getProjectNameKey ( ) { return new com.google.gerrit.reviewdb.client.Project.NameKey ( "testProject" ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.projects.ConfigInfo result ) { commentLinkProcessor = new com.google.gerrit.client.ui.CommentLinkProcessor ( result.commentlinks ( ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.projects.ConfigInfoCache.Entry result ) { commentLinkProcessor = result.getCommentLinkProcessor ( ) ; }
Source:
public void testCreateProjectWithoutCapability_Forbidden ( ) throws com.google.gwtorm.server.OrmException , com.jcraft.jsch.JSchException , java.io.IOException { com.google.gerrit.acceptance.TestAccount user = accounts.create ( "user" , "user@example.com" , "User" ) ; com.google.gerrit.acceptance.RestResponse r = new com.google.gerrit.acceptance.RestSession ( server , user ) . put ( "/projects/newProject" ) ; org.junit.Assert.assertEquals ( HttpStatus.SC_FORBIDDEN , r.getStatusCode ( ) ) ; }

Target:
public void testCreateProjectWithoutCapability_Forbidden ( ) throws com.google.gwtorm.server.OrmException , com.jcraft.jsch.JSchException , java.io.IOException { com.google.gerrit.acceptance.RestResponse r = userSession.put ( "/projects/newProject" ) ; org.junit.Assert.assertEquals ( HttpStatus.SC_FORBIDDEN , r.getStatusCode ( ) ) ; }
Source:
protected void preDisplay ( final com.google.gerrit.client.dashboards.DashboardMap result ) { dashes.display ( result ) ; }

Target:
protected void preDisplay ( com.google.gerrit.client.rpc.NativeList < com.google.gerrit.client.dashboards.DashboardList > result ) { dashes.display ( result ) ; }
Source:
public void configure ( ) { java.net.InetSocketAddress addr = new java.net.InetSocketAddress ( com.google.common.net.InetAddresses.forString ( "127.0.0.1" ) , 1234 ) ; bind ( java.net.SocketAddress.class ) . annotatedWith ( com.google.gerrit.server.RemotePeer.class ) . toInstance ( addr ) ; }

Target:
protected void configure ( ) { bind ( org.eclipse.jgit.lib.Config.class ) . annotatedWith ( com.google.gerrit.server.config.GerritServerConfig.class ) . toInstance ( cfg ) ; }
Source:
protected void configure ( ) { bind ( com.ericsson.gerrit.plugins.syncindex.Configuration.class ) . toInstance ( config ) ; bind ( org.apache.http.impl.client.CloseableHttpClient.class ) . toProvider ( com.ericsson.gerrit.plugins.syncindex.HttpClientProvider.class ) . in ( Scopes.SINGLETON ) ; }

Target:
protected void configure ( ) { bind ( com.ericsson.gerrit.plugins.highavailability.Configuration.class ) . toInstance ( config ) ; bind ( org.apache.http.impl.client.CloseableHttpClient.class ) . toProvider ( com.ericsson.gerrit.plugins.highavailability.HttpClientProvider.class ) . in ( Scopes.SINGLETON ) ; }
Source:
public java.util.Optional < com.googlesource.gerrit.plugins.webhooks.EventProcessor.Request > process ( com.google.gerrit.server.events.ProjectEvent event , com.googlesource.gerrit.plugins.webhooks.RemoteConfig remote ) { if ( ! ( shouldProcess ( event , remote ) ) ) { return null ; } return doProcess ( event , remote ) ; }

Target:
public java.util.Optional < com.googlesource.gerrit.plugins.webhooks.EventProcessor.Request > process ( com.google.gerrit.server.events.ProjectEvent event , com.googlesource.gerrit.plugins.webhooks.RemoteConfig remote ) { if ( ! ( shouldProcess ( event , remote ) ) ) { return java.util.Optional.empty ( ) ; } return doProcess ( event , remote ) ; }
Source:
public void deleteCommentIfPresent ( com.google.gerrit.reviewdb.client.PatchLineComment c ) { if ( draftNotes.containsComment ( c ) ) { verifyComment ( c ) ; deleteComments.add ( c ) ; } }

Target:
public void deleteCommentIfPresent ( com.google.gerrit.reviewdb.client.PatchLineComment c ) throws com.google.gwtorm.server.OrmException { if ( draftNotes.load ( ) . containsComment ( c ) ) { verifyComment ( c ) ; deleteComments.add ( c ) ; } }
Source:
protected void createProject ( java.lang.String name ) throws com.google.gerrit.extensions.restapi.RestApiException { createProject ( name , null ) ; }

Target:
protected Project.NameKey createProject ( java.lang.String nameSuffix ) throws com.google.gerrit.extensions.restapi.RestApiException { return createProject ( nameSuffix , null ) ; }
Source:
public void setup ( ) throws java.io.IOException { com.google.gerrit.server.git.ValidationError.Sink sink = org.easymock.EasyMock.createNiceMock ( ValidationError.Sink.class ) ; org.easymock.EasyMock.replay ( sink ) ; groupList = com.google.gerrit.server.git.GroupList.parse ( com.google.gerrit.server.git.GroupListTest.TEXT , sink ) ; }

Target:
public void setup ( ) throws java.io.IOException { com.google.gerrit.server.git.ValidationError.Sink sink = org.easymock.EasyMock.createNiceMock ( ValidationError.Sink.class ) ; org.easymock.EasyMock.replay ( sink ) ; groupList = com.google.gerrit.server.git.GroupList.parse ( com.google.gerrit.server.git.GroupListTest.PROJECT , com.google.gerrit.server.git.GroupListTest.TEXT , sink ) ; }
Source:
public boolean canSeeMember ( com.google.gerrit.reviewdb.Account.Id id ) { return isVisible ( ) ; }

Target:
public boolean canAddGroup ( com.google.gerrit.reviewdb.AccountGroup.Id id ) { return isOwner ( ) ; }
Source:
public com.google.gerrit.extensions.api.access.ProjectAccessInfo access ( com.google.gerrit.extensions.api.access.ProjectAccessInput p ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return setAccess.apply ( checkExists ( ) , p ) ; } catch ( java.io.IOException | com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot put access rights" , e ) ; } }

Target:
public com.google.gerrit.extensions.api.access.ProjectAccessInfo access ( com.google.gerrit.extensions.api.access.ProjectAccessInput p ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return setAccess.apply ( checkExists ( ) , p ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot put access rights" , e ) ; } }
Source:
public final java.lang.String getTemplatesPath ( ) { return templatesPath.getPath ( ) ; }

Target:
public final java.io.File getCommentPath ( java.lang.String fileName ) { return new java.io.File ( templatesPath.getPath ( ) , fileName ) ; }
Source:
public void testParseComplex ( ) throws java.lang.Exception { com.google.gerrit.server.git.QueryList ql = com.google.gerrit.server.git.QueryList.parse ( com.google.gerrit.server.git.QueryListTest.L_COMPLEX , null ) ; com.google.common.truth.Truth.assertThat ( ql.getQuery ( com.google.gerrit.server.git.QueryListTest.N_FOO ) ) . isEqualTo ( com.google.gerrit.server.git.QueryListTest.Q_COMPLEX ) ; }

Target:
public void testParseComplex ( ) throws java.lang.Exception { com.google.gerrit.server.account.QueryList ql = com.google.gerrit.server.account.QueryList.parse ( com.google.gerrit.server.account.QueryListTest.L_COMPLEX , null ) ; com.google.common.truth.Truth.assertThat ( ql.getQuery ( com.google.gerrit.server.account.QueryListTest.N_FOO ) ) . isEqualTo ( com.google.gerrit.server.account.QueryListTest.Q_COMPLEX ) ; }
Source:
public void updated ( ) { lastUpdatedOn = new java.sql.Timestamp ( java.lang.System.currentTimeMillis ( ) ) ; }

Target:
public void resetLastUpdatedOn ( ) { lastUpdatedOn = new java.sql.Timestamp ( java.lang.System.currentTimeMillis ( ) ) ; }
Source:
private com.google.gerrit.server.git.ChangeSet getForOpenChange ( com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.server.CurrentUser user ) throws com.google.gwtorm.server.OrmException , java.io.IOException { return mergeSuperSet.completeChangeSet ( dbProvider.get ( ) , c , user ) ; }

Target:
private java.util.List < com.google.gerrit.server.query.change.ChangeData > getForOpenChange ( com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.server.CurrentUser user ) throws com.google.gwtorm.server.OrmException , java.io.IOException { com.google.gerrit.server.git.ChangeSet cs = mergeSuperSet.completeChangeSet ( dbProvider.get ( ) , c , user ) ; return cs.changes ( ) . asList ( ) ; }
Source:
public final native int lineAtHeight ( double height , java.lang.String mode ) ;

Target:
public final native void on ( java.lang.String event , net.codemirror.lib.CodeMirror.GutterClickHandler handler ) ;
Source:
public boolean canSee ( com.google.gerrit.reviewdb.Account.Id id ) { return isOwner ( ) ; }

Target:
public boolean canSee ( com.google.gerrit.reviewdb.Account.Id id ) { return isVisible ( ) ; }
Source:
public com.google.gerrit.reviewdb.client.com.google.gwtorm [ ] members ( ) { return new com.google.gwtorm.client.Key < ? > [ ] { trackingId , trackingSystem } ; }

Target:
public com.google.gerrit.reviewdb.client.com.google.gwtorm [ ] members ( ) { return new com.google.gwtorm.client.Key < ? > [ ] { trackingKey , trackingSystem } ; }
Source:
public com.google.gerrit.reviewdb.client.AccountSshKey addKey ( com.google.gerrit.reviewdb.client.Account.Id accountId , java.lang.String pub ) throws com.google.gerrit.common.errors.InvalidSshKeyException , java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { try ( com.google.gerrit.server.account.VersionedAuthorizedKeys authorizedKeys = open ( accountId ) ) { com.google.gerrit.reviewdb.client.AccountSshKey key = authorizedKeys.addKey ( pub ) ; commit ( authorizedKeys ) ; return key ; } }

Target:
public com.google.gerrit.reviewdb.client.AccountSshKey addKey ( com.google.gerrit.reviewdb.client.Account.Id accountId , java.lang.String pub ) throws com.google.gerrit.common.errors.InvalidSshKeyException , java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { try ( com.google.gerrit.server.account.VersionedAuthorizedKeys authorizedKeys = read ( accountId ) ) { com.google.gerrit.reviewdb.client.AccountSshKey key = authorizedKeys.addKey ( pub ) ; commit ( authorizedKeys ) ; return key ; } }
Source:
public void execute ( com.google.gerrit.server.update.BatchUpdateListener listener ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.update.UpdateException { com.google.gerrit.server.update.NoteDbBatchUpdate.execute ( com.google.common.collect.ImmutableList.of ( this ) , listener , requestId , false ) ; }

Target:
public void execute ( com.google.gerrit.server.update.BatchUpdateListener listener ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.update.UpdateException { com.google.gerrit.server.update.FusedNoteDbBatchUpdate.execute ( com.google.common.collect.ImmutableList.of ( this ) , listener , requestId , false ) ; }
Source:
public void onSuccess ( com.google.gerrit.common.data.ChangeDetail result ) { if ( redirect ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( result.getChange ( ) . getId ( ) ) ) ; } else { super . onSuccess ( result ) ; } }

Target:
public void onFailure ( java.lang.Throwable caught ) { b.setEnabled ( true ) ; new com.google.gerrit.client.ErrorDialog ( caught ) . center ( ) ; }
Source:
final native boolean has_revision_number ( ) ;

Target:
final native boolean hasRevisionNumber ( ) ;
Source:
public void testThreeLevelTreeWithAllIndexPredicates ( ) throws java.lang.Exception { com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in = parse ( "-status:abandoned (status:open OR status:merged)" ) ; org.junit.Assert.assertEquals ( query ( parse ( "status:new OR status:submitted OR status:draft OR status:merged" ) ) , rewrite.rewrite ( in , 0 , com.google.gerrit.common.data.GlobalCapability.DEFAULT_MAX_QUERY_LIMIT ) ) ; }

Target:
public void testThreeLevelTreeWithAllIndexPredicates ( ) throws java.lang.Exception { com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in = parse ( "-status:abandoned (file:a OR file:b)" ) ; org.junit.Assert.assertEquals ( query ( in ) , rewrite.rewrite ( in , 0 , com.google.gerrit.common.data.GlobalCapability.DEFAULT_MAX_QUERY_LIMIT ) ) ; }
Source:
static com.google.gerrit.server.notedb.NoteDbModule forTest ( ) { return new com.google.gerrit.server.notedb.NoteDbModule ( true ) ; }

Target:
static com.google.gerrit.server.notedb.NoteDbModule forTest ( org.eclipse.jgit.lib.Config cfg ) { return new com.google.gerrit.server.notedb.NoteDbModule ( cfg , true ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( event.getCharCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { doAddNew ( ) ; } }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { submitOnSelection = false ; if ( ( event.getCharCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { if ( nameTxt.isSuggestionListShowing ( ) ) { submitOnSelection = true ; } else { doAddNew ( ) ; } } }
Source:
public void run ( ) { if ( cm.vim ( ) . hasSearchHighlight ( ) ) { cm.vim ( ) . handleKey ( "n" ) ; } else { getChunkManager ( ) . diffChunkNav ( cm , Direction.NEXT ) . run ( ) ; } }

Target:
public void run ( ) { skipManager.removeAll ( ) ; skipManager.render ( context , diff ) ; updateRenderEntireFile ( ) ; }
Source:
final void setState ( com.google.gerrit.reviewdb.client.Project.State s ) { setStateRaw ( s.name ( ) ) ; }

Target:
final void setState ( com.google.gerrit.extensions.api.projects.ProjectState s ) { setStateRaw ( s.name ( ) ) ; }
Source:
private com.google.gwtorm.schema.QueryModel toQueryModel ( com.google.gwtorm.schema.KeyModel info ) throws com.google.gwtorm.client.OrmException { return new com.google.gwtorm.schema.QueryModel ( model , info.getName ( ) , ( ( "WHERE " + ( info.getField ( ) . getFieldName ( ) ) ) + "=?" ) ) ; }

Target:
private boolean needsIndexFunction ( final com.google.gwtorm.schema.QueryModel info ) { return ( info.hasWhere ( ) ) || ( info.hasOrderBy ( ) ) ; }
Source:
private static java.lang.String base ( com.google.gerrit.reviewdb.client.AccountGroup.UUID groupUUID ) { java.lang.String id = com.google.gwt.http.client.URL.encodePathSegment ( groupUUID.get ( ) ) ; return ( "/groups/" + id ) + "/" ; }

Target:
private static com.google.gerrit.client.rpc.RestApi group ( com.google.gerrit.reviewdb.client.AccountGroup.UUID group ) { return new com.google.gerrit.client.rpc.RestApi ( "/groups/" ) . id ( group.get ( ) ) ; }
Source:
public com.google.gerrit.extensions.restapi.RestModifyView < com.google.gerrit.server.project.ProjectResource , ? > create ( com.google.gerrit.server.project.ProjectResource parent , java.lang.String id ) throws com.google.gerrit.extensions.restapi.RestApiException { if ( "default" . equals ( id ) ) { return createDefault.get ( ) ; } throw new com.google.gerrit.extensions.restapi.ResourceNotFoundException ( id ) ; }

Target:
public com.google.gerrit.extensions.restapi.RestModifyView < com.google.gerrit.server.project.ProjectResource , ? > create ( com.google.gerrit.server.project.ProjectResource parent , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.RestApiException { if ( id.equals ( "default" ) ) { return createDefault.get ( ) ; } throw new com.google.gerrit.extensions.restapi.ResourceNotFoundException ( id ) ; }
Source:
public int intValue ( ) { return this . val ; }

Target:
public double doubleValue ( ) { return ( ( double ) ( this . val ) ) ; }
Source:
private static org.bouncycastle.openpgp.PGPPublicKeyRingCollection empty ( ) throws java.io.IOException , org.bouncycastle.openpgp.PGPException { return new org.bouncycastle.openpgp.PGPPublicKeyRingCollection ( java.util.Collections.< org.bouncycastle.openpgp.PGPPublicKeyRing > emptyList ( ) ) ; }

Target:
public org.bouncycastle.openpgp.PGPPublicKeyRingCollection get ( long keyId ) throws java.io.IOException , org.bouncycastle.openpgp.PGPException { return new org.bouncycastle.openpgp.PGPPublicKeyRingCollection ( get ( keyId , null ) ) ; }
Source:
public Account.Id getAccountId ( ) { return key.accountId ; }

Target:
public Account.Id getAccountId ( ) { return accountId ; }
Source:
void patchScript ( com.google.gerrit.reviewdb.Patch.Key key , com.google.gerrit.reviewdb.PatchSet.Id a , com.google.gerrit.reviewdb.PatchSet.Id b , com.google.gerrit.common.data.PatchScriptSettings settings , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.PatchScript > callback ) ;

Target:
void patchScript ( com.google.gerrit.reviewdb.Patch.Key key , com.google.gerrit.reviewdb.PatchSet.Id a , com.google.gerrit.reviewdb.PatchSet.Id b , com.google.gerrit.reviewdb.AccountDiffPreference diffPrefs , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.PatchScript > callback ) ;
Source:
public void addOtherUsersGpgKey ( ) throws java.lang.Exception { addExternalIdEmail ( admin , "test5@example.com" ) ; com.google.gerrit.reviewdb.client.AccountExternalId extId = new com.google.gerrit.reviewdb.client.AccountExternalId ( user.getId ( ) , new com.google.gerrit.reviewdb.client.AccountExternalId.Key ( "foo:myId" ) ) ; db.accountExternalIds ( ) . insert ( java.util.Collections.singleton ( extId ) ) ; com.google.gerrit.server.git.gpg.TestKey key = com.google.gerrit.server.git.gpg.TestKey.key5 ( ) ; gApi.accounts ( ) . self ( ) . addGpgKey ( key.getPublicKeyArmored ( ) ) ; setApiUser ( user ) ; exception.expect ( com.google.gerrit.extensions.restapi.ResourceConflictException.class ) ; exception.expectMessage ( "GPG key already associated with another account" ) ; gApi.accounts ( ) . self ( ) . addGpgKey ( key.getPublicKeyArmored ( ) ) ; }

Target:
public void reAddExistingGpgKey ( ) throws java.lang.Exception { addExternalIdEmail ( admin , "test5@example.com" ) ; com.google.gerrit.server.git.gpg.TestKey key = com.google.gerrit.server.git.gpg.TestKey.key5 ( ) ; java.lang.String id = com.google.gerrit.server.git.gpg.PublicKeyStore.keyIdToString ( key.getKeyId ( ) ) ; org.bouncycastle.openpgp.PGPPublicKey pk = key.getPublicKey ( ) ; com.google.gerrit.extensions.common.GpgKeyInfo info = gApi.accounts ( ) . self ( ) . putGpgKeys ( com.google.common.collect.ImmutableList.of ( com.google.gerrit.acceptance.api.accounts.AccountIT.armor ( pk ) ) ) . get ( id ) ; com.google.common.truth.Truth.assertThat ( info.userIds ) . hasSize ( 2 ) ; com.google.gerrit.acceptance.api.accounts.AccountIT.assertIteratorSize ( 2 , getOnlyKeyFromStore ( key ) . getUserIDs ( ) ) ; pk = org.bouncycastle.openpgp.PGPPublicKey.removeCertification ( pk , "foo:myId" ) ; info = gApi.accounts ( ) . self ( ) . putGpgKeys ( com.google.common.collect.ImmutableList.of ( com.google.gerrit.acceptance.api.accounts.AccountIT.armor ( pk ) ) ) . get ( id ) ; com.google.common.truth.Truth.assertThat ( info.userIds ) . hasSize ( 1 ) ; com.google.gerrit.acceptance.api.accounts.AccountIT.assertIteratorSize ( 1 , getOnlyKeyFromStore ( key ) . getUserIDs ( ) ) ; }
Source:
private static boolean skip ( java.lang.String name ) { return ( name.startsWith ( "refs/changes/" ) ) || ( name.startsWith ( GitRepositoryManager.REFS_CACHE_AUTOMERGE ) ) ; }

Target:
private static boolean skip ( java.lang.String name ) { return ( ( name.startsWith ( "refs/changes/" ) ) || ( name.startsWith ( GitRepositoryManager.REFS_CACHE_AUTOMERGE ) ) ) || ( com.google.gerrit.server.util.MagicBranch.isMagicBranch ( name ) ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.VoidResult n ) { prefs.copyTo ( com.google.gerrit.client.Gerrit.getEditPreferences ( ) ) ; }

Target:
void onShowBase ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > e ) { java.lang.Boolean value = e.getValue ( ) ; prefs.showBase ( value ) ; if ( ( view ) != null ) { view.showBase.setValue ( value , true ) ; } }
Source:
public void run ( ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( revision ) , new com.google.gerrit.client.changes.ChangeScreen ( revision ) ) ; }

Target:
public void run ( ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange2 ( revision.getParentKey ( ) , java.lang.String.valueOf ( revision.get ( ) ) ) ) ; }
Source:
java.lang.String secondsAgo ( long seconds ) ;

Target:
java.lang.String patchTableSize_ModifyBinaryFiles ( java.lang.String bytesInserted , java.lang.String bytesDeleted ) ;
Source:
public void changeProjectSettings ( final com.google.gerrit.reviewdb.Project update , final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ProjectDetail > callback ) { changeProjectSettingsFactory.create ( update ) . to ( callback ) ; }

Target:
private static org.eclipse.jgit.lib.ObjectId getBase ( final java.lang.String baseRevision ) { if ( ( baseRevision != null ) && ( ! ( baseRevision.isEmpty ( ) ) ) ) { return org.eclipse.jgit.lib.ObjectId.fromString ( baseRevision ) ; } return null ; }
Source:
public void testThreeLevelTreeWithAllIndexPredicates ( ) throws java.lang.Exception { com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in = parse ( "-status:abandoned (file:a OR file:b)" ) ; com.google.common.truth.Truth.assertThat ( rewrite.rewrite ( in , 0 , com.google.gerrit.common.data.GlobalCapability.DEFAULT_MAX_QUERY_LIMIT ) ) . isEqualTo ( query ( in ) ) ; }

Target:
public void testThreeLevelTreeWithAllIndexPredicates ( ) throws java.lang.Exception { com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in = parse ( "-status:abandoned (file:a OR file:b)" ) ; com.google.common.truth.Truth.assertThat ( rewrite.rewrite ( in , com.google.gerrit.server.index.IndexRewriteTest.options ( 0 , com.google.gerrit.common.data.GlobalCapability.DEFAULT_MAX_QUERY_LIMIT ) ) ) . isEqualTo ( query ( in ) ) ; }
Source:
public void cancel ( ) { if ( ( status ) != ( GitJobStatus.SYNC ) ) { return ; } cancelled = true ; status = GitJobStatus.CANCELLED ; rollback ( ) ; }

Target:
public void cancel ( ) { if ( ( status.getStatus ( ) ) != ( com.googlesrouce.gerrit.plugins.github.git.GitJobStatus.Code.SYNC ) ) { return ; } cancelled = true ; status.update ( GitJobStatus.Code.CANCELLED , "Cancelled" , "Cancelled" ) ; rollback ( ) ; }
Source:
void onCancel ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { input.setFocus ( false ) ; com.google.gwt.user.client.ui.UIObject.setVisible ( form , false ) ; }

Target:
void onCancel ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { input.setFocus ( false ) ; com.google.gwt.user.client.ui.UIObject.setVisible ( form , false ) ; com.google.gwt.user.client.ui.UIObject.setVisible ( show , true ) ; }
Source:
private final java.lang.String upgrade ( ) { return ( "\nRun reindex to rebuild the index:\n" + "$ java -jar gerrit.war reindex -d " ) + ( sitePaths.site_path.getAbsolutePath ( ) ) ; }

Target:
private final java.lang.String upgrade ( ) { return ( "\nRun reindex to rebuild the index:\n" + "$ java -jar gerrit.war reindex -d " ) + ( sitePaths.site_path.toAbsolutePath ( ) ) ; }
Source:
public void onFailure ( java.lang.Throwable caught ) { enableOnFailure.setEnabled ( true ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { b.setEnabled ( true ) ; new com.google.gerrit.client.ErrorDialog ( caught ) . center ( ) ; }
Source:
protected void migrateData ( com.google.gerrit.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException , java.sql.SQLException { }

Target:
protected void migrateData ( com.google.gerrit.reviewdb.ReviewDb db , com.google.gerrit.server.schema.UpdateUI ui ) throws com.google.gwtorm.client.OrmException , java.sql.SQLException { }
Source:
private static java.lang.String toRFCAddressString ( com.google.gerrit.extensions.common.AccountInfo info ) { return new com.google.gerrit.server.mail.Address ( info.name , info.email ) . toString ( ) ; }

Target:
private static java.lang.String toRfcAddressString ( com.google.gerrit.extensions.common.AccountInfo info ) { return new com.google.gerrit.server.mail.Address ( info.name , info.email ) . toString ( ) ; }
Source:
public void onFailure ( final java.lang.Throwable caught ) { if ( com.google.gerrit.client.rpc.RestApi.isNotFound ( caught ) ) { com.google.gerrit.client.Gerrit.getUserAccount ( ) . setUserName ( null ) ; display ( ) ; } else { super . onFailure ( caught ) ; } }

Target:
public void onFailure ( final java.lang.Throwable caught ) { if ( com.google.gerrit.client.rpc.RestApi.isNotFound ( caught ) ) { com.google.gerrit.client.Gerrit.getUserAccount ( ) . username ( null ) ; display ( ) ; } else { super . onFailure ( caught ) ; } }
Source:
protected void configure ( ) { bind ( com.google.gerrit.httpd.GerritOptions.class ) . toInstance ( new com.google.gerrit.httpd.GerritOptions ( headless , slave ) ) ; if ( test ) { bind ( com.google.gerrit.server.securestore.SecureStore.class ) . toProvider ( com.google.gerrit.pgm.util.SecureStoreProvider.class ) ; } }

Target:
protected void configure ( ) { bind ( com.google.gerrit.httpd.GerritOptions.class ) . toInstance ( new com.google.gerrit.httpd.GerritOptions ( headless , slave ) ) ; if ( test ) { bind ( com.google.gerrit.server.securestore.SecureStore.class ) . toProvider ( com.google.gerrit.server.securestore.SecureStoreProvider.class ) ; } }
Source:
public void noNotificationForDraftPatchSetsForWatchersInNotifyConfig ( ) throws java.lang.Exception { com.google.gerrit.server.mail.Address addr = new com.google.gerrit.server.mail.Address ( "Watcher" , "watcher@example.com" ) ; com.google.gerrit.server.git.NotifyConfig nc = new com.google.gerrit.server.git.NotifyConfig ( ) ; nc.addEmail ( addr ) ; nc.setName ( "team" ) ; nc.setHeader ( NotifyConfig.Header.TO ) ; nc.setTypes ( java.util.EnumSet.of ( NotifyType.NEW_PATCHSETS ) ) ; com.google.gerrit.server.git.ProjectConfig cfg = projectCache.checkedGet ( project ) . getConfig ( ) ; cfg.putNotifyConfig ( "team" , nc ) ; saveProjectConfig ( project , cfg ) ; com.google.gerrit.acceptance.PushOneCommit.Result r = pushFactory.create ( db , admin.getIdent ( ) , testRepo , "subject" , "a" , "a1" ) . to ( "refs/for/master" ) ; r.assertOkStatus ( ) ; sender.clear ( ) ; r = pushFactory.create ( db , admin.getIdent ( ) , testRepo , "subject" , "a" , "a2" , r.getChangeId ( ) ) . to ( "refs/for/master%draft" ) ; r.assertOkStatus ( ) ; com.google.common.truth.Truth.assertThat ( sender.getMessages ( ) ) . isEmpty ( ) ; }

Target:
public void noNotificationForDraftPatchSetsForWatchersInNotifyConfig ( ) throws java.lang.Exception { com.google.gerrit.server.mail.Address addr = new com.google.gerrit.server.mail.Address ( "Watcher" , "watcher@example.com" ) ; com.google.gerrit.server.git.NotifyConfig nc = new com.google.gerrit.server.git.NotifyConfig ( ) ; nc.addEmail ( addr ) ; nc.setName ( "team" ) ; nc.setHeader ( NotifyConfig.Header.TO ) ; nc.setTypes ( java.util.EnumSet.of ( NotifyType.NEW_PATCHSETS , NotifyType.ALL_COMMENTS ) ) ; com.google.gerrit.server.git.ProjectConfig cfg = projectCache.checkedGet ( project ) . getConfig ( ) ; cfg.putNotifyConfig ( "team" , nc ) ; saveProjectConfig ( project , cfg ) ; com.google.gerrit.acceptance.PushOneCommit.Result r = pushFactory.create ( db , admin.getIdent ( ) , testRepo , "subject" , "a" , "a1" ) . to ( "refs/for/master" ) ; r.assertOkStatus ( ) ; sender.clear ( ) ; r = pushFactory.create ( db , admin.getIdent ( ) , testRepo , "subject" , "a" , "a2" , r.getChangeId ( ) ) . to ( "refs/for/master%draft" ) ; r.assertOkStatus ( ) ; com.google.common.truth.Truth.assertThat ( sender.getMessages ( ) ) . isEmpty ( ) ; setApiUser ( admin ) ; com.google.gerrit.extensions.api.changes.ReviewInput in = new com.google.gerrit.extensions.api.changes.ReviewInput ( ) ; in.message = "comment" ; gApi.changes ( ) . id ( r.getChangeId ( ) ) . current ( ) . review ( in ) ; com.google.common.truth.Truth.assertThat ( sender.getMessages ( ) ) . isEmpty ( ) ; }
Source:
public void onSuccess ( final com.google.gerrit.common.data.ProjectList result ) { projectsTab.display ( result.getProjects ( ) ) ; if ( firstPopupLoad ) { firstPopupLoad = false ; displayPopup ( ) ; } }

Target:
public void onSuccess ( final com.google.gerrit.client.projects.ProjectMap result ) { projectsTab.display ( result ) ; if ( firstPopupLoad ) { firstPopupLoad = false ; displayPopup ( ) ; } }
Source:
public com.google.common.collect.ImmutableList < com.google.gerrit.reviewdb.client.AccountGroup.UUID > load ( com.google.gerrit.reviewdb.client.AccountGroup.UUID key ) throws com.google.gerrit.common.errors.NoSuchGroupException , com.google.gwtorm.server.OrmException { try ( com.google.gerrit.reviewdb.server.ReviewDb db = schema.open ( ) ) { return groups.getIncludes ( db , key ) . collect ( com.google.common.collect.ImmutableList.toImmutableList ( ) ) ; } }

Target:
public com.google.common.collect.ImmutableList < com.google.gerrit.reviewdb.client.AccountGroup.UUID > load ( com.google.gerrit.reviewdb.client.AccountGroup.UUID key ) throws com.google.gerrit.common.errors.NoSuchGroupException , com.google.gwtorm.server.OrmException { try ( com.google.gerrit.reviewdb.server.ReviewDb db = schema.open ( ) ) { return groups.getSubgroups ( db , key ) . collect ( com.google.common.collect.ImmutableList.toImmutableList ( ) ) ; } }
Source:
public com.google.gerrit.server.IdentifiedUser create ( com.google.gerrit.reviewdb.client.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , realm , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , remotePeerProvider , dbProvider , id , null ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser runAs ( com.google.gerrit.reviewdb.client.Account.Id id , com.google.gerrit.server.CurrentUser caller ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , starredChangesUtil , authConfig , realm , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , remotePeerProvider , dbProvider , id , caller ) ; }
Source:
public void changeProjectSettings ( final com.google.gerrit.reviewdb.Project update , final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ProjectDetail > callback ) { changeProjectSettingsFactory.create ( update ) . to ( callback ) ; }

Target:
public void changeProjectSettings ( final com.google.gerrit.reviewdb.client.Project update , final com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ProjectDetail > callback ) { changeProjectSettingsFactory.create ( update ) . to ( callback ) ; }
Source:
void onDeleteEdit ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( com.google.gwt.user.client.Window.confirm ( Resources.C.deleteChangeEdit ( ) ) ) { com.google.gerrit.client.change.EditActions.deleteEdit ( changeId , publishEdit , rebaseEdit , deleteEdit ) ; } }

Target:
void onPublishEdit ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.EditActions.publishEdit ( getProject ( ) , changeId , publishEdit , rebaseEdit , deleteEdit ) ; }
Source:
private com.google.gerrit.lucene.LuceneChangeIndex.QuerySource exactQuery ( com.google.gerrit.server.index.IndexPredicate < com.google.gerrit.server.query.change.ChangeData > p ) { return new com.google.gerrit.lucene.LuceneChangeIndex.QuerySource ( new org.apache.lucene.search.TermQuery ( new org.apache.lucene.index.Term ( p.getOperator ( ) , p.getValue ( ) ) ) ) ; }

Target:
private org.apache.lucene.search.Query exactQuery ( com.google.gerrit.server.index.IndexPredicate < com.google.gerrit.server.query.change.ChangeData > p ) { return new org.apache.lucene.search.TermQuery ( new org.apache.lucene.index.Term ( p.getOperator ( ) , p.getValue ( ) ) ) ; }
Source:
java.lang.String needApproval ( java.lang.String categoryName , java.lang.String value , java.lang.String valueName ) ;

Target:
java.lang.String groupIsNotAllowed ( java.lang.String group ) ;
Source:
public com.google.gerrit.extensions.restapi.Response < com.google.gerrit.extensions.common.PluginInfo > apply ( com.google.gerrit.server.plugins.PluginResource resource , com.google.gerrit.server.plugins.InstallPlugin.Input input ) throws com.google.gerrit.extensions.restapi.BadRequestException , com.google.gerrit.extensions.restapi.MethodNotAllowedException , java.io.IOException { return new com.google.gerrit.server.plugins.InstallPlugin ( loader , resource.getName ( ) , false ) . apply ( TopLevelResource.INSTANCE , input ) ; }

Target:
public com.google.gerrit.extensions.restapi.Response < com.google.gerrit.extensions.common.PluginInfo > apply ( com.google.gerrit.server.plugins.PluginResource resource , com.google.gerrit.extensions.common.InstallPluginInfo input ) throws com.google.gerrit.extensions.restapi.BadRequestException , com.google.gerrit.extensions.restapi.MethodNotAllowedException , java.io.IOException { return new com.google.gerrit.server.plugins.InstallPlugin ( loader , resource.getName ( ) , false ) . apply ( TopLevelResource.INSTANCE , input ) ; }
Source:
public com.google.gerrit.server.project.ListProjects setType ( com.google.gerrit.server.project.ListProjects.FilterType type ) { this . type = ( type != null ) ? type : com.google.gerrit.server.project.ListProjects.FilterType.CODE ; return this ; }

Target:
private java.lang.Iterable < com.google.gerrit.reviewdb.client.Project.NameKey > scan ( ) { if ( ( matchPrefix ) != null ) { return projectCache.byName ( matchPrefix ) ; } else { return projectCache.all ( ) ; } }
Source:
public void evictAll ( ) { byName.removeAll ( ) ; }

Target:
public com.google.gerrit.server.project.ProjectState get ( final com.google.gerrit.reviewdb.Project.NameKey projectName ) { return byName.get ( projectName ) ; }
Source:
void unifiedPatchDetail ( com.google.gerrit.client.reviewdb.Patch.Key key , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.data.UnifiedPatchDetail > callback ) ;

Target:
void patchComments ( com.google.gerrit.client.reviewdb.Patch.Key key , com.google.gerrit.client.reviewdb.PatchSet.Id a , com.google.gerrit.client.reviewdb.PatchSet.Id b , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.patches.CommentDetail > callback ) ;
Source:
public void addToNonExistingGroup_NotFound ( ) throws java.lang.Exception { try { gApi.groups ( ) . id ( "non-existing" ) . addMembers ( "admin" ) ; } catch ( com.google.gerrit.extensions.restapi.ResourceNotFoundException expected ) { } }

Target:
public void addToNonExistingGroup_NotFound ( ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.ResourceNotFoundException.class ) ; gApi.groups ( ) . id ( "non-existing" ) . addMembers ( "admin" ) ; }
Source:
public void configure ( ) { factory ( ChangeUpdate.Factory.class ) ; factory ( ChangeDraftUpdate.Factory.class ) ; factory ( DraftCommentNotes.Factory.class ) ; factory ( NoteDbUpdateManager.Factory.class ) ; }

Target:
public void rebuild ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Change.Id changeId ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
public java.util.Collection < java.lang.String > getWarnings ( com.google.gerrit.server.project.ProjectResource rsrc ) throws com.google.gwtorm.server.OrmException { return dbHandler.getWarnings ( rsrc.getControl ( ) . getProject ( ) ) ; }

Target:
public java.util.Collection < java.lang.String > getWarnings ( com.google.gerrit.server.project.ProjectResource rsrc ) throws com.google.gwtorm.server.OrmException { return dbHandler.getWarnings ( rsrc.getProjectState ( ) . getProject ( ) ) ; }
Source:
public com.google.gerrit.reviewdb.AccountGeneralPreferences.DownloadUrl getDownloadUrl ( ) { if ( ( downloadUrl ) == null ) { return null ; } return com.google.gerrit.reviewdb.AccountGeneralPreferences.DownloadUrl.valueOf ( downloadUrl ) ; }

Target:
public com.google.gerrit.reviewdb.AccountGeneralPreferences.DownloadScheme getDownloadUrl ( ) { if ( ( downloadUrl ) == null ) { return null ; } return com.google.gerrit.reviewdb.AccountGeneralPreferences.DownloadScheme.valueOf ( downloadUrl ) ; }
Source:
public com.google.gerrit.extensions.common.ChangeInfo get ( ) throws com.google.gerrit.extensions.restapi.RestApiException { return get ( java.util.EnumSet.allOf ( com.google.gerrit.extensions.common.ListChangesOption.class ) ) ; }

Target:
public com.google.gerrit.extensions.common.ChangeInfo get ( ) throws com.google.gerrit.extensions.restapi.RestApiException { return get ( java.util.EnumSet.complementOf ( java.util.EnumSet.of ( ListChangesOption.CHECK ) ) ) ; }
Source:
public final java.util.List < com.google.gerrit.server.query.Predicate < T > > getChildren ( ) { return java.util.Collections.unmodifiableList ( children ) ; }

Target:
public final java.util.List < com.google.gerrit.index.query.Predicate < T > > getChildren ( ) { return java.util.Collections.unmodifiableList ( children ) ; }
Source:
public synchronized javax.sql.DataSource get ( ) { if ( ! ( init ) ) { com.google.gerrit.pgm.util.SiteLibraryLoaderUtil.loadSiteLib ( libdir ) ; init = true ; } return super . get ( ) ; }

Target:
public synchronized javax.sql.DataSource get ( ) { if ( ! ( init ) ) { com.google.gerrit.common.SiteLibraryLoaderUtil.loadSiteLib ( libdir ) ; init = true ; } return super . get ( ) ; }
Source:
public java.lang.String getString ( java.lang.String name , java.lang.String defaultValue ) { return getValue ( name , com.google.common.base.Functions.< java.lang.String > identity ( ) , defaultValue ) ; }

Target:
public java.lang.String getString ( java.lang.String name , java.lang.String defaultValue ) { return com.google.common.base.Objects.firstNonNull ( cfg.getString ( com.google.gerrit.server.config.PluginConfig.PLUGIN , pluginName , name ) , defaultValue ) ; }
Source:
boolean isTokenValid ( final java.lang.String keyIn ) { return ( isSignedIn ( ) ) && ( key.token.equals ( keyIn ) ) ; }

Target:
boolean isTokenValid ( final java.lang.String inputToken ) { return ( isSignedIn ( ) ) && ( key.getToken ( ) . equals ( inputToken ) ) ; }
Source:
public void bySelf ( ) throws java.lang.Exception { assertQuery ( "self" , currentUserInfo ) ; setAnonymous ( ) ; assertQuery ( "self" ) ; }

Target:
public void asAnonymous ( ) throws java.lang.Exception { com.google.gerrit.extensions.common.AccountInfo user1 = newAccount ( "user1" ) ; setAnonymous ( ) ; assertQuery ( "9999999" ) ; assertQuery ( "self" ) ; assertQuery ( ( "username:" + ( user1.username ) ) , user1 ) ; }
Source:
public abstract java.lang.Iterable < com.google.gerrit.reviewdb.Project.NameKey > all ( ) ;

Target:
public abstract org.eclipse.jgit.lib.Repository createRepository ( com.google.gerrit.reviewdb.Project.NameKey name ) throws org.eclipse.jgit.errors.RepositoryNotFoundException ;
Source:
public com.google.gerrit.server.index.ChangeIndex getSearchIndex ( ) { return searchIndex.get ( ) ; }

Target:
public com.google.gerrit.server.index.ChangeIndex getSearchIndex ( ) { try { initLatch.await ( ) ; } catch ( java.lang.InterruptedException e ) { } return searchIndex.get ( ) ; }
Source:
public java.lang.String format ( java.lang.String projectName , java.lang.String revision , com.googlesource.gerrit.plugins.xdocs.ConfigSection cfg , java.lang.String raw ) { return ( "<pre>" + ( org.apache.commons.lang.StringEscapeUtils.escapeHtml ( raw ) ) ) + "</pre>" ; }

Target:
public java.lang.String format ( java.lang.String projectName , java.lang.String path , java.lang.String revision , java.lang.String abbrRev , com.googlesource.gerrit.plugins.xdocs.ConfigSection cfg , java.lang.String raw ) { return ( "<pre>" + ( org.apache.commons.lang.StringEscapeUtils.escapeHtml ( raw ) ) ) + "</pre>" ; }
Source:
private void createTestSite ( ) throws java.io.IOException { com.google.gerrit.server.config.SitePaths sitePath = new com.google.gerrit.server.config.SitePaths ( com.google.gerrit.acceptance.PluginDaemonTest.testSite ) ; pluginsSitePath = java.nio.file.Files.createDirectories ( sitePath.plugins_dir ) ; java.nio.file.Files.createDirectories ( sitePath.tmp_dir ) ; }

Target:
private void createTestSiteDirs ( ) throws java.io.IOException { testSite = tempSiteDir.getRoot ( ) . toPath ( ) ; com.google.gerrit.server.config.SitePaths sitePath = new com.google.gerrit.server.config.SitePaths ( testSite ) ; pluginsSitePath = java.nio.file.Files.createDirectories ( sitePath.plugins_dir ) ; java.nio.file.Files.createDirectories ( sitePath.tmp_dir ) ; }
Source:
void display ( final com.google.gerrit.client.reviewdb.Account account ) { showSiteHeader.setValue ( account.isShowSiteHeader ( ) ) ; setDefaultContext ( account.getDefaultContext ( ) ) ; }

Target:
private void display ( final com.google.gerrit.client.reviewdb.AccountGeneralPreferences p ) { showSiteHeader.setValue ( p.isShowSiteHeader ( ) ) ; displayDefaultContext ( p.getDefaultContext ( ) ) ; }
Source:
public void onSuccess ( com.googlesource.gerrit.plugins.labelui.client.PreferencesInfo result ) { }

Target:
public void onSuccess ( com.googlesource.gerrit.plugins.labelui.client.PreferencesInfo result ) { showSavedStatus ( ) ; }
Source:
public void updateChange ( com.google.gerrit.server.git.BatchUpdate.ChangeContext ctx ) throws java.lang.Exception { ctx.getChangeUpdate ( ) . setTopic ( magicBranch.topic ) ; }

Target:
public void updateChange ( com.google.gerrit.server.git.BatchUpdate.ChangeContext ctx ) throws java.lang.Exception { ctx.getUpdate ( ps.getId ( ) ) . setTopic ( magicBranch.topic ) ; }
Source:
private void allowTagDeletion ( ) throws java.lang.Exception { removePermission ( Permission.PUSH , project , "refs/tags/*" ) ; grant ( Permission.PUSH , project , "refs/tags/*" , true , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS ) ; }

Target:
private void removePushFromRefsTags ( ) throws java.lang.Exception { removePermission ( Permission.PUSH , project , "refs/tags/*" ) ; }
Source:
public void renameFile ( org.eclipse.jgit.lib.Repository repository , com.google.gerrit.server.project.ChangeControl changeControl , java.lang.String currentFilePath , java.lang.String newFilePath ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.permissions.PermissionBackendException , com.google.gerrit.server.project.InvalidChangeOperationException , com.google.gwtorm.server.OrmException , java.io.IOException { modifyTree ( repository , changeControl , new com.google.gerrit.server.edit.tree.RenameFileModification ( currentFilePath , newFilePath ) ) ; }

Target:
public void renameFile ( org.eclipse.jgit.lib.Repository repository , com.google.gerrit.server.notedb.ChangeNotes notes , java.lang.String currentFilePath , java.lang.String newFilePath ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.permissions.PermissionBackendException , com.google.gerrit.server.project.InvalidChangeOperationException , com.google.gwtorm.server.OrmException , java.io.IOException { modifyTree ( repository , notes , new com.google.gerrit.server.edit.tree.RenameFileModification ( currentFilePath , newFilePath ) ) ; }
Source:
private java.util.Collection < com.google.gerrit.reviewdb.client.Account.Id > fetchAccountIds ( com.google.gerrit.server.change.ChangeResource rsrc ) throws com.google.gwtorm.server.OrmException { return approvalsUtil.getReviewers ( dbProvider.get ( ) , rsrc.getNotes ( ) ) . values ( ) ; }

Target:
private java.util.Collection < com.google.gerrit.reviewdb.client.Account.Id > fetchAccountIds ( com.google.gerrit.server.change.ChangeResource rsrc ) throws com.google.gwtorm.server.OrmException { return approvalsUtil.getReviewers ( dbProvider.get ( ) , rsrc.getNotes ( ) ) . all ( ) ; }
Source:
public java.lang.Void call ( ) throws java.io.IOException { for ( com.google.gerrit.server.index.ChangeIndex i : getWriteIndexes ( ) ) { i.delete ( id ) ; } return null ; }

Target:
public java.lang.Void call ( ) throws java.io.IOException { for ( com.google.gerrit.server.index.ChangeIndex i : getWriteIndexes ( ) ) { i.delete ( id ) ; } fireChangeDeletedFromIndexEvent ( id ) ; return null ; }
Source:
public void createNewDraftChangeNotAllowed ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( isAllowDrafts ( ) ) . isFalse ( ) ; com.google.gerrit.extensions.common.ChangeInput ci = newChangeInput ( ChangeStatus.DRAFT ) ; assertCreateFails ( ci , com.google.gerrit.extensions.restapi.MethodNotAllowedException.class , "draft workflow is disabled" ) ; }

Target:
public void createNewDraftChangeNotAllowed ( ) throws java.lang.Exception { com.google.gerrit.extensions.common.ChangeInput ci = newChangeInput ( ChangeStatus.DRAFT ) ; assertCreateFails ( ci , com.google.gerrit.extensions.restapi.BadRequestException.class , "unsupported change status" ) ; }
Source:
public java.util.List < com.google.gerrit.common.data.PermissionRange > getLabelRanges ( ) { return getRefControl ( ) . getLabelRanges ( ) ; }

Target:
public com.google.gerrit.common.data.PermissionRange getRange ( java.lang.String permission ) { return getRefControl ( ) . getRange ( permission , isOwner ( ) ) ; }
Source:
public com.google.gerrit.server.IdentifiedUser create ( com.google.gerrit.server.AccessPath accessPath , com.google.inject.Provider < java.net.SocketAddress > remotePeerProvider , com.google.gerrit.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( accessPath , authConfig , canonicalUrl , realm , accountCache , remotePeerProvider , null , id ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( com.google.gerrit.server.AccessPath accessPath , com.google.inject.Provider < java.net.SocketAddress > remotePeerProvider , com.google.gerrit.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( accessPath , authConfig , canonicalUrl , realm , accountCache , starredChangesCache , remotePeerProvider , null , id ) ; }
Source:
void patchScript ( com.google.gerrit.client.reviewdb.Patch.Key key , com.google.gerrit.client.reviewdb.PatchSet.Id a , com.google.gerrit.client.reviewdb.PatchSet.Id b , int context , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.data.PatchScript > callback ) ;

Target:
void patchScript ( com.google.gerrit.client.reviewdb.Patch.Key key , com.google.gerrit.client.reviewdb.PatchSet.Id a , com.google.gerrit.client.reviewdb.PatchSet.Id b , com.google.gerrit.client.patches.PatchScriptSettings settings , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.data.PatchScript > callback ) ;