auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void remove ( ) { for ( com.google.gerrit.metrics.CallbackMetric < ? > m : all ) { m.remove ( ) ; } }

Target:
public void remove ( ) { for ( com.google.gerrit.metrics.dropwizard.CallbackMetricGlue m : all ) { m.remove ( ) ; } }
Source:
public RefUpdate.Result modifyFile ( com.google.gerrit.server.edit.ChangeEdit edit , java.lang.String file , byte [ ] content ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.project.InvalidChangeOperationException , java.io.IOException { return modify ( com.google.gerrit.server.edit.ChangeEditModifier.TreeOperation.CHANGE_ENTRY , edit , file , content ) ; }

Target:
public RefUpdate.Result modifyFile ( com.google.gerrit.server.edit.ChangeEdit edit , java.lang.String file , com.google.gerrit.extensions.restapi.RawInput content ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.project.InvalidChangeOperationException , java.io.IOException { return modify ( com.google.gerrit.server.edit.ChangeEditModifier.TreeOperation.CHANGE_ENTRY , edit , file , content ) ; }
Source:
public boolean supportsRoleChanges ( com.gitblit.models.UserModel user , com.gitblit.Constants.Role role ) { return false ; }

Target:
public boolean updateTeamModels ( java.util.Collection < com.gitblit.models.TeamModel > arg0 ) { return false ; }
Source:
public void publish ( final com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId , final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ChangeDetail > callback ) { publishAction.create ( patchSetId ) . to ( callback ) ; }

Target:
public void publish ( final com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId , final com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ChangeDetail > callback ) { publishAction.create ( patchSetId ) . to ( callback ) ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.server.cache.CachePool.class ) . to ( com.google.gerrit.server.cache.EhcachePoolImpl.class ) ; bind ( com.google.gerrit.server.cache.EhcachePoolImpl.class ) ; listener ( ) . to ( com.google.gerrit.server.cache.EhcachePoolImpl.Lifecycle.class ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.server.cache.CachePool.class ) . to ( com.google.gerrit.ehcache.EhcachePoolImpl.class ) ; bind ( com.google.gerrit.ehcache.EhcachePoolImpl.class ) ; listener ( ) . to ( com.google.gerrit.ehcache.EhcachePoolImpl.Lifecycle.class ) ; }
Source:
public void commentOnWipChangeByOwnerCcingSelf ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageWipChange ( com.google.gerrit.server.account.WatchConfig.NotifyType.ALL_COMMENTS ) ; review ( sc.owner , sc.changeId , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.CC_ON_OWN_COMMENTS ) ; assertThat ( sender ) . notSent ( ) ; }

Target:
public void commentOnWipChangeByOwner ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageWipChange ( ) ; review ( sc.owner , sc.changeId , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.ENABLED ) ; assertThat ( sender ) . notSent ( ) ; }
Source:
public void fire ( com.google.gerrit.reviewdb.client.Project.NameKey project , org.eclipse.jgit.lib.RefUpdate refUpdate , org.eclipse.jgit.transport.ReceiveCommand.Type type , com.google.gerrit.reviewdb.client.Account updater ) { fire ( project , refUpdate.getName ( ) , refUpdate.getOldObjectId ( ) , refUpdate.getNewObjectId ( ) , type , util.accountInfo ( updater ) ) ; }

Target:
public void fire ( com.google.gerrit.reviewdb.client.Project.NameKey project , org.eclipse.jgit.lib.RefUpdate refUpdate , org.eclipse.jgit.transport.ReceiveCommand.Type type , com.google.gerrit.server.account.AccountState updater ) { fire ( project , refUpdate.getName ( ) , refUpdate.getOldObjectId ( ) , refUpdate.getNewObjectId ( ) , type , util.accountInfo ( updater ) ) ; }
Source:
public void encode ( T obj , final byte [ ] data , int offset , int length ) { encode ( obj , com.google.protobuf.CodedOutputStream.newInstance ( data , offset , length ) ) ; }

Target:
public void encode ( T obj , final byte [ ] data , int offset , int length ) { com.google.protobuf.CodedOutputStream out = com.google.protobuf.CodedOutputStream.newInstance ( data , offset , length ) ; encode ( obj , out ) ; com.google.gwtorm.protobuf.ProtobufCodec.flush ( out ) ; }
Source:
public Account.Id apply ( java.lang.String refPart ) { return Account.Id.fromRefPart ( refPart ) ; }

Target:
public Account.Id apply ( java.lang.String refPart ) { return Account.Id.parse ( refPart ) ; }
Source:
public com.google.gerrit.common.data.PermissionRange getRange ( java.lang.String permission ) { if ( com.google.gerrit.common.data.GlobalCapability.hasRange ( permission ) ) { return com.google.gerrit.server.account.CapabilityControl.toRange ( permission , getRules ( permission ) ) ; } return null ; }

Target:
public com.google.gerrit.common.data.PermissionRange getRange ( java.lang.String permission ) { if ( com.google.gerrit.common.data.GlobalCapability.hasRange ( permission ) ) { return com.google.gerrit.server.account.AccountLimits.toRange ( permission , getRules ( permission ) ) ; } return null ; }
Source:
private java.lang.String pushTagForExistingCommit ( com.google.gerrit.acceptance.rest.project.PushTagIT.TagType tagType , org.eclipse.jgit.transport.RemoteRefUpdate.Status expectedStatus ) throws java.lang.Exception { return pushTag ( tagType , null , false , expectedStatus ) ; }

Target:
private java.lang.String pushTagForNewCommit ( com.google.gerrit.acceptance.rest.project.PushTagIT.TagType tagType , org.eclipse.jgit.transport.RemoteRefUpdate.Status expectedStatus ) throws java.lang.Exception { return pushTag ( tagType , null , true , false , expectedStatus ) ; }
Source:
public void onChange ( com.google.gwt.event.dom.client.ChangeEvent event ) { setEnabledForUseContentMerge ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.projects.ConfigInfo result ) { enableForm ( ) ; display ( result ) ; }
Source:
void close ( ) { if ( ( update ) != null ) { update.close ( ) ; } ins.close ( ) ; rw.close ( ) ; repo.close ( ) ; }

Target:
void close ( ) { if ( ( update ) != null ) { update.close ( ) ; } rw.close ( ) ; reader.close ( ) ; ins.close ( ) ; repo.close ( ) ; }
Source:
void onCancel ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { hide ( ) ; }

Target:
void onCancel ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { hide ( ) ; fileTable.registerKeys ( ) ; }
Source:
private static void assertDeleted ( java.lang.String expectedNewName , com.google.gerrit.server.patch.PatchListEntry e ) { com.google.gerrit.acceptance.server.change.PatchListCacheIT.assertName ( expectedNewName , e ) ; com.google.common.truth.Truth.assertThat ( e.getChangeType ( ) ) . isEqualTo ( ChangeType.DELETED ) ; }

Target:
private static void assertDeleted ( java.lang.String expectedNewName , com.google.gerrit.server.diff.PatchListEntry e ) { com.google.gerrit.acceptance.server.change.PatchListCacheIT.assertName ( expectedNewName , e ) ; com.google.common.truth.Truth.assertThat ( e.getChangeType ( ) ) . isEqualTo ( ChangeType.DELETED ) ; }
Source:
private static java.util.List < com.google.gerrit.server.query.Predicate > list ( final com.google.gerrit.server.query.Predicate ... predicates ) { return java.util.Arrays.asList ( predicates ) ; }

Target:
private static < T > java.util.List < com.google.gerrit.server.query.Predicate < T > > list ( final com.google.gerrit.server.query.Predicate < T > ... predicates ) { return java.util.Arrays.asList ( predicates ) ; }
Source:
public void testBadEventAndItIsForwarded ( ) throws java.lang.Exception { setUpMocks ( false ) ; com.ericsson.gerrit.plugins.syncevents.Context.setForwardedEvent ( ) ; eventHandler.onEvent ( event ) ; com.ericsson.gerrit.plugins.syncevents.Context.unsetForwardedEvent ( ) ; org.mockito.Mockito.verifyZeroInteractions ( restSession ) ; }

Target:
public void testBadEventAndItIsForwarded ( ) throws java.lang.Exception { setUpMocks ( false ) ; com.ericsson.gerrit.plugins.highavailability.forwarder.Context.setForwardedEvent ( true ) ; eventHandler.onEvent ( event ) ; com.ericsson.gerrit.plugins.highavailability.forwarder.Context.unsetForwardedEvent ( ) ; org.mockito.Mockito.verifyZeroInteractions ( eventForwarder ) ; }
Source:
public java.lang.String getLocalUser ( ) { if ( isScheme ( com.google.gerrit.reviewdb.client.AccountExternalId.SCHEME_GERRIT ) ) { return getExternalId ( ) . substring ( com.google.gerrit.reviewdb.client.AccountExternalId.SCHEME_GERRIT.length ( ) ) ; } return null ; }

Target:
public java.lang.String getLocalUser ( ) { if ( externalId.isScheme ( com.google.gerrit.server.account.ExternalId.SCHEME_GERRIT ) ) { return externalId.id ( ) ; } return null ; }
Source:
com.google.gerrit.server.project.ChangeControl create ( com.google.gerrit.server.project.RefControl refControl , com.google.gerrit.server.notedb.ChangeNotes notes ) { return new com.google.gerrit.server.project.ChangeControl ( changeDataFactory , approvalsUtil , refControl , notes , patchSetUtil ) ; }

Target:
com.google.gerrit.server.permissions.ChangeControl create ( com.google.gerrit.server.permissions.RefControl refControl , com.google.gerrit.server.notedb.ChangeNotes notes ) { return new com.google.gerrit.server.permissions.ChangeControl ( changeDataFactory , approvalsUtil , refControl , notes , patchSetUtil ) ; }
Source:
public void remove ( ) { registry.remove ( name ) ; }

Target:
public void remove ( ) { for ( java.lang.String name : names ) { descriptions.remove ( name ) ; registry.remove ( name ) ; } }
Source:
private static java.lang.Class < ? > findClass ( java.lang.String klazzname ) { try { return java.lang.Class.forName ( klazzname ) ; } catch ( java.lang.ClassNotFoundException e ) { throw com.google.gerrit.pgm.shell.JythonShell.noShell ( ( ( "Class " + klazzname ) + " not found" ) , e ) ; } }

Target:
private static java.lang.Class < ? > findClass ( java.lang.String klazzname ) { try { return java.lang.Class.forName ( klazzname ) ; } catch ( java.lang.ClassNotFoundException e ) { throw com.google.gerrit.pgm.JythonShell.noShell ( ( ( "Class " + klazzname ) + " not found" ) , e ) ; } }
Source:
public void evictAfterRename ( com.google.gerrit.reviewdb.client.AccountGroup.NameKey oldName ) throws java.io.IOException { if ( oldName != null ) { byName.invalidate ( oldName.get ( ) ) ; } }

Target:
public void evict ( com.google.gerrit.reviewdb.client.AccountGroup.NameKey groupName ) { if ( groupName != null ) { byName.invalidate ( groupName.get ( ) ) ; } }
Source:
void onCancel ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( ( cm.isClean ( generation ) ) || ( com.google.gwt.user.client.Window.confirm ( EditConstants.I.cancelUnsavedChanges ( ) ) ) ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChangeInEditMode ( revision.getParentKey ( ) ) ) ; } }

Target:
private void upToChange ( ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChangeInEditMode ( revision.getParentKey ( ) ) ) ; }
Source:
public void createDraftChange ( ) throws java.lang.Exception { assertChange ( newChangeInfo ( ChangeStatus.DRAFT ) ) ; }

Target:
public void createDraftChange ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( isAllowDrafts ( ) ) . isTrue ( ) ; assertChange ( newChangeInfo ( ChangeStatus.DRAFT ) ) ; }
Source:
void onSave ( com.google.gwt.event.dom.client.ClickEvent e ) { e.stopPropagation ( ) ; onSave ( ) ; }

Target:
void onSave ( com.google.gwt.event.dom.client.ClickEvent e ) { e.stopPropagation ( ) ; save ( null ) ; }
Source:
public void parseReviewer ( ) throws java.lang.Exception { assertParseSucceeds ( ( "Update change\n" + ( ( ( "\n" + "Patch-Set: 1\n" ) + "Reviewer: Change Owner <1@gerrit>\n" ) + "CC: Other Account <2@gerrit>\n" ) ) ) ; assertParseFails ( ( "Update change\n" + ( ( "\n" + "Patch-Set: 1\n" ) + "Reviewer: 1@gerrit\n" ) ) ) ; }

Target:
public void parseReviewer ( ) throws java.lang.Exception { assertParseSucceeds ( ( "Update change\n" + ( ( ( ( ( "\n" + "Branch: refs/heads/master\n" ) + "Patch-Set: 1\n" ) + "Reviewer: Change Owner <1@gerrit>\n" ) + "CC: Other Account <2@gerrit>\n" ) + "Subject: This is a test change\n" ) ) ) ; assertParseFails ( ( "Update change\n" + ( ( "\n" + "Patch-Set: 1\n" ) + "Reviewer: 1@gerrit\n" ) ) ) ; }
Source:
void setAutoHideDiffHeader ( boolean hide ) { diffTable.setAutoHideDiffHeader ( hide ) ; }

Target:
void setAutoHideDiffHeader ( boolean hide ) { scrollSynchronizer.setAutoHideDiffTableHeader ( hide ) ; }
Source:
public abstract boolean match ( T object ) throws com.google.gwtorm.server.OrmException ;

Target:
public boolean isMatchable ( ) { return ( this ) instanceof com.google.gerrit.server.query.Matchable ; }
Source:
private void assertNotesMigrationState ( com.google.gerrit.server.notedb.NotesMigrationState expected ) throws java.lang.Exception { gerritConfig.load ( ) ; com.google.common.truth.Truth.assertThat ( com.google.gerrit.server.notedb.NotesMigrationState.forConfig ( gerritConfig ) ) . hasValue ( expected ) ; }

Target:
private void assertNotesMigrationState ( com.google.gerrit.server.notedb.NotesMigrationState expected ) throws java.lang.Exception { noteDbConfig.load ( ) ; com.google.common.truth.Truth.assertThat ( com.google.gerrit.server.notedb.NotesMigrationState.forConfig ( noteDbConfig ) ) . hasValue ( expected ) ; }
Source:
public void sendRedirect ( java.lang.String msg ) { status = SC_FOUND ; }

Target:
public synchronized void sendRedirect ( java.lang.String msg ) { status = SC_FOUND ; committed = true ; }
Source:
public void testFindAfterDeleteGap ( ) { com.google.gerrit.client.diff.LineMapper mapper = new com.google.gerrit.client.diff.LineMapper ( ) ; mapper.appendDelete ( 10 ) ; org.junit.Assert.assertEquals ( 0 , mapper.lineOnOther ( Side.PARENT , 10 ) ) ; }

Target:
public void testFindInDeleteGap ( ) { com.google.gerrit.client.diff.LineMapper mapper = new com.google.gerrit.client.diff.LineMapper ( ) ; mapper.appendDelete ( 10 ) ; org.junit.Assert.assertEquals ( new com.google.gerrit.client.diff.LineMapper.LineOnOtherInfo ( ( - 1 ) , false ) , mapper.lineOnOther ( Side.PARENT , 9 ) ) ; }
Source:
private java.util.List < com.google.gerrit.server.patch.PatchListEntry > getCurrentPatches ( java.lang.String changeId ) throws java.lang.Exception { return patchListCache.get ( getKey ( null , getCurrentRevisionId ( changeId ) ) , project ) . getPatches ( ) ; }

Target:
private java.util.List < com.google.gerrit.server.diff.PatchListEntry > getCurrentPatches ( java.lang.String changeId ) throws java.lang.Exception { return patchListCache.get ( getKey ( null , getCurrentRevisionId ( changeId ) ) , project ) . getPatches ( ) ; }
Source:
java.lang.String getBaseUrl ( ) { return baseUrl ; }

Target:
java.net.URL getBaseUrl ( ) { return baseUrl ; }
Source:
public boolean supportsRoleChanges ( com.gitblit.models.TeamModel team , com.gitblit.Constants.Role role ) { return false ; }

Target:
public boolean updateUserModels ( java.util.Collection < com.gitblit.models.UserModel > arg0 ) { return false ; }
Source:
protected void formatChange ( ) { formatSalutation ( ) ; formatChangeDetail ( ) ; appendText ( "\n" ) ; appendText ( ( ( " " + ( getPullUrl ( ) ) ) + "\n" ) ) ; }

Target:
protected void formatChange ( ) throws com.google.gerrit.server.mail.EmailException { appendText ( velocifyFile ( "NewChange.vm" ) ) ; }
Source:
public java.lang.String resourcePath ( ) { return java.lang.String.format ( "/projects/%s/+refs/%s" , getProjectControl ( ) . getProjectState ( ) . getName ( ) , refName ) ; }

Target:
public java.lang.String resourcePath ( ) { if ( ( resourcePath ) == null ) { resourcePath = java.lang.String.format ( "/projects/%s/+refs/%s" , getProjectControl ( ) . getProjectState ( ) . getName ( ) , refName ) ; } return resourcePath ; }
Source:
void onReplace ( org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.reviewdb.client.Account.Id accountId , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toRemove , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toAdd ) throws java.io.IOException ;

Target:
void onUpdate ( org.eclipse.jgit.lib.ObjectId oldNotesRev , org.eclipse.jgit.lib.ObjectId newNotesRev , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > extId ) throws java.io.IOException ;
Source:
private com.google.gerrit.extensions.api.changes.AddReviewerResult addReviewer ( java.lang.String changeId , com.google.gerrit.extensions.api.changes.AddReviewerInput in ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse resp = adminRestSession.post ( ( ( "/changes/" + changeId ) + "/reviewers" ) , in ) ; return com.google.gerrit.acceptance.rest.change.ChangeReviewersIT.readContentFromJson ( resp , com.google.gerrit.extensions.api.changes.AddReviewerResult.class ) ; }

Target:
private com.google.gerrit.extensions.api.changes.AddReviewerResult addReviewer ( java.lang.String changeId , com.google.gerrit.extensions.api.changes.AddReviewerInput in , int expectedStatus ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse resp = adminRestSession.post ( ( ( "/changes/" + changeId ) + "/reviewers" ) , in ) ; return com.google.gerrit.acceptance.rest.change.ChangeReviewersIT.readContentFromJson ( resp , expectedStatus , com.google.gerrit.extensions.api.changes.AddReviewerResult.class ) ; }
Source:
public java.lang.String toString ( ) { return ( "CurrentUser[" + ( getAccountId ( ) ) ) + "]" ; }

Target:
public java.lang.String toString ( ) { return ( "IdentifiedUser[account " + ( getAccountId ( ) ) ) + "]" ; }
Source:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > byCommit ( java.lang.String hash ) throws com.google.gwtorm.server.OrmException { return query ( com.google.gerrit.server.query.change.InternalChangeQuery.commit ( com.google.gerrit.server.query.change.InternalChangeQuery.schema ( indexes ) , hash ) ) ; }

Target:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > byProjectCommit ( com.google.gerrit.reviewdb.client.Project.NameKey project , java.lang.String hash ) throws com.google.gwtorm.server.OrmException { return query ( com.google.gerrit.server.query.Predicate.and ( com.google.gerrit.server.query.change.InternalChangeQuery.project ( project ) , com.google.gerrit.server.query.change.InternalChangeQuery.commit ( hash ) ) ) ; }
Source:
private static com.google.gerrit.server.IdentifiedUser checkUser ( com.google.gerrit.server.project.RefControl ctl ) { com.google.common.base.Preconditions.checkArgument ( ctl.getCurrentUser ( ) . isIdentifiedUser ( ) , "only IdentifiedUser may create change" ) ; return ( ( com.google.gerrit.server.IdentifiedUser ) ( ctl.getCurrentUser ( ) ) ) ; }

Target:
private static com.google.gerrit.server.IdentifiedUser checkUser ( com.google.gerrit.server.project.RefControl ctl ) { com.google.common.base.Preconditions.checkArgument ( ctl.getUser ( ) . isIdentifiedUser ( ) , "only IdentifiedUser may create change" ) ; return ( ( com.google.gerrit.server.IdentifiedUser ) ( ctl.getUser ( ) ) ) ; }
Source:
void sendAsync ( ) { sendEmailsExecutor.submit ( this ) ; }

Target:
public void sendAsync ( ) { @ java.lang.SuppressWarnings ( value = "unused" ) java.util.concurrent.Future < ? > possiblyIgnoredError = sendEmailsExecutor.submit ( this ) ; }
Source:
public java.lang.String decode ( final java.lang.String e ) { return com.google.gwt.http.client.URL.decodeComponent ( e ) ; }

Target:
public java.lang.String decode ( final java.lang.String e ) { return com.google.gwt.http.client.URL.decodeQueryString ( e ) ; }
Source:
static void deleteSessionCookie ( ) { com.google.gwt.user.client.Cookies.removeCookie ( com.google.gerrit.client.Gerrit.SESSION_COOKIE ) ; com.google.gerrit.client.Gerrit.myAccount = null ; com.google.gerrit.client.Gerrit.refreshMenuBar ( ) ; }

Target:
static void deleteSessionCookie ( ) { com.google.gerrit.client.Gerrit.myAccount = null ; com.google.gerrit.client.Gerrit.xsrfToken = null ; com.google.gerrit.client.Gerrit.refreshMenuBar ( ) ; com.google.gwt.user.client.Cookies.removeCookie ( "GerritAccount" ) ; }
Source:
void resizeCodeMirror ( ) { int height = getCodeMirrorHeight ( ) ; cmA.setHeight ( height ) ; cmB.setHeight ( height ) ; }

Target:
void resizeCodeMirror ( ) { int hdr = ( header.getOffsetHeight ( ) ) + ( diffTable.getHeaderHeight ( ) ) ; cmA.adjustHeight ( hdr ) ; cmB.adjustHeight ( hdr ) ; }
Source:
private static java.lang.String skip ( final java.lang.String prefix , final java.lang.String in ) { return in.substring ( prefix.length ( ) ) ; }

Target:
private static java.lang.String skip ( java.lang.String token ) { return token.substring ( com.google.gerrit.client.Dispatcher.prefixlen ) ; }
Source:
protected void assertResultEquals ( com.google.gerrit.reviewdb.client.Change expected , com.google.gerrit.server.change.ChangeJson.ChangeInfo actual ) { org.junit.Assert.assertEquals ( expected.getId ( ) . get ( ) , actual._number ) ; }

Target:
protected void assertResultEquals ( com.google.gerrit.reviewdb.client.Change expected , com.google.gerrit.extensions.common.ChangeInfo actual ) { com.google.common.truth.Truth.assertThat ( actual._number ) . isEqualTo ( expected.getId ( ) . get ( ) ) ; }
Source:
public void onSuccess ( ) { com.google.gerrit.client.Gerrit.display ( token , select ( ) ) ; }

Target:
public void onSuccess ( ) { com.google.gerrit.client.Gerrit.display ( token , new com.google.gerrit.client.documentation.DocScreen ( com.google.gerrit.client.Dispatcher.skip ( token ) ) ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.projects.ConfigInfoCache.Entry result ) { commentLinkProcessor = result.getCommentLinkProcessor ( ) ; setTheme ( result.getTheme ( ) ) ; com.google.gerrit.client.diff.DiffInfo diffInfo = diff ; diff = null ; display ( diffInfo ) ; }

Target:
protected void preDisplay ( com.google.gerrit.client.projects.ConfigInfoCache.Entry result ) { commentLinkProcessor = result.getCommentLinkProcessor ( ) ; setTheme ( result.getTheme ( ) ) ; com.google.gerrit.client.diff.DiffInfo diffInfo = diff ; diff = null ; display ( diffInfo ) ; }
Source:
public java.lang.Object apply ( com.google.gerrit.server.account.AccountResource resource , com.google.gerrit.server.account.CreateAccount.Input input ) throws com.google.gerrit.extensions.restapi.ResourceConflictException { throw new com.google.gerrit.extensions.restapi.ResourceConflictException ( ( ( "Account \"" + ( resource.getUser ( ) . getNameEmail ( ) ) ) + "\" already exists" ) ) ; }

Target:
public java.lang.Object apply ( com.google.gerrit.server.account.AccountResource resource , com.google.gerrit.server.account.CreateAccount.Input input ) throws com.google.gerrit.extensions.restapi.ResourceConflictException { throw new com.google.gerrit.extensions.restapi.ResourceConflictException ( "account exists" ) ; }
Source:
void setCurrentUrl ( com.google.gerrit.client.changes.DownloadUrlLink link ) { urls.setVisible ( false ) ; copyLabel.setText ( cmd ) ; }

Target:
protected void setCurrentUrl ( com.google.gerrit.client.download.DownloadUrlLink link ) { urls.setVisible ( false ) ; copyLabel.setText ( cmd ) ; }
Source:
public com.google.gerrit.server.project.TagResource parse ( com.google.gerrit.server.project.ProjectResource resource , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException , java.io.IOException { return new com.google.gerrit.server.project.TagResource ( resource.getControl ( ) , list.get ( resource , id ) ) ; }

Target:
public com.google.gerrit.server.project.CreateTag create ( com.google.gerrit.server.project.ProjectResource resource , com.google.gerrit.extensions.restapi.IdString name ) { return createTagFactory.create ( name.get ( ) ) ; }
Source:
public com.google.gerrit.client.account.AgreementInfo run ( final com.google.gerrit.client.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException { final com.google.gerrit.client.account.AgreementInfo i = new com.google.gerrit.client.account.AgreementInfo ( ) ; i.load ( com.google.gerrit.client.rpc.Common.getAccountId ( ) , db ) ; return i ; }

Target:
public void myAgreements ( final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.account.AgreementInfo > callback ) { agreementInfoFactory.create ( ) . to ( callback ) ; }
Source:
public void execute ( ) { new com.google.gerrit.client.auth.openid.OpenIdSignInDialog ( com.google.gerrit.common.auth.SignInMode.REGISTER , null ) . center ( ) ; }

Target:
public void execute ( ) { final java.lang.String to = com.google.gwt.user.client.History.getToken ( ) ; new com.google.gerrit.client.auth.openid.OpenIdSignInDialog ( com.google.gerrit.common.auth.SignInMode.REGISTER , to , null ) . center ( ) ; }
Source:
java.lang.String get ( java.lang.String name ) { return flags.cfg.getString ( section , null , name ) ; }

Target:
java.lang.String get ( java.lang.String name ) { return flags.cfg.getString ( section , subsection , name ) ; }
Source:
public void setChangedLines ( int insertions , int deletions ) { changedLines = new com.google.gerrit.server.query.change.ChangeData.ChangedLines ( insertions , deletions ) ; }

Target:
public void setChangedLines ( int insertions , int deletions ) { changedLines = com.google.common.base.Optional.of ( new com.google.gerrit.server.query.change.ChangeData.ChangedLines ( insertions , deletions ) ) ; }
Source:
public void checkCustom ( org.bouncycastle.openpgp.PGPPublicKey key , java.util.List < java.lang.String > problems ) { }

Target:
public com.google.gerrit.gpg.CheckResult checkCustom ( org.bouncycastle.openpgp.PGPPublicKey key ) { return com.google.gerrit.gpg.CheckResult.ok ( ) ; }
Source:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { if ( callback != null ) { callback.onFailure ( null ) ; } hide ( ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { buttonClicked = true ; if ( callback != null ) { callback.onFailure ( null ) ; } hide ( ) ; }
Source:
public static void restoreTime ( ) { com.google.gerrit.testutil.TestTimeUtil.useSystemTime ( ) ; }

Target:
public static void restoreTime ( ) { com.google.gerrit.testing.TestTimeUtil.useSystemTime ( ) ; }
Source:
public com.google.gerrit.acceptance.RestResponse delete ( java.lang.String endPoint ) throws java.io.IOException { org.apache.http.client.methods.HttpDelete delete = new org.apache.http.client.methods.HttpDelete ( ( ( ( url ) + "/a" ) + endPoint ) ) ; return new com.google.gerrit.acceptance.RestResponse ( getClient ( ) . execute ( delete ) ) ; }

Target:
public com.google.gerrit.acceptance.RestResponse delete ( java.lang.String endPoint ) throws java.io.IOException { return execute ( org.apache.http.client.fluent.Request.Delete ( ( ( ( url ) + "/a" ) + endPoint ) ) ) ; }
Source:
private com.google.gerrit.server.project.ProjectControl getProjectControl ( ) { return refControl.getProjectControl ( ) ; }

Target:
private com.google.gerrit.server.permissions.ProjectControl getProjectControl ( ) { return refControl.getProjectControl ( ) ; }
Source:
public java.util.SortedMap < java.lang.String , com.google.gerrit.extensions.common.ProjectInfo > getAsMap ( ) throws com.google.gerrit.extensions.restapi.RestApiException { return list ( this ) ; }

Target:
public java.util.SortedMap < java.lang.String , com.google.gerrit.extensions.common.ProjectInfo > getAsMap ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return list ( this ) ; } catch ( com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "project list unavailable" , e ) ; } }
Source:
private ReceiveCommitsAdvertiseRefsHook.Result getReceivePackRefs ( ) throws java.lang.Exception { com.google.gerrit.server.git.ReceiveCommitsAdvertiseRefsHook hook = new com.google.gerrit.server.git.ReceiveCommitsAdvertiseRefsHook ( queryProvider , project ) ; try ( org.eclipse.jgit.lib.Repository repo = repoManager.openRepository ( project ) ) { return hook.advertiseRefs ( repo.getAllRefs ( ) ) ; } }

Target:
private ReceiveCommitsAdvertiseRefsHook.Result getReceivePackRefs ( ) throws java.lang.Exception { com.google.gerrit.server.git.receive.ReceiveCommitsAdvertiseRefsHook hook = new com.google.gerrit.server.git.receive.ReceiveCommitsAdvertiseRefsHook ( queryProvider , project ) ; try ( org.eclipse.jgit.lib.Repository repo = repoManager.openRepository ( project ) ) { return hook.advertiseRefs ( repo.getAllRefs ( ) ) ; } }
Source:
protected com.google.gerrit.extensions.common.ChangeInfo getChange ( java.lang.String changeId , com.google.gerrit.extensions.common.ListChangesOption ... options ) throws java.io.IOException { return getChange ( adminSession , changeId , options ) ; }

Target:
protected PushOneCommit.Result amendChange ( java.lang.String changeId ) throws java.lang.Exception { return amendChange ( changeId , "refs/for/master" ) ; }
Source:
public void execute ( ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.update.UpdateException { execute ( com.google.gerrit.server.update.BatchUpdate.Listener.NONE ) ; }

Target:
public void execute ( ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.update.UpdateException { execute ( BatchUpdateListener.NONE ) ; }
Source:
private com.cisco.gerrit.plugins.slack.config.ProjectConfig getConfig ( ) throws java.lang.Exception { return getConfig ( "^WIP.*" , true , true ) ; }

Target:
private com.cisco.gerrit.plugins.slack.config.ProjectConfig getConfig ( boolean publishOnPatchSetCreated ) throws java.lang.Exception { return getConfig ( "^WIP.*" , publishOnPatchSetCreated , true , true , true ) ; }
Source:
public void removeChangeListener ( com.google.gerrit.common.ChangeListener listener ) { listeners.remove ( listener ) ; }

Target:
public void addEventListener ( com.google.gerrit.common.EventListener listener , com.google.gerrit.server.CurrentUser user ) { listeners.put ( listener , new com.google.gerrit.common.ChangeHookRunner.EventListenerHolder ( listener , user ) ) ; }
Source:
public com.google.gerrit.extensions.api.access.ProjectAccessInfo access ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getAccess.apply ( checkExists ( ) ) ; } catch ( java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot get access rights" , e ) ; } }

Target:
public com.google.gerrit.extensions.api.access.ProjectAccessInfo access ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getAccess.apply ( checkExists ( ) ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot get access rights" , e ) ; } }
Source:
public void testToString ( ) { org.junit.Assert.assertEquals ( "-author:bob" , com.google.gerrit.server.query.Predicate.not ( f ( "author" , "bob" ) ) . toString ( ) ) ; }

Target:
public void testToString ( ) { org.junit.Assert.assertEquals ( "-author:bob" , com.google.gerrit.index.query.Predicate.not ( f ( "author" , "bob" ) ) . toString ( ) ) ; }
Source:
public void deleteReviewerFromWipChange ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageWipChange ( ) ; removeReviewer ( sc , extraReviewer ) ; assertThat ( sender ) . notSent ( ) ; }

Target:
public void deleteReviewerFromReviewableChangeByOwnerCcingSelfNotifyNone ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChangeWithExtraReviewer ( ) ; setEmailStrategy ( sc.owner , EmailStrategy.CC_ON_OWN_COMMENTS ) ; removeReviewer ( sc , extraReviewer , NotifyHandling.NONE ) ; assertThat ( sender ) . notSent ( ) ; }
Source:
public java.lang.String encode ( java.lang.String e ) { e = com.google.gwt.http.client.URL.encodeQueryString ( e ) ; e = fixPathImpl ( e ) ; e = fixColonImpl ( e ) ; return e ; }

Target:
public java.lang.String encode ( java.lang.String e ) { e = com.google.gwt.http.client.URL.encodeQueryString ( e ) ; e = fixPathImpl ( e ) ; e = fixColonImpl ( e ) ; e = fixDoubleQuote ( e ) ; return e ; }
Source:
public org.eclipse.jgit.revwalk.RevCommit getCommit ( ) { return commit.getCommit ( ) ; }

Target:
public org.eclipse.jgit.lib.ObjectId getCommitId ( ) { return commit ; }
Source:
public boolean apply ( com.google.gerrit.common.data.SubmitRecord input ) { return ( input.status ) == ( com.google.gerrit.common.data.SubmitRecord.Status.OK ) ; }

Target:
public boolean apply ( com.google.gerrit.reviewdb.client.SubmitRecord input ) { return ( input.status ) == ( com.google.gerrit.reviewdb.client.SubmitRecord.Status.OK ) ; }
Source:
public java.lang.String toString ( ) { return com.google.common.base.Objects.toStringHelper ( "index" ) . add ( "p" , source ) . add ( "limit" , limit ) . toString ( ) ; }

Target:
public java.lang.String toString ( ) { return com.google.common.base.Objects.toStringHelper ( "index" ) . add ( "p" , pred ) . add ( "limit" , limit ) . toString ( ) ; }
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 , 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 , authConfig , realm , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , remotePeerProvider , id , caller ) ; }
Source:
public void setProject ( final java.lang.String pattern ) { project = pattern ; }

Target:
public void setProject ( java.lang.String str ) { project = str ; }
Source:
public void createNewChange ( ) throws java.lang.Exception { assertCreateSucceeds ( newChangeInput ( ChangeStatus.NEW ) ) ; }

Target:
public void createNewChange ( ) throws java.lang.Exception { com.google.gerrit.extensions.common.ChangeInfo info = assertCreateSucceeds ( newChangeInput ( ChangeStatus.NEW ) ) ; com.google.common.truth.Truth.assertThat ( info.revisions.get ( info.currentRevision ) . commit.message ) . contains ( ( "Change-Id: " + ( info.changeId ) ) ) ; }
Source:
private static com.google.gerrit.server.query.change.AndSource and ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > ... preds ) { return new com.google.gerrit.server.query.change.AndSource ( java.util.Arrays.asList ( preds ) ) ; }

Target:
private static com.google.gerrit.server.query.change.AndSource andSource ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > ... preds ) { return new com.google.gerrit.server.query.change.AndSource ( java.util.Arrays.asList ( preds ) ) ; }
Source:
public void run ( ) { com.google.gerrit.client.Gerrit.doSignIn ( host.getToken ( ) ) ; }

Target:
public void run ( ) { java.lang.String token = host.getToken ( ) ; if ( cm.hasActiveLine ( ) ) { net.codemirror.lib.CodeMirror.LineHandle handle = cm.getActiveLine ( ) ; int line = ( cm.getLineNumber ( handle ) ) + 1 ; token += ( "@" + ( ( cm.side ( ) ) == ( DisplaySide.A ) ? "a" : "" ) ) + line ; } com.google.gerrit.client.Gerrit.doSignIn ( token ) ; }
Source:
public void assertCanDelete ( com.google.gerrit.reviewdb.client.Project project ) throws java.lang.Exception { if ( db.submoduleSubscriptions ( ) . bySubmoduleProject ( project.getNameKey ( ) ) . iterator ( ) . hasNext ( ) ) { throw new java.lang.Exception ( "Project is subscribed by other projects." ) ; } }

Target:
public void assertCanDelete ( com.google.gerrit.reviewdb.client.Project project ) throws com.google.gwtorm.server.OrmException , com.googlesource.gerrit.plugins.deleteproject.database.CannotDeleteProjectException { if ( db.submoduleSubscriptions ( ) . bySubmoduleProject ( project.getNameKey ( ) ) . iterator ( ) . hasNext ( ) ) { throw new com.googlesource.gerrit.plugins.deleteproject.database.CannotDeleteProjectException ( "Project is subscribed by other projects." ) ; } }
Source:
public void evict ( java.lang.String username ) { cache.remove ( new com.google.gerrit.reviewdb.Account.Username ( username ) ) ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > evictAsync ( java.lang.String username ) { if ( username != null ) { return cache.removeAsync ( new com.google.gerrit.sshd.SshKeyCacheImpl.Username ( username ) ) ; } else { return com.google.common.util.concurrent.Futures.immediateFuture ( null ) ; } }
Source:
public void onFocus ( final com.google.gwt.user.client.ui.Widget sender ) { if ( ( currentRow ) < 0 ) { onDown ( ) ; } }

Target:
public void onFocus ( final com.google.gwt.event.dom.client.FocusEvent event ) { if ( ( currentRow ) < 0 ) { onDown ( ) ; } }
Source:
public void onSuccess ( final com.google.gwtjsonrpc.common.com.google.gerrit.client.VoidResult result ) { saveName.setEnabled ( false ) ; setPageTitle ( Util.M.group ( newName ) ) ; groupNameTxt.setText ( newName ) ; }

Target:
public void onSuccess ( final com.google.gwtjsonrpc.common.com.google.gerrit.client.VoidResult result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.client.Dispatcher.toGroup ( getGroupUUID ( ) , AccountGroupScreen.INFO ) ) ; }
Source:
public java.util.List < java.lang.String > getTeamNamesForRepositoryRole ( java.lang.String role ) { return null ; }

Target:
public java.util.List < java.lang.String > getTeamnamesForRepositoryRole ( java.lang.String role ) { return java.util.Collections.emptyList ( ) ; }
Source:
public final native int lineAtHeight ( int height ) ;

Target:
public final native net.codemirror.lib.CodeMirrorDoc getDoc ( ) ;
Source:
public final com.google.gerrit.server.git.gpg.CheckResult check ( org.bouncycastle.openpgp.PGPPublicKey key ) { return check ( key , key.getKeyID ( ) ) ; }

Target:
public final com.google.gerrit.gpg.CheckResult check ( org.bouncycastle.openpgp.PGPPublicKey key ) { return check ( key , key.getKeyID ( ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { admin = accounts.create ( "admin" , "admin@example.com" , "Administrator" , "Administrators" ) ; project = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p" ) ; com.google.gerrit.acceptance.git.GitUtil.initSsh ( admin ) ; com.google.gerrit.acceptance.SshSession sshSession = new com.google.gerrit.acceptance.SshSession ( admin ) ; com.google.gerrit.acceptance.git.GitUtil.createProject ( sshSession , project.get ( ) ) ; git = com.google.gerrit.acceptance.git.GitUtil.cloneProject ( ( ( ( sshSession.getUrl ( ) ) + "/" ) + ( project.get ( ) ) ) ) ; sshSession.close ( ) ; db = reviewDbProvider.open ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { admin = accounts.create ( "admin" , "admin@example.com" , "Administrator" , "Administrators" ) ; project = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p" ) ; com.google.gerrit.acceptance.git.GitUtil.initSsh ( admin ) ; com.google.gerrit.acceptance.SshSession sshSession = new com.google.gerrit.acceptance.SshSession ( server , admin ) ; com.google.gerrit.acceptance.git.GitUtil.createProject ( sshSession , project.get ( ) ) ; git = com.google.gerrit.acceptance.git.GitUtil.cloneProject ( ( ( ( sshSession.getUrl ( ) ) + "/" ) + ( project.get ( ) ) ) ) ; sshSession.close ( ) ; db = reviewDbProvider.open ( ) ; }
Source:
protected void init ( ) throws com.google.gerrit.server.mail.EmailException { super . init ( ) ; ccAllApprovals ( ) ; bccStarredBy ( ) ; bccWatchesNotifyAllComments ( ) ; }

Target:
protected void init ( ) throws com.google.gerrit.server.mail.EmailException { super . init ( ) ; ccAllApprovals ( ) ; bccStarredBy ( ) ; bccWatches ( NotifyType.ALL_COMMENTS ) ; }
Source:
protected com.google.gerrit.server.patch.PatchList getPatchList ( ) { if ( ( patchSet ) != null ) { return args.patchListCache.get ( change , patchSet ) ; } return null ; }

Target:
protected com.google.gerrit.server.patch.PatchList getPatchList ( ) throws com.google.gerrit.server.patch.PatchListNotAvailableException { if ( ( patchSet ) != null ) { return args.patchListCache.get ( change , patchSet ) ; } throw new com.google.gerrit.server.patch.PatchListNotAvailableException ( "no patchSet specified" ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { tr = new org.eclipse.jgit.junit.TestRepository ( new org.eclipse.jgit.internal.storage.dfs.InMemoryRepository ( new org.eclipse.jgit.internal.storage.dfs.DfsRepositoryDescription ( "pubkeys" ) ) ) ; store = new com.google.gerrit.server.git.gpg.PublicKeyStore ( tr.getRepository ( ) ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { tr = new org.eclipse.jgit.junit.TestRepository ( new org.eclipse.jgit.internal.storage.dfs.InMemoryRepository ( new org.eclipse.jgit.internal.storage.dfs.DfsRepositoryDescription ( "pubkeys" ) ) ) ; store = new com.google.gerrit.gpg.PublicKeyStore ( tr.getRepository ( ) ) ; }
Source:
private com.google.inject.Injector createSshInjector ( ) { return sysInjector.createChildInjector ( new com.google.gerrit.server.ssh.SshModule ( ) ) ; }

Target:
private com.google.inject.Injector createSshInjector ( ) { return sysInjector.createChildInjector ( new com.google.gerrit.server.ssh.SshModule ( ) , new com.google.gerrit.server.ssh.commands.MasterCommandModule ( ) ) ; }
Source:
void onReplace ( org.eclipse.jgit.lib.ObjectId newNotesRev , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toRemove , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toAdd ) throws java.io.IOException ;

Target:
void onReplace ( org.eclipse.jgit.lib.ObjectId oldNotesRev , org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.reviewdb.client.Account.Id accountId , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toRemove , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toAdd ) throws java.io.IOException ;
Source:
public void cancel ( ) { try { SshScopes.current.set ( context ) ; onExit ( com.google.gerrit.sshd.BaseCommand.STATUS_CANCEL ) ; } finally { SshScopes.current.set ( null ) ; } }

Target:
public void cancel ( ) { final com.google.gerrit.sshd.SshScope.Context old = com.google.gerrit.sshd.SshScope.set ( context ) ; try { onExit ( com.google.gerrit.sshd.BaseCommand.STATUS_CANCEL ) ; } finally { com.google.gerrit.sshd.SshScope.set ( old ) ; } }
Source:
public java.lang.Object apply ( com.google.gerrit.server.group.GroupResource resource ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.extensions.restapi.BadRequestException , com.google.gerrit.extensions.restapi.ResourceConflictException , java.lang.Exception { return new com.google.gerrit.server.group.GetGroup.GroupInfo ( resource.getControl ( ) . getGroup ( ) ) ; }

Target:
public java.lang.Object apply ( com.google.gerrit.server.group.GroupResource resource ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.extensions.restapi.BadRequestException , com.google.gerrit.extensions.restapi.ResourceConflictException , java.lang.Exception { return new com.google.gerrit.server.group.GroupInfo ( resource.getControl ( ) . getGroup ( ) ) ; }
Source:
public boolean apply ( com.google.gerrit.server.project.ProjectState in ) { return groups.containsAnyOf ( in.localOwners ) ; }

Target:
public java.util.Set < com.google.gerrit.reviewdb.client.AccountGroup.UUID > getAllOwners ( ) { java.util.Set < com.google.gerrit.reviewdb.client.AccountGroup.UUID > result = new java.util.HashSet < > ( ) ; for ( com.google.gerrit.server.project.ProjectState p : tree ( ) ) { result.addAll ( p.localOwners ) ; } return result ; }
Source:
public void confirm ( ) throws java.lang.Exception { com.google.gerrit.server.config.ConfirmEmail.Input in = new com.google.gerrit.server.config.ConfirmEmail.Input ( ) ; in.token = emailTokenVerifier.encode ( admin.getId ( ) , "new.mail@example.com" ) ; com.google.gerrit.acceptance.RestResponse r = adminSession.put ( "/config/server/email.confirm" , in ) ; com.google.common.truth.Truth.assertThat ( r.getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_NO_CONTENT ) ; }

Target:
public void confirm ( ) throws java.lang.Exception { com.google.gerrit.server.config.ConfirmEmail.Input in = new com.google.gerrit.server.config.ConfirmEmail.Input ( ) ; in.token = emailTokenVerifier.encode ( admin.getId ( ) , "new.mail@example.com" ) ; adminSession.put ( "/config/server/email.confirm" , in ) . assertNoContent ( ) ; }
Source:
public void setUseContributorAgreements ( final boolean u ) { useContributorAgreements = u ; }

Target:
public void setUseContributorAgreements ( final com.google.gerrit.reviewdb.client.Project.InheritedBoolean u ) { useContributorAgreements = u ; }
Source:
public void onSuccess ( final com.google.gerrit.client.groups.MemberInfo memberInfo ) { addMemberBox.setEnabled ( true ) ; addMemberBox.setText ( "" ) ; members.insert ( memberInfo ) ; }

Target:
public void onSuccess ( final com.google.gerrit.client.account.AccountInfo memberInfo ) { addMemberBox.setEnabled ( true ) ; addMemberBox.setText ( "" ) ; members.insert ( memberInfo ) ; }
Source:
private boolean isDev ( ) { return ( options.forcePolyGerritDev ( ) ) || ( ( getPaths ( ) . warFs ) == null ) ; }

Target:
javax.servlet.http.HttpServlet getPolyGerritUiIndexServlet ( @ com.google.inject.name.Named ( value = com.google.gerrit.httpd.raw.StaticModule.CACHE ) com.google.common.cache.Cache < java.nio.file.Path , com.google.gerrit.httpd.raw.ResourceServlet.Resource > cache ) { return new com.google.gerrit.httpd.raw.SingleFileServlet ( cache , polyGerritBasePath ( ) . resolve ( "index.html" ) , getPaths ( ) . isDev ( ) ) ; }
Source:
private void removeAuditEntriesFor ( com.google.gerrit.reviewdb.client.AccountGroup.Id groupId ) throws java.lang.Exception { com.google.gwtorm.server.ResultSet < com.google.gerrit.reviewdb.client.AccountGroupMemberAudit > groupMemberAudits = db.accountGroupMembersAudit ( ) . byGroup ( groupId ) ; db.accountGroupMembersAudit ( ) . delete ( groupMemberAudits ) ; }

Target:
private void removeAuditEntriesFor ( com.google.gerrit.reviewdb.client.AccountGroup.Id groupId ) throws java.lang.Exception { auditEntryDeletion.setInt ( 1 , groupId.get ( ) ) ; auditEntryDeletion.executeUpdate ( ) ; }
Source:
public void runBare ( ) throws java.lang.Throwable { try { super . runBare ( ) ; } catch ( com.google.gerrit.server.tools.hooks.CommitMsgHookTest.SkipTestOnThisPlatform e ) { java.lang.System.err.println ( ( ( " - Skipping " + ( getName ( ) ) ) + " on this system" ) ) ; } }

Target:
private void skipIfWin32Platform ( ) { if ( com.google.gerrit.server.util.HostPlatform.isWin32 ( ) ) { java.lang.System.err.println ( ( ( " - Skipping " + ( test.getMethodName ( ) ) ) + " on this system" ) ) ; org.junit.Assume.assumeTrue ( false ) ; } }
Source:
private java.util.concurrent.ScheduledThreadPoolExecutor getExecutor ( ) { return queue.getQueue ( user.get ( ) . getCapabilities ( ) . getQueueType ( ) ) ; }

Target:
private java.util.concurrent.ScheduledThreadPoolExecutor getExecutor ( ) { com.google.gerrit.server.git.QueueProvider.QueueType qt = capabilityFactory.create ( user.get ( ) ) . getQueueType ( ) ; return queue.getQueue ( qt ) ; }
Source:
private void redisplay ( ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange2 ( id ) ) ; }

Target:
private void redisplay ( ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( id ) ) ; }
Source:
private com.google.gerrit.server.mail.FromAddressGenerator create ( ) { return new com.google.gerrit.server.mail.FromAddressGeneratorProvider ( config , ident , accountCache ) . get ( ) ; }

Target:
private com.google.gerrit.server.mail.FromAddressGenerator create ( ) { return new com.google.gerrit.server.mail.FromAddressGeneratorProvider ( config , "Anonymous Coward" , ident , accountCache ) . get ( ) ; }