auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected java.lang.Object createServiceHandle ( ) throws java.lang.Exception { return new com.google.gerrit.client.changes.ChangeDetailServiceImpl ( com.google.gerrit.server.GerritServer.getInstance ( ) . getDatabase ( ) ) ; }

Target:
protected java.lang.Object createServiceHandle ( ) throws java.lang.Exception { final com.google.gerrit.server.GerritServer gs = com.google.gerrit.server.GerritServer.getInstance ( ) ; return new com.google.gerrit.client.changes.ChangeDetailServiceImpl ( gs.getDatabase ( ) , gs.getGroupCache ( ) ) ; }
Source:
public void updateRepo ( com.google.gerrit.server.update.BatchUpdate.RepoContext ctx ) throws java.lang.Exception { ctx.addRefUpdate ( new org.eclipse.jgit.transport.ReceiveCommand ( masterCommit.getId ( ) , branchCommit.getId ( ) , "refs/heads/master" ) ) ; }

Target:
public void updateRepo ( com.google.gerrit.server.update.RepoContext ctx ) throws java.lang.Exception { ctx.addRefUpdate ( new org.eclipse.jgit.transport.ReceiveCommand ( masterCommit.getId ( ) , branchCommit.getId ( ) , "refs/heads/master" ) ) ; }
Source:
private static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > topic ( java.lang.String topic ) { return new com.google.gerrit.server.query.change.TopicPredicate ( topic ) ; }

Target:
private com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > topic ( java.lang.String topic ) { return new com.google.gerrit.server.query.change.TopicPredicate ( com.google.gerrit.server.query.change.InternalChangeQuery.schema ( indexes ) , topic ) ; }
Source:
private com.google.gerrit.extensions.auth.oauth.OAuthUserInfo getAsOAuthUserInfo ( com.googlesource.gerrit.plugins.cfoauth.AccessToken accessToken , java.lang.String displayName ) { return new com.google.gerrit.extensions.auth.oauth.OAuthUserInfo ( accessToken.getExternalId ( ) , accessToken.getUserName ( ) , accessToken.getEmailAddress ( ) , displayName , null ) ; }

Target:
private static com.google.gerrit.extensions.auth.oauth.OAuthUserInfo getAsOAuthUserInfo ( com.googlesource.gerrit.plugins.cfoauth.UserInfo userInfo ) { return new com.google.gerrit.extensions.auth.oauth.OAuthUserInfo ( userInfo.getExternalId ( ) , userInfo.getUserName ( ) , userInfo.getEmailAddress ( ) , userInfo.getDisplayName ( ) , null ) ; }
Source:
public void myAccount ( final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.reviewdb.client.Account > callback ) { callback.onSuccess ( currentUser.get ( ) . getAccount ( ) ) ; }

Target:
public void myAccount ( final com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.reviewdb.client.Account > callback ) { callback.onSuccess ( currentUser.get ( ) . getAccount ( ) ) ; }
Source:
public void inheritRead_OverrideWithDeny ( ) { com.google.gerrit.server.project.Util.allow ( parent , com.google.gerrit.common.data.Permission.READ , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS , "refs/*" ) ; com.google.gerrit.server.project.Util.deny ( local , com.google.gerrit.common.data.Permission.READ , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS , "refs/*" ) ; assertAccessDenied ( user ( local ) ) ; }

Target:
public void inheritRead_OverrideWithDeny ( ) { com.google.gerrit.server.project.Util.allow ( parent , com.google.gerrit.common.data.Permission.READ , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS , "refs/*" ) ; com.google.gerrit.server.project.Util.deny ( local , com.google.gerrit.common.data.Permission.READ , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS , "refs/*" ) ; assertCannotRead ( user ( local ) ) ; }
Source:
public com.googlecode.prolog_cafe.lang.Operation jtry9 ( com.googlecode.prolog_cafe.lang.Operation p , com.googlecode.prolog_cafe.lang.Operation next ) { return jtry ( p , next , new com.googlecode.prolog_cafe.lang.ChoicePointFrame.S8 ( this ) ) ; }

Target:
public com.googlecode.prolog_cafe.lang.Operation jtry9 ( com.googlecode.prolog_cafe.lang.Operation p , com.googlecode.prolog_cafe.lang.Operation next ) { return jtry ( p , next , new com.googlecode.prolog_cafe.lang.ChoicePointFrame.S9 ( this ) ) ; }
Source:
java.lang.String yearsMonthsAgo ( long years , java.lang.String yearLabel , long months , java.lang.String monthLabel ) ;

Target:
java.lang.String removeVote ( java.lang.String label ) ;
Source:
public com.googlecode.prolog_cafe.lang.NumberTerm log ( ) { if ( ( this . val ) == 0 ) throw new com.googlecode.prolog_cafe.lang.EvaluationException ( "undefined" ) ; return new com.googlecode.prolog_cafe.lang.DoubleTerm ( java.lang.Math.log ( this . doubleValue ( ) ) ) ; }

Target:
public com.googlecode.prolog_cafe.lang.NumberTerm log ( ) { if ( ( this . val ) == 0 ) throw new com.googlecode.prolog_cafe.exceptions.EvaluationException ( "undefined" ) ; return new com.googlecode.prolog_cafe.lang.DoubleTerm ( java.lang.Math.log ( this . doubleValue ( ) ) ) ; }
Source:
public void commentOnReview ( java.lang.String project , int number , java.lang.String commentTemplate ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.project.NoSuchChangeException , com.google.gerrit.server.update.UpdateException , com.google.gwtorm.server.OrmException , java.io.IOException { com.google.gerrit.extensions.api.changes.ReviewInput comment = createComment ( commentTemplate ) ; applyComment ( project , number , comment ) ; }

Target:
public void commentOnReview ( java.lang.String project , int number , java.lang.String comment ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.update.UpdateException , com.google.gwtorm.server.OrmException , java.io.IOException { com.google.gerrit.extensions.api.changes.ReviewInput reviewInput = createComment ( comment ) ; applyComment ( project , number , reviewInput ) ; }
Source:
public static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.account.AccountState > isInactive ( ) { return new com.google.gerrit.server.query.account.AccountPredicates.AccountPredicate ( com.google.gerrit.server.index.account.AccountField.ACTIVE , "0" ) ; }

Target:
public static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.account.AccountState > isNotActive ( ) { return new com.google.gerrit.server.query.account.AccountPredicates.AccountPredicate ( com.google.gerrit.server.index.account.AccountField.ACTIVE , "0" ) ; }
Source:
protected PushOneCommit.Result pushTo ( java.lang.String ref ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , admin.getIdent ( ) , git ) ; return push.to ( ref ) ; }

Target:
protected PushOneCommit.Result pushTo ( java.lang.String ref ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , admin.getIdent ( ) , testRepo ) ; return push.to ( ref ) ; }
Source:
void onAddMe ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { java.lang.String accountId = java.lang.String.valueOf ( com.google.gerrit.client.Gerrit.getUserAccountInfo ( ) . _accountId ( ) ) ; addReviewer ( accountId , false ) ; }

Target:
void onAddMe ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { java.lang.String accountId = java.lang.String.valueOf ( com.google.gerrit.client.Gerrit.getUserAccount ( ) . _accountId ( ) ) ; addReviewer ( accountId , false ) ; }
Source:
protected com.google.gwtjsonrpc.server.ActiveCall createActiveCall ( final javax.servlet.http.HttpServletRequest req , final javax.servlet.http.HttpServletResponse resp ) { return new com.google.gwtjsonrpc.server.ActiveCall ( req , resp ) ; }

Target:
protected CallType createActiveCall ( final javax.servlet.http.HttpServletRequest req , final javax.servlet.http.HttpServletResponse resp ) { return ( ( CallType ) ( new com.google.gwtjsonrpc.server.ActiveCall ( req , resp ) ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { lifecycle = new com.google.gerrit.lifecycle.LifecycleManager ( ) ; db = com.google.gerrit.testutil.InMemoryDatabase.newDatabase ( lifecycle ) ; lifecycle.start ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { lifecycle = new com.google.gerrit.lifecycle.LifecycleManager ( ) ; db = com.google.gerrit.testing.InMemoryDatabase.newDatabase ( lifecycle ) ; lifecycle.start ( ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > toSoyData ( javax.servlet.http.HttpServletRequest req , org.eclipse.jgit.revwalk.RevCommit commit , org.eclipse.jgit.util.GitDateFormatter df ) throws java.io.IOException { return toSoyData ( req , commit , com.google.gitiles.CommitSoyData.KeySet.DEFAULT , df ) ; }

Target:
public java.util.Map < java.lang.String , java.lang.Object > toSoyData ( javax.servlet.http.HttpServletRequest req , org.eclipse.jgit.revwalk.RevCommit commit , org.eclipse.jgit.util.GitDateFormatter df ) throws java.io.IOException { return toSoyData ( req , commit , com.google.gitiles.CommitSoyData.FieldSet.DEFAULT , df ) ; }
Source:
com.google.gerrit.server.change.EmailReviewComments create ( com.google.gerrit.extensions.api.changes.NotifyHandling notify , com.google.common.collect.Multimap < com.google.gerrit.extensions.api.changes.RecipientType , com.google.gerrit.reviewdb.client.Account.Id > accountsToNotify , com.google.gerrit.server.notedb.ChangeNotes notes , com.google.gerrit.reviewdb.client.PatchSet patchSet , com.google.gerrit.server.IdentifiedUser user , com.google.gerrit.reviewdb.client.ChangeMessage message , java.util.List < com.google.gerrit.reviewdb.client.Comment > comments ) ;

Target:
com.google.gerrit.server.change.EmailReviewComments create ( com.google.gerrit.extensions.api.changes.NotifyHandling notify , com.google.common.collect.Multimap < com.google.gerrit.extensions.api.changes.RecipientType , com.google.gerrit.reviewdb.client.Account.Id > accountsToNotify , com.google.gerrit.server.notedb.ChangeNotes notes , com.google.gerrit.reviewdb.client.PatchSet patchSet , com.google.gerrit.server.IdentifiedUser user , com.google.gerrit.reviewdb.client.ChangeMessage message , java.util.List < com.google.gerrit.reviewdb.client.Comment > comments , java.lang.String patchSetComment , java.util.List < com.google.gerrit.server.util.LabelVote > labels ) ;
Source:
public com.google.gerrit.extensions.common.ProjectInfo get ( ) { com.google.common.base.Preconditions.checkNotNull ( project ) ; return projectJson.format ( project ) ; }

Target:
public java.util.List < com.google.gerrit.extensions.api.projects.BranchInfo > get ( ) throws com.google.gerrit.extensions.restapi.RestApiException { return listBranches ( this ) ; }
Source:
private void parse ( com.google.gitiles.doc.MarkdownConfig cfg , java.lang.String markdown ) { node = com.google.gitiles.doc.GitilesMarkdown.parse ( cfg , markdown ) ; extractSiteTitle ( ) ; extractRefLinks ( markdown ) ; }

Target:
private void parse ( java.lang.String markdown ) { extractMetadata ( markdown ) ; node = com.google.gitiles.doc.GitilesMarkdown.parse ( cfg , markdown ) ; extractSiteTitle ( ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { if ( userPopup.isShowing ( ) ) { userPopup.hide ( ) ; } else { userPopup.showRelativeTo ( l ) ; } }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { if ( ( userPopup.isShowing ( ) ) && ( userPopup.isVisible ( ) ) ) { userPopup.hide ( ) ; } else { userPopup.showRelativeTo ( l ) ; } }
Source:
public void setUp ( ) throws java.lang.Exception { local = new com.google.gerrit.server.git.ProjectConfig ( localKey ) ; local.createInMemory ( ) ; util.add ( local ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { local = new com.google.gerrit.server.git.ProjectConfig ( localKey ) ; local.load ( com.google.gerrit.testutil.InMemoryRepositoryManager.newRepository ( localKey ) ) ; util.add ( local ) ; }
Source:
public void emptyResultIfInvalid ( ) { java.util.Collection < com.google.gerrit.common.data.SubmitRecord > submitRecords = new java.util.ArrayList < > ( ) ; submitRecords.add ( com.google.gerrit.common.data.SubmitRecordTest.NOT_READY_RECORD ) ; com.google.common.truth.Truth.assertThat ( com.google.gerrit.common.data.SubmitRecord.findOkRecord ( submitRecords ) . isPresent ( ) ) . isFalse ( ) ; }

Target:
public void emptyResultIfInvalid ( ) { java.util.Collection < com.google.gerrit.common.data.SubmitRecord > submitRecords = new java.util.ArrayList < > ( ) ; submitRecords.add ( com.google.gerrit.common.data.SubmitRecordTest.NOT_READY_RECORD ) ; submitRecords.add ( com.google.gerrit.common.data.SubmitRecordTest.OK_RECORD ) ; com.google.common.truth.Truth.assertThat ( com.google.gerrit.common.data.SubmitRecord.allRecordsOK ( submitRecords ) ) . isFalse ( ) ; }
Source:
public void onSuccess ( com.google.gwt.core.client.JavaScriptObject result ) { if ( screen.isCurrentView ( ) ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( screen.getChangeId ( ) ) ) ; } }

Target:
public void onSuccess ( com.google.gwt.core.client.JavaScriptObject result ) { if ( screen.isCurrentView ( ) ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( psId.getParentKey ( ) , java.lang.String.valueOf ( psId.get ( ) ) ) ) ; } }
Source:
void unifiedPatchDetail ( com.google.gerrit.client.reviewdb.Patch.Key key , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.data.UnifiedPatchDetail > callback ) ;

Target:
void patchScript ( com.google.gerrit.client.reviewdb.Patch.Key key , com.google.gerrit.client.reviewdb.PatchSet.Id a , com.google.gerrit.client.reviewdb.PatchSet.Id b , int context , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.data.PatchScript > callback ) ;
Source:
public void createNewChange ( ) throws java.lang.Exception { assertChange ( newChangeInfo ( ChangeStatus.NEW ) ) ; }

Target:
public void createNewChange ( ) throws java.lang.Exception { assertCreateSucceeds ( newChangeInfo ( ChangeStatus.NEW ) ) ; }
Source:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { com.google.gwt.user.client.History.newItem ( Link.SETTINGS_AGREEMENTS ) ; }

Target:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { com.google.gerrit.client.Gerrit.display ( nextToken , true ) ; }
Source:
public java.util.List < java.lang.String > getUsernamesForRepositoryRole ( java.lang.String role ) { return null ; }

Target:
public java.util.List < java.lang.String > getUsernamesForRepositoryRole ( java.lang.String role ) { return java.util.Collections.emptyList ( ) ; }
Source:
public com.google.gwt.user.client.ui.MenuItem addItem ( final com.google.gwt.user.client.ui.MenuItem item ) { item.addStyleDependentName ( "NormalItem" ) ; return super . addItem ( item ) ; }

Target:
public void addItem ( final java.lang.String text , final com.google.gwt.user.client.Command imp ) { add ( new com.google.gerrit.client.ui.CommandMenuItem ( text , imp ) ) ; }
Source:
public AccountGroup.UUID getGroupUUID ( ) { return getGroup ( ) . getGroupUUID ( ) ; }

Target:
public boolean isInternalGroup ( ) { com.google.gerrit.common.data.GroupDescription.Basic group = getGroup ( ) ; return group instanceof com.google.gerrit.common.data.GroupDescription.Internal ; }
Source:
void onOpenForm ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { onOpenForm ( ) ; }

Target:
void set ( com.google.gerrit.client.info.ChangeInfo info ) { this . changeId = info.legacyId ( ) ; display ( info ) ; reviewerSuggestOracle.setChange ( changeId ) ; addReviewerIcon.setVisible ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) ; }
Source:
java.io.File getSrcJar ( ) { return getSrcFile ( ) . toFile ( ) ; }

Target:
java.nio.file.Path getSrcJar ( ) { return getSrcFile ( ) ; }
Source:
public com.gitblit.models.UserModel getUserModel ( char [ ] cookie ) { return null ; }

Target:
public com.gitblit.models.UserModel authenticate ( char [ ] cookie ) { return null ; }
Source:
public static void removeSignedInListener ( final com.google.gerrit.client.SignedInListener l ) { com.google.gerrit.client.Gerrit.signedInListeners.remove ( l ) ; }

Target:
public static void removeSignOutHandler ( final com.google.gerrit.client.SignOutHandler l ) { com.google.gerrit.client.Gerrit.signOutHandlers.remove ( l ) ; }
Source:
public void postUpdate ( com.google.gerrit.server.git.BatchUpdate.Context ctx ) throws com.google.gwtorm.server.OrmException { if ( ( updated ( ) ) && ( fireEvent ) ) { hashtagsEdited.fire ( change , ctx.getAccount ( ) , updatedHashtags , toAdd , toRemove , ctx.getWhen ( ) ) ; } }

Target:
public void postUpdate ( com.google.gerrit.server.update.Context ctx ) throws com.google.gwtorm.server.OrmException { if ( ( updated ( ) ) && ( fireEvent ) ) { hashtagsEdited.fire ( change , ctx.getAccount ( ) , updatedHashtags , toAdd , toRemove , ctx.getWhen ( ) ) ; } }
Source:
public org.scribe.oauth.OAuthService createService ( org.scribe.model.OAuthConfig config ) { return new com.googlesource.gerrit.plugins.oauth.CasApi.CasOAuthService ( this , config ) ; }

Target:
public org.scribe.oauth.OAuthService createService ( org.scribe.model.OAuthConfig config ) { return new com.googlesource.gerrit.plugins.oauth.OAuth20ServiceImpl ( this , config ) ; }
Source:
public int getCardinality ( ) { return ( source ) != null ? source.getCardinality ( ) : limit ( ) ; }

Target:
public com.google.gerrit.server.query.change.QueryOptions getOptions ( ) { return opts ; }
Source:
public com.google.gitiles.doc.MarkdownToHtml setImageLoader ( com.google.gitiles.doc.ImageLoader img ) { imageLoader = img ; return this ; }

Target:
public com.google.gitiles.doc.MarkdownToHtml.Builder setReader ( org.eclipse.jgit.lib.ObjectReader reader ) { this . reader = reader ; return this ; }
Source:
public java.util.List < org.eclipse.jgit.revwalk.FooterLine > commitFooters ( com.google.gerrit.server.git.GitRepositoryManager repoManager , com.google.inject.Provider < com.google.gerrit.reviewdb.server.ReviewDb > db ) throws com.google.gwtorm.server.OrmException , java.io.IOException { if ( ( commitFooters ) == null ) { loadCommitData ( repoManager , db ) ; } return commitFooters ; }

Target:
public java.lang.String commitMessage ( ) throws com.google.gwtorm.server.OrmException , java.io.IOException { if ( ( commitMessage ) == null ) { loadCommitData ( ) ; } return commitMessage ; }
Source:
void display ( com.google.gwt.core.client.JsArrayString values ) { int row = 1 ; for ( java.lang.String v : com.google.gerrit.client.rpc.Natives.asList ( values ) ) { populate ( row , v ) ; row ++ ; } }

Target:
void display ( java.util.Collection < java.lang.String > values ) { int row = 1 ; for ( java.lang.String v : values ) { populate ( row , v ) ; row ++ ; } }
Source:
protected void configure ( ) { bind ( com.google.gerrit.pgm.util.ConsoleUI.class ) . toInstance ( init.ui ) ; bind ( com.google.gerrit.pgm.init.InitFlags.class ) . toInstance ( init.flags ) ; bind ( com.google.gerrit.server.git.GitRepositoryManager.class ) ; bind ( com.google.gerrit.server.git.GitProjectImporter.class ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.pgm.util.ConsoleUI.class ) . toInstance ( init.ui ) ; bind ( com.google.gerrit.pgm.init.InitFlags.class ) . toInstance ( init.flags ) ; bind ( com.google.gerrit.server.git.GitRepositoryManager.class ) . to ( com.google.gerrit.server.git.LocalDiskRepositoryManager.class ) ; bind ( com.google.gerrit.server.git.GitProjectImporter.class ) ; }
Source:
public com.googlesrouce.gerrit.plugins.github.git.PagedIterable < com.googlesrouce.gerrit.plugins.github.git.GHCommit > listCommits ( ) { return ghRepository.listCommits ( ) ; }

Target:
public com.googlesource.gerrit.plugins.github.git.PagedIterable < com.googlesource.gerrit.plugins.github.git.GHCommit > listCommits ( ) { return ghRepository.listCommits ( ) ; }
Source:
public static void all ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.client.rpc.NativeList < com.google.gerrit.client.dashboards.DashboardList > > callback ) { new com.google.gerrit.client.rpc.RestApi ( com.google.gerrit.client.dashboards.DashboardList.base ( project ) ) . addParameterTrue ( "inherited" ) . get ( callback ) ; }

Target:
public static void all ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.rpc.NativeList < com.google.gerrit.client.dashboards.DashboardList > > callback ) { new com.google.gerrit.client.rpc.RestApi ( com.google.gerrit.client.dashboards.DashboardList.base ( project ) ) . addParameterTrue ( "inherited" ) . get ( callback ) ; }
Source:
void myDrafts ( com.google.gerrit.client.reviewdb.Patch.Key key , com.google.gwt.user.client.rpc.AsyncCallback < java.util.List < com.google.gerrit.client.reviewdb.PatchLineComment > > callback ) ;

Target:
void patchComments ( com.google.gerrit.client.reviewdb.Patch.Key key , com.google.gerrit.client.reviewdb.PatchSet.Id a , com.google.gerrit.client.reviewdb.PatchSet.Id b , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.patches.CommentDetail > callback ) ;
Source:
public void addReviewers ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.PatchSet ps , com.google.gerrit.reviewdb.client.PatchSetInfo info , java.util.Set < com.google.gerrit.reviewdb.client.Account.Id > wantReviewers ) throws com.google.gwtorm.server.OrmException { java.util.Set < com.google.gerrit.reviewdb.client.Account.Id > existing = com.google.common.collect.Sets.< com.google.gerrit.reviewdb.client.Account.Id > newHashSet ( ) ; addReviewers ( change , ps , info , wantReviewers , existing ) ; }

Target:
public java.util.List < com.google.gerrit.reviewdb.client.PatchSetApproval > copyVetosToLatestPatchSet ( com.google.gerrit.reviewdb.client.Change change ) throws com.google.gwtorm.server.OrmException { return copyVetosToLatestPatchSet ( db , change ) ; }
Source:
private com.google.gerrit.server.notedb.ChangeUpdate newUpdate ( com.google.gerrit.reviewdb.client.Change c , final com.google.gerrit.server.IdentifiedUser user ) throws java.lang.Exception { return com.google.gerrit.testutil.TestChanges.newUpdate ( injector , repoManager , c , allUsers , user ) ; }

Target:
private com.google.gerrit.server.notedb.ChangeUpdate newUpdate ( com.google.gerrit.reviewdb.client.Change c , final com.google.gerrit.server.IdentifiedUser user ) throws java.lang.Exception { return com.google.gerrit.testutil.TestChanges.newUpdate ( injector , repoManager , migration , c , allUsers , user ) ; }
Source:
public void onSuccess ( final com.google.gerrit.reviewdb.Account result ) { registerNewEmail.setEnabled ( true ) ; onSaveSuccess ( result ) ; }

Target:
public void onSuccess ( final com.google.gerrit.reviewdb.Account result ) { registerNewEmail.setEnabled ( true ) ; onSaveSuccess ( result ) ; if ( onSave != null ) { onSave.onSuccess ( result ) ; } }
Source:
public void reset ( ) { result.clear ( ) ; start = 0 ; more = true ; page = 0 ; }

Target:
public void reset ( ) { result.clear ( ) ; start = 0 ; more = true ; page = 0 ; currentChange = null ; }
Source:
public java.util.List < com.google.gerrit.reviewdb.client.Project.NameKey > getNameKeys ( ) throws com.google.gerrit.server.permissions.PermissionBackendException { return permissionBackend.currentUser ( ) . filter ( ProjectPermission.ACCESS , parents ( ) ) . stream ( ) . sorted ( ) . collect ( java.util.stream.Collectors.toList ( ) ) ; }

Target:
public java.util.List < com.google.gerrit.reviewdb.client.Project.NameKey > getNameKeys ( ) throws com.google.gerrit.server.permissions.PermissionBackendException { return permissionBackend.currentUser ( ) . filter ( ProjectPermission.ACCESS , readableParents ( ) ) . stream ( ) . sorted ( ) . collect ( java.util.stream.Collectors.toList ( ) ) ; }
Source:
public static boolean hasRange ( java.lang.String varName ) { return com.google.gerrit.common.data.GlobalCapability.QUERY_LIMIT.equalsIgnoreCase ( varName ) ; }

Target:
public static boolean hasRange ( java.lang.String varName ) { return ( com.google.gerrit.common.data.GlobalCapability.QUERY_LIMIT.equalsIgnoreCase ( varName ) ) || ( com.google.gerrit.common.data.GlobalCapability.BATCH_CHANGES_LIMIT.equalsIgnoreCase ( varName ) ) ; }
Source:
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 ; }

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 ) ; this . myself = hub.getMyself ( ) ; return this . hub ; }
Source:
public static com.google.gerrit.client.changes.ChangeInfo.RevisionInfo fromEdit ( com.google.gerrit.client.changes.ChangeInfo.EditInfo edit ) { com.google.gerrit.client.changes.ChangeInfo.RevisionInfo revisionInfo = ( ( com.google.gerrit.client.changes.ChangeInfo.RevisionInfo ) ( createObject ( ) ) ) ; revisionInfo.takeFromEdit ( edit ) ; return revisionInfo ; }

Target:
public static com.google.gerrit.client.changes.ChangeInfo.RevisionInfo fromEdit ( com.google.gerrit.client.changes.ChangeInfo.EditInfo edit ) { com.google.gerrit.client.changes.ChangeInfo.RevisionInfo revisionInfo = createObject ( ) . cast ( ) ; revisionInfo.takeFromEdit ( edit ) ; return revisionInfo ; }
Source:
static void deleteSessionCookie ( ) { com.google.gerrit.client.Gerrit.myAccount = null ; com.google.gerrit.client.added support ; com.google.gerrit.client.whitespace ignore ; com.google.gerrit.client.Gerrit.xsrfToken = null ; }

Target:
static void deleteSessionCookie ( ) { com.google.gerrit.client.Gerrit.myAccount = null ; com.google.gerrit.client.Gerrit.myAccountDiffPref = null ; com.google.gerrit.client.Gerrit.xsrfToken = null ; com.google.gerrit.client.Gerrit.refreshMenuBar ( ) ; com.google.gwt.user.client.Cookies.removeCookie ( "GerritAccount" ) ; }
Source:
public void testKeyIdToString ( ) throws java.lang.Exception { org.bouncycastle.openpgp.PGPPublicKey key = com.google.gerrit.server.git.gpg.TestKey.key1 ( ) . getPublicKey ( ) ; org.junit.Assert.assertEquals ( "46328A8C" , com.google.gerrit.server.git.gpg.PublicKeyStore.keyIdToString ( key.getKeyID ( ) ) ) ; }

Target:
public void testKeyIdToString ( ) throws java.lang.Exception { org.bouncycastle.openpgp.PGPPublicKey key = com.google.gerrit.gpg.testutil.TestKey.key1 ( ) . getPublicKey ( ) ; org.junit.Assert.assertEquals ( "46328A8C" , com.google.gerrit.gpg.PublicKeyStore.keyIdToString ( key.getKeyID ( ) ) ) ; }
Source:
public void execute ( ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.update.UpdateException { execute ( BatchUpdateListener.NONE ) ; }

Target:
public abstract void execute ( com.google.gerrit.server.update.BatchUpdateListener listener ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.update.UpdateException ;
Source:
private void deployPlugin ( ) throws java.io.IOException , java.lang.InterruptedException { locatePaths ( ) ; retrievePluginName ( ) ; buildPluginJar ( ) ; createTestSite ( ) ; copyJarToTestSite ( ) ; }

Target:
protected void beforeTest ( org.junit.runner.Description description ) throws java.lang.Exception { locatePaths ( ) ; retrievePluginName ( ) ; buildPluginJar ( ) ; createTestSiteDirs ( ) ; copyJarToTestSite ( ) ; super . beforeTest ( description ) ; }
Source:
public void cleanup ( ) { db.close ( ) ; }

Target:
public void cleanup ( ) { sshSession.close ( ) ; db.close ( ) ; }
Source:
public com.google.gwtorm.server.ResultSet < T > read ( ) throws com.google.gwtorm.server.OrmException { try { return readImpl ( ) ; } catch ( com.google.gwtorm.server.OrmRuntimeException err ) { com.google.common.base.Throwables.propagateIfInstanceOf ( err.getCause ( ) , com.google.gwtorm.server.OrmException.class ) ; throw new com.google.gwtorm.server.OrmException ( err ) ; } }

Target:
public com.google.gwtorm.server.ResultSet < T > read ( ) throws com.google.gwtorm.server.OrmException { try { return readImpl ( ) ; } catch ( com.google.gwtorm.server.OrmRuntimeException err ) { com.google.common.base.Throwables.throwIfInstanceOf ( err.getCause ( ) , com.google.gwtorm.server.OrmException.class ) ; throw new com.google.gwtorm.server.OrmException ( err ) ; } }
Source:
public com.google.gwtorm.server.ResultSet < com.google.gerrit.reviewdb.client.Change > all ( ) throws com.google.gwtorm.server.OrmException { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.server.schema.DisabledChangesReviewDbWrapper.MSG ) ; }

Target:
public com.google.gwtorm.server.ResultSet < com.google.gerrit.reviewdb.client.Change > all ( ) throws com.google.gwtorm.server.OrmException { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.reviewdb.server.DisabledChangesReviewDbWrapper.MSG ) ; }
Source:
public void pushBypassPrivateByDefaultEnabled ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( createChange ( "refs/for/master%remove-private" ) . getChange ( ) . change ( ) . isPrivate ( ) ) . isEqualTo ( false ) ; }

Target:
public void pushBypassPrivateByDefaultEnabled ( ) throws java.lang.Exception { setPrivateByDefault ( project2 , InheritableBoolean.TRUE ) ; com.google.common.truth.Truth.assertThat ( createChange ( project2 , "refs/for/master%remove-private" ) . getChange ( ) . change ( ) . isPrivate ( ) ) . isEqualTo ( false ) ; }
Source:
public com.google.gerrit.server.IdentifiedUser create ( com.google.inject.Provider < com.google.gerrit.reviewdb.ReviewDb > db , com.google.gerrit.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( AccessPath.UNKNOWN , authConfig , canonicalUrl , realm , accountCache , null , db , id ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( com.google.inject.Provider < com.google.gerrit.reviewdb.ReviewDb > db , com.google.gerrit.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( AccessPath.UNKNOWN , authConfig , canonicalUrl , realm , accountCache , groupIncludeCache , null , db , id ) ; }
Source:
private com.google.gerrit.extensions.common.ChangeInfo detailedChange ( java.lang.String changeId ) throws java.lang.Exception { return gApi.changes ( ) . id ( changeId ) . get ( java.util.EnumSet.of ( ListChangesOption.DETAILED_LABELS ) ) ; }

Target:
private com.google.gerrit.extensions.common.ChangeInfo detailedChange ( java.lang.String changeId ) throws java.lang.Exception { return gApi.changes ( ) . id ( changeId ) . get ( java.util.EnumSet.of ( ListChangesOption.DETAILED_LABELS , ListChangesOption.CURRENT_REVISION , ListChangesOption.CURRENT_COMMIT ) ) ; }
Source:
protected void configureCommands ( ) { command ( com.googlesource.gerrit.plugins.cookbook.PrintHelloWorldCommand.class ) ; alias ( "say-hello" , com.googlesource.gerrit.plugins.cookbook.PrintHelloWorldCommand.class ) ; }

Target:
protected void configureCommands ( ) { command ( com.googlesource.gerrit.plugins.cookbook.PrintHelloWorldCommand.class ) ; command ( com.googlesource.gerrit.plugins.cookbook.AdminCookbookCommand.class ) ; alias ( "say-hello" , com.googlesource.gerrit.plugins.cookbook.PrintHelloWorldCommand.class ) ; }
Source:
public void setSubmitType ( final com.google.gerrit.reviewdb.client.Project.SubmitType type ) { submitType = type ; }

Target:
public void setSubmitType ( final com.google.gerrit.extensions.common.SubmitType type ) { submitType = type ; }
Source:
public static java.lang.String toChange ( final com.google.gerrit.reviewdb.Change.Id c ) { return "change," + ( c.toString ( ) ) ; }

Target:
public static java.lang.String toChange ( final com.google.gerrit.reviewdb.Change.Id c ) { return ( "/c/" + c ) + "/" ; }
Source:
public void configure ( ) { factory ( ReviewDbBatchUpdate.AssistedFactory.class ) ; }

Target:
public void configure ( ) { factory ( ReviewDbBatchUpdate.AssistedFactory.class ) ; factory ( NoteDbBatchUpdate.AssistedFactory.class ) ; }
Source:
protected void configureServlets ( ) { serve ( "/become" ) . with ( com.google.gerrit.httpd.auth.become.BecomeAnyAccountLoginServlet.class ) ; }

Target:
protected void configure ( ) { listener ( ) . toInstance ( com.google.gerrit.extensions.registration.PrivateInternals_DynamicTypes.registerInParentInjectors ( ) ) ; }
Source:
public void update ( java.lang.Iterable < com.google.gerrit.reviewdb.client.Change > instances ) { throw new java.lang.UnsupportedOperationException ( "do not call update; use ChangeContext#saveChange()" ) ; }

Target:
public void upsert ( java.lang.Iterable < com.google.gerrit.reviewdb.client.Change > instances ) { throw new java.lang.UnsupportedOperationException ( ( "do not call upsert; existing changes are updated automatically," + " or use InsertChangeOp for insertion" ) ) ; }
Source:
com.google.gerrit.server.change.AbandonOp create ( @ com.google.inject.assistedinject.Assisted com.google.gerrit.reviewdb.client.Account account , @ com.google.inject.assistedinject.Assisted java.lang.String msgTxt , @ com.google.inject.assistedinject.Assisted com.google.gerrit.extensions.api.changes.NotifyHandling notifyHandling , @ com.google.inject.assistedinject.Assisted com.google.common.collect.ListMultimap < com.google.gerrit.extensions.api.changes.RecipientType , com.google.gerrit.reviewdb.client.Account.Id > accountsToNotify ) ;

Target:
com.google.gerrit.server.change.AbandonOp create ( @ com.google.inject.assistedinject.Assisted com.google.gerrit.server.account.AccountState accountState , @ com.google.inject.assistedinject.Assisted java.lang.String msgTxt , @ com.google.inject.assistedinject.Assisted com.google.gerrit.extensions.api.changes.NotifyHandling notifyHandling , @ com.google.inject.assistedinject.Assisted com.google.common.collect.ListMultimap < com.google.gerrit.extensions.api.changes.RecipientType , com.google.gerrit.reviewdb.client.Account.Id > accountsToNotify ) ;
Source:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { moveToNextChunk ( getCurrentRow ( ) ) ; }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { ensurePointerVisible ( ) ; moveToNextChunk ( getCurrentRow ( ) ) ; }
Source:
private boolean canSeeMembers ( ) { return ( group.isVisibleToAll ( ) ) || ( isOwner ( ) ) ; }

Target:
private boolean canSeeMembers ( ) { com.google.gerrit.reviewdb.client.AccountGroup accountGroup = com.google.gerrit.common.data.GroupDescriptions.toAccountGroup ( group ) ; return ( ( accountGroup != null ) && ( accountGroup.isVisibleToAll ( ) ) ) || ( isOwner ( ) ) ; }
Source:
public void addReviewer ( java.lang.String reviewer ) throws com.google.gerrit.extensions.restapi.RestApiException { com.google.gerrit.extensions.api.changes.AddReviewerInput in = new com.google.gerrit.extensions.api.changes.AddReviewerInput ( ) ; in.reviewer = reviewer ; addReviewer ( in ) ; }

Target:
public com.google.gerrit.extensions.api.changes.AddReviewerResult addReviewer ( java.lang.String reviewer ) throws com.google.gerrit.extensions.restapi.RestApiException { com.google.gerrit.extensions.api.changes.AddReviewerInput in = new com.google.gerrit.extensions.api.changes.AddReviewerInput ( ) ; in.reviewer = reviewer ; return addReviewer ( in ) ; }
Source:
public com.google.gerrit.server.change.ChangeJson.ChangeInfo format ( com.google.gerrit.reviewdb.client.Change.Id id ) throws com.google.gwtorm.server.OrmException { return format ( new com.google.gerrit.server.query.change.ChangeData ( id ) ) ; }

Target:
public com.google.gerrit.server.change.ChangeJson.ChangeInfo format ( com.google.gerrit.reviewdb.client.Change change ) throws com.google.gwtorm.server.OrmException { return format ( changeDataFactory.create ( db.get ( ) , change ) ) ; }
Source:
public int compare ( final com.google.gerrit.client.data.ChangeInfo o1 , final com.google.gerrit.client.data.ChangeInfo o2 ) { return ( o1.getId ( ) . get ( ) ) - ( o2.getId ( ) . get ( ) ) ; }

Target:
public int compare ( final com.google.gerrit.client.data.ChangeInfo o1 , final com.google.gerrit.client.data.ChangeInfo o2 ) { return o1.getLastUpdatedOn ( ) . compareTo ( o2.getLastUpdatedOn ( ) ) ; }
Source:
public com.google.gerrit.server.query.DataSource < com.google.gerrit.server.query.change.ChangeData > getSource ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p , com.google.gerrit.server.index.QueryOptions opts ) throws com.google.gerrit.index.query.QueryParseException { return index.getSource ( p , opts ) ; }

Target:
public com.google.gerrit.index.query.DataSource < com.google.gerrit.server.query.change.ChangeData > getSource ( com.google.gerrit.index.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p , com.google.gerrit.index.QueryOptions opts ) throws com.google.gerrit.index.query.QueryParseException { return index.getSource ( p , opts ) ; }
Source:
private static java.lang.String queryInComing ( java.lang.String who ) { return ( ( "is:open reviewer:" + who ) + " -owner:" ) + who ; }

Target:
private static java.lang.String queryIncoming ( java.lang.String who ) { return ( ( "is:open reviewer:" + who ) + " -owner:" ) + who ; }
Source:
long getCut ( ) { return cut ; }

Target:
public java.sql.Timestamp getMaxTimestamp ( ) { return new java.sql.Timestamp ( cut ) ; }
Source:
protected java.lang.Object getRowItemKey ( com.google.gerrit.client.diff.FileInfo item ) { return item.path ( ) ; }

Target:
protected java.lang.Object getRowItemKey ( com.google.gerrit.client.info.FileInfo item ) { return item.path ( ) ; }
Source:
abstract void onOneNodeReplicated ( java.lang.String project , java.lang.String ref , org.eclipse.jgit.transport.URIish uri , com.googlesource.gerrit.plugins.replication.ReplicationState.RefPushResult status ) ;

Target:
abstract void onRefReplicatedToOneNode ( java.lang.String project , java.lang.String ref , org.eclipse.jgit.transport.URIish uri , com.googlesource.gerrit.plugins.replication.ReplicationState.RefPushResult status ) ;
Source:
public void getIfPresentInvalidKeyTest ( ) throws java.lang.Exception { loadKeyToCacheDir ( com.ericsson.gerrit.plugins.highavailability.websession.file.FileBasedWebSessionCacheTest.INVALID_KEY ) ; java.nio.file.Path path = websessionDir.resolve ( com.ericsson.gerrit.plugins.highavailability.websession.file.FileBasedWebSessionCacheTest.INVALID_KEY ) ; com.google.common.truth.Truth.assertThat ( cache.getIfPresent ( path ) ) . isNull ( ) ; }

Target:
public void getIfPresentInvalidKeyTest ( ) throws java.lang.Exception { loadKeyToCacheDir ( com.ericsson.gerrit.plugins.highavailability.websession.file.FileBasedWebSessionCacheTest.INVALID_KEY ) ; java.nio.file.Path path = websessionDir.resolve ( com.ericsson.gerrit.plugins.highavailability.websession.file.FileBasedWebSessionCacheTest.INVALID_KEY ) ; com.google.common.truth.Truth.assertThat ( cache.getIfPresent ( ( ( java.lang.Object ) ( path ) ) ) ) . isNull ( ) ; }
Source:
public void cleanup ( ) { db.close ( ) ; }

Target:
public void cleanup ( ) { org.joda.time.DateTimeUtils.setCurrentMillisSystem ( ) ; db.close ( ) ; }
Source:
void setUpPatchSetNav ( com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.ChangeInfo.RevisionInfo > list ) { patchSetSelectBoxA.setUpPatchSetNav ( list ) ; patchSetSelectBoxB.setUpPatchSetNav ( list ) ; }

Target:
void setUpPatchSetNav ( com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.ChangeInfo.RevisionInfo > list , com.google.gerrit.client.diff.DiffInfo info ) { patchSetSelectBoxA.setUpPatchSetNav ( list , info.meta_a ( ) ) ; patchSetSelectBoxB.setUpPatchSetNav ( list , info.meta_b ( ) ) ; }
Source:
public java.lang.Object apply ( com.google.gerrit.server.account.AccountResource rsrc ) { if ( rsrc.getUser ( ) . getAccount ( ) . isActive ( ) ) { return com.google.gerrit.extensions.restapi.BinaryResult.create ( "ok\n" ) ; } return com.google.gerrit.extensions.restapi.Response.none ( ) ; }

Target:
public com.google.gerrit.extensions.restapi.Response < java.lang.String > apply ( com.google.gerrit.server.account.AccountResource rsrc ) { if ( rsrc.getUser ( ) . getAccount ( ) . isActive ( ) ) { return com.google.gerrit.extensions.restapi.Response.ok ( "ok" ) ; } return com.google.gerrit.extensions.restapi.Response.none ( ) ; }
Source:
private void logWarn ( java.lang.String msg ) { if ( com.google.gerrit.server.git.MergeOp.log.isWarnEnabled ( ) ) { com.google.gerrit.server.git.MergeOp.log.warn ( ( ( ( "[" + ( submissionId ) ) + "]" ) + msg ) ) ; } }

Target:
private void logWarn ( java.lang.String msg , java.lang.Throwable t ) { if ( com.google.gerrit.server.git.MergeOp.log.isWarnEnabled ( ) ) { com.google.gerrit.server.git.MergeOp.log.warn ( ( ( submissionId ) + msg ) , t ) ; } }
Source:
public void setUp ( ) throws java.lang.Exception { admins = groupCache.get ( new com.google.gerrit.reviewdb.client.AccountGroup.NameKey ( "Administrators" ) ) . getGroupUUID ( ) ; setUpPermissions ( ) ; setUpChanges ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { admins = groupCache.get ( new com.google.gerrit.reviewdb.client.AccountGroup.NameKey ( "Administrators" ) ) . orElse ( null ) . getGroupUUID ( ) ; setUpPermissions ( ) ; setUpChanges ( ) ; }
Source:
public com.google.gerrit.server.plugins.InstallPlugin create ( com.google.gerrit.extensions.restapi.TopLevelResource parent , java.lang.String id ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { return new com.google.gerrit.server.plugins.InstallPlugin ( loader , com.google.gerrit.extensions.restapi.Url.decode ( id ) , true ) ; }

Target:
public com.google.gerrit.server.plugins.InstallPlugin create ( com.google.gerrit.extensions.restapi.TopLevelResource parent , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { return new com.google.gerrit.server.plugins.InstallPlugin ( loader , id.get ( ) , true ) ; }
Source:
private org.apache.lucene.search.Query prefixQuery ( com.google.gerrit.server.index.IndexPredicate < V > p ) { return new org.apache.lucene.search.PrefixQuery ( new org.apache.lucene.index.Term ( p.getField ( ) . getName ( ) , p.getValue ( ) ) ) ; }

Target:
private org.apache.lucene.search.Query prefixQuery ( com.google.gerrit.index.query.IndexPredicate < V > p ) { return new org.apache.lucene.search.PrefixQuery ( new org.apache.lucene.index.Term ( p.getField ( ) . getName ( ) , p.getValue ( ) ) ) ; }
Source:
public java.util.Set < com.google.gerrit.reviewdb.Project.NameKey > getWatchedProjects ( ) { return java.util.Collections.emptySet ( ) ; }

Target:
public java.util.Collection < com.google.gerrit.reviewdb.AccountProjectWatch > getNotificationFilters ( ) { return java.util.Collections.emptySet ( ) ; }
Source:
public void evict ( com.google.gerrit.reviewdb.AccountProjectWatch.Key key ) { byAccountId.remove ( key.getParentKey ( ) ) ; byProjectName.remove ( key.getProjectName ( ) ) ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > evictAsync ( com.google.gerrit.reviewdb.AccountProjectWatch.Key key ) { return com.google.gerrit.server.util.CompoundFuture.wrap ( byAccountId.removeAsync ( key.getParentKey ( ) ) , byProjectName.removeAsync ( key.getProjectName ( ) ) ) ; }
Source:
protected void configure ( ) { bindScope ( com.google.inject.servlet.RequestScoped.class , PerThreadRequestScope.REQUEST ) ; bind ( com.google.gerrit.server.project.PerRequestProjectControlCache.class ) . in ( com.google.inject.servlet.RequestScoped.class ) ; bind ( com.google.gerrit.server.CurrentUser.class ) . toInstance ( remoteUser ) ; }

Target:
public < T > java.util.concurrent.Callable < T > scope ( java.util.concurrent.Callable < T > callable ) { return propagator.scope ( requestContext , callable ) ; }
Source:
protected void doPost ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse rsp ) { process ( req , rsp , com.ericsson.gerrit.plugins.highavailability.forwarder.rest.AbstractIndexRestApiServlet.Operation.INDEX ) ; }

Target:
protected void doDelete ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse rsp ) { if ( ! ( allowDelete ) ) { sendError ( rsp , javax.servlet.http.HttpServletResponse.SC_METHOD_NOT_ALLOWED , java.lang.String.format ( "cannot delete %s from index" , indexName ) ) ; } else { process ( req , rsp , Operation.DELETE ) ; } }
Source:
public java.lang.String getName ( ) { return ( com.googlesource.gerrit.plugins.github.group.GitHubOrganisationGroup.NAME_PREFIX ) + ( orgName ) ; }

Target:
public java.lang.String getName ( ) { return ( NAME_PREFIX ) + ( orgName ) ; }
Source:
public int compare ( com.google.gerrit.extensions.common.ChangeInfo c1 , com.google.gerrit.extensions.common.ChangeInfo c2 ) { return ( c1._number ) - ( c2._number ) ; }

Target:
public int compare ( com.google.gerrit.extensions.common.ChangeInfo c1 , com.google.gerrit.extensions.common.ChangeInfo c2 ) { return c1.branch.compareTo ( c2.branch ) ; }
Source:
synchronized void clean ( int expect ) { if ( ( ( self ) == null ) && ( ( pending ) == 0 ) ) { start = java.lang.System.currentTimeMillis ( ) ; } pending = expect ; ensureScheduled ( ) ; }

Target:
synchronized void clean ( int expect ) { if ( ( ( self ) == null ) && ( ( pending ) == 0 ) ) { start = com.google.gerrit.server.util.TimeUtil.nowMs ( ) ; } pending = expect ; ensureScheduled ( ) ; }
Source:
public final com.google.gerrit.reviewdb.client.AccountGeneralPreferences.CommentVisibilityStrategy commentVisibilityStrategy ( ) { java.lang.String s = commentVisibilityStrategyRaw ( ) ; return s != null ? com.google.gerrit.reviewdb.client.AccountGeneralPreferences.CommentVisibilityStrategy.valueOf ( s ) : null ; }

Target:
public final com.google.gerrit.reviewdb.client.AccountGeneralPreferences.ReviewCategoryStrategy reviewCategoryStrategy ( ) { java.lang.String s = reviewCategeoryStrategyRaw ( ) ; return s != null ? com.google.gerrit.reviewdb.client.AccountGeneralPreferences.ReviewCategoryStrategy.valueOf ( s ) : com.google.gerrit.reviewdb.client.AccountGeneralPreferences.ReviewCategoryStrategy.NONE ; }
Source:
private void assertProblems ( com.google.gerrit.gpg.testutil.TestKey tk , java.lang.String first , java.lang.String ... rest ) { assertProblems ( tk.getPublicKey ( ) , first , rest ) ; }

Target:
private void assertProblems ( com.google.gerrit.gpg.testing.TestKey tk , java.lang.String first , java.lang.String ... rest ) { assertProblems ( tk.getPublicKey ( ) , first , rest ) ; }
Source:
public void deleteBranch ( final com.google.gerrit.reviewdb.Project.NameKey projectName , final java.util.Set < com.google.gerrit.reviewdb.Branch.NameKey > toRemove , final com.google.gwt.user.client.rpc.AsyncCallback < java.util.Set < com.google.gerrit.reviewdb.Branch.NameKey > > callback ) { deleteBranchesFactory.create ( projectName , toRemove ) . to ( callback ) ; }

Target:
public void listBranches ( final com.google.gerrit.reviewdb.client.Project.NameKey projectName , final com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ListBranchesResult > callback ) { listBranchesFactory.create ( projectName ) . to ( callback ) ; }
Source:
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 ( "" , diffBase , id ) ; }

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:
static byte [ ] toByteArray ( com.google.gerrit.reviewdb.client.Project.NameKey project , java.lang.String pat ) { return ( ( ( project.toString ( ) ) + ':' ) + pat ) . getBytes ( java.nio.charset.StandardCharsets.UTF_8 ) ; }

Target:
byte [ ] toByteArray ( com.google.gerrit.reviewdb.client.Project.NameKey project ) { return ( ( ( project.toString ( ) ) + ':' ) + ( pattern ( ) ) ) . getBytes ( java.nio.charset.StandardCharsets.UTF_8 ) ; }