auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private boolean canRead ( org.eclipse.jgit.lib.ObjectId revId ) throws java.io.IOException { try ( org.eclipse.jgit.revwalk.RevWalk rw = new org.eclipse.jgit.revwalk.RevWalk ( repo ) ) { org.eclipse.jgit.revwalk.RevCommit commit = rw.parseCommit ( revId ) ; return projectControl.canReadCommit ( db , rw , commit ) ; } }

Target:
private boolean canRead ( org.eclipse.jgit.lib.ObjectId revId ) throws java.io.IOException { try ( org.eclipse.jgit.revwalk.RevWalk rw = new org.eclipse.jgit.revwalk.RevWalk ( repo ) ) { org.eclipse.jgit.revwalk.RevCommit commit = rw.parseCommit ( revId ) ; return projectControl.canReadCommit ( db , repo , commit ) ; } }
Source:
public com.google.gerrit.extensions.api.changes.FileApi file ( java.lang.String path ) { return fileApi.create ( files.get ( ) . parse ( revision , com.google.gerrit.extensions.restapi.IdString.fromDecoded ( path ) ) ) ; }

Target:
public com.google.gerrit.extensions.api.changes.FileApi file ( java.lang.String path ) { return fileApi.create ( files.parse ( revision , com.google.gerrit.extensions.restapi.IdString.fromDecoded ( path ) ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; index = new com.google.gerrit.server.index.FakeIndex ( FakeIndex.V2 ) ; com.google.gerrit.server.index.IndexCollection indexes = new com.google.gerrit.server.index.IndexCollection ( ) ; indexes.setSearchIndex ( index ) ; queryBuilder = new com.google.gerrit.server.index.FakeQueryBuilder ( indexes ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { index = new com.google.gerrit.server.index.FakeIndex ( FakeIndex.V2 ) ; com.google.gerrit.server.index.IndexCollection indexes = new com.google.gerrit.server.index.IndexCollection ( ) ; indexes.setSearchIndex ( index ) ; queryBuilder = new com.google.gerrit.server.index.FakeQueryBuilder ( indexes ) ; }
Source:
private void testCopyLocal ( ) { org.easymock.EasyMock.expect ( cfgMock.getCopyLocal ( ) ) . andReturn ( true ) . once ( ) ; org.easymock.EasyMock.expect ( cfgMock.getLocalStoreUrl ( ) ) . andReturn ( com.ericsson.gerrit.plugins.eventslog.SQLStoreTest.TEST_LOCAL_PATH ) . once ( ) ; }

Target:
private void testCopyLocal ( ) { org.easymock.EasyMock.expect ( cfgMock.getCopyLocal ( ) ) . andReturn ( true ) . once ( ) ; }
Source:
public java.lang.String getCoverLetter ( ) { if ( ( changeMessage ) != null ) { final java.lang.String txt = changeMessage.getMessage ( ) ; if ( txt != null ) { return txt.trim ( ) ; } } return "" ; }

Target:
public java.lang.String getCoverLetter ( ) { if ( ( changeMessage ) != null ) { return changeMessage.trim ( ) ; } return "" ; }
Source:
private com.google.gerrit.server.group.GroupResource check ( java.lang.String urlId , com.google.gerrit.server.account.GroupControl ctl ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { if ( ctl.isVisible ( ) ) { return new com.google.gerrit.server.group.GroupResource ( ctl ) ; } throw new com.google.gerrit.extensions.restapi.ResourceNotFoundException ( urlId ) ; }

Target:
private static com.google.gerrit.server.group.GroupResource check ( java.lang.String id , com.google.gerrit.server.account.GroupControl ctl ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { if ( ctl.isVisible ( ) ) { return new com.google.gerrit.server.group.GroupResource ( ctl ) ; } throw new com.google.gerrit.extensions.restapi.ResourceNotFoundException ( id ) ; }
Source:
protected void runImpl ( ) throws java.io.IOException { closeDb ( ) ; final org.spearce.jgit.transport.UploadPack up = new org.spearce.jgit.transport.UploadPack ( repo ) ; up.upload ( in , out , err ) ; }

Target:
protected void runImpl ( ) throws java.io.IOException { final org.spearce.jgit.transport.UploadPack up = new org.spearce.jgit.transport.UploadPack ( repo ) ; up.upload ( in , out , err ) ; }
Source:
void moveUp ( int row ) { swap ( ( row - 1 ) , row ) ; }

Target:
void moveUp ( int row ) { if ( row > 2 ) { swap ( ( row - 1 ) , row ) ; } }
Source:
public void onFailure ( java.lang.Exception reason ) { net.codemirror.lib.Loader.error ( reason ) ; callback.onFailure ( reason ) ; }

Target:
public void onFailure ( java.lang.Exception reason ) { callback.onFailure ( reason ) ; }
Source:
public void putComment ( com.google.gerrit.reviewdb.client.PatchLineComment c ) { verifyComment ( c ) ; com.google.common.base.Preconditions.checkArgument ( ( ( c.getStatus ( ) ) == ( PatchLineComment.Status.DRAFT ) ) , "Cannot insert a published comment into a ChangeDraftUpdate" ) ; put.put ( com.google.gerrit.server.notedb.ChangeDraftUpdate.key ( c ) , c ) ; }

Target:
public void putComment ( com.google.gerrit.reviewdb.client.PatchLineComment c ) { verifyComment ( c ) ; com.google.common.base.Preconditions.checkArgument ( ( ( c.getStatus ( ) ) == ( PatchLineComment.Status.DRAFT ) ) , "Cannot insert a published comment into a ChangeDraftUpdate" ) ; put.add ( c ) ; }
Source:
com.google.gerrit.server.git.SubmoduleOp create ( com.google.gerrit.reviewdb.client.Branch.NameKey destBranch , org.eclipse.jgit.revwalk.RevCommit mergeTip , org.eclipse.jgit.revwalk.RevWalk rw , org.eclipse.jgit.lib.Repository db , com.google.gerrit.reviewdb.client.Project destProject , java.util.List < com.google.gerrit.reviewdb.client.Change > submitted , java.util.Map < com.google.gerrit.reviewdb.client.Change.Id , com.google.gerrit.server.git.CodeReviewCommit > commits ) ;

Target:
com.google.gerrit.server.git.SubmoduleOp create ( com.google.gerrit.reviewdb.client.Branch.NameKey destBranch , org.eclipse.jgit.revwalk.RevCommit mergeTip , org.eclipse.jgit.revwalk.RevWalk rw , org.eclipse.jgit.lib.Repository db , com.google.gerrit.reviewdb.client.Project destProject , java.util.List < com.google.gerrit.reviewdb.client.Change > submitted , java.util.Map < com.google.gerrit.reviewdb.client.Change.Id , com.google.gerrit.server.git.CodeReviewCommit > commits , com.google.gerrit.reviewdb.client.Account account ) ;
Source:
protected void configure ( ) { factory ( ChangeResource.Factory.class ) ; bind ( com.google.gerrit.server.extensions.events.GitReferenceUpdated.class ) . toInstance ( GitReferenceUpdated.DISABLED ) ; }

Target:
protected void configure ( ) { factory ( ChangeResource.Factory.class ) ; }
Source:
public int next ( ) { return com.google.gerrit.server.util.IdGenerator.mix ( com.google.gerrit.server.util.IdGenerator.salt , gen.getAndIncrement ( ) ) ; }

Target:
static int mix ( int in ) { return com.google.gerrit.server.util.IdGenerator.mix ( com.google.gerrit.server.util.IdGenerator.salt , in ) ; }
Source:
public com.google.gerrit.server.CurrentUser get ( ) { final com.google.gerrit.client.reviewdb.Account.Id id = call.getAccountId ( ) ; return id != null ? new com.google.gerrit.server.IdentifiedUser ( id ) : CurrentUser.ANONYMOUS ; }

Target:
public com.google.gerrit.server.CurrentUser get ( ) { final com.google.gerrit.client.reviewdb.Account.Id id = call.getAccountId ( ) ; return id != null ? factory.create ( id ) : CurrentUser.ANONYMOUS ; }
Source:
public com.google.gerrit.extensions.restapi.Response < ? > apply ( com.google.gerrit.server.change.ChangeResource rsrc , com.google.gerrit.server.change.Index.Input input ) throws java.io.IOException { indexer.index ( rsrc.getChange ( ) ) ; return com.google.gerrit.extensions.restapi.Response.none ( ) ; }

Target:
public com.google.gerrit.extensions.restapi.Response < ? > apply ( com.google.gerrit.server.change.ChangeResource rsrc , com.google.gerrit.server.change.Index.Input input ) throws java.io.IOException { indexer.index ( db.get ( ) , rsrc.getChange ( ) ) ; return com.google.gerrit.extensions.restapi.Response.none ( ) ; }
Source:
public void close ( ) { com.google.common.util.concurrent.MoreExecutors.shutdownAndAwaitTermination ( executor , java.lang.Long.MAX_VALUE , java.util.concurrent.TimeUnit.SECONDS ) ; try { openIndex.close ( ) ; } finally { closedIndex.close ( ) ; } }

Target:
public void run ( ) { openIndex.close ( ) ; }
Source:
public void notACommit ( final org.eclipse.jgit.lib.ObjectId id , final java.lang.String message ) { ignoredObjectIds.add ( id ) ; }

Target:
public void notACommit ( final org.eclipse.jgit.lib.ObjectId id ) { ignoredObjectIds.add ( id ) ; }
Source:
public final void insert ( final java.lang.Iterable < E > instances ) throws com.google.gwtorm.client.OrmException { doInsert ( instances , null ) ; }

Target:
public final void insert ( final java.lang.Iterable < E > instances ) throws com.google.gwtorm.client.OrmException { doInsert ( instances ) ; }
Source:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > delete ( com.google.gerrit.server.query.change.ChangeData cd ) throws java.io.IOException { return com.google.common.util.concurrent.Futures.immediateFuture ( null ) ; }

Target:
public void delete ( com.google.gerrit.server.query.change.ChangeData cd ) throws java.io.IOException { }
Source:
protected void configure ( ) { cache ( com.googlesource.gerrit.plugins.uploadvalidator.BlockedKeywordValidator.CACHE_NAME , java.lang.String.class , java.util.regex.Pattern.class ) . loader ( com.googlesource.gerrit.plugins.uploadvalidator.BlockedKeywordValidator.Loader.class ) ; bind ( com.google.gerrit.server.git.TagCache.class ) ; }

Target:
protected void configure ( ) { cache ( com.googlesource.gerrit.plugins.uploadvalidator.BlockedKeywordValidator.CACHE_NAME , java.lang.String.class , java.util.regex.Pattern.class ) . loader ( com.googlesource.gerrit.plugins.uploadvalidator.BlockedKeywordValidator.Loader.class ) ; }
Source:
public boolean canSeeGroup ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) { return canSeeMembers ( ) ; }

Target:
public boolean canSeeGroup ( ) { return canSeeMembers ( ) ; }
Source:
public void onCellClicked ( com.google.gwt.user.client.ui.SourcesTableEvents sender , int row , int cell ) { if ( ( getRowItem ( row ) ) != null ) { movePointerTo ( row ) ; } }

Target:
public void onCellClicked ( com.google.gwt.user.client.ui.SourcesTableEvents sender , int row , int cell ) { if ( ( cell != 1 ) && ( ( getRowItem ( row ) ) != null ) ) { movePointerTo ( row ) ; } }
Source:
protected void preDisplay ( java.lang.Void result ) { initEditor ( content.text ( ) ) ; content = null ; }

Target:
protected void preDisplay ( java.lang.Void result ) { initEditor ( content ) ; content = null ; }
Source:
private void allowForcePushOnRefsTags ( ) throws java.lang.Exception { removePushFromRefsTags ( ) ; grant ( Permission.PUSH , project , "refs/tags/*" , true , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS ) ; }

Target:
private void allowForcePushOnRefsTags ( ) throws java.lang.Exception { removePushFromRefsTags ( ) ; grant ( project , "refs/tags/*" , Permission.PUSH , true , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS ) ; }
Source:
void showTable ( ) { myBody.clear ( ) ; myBody.add ( table ) ; table.finishDisplay ( false ) ; }

Target:
void showTable ( ) { myBody.clear ( ) ; myBody.add ( table ) ; table.finishDisplay ( ) ; }
Source:
protected com.google.gerrit.client.ui.Screen createScreen ( ) { return ( info ) != null ? new com.google.gerrit.client.changes.ChangeScreen ( info ) : new com.google.gerrit.client.changes.ChangeScreen ( id ) ; }

Target:
private com.google.gerrit.client.ui.Screen createScreen ( ) { return ( info ) != null ? new com.google.gerrit.client.changes.ChangeScreen ( info ) : new com.google.gerrit.client.changes.ChangeScreen ( id ) ; }
Source:
private static com.google.inject.Binding < com.google.gerrit.util.cli.OptionHandlerFactory < ? > > cast ( com.google.inject.Binding < ? > e ) { @ java.lang.SuppressWarnings ( value = "unchecked" ) com.google.inject.Binding < com.google.gerrit.util.cli.OptionHandlerFactory < ? > > b = ( ( com.google.inject.Binding < com.google.gerrit.util.cli.OptionHandlerFactory < ? > > ) ( e ) ) ; return b ; }

Target:
private static com.google.inject.Binding < com.google.gerrit.util.cli.OptionHandlerFactory < ? > > cast ( com.google.inject.Binding < ? > e ) { return ( ( com.google.inject.Binding < com.google.gerrit.util.cli.OptionHandlerFactory < ? > > ) ( e ) ) ; }
Source:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > deleteAsync ( com.google.gerrit.server.query.change.ChangeData cd ) { return ( executor ) != null ? submit ( new com.google.gerrit.server.index.ChangeIndexer.Task ( cd , true ) ) : com.google.common.util.concurrent.Futures.< java.lang.Object , java.io.IOException > immediateCheckedFuture ( null ) ; }

Target:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > deleteAsync ( com.google.gerrit.reviewdb.client.Change change ) { return ( executor ) != null ? submit ( new com.google.gerrit.server.index.ChangeIndexer.Task ( new com.google.gerrit.server.query.change.ChangeData ( change ) , true ) ) : com.google.common.util.concurrent.Futures.< java.lang.Object , java.io.IOException > immediateCheckedFuture ( null ) ; }
Source:
private java.util.List < com.google.gerrit.server.query.change.ChangeData > getForOpenChange ( com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.server.CurrentUser user ) throws com.google.gwtorm.server.OrmException , java.io.IOException { com.google.gerrit.server.git.ChangeSet cs = mergeSuperSet.completeChangeSet ( dbProvider.get ( ) , c , user ) ; return cs.changes ( ) . asList ( ) ; }

Target:
private com.google.gerrit.server.git.ChangeSet getForOpenChange ( com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.server.CurrentUser user ) throws com.google.gwtorm.server.OrmException , java.io.IOException { return mergeSuperSet.completeChangeSet ( dbProvider.get ( ) , c , user ) ; }
Source:
java.lang.Runnable signInCallback ( final net.codemirror.lib.CodeMirror cm ) { return new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { java.lang.String token = host.getToken ( ) ; if ( cm.extras ( ) . hasActiveLine ( ) ) { token += "@" + ( getTokenSuffixForActiveLine ( cm ) ) ; } com.google.gerrit.client.Gerrit.doSignIn ( token ) ; } } ; }

Target:
java.lang.Runnable signInCallback ( net.codemirror.lib.CodeMirror cm ) { return ( ) -> { java.lang.String token = host.getToken ( ) ; if ( cm.extras ( ) . hasActiveLine ( ) ) { token += "@" + ( getTokenSuffixForActiveLine ( cm ) ) ; } com.google.gerrit.client.Gerrit.doSignIn ( token ) ; } ; }
Source:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { saveStateOnUnload = false ; goChange ( ) ; }

Target:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { if ( submit ) { submit ( ) ; } else { saveStateOnUnload = false ; goChange ( ) ; } }
Source:
public java.lang.String asText ( ) { return asText ( "Name" , "Query" , queriesByName ) ; }

Target:
java.lang.String asText ( ) { return asText ( "Name" , "Query" , queriesByName ) ; }
Source:
private boolean canRegisterNewEmail ( ) { return com.google.gerrit.client.Gerrit.getConfig ( ) . canEdit ( Account.FieldName.REGISTER_NEW_EMAIL ) ; }

Target:
private boolean canRegisterNewEmail ( ) { return com.google.gerrit.client.Gerrit.info ( ) . auth ( ) . canEdit ( Account.FieldName.REGISTER_NEW_EMAIL ) ; }
Source:
private void setModeHeader ( javax.servlet.http.HttpServletResponse res , com.google.gitiles.PathServlet.FileType type ) { res.setHeader ( com.google.gitiles.PathServlet.MODE_HEADER , java.lang.String.format ( "%06o" , type.mode.getBits ( ) ) ) ; }

Target:
public static void setModeHeader ( javax.servlet.http.HttpServletResponse res , com.google.gitiles.PathServlet.FileType type ) { res.setHeader ( com.google.gitiles.PathServlet.MODE_HEADER , java.lang.String.format ( "%06o" , type.mode.getBits ( ) ) ) ; }
Source:
private static com.google.gerrit.extensions.common.AccountInfo fromAcountInfo ( com.google.gerrit.extensions.common.AccountInfo i ) { com.google.gerrit.extensions.common.AccountInfo ai = new com.google.gerrit.extensions.common.AccountInfo ( ) ; com.google.gerrit.server.api.changes.ChangeInfoMapper.fromAccount ( i , ai ) ; return ai ; }

Target:
private static com.google.gerrit.extensions.common.AccountInfo fromAcountInfo ( com.google.gerrit.extensions.common.AccountInfo i ) { if ( i == null ) { return null ; } com.google.gerrit.extensions.common.AccountInfo ai = new com.google.gerrit.extensions.common.AccountInfo ( ) ; com.google.gerrit.server.api.changes.ChangeInfoMapper.fromAccount ( i , ai ) ; return ai ; }
Source:
public void testNonIndexPredicates ( ) throws java.lang.Exception { com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in = parse ( "foo:a OR foo:b" ) ; assertEquals ( in , rewrite ( in ) ) ; }

Target:
public void testNonIndexPredicates ( ) throws java.lang.Exception { com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in = parse ( "foo:a OR foo:b" ) ; org.junit.Assert.assertEquals ( in , rewrite ( in ) ) ; }
Source:
public void indexChangeOnNonVisibleBranch ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; blockRead ( project , "refs/heads/master" ) ; userSession.post ( ( ( "/changes/" + changeId ) + "/index/" ) ) . assertNotFound ( ) ; }

Target:
public void indexChangeOnNonVisibleBranch ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; blockRead ( "refs/heads/master" ) ; userSession.post ( ( ( "/changes/" + changeId ) + "/index/" ) ) . assertNotFound ( ) ; }
Source:
public java.lang.String getPluginName ( java.io.File srcFile ) throws java.io.IOException { return com.google.common.base.Objects.firstNonNull ( getGerritPluginName ( srcFile ) , com.google.gerrit.server.plugins.PluginLoader.nameOf ( srcFile ) ) . toLowerCase ( ) ; }

Target:
public java.lang.String getPluginName ( java.io.File srcFile ) throws java.io.IOException { return com.google.common.base.Objects.firstNonNull ( getGerritPluginName ( srcFile ) , com.google.gerrit.server.plugins.PluginLoader.nameOf ( srcFile ) ) ; }
Source:
public com.google.gerrit.reviewdb.client.Account getNewAssignee ( ) { return newAssignee ; }

Target:
public Account.Id getNewAssignee ( ) { return ( newAssignee ) != null ? newAssignee.getId ( ) : null ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { dialogBox.hide ( ) ; usernameTxt.setValue ( "" ) ; sshKeyTxt.setValue ( "" ) ; }

Target:
private void hide ( ) { dialogBox.hide ( ) ; usernameTxt.setValue ( "" ) ; sshKeyTxt.setValue ( "" ) ; }
Source:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { createCommentEditor ( suggestRow , column , line , side ) ; }

Target:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { createCommentEditor ( suggestRow , column , line , file ) ; }
Source:
com.google.gerrit.server.rpc.project.ProjectDetailFactory create ( com.google.gerrit.client.reviewdb.Project.Id id ) ;

Target:
com.google.gerrit.server.rpc.project.ProjectDetailFactory create ( com.google.gerrit.client.reviewdb.Project.NameKey name ) ;
Source:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( patchSetId ) , new com.google.gerrit.client.changes.ChangeScreen ( patchSetId ) ) ; }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( patchSetId ) ) ; }
Source:
public static < T > com.google.gerrit.server.query.Predicate < T > and ( final com.google.gerrit.server.query.Predicate < T > ... that ) { if ( ( that.length ) == 1 ) { return that [ 0 ] ; } return new com.google.gerrit.server.query.AndPredicate < T > ( that ) ; }

Target:
public static < T > com.google.gerrit.server.query.Predicate < T > and ( final com.google.gerrit.server.query.Predicate < T > ... that ) { if ( ( that.length ) == 1 ) { return that [ 0 ] ; } return new com.google.gerrit.server.query.AndPredicate ( that ) ; }
Source:
private org.eclipse.jgit.errors.ConfigInvalidException parseException ( java.lang.String fmt , java.lang.Object ... args ) { return com.google.gerrit.server.notedb.ChangeNotes.parseException ( changeId , fmt , args ) ; }

Target:
private org.eclipse.jgit.errors.ConfigInvalidException parseException ( java.lang.String fmt , java.lang.Object ... args ) { return com.google.gerrit.server.notedb.ChangeNotes.parseException ( id , fmt , args ) ; }
Source:
public void testThreeLevelTreeWithAllIndexPredicates ( ) throws java.lang.Exception { com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in = parse ( "-status:abandoned (status:open OR status:merged)" ) ; assertEquals ( query ( parse ( "status:new OR status:submitted OR status:draft OR status:merged" ) ) , rewrite.rewrite ( in ) ) ; }

Target:
public void testThreeLevelTreeWithAllIndexPredicates ( ) throws java.lang.Exception { com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in = parse ( "-status:abandoned (status:open OR status:merged)" ) ; org.junit.Assert.assertEquals ( query ( parse ( "status:new OR status:submitted OR status:draft OR status:merged" ) ) , rewrite.rewrite ( in ) ) ; }
Source:
public com.google.gerrit.common.data.GroupReference resolve ( com.google.gerrit.reviewdb.AccountGroup group ) { return resolve ( com.google.gerrit.common.data.GroupReference.forGroup ( group ) ) ; }

Target:
public com.google.gerrit.common.data.GroupReference resolve ( com.google.gerrit.reviewdb.client.AccountGroup group ) { return resolve ( com.google.gerrit.common.data.GroupReference.forGroup ( group ) ) ; }
Source:
protected void onInitUI ( ) { super . onInitUI ( ) ; initName ( ) ; initOwner ( ) ; initDescription ( ) ; initRealmProperties ( ) ; initMemberList ( ) ; }

Target:
protected void onInitUI ( ) { super . onInitUI ( ) ; initName ( ) ; initOwner ( ) ; initDescription ( ) ; initMemberList ( ) ; }
Source:
public static org.eclipse.jgit.internal.storage.dfs.InMemoryRepository newRepository ( com.google.gerrit.reviewdb.client.Project.NameKey name ) { return new com.google.gerrit.testutil.InMemoryRepositoryManager.Repo ( com.google.gerrit.testutil.NoteDbMode.newNotesMigrationFromEnv ( ) , name ) ; }

Target:
public static org.eclipse.jgit.internal.storage.dfs.InMemoryRepository newRepository ( com.google.gerrit.reviewdb.client.Project.NameKey name ) { return new com.google.gerrit.testutil.InMemoryRepositoryManager.Repo ( name ) ; }
Source:
public void suggestReviewersNoResult1 ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; java.util.List < com.google.gerrit.extensions.common.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , "u" , 6 ) ; com.google.common.truth.Truth.assertThat ( reviewers ) . isEmpty ( ) ; }

Target:
public void suggestReviewersNoResult1 ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; java.util.List < com.google.gerrit.extensions.common.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , name ( "u" ) , 6 ) ; com.google.common.truth.Truth.assertThat ( reviewers ) . isEmpty ( ) ; }
Source:
public void createProjectFoo ( ) throws com.google.gerrit.extensions.restapi.RestApiException { gApi.projects ( ) . name ( "foo" ) . create ( ) ; }

Target:
public void createProjectFoo ( ) throws com.google.gerrit.extensions.restapi.RestApiException { java.lang.String name = "foo" ; org.junit.Assert.assertEquals ( name , gApi.projects ( ) . name ( name ) . create ( ) . get ( ) . name ) ; }
Source:
public java.util.List < com.google.gerrit.common.data.SubmitRecord > canSubmit ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.PatchSet patchSet ) { return canSubmit ( db , patchSet , null ) ; }

Target:
public java.util.List < com.google.gerrit.common.data.SubmitRecord > canSubmit ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.PatchSet patchSet ) { return canSubmit ( db , patchSet , null , false ) ; }
Source:
public java.lang.String getChangeMessageThreadId ( ) throws com.google.gerrit.common.errors.EmailException { return velocify ( ( "<gerrit.${change.createdOn.time}.$change.key.get()" + "@$email.gerritHost>" ) ) ; }

Target:
public java.lang.String getChangeMessageThreadId ( ) throws com.google.gerrit.common.errors.EmailException { return velocify ( "<gerrit.${change.createdOn.time}.$change.key.get()@$email.gerritHost>" ) ; }
Source:
protected void onInitUI ( ) { super . onInitUI ( ) ; setPageTitle ( Util.C.groupListTitle ( ) ) ; initPageHeader ( ) ; groups = new com.google.gerrit.client.admin.GroupTable ( true , com.google.gerrit.common.PageLinks.ADMIN_GROUPS ) ; add ( groups ) ; }

Target:
protected void onInitUI ( ) { super . onInitUI ( ) ; setPageTitle ( Util.C.groupListTitle ( ) ) ; initPageHeader ( ) ; groups = new com.google.gerrit.client.admin.GroupTable ( com.google.gerrit.common.PageLinks.ADMIN_GROUPS ) ; add ( groups ) ; }
Source:
protected com.google.gerrit.server.GerritCall createActiveCall ( final javax.servlet.http.HttpServletRequest req , final javax.servlet.http.HttpServletResponse resp ) { return new com.google.gerrit.server.GerritCall ( server , req , resp ) ; }

Target:
protected com.google.gerrit.server.GerritCall createActiveCall ( final javax.servlet.http.HttpServletRequest req , final javax.servlet.http.HttpServletResponse resp ) { return new com.google.gerrit.server.GerritCall ( server , schema , req , resp ) ; }
Source:
private void clearMarkerAndWidget ( ) { marker.clear ( ) ; if ( ( widget ) != null ) { widget.clear ( ) ; } else { cm.removeLineClass ( 0 , LineClassWhere.WRAP , DiffTable.style.hideNumber ( ) ) ; } }

Target:
private void clearMarkerAndWidget ( ) { marker.clear ( ) ; assert ( widget ) != null ; widget.clear ( ) ; }
Source:
public void changeDetail ( final com.google.gerrit.client.reviewdb.Change.Id id , final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.data.ChangeDetail > callback ) { run ( callback , changeDetail.create ( id ) ) ; }

Target:
public void changeDetail ( final com.google.gerrit.client.reviewdb.Change.Id id , final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.data.ChangeDetail > callback ) { changeDetail.create ( id ) . to ( callback ) ; }
Source:
public void onSuccess ( ) { com.google.gerrit.client.Gerrit.display ( select ( ) ) ; }

Target:
public void onSuccess ( ) { com.google.gerrit.client.Gerrit.display ( token , select ( ) ) ; }
Source:
protected void set ( int newValue ) { checkSequenceValue ( newValue ) ; seq = newValue ; }

Target:
protected void set ( int newValue ) { seq = newValue ; }
Source:
protected Project.NameKey createProject ( java.lang.String nameSuffix , com.google.gerrit.reviewdb.client.Project.NameKey parent ) throws com.google.gerrit.extensions.restapi.RestApiException { return createProject ( nameSuffix , parent , true ) ; }

Target:
protected Project.NameKey createProject ( java.lang.String nameSuffix , com.google.gerrit.reviewdb.client.Project.NameKey parent ) throws com.google.gerrit.extensions.restapi.RestApiException { return createProject ( nameSuffix , parent , true , null ) ; }
Source:
private boolean canRestore ( com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException { return ( ( canAbandon ( db ) ) && ( refControl.asForRef ( ) . testOrFalse ( RefPermission.CREATE_CHANGE ) ) ) && ( getProjectControl ( ) . getProjectState ( ) . statePermitsWrite ( ) ) ; }

Target:
private boolean canRestore ( com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException { return ( canAbandon ( db ) ) && ( refControl.asForRef ( ) . testOrFalse ( RefPermission.CREATE_CHANGE ) ) ; }
Source:
public static java.util.Optional < com.google.gerrit.reviewdb.client.Account.Id > parseAfterShardedRefPart ( java.lang.String name ) { java.lang.Integer id = com.google.gerrit.reviewdb.client.RefNames.parseAfterShardedRefPart ( name ) ; return java.util.Optional.ofNullable ( id ) . map ( com.google.gerrit.reviewdb.client.Account.Id :: new ) ; }

Target:
public static com.google.gerrit.reviewdb.client.Account.Id parseAfterShardedRefPart ( java.lang.String name ) { java.lang.Integer id = com.google.gerrit.reviewdb.client.RefNames.parseAfterShardedRefPart ( name ) ; return id != null ? new com.google.gerrit.reviewdb.client.Account.Id ( id ) : null ; }
Source:
public com.google.gerrit.reviewdb.client.PatchSet update ( com.google.gerrit.reviewdb.client.PatchSet patchset ) { if ( patchset.isDraft ( ) ) { patchset.setDraft ( false ) ; return patchset ; } return null ; }

Target:
public com.google.gerrit.reviewdb.client.PatchSet update ( com.google.gerrit.reviewdb.client.PatchSet patchset ) { patchset.setDraft ( false ) ; return patchset ; }
Source:
public java.util.List < com.google.gerrit.client.reviewdb.AccountSshKey > run ( com.google.gerrit.client.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException { return db.accountSshKeys ( ) . byAccount ( com.google.gerrit.client.rpc.Common.getAccountId ( ) ) . toList ( ) ; }

Target:
public java.util.List < com.google.gerrit.client.reviewdb.AccountSshKey > run ( com.google.gerrit.client.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException { return db.accountSshKeys ( ) . byAccount ( getAccountId ( ) ) . toList ( ) ; }
Source:
public static java.lang.String createCommit ( org.eclipse.jgit.api.Git git , org.eclipse.jgit.lib.PersonIdent i , java.lang.String msg ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { return com.google.gerrit.acceptance.git.GitUtil.createCommit ( git , i , msg , true ) ; }

Target:
public static java.lang.String createCommit ( org.eclipse.jgit.api.Git git , org.eclipse.jgit.lib.PersonIdent i , java.lang.String msg ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { return com.google.gerrit.acceptance.git.GitUtil.createCommit ( git , i , msg , true , false ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.rpc.NativeMap < com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.CommentInfo > > result ) { r.add ( result ) ; hasDraftComments = ! ( result.isEmpty ( ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.rpc.NativeMap < com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.CommentInfo > > result ) { r.add ( result ) ; }
Source:
com.google.gerrit.acceptance.server.mail.StagedChange stage ( com.google.gerrit.server.account.WatchConfig.NotifyType ... watches ) throws java.lang.Exception ;

Target:
com.google.gerrit.acceptance.server.mail.StagedChange stage ( ) throws java.lang.Exception ;
Source:
public static com.google.gerrit.server.patch.PatchListKey againstCommit ( org.eclipse.jgit.lib.AnyObjectId otherCommitId , org.eclipse.jgit.lib.AnyObjectId newId , com.google.gerrit.extensions.client.DiffPreferencesInfo.Whitespace whitespace ) { return new com.google.gerrit.server.patch.PatchListKey ( otherCommitId , newId , whitespace , com.google.gerrit.server.patch.PatchListKey.Algorithm.OPTIMIZED_DIFF ) ; }

Target:
public static com.google.gerrit.server.patch.PatchListKey againstCommit ( org.eclipse.jgit.lib.AnyObjectId otherCommitId , org.eclipse.jgit.lib.AnyObjectId newId , com.google.gerrit.extensions.client.DiffPreferencesInfo.Whitespace whitespace ) { return new com.google.gerrit.server.patch.PatchListKey ( otherCommitId , newId , whitespace ) ; }
Source:
private void touchChange ( ) { try { com.google.gerrit.server.ChangeUtil.touch ( change , db ) ; } catch ( com.google.gwtorm.client.OrmException e ) { } }

Target:
private void touchChange ( ) { try { com.google.gerrit.server.ChangeUtil.touch ( change , db ) ; } catch ( com.google.gwtorm.server.OrmException e ) { } }
Source:
public com.google.gerrit.reviewdb.client.Change getChange ( ) { return notes.getChange ( ) ; }

Target:
public com.google.gerrit.reviewdb.client.Change getChange ( ) { return change ; }
Source:
public void testNoAdvance ( ) { com.google.gerrit.client.diff.CodeMirrorDemo.EditIterator iter = new com.google.gerrit.client.diff.CodeMirrorDemo.EditIterator ( lines , 0 ) ; assertLineChsEqual ( net.codemirror.lib.LineCharacter.create ( 0 , 0 ) , iter.advance ( 0 ) ) ; }

Target:
public void testNoAdvance ( ) { com.google.gerrit.client.diff.CodeMirrorDemo.EditIterator iter = new com.google.gerrit.client.diff.CodeMirrorDemo.EditIterator ( lines , 0 ) ; assertLineChsEqual ( net.codemirror.lib.LineCharacter.create ( 0 ) , iter.advance ( 0 ) ) ; }
Source:
protected void beforeInit ( com.google.gerrit.pgm.BaseInit.SiteInit init ) throws java.lang.Exception { }

Target:
protected boolean beforeInit ( com.google.gerrit.pgm.BaseInit.SiteInit init ) throws java.lang.Exception { return false ; }
Source:
private static com.google.gerrit.client.reviewdb.ApprovalCategoryValue value ( final com.google.gerrit.client.reviewdb.ApprovalCategory cat , final int value , final java.lang.String name ) { return new com.google.gerrit.client.reviewdb.ApprovalCategoryValue ( new com.google.gerrit.client.reviewdb.ApprovalCategoryValue.Key ( cat.getId ( ) , ( ( short ) ( value ) ) ) , name ) ; }

Target:
private static com.google.gerrit.client.reviewdb.ApprovalCategoryValue value ( final com.google.gerrit.client.reviewdb.ApprovalCategory cat , final int value , final java.lang.String name ) { return new com.google.gerrit.client.reviewdb.ApprovalCategoryValue ( new com.google.gerrit.client.reviewdb.ApprovalCategoryValue.Id ( cat.getId ( ) , ( ( short ) ( value ) ) ) , name ) ; }
Source:
public final native void setCh ( int ch ) ;

Target:
private final native void setCh ( int ch ) ;
Source:
private void log ( final int rc ) { if ( logged.compareAndSet ( false , true ) ) { log.onExecute ( rc ) ; } }

Target:
private void log ( final int rc ) { if ( logged.compareAndSet ( false , true ) ) { log.onExecute ( cmd , rc ) ; } }
Source:
public void execute ( java.lang.String sql ) throws com.google.gwtorm.client.OrmException { try { stmt.execute ( sql ) ; } catch ( java.sql.SQLException e ) { throw new com.google.gwtorm.client.OrmException ( ( "Cannot apply SQL\n" + sql ) , e ) ; } }

Target:
public void execute ( java.lang.String sql ) throws com.google.gwtorm.server.OrmException { try { stmt.execute ( sql ) ; } catch ( java.sql.SQLException e ) { throw new com.google.gwtorm.server.OrmException ( ( "Cannot apply SQL\n" + sql ) , e ) ; } }
Source:
public static java.lang.String fullName ( java.lang.String ref ) { return ( ref.startsWith ( com.google.gerrit.reviewdb.client.RefNames.REFS ) ? "" : com.google.gerrit.reviewdb.client.RefNames.REFS_HEADS ) + ref ; }

Target:
public static java.lang.String fullName ( java.lang.String ref ) { return ref.startsWith ( com.google.gerrit.reviewdb.client.RefNames.REFS ) ? ref : ( com.google.gerrit.reviewdb.client.RefNames.REFS_HEADS ) + ref ; }
Source:
private void generateProxyMethods ( final com.google.gwt.core.ext.TreeLogger logger , final com.google.gwt.user.rebind.SourceWriter srcWriter ) { final com.google.gwt.core.ext.typeinfo.JMethod [ ] methodList = svcInf.getOverridableMethods ( ) ; for ( final com.google.gwt.core.ext.typeinfo.JMethod m : methodList ) { generateProxyMethod ( logger , m , srcWriter ) ; } }

Target:
private void generateProxyMethods ( final com.google.gwt.user.rebind.SourceWriter srcWriter ) { final com.google.gwt.core.ext.typeinfo.JMethod [ ] methodList = svcInf.getOverridableMethods ( ) ; for ( final com.google.gwt.core.ext.typeinfo.JMethod m : methodList ) { generateProxyMethod ( m , srcWriter ) ; } }
Source:
protected void configure ( ) { bind ( com.google.gerrit.server.git.GitRepositoryManager.class ) . to ( com.google.gerrit.server.git.LocalDiskRepositoryManager.class ) ; listener ( ) . to ( com.google.gerrit.server.git.LocalDiskRepositoryManager.class ) ; listener ( ) . to ( com.google.gerrit.server.git.LocalDiskRepositoryManager.Lifecycle.class ) ; }

Target:
protected void configure ( ) { listener ( ) . to ( com.google.gerrit.server.git.LocalDiskRepositoryManager.Lifecycle.class ) ; }
Source:
public void logout ( ) { if ( ( val ) != null ) { manager.destroy ( key ) ; key = null ; val = null ; saveCookie ( "" , 0 ) ; } }

Target:
public void logout ( ) { if ( ( val ) != null ) { manager.destroy ( key ) ; key = null ; val = null ; saveCookie ( ) ; } }
Source:
private void assertError ( java.lang.String expectedError , java.lang.String response ) { org.junit.Assert.assertTrue ( response , response.contains ( expectedError ) ) ; }

Target:
private void assertError ( java.lang.String expectedError , java.lang.String response ) { com.google.common.truth.Truth.assertThat ( response ) . contains ( expectedError ) ; }
Source:
public void testReplaceEscaping ( ) { org.junit.Assert.assertEquals ( "<a href=\"a&quot;&amp;&#39;&lt;&gt;b\">find</a>" , new com.google.gwtexpui.safehtml.client.LinkFindReplace ( "find" , "a\"&\'<>b" ) . replace ( "find" ) ) ; }

Target:
public void testReplaceEscaping ( ) { com.google.common.truth.Truth.assertThat ( new com.google.gwtexpui.safehtml.client.LinkFindReplace ( "find" , "a\"&\'<>b" ) . replace ( "find" ) ) . isEqualTo ( "<a href=\"a&quot;&amp;&#39;&lt;&gt;b\">find</a>" ) ; }
Source:
private boolean sshEnabled ( ) { return ( downloadConfig.getDownloadSchemes ( ) . contains ( DownloadScheme.SSH ) ) || ( downloadConfig.getDownloadSchemes ( ) . contains ( DownloadScheme.DEFAULT_DOWNLOADS ) ) ; }

Target:
private boolean sshEnabled ( ) { return downloadConfig.getDownloadSchemes ( ) . contains ( DownloadScheme.SSH ) ; }
Source:
public void testFirstParentAltersId ( ) throws java.lang.Exception { assertEquals ( ( "a\n" + ( "\n" + "Change-Id: I7fc3876fee63c766a2063df97fbe04a2dddd8d7c\n" ) ) , call ( "a\n" ) ) ; setHEAD ( ) ; assertEquals ( ( "a\n" + ( "\n" + "Change-Id: I51e86482bde7f92028541aaf724d3a3f996e7ea2\n" ) ) , call ( "a\n" ) ) ; }

Target:
public void testFirstParentAltersId ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( ( "a\n" + ( "\n" + "Change-Id: I7fc3876fee63c766a2063df97fbe04a2dddd8d7c\n" ) ) , call ( "a\n" ) ) ; setHEAD ( ) ; org.junit.Assert.assertEquals ( ( "a\n" + ( "\n" + "Change-Id: I51e86482bde7f92028541aaf724d3a3f996e7ea2\n" ) ) , call ( "a\n" ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { repo = new org.eclipse.jgit.junit.TestRepository < org.eclipse.jgit.internal.storage.dfs.DfsRepository > ( new org.eclipse.jgit.internal.storage.dfs.InMemoryRepository ( new org.eclipse.jgit.internal.storage.dfs.DfsRepositoryDescription ( "test" ) ) ) ; walk = new org.eclipse.jgit.revwalk.RevWalk ( repo.getRepository ( ) ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { repo = new org.eclipse.jgit.junit.TestRepository ( new org.eclipse.jgit.internal.storage.dfs.InMemoryRepository ( new org.eclipse.jgit.internal.storage.dfs.DfsRepositoryDescription ( "test" ) ) ) ; walk = new org.eclipse.jgit.revwalk.RevWalk ( repo.getRepository ( ) ) ; }
Source:
private java.util.Map < java.lang.String , java.util.List < com.google.gitiles.blame.BlameServletTest.RegionJsonData > > getBlameJson ( java.lang.String path ) throws java.lang.Exception { return buildJson ( path , new com.google.gson.reflect.TypeToken < java.util.Map < java.lang.String , java.util.List < com.google.gitiles.blame.BlameServletTest.RegionJsonData > > > ( ) { } . getType ( ) ) ; }

Target:
private java.util.Map < java.lang.String , java.util.List < com.google.gitiles.blame.BlameServletTest.RegionJsonData > > getBlameJson ( java.lang.String path ) throws java.lang.Exception { return buildJson ( path , new com.google.gson.reflect.TypeToken < java.util.Map < java.lang.String , java.util.List < com.google.gitiles.blame.BlameServletTest.RegionJsonData > > > ( ) { } ) ; }
Source:
public com.google.gerrit.extensions.common.DiffInfo diff ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getDiff.get ( ) . apply ( file ) . value ( ) ; } catch ( java.io.IOException | com.google.gerrit.server.project.InvalidChangeOperationException | com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot retrieve diff" , e ) ; } }

Target:
public com.google.gerrit.extensions.common.DiffInfo diff ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getDiff.apply ( file ) . value ( ) ; } catch ( java.io.IOException | com.google.gerrit.server.project.InvalidChangeOperationException | com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot retrieve diff" , e ) ; } }
Source:
protected void onInitUI ( ) { super . onInitUI ( ) ; groups = new com.google.gerrit.client.admin.GroupTable ( true ) ; add ( groups ) ; }

Target:
protected void onInitUI ( ) { super . onInitUI ( ) ; groups = new com.google.gerrit.client.admin.GroupTable ( ) ; add ( groups ) ; }
Source:
protected void configureServlets ( ) { bind ( com.googlesource.gerrit.plugins.manager.AvailablePluginsCollection.class ) ; bind ( com.googlesource.gerrit.plugins.manager.repository.PluginsRepository.class ) . to ( com.googlesource.gerrit.plugins.manager.repository.JenkinsCiPluginsRepository.class ) ; serve ( "/available*" ) . with ( com.googlesource.gerrit.plugins.manager.PluginManagerRestApiServlet.class ) ; filterRegex ( ".*\\.js" ) . through ( com.googlesource.gerrit.plugins.manager.XAuthFilter.class ) ; }

Target:
protected void configureServlets ( ) { bind ( com.googlesource.gerrit.plugins.manager.AvailablePluginsCollection.class ) ; serve ( "/available*" ) . with ( com.googlesource.gerrit.plugins.manager.PluginManagerRestApiServlet.class ) ; filterRegex ( ".*\\.js" ) . through ( com.googlesource.gerrit.plugins.manager.XAuthFilter.class ) ; }
Source:
public com.google.gerrit.server.git.WorkQueue.Executor createQueue ( int poolsize , java.lang.String prefix ) { final com.google.gerrit.server.git.WorkQueue.Executor r = new com.google.gerrit.server.git.WorkQueue.Executor ( poolsize , prefix ) ; r.setContinueExistingPeriodicTasksAfterShutdownPolicy ( false ) ; r.setExecuteExistingDelayedTasksAfterShutdownPolicy ( false ) ; queues.add ( r ) ; return r ; }

Target:
public com.google.gerrit.server.git.WorkQueue.Executor createQueue ( int poolsize , java.lang.String prefix ) { final com.google.gerrit.server.git.WorkQueue.Executor r = new com.google.gerrit.server.git.WorkQueue.Executor ( poolsize , prefix ) ; r.setContinueExistingPeriodicTasksAfterShutdownPolicy ( false ) ; r.setExecuteExistingDelayedTasksAfterShutdownPolicy ( true ) ; queues.add ( r ) ; return r ; }
Source:
protected < R extends com.google.gerrit.extensions.restapi.RestResource > com.google.gerrit.extensions.restapi.RestApiModule.ModifyViewBinder < R > put ( com.google.inject.TypeLiteral < com.google.gerrit.extensions.restapi.RestView < R > > viewType ) { return new com.google.gerrit.extensions.restapi.RestApiModule.ModifyViewBinder < R > ( view ( viewType , com.google.gerrit.extensions.restapi.RestApiModule.PUT , "/" ) ) ; }

Target:
protected < R extends com.google.gerrit.extensions.restapi.RestResource > com.google.gerrit.extensions.restapi.RestApiModule.ModifyViewBinder < R > put ( com.google.inject.TypeLiteral < com.google.gerrit.extensions.restapi.RestView < R > > viewType ) { return new com.google.gerrit.extensions.restapi.RestApiModule.ModifyViewBinder ( view ( viewType , com.google.gerrit.extensions.restapi.RestApiModule.PUT , "/" ) ) ; }
Source:
private com.google.gerrit.reviewdb.client.Change newChange ( ) { return com.google.gerrit.testutil.TestChanges.newChange ( project , changeOwner ) ; }

Target:
private com.google.gerrit.reviewdb.client.Change newChange ( ) { return com.google.gerrit.testutil.TestChanges.newChange ( project , changeOwner.getAccountId ( ) ) ; }
Source:
public static com.google.gerrit.elasticsearch.ElasticIndexModule latestVersionWithOnlineUpgrade ( ) { return new com.google.gerrit.elasticsearch.ElasticIndexModule ( null , 0 ) ; }

Target:
public static com.google.gerrit.elasticsearch.ElasticIndexModule latestVersionWithOnlineUpgrade ( ) { return new com.google.gerrit.elasticsearch.ElasticIndexModule ( null , 0 , true ) ; }
Source:
private static java.util.List < com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > > none ( ) { com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > any = any ( ) ; return com.google.common.collect.ImmutableList.of ( not ( any ) ) ; }

Target:
protected static java.util.List < com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > > none ( ) { com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > any = any ( ) ; return com.google.common.collect.ImmutableList.of ( not ( any ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; db = new com.google.gwtorm.nosql.heap.MemoryDatabase < com.google.gwtorm.data.PhoneBookDb > ( com.google.gwtorm.data.PhoneBookDb.class ) ; openSchemas = new java.util.ArrayList < com.google.gwtorm.data.PhoneBookDb > ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { db = new com.google.gwtorm.nosql.heap.MemoryDatabase < com.google.gwtorm.data.PhoneBookDb > ( com.google.gwtorm.data.PhoneBookDb.class ) ; openSchemas = new java.util.ArrayList < com.google.gwtorm.data.PhoneBookDb > ( ) ; }
Source:
private org.eclipse.jgit.lib.PersonIdent toCommitterIdent ( final com.google.gerrit.reviewdb.PatchSetApproval audit ) { if ( audit != null ) { return identifiedUserFactory.create ( audit.getAccountId ( ) ) . newCommitterIdent ( audit.getGranted ( ) , myIdent.getTimeZone ( ) ) ; } return myIdent ; }

Target:
private org.eclipse.jgit.lib.PersonIdent toCommitterIdent ( final com.google.gerrit.reviewdb.client.PatchSetApproval audit ) { if ( audit != null ) { return identifiedUserFactory.create ( audit.getAccountId ( ) ) . newCommitterIdent ( audit.getGranted ( ) , myIdent.getTimeZone ( ) ) ; } return myIdent ; }
Source:
public void display ( java.lang.String commitMessage , com.google.gerrit.client.ui.CommentLinkProcessor commentLinkProcessor ) { display ( null , null , null , false , commitMessage , commentLinkProcessor ) ; }

Target:
public void display ( java.lang.String commitMessage , com.google.gerrit.client.ui.CommentLinkProcessor commentLinkProcessor ) { display ( null , null , null , commitMessage , commentLinkProcessor ) ; }
Source:
public static com.google.gwtjsonrpc.client.event.Type < com.google.gwtjsonrpc.client.event.RpcCompleteHandler > getType ( ) { if ( ( com.google.gwtjsonrpc.client.event.RpcCompleteEvent.TYPE ) == null ) { com.google.gwtjsonrpc.client.event.RpcCompleteEvent.TYPE = new com.google.gwtjsonrpc.client.event.Type < com.google.gwtjsonrpc.client.event.RpcCompleteHandler > ( ) ; com.google.gwtjsonrpc.client.event.RpcCompleteEvent.INSTANCE = new com.google.gwtjsonrpc.client.event.RpcCompleteEvent ( ) ; } return com.google.gwtjsonrpc.client.event.RpcCompleteEvent.TYPE ; }

Target:
public static com.google.gwtjsonrpc.client.event.Type < com.google.gwtjsonrpc.client.event.RpcCompleteHandler > getType ( ) { if ( ( com.google.gwtjsonrpc.client.event.RpcCompleteEvent.TYPE ) == null ) { com.google.gwtjsonrpc.client.event.RpcCompleteEvent.TYPE = new com.google.gwtjsonrpc.client.event.Type ( ) ; com.google.gwtjsonrpc.client.event.RpcCompleteEvent.INSTANCE = new com.google.gwtjsonrpc.client.event.RpcCompleteEvent ( ) ; } return com.google.gwtjsonrpc.client.event.RpcCompleteEvent.TYPE ; }
Source:
< I > com.google.gerrit.extensions.restapi.RestModifyView < P , I > post ( P parent ) throws com.google.gerrit.extensions.restapi.RestApiException ;

Target:
com.google.gerrit.extensions.restapi.RestModifyView < P , ? > post ( P parent ) throws com.google.gerrit.extensions.restapi.RestApiException ;
Source:
private static void validateReindexerNotRunning ( com.google.gerrit.server.index.OnlineReindexer < ? , ? , ? > reindexer ) throws com.google.gerrit.lucene.ReindexerAlreadyRunningException { if ( ( reindexer != null ) && ( reindexer.isRunning ( ) ) ) { throw new com.google.gerrit.lucene.ReindexerAlreadyRunningException ( ) ; } }

Target:
private void validateReindexerNotRunning ( ) throws com.google.gerrit.lucene.ReindexerAlreadyRunningException { if ( ( ( reindexer ) != null ) && ( reindexer.isRunning ( ) ) ) { throw new com.google.gerrit.lucene.ReindexerAlreadyRunningException ( ) ; } }