auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public com.google.gerrit.reviewdb.client.Change abandon ( com.google.gerrit.server.project.ChangeControl control ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.git.UpdateException { return abandon ( control , "" , NotifyHandling.ALL ) ; }

Target:
public com.google.gerrit.reviewdb.client.Change abandon ( com.google.gerrit.server.project.ChangeControl control , java.lang.String msgTxt ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.git.UpdateException { return abandon ( control , msgTxt , NotifyHandling.ALL , com.google.common.collect.ImmutableListMultimap.of ( ) ) ; }
Source:
private void extractMailExample ( java.lang.String orig ) throws java.lang.Exception { java.nio.file.Path ex = site.mail_dir.resolve ( ( orig + ".example" ) ) ; com.google.gerrit.pgm.init.api.InitUtil.extract ( ex , com.google.gerrit.server.mail.OutgoingEmail.class , orig ) ; com.google.gerrit.common.FileUtil.chmod ( 292 , ex ) ; }

Target:
private void extractMailExample ( java.lang.String orig ) throws java.lang.Exception { java.nio.file.Path ex = site.mail_dir.resolve ( ( orig + ".example" ) ) ; com.google.gerrit.pgm.init.api.InitUtil.extract ( ex , com.google.gerrit.server.mail.send.OutgoingEmail.class , orig ) ; com.google.gerrit.common.FileUtil.chmod ( 292 , ex ) ; }
Source:
private java.sql.Timestamp getSubmittedOn ( com.google.gerrit.server.query.change.ChangeData cd ) throws com.google.gwtorm.server.OrmException { com.google.common.base.Optional < com.google.gerrit.reviewdb.client.PatchSetApproval > s = cd.getSubmitApproval ( ) ; return s.isPresent ( ) ? s.get ( ) . getGranted ( ) : null ; }

Target:
private java.sql.Timestamp getSubmittedOn ( com.google.gerrit.server.query.change.ChangeData cd ) throws com.google.gwtorm.server.OrmException { java.util.Optional < com.google.gerrit.reviewdb.client.PatchSetApproval > s = cd.getSubmitApproval ( ) ; return s.isPresent ( ) ? s.get ( ) . getGranted ( ) : null ; }
Source:
private void beforeTest ( org.eclipse.jgit.lib.Config cfg ) throws java.lang.Exception { server = com.google.gerrit.acceptance.GerritServer.start ( cfg ) ; server.getTestInjector ( ) . injectMembers ( this ) ; }

Target:
private void beforeTest ( org.eclipse.jgit.lib.Config cfg , boolean memory ) throws java.lang.Exception { server = startServer ( cfg , memory ) ; server.getTestInjector ( ) . injectMembers ( this ) ; }
Source:
public com.google.gerrit.reviewdb.com.google.gwtorm [ ] members ( ) { return new com.google.gwtorm.client.Key < ? > [ ] { submodule } ; }

Target:
public java.lang.String get ( ) { return submodulePath ; }
Source:
public com.google.gerrit.reviewdb.client.Change change ( ) throws com.google.gwtorm.server.OrmException { if ( ( change ) == null ) { change = db.changes ( ) . get ( legacyId ) ; } return change ; }

Target:
public com.google.gerrit.reviewdb.client.Change reloadChange ( ) throws com.google.gwtorm.server.OrmException { change = db.changes ( ) . get ( legacyId ) ; return change ; }
Source:
public void testVerifyAgainstToken ( ) throws java.lang.Exception { java.lang.String token = auth.generateToken ( "o" , org.eclipse.jgit.lfs.lib.LongObjectId.zeroId ( ) , 1 ) ; com.google.common.truth.Truth.assertThat ( auth.verifyAgainstToken ( token , "o" , org.eclipse.jgit.lfs.lib.LongObjectId.zeroId ( ) ) ) . isTrue ( ) ; }

Target:
public void testVerifyAuthInfo ( ) throws java.lang.Exception { com.googlesource.gerrit.plugins.lfs.fs.LfsFsRequestAuthorizer.AuthInfo info = auth.generateAuthInfo ( "o" , org.eclipse.jgit.lfs.lib.LongObjectId.zeroId ( ) , 1 ) ; com.google.common.truth.Truth.assertThat ( auth.verifyAuthInfo ( info.authToken , "o" , org.eclipse.jgit.lfs.lib.LongObjectId.zeroId ( ) ) ) . isTrue ( ) ; }
Source:
public void addReviewerToReviewableChangeInReviewDb ( ) throws java.lang.Exception { forAll ( ( adder ) -> { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isFalse ( ) ; com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; com.google.gerrit.acceptance.TestAccount reviewer = accounts.create ( "added" , "added@example.com" , "added" ) ; addReviewer ( adder , sc.changeId , sc.owner , reviewer.email ) ; assertThat ( sender ) . sent ( "newchange" , sc ) . to ( reviewer ) . cc ( sc.reviewer , sc.ccer ) . cc ( sc.reviewerByEmail , sc.ccerByEmail ) . notTo ( sc.owner , sc.starrer ) ; } ) ; }

Target:
public void addReviewerToReviewableChangeInReviewDb ( ) throws java.lang.Exception { forAll ( ( adder ) -> { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isFalse ( ) ; com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; com.google.gerrit.acceptance.TestAccount reviewer = accountCreator.create ( "added" , "added@example.com" , "added" ) ; addReviewer ( adder , sc.changeId , sc.owner , reviewer.email ) ; assertThat ( sender ) . sent ( "newchange" , sc ) . to ( reviewer ) . cc ( sc.reviewer , sc.ccer ) . cc ( sc.reviewerByEmail , sc.ccerByEmail ) . noOneElse ( ) ; } ) ; }
Source:
public void onSuccess ( com.google.gerrit.common.data.PatchSetDetail result ) { commitMessageBlock.setVisible ( true ) ; commitMessageBlock.display ( result.getInfo ( ) . getMessage ( ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.common.data.PatchSetDetail result ) { commitMessageBlock.setVisible ( true ) ; commitMessageBlock.display ( result.getInfo ( ) . getMessage ( ) , commentLinkProcessor ) ; }
Source:
public void initSshModule ( java.lang.String pluginName ) { command = com.google.gerrit.sshd.Commands.named ( pluginName ) ; }

Target:
protected final void configure ( ) { com.google.common.base.Preconditions.checkState ( ( ( command ) != null ) , "@PluginName must be provided" ) ; bind ( com.google.gerrit.sshd.Commands.key ( command ) ) . toProvider ( new com.google.gerrit.sshd.DispatchCommandProvider ( command ) ) ; configureCommands ( ) ; }
Source:
public com.google.gerrit.server.patch.PatchDetailServiceImpl.PublishResult run ( com.google.gerrit.client.reviewdb.ReviewDb db , com.google.gwtorm.client.Transaction txn , boolean retry ) throws com.google.gwtorm.client.OrmException { return doPublishComments ( psid , message , approvals , db , txn ) ; }

Target:
public com.google.gwtjsonrpc.client.VoidResult run ( com.google.gerrit.client.reviewdb.ReviewDb db , com.google.gwtorm.client.Transaction txn , boolean retry ) throws com.google.gwtorm.client.OrmException { return doAddReviewers ( reviewerIds , id , db , txn ) ; }
Source:
public static com.google.gerrit.server.account.ExternalId createEmail ( com.google.gerrit.reviewdb.client.Account.Id accountId , java.lang.String email ) { return com.google.gerrit.server.account.ExternalId.createWithEmail ( com.google.gerrit.server.account.ExternalId.SCHEME_MAILTO , email , accountId , email ) ; }

Target:
public static com.google.gerrit.server.account.ExternalId createEmail ( com.google.gerrit.reviewdb.client.Account.Id accountId , java.lang.String email ) { return com.google.gerrit.server.account.ExternalId.createWithEmail ( com.google.gerrit.server.account.ExternalId.SCHEME_MAILTO , email , accountId , com.google.common.base.Preconditions.checkNotNull ( email ) ) ; }
Source:
private int getWrapAroundDiffChunkIndex ( int index ) { return ( index + ( diffChunks.size ( ) ) ) % ( diffChunks.size ( ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.ReviewInfo result ) { header.reviewed.setValue ( true , false ) ; }
Source:
void fireGitRefUpdatedEvent ( org.eclipse.jgit.lib.RefUpdate ru ) { gitRefUpdated.fire ( projectName , ru ) ; }

Target:
void fireGitRefUpdatedEvent ( org.eclipse.jgit.lib.RefUpdate ru ) { gitRefUpdated.fire ( projectName , ru , ( ( author ) == null ? null : author.getAccount ( ) ) ) ; }
Source:
protected void configure ( ) { bind ( org.eclipse.jgit.lib.Config.class ) . annotatedWith ( com.google.gerrit.server.config.GerritServerConfig.class ) . toInstance ( cfg ) ; }

Target:
public void configure ( ) { java.net.InetSocketAddress addr = new java.net.InetSocketAddress ( com.google.common.net.InetAddresses.forString ( "127.0.0.1" ) , 1234 ) ; bind ( java.net.SocketAddress.class ) . annotatedWith ( com.google.gerrit.server.RemotePeer.class ) . toInstance ( addr ) ; }
Source:
void write ( java.io.Writer w ) throws java.io.IOException { w.write ( value ) ; }

Target:
void write ( java.io.Writer w ) throws java.io.IOException { if ( com.google.gerrit.server.mail.EmailHeader.needsQuotedPrintable ( value ) ) { w.write ( com.google.gerrit.server.mail.EmailHeader.quotedPrintable ( value ) ) ; } else { w.write ( value ) ; } }
Source:
public void onRemove ( org.eclipse.jgit.lib.ObjectId newNotesRev , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > extId ) { }

Target:
public void onReplace ( org.eclipse.jgit.lib.ObjectId oldNotesRev , 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 ) { }
Source:
public static com.google.gerrit.server.account.ExternalId create ( com.google.gerrit.server.account.ExternalId.Key key , com.google.gerrit.reviewdb.client.Account.Id accountId , @ com.google.gerrit.common.Nullable java.lang.String email , @ com.google.gerrit.common.Nullable java.lang.String hashedPassword ) { return new com.google.gerrit.server.account.AutoValue_ExternalId ( key , accountId , email , hashedPassword ) ; }

Target:
public static com.google.gerrit.server.account.ExternalId create ( com.google.gerrit.server.account.ExternalId.Key key , com.google.gerrit.reviewdb.client.Account.Id accountId , @ com.google.gerrit.common.Nullable java.lang.String email , @ com.google.gerrit.common.Nullable java.lang.String hashedPassword ) { return new com.google.gerrit.server.account.AutoValue_ExternalId ( key , accountId , com.google.common.base.Strings.emptyToNull ( email ) , com.google.common.base.Strings.emptyToNull ( hashedPassword ) ) ; }
Source:
public static java.lang.String linkify ( final java.lang.String in ) { return com.google.gerrit.client.ui.DomUtil.INSTANCE.linkify ( in ) ; }

Target:
public static java.lang.String escape ( final java.lang.String in ) { return new com.google.gwtexpui.safehtml.client.SafeHtmlBuilder ( ) . append ( in ) . asString ( ) ; }
Source:
private static boolean isDateField ( java.lang.String name ) { return ( "lastUpdated" . equals ( name ) ) || ( "grantedOn" . equals ( name ) ) ; }

Target:
private static boolean isDateField ( java.lang.String name ) { return ( ( "lastUpdated" . equals ( name ) ) || ( "grantedOn" . equals ( name ) ) ) || ( "timestamp" . equals ( name ) ) ; }
Source:
public com.google.gerrit.server.IdentifiedUser create ( final com.google.gerrit.server.AccessPath accessPath , final com.google.gerrit.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( accessPath , authConfig , canonicalUrl , realm , accountCache , groupIncludeCache , remotePeerProvider , dbProvider , id ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( final com.google.gerrit.server.AccessPath accessPath , final com.google.gerrit.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , accessPath , authConfig , canonicalUrl , realm , accountCache , groupIncludeCache , remotePeerProvider , dbProvider , id ) ; }
Source:
public com.google.gerrit.extensions.api.changes.ChangeApi rebase ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return changes.id ( rebase.apply ( revision , null ) . _number ) ; } catch ( com.google.gwtorm.server.OrmException | com.google.gerrit.common.errors.EmailException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot rebase ps" , e ) ; } }

Target:
public com.google.gerrit.extensions.api.changes.ChangeApi rebase ( com.google.gerrit.extensions.api.changes.RebaseInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return changes.id ( rebase.apply ( revision , in ) . _number ) ; } catch ( com.google.gwtorm.server.OrmException | com.google.gerrit.common.errors.EmailException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot rebase ps" , e ) ; } }
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:
static long now ( ) { return java.lang.System.currentTimeMillis ( ) ; }
Source:
com.google.gerrit.server.git.strategy.SubmitStrategy.Arguments create ( com.google.gerrit.reviewdb.client.Branch.NameKey destBranch , com.google.gerrit.server.git.CodeReviewCommit.CodeReviewRevWalk rw , com.google.gerrit.server.IdentifiedUser caller , org.eclipse.jgit.lib.ObjectInserter inserter , org.eclipse.jgit.lib.Repository repo , org.eclipse.jgit.revwalk.RevFlag canMergeFlag , com.google.gerrit.reviewdb.server.ReviewDb db , java.util.Set < org.eclipse.jgit.revwalk.RevCommit > alreadyAccepted ) ;

Target:
com.google.gerrit.server.git.strategy.SubmitStrategy.Arguments create ( com.google.gerrit.reviewdb.client.Branch.NameKey destBranch , com.google.gerrit.server.git.MergeOp.CommitStatus commits , com.google.gerrit.server.git.CodeReviewCommit.CodeReviewRevWalk rw , com.google.gerrit.server.IdentifiedUser caller , org.eclipse.jgit.lib.ObjectInserter inserter , org.eclipse.jgit.lib.Repository repo , org.eclipse.jgit.revwalk.RevFlag canMergeFlag , com.google.gerrit.reviewdb.server.ReviewDb db , java.util.Set < org.eclipse.jgit.revwalk.RevCommit > alreadyAccepted ) ;
Source:
private com.google.gerrit.reviewdb.client.Change.Id getOrRegisterAccount ( com.google.gerrit.reviewdb.server.ReviewDb db , org.kohsuke.github.GHPullRequestCommitDetail.Authorship author ) throws com.google.gerrit.extensions.restapi.BadRequestException , com.google.gerrit.extensions.restapi.ResourceConflictException , com.google.gerrit.extensions.restapi.UnprocessableEntityException , com.google.gwtorm.server.OrmException , java.io.IOException { return getOrRegisterAccount ( db , author.getName ( ) , author.getName ( ) , author.getEmail ( ) ) ; }

Target:
private com.google.gerrit.reviewdb.client.Change.Id getOrRegisterAccount ( com.google.gerrit.reviewdb.server.ReviewDb db , org.kohsuke.github.GitUser author ) throws com.google.gerrit.extensions.restapi.BadRequestException , com.google.gerrit.extensions.restapi.ResourceConflictException , com.google.gerrit.extensions.restapi.UnprocessableEntityException , com.google.gwtorm.server.OrmException , java.io.IOException { return getOrRegisterAccount ( db , author.getName ( ) , author.getName ( ) , author.getEmail ( ) ) ; }
Source:
public void onError ( final com.google.gwt.http.client.Request request , final java.lang.Throwable exception ) { callback.onFailure ( exception ) ; }

Target:
public void onError ( final com.google.gwt.http.client.Request request , final java.lang.Throwable exception ) { com.google.gwtjsonrpc.client.JsonUtil.fireOnCallEnd ( ) ; callback.onFailure ( exception ) ; }
Source:
public java.lang.String getImageUrl ( ) { return myImageUrl ; }

Target:
public com.google.gerrit.extensions.common.WebLinkInfo getProjectWeblink ( java.lang.String projectName ) { return new com.google.gerrit.extensions.common.WebLinkInfo ( name , myImageUrl , java.lang.String.format ( placeHolderUrlProject , projectName ) , com.google.gerrit.extensions.webui.WebLinkTarget.BLANK ) ; }
Source:
public abstract org.eclipse.jgit.lib.Repository createRepository ( com.google.gerrit.reviewdb.client.Project.NameKey name ) throws com.google.gerrit.server.git.RepositoryCaseMismatchException , java.io.IOException , org.eclipse.jgit.errors.RepositoryNotFoundException ;

Target:
org.eclipse.jgit.lib.Repository openMetadataRepository ( com.google.gerrit.reviewdb.client.Project.NameKey name ) throws java.io.IOException , org.eclipse.jgit.errors.RepositoryNotFoundException ;
Source:
public com.google.gerrit.reviewdb.client.AccountGroupIncludeByUuidAudit.Key getKey ( ) { return key ; }

Target:
public com.google.gerrit.reviewdb.client.AccountGroupByIdAud.Key getKey ( ) { return key ; }
Source:
public final AccountGroup.UUID getGroupUUID ( ) { return new com.google.gerrit.reviewdb.client.AccountGroup.UUID ( com.google.gwt.http.client.URL.decodePathSegment ( id ( ) ) ) ; }

Target:
public final AccountGroup.UUID getGroupUUID ( ) { return new com.google.gerrit.reviewdb.client.AccountGroup.UUID ( com.google.gwt.http.client.URL.decodeQueryString ( id ( ) ) ) ; }
Source:
static boolean onTime ( java.lang.String dateTime ) { java.lang.String now = com.googlesource.gerrit.plugins.lfs.LfsAuthToken.ISO.print ( com.googlesource.gerrit.plugins.lfs.LfsAuthToken.now ( ) ) ; return ( now.compareTo ( dateTime ) ) <= 0 ; }

Target:
static boolean onTime ( java.lang.String dateTime ) { return ( com.googlesource.gerrit.plugins.lfs.LfsDateTime.now ( ) . compareTo ( dateTime ) ) <= 0 ; }
Source:
public com.google.gerrit.server.query.DataSource < com.google.gerrit.server.account.AccountState > getSource ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.account.AccountState > p , com.google.gerrit.server.index.QueryOptions opts ) throws com.google.gerrit.index.query.QueryParseException { return new com.google.gerrit.lucene.LuceneAccountIndex.QuerySource ( opts , queryBuilder.toQuery ( p ) , new org.apache.lucene.search.Sort ( new org.apache.lucene.search.SortField ( com.google.gerrit.lucene.LuceneAccountIndex.ID_SORT_FIELD , SortField.Type.LONG , true ) ) ) ; }

Target:
public com.google.gerrit.index.query.DataSource < com.google.gerrit.server.account.AccountState > getSource ( com.google.gerrit.index.query.Predicate < com.google.gerrit.server.account.AccountState > p , com.google.gerrit.index.QueryOptions opts ) throws com.google.gerrit.index.query.QueryParseException { return new com.google.gerrit.lucene.LuceneAccountIndex.QuerySource ( opts , queryBuilder.toQuery ( p ) , new org.apache.lucene.search.Sort ( new org.apache.lucene.search.SortField ( com.google.gerrit.lucene.LuceneAccountIndex.ID_SORT_FIELD , SortField.Type.LONG , true ) ) ) ; }
Source:
public void listNonExistingGroupMembers_NotFound ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( adminSession.get ( "/groups/non-existing/members/" ) . getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_NOT_FOUND ) ; }

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:
void onDeleteRevision ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( com.google.gwt.user.client.Window.confirm ( Resources.C.deleteDraftRevision ( ) ) ) { com.google.gerrit.client.change.ChangeActions.delete ( changeId , revision , publish , deleteRevision ) ; } }

Target:
void onRebaseEdit ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.EditActions.rebaseEdit ( getProject ( ) , changeId , publishEdit , rebaseEdit , deleteEdit ) ; }
Source:
public void matchesName ( ) throws java.lang.Exception { com.google.gitiles.IdentRevFilter filter = com.google.gitiles.IdentRevFilter.author ( "eSt" ) ; org.junit.Assert.assertTrue ( filter.matchesPerson ( new org.eclipse.jgit.lib.PersonIdent ( "eSt" , "null@google.com" ) ) ) ; org.junit.Assert.assertTrue ( filter.matchesPerson ( new org.eclipse.jgit.lib.PersonIdent ( "eStablish" , "null@google.com" ) ) ) ; org.junit.Assert.assertTrue ( filter.matchesPerson ( new org.eclipse.jgit.lib.PersonIdent ( "teSt" , "null@google.com" ) ) ) ; org.junit.Assert.assertTrue ( filter.matchesPerson ( new org.eclipse.jgit.lib.PersonIdent ( "teSting" , "null@google.com" ) ) ) ; }

Target:
public void matchesName ( ) throws java.lang.Exception { com.google.gitiles.IdentRevFilter filter = com.google.gitiles.IdentRevFilter.author ( "eSt" ) ; com.google.common.truth.Truth.assertThat ( filter.matchesPerson ( new org.eclipse.jgit.lib.PersonIdent ( "eSt" , "null@google.com" ) ) ) . isTrue ( ) ; com.google.common.truth.Truth.assertThat ( filter.matchesPerson ( new org.eclipse.jgit.lib.PersonIdent ( "eStablish" , "null@google.com" ) ) ) . isTrue ( ) ; com.google.common.truth.Truth.assertThat ( filter.matchesPerson ( new org.eclipse.jgit.lib.PersonIdent ( "teSt" , "null@google.com" ) ) ) . isTrue ( ) ; com.google.common.truth.Truth.assertThat ( filter.matchesPerson ( new org.eclipse.jgit.lib.PersonIdent ( "teSting" , "null@google.com" ) ) ) . isTrue ( ) ; }
Source:
public void onClose ( com.google.gwt.event.logical.shared.CloseEvent < com.google.gwt.user.client.ui.PopupPanel > event ) { if ( ( popup ) == p ) { popup = null ; } }

Target:
public void onClose ( com.google.gwt.event.logical.shared.CloseEvent < com.google.gwt.user.client.ui.PopupPanel > event ) { if ( ( popup ) == p ) { button.removeStyleName ( style.selected ( ) ) ; popup = null ; } }
Source:
public static java.util.Set < java.lang.String > getChangedPaths ( org.eclipse.jgit.lib.Repository repo , org.eclipse.jgit.revwalk.RevCommit c ) throws java.io.IOException { java.util.Map < java.lang.String , org.eclipse.jgit.lib.ObjectId > content = com.googlesource.gerrit.plugins.uploadvalidator.CommitUtils.getChangedContent ( repo , c ) ; return content.keySet ( ) ; }

Target:
public static java.util.Set < java.lang.String > getChangedPaths ( org.eclipse.jgit.lib.Repository repo , org.eclipse.jgit.revwalk.RevCommit c , org.eclipse.jgit.revwalk.RevWalk revWalk ) throws java.io.IOException { java.util.Map < java.lang.String , org.eclipse.jgit.lib.ObjectId > content = com.googlesource.gerrit.plugins.uploadvalidator.CommitUtils.getChangedContent ( repo , c , revWalk ) ; return content.keySet ( ) ; }
Source:
void onAllNodesReplicated ( int totalPushTasksCount ) { if ( totalPushTasksCount == 0 ) { return ; } writeStdOut ( "----------------------------------------------" ) ; if ( hasError.get ( ) ) { writeStdOut ( "Replication completed with some errors!" ) ; } else { writeStdOut ( "Replication completed successfully!" ) ; } }

Target:
void onAllRefsReplicatedToAllNodes ( int totalPushTasksCount ) { if ( totalPushTasksCount == 0 ) { return ; } writeStdOut ( "----------------------------------------------" ) ; if ( hasError.get ( ) ) { writeStdOut ( "Replication completed with some errors!" ) ; } else { writeStdOut ( "Replication completed successfully!" ) ; } }
Source:
public void onReplaceByKeys ( org.eclipse.jgit.lib.ObjectId newNotesRev , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId.Key > toRemove , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toAdd ) { }

Target:
public void onReplaceByKeys ( 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.Key > toRemove , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toAdd ) { }
Source:
public com.google.gwtorm.server.Access < ? , ? > [ ] allRelations ( ) { throw new com.google.gerrit.testutil.DisabledReviewDb.Disabled ( ) ; }

Target:
public com.google.gwtorm.server.Access < ? , ? > [ ] allRelations ( ) { throw new com.google.gerrit.testing.DisabledReviewDb.Disabled ( ) ; }
Source:
private static long initialDelay ( java.lang.String startTime , java.lang.String interval ) { return new com.google.gerrit.server.config.ScheduleConfig ( com.google.gerrit.server.config.ScheduleConfigTest.config ( startTime , interval ) , "section" , "subsection" , com.google.gerrit.server.config.ScheduleConfigTest.NOW ) . getInitialDelay ( ) ; }

Target:
private static long initialDelay ( java.lang.String startTime , java.lang.String interval ) { return com.google.gerrit.server.config.ScheduleConfig.builder ( com.google.gerrit.server.config.ScheduleConfigTest.config ( startTime , interval ) , "section" ) . setSubsection ( "subsection" ) . setNow ( com.google.gerrit.server.config.ScheduleConfigTest.NOW ) . build ( ) . initialDelay ( ) ; }
Source:
private void setNew ( com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.reviewdb.client.ChangeMessage msg ) { sendMergeFail ( c , msg , true ) ; }

Target:
private void setNew ( com.google.gerrit.server.git.CodeReviewCommit c , com.google.gerrit.reviewdb.client.ChangeMessage msg ) throws com.google.gerrit.server.project.NoSuchChangeException , java.io.IOException { sendMergeFail ( c.notes ( ) , msg , true ) ; }
Source:
public java.lang.String getReplacementString ( ) { return java.lang.String.valueOf ( change.legacyId ( ) . get ( ) ) ; }

Target:
public java.lang.String getDisplayString ( ) { return ( ( java.lang.String.valueOf ( change.legacyId ( ) . get ( ) ) ) + ": " ) + ( change.subject ( ) ) ; }
Source:
private void add ( final javax.mail.Message.RecipientType rt , final com.google.gerrit.client.reviewdb.UserIdentity who ) throws javax.mail.MessagingException { if ( ( who != null ) && ( ( who.getAccount ( ) ) != null ) ) { add ( rt , who.getAccount ( ) ) ; } }

Target:
protected void add ( final com.google.gerrit.server.mail.RecipientType rt , final com.google.gerrit.client.reviewdb.Account.Id to ) { if ( rcptTo.add ( to ) ) { add ( rt , toAddress ( to ) ) ; } }
Source:
void delete ( org.apache.lucene.index.Term term ) throws java.io.IOException { writer.deleteDocuments ( term ) ; }

Target:
void deleteAll ( ) throws java.io.IOException { writer.deleteAll ( ) ; }
Source:
protected void onInitUI ( ) { super . onInitUI ( ) ; initName ( ) ; initOwner ( ) ; initDescription ( ) ; initGroupType ( ) ; initMemberList ( ) ; initExternal ( ) ; }

Target:
protected void onInitUI ( ) { super . onInitUI ( ) ; initName ( ) ; initOwner ( ) ; initDescription ( ) ; initGroupOptions ( ) ; initGroupType ( ) ; initMemberList ( ) ; initExternal ( ) ; }
Source:
public void evaluate ( ) throws java.lang.Throwable { beforeTest ( com.google.gerrit.acceptance.AbstractDaemonTest.config ( description ) ) ; base.evaluate ( ) ; afterTest ( ) ; }

Target:
public void evaluate ( ) throws java.lang.Throwable { boolean mem = ( description.getAnnotation ( com.google.gerrit.acceptance.UseLocalDisk.class ) ) == null ; beforeTest ( com.google.gerrit.acceptance.AbstractDaemonTest.config ( description ) , mem ) ; base.evaluate ( ) ; afterTest ( ) ; }
Source:
public < T extends com.google.gwt.core.client.JavaScriptObject > void put ( com.google.gwtjsonrpc.common.AsyncCallback < T > cb ) { send ( com.google.gwt.http.client.RequestBuilder.PUT , cb ) ; }

Target:
public < T extends com.google.gwt.core.client.JavaScriptObject > void put ( com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { send ( com.google.gwt.http.client.RequestBuilder.PUT , cb ) ; }
Source:
public void setStars ( com.google.common.collect.Multimap < com.google.gerrit.reviewdb.client.Account.Id , java.lang.String > stars ) { this . stars = com.google.common.collect.ImmutableMultimap.copyOf ( stars ) ; }

Target:
public void setRefStatePatterns ( java.lang.Iterable < byte [ ] > refStatePatterns ) { this . refStatePatterns = com.google.common.collect.ImmutableList.copyOf ( refStatePatterns ) ; }
Source:
private static boolean isValidParameterName ( java.lang.String name ) { return ( com.google.common.base.CharMatcher.JAVA_LETTER_OR_DIGIT.or ( com.google.common.base.CharMatcher.is ( '-' ) ) . matchesAllOf ( name ) ) && ( ! ( name.startsWith ( "-" ) ) ) ; }

Target:
private static boolean isValidParameterName ( java.lang.String name ) { return ( com.google.common.base.CharMatcher.javaLetterOrDigit ( ) . or ( com.google.common.base.CharMatcher.is ( '-' ) ) . matchesAllOf ( name ) ) && ( ! ( name.startsWith ( "-" ) ) ) ; }
Source:
private static boolean isModify ( com.google.gerrit.server.patch.PatchListEntry content ) { switch ( content.getChangeType ( ) ) { case MODIFIED : case COPIED : case RENAMED : return true ; case ADDED : case DELETED : default : return false ; } }

Target:
private static boolean isModify ( com.google.gerrit.server.patch.PatchListEntry content ) { switch ( content.getChangeType ( ) ) { case MODIFIED : case COPIED : case RENAMED : case REWRITE : return true ; case ADDED : case DELETED : default : return false ; } }
Source:
public void testCreateChildProjectUnderNonExistingParent_UnprocessableEntity ( ) throws java.lang.Exception { com.google.gerrit.extensions.api.projects.ProjectInput in = new com.google.gerrit.extensions.api.projects.ProjectInput ( ) ; in.parent = "non-existing-project" ; com.google.gerrit.acceptance.RestResponse r = adminSession.put ( "/projects/child" , in ) ; com.google.common.truth.Truth.assertThat ( r.getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_UNPROCESSABLE_ENTITY ) ; }

Target:
public void testCreateChildProjectUnderNonExistingParent_UnprocessableEntity ( ) throws java.lang.Exception { com.google.gerrit.extensions.api.projects.ProjectInput in = new com.google.gerrit.extensions.api.projects.ProjectInput ( ) ; in.name = "newProjectName" ; in.parent = "non-existing-project" ; assertCreateFails ( in , com.google.gerrit.extensions.restapi.UnprocessableEntityException.class ) ; }
Source:
public boolean match ( java.lang.String ref , java.lang.String username ) { return this . matcher.match ( ref , username ) ; }

Target:
public boolean match ( java.lang.String ref , com.google.gerrit.server.CurrentUser user ) { return this . matcher.match ( ref , user ) ; }
Source:
public boolean isAllowGoogleAccountUpgrade ( ) { return sConfig.allowGoogleAccountUpgrade ; }

Target:
public boolean isAllowGoogleAccountUpgrade ( ) { return getGerritConfig ( ) . getBoolean ( "auth" , "allowgoogleaccountupgrade" , false ) ; }
Source:
public com.google.gerrit.extensions.api.config.ConsistencyCheckInfo checkConsistency ( com.google.gerrit.extensions.api.config.ConsistencyCheckInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return checkConsistency.get ( ) . apply ( new com.google.gerrit.server.config.ConfigResource ( ) , in ) ; } catch ( java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot check consistency" , e ) ; } }

Target:
public com.google.gerrit.extensions.api.config.ConsistencyCheckInfo checkConsistency ( com.google.gerrit.extensions.api.config.ConsistencyCheckInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return checkConsistency.get ( ) . apply ( new com.google.gerrit.server.config.ConfigResource ( ) , in ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot check consistency" , e ) ; } }
Source:
private void initMacs ( final org.eclipse.jgit.lib.Config cfg ) { setMacFactories ( com.google.gerrit.sshd.SshDaemon.filter ( cfg , "mac" , new org.apache.sshd.common.mac.HMACMD5.Factory ( ) , new org.apache.sshd.common.mac.HMACSHA1.Factory ( ) , new org.apache.sshd.common.mac.HMACMD596.Factory ( ) , new org.apache.sshd.common.mac.HMACSHA196.Factory ( ) ) ) ; }

Target:
private void initProviderJce ( ) { setRandomFactory ( new org.apache.sshd.common.random.SingletonRandomFactory ( org.apache.sshd.common.random.JceRandomFactory.INSTANCE ) ) ; }
Source:
public void run ( ) { reviewed.setValue ( ( ! ( reviewed.getValue ( ) ) ) , true ) ; }

Target:
java.lang.Runnable toggleReviewed ( ) { return ( ) -> { reviewed.setValue ( ( ! ( reviewed.getValue ( ) ) ) , true ) ; } ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { activate ( patchSetId ) ; }

Target:
public void onOpen ( com.google.gwt.event.logical.shared.OpenEvent < com.google.gwt.user.client.ui.DisclosurePanel > event ) { activate ( patchSetId ) ; }
Source:
protected void init ( ) throws com.google.gerrit.server.mail.EmailException { super . init ( ) ; ccAllApprovals ( ) ; bccStarredBy ( ) ; bccWatches ( NotifyType.ALL_COMMENTS ) ; }

Target:
protected void init ( ) throws com.google.gerrit.server.mail.EmailException { super . init ( ) ; ccAllApprovals ( ) ; bccStarredBy ( ) ; includeWatchers ( NotifyType.ALL_COMMENTS ) ; }
Source:
boolean isStale ( ) throws java.io.IOException { return ! ( time.equals ( java.nio.file.Files.getLastModifiedTime ( path ) ) ) ; }

Target:
boolean isStale ( ) { return ( time ) != ( com.google.gerrit.common.FileUtil.lastModified ( path ) ) ; }
Source:
public abstract com.google.gerrit.reviewdb.client.Change getChange ( ) ;

Target:
public abstract com.google.gerrit.reviewdb.client.Change createChange ( com.google.gerrit.server.git.BatchUpdate.Context ctx ) throws java.io.IOException ;
Source:
private void put ( final com.google.gerrit.reviewdb.ActiveSession as ) throws com.google.gwtorm.client.OrmException { schema.activeSessions ( ) . upsert ( java.util.Arrays.asList ( as ) ) ; cache.put ( schema.activeSessions ( ) . primaryKey ( as ) , as ) ; }

Target:
private void put ( final com.google.gerrit.reviewdb.ActiveSession as ) throws com.google.gwtorm.client.OrmException { schema.activeSessions ( ) . upsert ( java.util.Arrays.asList ( as ) ) ; com.google.gerrit.server.util.FutureUtil.waitFor ( cache.putAsync ( as.getKey ( ) , as ) ) ; }
Source:
public java.util.List < com.google.gerrit.extensions.common.GroupInfo > apply ( com.google.gerrit.server.group.GroupResource rsrc ) throws com.google.gerrit.extensions.restapi.MethodNotAllowedException , com.google.gwtorm.server.OrmException { com.google.gerrit.common.data.GroupDescription.Internal group = rsrc.asInternalGroup ( ) . orElseThrow ( MethodNotAllowedException :: new ) ; return getDirectSubgroups ( group , rsrc.getControl ( ) ) ; }

Target:
public java.util.List < com.google.gerrit.extensions.common.GroupInfo > apply ( com.google.gerrit.server.group.GroupResource rsrc ) throws com.google.gerrit.server.restapi.group.NotInternalGroupException , com.google.gwtorm.server.OrmException { com.google.gerrit.common.data.GroupDescription.Internal group = rsrc.asInternalGroup ( ) . orElseThrow ( NotInternalGroupException :: new ) ; return getDirectSubgroups ( group , rsrc.getControl ( ) ) ; }
Source:
public final java.lang.String metaVar ( ) { return metaVar ; }

Target:
public java.lang.String metaVar ( ) { return "N" ; }
Source:
boolean isDraft ( ) { return cmd.getRefName ( ) . startsWith ( MagicBranch.NEW_DRAFT_CHANGE ) ; }

Target:
boolean isDraft ( ) { return draft ; }
Source:
private void fetchRefsMetaConfig ( ) throws java.lang.Exception { git ( ) . fetch ( ) . setRefSpecs ( new org.eclipse.jgit.transport.RefSpec ( "refs/meta/config:refs/meta/config" ) ) . call ( ) ; testRepo.reset ( "refs/meta/config" ) ; }

Target:
private void fetchRefsMetaConfig ( ) throws java.lang.Exception { git ( ) . fetch ( ) . setRefSpecs ( new org.eclipse.jgit.transport.RefSpec ( "refs/meta/config:refs/meta/config" ) ) . call ( ) ; testRepo.reset ( RefNames.REFS_CONFIG ) ; }
Source:
public java.util.List < com.google.gerrit.extensions.common.SuggestedReviewerInfo > apply ( com.google.gerrit.server.project.ProjectResource rsrc ) throws com.google.gerrit.extensions.restapi.BadRequestException , com.google.gwtorm.server.OrmException , java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { return reviewersUtil.suggestReviewers ( null , this , rsrc.getControl ( ) , getVisibility ( rsrc ) , true ) ; }

Target:
public java.util.List < com.google.gerrit.extensions.common.SuggestedReviewerInfo > apply ( com.google.gerrit.server.project.ProjectResource rsrc ) throws com.google.gerrit.extensions.restapi.BadRequestException , com.google.gwtorm.server.OrmException , java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { return reviewersUtil.suggestReviewers ( null , this , rsrc.getProjectState ( ) , getVisibility ( rsrc ) , true ) ; }
Source:
private static java.lang.String queryIncoming ( java.lang.String who ) { return ( ( ( "is:open reviewer:" + who ) + " -owner:" ) + who ) + " -star:ignore" ; }

Target:
private static java.lang.String queryIncoming ( java.lang.String who ) { return ( ( ( ( ( "is:open ((reviewer:" + who ) + " -owner:" ) + who ) + " -star:ignore) OR assignee:" ) + who ) + ")" ; }
Source:
private void removeAllChildren ( com.google.gwt.user.client.Element el ) { for ( int i = ( com.google.gwt.user.client.DOM.getChildCount ( el ) ) - 1 ; i >= 0 ; i -- ) { el.removeChild ( com.google.gwt.user.client.DOM.getChild ( el , i ) ) ; } }

Target:
private void removeAllChildren ( com.google.gwt.dom.client.Element el ) { for ( int i = ( com.google.gwt.user.client.DOM.getChildCount ( el ) ) - 1 ; i >= 0 ; i -- ) { el.removeChild ( com.google.gwt.user.client.DOM.getChild ( el , i ) ) ; } }
Source:
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 , expectedStatus ) ; }

Target:
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 , false , expectedStatus ) ; }
Source:
private java.util.List < com.google.gerrit.reviewdb.client.AccountExternalId > getExternalIds ( com.google.gerrit.acceptance.TestAccount account ) throws java.lang.Exception { return db.accountExternalIds ( ) . byAccount ( account.getId ( ) ) . toList ( ) ; }

Target:
private java.util.Collection < com.google.gerrit.reviewdb.client.AccountExternalId > getExternalIds ( com.google.gerrit.acceptance.TestAccount account ) throws java.lang.Exception { return accountCache.get ( account.getId ( ) ) . getExternalIds ( ) ; }
Source:
private com.cisco.gerrit.plugins.slack.config.ProjectConfig getConfig ( java.lang.String ignore ) throws java.lang.Exception { return getConfig ( ignore , true , true ) ; }

Target:
private com.cisco.gerrit.plugins.slack.config.ProjectConfig getConfig ( boolean publishOnPatchSetCreated , boolean ignoreUnchangedPatchSet , boolean ignoreWorkInProgressPatchSet , boolean ignorePrivatePatchSet ) throws java.lang.Exception { return getConfig ( "^WIP.*" , publishOnPatchSetCreated , ignoreUnchangedPatchSet , ignoreWorkInProgressPatchSet , ignorePrivatePatchSet ) ; }
Source:
void doLinkIdentity ( ) { final com.google.gerrit.client.SignInDialog d = new com.google.gerrit.client.SignInDialog ( SignInDialog.Mode.LINK_IDENTIY ) ; d.center ( ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { new com.google.gerrit.client.auth.openid.OpenIdSignInDialog ( SignInDialog.Mode.LINK_IDENTIY , null ) . center ( ) ; }
Source:
protected void expand ( final com.google.gerrit.client.ui.ComplexDisclosurePanel w ) { final com.google.gerrit.client.changes.MessagePanel mp = ( ( com.google.gerrit.client.changes.MessagePanel ) ( w.getContent ( ) ) ) ; w.setOpen ( mp.isRecent ) ; }

Target:
protected void expand ( final com.google.gerrit.client.ui.CommentPanel w ) { w.setOpen ( w.isRecent ( ) ) ; }
Source:
protected void configure ( ) { factory ( SaveDraft.Factory.class ) ; }

Target:
protected void configureServlets ( ) { rpc ( com.google.gerrit.httpd.rpc.patch.PatchDetailServiceImpl.class ) ; }
Source:
default java.lang.String closestMatch ( @ javax.annotation.Nonnull final java.lang.String baseBranch , @ javax.annotation.Nonnull final java.lang.String branchOptionOne , @ javax.annotation.Nonnull final java.lang.String branchOptionTwo ) { return ( org.apache.commons.lang3.StringUtils.getLevenshteinDistance ( branchOptionOne , baseBranch ) ) > ( org.apache.commons.lang3.StringUtils.getLevenshteinDistance ( branchOptionTwo , baseBranch ) ) ? branchOptionTwo : branchOptionOne ; }

Target:
default java.lang.String closestMatch ( @ javax.annotation.Nonnull final java.lang.String baseBranch , @ javax.annotation.Nonnull final java.lang.String branchOptionOne , @ javax.annotation.Nonnull final java.lang.String branchOptionTwo ) { return ( org.apache.commons.lang.StringUtils.getLevenshteinDistance ( branchOptionOne , baseBranch ) ) > ( org.apache.commons.lang.StringUtils.getLevenshteinDistance ( branchOptionTwo , baseBranch ) ) ? branchOptionTwo : branchOptionOne ; }
Source:
public void onFailure ( final java.lang.Throwable caught ) { addNew.setEnabled ( true ) ; if ( isInvalidSshKey ( caught ) ) { new com.google.gerrit.client.ErrorDialog ( Util.C.invalidSshKeyError ( ) ) . center ( ) ; } else { super . onFailure ( caught ) ; } }

Target:
public void onClick ( final com.google.gwt.user.client.ui.Widget sender ) { showAddKeyBlock ( false ) ; }
Source:
public void afterTest ( ) { com.google.gerrit.testutil.NoteDbMode.resetFromEnv ( notesMigration ) ; }

Target:
public void afterTest ( ) { com.google.gerrit.testing.NoteDbMode.resetFromEnv ( notesMigration ) ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.server.ssh.SshKeyCache.class ) . to ( com.google.gerrit.server.ssh.NoSshKeyCache.class ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.server.ssh.SshKeyCache.class ) . to ( com.google.gerrit.server.ssh.NoSshKeyCache.class ) ; bind ( com.google.gerrit.server.ssh.SshKeyCreator.class ) . to ( com.google.gerrit.server.ssh.NoSshKeyCache.class ) ; }
Source:
public void write ( org.eclipse.jgit.lib.CommitBuilder commit ) { }

Target:
protected abstract org.eclipse.jgit.lib.CommitBuilder applyImpl ( org.eclipse.jgit.lib.ObjectInserter ins ) throws com.google.gwtorm.server.OrmException , java.io.IOException ;
Source:
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 ( ) ; }

Target:
private com.google.gerrit.reviewdb.server.ReviewDb openUnderlyingReviewDb ( com.google.gerrit.acceptance.pgm.ServerContext ctx ) throws java.lang.Exception { return ctx.getInjector ( ) . 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:
protected void preDisplay ( final com.google.gerrit.client.admin.AccountGroupDetail result ) { display ( result ) ; }

Target:
protected void preDisplay ( final com.google.gerrit.client.admin.GroupDetail result ) { display ( result ) ; }
Source:
public com.google.gerrit.server.account.GetEmails.EmailInfo apply ( com.google.gerrit.server.account.AccountResource.Email rsrc ) { com.google.gerrit.server.account.GetEmails.EmailInfo e = new com.google.gerrit.server.account.GetEmails.EmailInfo ( ) ; e.email = rsrc.getEmail ( ) ; e.preferred ( rsrc.getUser ( ) . getAccount ( ) . getPreferredEmail ( ) ) ; return e ; }

Target:
public com.google.gerrit.extensions.common.EmailInfo apply ( com.google.gerrit.server.account.AccountResource.Email rsrc ) { com.google.gerrit.extensions.common.EmailInfo e = new com.google.gerrit.extensions.common.EmailInfo ( ) ; e.email = rsrc.getEmail ( ) ; e.preferred ( rsrc.getUser ( ) . getAccount ( ) . getPreferredEmail ( ) ) ; return e ; }
Source:
private static com.google.gerrit.reviewdb.client.Project.InheritedBoolean asInheritedBoolean ( java.sql.ResultSet rs , java.lang.String col ) throws java.sql.SQLException { return "Y" . equals ( rs.getString ( col ) ) ? com.google.gerrit.reviewdb.client.Project.InheritedBoolean.TRUE : com.google.gerrit.reviewdb.client.Project.InheritedBoolean.INHERIT ; }

Target:
private static com.google.gerrit.reviewdb.client.Project.InheritableBoolean asInheritableBoolean ( java.sql.ResultSet rs , java.lang.String col ) throws java.sql.SQLException { return "Y" . equals ( rs.getString ( col ) ) ? com.google.gerrit.reviewdb.client.Project.InheritableBoolean.TRUE : com.google.gerrit.reviewdb.client.Project.InheritableBoolean.INHERIT ; }
Source:
public void stop ( ) { indexManager.stop ( ) ; for ( com.google.gerrit.server.index.IndexDefinition < ? , ? , ? > def : defs ) { def.getIndexCollection ( ) . stop ( ) ; } }

Target:
public void stop ( ) { indexManager.stop ( ) ; for ( com.google.gerrit.index.IndexDefinition < ? , ? , ? > def : defs ) { def.getIndexCollection ( ) . stop ( ) ; } }
Source:
public void onRefresh ( ) { getApp ( ) . getQueryHandler ( ) . reset ( ) ; display ( true ) ; }

Target:
public void onRefresh ( ) { getApp ( ) . getQueryHandler ( ) . reset ( ) ; loadAndDisplay ( true ) ; }
Source:
protected void doGet ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res ) throws java.io.IOException { render ( req , res , "gitiles.repositoryIndex" , buildData ( req ) ) ; }

Target:
protected void doGet ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res ) throws java.io.IOException { renderHtml ( req , res , "gitiles.repositoryIndex" , buildData ( req ) ) ; }
Source:
public void testChangeEventShouldBeSentToExecutor ( ) { asyncListener.onChangeEvent ( event ) ; verify ( executor ) . submit ( org.mockito.Matchers.any ( ChangeListenerAsyncDecorator.ChangeRunner.class ) ) ; }

Target:
public void testChangeEventShouldBeSentToExecutor ( ) { asyncListener.onEvent ( event ) ; org.mockito.Mockito.verify ( executor ) . submit ( org.mockito.Matchers.any ( ChangeListenerAsyncDecorator.ChangeRunner.class ) ) ; }
Source:
boolean isHtmlAllowed ( com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.Formatter formatter ) { return cfg.getBoolean ( com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.SECTION_FORMATTER , formatter.name ( ) , com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.KEY_ALLOW_HTML , false ) ; }

Target:
public com.googlesource.gerrit.plugins.xdocs.ConfigSection getFormatterConfig ( java.lang.String formatterName ) { return new com.googlesource.gerrit.plugins.xdocs.ConfigSection ( cfg , com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.SECTION_FORMATTER , formatterName ) ; }
Source:
public java.lang.String toString ( ) { if ( commandPrefix.isEmpty ( ) ) return commandLine ; else return ( ( commandPrefix ) + " " ) + ( commandLine ) ; }

Target:
private java.lang.String getFullCommandLine ( ) { if ( commandPrefix.isEmpty ( ) ) return commandLine ; else if ( commandLine.isEmpty ( ) ) return commandPrefix ; else return ( ( commandPrefix ) + " " ) + ( commandLine ) ; }
Source:
private PatchSet.Id getPatchSetIdFromSide ( com.google.gerrit.client.diff.DisplaySide side ) { return ( side == ( DisplaySide.A ) ) && ( ( base ) != null ) ? base : revision ; }

Target:
com.google.gerrit.client.diff.LineMapper.LineOnOtherInfo lineOnOther ( com.google.gerrit.client.diff.DisplaySide side , int line ) { return chunkManager.getLineMapper ( ) . lineOnOther ( side , line ) ; }
Source:
public < T extends com.google.gwt.core.client.JavaScriptObject > void get ( com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { send ( com.google.gwt.http.client.RequestBuilder.GET , cb ) ; }

Target:
public < T extends com.google.gwt.core.client.JavaScriptObject > void put ( com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { put ( com.google.gerrit.client.rpc.RestApi.wrap ( cb ) ) ; }
Source:
private void createReplyEditor ( ) { final com.google.gerrit.reviewdb.client.PatchLineComment newComment = newComment ( ) ; newComment.setMessage ( "" ) ; createEditor ( newComment ) . setFocus ( true ) ; }

Target:
private void createReplyEditor ( ) { final com.google.gerrit.reviewdb.client.PatchLineComment newComment = newComment ( ) ; newComment.setMessage ( "" ) ; findOrCreateEditor ( newComment , true ) . setFocus ( true ) ; }