auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static com.google.gerrit.client.reviewdb.Patch.Id parse ( final java.lang.String str ) { final com.google.gerrit.client.reviewdb.Patch.Id r = new com.google.gerrit.client.reviewdb.Patch.Id ( ) ; r.fromString ( str ) ; return r ; }

Target:
public static com.google.gerrit.client.reviewdb.Patch.Key parse ( final java.lang.String str ) { final com.google.gerrit.client.reviewdb.Patch.Key r = new com.google.gerrit.client.reviewdb.Patch.Key ( ) ; r.fromString ( str ) ; return r ; }
Source:
boolean canPerform ( java.lang.String permissionName , boolean isChangeOwner ) { return doCanPerform ( permissionName , isChangeOwner , false ) ; }

Target:
private boolean canPerform ( java.lang.String permissionName , boolean isChangeOwner ) { return doCanPerform ( permissionName , isChangeOwner , false ) ; }
Source:
void removeFileCommentBox ( com.google.gerrit.client.diff.DraftBox box , com.google.gerrit.common.changes.Side side ) { diffTable.onRemoveDraftBox ( box , side ) ; }

Target:
void removeFileCommentBox ( com.google.gerrit.client.diff.DraftBox box ) { diffTable.onRemoveDraftBox ( box ) ; }
Source:
public void testGetComment ( ) throws java.lang.Exception { com.google.gerrit.server.change.CommentsTest.assertGetComment ( injector , revRes1 , plc1 , plc1.getKey ( ) . get ( ) ) ; com.google.gerrit.server.change.CommentsTest.assertGetComment ( injector , revRes1 , null , "BadComment" ) ; }

Target:
public void testGetComment ( ) throws java.lang.Exception { assertGetComment ( revRes1 , plc1 , plc1.getKey ( ) . get ( ) ) ; assertGetComment ( revRes1 , null , "BadComment" ) ; }
Source:
private com.google.gerrit.reviewdb.client.AccountGroup toAccountGroup ( org.apache.lucene.document.Document doc ) { com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid = new com.google.gerrit.reviewdb.client.AccountGroup.UUID ( doc.getField ( com.google.gerrit.server.index.group.GroupField.UUID.getName ( ) ) . stringValue ( ) ) ; return groupCache.get ( uuid ) ; }

Target:
private com.google.gerrit.reviewdb.client.AccountGroup toAccountGroup ( org.apache.lucene.document.Document doc ) { com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid = new com.google.gerrit.reviewdb.client.AccountGroup.UUID ( doc.getField ( com.google.gerrit.server.index.group.GroupField.UUID.getName ( ) ) . stringValue ( ) ) ; return groupCache.get ( ) . get ( uuid ) ; }
Source:
com.google.common.collect.ImmutableMultimap < com.google.gerrit.reviewdb.client.Change.Id , java.lang.String > getProblems ( ) { return com.google.common.collect.ImmutableMultimap.copyOf ( problems ) ; }

Target:
public com.google.common.collect.ImmutableMultimap < com.google.gerrit.reviewdb.client.Change.Id , java.lang.String > getProblems ( ) { return com.google.common.collect.ImmutableMultimap.copyOf ( problems ) ; }
Source:
public static void commitWithLinks ( int changeId , java.lang.String revision , com.google.gerrit.client.rpc.CallbackGroup.Callback < com.google.gerrit.client.info.ChangeInfo.CommitInfo > callback ) { com.google.gerrit.client.changes.ChangeApi.revision ( changeId , revision ) . view ( "commit" ) . addParameterTrue ( "links" ) . get ( callback ) ; }

Target:
public static void commitWithLinks ( @ com.google.gerrit.common.Nullable java.lang.String project , int changeId , java.lang.String revision , com.google.gerrit.client.rpc.CallbackGroup.Callback < com.google.gerrit.client.info.ChangeInfo.CommitInfo > callback ) { com.google.gerrit.client.changes.ChangeApi.revision ( project , changeId , revision ) . view ( "commit" ) . addParameterTrue ( "links" ) . get ( callback ) ; }
Source:
public com.google.gerrit.extensions.api.changes.FileApi file ( java.lang.String path ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return fileApi.create ( files.parse ( revision , com.google.gerrit.extensions.restapi.IdString.fromDecoded ( path ) ) ) ; } catch ( java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot retrieve file" , e ) ; } }

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:
private void asScript ( final org.w3c.dom.Element scriptNode ) { scriptNode.removeAttribute ( "id" ) ; scriptNode.setAttribute ( "type" , "text/javascript" ) ; scriptNode.setAttribute ( "language" , "javascript" ) ; }

Target:
private void asScript ( final org.w3c.dom.Element scriptNode ) { scriptNode.setAttribute ( "type" , "text/javascript" ) ; scriptNode.setAttribute ( "language" , "javascript" ) ; }
Source:
public java.nio.file.Path getBasePath ( ) { return basePath ; }

Target:
public java.nio.file.Path getBasePath ( com.google.gerrit.reviewdb.client.Project.NameKey name ) { return basePath ; }
Source:
public boolean isValid ( ) { return valid ; }

Target:
public boolean isValid ( ) { return ( valid ) && ( id.isValid ( ) ) ; }
Source:
public com.google.gitiles.CommitSoyData setLinkifier ( com.google.gitiles.Linkifier linkifier ) { this . linkifier = com.google.common.base.Preconditions.checkNotNull ( linkifier , "linkifier" ) ; return this ; }

Target:
com.google.gitiles.CommitSoyData setLinkifier ( @ javax.annotation.Nullable com.google.gitiles.Linkifier linkifier ) { this . linkifier = linkifier ; return this ; }
Source:
public static com.google.gerrit.client.rpc.RestApi detail ( int id ) { return com.google.gerrit.client.changes.ChangeApi.call ( id , "detail" ) ; }

Target:
public static com.google.gerrit.client.rpc.RestApi detail ( @ com.google.gerrit.common.Nullable java.lang.String project , int id ) { return com.google.gerrit.client.changes.ChangeApi.call ( project , id , "detail" ) ; }
Source:
public static void updateImpl ( final java.lang.String token ) { com.google.gwt.user.client.History.newItem ( token , false ) ; if ( ( com.google.gerrit.client.Gerrit.historyHooks ) != null ) { com.google.gerrit.client.Gerrit.dispatchHistoryHooks ( token ) ; } }

Target:
public static void updateImpl ( final java.lang.String token ) { com.google.gwt.user.client.History.newItem ( token , false ) ; com.google.gerrit.client.Gerrit.dispatchHistoryHooks ( token ) ; }
Source:
public void cancel ( ) { final com.google.gerrit.sshd.SshScope.Context old = com.google.gerrit.sshd.SshScope.set ( context ) ; try { onExit ( com.google.gerrit.sshd.BaseCommand.STATUS_CANCEL ) ; } finally { com.google.gerrit.sshd.SshScope.set ( old ) ; } }

Target:
public void cancel ( ) { synchronized ( this ) { final com.google.gerrit.sshd.SshScope.Context old = com.google.gerrit.sshd.SshScope.set ( context ) ; try { onExit ( com.google.gerrit.sshd.BaseCommand.STATUS_CANCEL ) ; } finally { com.google.gerrit.sshd.SshScope.set ( old ) ; } } }
Source:
private void fastForwardTagToNewCommit ( com.google.gerrit.acceptance.rest.project.PushTagIT.TagType tagType , java.lang.String tagName , org.eclipse.jgit.transport.RemoteRefUpdate.Status expectedStatus ) throws java.lang.Exception { pushTag ( tagType , tagName , true , expectedStatus ) ; }

Target:
private void fastForwardTagToNewCommit ( com.google.gerrit.acceptance.rest.project.PushTagIT.TagType tagType , java.lang.String tagName , org.eclipse.jgit.transport.RemoteRefUpdate.Status expectedStatus ) throws java.lang.Exception { pushTag ( tagType , tagName , true , false , expectedStatus ) ; }
Source:
public void testEndsOnNewline ( ) { com.google.gerrit.client.diff.CodeMirrorDemo.EditIterator iter = new com.google.gerrit.client.diff.CodeMirrorDemo.EditIterator ( lines , 0 ) ; assertLineChsEqual ( net.codemirror.lib.LineCharacter.create ( 1 , 0 ) , iter.advance ( 4 ) ) ; }

Target:
public void testEndsOnNewline ( ) { com.google.gerrit.client.diff.CodeMirrorDemo.EditIterator iter = new com.google.gerrit.client.diff.CodeMirrorDemo.EditIterator ( lines , 0 ) ; assertLineChsEqual ( net.codemirror.lib.LineCharacter.create ( 1 ) , iter.advance ( 4 ) ) ; }
Source:
private void group ( java.lang.String name ) throws java.io.IOException { com.google.gerrit.server.group.CreateGroup.Input in = new com.google.gerrit.server.group.CreateGroup.Input ( ) ; adminSession.put ( ( "/groups/" + name ) , in ) . consume ( ) ; }

Target:
private java.lang.String group ( java.lang.String name ) throws java.io.IOException { name = name ( name ) ; com.google.gerrit.server.group.CreateGroup.Input in = new com.google.gerrit.server.group.CreateGroup.Input ( ) ; adminSession.put ( ( "/groups/" + name ) , in ) . consume ( ) ; return name ; }
Source:
java.lang.Iterable < com.google.gwtorm.jdbc.AbstractTestJdbcAccess.Data > createIterable ( com.google.gwtorm.jdbc.AbstractTestJdbcAccess.Data ... data ) { java.util.List < com.google.gwtorm.jdbc.AbstractTestJdbcAccess.Data > list = java.util.Arrays.asList ( data ) ; return new com.google.gwtorm.server.ListResultSet < com.google.gwtorm.jdbc.AbstractTestJdbcAccess.Data > ( list ) ; }

Target:
java.lang.Iterable < com.google.gwtorm.jdbc.AbstractTestJdbcAccess.Data > createIterable ( com.google.gwtorm.jdbc.AbstractTestJdbcAccess.Data ... data ) { java.util.List < com.google.gwtorm.jdbc.AbstractTestJdbcAccess.Data > list = java.util.Arrays.asList ( data ) ; return new com.google.gwtorm.server.ListResultSet ( list ) ; }
Source:
public com.google.gerrit.extensions.common.AccountInfo setAssignee ( com.google.gerrit.extensions.api.changes.AssigneeInput input ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return putAssignee.apply ( change , input ) . value ( ) ; } catch ( com.google.gerrit.server.git.UpdateException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot set assignee" , e ) ; } }

Target:
public com.google.gerrit.extensions.common.AccountInfo setAssignee ( com.google.gerrit.extensions.api.changes.AssigneeInput input ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return putAssignee.apply ( change , input ) . value ( ) ; } catch ( com.google.gerrit.server.git.UpdateException | java.io.IOException | com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot set assignee" , e ) ; } }
Source:
private static com.google.gerrit.client.rpc.RestApi call ( int id , java.lang.String commit , java.lang.String action ) { return com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( "revisions" ) . id ( commit ) . view ( action ) ; }

Target:
private static com.google.gerrit.client.rpc.RestApi call ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , java.lang.String action ) { return com.google.gerrit.client.changes.ChangeApi.change ( project , id ) . view ( action ) ; }
Source:
public void onSuccess ( final com.google.gerrit.common.data.PatchSetDetail result ) { fileList.display ( psid , result.getPatches ( ) ) ; }

Target:
public void onSuccess ( final com.google.gerrit.common.data.PatchSetDetail result ) { fileList.display ( result ) ; }
Source:
public java.util.concurrent.Callable < java.lang.Void > deleteTask ( com.google.gerrit.server.query.change.ChangeData cd ) { return new com.google.gerrit.server.index.ChangeIndexerImpl.Task ( cd , true ) ; }

Target:
protected java.util.concurrent.Callable < java.lang.Void > deleteTask ( com.google.gerrit.server.query.change.ChangeData cd ) { return new com.google.gerrit.server.index.ChangeIndexerImpl.Task ( cd , true ) ; }
Source:
private static PatchSet.Id nextPatchSetId ( com.google.gerrit.reviewdb.client.PatchSet.Id id ) { return new com.google.gerrit.reviewdb.client.PatchSet.Id ( id.getParentKey ( ) , ( ( id.get ( ) ) + 1 ) ) ; }

Target:
public static PatchSet.Id nextPatchSetId ( com.google.gerrit.reviewdb.client.PatchSet.Id id ) { return new com.google.gerrit.reviewdb.client.PatchSet.Id ( id.getParentKey ( ) , ( ( id.get ( ) ) + 1 ) ) ; }
Source:
private com.google.gerrit.extensions.api.changes.ChangeApi changeApi ( com.google.gerrit.reviewdb.client.PatchSet patchSet ) throws com.google.gerrit.extensions.restapi.RestApiException { return gApi.get ( ) . changes ( ) . id ( patchSet.getId ( ) . getParentKey ( ) . get ( ) ) ; }

Target:
private com.google.gerrit.extensions.api.changes.ChangeApi changeApi ( com.google.gerrit.reviewdb.client.PatchSet patchSet ) throws com.google.gerrit.extensions.restapi.RestApiException { return gApi.changes ( ) . id ( patchSet.getId ( ) . getParentKey ( ) . get ( ) ) ; }
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 ) . to ( com.google.gerrit.server.git.LocalDiskRepositoryManager.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 ) ; }
Source:
private java.util.List < com.google.gerrit.server.query.change.ChangeData > byTopicOpen ( java.lang.String topic ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.server.submit.MergeSuperSet.query ( queryProvider.get ( ) ) . byTopicOpen ( topic ) ; }

Target:
private java.util.List < com.google.gerrit.server.query.change.ChangeData > byTopicOpen ( java.lang.String topic ) throws com.google.gwtorm.server.OrmException { return queryProvider.get ( ) . byTopicOpen ( topic ) ; }
Source:
final native void setMessage ( java.lang.String m ) ;

Target:
final native void message ( java.lang.String m ) ;
Source:
public final native void setLine ( int line ) ;

Target:
private final native void setLine ( int line ) ;
Source:
public void tearDown ( ) throws java.lang.Exception { stat.execute ( ( "DROP TABLE " + ( com.ericsson.gerrit.plugins.eventslog.sql.SQLTable.TABLE_NAME ) ) ) ; store.stop ( ) ; }

Target:
private void tearDown ( ) throws java.lang.Exception { stat.execute ( ( "DROP TABLE " + ( com.ericsson.gerrit.plugins.eventslog.sql.SQLTable.TABLE_NAME ) ) ) ; store.stop ( ) ; }
Source:
public void createProjectFoo ( ) throws java.lang.Exception { java.lang.String name = "foo" ; com.google.common.truth.Truth.assertThat ( name ) . isEqualTo ( gApi.projects ( ) . create ( name ) . get ( ) . name ) ; }

Target:
public void createProjectFoo ( ) throws java.lang.Exception { java.lang.String name = name ( "foo" ) ; com.google.common.truth.Truth.assertThat ( name ) . isEqualTo ( gApi.projects ( ) . create ( name ) . get ( ) . name ) ; }
Source:
private com.google.gerrit.common.data.SubmitTypeRecord typeError ( java.lang.String err , java.lang.Exception e ) { if ( logErrors ) { com.google.gerrit.server.project.SubmitRuleEvaluator.log.error ( err , e ) ; return com.google.gerrit.server.project.SubmitRuleEvaluator.defaultTypeError ( ) ; } else { return com.google.gerrit.server.project.SubmitRuleEvaluator.createTypeError ( err ) ; } }

Target:
private com.google.gerrit.common.data.SubmitTypeRecord typeError ( java.lang.String err ) { return typeError ( err , null ) ; }
Source:
private void setNew ( com.google.gerrit.server.git.CodeReviewCommit c , com.google.gerrit.reviewdb.client.ChangeMessage msg ) { sendMergeFail ( c.notes , msg , true ) ; }

Target:
private void setNew ( com.google.gerrit.server.git.CodeReviewCommit c , com.google.gerrit.reviewdb.client.ChangeMessage msg ) { sendMergeFail ( c.notes ( ) , msg , true ) ; }
Source:
public void testEntityNbsp ( ) { final com.google.gwtexpui.safehtml.client.SafeHtmlBuilder b = new com.google.gwtexpui.safehtml.client.SafeHtmlBuilder ( ) ; assertSame ( b , b.nbsp ( ) ) ; assertEquals ( "&nbsp;" , b.asString ( ) ) ; }

Target:
public void testEntityNbsp ( ) { final com.google.gwtexpui.safehtml.client.SafeHtmlBuilder b = new com.google.gwtexpui.safehtml.client.SafeHtmlBuilder ( ) ; org.junit.Assert.assertSame ( b , b.nbsp ( ) ) ; org.junit.Assert.assertEquals ( "&nbsp;" , b.asString ( ) ) ; }
Source:
protected void preDisplay ( java.lang.Void result ) { setShowTabs ( prefs.showTabs ( ) ) ; initEditor ( content.text ( ) ) ; content = null ; }

Target:
protected void preDisplay ( java.lang.Void result ) { initEditor ( content ) ; content = null ; }
Source:
private static void assertRef ( int changeId , java.lang.String refName ) { org.junit.Assert.assertEquals ( new com.google.gerrit.reviewdb.client.Change.Id ( changeId ) , Change.Id.fromRef ( refName ) ) ; }

Target:
private static void assertRef ( int changeId , java.lang.String refName ) { com.google.common.truth.Truth.assertThat ( Change.Id.fromRef ( refName ) ) . isEqualTo ( new com.google.gerrit.reviewdb.client.Change.Id ( changeId ) ) ; }
Source:
public static com.criteo.gerrit.plugins.automerge.Change from ( com.google.gerrit.server.data.ChangeAttribute changeAttribute ) { return new com.criteo.gerrit.plugins.automerge.Change ( changeAttribute.project , changeAttribute.number , changeAttribute.topic ) ; }

Target:
public static com.criteo.gerrit.plugins.automerge.Change from ( com.google.gerrit.server.data.ChangeAttribute changeAttribute ) { return new com.criteo.gerrit.plugins.automerge.Change ( changeAttribute.project , changeAttribute.number , changeAttribute.id , changeAttribute.topic , changeAttribute.branch ) ; }
Source:
void setList ( java.lang.String section , java.lang.String subsection , java.lang.String name , java.util.List < java.lang.String > values ) ;

Target:
public abstract void setList ( java.lang.String section , java.lang.String subsection , java.lang.String name , java.util.List < java.lang.String > values ) ;
Source:
private static com.google.gerrit.client.rpc.RestApi call ( int id , java.lang.String commit , java.lang.String action ) { return com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( "revisions" ) . id ( commit ) . view ( action ) ; }

Target:
private static com.google.gerrit.client.rpc.RestApi call ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , java.lang.String commit , java.lang.String action ) { return com.google.gerrit.client.changes.ChangeApi.change ( project , id ) . view ( "revisions" ) . id ( commit ) . view ( action ) ; }
Source:
public void returnDefaultforNullMap ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( com.ericsson.gerrit.plugins.eventslog.QueryMakerTest.defaultQuery , com.ericsson.gerrit.plugins.eventslog.QueryMakerTest.queryMaker.formQueryFromRequestParameters ( null ) ) ; }

Target:
public void returnDefaultforNullMap ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( com.ericsson.gerrit.plugins.eventslog.QueryMakerTest.queryMaker.formQueryFromRequestParameters ( null ) ) . isEqualTo ( com.ericsson.gerrit.plugins.eventslog.QueryMakerTest.defaultQuery ) ; }
Source:
public void onLoad ( com.google.gerrit.plugin.client.screen.Screen screen ) { screen.setPageTitle ( "Reviewers" ) ; screen.show ( new com.googlesource.gerrit.plugins.reviewers.client.ReviewersScreen ( com.google.gwt.http.client.URL.decodeQueryString ( screen.getToken ( ) ) ) ) ; }

Target:
public void onLoad ( com.google.gerrit.plugin.client.screen.Screen screen ) { screen.setPageTitle ( "Reviewers" ) ; screen.show ( new com.googlesource.gerrit.plugins.reviewers.client.ReviewersScreen ( com.google.gwt.http.client.URL.decodeQueryString ( screen.getToken ( 1 ) ) ) ) ; }
Source:
public java.lang.String getAvatarUrl ( int size ) throws com.google.gerrit.extensions.restapi.RestApiException { com.google.gerrit.server.account.GetAvatar myGetAvatar = getAvatar.get ( ) ; myGetAvatar.setSize ( size ) ; return myGetAvatar.apply ( account ) . location ( ) ; }

Target:
public java.lang.String getAvatarUrl ( int size ) throws com.google.gerrit.extensions.restapi.RestApiException { getAvatar.setSize ( size ) ; return getAvatar.apply ( account ) . location ( ) ; }
Source:
public void setChangeId ( final com.google.gerrit.reviewdb.client.Change.Id changeId ) { this . changeId = changeId ; }

Target:
public void setChangeId ( final com.google.gerrit.reviewdb.client.Change.Id changeId ) { }
Source:
private PatchSet.Id getPatchSetId ( com.google.gerrit.acceptance.GitUtil.Commit c ) throws com.google.gwtorm.server.OrmException { return getChange ( c ) . change ( ) . currentPatchSetId ( ) ; }

Target:
private PatchSet.Id getPatchSetId ( org.eclipse.jgit.lib.ObjectId c ) throws com.google.gwtorm.server.OrmException { return getChange ( c ) . change ( ) . currentPatchSetId ( ) ; }
Source:
public com.google.gerrit.reviewdb.Change update ( com.google.gerrit.reviewdb.Change change ) { if ( ( change.getStatus ( ) ) == ( Change.Status.NEW ) ) { change.setStatus ( Change.Status.SUBMITTED ) ; com.google.gerrit.server.ChangeUtil.updated ( change ) ; } return change ; }

Target:
public com.google.gerrit.reviewdb.client.Change update ( com.google.gerrit.reviewdb.client.Change change ) { if ( ( change.getStatus ( ) ) == ( Change.Status.NEW ) ) { change.setStatus ( Change.Status.SUBMITTED ) ; com.google.gerrit.server.ChangeUtil.updated ( change ) ; } return change ; }
Source:
protected void submitWithConflict ( java.lang.String changeId , java.lang.String expectedError ) throws java.lang.Exception { submit ( changeId , new com.google.gerrit.extensions.api.changes.SubmitInput ( ) , com.google.gerrit.extensions.restapi.ResourceConflictException.class , expectedError , true ) ; }

Target:
protected void submitWithConflict ( java.lang.String changeId , java.lang.String expectedError ) throws java.lang.Exception { submit ( changeId , new com.google.gerrit.extensions.api.changes.SubmitInput ( ) , com.google.gerrit.extensions.restapi.ResourceConflictException.class , expectedError ) ; }
Source:
public void execute ( ) { com.google.gwt.user.client.Window.scrollTo ( 0 , 0 ) ; message.setFocus ( true ) ; }

Target:
public void execute ( ) { message.setFocus ( true ) ; }
Source:
public void message ( java.lang.String msg ) { }

Target:
public void message ( java.lang.String message ) { }
Source:
protected java.lang.String getRefName ( ) { return com.google.gerrit.reviewdb.client.RefNames.REFS_CONFIG ; }

Target:
protected java.lang.String getRefName ( ) { return ref ; }
Source:
public void beforeTest ( ) throws java.lang.Exception { notesMigration = new com.google.gerrit.testutil.TestNotesMigration ( ) . setFromEnv ( ) ; }

Target:
public void beforeTest ( ) throws java.lang.Exception { notesMigration = new com.google.gerrit.testutil.TestNotesMigration ( ) ; }
Source:
public static void createDraft ( com.google.gerrit.reviewdb.client.PatchSet.Id id , com.google.gerrit.client.changes.CommentInput content , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.changes.CommentInfo > cb ) { com.google.gerrit.client.changes.CommentApi.revision ( id , "drafts" ) . put ( content , cb ) ; }

Target:
public static void createDraft ( com.google.gerrit.reviewdb.client.PatchSet.Id id , com.google.gerrit.client.changes.CommentInfo content , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.changes.CommentInfo > cb ) { com.google.gerrit.client.changes.CommentApi.revision ( id , "drafts" ) . put ( content , cb ) ; }
Source:
public static void detail ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.info.ChangeInfo > cb ) { com.google.gerrit.client.changes.ChangeApi.detail ( id ) . get ( cb ) ; }

Target:
public static void detail ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.info.ChangeInfo > cb ) { com.google.gerrit.client.changes.ChangeApi.detail ( project , id ) . get ( cb ) ; }
Source:
java.lang.String ps ( ) ;

Target:
java.lang.String patchSet ( ) ;
Source:
public static org.eclipse.jgit.revwalk.RevCommit makeCommit ( org.eclipse.jgit.dircache.DirCacheEntry [ ] entries , org.eclipse.jgit.junit.TestRepository < org.eclipse.jgit.lib.Repository > repo ) throws java.lang.Exception { return com.googlesource.gerrit.plugins.uploadvalidator.TestUtils.makeCommit ( entries , repo , ( ( org.eclipse.jgit.revwalk.RevCommit [ ] ) ( null ) ) ) ; }

Target:
public static org.eclipse.jgit.revwalk.RevCommit makeCommit ( org.eclipse.jgit.revwalk.RevWalk rw , org.eclipse.jgit.dircache.DirCacheEntry [ ] entries , org.eclipse.jgit.junit.TestRepository < org.eclipse.jgit.lib.Repository > repo ) throws java.lang.Exception { return com.googlesource.gerrit.plugins.uploadvalidator.TestUtils.makeCommit ( rw , entries , repo , ( ( org.eclipse.jgit.revwalk.RevCommit [ ] ) ( null ) ) ) ; }
Source:
public void setUUID ( com.google.gerrit.reviewdb.AccountGroup.UUID newUUID ) { uuid = newUUID.get ( ) ; }

Target:
public void setUUID ( com.google.gerrit.reviewdb.AccountGroup.UUID newUUID ) { uuid = ( newUUID != null ) ? newUUID.get ( ) : null ; }
Source:
public void onSuccess ( com.google.gerrit.client.account.DiffPreferences result ) { com.google.gerrit.extensions.client.DiffPreferencesInfo p = com.google.gerrit.client.Gerrit.getDiffPreferences ( ) ; result.copyTo ( p ) ; com.google.gerrit.client.Gerrit.setDiffPreferences ( p ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.account.DiffPreferences result ) { com.google.gerrit.extensions.client.DiffPreferencesInfo p = new com.google.gerrit.extensions.client.DiffPreferencesInfo ( ) ; result.copyTo ( p ) ; com.google.gerrit.client.Gerrit.setDiffPreferences ( p ) ; }
Source:
private void setListIdHeader ( ) throws com.google.gerrit.common.errors.EmailException { setVHeader ( "Mailing-List" , "list $email.listId" ) ; setVHeader ( "List-Id" , "<$email.listId.replace('@', '.')>" ) ; if ( ( getSettingsUrl ( ) ) != null ) { setVHeader ( "List-Unsubscribe" , "<$email.settingsUrl>" ) ; } }

Target:
private void setListIdHeader ( ) throws com.google.gerrit.common.errors.EmailException { setVHeader ( "List-Id" , "<$email.listId.replace('@', '.')>" ) ; if ( ( getSettingsUrl ( ) ) != null ) { setVHeader ( "List-Unsubscribe" , "<$email.settingsUrl>" ) ; } }
Source:
public com.google.gerrit.acceptance.PushOneCommit.Result to ( org.eclipse.jgit.api.Git git , java.lang.String ref ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.GitUtil.add ( git , fileName , content ) ; return execute ( git , ref ) ; }

Target:
public com.google.gerrit.acceptance.PushOneCommit.Result to ( java.lang.String ref ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.GitUtil.add ( git , fileName , content ) ; return execute ( ref ) ; }
Source:
private com.google.gerrit.server.patch.PatchList listFor ( final com.google.gerrit.server.patch.PatchListKey key ) throws com.google.gerrit.server.patch.PatchListNotAvailableException { return patchListCache.get ( key ) ; }

Target:
private com.google.gerrit.server.patch.PatchList listFor ( final com.google.gerrit.server.patch.PatchListKey key ) throws com.google.gerrit.server.patch.PatchListNotAvailableException { return patchListCache.get ( key , project ) ; }
Source:
void onFollowUp ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( ( followUpAction ) == null ) { followUpAction = new com.google.gerrit.client.change.FollowUpAction ( followUp , project , branch , key ) ; } followUpAction.show ( ) ; }

Target:
void onFollowUp ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( ( followUpAction ) == null ) { followUpAction = new com.google.gerrit.client.change.FollowUpAction ( followUp , project , branch , topic , key ) ; } followUpAction.show ( ) ; }
Source:
protected void onLoad ( ) { super . onLoad ( ) ; refresh ( ) ; }

Target:
protected void onLoad ( ) { super . onLoad ( ) ; display ( ) ; refresh ( ) ; }
Source:
protected com.google.gerrit.server.notedb.AbstractChangeNotes.LoadHandle openHandle ( org.eclipse.jgit.lib.Repository repo ) throws java.io.IOException { return com.google.gerrit.server.notedb.AbstractChangeNotes.LoadHandle.create ( com.google.gerrit.server.notedb.ChangeNotesCommit.newRevWalk ( repo ) , readRef ( repo ) ) ; }

Target:
protected com.google.gerrit.server.notedb.AbstractChangeNotes.LoadHandle openHandle ( org.eclipse.jgit.lib.Repository repo , org.eclipse.jgit.lib.ObjectId id ) { return com.google.gerrit.server.notedb.AbstractChangeNotes.LoadHandle.create ( com.google.gerrit.server.notedb.ChangeNotesCommit.newRevWalk ( repo ) , id ) ; }
Source:
public java.util.List < com.google.gerrit.server.patch.PatchListEntry > getPatches ( ) { return java.util.Collections.unmodifiableList ( java.util.Arrays.asList ( patches ) ) ; }

Target:
public java.util.List < com.google.gerrit.server.patch.PatchListEntry > getPatches ( ) { return java.util.Collections.unmodifiableList ( patches ) ; }
Source:
private static void export ( org.spearce.jgit.lib.RepositoryConfig config , java.sql.ResultSet rs ) throws java.sql.SQLException { com.google.gerrit.pgm.ConvertSystemConfig.sshd ( config , rs ) ; com.google.gerrit.pgm.ConvertSystemConfig.contactstore ( config , rs ) ; }

Target:
private static void export ( org.spearce.jgit.lib.RepositoryConfig config , java.sql.ResultSet rs ) throws java.sql.SQLException { com.google.gerrit.pgm.ConvertSystemConfig.sshd ( config , rs ) ; com.google.gerrit.pgm.ConvertSystemConfig.contactstore ( config , rs ) ; com.google.gerrit.pgm.ConvertSystemConfig.user ( config , rs ) ; }
Source:
public java.lang.String toString ( ) { return ( "AccessSection[" + ( getRefPattern ( ) ) ) + "]" ; }

Target:
public java.lang.String toString ( ) { return ( "AccessSection[" + ( getName ( ) ) ) + "]" ; }
Source:
public com.google.gerrit.extensions.api.plugins.Plugins.ListRequest all ( boolean all ) { this . all = all ; return this ; }

Target:
public com.google.gerrit.extensions.api.plugins.Plugins.ListRequest all ( ) { this . all = true ; return this ; }
Source:
void projectDetail ( com.google.gerrit.client.reviewdb.Project.Id projectId , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.admin.ProjectDetail > callback ) ;

Target:
void projectDetail ( com.google.gerrit.client.reviewdb.Project.NameKey projectName , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.admin.ProjectDetail > callback ) ;
Source:
com.google.gerrit.testutil.InMemoryDatabase getInMemoryDatabase ( com.google.gerrit.server.schema.SchemaCreator schemaCreator , com.google.gerrit.server.index.SingleVersionModule.SingleVersionListener singleVersionListener ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.testutil.InMemoryDatabase ( schemaCreator , singleVersionListener ) ; }

Target:
com.google.gerrit.testutil.InMemoryDatabase getInMemoryDatabase ( com.google.gerrit.server.schema.SchemaCreator schemaCreator ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.testutil.InMemoryDatabase ( schemaCreator ) ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.extensions.api.GerritApi.class ) . to ( com.google.gerrit.server.api.GerritApiImpl.class ) ; install ( new com.google.gerrit.server.api.Module ( ) ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.extensions.api.GerritApi.class ) . to ( com.google.gerrit.server.api.GerritApiImpl.class ) ; install ( new com.google.gerrit.server.api.Module ( ) ) ; install ( new com.google.gerrit.server.api.Module ( ) ) ; }
Source:
public synchronized int getCount ( ) { return count ; }

Target:
public int getCount ( ) { synchronized ( this ) { return count ; } }
Source:
public java.util.Optional < java.lang.String > permissionName ( ) { return java.util.Optional.ofNullable ( name ) ; }

Target:
public java.lang.String permissionName ( ) { return name ; }
Source:
private void error ( com.google.gerrit.server.git.ValidationError error ) { if ( ( validationErrors ) == null ) { validationErrors = new java.util.ArrayList < > ( 4 ) ; } validationErrors.add ( error ) ; }

Target:
public void error ( com.google.gerrit.server.git.ValidationError error ) { if ( ( validationErrors ) == null ) { validationErrors = new java.util.ArrayList < > ( 4 ) ; } validationErrors.add ( error ) ; }
Source:
protected void onExit ( final int rc ) { exit.onExit ( rc ) ; cleanup.run ( ) ; }

Target:
protected void onExit ( final int rc ) { exit.onExit ( rc ) ; if ( ( cleanup ) != null ) { cleanup.run ( ) ; } }
Source:
public com.google.gerrit.server.permissions.PermissionBackend.ForChange user ( com.google.gerrit.server.CurrentUser user ) { return getUser ( ) . equals ( user ) ? this : forUser ( user ) . asForChange ( cd ) ; }

Target:
public com.google.gerrit.server.permissions.PermissionBackend.ForChange user ( com.google.gerrit.server.CurrentUser user ) { return getUser ( ) . equals ( user ) ? this : forUser ( user ) . asForChange ( cd , db ) ; }
Source:
public com.google.gerrit.server.IdentifiedUser runAs ( com.google.gerrit.reviewdb.client.Account.Id id , com.google.gerrit.server.CurrentUser caller ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , realm , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , remotePeerProvider , id , caller ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( com.google.gerrit.reviewdb.client.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , realm , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , remotePeerProvider , id , null ) ; }
Source:
public java.util.List < com.google.gerrit.extensions.common.SuggestedReviewerInfo > apply ( com.google.gerrit.server.project.ProjectResource rsrc ) throws com.google.gerrit.extensions.restapi.BadRequestException , com.google.gwtorm.server.OrmException , java.io.IOException { return reviewersUtil.suggestReviewers ( this , rsrc.getControl ( ) , getVisibility ( rsrc ) ) ; }

Target:
public java.util.List < com.google.gerrit.extensions.common.SuggestedReviewerInfo > apply ( com.google.gerrit.server.project.ProjectResource rsrc ) throws com.google.gerrit.extensions.restapi.BadRequestException , com.google.gwtorm.server.OrmException , java.io.IOException { return reviewersUtil.suggestReviewers ( this , rsrc.getControl ( ) , getVisibility ( rsrc ) , true ) ; }
Source:
public com.google.gerrit.server.CurrentUser getCurrentUser ( ) { return session.getCurrentUser ( ) ; }

Target:
public com.google.gerrit.server.CurrentUser getCurrentUser ( ) { return session.get ( ) . getCurrentUser ( ) ; }
Source:
public void loadGerritConfig ( final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.data.GerritConfig > callback ) { callback.onSuccess ( com.google.gerrit.server.SystemInfoServiceImpl.getGerritConfig ( ) ) ; }

Target:
public void loadGerritConfig ( final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.data.GerritConfig > callback ) { callback.onSuccess ( config ) ; }
Source:
public void delete ( int id ) throws java.io.IOException ;

Target:
public void delete ( com.google.gerrit.reviewdb.client.Change.Id id ) throws java.io.IOException ;
Source:
public java.lang.String getText ( ) { return null ; }

Target:
public java.lang.String getName ( ) { return null ; }
Source:
public com.google.gerrit.server.IdentifiedUser create ( com.google.inject.Provider < com.google.gerrit.reviewdb.server.ReviewDb > db , com.google.gerrit.reviewdb.client.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , anonymousCowardName , canonicalUrl , realm , accountCache , groupBackend , null , db , id ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( com.google.inject.Provider < com.google.gerrit.reviewdb.server.ReviewDb > db , com.google.gerrit.reviewdb.client.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , anonymousCowardName , canonicalUrl , realm , accountCache , groupBackend , null , db , id , null ) ; }
Source:
public static java.lang.String cleanupHashtag ( java.lang.String hashtag ) { hashtag = com.google.gerrit.server.change.HashtagsUtil.LEADER.trimLeadingFrom ( hashtag ) ; hashtag = com.google.common.base.CharMatcher.WHITESPACE.trimTrailingFrom ( hashtag ) ; return hashtag.toLowerCase ( ) ; }

Target:
public static java.lang.String cleanupHashtag ( java.lang.String hashtag ) { hashtag = com.google.gerrit.server.change.HashtagsUtil.LEADER.trimLeadingFrom ( hashtag ) ; hashtag = com.google.common.base.CharMatcher.WHITESPACE.trimTrailingFrom ( hashtag ) ; return hashtag ; }
Source:
private void assertMessage ( java.lang.String expected , java.lang.String actual ) { org.junit.Assert.assertEquals ( ( "Patch Set 1:\n\n" + expected ) , actual ) ; }

Target:
private void assertMessage ( java.lang.String expected , java.lang.String actual ) { com.google.common.truth.Truth.assertThat ( actual ) . isEqualTo ( ( "Patch Set 1:\n\n" + expected ) ) ; }
Source:
public final native int getFrom ( ) ;

Target:
public final native int to ( ) ;
Source:
public synchronized java.io.PrintWriter getWriter ( ) { com.google.common.base.Preconditions.checkState ( ( ( outputStream ) == null ) , "getOutputStream() already called" ) ; if ( ( writer ) == null ) { writer = new java.io.PrintWriter ( new java.io.OutputStreamWriter ( actualBody , com.google.common.base.Charsets.UTF_8 ) ) ; } return writer ; }

Target:
public synchronized java.io.PrintWriter getWriter ( ) { com.google.common.base.Preconditions.checkState ( ( ( outputStream ) == null ) , "getOutputStream() already called" ) ; if ( ( writer ) == null ) { writer = new java.io.PrintWriter ( actualBody ) ; } return writer ; }
Source:
public static void permissions ( com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.projects.ProjectMap > callback ) { new com.google.gerrit.client.rpc.RestApi ( "/projects/" ) . addParameterRaw ( "type" , "PERMISSIONS" ) . addParameterTrue ( "all" ) . addParameterTrue ( "d" ) . get ( com.google.gerrit.client.rpc.NativeMap.copyKeysIntoChildren ( callback ) ) ; }

Target:
public static void permissions ( com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.projects.ProjectMap > callback ) { com.google.gerrit.client.projects.ProjectMap.projects ( ) . addParameterRaw ( "type" , "PERMISSIONS" ) . addParameterTrue ( "all" ) . addParameterTrue ( "d" ) . get ( com.google.gerrit.client.rpc.NativeMap.copyKeysIntoChildren ( callback ) ) ; }
Source:
private final native void setSideRaw ( java.lang.String side ) ;

Target:
public final native void line ( int n ) ;
Source:
public java.lang.String toString ( ) { return ( "CommandName[" + ( value ( ) ) ) + "]" ; }

Target:
public java.lang.String toString ( ) { return ( ( ( "@" + ( com.google.gerrit.server.ssh.CommandName.class . getName ( ) ) ) + "(value=" ) + ( value ( ) ) ) + ")" ; }
Source:
public com.google.gitiles.CommitSoyData setRevWalk ( org.eclipse.jgit.revwalk.RevWalk walk ) { this . walk = com.google.common.base.Preconditions.checkNotNull ( walk , "walk" ) ; return this ; }

Target:
com.google.gitiles.CommitSoyData setRevWalk ( @ javax.annotation.Nullable org.eclipse.jgit.revwalk.RevWalk walk ) { this . walk = walk ; return this ; }
Source:
public com.google.gerrit.server.project.ChangeControl getUserControl ( ) { return getControl ( ) . forUser ( user ) ; }

Target:
public com.google.gerrit.reviewdb.client.Change getChange ( ) { return change.getChange ( ) ; }
Source:
public void testCreateProjectWithNonExistingOwner_UnprocessableEntity ( ) throws java.lang.Exception { com.google.gerrit.extensions.api.projects.ProjectInput in = new com.google.gerrit.extensions.api.projects.ProjectInput ( ) ; in.name = "newProjectName" ; in.owners = java.util.Collections.singletonList ( "non-existing-group" ) ; assertCreateFails ( in , com.google.gerrit.extensions.restapi.UnprocessableEntityException.class ) ; }

Target:
public void testCreateProjectWithNonExistingOwner_UnprocessableEntity ( ) throws java.lang.Exception { com.google.gerrit.extensions.api.projects.ProjectInput in = new com.google.gerrit.extensions.api.projects.ProjectInput ( ) ; in.name = name ( "newProjectName" ) ; in.owners = java.util.Collections.singletonList ( "non-existing-group" ) ; assertCreateFails ( in , com.google.gerrit.extensions.restapi.UnprocessableEntityException.class ) ; }
Source:
void delete ( org.apache.lucene.index.Term term ) throws java.io.IOException { writer.deleteDocuments ( term ) ; commit ( ) ; }

Target:
void delete ( org.apache.lucene.index.Term term ) throws java.io.IOException { writer.deleteDocuments ( term ) ; }
Source:
public boolean canAddMember ( com.google.gerrit.reviewdb.client.Account.Id id ) { return isOwner ( ) ; }

Target:
public boolean canAddMember ( ) { return isOwner ( ) ; }
Source:
protected void configure ( ) { listener ( ) . to ( CachePool.Lifecycle.class ) ; listener ( ) . to ( com.google.gerrit.server.config.GerritGlobalModule.VelocityLifecycle.class ) ; }

Target:
protected void configure ( ) { listener ( ) . to ( CachePool.Lifecycle.class ) ; }
Source:
public int getId ( ) { return changeId.get ( ) ; }

Target:
public int getChangeId ( ) { return changeId.get ( ) ; }
Source:
public void show ( ) { com.google.gwtexpui.user.client.UserAgent.fireDialogVisible ( true ) ; super . show ( ) ; }

Target:
public void show ( ) { com.google.gwtexpui.user.client.UserAgent.fireDialogVisible ( this , true ) ; super . show ( ) ; }
Source:
public void testDefaultIsMIXED ( ) { assertTrue ( ( ( create ( ) ) instanceof com.google.gerrit.server.mail.FromAddressGeneratorProvider.PatternGen ) ) ; }

Target:
public void testDefaultIsMIXED ( ) { org.junit.Assert.assertTrue ( ( ( create ( ) ) instanceof com.google.gerrit.server.mail.FromAddressGeneratorProvider.PatternGen ) ) ; }
Source:
protected void preDisplay ( final com.google.gerrit.common.data.ProjectList result ) { createProjectLinkPanel.setVisible ( result.canCreateProject ( ) ) ; projects.display ( result.getProjects ( ) ) ; projects.finishDisplay ( ) ; }

Target:
protected void preDisplay ( final com.google.gerrit.common.data.ProjectList result ) { projects.display ( result.getProjects ( ) ) ; projects.finishDisplay ( ) ; }
Source:
public static void unmarkPrivate ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( "private.delete" ) . post ( com.google.gerrit.client.changes.ChangeApi.PrivateInput.create ( ) , cb ) ; }

Target:
public static void unmarkPrivate ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gerrit.client.changes.ChangeApi.change ( project , id ) . view ( "private.delete" ) . post ( com.google.gerrit.client.changes.ChangeApi.PrivateInput.create ( ) , cb ) ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.reviewdb.SystemConfig.class ) . toProvider ( com.google.gerrit.server.config.SystemConfigProvider.class ) . in ( com.google.inject.Scopes.SINGLETON ) ; bind ( com.google.gerrit.server.config.AuthConfig.class ) . in ( com.google.inject.Scopes.SINGLETON ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.server.config.AuthConfig.class ) . in ( com.google.inject.Scopes.SINGLETON ) ; }
Source:
void onRestore ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( ( restoreAction ) == null ) { restoreAction = new com.google.gerrit.client.change.RestoreAction ( restore , changeId ) ; } restoreAction.show ( ) ; }

Target:
void onRestore ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( ( restoreAction ) == null ) { restoreAction = new com.google.gerrit.client.change.RestoreAction ( restore , project , changeId ) ; } restoreAction.show ( ) ; }
Source:
public static com.google.gerrit.client.rpc.RestApi hashtags ( int changeId ) { return com.google.gerrit.client.changes.ChangeApi.change ( changeId ) . view ( "hashtags" ) ; }

Target:
public static com.google.gerrit.client.rpc.RestApi hashtags ( @ com.google.gerrit.common.Nullable java.lang.String project , int changeId ) { return com.google.gerrit.client.changes.ChangeApi.change ( project , changeId ) . view ( "hashtags" ) ; }
Source:
protected void tearDown ( ) throws java.lang.Exception { com.google.gerrit.testutil.InMemoryDatabase.drop ( db ) ; super . tearDown ( ) ; }

Target:
public void tearDown ( ) throws java.lang.Exception { com.google.gerrit.testutil.InMemoryDatabase.drop ( db ) ; }
Source:
public com.google.gerrit.server.patch.PatchList load ( final com.google.gerrit.server.patch.PatchListKey key ) throws com.google.gerrit.server.patch.PatchListNotAvailableException , java.io.IOException { final org.eclipse.jgit.lib.Repository repo = repoManager.openRepository ( key.projectKey ) ; try { return readPatchList ( key , repo ) ; } finally { repo.close ( ) ; } }

Target:
public com.google.gerrit.server.patch.PatchList load ( final com.google.gerrit.server.patch.PatchListKey key ) throws com.google.gerrit.server.patch.PatchListNotAvailableException , java.io.IOException { try ( org.eclipse.jgit.lib.Repository repo = repoManager.openRepository ( key.projectKey ) ) { return readPatchList ( key , repo ) ; } }
Source:
private void addExternalId ( java.lang.String scheme , java.lang.String id , java.lang.String email ) throws java.lang.Exception { externalIdsUpdateFactory.create ( ) . insert ( db , com.google.gerrit.server.account.externalids.ExternalId.createWithEmail ( scheme , id , user.getAccountId ( ) , email ) ) ; reloadUser ( ) ; }

Target:
private void addExternalId ( java.lang.String scheme , java.lang.String id , java.lang.String email ) throws java.lang.Exception { externalIdsUpdateFactory.create ( ) . insert ( com.google.gerrit.server.account.externalids.ExternalId.createWithEmail ( scheme , id , user.getAccountId ( ) , email ) ) ; reloadUser ( ) ; }
Source:
private int POST ( java.lang.String endPoint ) throws java.io.IOException { com.google.gerrit.acceptance.RestResponse r = adminSession.post ( endPoint ) ; r.consume ( ) ; return r.getStatusCode ( ) ; }

Target:
private com.google.gerrit.acceptance.RestResponse POST ( java.lang.String endPoint ) throws java.io.IOException { com.google.gerrit.acceptance.RestResponse r = adminSession.post ( endPoint ) ; r.consume ( ) ; return r ; }
Source:
public com.google.gerrit.server.query.change.ChangeData getChange ( ) throws com.google.gwtorm.server.OrmException { return com.google.common.collect.Iterables.getOnlyElement ( queryProvider.get ( ) . byKeyPrefix ( commit.getChangeId ( ) ) ) ; }

Target:
public com.google.gerrit.server.query.change.ChangeData getChange ( ) throws com.google.gwtorm.server.OrmException { return com.google.common.collect.Iterables.getOnlyElement ( queryProvider.get ( ) . byKeyPrefix ( changeId ) ) ; }
Source:
public void hashWithoutHashtag ( ) throws java.lang.Exception { java.lang.String commitMessage = "Subject\n\n# Text" ; com.google.common.truth.Truth.assertThat ( ( ( java.lang.Iterable < ? > ) ( com.google.gerrit.server.change.HashtagsUtil.extractTags ( commitMessage ) ) ) ) . isEmpty ( ) ; }

Target:
public void hashWithoutHashtag ( ) throws java.lang.Exception { java.lang.String commitMessage = "Subject\n\n# Text" ; com.google.common.truth.Truth.assertThat ( com.google.gerrit.server.change.HashtagsUtil.extractTags ( commitMessage ) ) . isEmpty ( ) ; }
Source:
public static final void uploadImage ( java.lang.String imageData ) { com.googlesource.gerrit.plugins.imagare.client.ImageUploader.uploadImage ( "All-Projects" , imageData , null ) ; }

Target:
public static final void uploadImage ( java.lang.String imageData ) { com.googlesource.gerrit.plugins.imagare.client.ImageUploader.uploadImage ( imageData , null ) ; }
Source:
public void remove ( com.google.gerrit.common.data.AccessSection section ) { if ( section != null ) { accessSections.remove ( section.getRefPattern ( ) ) ; } }

Target:
public void remove ( com.google.gerrit.common.data.AccessSection section ) { if ( section != null ) { accessSections.remove ( section.getName ( ) ) ; } }
Source:
public void onSuccess ( java.lang.String result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( psId ) ) ; }

Target:
public void onSuccess ( java.lang.String result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( project , psId ) ) ; }