auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void deleteExternalIds ( final java.util.Set < com.google.gerrit.reviewdb.client.AccountExternalId.Key > keys , final com.google.gwt.user.client.rpc.AsyncCallback < java.util.Set < com.google.gerrit.reviewdb.client.AccountExternalId.Key > > callback ) { deleteExternalIdsFactory.create ( keys ) . to ( callback ) ; }

Target:
public void deleteExternalIds ( final java.util.Set < com.google.gerrit.reviewdb.client.AccountExternalId.Key > keys , final com.google.gwtjsonrpc.common.AsyncCallback < java.util.Set < com.google.gerrit.reviewdb.client.AccountExternalId.Key > > callback ) { deleteExternalIdsFactory.create ( keys ) . to ( callback ) ; }
Source:
public void onSend ( ) { Util.MANAGE_SVC.revertChange ( patchSet.getId ( ) , getMessageText ( ) , createCallback ( ) ) ; }

Target:
private void redisplay ( ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( patchSet.getId ( ) . getParentKey ( ) ) , new com.google.gerrit.client.changes.ChangeScreen ( patchSet.getId ( ) . getParentKey ( ) ) ) ; }
Source:
public void run ( ) { cm.getInputField ( ) . blur ( ) ; clearActiveLine ( cm ) ; clearActiveLine ( otherCm ( cm ) ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { toggleReviewed ( ) . run ( ) ; }
Source:
public void deleteFile ( org.eclipse.jgit.lib.Repository repository , com.google.gerrit.server.edit.ChangeEdit changeEdit , java.lang.String file ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.project.InvalidChangeOperationException , java.io.IOException { modifyTree ( repository , changeEdit , new com.google.gerrit.server.edit.tree.DeleteFileModification ( file ) ) ; }

Target:
public void deleteFile ( org.eclipse.jgit.lib.Repository repository , com.google.gerrit.server.project.ChangeControl changeControl , java.lang.String file ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.project.InvalidChangeOperationException , com.google.gwtorm.server.OrmException , java.io.IOException { modifyTree ( repository , changeControl , new com.google.gerrit.server.edit.tree.DeleteFileModification ( file ) ) ; }
Source:
public com.googlecode.prolog_cafe.lang.NumberTerm and ( com.googlecode.prolog_cafe.lang.NumberTerm t ) { if ( t.isDouble ( ) ) throw new com.googlecode.prolog_cafe.exceptions.IllegalTypeException ( "integer" , t ) ; return new com.googlecode.prolog_cafe.lang.IntegerTerm ( ( ( this . val ) & ( t.intValue ( ) ) ) ) ; }

Target:
public com.googlecode.prolog_cafe.lang.NumberTerm and ( com.googlecode.prolog_cafe.lang.NumberTerm t ) { if ( t instanceof com.googlecode.prolog_cafe.lang.DoubleTerm ) throw new com.googlecode.prolog_cafe.exceptions.IllegalTypeException ( "integer" , t ) ; return new com.googlecode.prolog_cafe.lang.IntegerTerm ( ( ( this . val ) & ( t.intValue ( ) ) ) ) ; }
Source:
public void evictGroupsMembers ( ) throws java.lang.Exception { configureMocksFor ( Constants.GROUPS_MEMBERS ) ; servlet.doPost ( request , response ) ; }

Target:
public void evictGroupsMembers ( ) throws java.lang.Exception { configureMocksFor ( Constants.GROUPS_MEMBERS ) ; verifyResponseIsOK ( ) ; }
Source:
private static void assertParseNotifyValueFails ( java.lang.String notifyValue ) { try { com.google.gerrit.server.account.WatchConfigTest.parseNotifyValue ( notifyValue ) ; org.junit.Assert.fail ( ( "expected ConfigInvalidException for notifyValue: " + notifyValue ) ) ; } catch ( org.eclipse.jgit.errors.ConfigInvalidException e ) { } }

Target:
private com.google.gerrit.server.account.WatchConfig.NotifyValue parseNotifyValue ( java.lang.String notifyValue ) { return com.google.gerrit.server.account.WatchConfig.NotifyValue.parse ( new com.google.gerrit.reviewdb.client.Account.Id ( 1000000 ) , "project" , notifyValue , this ) ; }
Source:
public void testTagBr ( ) { final com.google.gwtexpui.safehtml.client.SafeHtmlBuilder b = new com.google.gwtexpui.safehtml.client.SafeHtmlBuilder ( ) ; org.junit.Assert.assertSame ( b , b.br ( ) ) ; org.junit.Assert.assertEquals ( "<br />" , b.asString ( ) ) ; }

Target:
public void testTagBr ( ) { final com.google.gwtexpui.safehtml.client.SafeHtmlBuilder b = new com.google.gwtexpui.safehtml.client.SafeHtmlBuilder ( ) ; com.google.common.truth.Truth.assertThat ( b ) . isSameAs ( b.br ( ) ) ; com.google.common.truth.Truth.assertThat ( b.asString ( ) ) . isEqualTo ( "<br />" ) ; }
Source:
boolean isReviewed ( ) { return reviewed.getValue ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.ReviewInfo result ) { reviewed.setValue ( true , false ) ; }
Source:
, @ com.google.gerrit.acceptance.GerritConfig ( name = "suggest.from" , value = "1" ) , @ com.google.gerrit.acceptance.GerritConfig ( name = "accounts.visibility" , value = "NONE" ) } ) public void suggestReviewersNoResult2 ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; java.util.List < com.google.gerrit.extensions.common.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , "u" , 6 ) ; com.google.common.truth.Truth.assertThat ( reviewers ) . isEmpty ( ) ; }

Target:
public void suggestReviewersNoResult1 ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; java.util.List < com.google.gerrit.extensions.common.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , name ( "u" ) , 6 ) ; com.google.common.truth.Truth.assertThat ( reviewers ) . isEmpty ( ) ; }
Source:
public com.google.gerrit.reviewdb.client.Change update ( com.google.gerrit.reviewdb.client.Change change ) { change.setTopic ( com.google.common.base.Strings.emptyToNull ( newTopicName ) ) ; return change ; }

Target:
public com.google.gerrit.reviewdb.client.Change update ( com.google.gerrit.reviewdb.client.Change change ) { change.setTopic ( com.google.common.base.Strings.emptyToNull ( newTopicName ) ) ; com.google.gerrit.server.ChangeUtil.updated ( change ) ; return change ; }
Source:
public int nextChangeId ( ) throws com.google.gwtorm.server.OrmException { return db.get ( ) . nextChangeId ( ) ; }

Target:
public int nextChangeId ( ) throws com.google.gwtorm.server.OrmException { if ( ! ( migration.readChangeSequence ( ) ) ) { return db.get ( ) . nextChangeId ( ) ; } return changeSeq.next ( ) ; }
Source:
protected void initPatchSetListForTableHeader ( ) { psListOfHeaderA = new com.google.gerrit.client.patches.PatchSetSelectBox ( PatchSetSelectBox.Side.A , PatchScreen.Type.SIDE_BY_SIDE ) ; psListOfHeaderB = new com.google.gerrit.client.patches.PatchSetSelectBox ( PatchSetSelectBox.Side.B , PatchScreen.Type.SIDE_BY_SIDE ) ; }

Target:
protected PatchScreen.Type getPatchScreenType ( ) { return PatchScreen.Type.SIDE_BY_SIDE ; }
Source:
private java.lang.String extractWhat ( com.google.gerrit.sshd.DispatchCommand dcmd , boolean hideSensitive ) { if ( dcmd == null ) { return "Command was already destroyed" ; } return hideSensitive ? dcmd.getFormattedMaskedArguments ( "." ) : extractWhat ( dcmd ) ; }

Target:
void audit ( com.google.gerrit.sshd.SshScope.Context ctx , java.lang.Object result , com.google.gerrit.sshd.DispatchCommand cmd ) { audit ( ctx , result , extractWhat ( cmd ) , extractParameters ( cmd ) ) ; }
Source:
void updateRefreshCookieAt ( final com.google.gerrit.server.http.WebSessionManager.Val val ) { final long now = java.lang.System.currentTimeMillis ( ) ; val.refreshCookieAt = now + ( ( self.getTimeToIdle ( java.util.concurrent.TimeUnit.MILLISECONDS ) ) / 2 ) ; }

Target:
int getCookieAge ( final com.google.gerrit.server.http.WebSessionManager.Val val ) { if ( val.isPersistentCookie ( ) ) { return ( ( int ) ( self.getTimeToLive ( java.util.concurrent.TimeUnit.SECONDS ) ) ) ; } else { return - 1 ; } }
Source:
void addGroupInclude ( com.google.gerrit.reviewdb.client.AccountGroup.Id groupId , java.lang.String groupName , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.GroupDetail > callback ) ;

Target:
void addGroupInclude ( com.google.gerrit.reviewdb.client.AccountGroup.Id groupId , com.google.gerrit.reviewdb.client.AccountGroup.UUID incGroupUUID , java.lang.String incGroupName , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.GroupDetail > callback ) ;
Source:
public java.lang.String value ( ) { return name ; }

Target:
public static com.google.gerrit.sshd.CommandName named ( final java.lang.String value ) { return new com.google.gerrit.sshd.AutoAnnotation_Commands_named ( value ) ; }
Source:
public void putApproval ( java.lang.String label , short value ) { approvals.put ( label , value ) ; }

Target:
public void putApproval ( java.lang.String label , short value ) { approvals.put ( label , com.google.common.base.Optional.of ( value ) ) ; }
Source:
public void changeAssigneeOnReviewableChange ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; com.google.gerrit.acceptance.TestAccount other = accounts.create ( "other" , "other@example.com" , "other" ) ; assign ( sc , sc.owner , other ) ; sender.clear ( ) ; assign ( sc , sc.owner , assignee ) ; assertThat ( sender ) . sent ( "setassignee" , sc ) . notTo ( sc.owner , sc.reviewer , sc.ccer , sc.starrer , other ) . to ( sc.reviewerByEmail ) . cc ( sc.ccerByEmail ) . to ( assignee ) ; }

Target:
public void changeAssigneeOnReviewableChange ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; com.google.gerrit.acceptance.TestAccount other = accountCreator.create ( "other" , "other@example.com" , "other" ) ; assign ( sc , sc.owner , other ) ; sender.clear ( ) ; assign ( sc , sc.owner , sc.assignee ) ; assertThat ( sender ) . sent ( "setassignee" , sc ) . notTo ( sc.owner , sc.reviewer , sc.ccer , sc.starrer , other ) . to ( sc.reviewerByEmail ) . cc ( sc.ccerByEmail ) . to ( sc.assignee ) ; }
Source:
private void enableForm ( final boolean on ) { submitType.setEnabled ( on ) ; ownerTxtBox.setEnabled ( on ) ; descTxt.setEnabled ( on ) ; }

Target:
private void enableForm ( final boolean on ) { submitType.setEnabled ( on ) ; ownerTxtBox.setEnabled ( on ) ; descTxt.setEnabled ( on ) ; useContributorAgreements.setEnabled ( on ) ; useSignedOffBy.setEnabled ( on ) ; }
Source:
public void start ( final int delay , final java.util.concurrent.TimeUnit unit ) { workQueue.getDefaultQueue ( ) . schedule ( this , delay , unit ) ; }

Target:
public java.util.concurrent.ScheduledFuture < ? > start ( long delay , java.util.concurrent.TimeUnit unit ) { return workQueue.getDefaultQueue ( ) . schedule ( this , delay , unit ) ; }
Source:
private java.lang.String prefixRef ( java.lang.String ref ) { return ref.startsWith ( org.eclipse.jgit.lib.Constants.R_HEADS ) ? ref : ( org.eclipse.jgit.lib.Constants.R_HEADS ) + ref ; }

Target:
private java.lang.String prefixRef ( java.lang.String ref ) { return ref.startsWith ( org.eclipse.jgit.lib.Constants.R_REFS ) ? ref : ( org.eclipse.jgit.lib.Constants.R_HEADS ) + ref ; }
Source:
private com.google.gerrit.server.git.SubmitStrategy createStrategy ( final com.google.gerrit.reviewdb.client.Project.SubmitType submitType ) throws com.google.gerrit.server.git.MergeException , com.google.gerrit.server.project.NoSuchProjectException { return submitStrategyFactory.create ( submitType , db , repo , rw , inserter , canMergeFlag , getAlreadyAccepted ( branchTip ) , destBranch ) ; }

Target:
private com.google.gerrit.server.git.strategy.SubmitStrategy createStrategy ( final com.google.gerrit.extensions.common.SubmitType submitType ) throws com.google.gerrit.server.git.MergeException , com.google.gerrit.server.project.NoSuchProjectException { return submitStrategyFactory.create ( submitType , db , repo , rw , inserter , canMergeFlag , getAlreadyAccepted ( branchTip ) , destBranch ) ; }
Source:
private java.lang.String urlCreateEdit ( ) { return ( ( ( "/changes/" + ( change.getChangeId ( ) ) ) + "/revisions/" ) + ( ps.getPatchSetId ( ) ) ) + "/create_edit" ; }

Target:
private java.lang.String urlRebase ( ) { return ( "/changes/" + ( change.getChangeId ( ) ) ) + "/rebase_edit" ; }
Source:
protected com.google.gerrit.server.CurrentUser getCurrentUser ( ) { return currentUser.get ( ) ; }

Target:
protected com.google.gerrit.server.CurrentUser getUser ( ) { return currentUser.get ( ) ; }
Source:
private static final native com.google.gwtjsonrpc.client.JsonCall.RpcResult parse ( java.lang.String json ) ;

Target:
private static final native com.google.gwtjsonrpc.client.JsonCall.RpcResult parse ( com.google.gwt.core.client.JavaScriptObject parserFunction , java.lang.String json ) ;
Source:
private static void assertOkStatus ( org.eclipse.jgit.transport.PushResult result , java.lang.String ref ) { com.google.gerrit.acceptance.git.ssh.PushForReviewIT.assertStatus ( Status.OK , null , result , ref ) ; }

Target:
private static void assertOkStatus ( org.eclipse.jgit.transport.PushResult result , java.lang.String ref ) { com.google.gerrit.acceptance.git.PushForReviewIT.assertStatus ( Status.OK , null , result , ref ) ; }
Source:
public com.google.gerrit.server.patch.PatchList load ( final com.google.gerrit.server.patch.PatchListKey key ) throws com.google.gerrit.server.patch.PatchListNotAvailableException , java.io.IOException { final org.eclipse.jgit.lib.Repository repo = repoManager.openRepository ( key.projectKey ) ; try { return readPatchList ( key , repo ) ; } finally { repo.close ( ) ; } }

Target:
public com.google.gerrit.server.patch.PatchList call ( ) throws com.google.gerrit.server.patch.PatchListNotAvailableException , java.io.IOException { try ( org.eclipse.jgit.lib.Repository repo = repoManager.openRepository ( project ) ) { return readPatchList ( key , repo ) ; } }
Source:
protected void createProject ( java.lang.String name , com.google.gerrit.reviewdb.client.Project.NameKey parent ) throws com.google.gerrit.extensions.restapi.RestApiException { createProject ( name , parent , true ) ; }

Target:
protected java.lang.String name ( java.lang.String name ) { return ( resourcePrefix ) + name ; }
Source:
com.google.gerrit.sshd.DispatchCommand create ( java.util.Map < java.lang.String , com.google.inject.Provider < org.apache.sshd.server.Command > > map ) ;

Target:
com.google.gerrit.sshd.DispatchCommand create ( java.lang.String prefix , java.util.Map < java.lang.String , com.google.inject.Provider < org.apache.sshd.server.Command > > map ) ;
Source:
public int hashCode ( ) { return value.hashCode ( ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( value , expiresAt , userInfo ) ; }
Source:
private void init ( com.googlesource.gerrit.plugins.github.oauth.GitHubLogin initValues ) { this . hub = initValues.hub ; this . token = initValues.token ; }

Target:
public org.kohsuke.github.GitHub login ( com.googlesource.gerrit.plugins.github.oauth.OAuthProtocol.AccessToken authToken ) throws java.io.IOException { this . token = authToken ; this . hub = org.kohsuke.github.GitHub.connectUsingOAuth ( authToken.access_token ) ; return this . hub ; }
Source:
com.google.gerrit.acceptance.PushOneCommit create ( com.google.gerrit.reviewdb.server.ReviewDb db , org.eclipse.jgit.lib.PersonIdent i , org.eclipse.jgit.api.Git git , @ com.google.inject.assistedinject.Assisted ( value = "subject" ) java.lang.String subject , @ com.google.inject.assistedinject.Assisted ( value = "fileName" ) java.lang.String fileName , @ com.google.inject.assistedinject.Assisted ( value = "content" ) java.lang.String content ) ;

Target:
com.google.gerrit.acceptance.PushOneCommit create ( com.google.gerrit.reviewdb.server.ReviewDb db , org.eclipse.jgit.lib.PersonIdent i , org.eclipse.jgit.junit.TestRepository < ? > testRepo , @ com.google.inject.assistedinject.Assisted ( value = "subject" ) java.lang.String subject , @ com.google.inject.assistedinject.Assisted ( value = "fileName" ) java.lang.String fileName , @ com.google.inject.assistedinject.Assisted ( value = "content" ) java.lang.String content ) ;
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.editor.EditScreen ( id , line ) ) ; }
Source:
boolean isStale ( ) { return ( time ) != ( path.lastModified ( ) ) ; }

Target:
boolean isStale ( ) throws java.io.IOException { return ! ( time.equals ( java.nio.file.Files.getLastModifiedTime ( path ) ) ) ; }
Source:
public void advertiseRefs ( org.eclipse.jgit.transport.BaseReceivePack rp ) throws org.eclipse.jgit.transport.ServiceMayNotContinueException { allRefs = com.google.gerrit.server.git.receive.HookUtil.ensureAllRefsAdvertised ( rp ) ; }

Target:
public void advertiseRefs ( org.eclipse.jgit.transport.BaseReceivePack rp ) throws org.eclipse.jgit.transport.ServiceMayNotContinueException { allRefs = com.google.gerrit.server.git.HookUtil.ensureAllRefsAdvertised ( rp ) ; }
Source:
private void setNotesMigrationState ( com.google.gerrit.server.notedb.NotesMigrationState state ) throws java.lang.Exception { gerritConfig.load ( ) ; com.google.gerrit.server.notedb.ConfigNotesMigration.setConfigValues ( gerritConfig , state.migration ( ) ) ; gerritConfig.save ( ) ; }

Target:
private com.google.gerrit.reviewdb.server.ReviewDb openUnderlyingReviewDb ( com.google.gerrit.acceptance.GerritServer server ) throws java.lang.Exception { return server.getTestInjector ( ) . getInstance ( com.google.inject.Key.get ( new com.google.inject.TypeLiteral < com.google.gwtorm.server.SchemaFactory < com.google.gerrit.reviewdb.server.ReviewDb > > ( ) { } , com.google.gerrit.server.schema.ReviewDbFactory.class ) ) . open ( ) ; }
Source:
public com.google.gerrit.extensions.common.ProjectInfo get ( ) { com.google.common.base.Preconditions.checkNotNull ( project ) ; return projectJson.format ( project ) ; }

Target:
private com.google.gerrit.server.project.ProjectResource checkExists ( ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { if ( ( project ) == null ) { throw new com.google.gerrit.extensions.restapi.ResourceNotFoundException ( name ) ; } return project ; }
Source:
public void onFailure ( java.lang.Throwable caught ) { enable ( true ) ; super . onFailure ( caught ) ; }

Target:
public void onSuccess ( final com.google.gerrit.reviewdb.PatchLineComment result ) { enableButtons ( true ) ; notifyDraftDelta ( 1 ) ; createEditor ( result ) . setOpen ( false ) ; }
Source:
public void setFileHistory ( final java.lang.String pattern ) { fileHistory = pattern ; }

Target:
public void setFileHistory ( java.lang.String str ) { fileHistory = str ; }
Source:
public static org.eclipse.jgit.lib.Config defaultConfig ( ) { return com.google.gerrit.server.query.change.AbstractQueryChangesTest.updateConfig ( new org.eclipse.jgit.lib.Config ( ) ) ; }

Target:
public static org.eclipse.jgit.lib.Config defaultConfig ( ) { org.eclipse.jgit.lib.Config cfg = new org.eclipse.jgit.lib.Config ( ) ; cfg.setInt ( "index" , null , "maxPages" , 10 ) ; return cfg ; }
Source:
public boolean isMaxPositive ( final com.google.gerrit.client.reviewdb.ChangeApproval ca ) { return ( maxPositive ) == ( ca.getValue ( ) ) ; }

Target:
public boolean isMaxPositive ( final com.google.gerrit.client.reviewdb.PatchSetApproval ca ) { return ( maxPositive ) == ( ca.getValue ( ) ) ; }
Source:
public boolean verify ( ) { return ( com.googlesource.gerrit.plugins.lfs.LfsAuthToken.Verifier.onTime ( token.expiresAt ) ) && ( verifyTokenValues ( ) ) ; }

Target:
public boolean onTime ( java.time.Instant when ) { return when.isBefore ( token.issued.plusSeconds ( token.expiresIn ) ) ; }
Source:
public void setStatus ( int sc ) { status = sc ; }

Target:
public synchronized void setStatus ( int sc ) { status = sc ; committed = true ; }
Source:
public void zeroEndLineResultsInInvalidRange ( ) { com.google.gerrit.extensions.client.Comment.Range range = createRange ( 13 , 2 , 0 , 10 ) ; com.google.gerrit.extensions.client.RangeSubject.assertThat ( range ) . isInvalid ( ) ; }

Target:
public void zeroEndLineResultsInInvalidRange ( ) { com.google.gerrit.extensions.client.Comment.Range range = createRange ( 13 , 2 , 0 , 10 ) ; com.google.gerrit.extensions.client.testing.RangeSubject.assertThat ( range ) . isInvalid ( ) ; }
Source:
void setCurrentUrl ( com.google.gerrit.client.changes.DownloadUrlLink link ) { urls.setVisible ( true ) ; copyLabel.setText ( ( ( "git fetch " + ( link.urlData ) ) + " && git format-patch -1 --stdout FETCH_HEAD" ) ) ; }

Target:
protected void setCurrentUrl ( com.google.gerrit.client.download.DownloadUrlLink link ) { urls.setVisible ( true ) ; copyLabel.setText ( ( ( "git fetch " + ( link.getUrlData ( ) ) ) + " && git format-patch -1 --stdout FETCH_HEAD" ) ) ; }
Source:
public void setPatchSet ( final com.google.gerrit.reviewdb.PatchSet ps ) { patchSet = ps ; }

Target:
public void setPatchSet ( final com.google.gerrit.reviewdb.client.PatchSet ps , final com.google.gerrit.reviewdb.client.PatchSetInfo psi ) { patchSet = ps ; patchSetInfo = psi ; }
Source:
public void pruneSchema ( com.google.gwtorm.server.StatementExecutor e , java.util.List < java.lang.String > pruneList ) throws com.google.gwtorm.server.OrmException { }

Target:
public void pruneSchema ( com.google.gwtorm.server.StatementExecutor e , java.util.List < java.lang.String > pruneList ) throws com.google.gwtorm.server.OrmException { for ( java.lang.String sql : pruneList ) { e.execute ( sql ) ; } }
Source:
private static com.google.gerrit.server.query.change.QueryOptions options ( int start , int limit ) { return com.google.gerrit.server.query.change.QueryOptions.create ( com.google.gerrit.server.index.change.IndexRewriterTest.CONFIG , start , limit , com.google.common.collect.ImmutableSet.< java.lang.String > of ( ) ) ; }

Target:
private static com.google.gerrit.server.index.QueryOptions options ( int start , int limit ) { return com.google.gerrit.server.index.change.IndexedChangeQuery.createOptions ( com.google.gerrit.server.index.change.IndexRewriterTest.CONFIG , start , limit , com.google.common.collect.ImmutableSet.< java.lang.String > of ( ) ) ; }
Source:
public java.lang.String getToken ( com.google.gwtjsonrpc.client.JsonDefTarget proxy ) { return com.google.gwt.user.client.Cookies.getCookie ( "GerritAccount" ) ; }

Target:
public java.lang.String getToken ( com.google.gwtjsonrpc.client.JsonDefTarget proxy ) { return com.google.gwt.user.client.Cookies.getCookie ( com.google.gerrit.client.Gerrit.SESSION_COOKIE ) ; }
Source:
public static java.util.Set < java.lang.String > getPersonParts ( java.lang.String name , java.lang.Iterable < java.lang.String > emails ) { com.google.common.base.Splitter at = com.google.common.base.Splitter.on ( '@' ) ; com.google.common.base.Splitter s = com.google.common.base.Splitter.on ( com.google.common.base.CharMatcher.anyOf ( "@.- " ) ) . omitEmptyStrings ( ) ; java.util.HashSet < java.lang.String > parts = new java.util.HashSet < > ( ) ; for ( java.lang.String email : emails ) { if ( email == null ) { continue ; } java.lang.String lowerEmail = email.toLowerCase ( ) ; parts.add ( lowerEmail ) ; com.google.common.collect.Iterables.addAll ( parts , at.split ( lowerEmail ) ) ; com.google.common.collect.Iterables.addAll ( parts , s.split ( lowerEmail ) ) ; } if ( name != null ) { com.google.common.collect.Iterables.addAll ( parts , s.split ( name.toLowerCase ( ) ) ) ; } return parts ; }

Target:
public static java.util.Set < java.lang.String > getNameParts ( java.lang.String name , java.lang.Iterable < java.lang.String > emails ) { com.google.common.base.Splitter at = com.google.common.base.Splitter.on ( '@' ) ; com.google.common.base.Splitter s = com.google.common.base.Splitter.on ( com.google.common.base.CharMatcher.anyOf ( "@.- " ) ) . omitEmptyStrings ( ) ; java.util.HashSet < java.lang.String > parts = new java.util.HashSet < > ( ) ; for ( java.lang.String email : emails ) { if ( email == null ) { continue ; } java.lang.String lowerEmail = email.toLowerCase ( ) ; parts.add ( lowerEmail ) ; com.google.common.collect.Iterables.addAll ( parts , at.split ( lowerEmail ) ) ; com.google.common.collect.Iterables.addAll ( parts , s.split ( lowerEmail ) ) ; } if ( name != null ) { com.google.common.collect.Iterables.addAll ( parts , s.split ( name.toLowerCase ( ) ) ) ; } return parts ; }
Source:
public int run ( ) throws java.lang.Exception { com.google.gerrit.server.GerritServer.getInstance ( false ) ; com.google.gerrit.client.rpc.Common.getSchemaFactory ( ) . open ( ) . close ( ) ; java.lang.System.out.println ( "Gerrit2 schema initialized" ) ; return 0 ; }

Target:
public int run ( ) throws java.lang.Exception { final com.google.gerrit.server.GerritServer gs = com.google.gerrit.server.GerritServer.getInstance ( false ) ; gs.getSchemaFactory ( ) . open ( ) . close ( ) ; java.lang.System.out.println ( "Gerrit2 schema initialized" ) ; return 0 ; }
Source:
public static void includedIn ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.info.ChangeInfo.IncludedInInfo > cb ) { com.google.gerrit.client.changes.ChangeApi.call ( id , "in" ) . get ( cb ) ; }

Target:
public static void edit ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.info.ChangeInfo.EditInfo > cb ) { com.google.gerrit.client.changes.ChangeApi.edit ( project , id ) . get ( cb ) ; }
Source:
com.google.gwtorm.client.ResultSet < com.google.gerrit.reviewdb.PatchLineComment > draft ( com.google.gerrit.reviewdb.PatchSet.Id patchset , com.google.gerrit.reviewdb.Account.Id author ) throws com.google.gwtorm.client.OrmException ;

Target:
com.google.gwtorm.client.ResultSet < com.google.gerrit.reviewdb.PatchLineComment > draftByPatchSetAuthor ( com.google.gerrit.reviewdb.PatchSet.Id patchset , com.google.gerrit.reviewdb.Account.Id author ) throws com.google.gwtorm.client.OrmException ;
Source:
public void listEmptyGroupMembers ( ) throws java.lang.Exception { group ( "empty" , "Administrators" ) ; com.google.common.truth.Truth.assertThat ( GET ( "/groups/empty/members/" ) ) . isEmpty ( ) ; }

Target:
public void listNonExistingGroupMembers_NotFound ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( adminSession.get ( ( ( "/groups/" + ( name ( "non-existing" ) ) ) + "/members/" ) ) . getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_NOT_FOUND ) ; }
Source:
public static com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > allAsList ( java.util.List < ? extends com.google.common.util.concurrent.ListenableFuture < ? > > futures ) { return com.google.common.util.concurrent.Futures.makeChecked ( com.google.common.util.concurrent.Futures.allAsList ( futures ) , com.google.gerrit.server.index.change.ChangeIndexer.MAPPER ) ; }

Target:
public static com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > allAsList ( java.util.List < ? extends com.google.common.util.concurrent.ListenableFuture < ? > > futures ) { return com.google.common.util.concurrent.Futures.makeChecked ( com.google.common.util.concurrent.Futures.allAsList ( futures ) , IndexUtils.MAPPER ) ; }
Source:
protected void onLoad ( ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { queryList = com.google.gerrit.server.git.QueryList.parse ( readUTF8 ( QueryList.FILE_NAME ) , com.google.gerrit.server.git.QueryList.createLoggerSink ( QueryList.FILE_NAME , com.google.gerrit.server.account.VersionedAccountQueries.log ) ) ; }

Target:
protected void onLoad ( ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { queryList = com.google.gerrit.server.account.QueryList.parse ( readUTF8 ( QueryList.FILE_NAME ) , com.google.gerrit.server.account.QueryList.createLoggerSink ( QueryList.FILE_NAME , com.google.gerrit.server.account.VersionedAccountQueries.log ) ) ; }
Source:
public void addChangeListener ( com.google.gerrit.common.ChangeListener listener , com.google.gerrit.server.CurrentUser user ) { listeners.put ( listener , new com.google.gerrit.common.ChangeHookRunner.ChangeListenerHolder ( listener , user ) ) ; }

Target:
public void removeEventListener ( com.google.gerrit.common.EventListener listener ) { listeners.remove ( listener ) ; }
Source:
public void advertiseRefs ( org.eclipse.jgit.transport.UploadSession us ) { throw new java.lang.UnsupportedOperationException ( "ReceiveCommitsAdvertiseRefsHook cannot be used for UploadSession" ) ; }

Target:
public void advertiseRefs ( org.eclipse.jgit.transport.UploadPack us ) { throw new java.lang.UnsupportedOperationException ( "ReceiveCommitsAdvertiseRefsHook cannot be used for UploadPack" ) ; }
Source:
public static java.util.Map < java.lang.String , org.eclipse.jgit.lib.Config > againstPreviousIndexVersion ( ) { java.util.List < java.lang.Integer > schemaVersions = com.google.gerrit.testutil.IndexVersions.getWithoutLatest ( AccountSchemaDefinitions.INSTANCE ) ; return com.google.gerrit.testutil.IndexVersions.asConfigMap ( AccountSchemaDefinitions.INSTANCE , schemaVersions , "againstIndexVersion" , defaultConfig ( ) ) ; }

Target:
public static java.util.Map < java.lang.String , org.eclipse.jgit.lib.Config > againstPreviousIndexVersion ( ) { java.util.List < java.lang.Integer > schemaVersions = com.google.gerrit.testing.IndexVersions.getWithoutLatest ( AccountSchemaDefinitions.INSTANCE ) ; return com.google.gerrit.testing.IndexVersions.asConfigMap ( AccountSchemaDefinitions.INSTANCE , schemaVersions , "againstIndexVersion" , defaultConfig ( ) ) ; }
Source:
private void invalidUserName ( ) { new com.google.gerrit.client.ErrorDialog ( Util.C.invalidUserName ( ) ) . center ( ) ; }

Target:
public void onFailure ( final java.lang.Throwable caught ) { enableUI ( true ) ; if ( caught instanceof com.google.gerrit.common.errors.InvalidUserNameException ) { new com.google.gerrit.client.ErrorDialog ( Util.C.invalidUserName ( ) ) . center ( ) ; } else { super . onFailure ( caught ) ; } }
Source:
void onScheme ( com.google.gwt.event.dom.client.ChangeEvent event ) { renderCommands ( ) ; if ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) { saveScheme ( ) ; } }

Target:
public void onChange ( com.google.gwt.event.dom.client.ChangeEvent event ) { renderCommands ( ) ; if ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) { saveScheme ( ) ; } }
Source:
public com.google.gerrit.server.change.Description getDescription ( com.google.gerrit.server.change.ChangeResource rsrc ) { return new com.google.gerrit.extensions.webui.UiAction.Description ( ) . setLabel ( "Unmark private" ) . setTitle ( "Unmark change as private" ) . setVisible ( ( ( rsrc.getChange ( ) . isPrivate ( ) ) && ( canDeletePrivate ( rsrc ) ) ) ) ; }

Target:
public com.google.gerrit.server.change.Description getDescription ( com.google.gerrit.server.change.ChangeResource rsrc ) { return new com.google.gerrit.extensions.webui.UiAction.Description ( ) . setLabel ( "Unmark private" ) . setTitle ( "Unmark change as private" ) . setVisible ( com.google.gerrit.extensions.conditions.BooleanCondition.and ( rsrc.getChange ( ) . isPrivate ( ) , canDeletePrivate ( rsrc ) ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { cm.setCursor ( net.codemirror.lib.LineCharacter.create ( line ) ) ; cm.scrollToY ( java.lang.Math.max ( 0 , ( height - ( scrollbarHeight / 2 ) ) ) ) ; cm.focus ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { cm.setCursor ( net.codemirror.lib.LineCharacter.create ( line ) ) ; cm.scrollToY ( java.lang.Math.max ( 0 , ( height - ( 0.5 * scrollbarHeight ) ) ) ) ; cm.focus ( ) ; }
Source:
private final native void setInReplyTo ( java.lang.String in_reply_to ) ;

Target:
public final native void in_reply_to ( java.lang.String i ) ;
Source:
public void onSuccess ( com.google.gwtjsonrpc.common.VoidResult result ) { if ( ( com.google.gerrit.client.changes.StarredChanges.next ) != null ) { com.google.gerrit.client.changes.StarredChanges.start ( ) ; } else { com.google.gerrit.client.changes.StarredChanges.busy = false ; } }

Target:
public void onSuccess ( com.google.gwt.core.client.JavaScriptObject none ) { if ( com.google.gerrit.client.changes.StarredChanges.pending.isEmpty ( ) ) { com.google.gerrit.client.changes.StarredChanges.busy = false ; } else { com.google.gerrit.client.changes.StarredChanges.startRequest ( ) ; } }
Source:
public void setId ( java.lang.String id ) { this . id = id ; }

Target:
public void setId ( java.lang.String id ) { this . id = com.google.gerrit.common.data.LabelType.checkId ( id ) ; }
Source:
public static com.google.common.collect.ImmutableList < com.google.gerrit.gpg.testutil.TestKey > allValidKeys ( ) { return com.google.common.collect.ImmutableList.of ( com.google.gerrit.gpg.testutil.TestKeys.validKeyWithoutExpiration ( ) , com.google.gerrit.gpg.testutil.TestKeys.validKeyWithExpiration ( ) , com.google.gerrit.gpg.testutil.TestKeys.validKeyWithSecondUserId ( ) ) ; }

Target:
public static com.google.common.collect.ImmutableList < com.google.gerrit.gpg.testing.TestKey > allValidKeys ( ) { return com.google.common.collect.ImmutableList.of ( com.google.gerrit.gpg.testing.TestKeys.validKeyWithoutExpiration ( ) , com.google.gerrit.gpg.testing.TestKeys.validKeyWithExpiration ( ) , com.google.gerrit.gpg.testing.TestKeys.validKeyWithSecondUserId ( ) ) ; }
Source:
public static java.lang.String toSideBySide ( com.google.gerrit.reviewdb.client.PatchSet.Id diffBase , com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName , com.google.gerrit.client.diff.DisplaySide side , int line ) { return com.google.gerrit.client.Dispatcher.toPatch ( "sidebyside" , diffBase , revision , fileName , side , line ) ; }

Target:
public static java.lang.String toSideBySide ( com.google.gerrit.reviewdb.client.PatchSet.Id diffBase , com.google.gerrit.reviewdb.client.Patch.Key id ) { return com.google.gerrit.client.Dispatcher.toPatch ( "sidebyside" , diffBase , id ) ; }
Source:
public static void restoreTime ( ) { org.joda.time.DateTimeUtils.setCurrentMillisSystem ( ) ; }

Target:
public static void restoreTime ( ) { com.google.gerrit.testutil.TestTimeUtil.useSystemTime ( ) ; }
Source:
void addReviewers ( com.google.gerrit.reviewdb.Change.Id id , java.util.List < java.lang.String > reviewers , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ReviewerResult > callback ) ;

Target:
void addReviewers ( com.google.gerrit.reviewdb.Change.Id id , java.util.List < java.lang.String > reviewers , boolean confirmed , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ReviewerResult > callback ) ;
Source:
public com.google.gerrit.extensions.api.changes.Changes.QueryParameter withOptions ( com.google.gerrit.extensions.common.ListChangesOption ... options ) { this . options.addAll ( java.util.Arrays.asList ( options ) ) ; return this ; }

Target:
public com.google.gerrit.extensions.api.changes.Changes.QueryRequest withOptions ( com.google.gerrit.extensions.common.ListChangesOption ... options ) { this . options.addAll ( java.util.Arrays.asList ( options ) ) ; return this ; }
Source:
protected void preDisplay ( com.google.gerrit.client.projects.ConfigInfoCache.Entry result ) { loaded = true ; commentLinkProcessor = result.getCommentLinkProcessor ( ) ; setTheme ( result.getTheme ( ) ) ; renderChangeInfo ( info ) ; loadRevisionInfo ( ) ; }

Target:
public void onSuccess ( java.lang.Void result ) { loadConfigInfo ( info , rev ) ; }
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 , starredChangesCache , 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 , accountProjectWatchCache , remotePeerProvider , null , id ) ; }
Source:
public com.google.common.util.concurrent.ListenableFuture < ? > delete ( com.google.gerrit.server.query.change.ChangeData cd ) { return ( executor ) != null ? executor.submit ( deleteTask ( cd ) ) : com.google.common.util.concurrent.Futures.immediateFuture ( null ) ; }

Target:
private com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > submit ( java.util.concurrent.Callable < ? > task ) { return com.google.common.util.concurrent.Futures.makeChecked ( executor.submit ( task ) , com.google.gerrit.server.index.ChangeIndexer.MAPPER ) ; }
Source:
private void display ( final com.google.gerrit.client.groups.GroupMap result ) { groups.display ( result , subname ) ; groups.finishDisplay ( ) ; }

Target:
protected void preDisplay ( final com.google.gerrit.client.groups.GroupMap result ) { groups.display ( result , subname ) ; groups.finishDisplay ( ) ; }
Source:
public void pushWithPrivateByDefaultEnabled ( ) throws java.lang.Exception { setPrivateByDefault ( project2 , InheritableBoolean.TRUE ) ; com.google.common.truth.Truth.assertThat ( createChange ( project2 ) . getChange ( ) . change ( ) . isPrivate ( ) ) . isEqualTo ( true ) ; }

Target:
public void pushWithPrivateByDefaultEnabled ( ) throws java.lang.Exception { setPrivateByDefault ( project2 , InheritableBoolean.TRUE ) ; com.google.common.truth.Truth.assertThat ( createChange ( project2 ) . getChange ( ) . change ( ) . isPrivate ( ) ) . isTrue ( ) ; }
Source:
private void commit ( ) throws java.io.IOException { writer.commit ( ) ; searcherManager.maybeRefresh ( ) ; }

Target:
void maybeRefresh ( ) { try { searcherManager.maybeRefresh ( ) ; } catch ( java.io.IOException e ) { com.google.gerrit.lucene.SubIndex.log.warn ( "error refreshing indexer" , e ) ; } }
Source:
protected java.util.List < java.lang.String > getInstallPlugins ( ) { return null ; }

Target:
protected java.util.List < java.lang.String > getInstallPlugins ( ) { try { return pluginsDistribution.listPluginNames ( ) ; } catch ( java.io.FileNotFoundException e ) { com.google.gerrit.pgm.BaseInit.log.warn ( ( "Couldn't find distribution archive location." + " No plugin will be installed" ) ) ; return null ; } }
Source:
public static org.eclipse.jgit.transport.PushResult pushHead ( org.eclipse.jgit.api.Git git , java.lang.String ref , boolean pushTags ) throws org.eclipse.jgit.api.errors.GitAPIException { return com.google.gerrit.acceptance.GitUtil.pushHead ( git , ref , pushTags , false ) ; }

Target:
public static org.eclipse.jgit.transport.PushResult pushHead ( org.eclipse.jgit.junit.TestRepository < ? > testRepo , java.lang.String ref , boolean pushTags ) throws org.eclipse.jgit.api.errors.GitAPIException { return com.google.gerrit.acceptance.GitUtil.pushHead ( testRepo , ref , pushTags , false ) ; }
Source:
private static java.lang.String notTrusted ( com.google.gerrit.gpg.testutil.TestKey k ) { return ( "Certification by " + ( com.google.gerrit.gpg.PublicKeyStore.keyToString ( k.getPublicKey ( ) ) ) ) + " is valid, but key is not trusted" ; }

Target:
private static java.lang.String notTrusted ( com.google.gerrit.gpg.testing.TestKey k ) { return ( "Certification by " + ( com.google.gerrit.gpg.PublicKeyStore.keyToString ( k.getPublicKey ( ) ) ) ) + " is valid, but key is not trusted" ; }
Source:
public void testInsertNothing ( ) throws com.google.gwtorm.server.OrmException { setup ( ) ; createClassUnderTest ( ) . insert ( noData ) ; }

Target:
public void testInsertNothing ( ) throws com.google.gwtorm.server.OrmException { classUnderTest.insert ( noData ) ; }
Source:
void onOpenForm ( ) { com.google.gwt.user.client.ui.UIObject.setVisible ( form , true ) ; com.google.gwt.user.client.ui.UIObject.setVisible ( error , false ) ; openForm.setVisible ( false ) ; suggestBox.setFocus ( true ) ; }

Target:
void onCancel ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { openForm.setVisible ( true ) ; com.google.gwt.user.client.ui.UIObject.setVisible ( form , false ) ; suggestBox.setFocus ( false ) ; }
Source:
public boolean handles ( java.io.File srcFile ) { return srcFile.getName ( ) . toLowerCase ( ) . endsWith ( com.googlesource.gerrit.plugins.scripting.scala.ScalaPluginProvider.SCALA_EXTENSION ) ; }

Target:
public boolean handles ( java.nio.file.Path srcFile ) { return srcFile.toString ( ) . toLowerCase ( ) . endsWith ( com.googlesource.gerrit.plugins.scripting.scala.ScalaPluginProvider.SCALA_EXTENSION ) ; }
Source:
void restore ( com.googlecode.prolog_cafe.lang.Prolog engine ) { engine.cont = this . cont ; engine.areg1 = this . areg1 ; engine.areg2 = this . areg2 ; engine.areg3 = this . areg3 ; engine.areg4 = this . areg4 ; engine.areg5 = this . areg5 ; engine.areg6 = this . areg6 ; }

Target:
void restore ( com.googlecode.prolog_cafe.lang.Prolog engine ) { engine.cont = this . cont ; engine.r1 = this . r1 ; engine.r2 = this . r2 ; engine.r3 = this . r3 ; engine.r4 = this . r4 ; engine.r5 = this . r5 ; engine.r6 = this . r6 ; }
Source:
public net.sf.ehcache.statistics.sampled.SampledCacheStatistics getSampledCacheStatistics ( ) { return self ( ) . getSampledCacheStatistics ( ) ; }

Target:
public void setSampledStatisticsEnabled ( boolean enableStatistics ) { self.setSampledStatisticsEnabled ( enableStatistics ) ; }
Source:
protected static org.eclipse.jgit.lib.Config wholeTopicEnabledConfig ( ) { org.eclipse.jgit.lib.Config cfg = new org.eclipse.jgit.lib.Config ( ) ; cfg.setBoolean ( "change" , null , "submitWholeTopic" , true ) ; return cfg ; }

Target:
protected static org.eclipse.jgit.lib.Config submitWholeTopicEnabledConfig ( ) { org.eclipse.jgit.lib.Config cfg = new org.eclipse.jgit.lib.Config ( ) ; cfg.setBoolean ( "change" , null , "submitWholeTopic" , true ) ; return cfg ; }
Source:
com.googlesource.gerrit.plugins.hooks.HookResult run ( com.googlesource.gerrit.plugins.hooks.HookArgs args ) { return executor.submit ( path , args ) ; }

Target:
com.googlesource.gerrit.plugins.hooks.HookResult execute ( com.googlesource.gerrit.plugins.hooks.HookArgs args ) { return executor.submit ( path , args ) ; }
Source:
public void onShowView ( ) { if ( ( windowTitle ) != null ) { com.google.gerrit.client.Gerrit.setWindowTitle ( this , windowTitle ) ; } }

Target:
public void onShowView ( ) { if ( ( windowTitle ) != null ) { com.google.gerrit.client.Gerrit.setWindowTitle ( this , windowTitle ) ; } registerKeys ( ) ; }
Source:
public void onFailure ( java.lang.Throwable caught ) { b.setEnabled ( true ) ; super . onFailure ( caught ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { b.setEnabled ( false ) ; Util.MANAGE_SVC.submit ( patchSet.getId ( ) , new com.google.gerrit.client.changes.ChangeDetailCache.GerritWidgetCallback ( b ) { public void onSuccess ( com.google.gerrit.common.data.ChangeDetail result ) { onSubmitResult ( result ) ; } } ) ; }
Source:
private void uncacheSshKeys ( final java.lang.String userName ) { sshKeyCache.evict ( userName ) ; }

Target:
private void uncacheSshKeys ( ) { sshKeyCache.evict ( user.get ( ) . getUserName ( ) ) ; }
Source:
public void addClickListener ( com.google.gwt.user.client.ui.ClickListener listener ) { addMember.addClickListener ( listener ) ; }

Target:
public void addClickHandler ( final com.google.gwt.event.dom.client.ClickHandler handler ) { addMember.addClickHandler ( handler ) ; }
Source:
private com.google.gerrit.server.project.ChangeControl forUser ( com.google.gerrit.server.CurrentUser who ) { if ( getUser ( ) . equals ( who ) ) { return this ; } return new com.google.gerrit.server.project.ChangeControl ( changeDataFactory , approvalsUtil , refControl.forUser ( who ) , notes , patchSetUtil ) ; }

Target:
private com.google.gerrit.server.permissions.ChangeControl forUser ( com.google.gerrit.server.CurrentUser who ) { if ( getUser ( ) . equals ( who ) ) { return this ; } return new com.google.gerrit.server.permissions.ChangeControl ( changeDataFactory , approvalsUtil , refControl.forUser ( who ) , notes , patchSetUtil ) ; }
Source:
static com.google.gerrit.acceptance.GerritServer.Description forTestClass ( com.google.gerrit.acceptance.Description testDesc , java.lang.String configName ) { return new com.google.gerrit.acceptance.AutoValue_GerritServer_Description ( configName , true , ( ( testDesc.getTestClass ( ) . getAnnotation ( com.google.gerrit.acceptance.NoHttpd.class ) ) == null ) , null , null ) ; }

Target:
static com.google.gerrit.acceptance.GerritServer.Description forTestClass ( com.google.gerrit.acceptance.Description testDesc , java.lang.String configName ) { return new com.google.gerrit.acceptance.AutoValue_GerritServer_Description ( configName , true , ( ! ( com.google.gerrit.acceptance.GerritServer.Description.hasNoHttpd ( testDesc.getTestClass ( ) ) ) ) , null , null ) ; }
Source:
public boolean canDeleteDraft ( final com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException { return ( isOwner ( ) ) && ( isVisible ( db ) ) ; }

Target:
public boolean canDeleteDraft ( final com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException { return ( ( isOwner ( ) ) || ( getRefControl ( ) . canDeleteDrafts ( ) ) ) && ( isVisible ( db ) ) ; }
Source:
java.lang.String inline ( @ javax.annotation.Nullable java.lang.String markdownPath , java.lang.String imagePath ) { java.lang.String data = inlineMaybe ( markdownPath , imagePath ) ; if ( data != null ) { return data ; } return FilterImageDataUri.INSTANCE.getInnocuousOutput ( ) ; }

Target:
java.lang.String inline ( @ javax.annotation.Nullable java.lang.String markdownPath , java.lang.String imagePath ) { java.lang.String data = inlineMaybe ( markdownPath , imagePath ) ; if ( data != null ) { return data ; } return SoyConstants.IMAGE_URI_INNOCUOUS_OUTPUT ; }
Source:
private static org.eclipse.jgit.revwalk.RevCommit lookup ( org.eclipse.jgit.lib.Repository repository , org.eclipse.jgit.lib.ObjectId commitId ) throws java.io.IOException { try ( org.eclipse.jgit.revwalk.RevWalk revWalk = new org.eclipse.jgit.revwalk.RevWalk ( repository ) ) { return revWalk.parseCommit ( commitId ) ; } }

Target:
private static org.eclipse.jgit.revwalk.RevCommit lookupCommit ( org.eclipse.jgit.lib.Repository repository , com.google.gerrit.reviewdb.client.PatchSet patchSet ) throws java.io.IOException { org.eclipse.jgit.lib.ObjectId patchSetCommitId = com.google.gerrit.server.edit.ChangeEditModifier.getPatchSetCommitId ( patchSet ) ; try ( org.eclipse.jgit.revwalk.RevWalk revWalk = new org.eclipse.jgit.revwalk.RevWalk ( repository ) ) { return revWalk.parseCommit ( patchSetCommitId ) ; } }
Source:
public boolean isVisible ( ) { return ( projectControl.visibleForReplication ( ) ) || ( canPerform ( Permission.READ ) ) ; }

Target:
public boolean isVisible ( ) { return ( ( projectControl.visibleForReplication ( ) ) || ( canPerform ( Permission.READ ) ) ) && ( canRead ( ) ) ; }
Source:
public void execute ( ) { com.google.gerrit.client.Gerrit.doSignIn ( ) ; }

Target:
public void execute ( ) { com.google.gerrit.client.Gerrit.doSignIn ( com.google.gwt.user.client.History.getToken ( ) ) ; }
Source:
private com.google.gerrit.server.plugins.PluginEntry resourceOf ( java.util.jar.JarEntry jarEntry ) throws java.io.IOException { return new com.google.gerrit.server.plugins.PluginEntry ( jarEntry.getName ( ) , jarEntry.getTime ( ) , jarEntry.getSize ( ) , attributesOf ( jarEntry ) ) ; }

Target:
private com.google.gerrit.server.plugins.PluginEntry resourceOf ( java.util.jar.JarEntry jarEntry ) throws java.io.IOException { return new com.google.gerrit.server.plugins.PluginEntry ( jarEntry.getName ( ) , jarEntry.getTime ( ) , com.google.common.base.Optional.of ( jarEntry.getSize ( ) ) , attributesOf ( jarEntry ) ) ; }
Source:
public com.google.gerrit.sshd.SshSession get ( ) { return com.google.gerrit.sshd.SshScope.getContext ( ) . getSession ( ) ; }

Target:
public com.google.gerrit.sshd.SshSession get ( ) { return com.google.gerrit.sshd.SshScope.requireContext ( ) . getSession ( ) ; }