auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.util.Map < java.lang.String , org.eclipse.jgit.lib.Ref > filter ( java.util.Map < java.lang.String , org.eclipse.jgit.lib.Ref > refs , org.eclipse.jgit.lib.Repository repo , com.google.gerrit.server.permissions.PermissionBackend.RefFilterOptions opts ) throws com.google.gerrit.server.permissions.PermissionBackendException { return refFilterFactory.create ( getUser ( ) , getProjectState ( ) ) . filter ( refs , repo , opts ) ; }

Target:
public java.util.Map < java.lang.String , org.eclipse.jgit.lib.Ref > filter ( java.util.Map < java.lang.String , org.eclipse.jgit.lib.Ref > refs , org.eclipse.jgit.lib.Repository repo , com.google.gerrit.server.permissions.PermissionBackend.RefFilterOptions opts ) throws com.google.gerrit.server.permissions.PermissionBackendException { return refFilterFactory.create ( this ) . filter ( refs , repo , opts ) ; }
Source:
public void init ( ) throws java.io.IOException { repoFolder = java.io.File.createTempFile ( "Git" , "" ) ; repoFolder.delete ( ) ; repo = com.googlesource.gerrit.plugins.uploadvalidator.TestUtils.createNewRepository ( repoFolder ) ; initValidator ( ) ; }

Target:
public void init ( ) throws java.io.IOException { repoFolder = java.io.File.createTempFile ( "Git" , "" ) ; repoFolder.delete ( ) ; repo = com.googlesource.gerrit.plugins.uploadvalidator.TestUtils.createNewRepository ( repoFolder ) ; }
Source:
public void remove ( com.google.gerrit.common.data.AccessSection section ) { accessSections.remove ( section.getRefPattern ( ) ) ; }

Target:
public void remove ( com.google.gerrit.common.data.AccessSection section ) { if ( section != null ) { accessSections.remove ( section.getRefPattern ( ) ) ; } }
Source:
public void run ( ) { int w = cm.getGutterElement ( ) . getOffsetWidth ( ) ; getElement ( ) . getStyle ( ) . setPaddingLeft ( w , Unit.PX ) ; setVisible ( true ) ; }

Target:
public void run ( ) { int w = cm.getGutterElement ( ) . getOffsetWidth ( ) ; getElement ( ) . getStyle ( ) . setPaddingLeft ( w , Unit.PX ) ; }
Source:
public void stop ( ) { if ( ( manager ) != null ) { manager.stop ( ) ; sysInjector = null ; sshInjector = null ; manager = null ; } }

Target:
public void stop ( ) { if ( ( manager ) != null ) { manager.stop ( ) ; manager = null ; sysInjector = null ; sshInjector = null ; } }
Source:
public java.lang.String format ( com.googlesource.gerrit.plugins.xdocs.ConfigSection cfg , java.lang.String raw ) throws java.io.IOException { return Asciidoctor.Factory.create ( com.googlesource.gerrit.plugins.xdocs.formatter.AsciidoctorFormatter.class . getClassLoader ( ) ) . convert ( raw , new java.util.HashMap < java.lang.String , java.lang.Object > ( ) ) ; }

Target:
public java.lang.String format ( java.lang.String projectName , com.googlesource.gerrit.plugins.xdocs.ConfigSection cfg , java.lang.String raw ) throws java.io.IOException { return Asciidoctor.Factory.create ( com.googlesource.gerrit.plugins.xdocs.formatter.AsciidoctorFormatter.class . getClassLoader ( ) ) . convert ( raw , new java.util.HashMap < java.lang.String , java.lang.Object > ( ) ) ; }
Source:
public void deleteAll ( ) throws java.io.IOException { openIndex.deleteAll ( ) ; closedIndex.deleteAll ( ) ; }

Target:
public void run ( ) { openIndex.close ( ) ; }
Source:
public void stop ( ) { executor.shutdown ( ) ; executor.unregisterWorkQueue ( ) ; executor = null ; }

Target:
public void stop ( ) { executor.shutdown ( ) ; executor = null ; }
Source:
public synchronized com.google.gerrit.metrics.Timer0 newTimer ( java.lang.String name , com.google.gerrit.metrics.Description desc ) { com.google.gerrit.metrics.dropwizard.DropWizardMetricMaker.checkTimerDescription ( desc ) ; define ( name , desc ) ; return newTimerImpl ( name ) ; }

Target:
public synchronized com.google.gerrit.metrics.Timer0 newTimer ( java.lang.String name , com.google.gerrit.metrics.Description desc ) { com.google.gerrit.metrics.dropwizard.DropWizardMetricMaker.checkTimerDescription ( name , desc ) ; define ( name , desc ) ; return newTimerImpl ( name ) ; }
Source:
public void index ( com.google.gerrit.reviewdb.client.Account.Id id ) throws java.io.IOException { for ( com.google.gerrit.server.index.Index < ? , com.google.gerrit.server.account.AccountState > i : indexes.getWriteIndexes ( ) ) { i.replace ( byIdCache.get ( id ) ) ; } }

Target:
public void index ( com.google.gerrit.reviewdb.client.Account.Id id ) throws java.io.IOException { for ( com.google.gerrit.server.index.Index < ? , com.google.gerrit.server.account.AccountState > i : getWriteIndexes ( ) ) { i.replace ( byIdCache.get ( id ) ) ; } }
Source:
void onAutoHideDiffTableHeader ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > e ) { prefs.autoHideDiffTableHeader ( ( ! ( e.getValue ( ) ) ) ) ; view.setAutoHideDiffHeader ( ( ! ( e.getValue ( ) ) ) ) ; view.resizeCodeMirror ( ) ; }

Target:
void onAutoHideDiffTableHeader ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > e ) { prefs.autoHideDiffTableHeader ( ( ! ( e.getValue ( ) ) ) ) ; view.setAutoHideDiffHeader ( ( ! ( e.getValue ( ) ) ) ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { gotoSibling ( ( - 1 ) ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { gotoSibling ( 1 ) ; }
Source:
public abstract java.lang.String getCommand ( java.lang.String url ) ;

Target:
public abstract java.lang.String getCommand ( java.lang.String url , java.lang.String ref ) ;
Source:
private void assertMyMetaData ( int expectedValue , java.lang.String ... expectedLog ) throws java.lang.Exception { com.google.gerrit.server.git.VersionedMetaDataTest.MyMetaData d = load ( expectedValue ) ; com.google.common.truth.Truth.assertThat ( log ( d ) ) . containsExactlyElementsIn ( java.util.Arrays.asList ( expectedLog ) ) . inOrder ( ) ; }

Target:
private void assertMyMetaData ( java.lang.String ref , int expectedValue , java.lang.String ... expectedLog ) throws java.lang.Exception { com.google.gerrit.server.git.VersionedMetaDataTest.MyMetaData d = load ( ref , expectedValue ) ; com.google.common.truth.Truth.assertThat ( log ( d ) ) . containsExactlyElementsIn ( java.util.Arrays.asList ( expectedLog ) ) . inOrder ( ) ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.httpd.GerritOptions.class ) . toInstance ( new com.google.gerrit.httpd.GerritOptions ( false ) ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.httpd.GerritOptions.class ) . toInstance ( new com.google.gerrit.httpd.GerritOptions ( false , false ) ) ; }
Source:
public boolean apply ( com.google.gerrit.server.project.ProjectState input ) { return input.getProject ( ) . getNameKey ( ) . equals ( rsrc.getNameKey ( ) ) ; }

Target:
public boolean apply ( com.google.gerrit.server.project.ProjectState input ) { return input.getProject ( ) . getNameKey ( ) . equals ( ctl.getProject ( ) . getNameKey ( ) ) ; }
Source:
private static void addFooter ( java.lang.StringBuilder sb , org.eclipse.jgit.revwalk.FooterKey footer , java.lang.Object value ) { com.google.gerrit.server.notedb.ChangeUpdate.addFooter ( sb , footer ) . append ( value ) . append ( '\n' ) ; }

Target:
private static void addFooter ( java.lang.StringBuilder sb , org.eclipse.jgit.revwalk.FooterKey footer , java.lang.Object ... values ) { com.google.gerrit.server.notedb.ChangeUpdate.addFooter ( sb , footer ) ; for ( java.lang.Object value : values ) { sb.append ( value ) ; } sb.append ( '\n' ) ; }
Source:
boolean isOk ( ) { return problems.isEmpty ( ) ; }

Target:
public boolean isOk ( ) { return problems.isEmpty ( ) ; }
Source:
public static com.google.gerrit.client.diff.DiffApi diff ( com.google.gerrit.reviewdb.client.PatchSet.Id id , java.lang.String path ) { return new com.google.gerrit.client.diff.DiffApi ( com.google.gerrit.client.changes.ChangeApi.revision ( id ) . view ( "files" ) . id ( path ) . view ( "diff" ) ) ; }

Target:
public static com.google.gerrit.client.diff.DiffApi diff ( @ com.google.gerrit.common.Nullable java.lang.String project , com.google.gerrit.reviewdb.client.PatchSet.Id id , java.lang.String path ) { return new com.google.gerrit.client.diff.DiffApi ( com.google.gerrit.client.changes.ChangeApi.revision ( project , id ) . view ( "files" ) . id ( path ) . view ( "diff" ) ) ; }
Source:
public static java.lang.String encode ( java.lang.String component ) { try { return java.net.URLEncoder.encode ( component , "UTF-8" ) ; } catch ( java.io.UnsupportedEncodingException e ) { throw new java.lang.RuntimeException ( "JVM must support UTF-8" , e ) ; } }

Target:
public static java.lang.String encode ( java.lang.String component ) { if ( component != null ) { try { return java.net.URLEncoder.encode ( component , "UTF-8" ) ; } catch ( java.io.UnsupportedEncodingException e ) { throw new java.lang.RuntimeException ( "JVM must support UTF-8" , e ) ; } } return null ; }
Source:
public void onSend ( ) { Util.MANAGE_SVC.restoreChange ( getPatchSetId ( ) , getMessageText ( ) , createCallback ( ) ) ; }

Target:
public void onSend ( ) { Util.MANAGE_SVC.restoreChange ( patchSet.getId ( ) , getMessageText ( ) , createCallback ( ) ) ; }
Source:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) { com.google.gerrit.client.Gerrit.display ( PageLinks.MINE , true ) ; } else { com.google.gerrit.client.Gerrit.display ( PageLinks.ALL_OPEN , true ) ; } }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) { com.google.gerrit.client.Gerrit.display ( PageLinks.MINE ) ; } else { com.google.gerrit.client.Gerrit.display ( PageLinks.ALL_OPEN ) ; } }
Source:
public void testDiffDeserializer ( ) { assertNotNull ( "edit deserializer" , new org.eclipse.jgit.diff.EditDeserializer ( ) ) ; }

Target:
public void testDiffDeserializer ( ) { org.junit.Assert.assertNotNull ( "edit deserializer" , new org.eclipse.jgit.diff.EditDeserializer ( ) ) ; }
Source:
private com.google.gerrit.server.index.IndexedChangeQuery query ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p , int limit ) throws com.google.gerrit.server.query.QueryParseException { return new com.google.gerrit.server.index.IndexedChangeQuery ( null , index , p , limit ) ; }

Target:
private com.google.gerrit.server.index.IndexedChangeQuery query ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p , int limit ) throws com.google.gerrit.server.query.QueryParseException { return new com.google.gerrit.server.index.IndexedChangeQuery ( index , p , limit ) ; }
Source:
public static com.google.gerrit.client.rpc.RestApi reviewer ( int id , int reviewer ) { return com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( "reviewers" ) . id ( reviewer ) ; }

Target:
public static com.google.gerrit.client.rpc.RestApi reviewer ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , int reviewer ) { return com.google.gerrit.client.changes.ChangeApi.change ( project , id ) . view ( "reviewers" ) . id ( reviewer ) ; }
Source:
public boolean canSee ( final com.google.gerrit.reviewdb.client.Account otherUser ) { return canSee ( otherUser.getId ( ) ) ; }

Target:
public boolean canSee ( com.google.gerrit.reviewdb.client.Account otherUser ) { return canSee ( otherUser.getId ( ) ) ; }
Source:
public final java.io.File getCommentPath ( java.lang.String fileName ) { return new java.io.File ( templatesPath.getPath ( ) , fileName ) ; BRANCH ( f1d0f4 ) ; com.criteo.gerrit.plugins.automerge.Format all ; files ( ( ( ( google ) - ( java ) ) - ( format ) ) ) ; }

Target:
public final java.io.File getCommentPath ( java.lang.String fileName ) { return new java.io.File ( templatesPath.getPath ( ) , fileName ) ; }
Source:
public Change.Id apply ( java.lang.String changeId ) { return Change.Id.parse ( changeId ) ; }

Target:
public Change.Id apply ( com.google.gerrit.server.query.change.ChangeData cd ) { return cd.getId ( ) ; }
Source:
public com.google.gerrit.server.project.ChangeControl validateFor ( final com.google.gerrit.reviewdb.Change change ) throws com.google.gerrit.server.project.NoSuchChangeException , com.google.gwtorm.client.OrmException { return com.google.gerrit.server.project.ChangeControl.Factory.validate ( controlFor ( change ) , db.get ( ) ) ; }

Target:
public com.google.gerrit.server.project.ChangeControl validateFor ( final com.google.gerrit.reviewdb.client.Change change ) throws com.google.gerrit.server.project.NoSuchChangeException , com.google.gwtorm.server.OrmException { return com.google.gerrit.server.project.ChangeControl.Factory.validate ( controlFor ( change ) , db.get ( ) ) ; }
Source:
public static native void refresh ( ) ;

Target:
public final native void refresh ( ) ;
Source:
public final native java.lang.String projectName ( ) ;

Target:
public final native java.lang.String path ( ) ;
Source:
public static java.lang.String toSideBySide ( com.google.gerrit.reviewdb.client.PatchSet.Id diffBase , com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName ) { return com.google.gerrit.client.Dispatcher.toPatch ( "" , diffBase , revision , fileName , null , 0 ) ; }

Target:
public static java.lang.String toPatch ( com.google.gerrit.reviewdb.client.PatchSet.Id diffBase , com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName ) { return com.google.gerrit.client.Dispatcher.toPatch ( "" , diffBase , revision , fileName , null , 0 ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo info ) { info.init ( ) ; addExtensionPoints ( info ) ; initCurrentRevision ( info ) ; loadConfigInfo ( info , base ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo info ) { info.init ( ) ; addExtensionPoints ( info , initCurrentRevision ( info ) ) ; loadConfigInfo ( info , base ) ; }
Source:
protected java.lang.String prettify ( java.lang.String html , java.lang.String type ) { return com.google.gerrit.prettify.client.ClientSideFormatter.go ( com.google.gerrit.prettify.client.ClientSideFormatter.prettify.getContext ( ) , html , type , diffPrefs.getTabSize ( ) ) ; }

Target:
protected java.lang.String prettify ( java.lang.String html , java.lang.String type ) { return com.google.gerrit.prettify.client.ClientSideFormatter.go ( com.google.gerrit.prettify.client.ClientSideFormatter.prettify.getContext ( ) , html , type ) ; }
Source:
public Change.Key getChangeKey ( ) { return new com.google.gerrit.reviewdb.client.Change.Key ( change.id ) ; }

Target:
public Change.Key getChangeKey ( ) { return new com.google.gerrit.reviewdb.client.Change.Key ( change.get ( ) . id ) ; }
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 ( com.google.gitiles.HostIndexServletTest.NAME ) ) ) ; servlet = com.google.gitiles.TestGitilesServlet.create ( repo ) ; }

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 ( com.google.gitiles.HostIndexServletTest.NAME ) ) ) ; servlet = com.google.gitiles.TestGitilesServlet.create ( repo ) ; }
Source:
private void removeChangeIdLock ( com.google.gerrit.reviewdb.client.Change.Id id ) { synchronized ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexChangeRestApiServlet.changeIdLocks ) { com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexChangeRestApiServlet.changeIdLocks.remove ( id ) ; } }

Target:
private void removeChangeIdLock ( com.google.gerrit.reviewdb.client.Change.Id id ) { synchronized ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexChangeRestApiServlet.changeIdLocks ) { if ( ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexChangeRestApiServlet.changeIdLocks.get ( id ) . get ( ) ) == 0 ) { com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexChangeRestApiServlet.changeIdLocks.remove ( id ) ; } } }
Source:
void onAdd ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { java.lang.String reviewer = suggestBox.getText ( ) ; if ( ! ( reviewer.isEmpty ( ) ) ) { addReviewer ( reviewer , false ) ; } }

Target:
void onAdd ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { addReviewer ( suggestBox.getText ( ) , false ) ; }
Source:
public static com.google.gitiles.FakeHttpServletRequest newRequest ( ) { return new com.google.gitiles.FakeHttpServletRequest ( com.google.gitiles.TestGitilesUrls.URLS.getHostName ( null ) , 80 , "" , com.google.gitiles.FakeHttpServletRequest.SERVLET_PATH , "" ) ; }

Target:
public static com.google.gitiles.FakeHttpServletRequest newRequest ( ) { return new com.google.gitiles.FakeHttpServletRequest ( com.google.gitiles.TestGitilesUrls.URLS.getHostName ( null ) , 80 , "" , com.google.gitiles.FakeHttpServletRequest.SERVLET_PATH ) ; }
Source:
private static java.lang.String getAbbrRevId ( org.eclipse.jgit.lib.Repository repo , org.eclipse.jgit.lib.ObjectId revId ) throws java.io.IOException { org.eclipse.jgit.lib.ObjectReader reader = repo.newObjectReader ( ) ; try { return reader.abbreviate ( revId ) . name ( ) ; } finally { reader.release ( ) ; } }

Target:
private static java.lang.String getAbbrRevId ( org.eclipse.jgit.lib.Repository repo , org.eclipse.jgit.lib.ObjectId revId ) throws java.io.IOException { try ( org.eclipse.jgit.lib.ObjectReader reader = repo.newObjectReader ( ) ) { return reader.abbreviate ( revId ) . name ( ) ; } }
Source:
private boolean isCurrentIndexVersionLatest ( ) { return ( ( reindexer ) == null ) || ( ( reindexer.getVersion ( ) ) <= ( indexes.getSearchIndex ( ) . getSchema ( ) . getVersion ( ) ) ) ; }

Target:
private boolean isCurrentIndexVersionLatest ( ) { return ( ( reindexer ) == null ) || ( ( reindexer.getVersion ( ) ) == ( indexes.getSearchIndex ( ) . getSchema ( ) . getVersion ( ) ) ) ; }
Source:
public boolean match ( com.google.gerrit.server.query.change.ChangeData cd ) throws com.google.gwtorm.server.OrmException { java.util.Set < com.google.gerrit.reviewdb.client.Account.Id > reviewedBy = cd.reviewedBy ( ) ; return ! ( reviewedBy.isEmpty ( ) ) ? reviewedBy.contains ( id ) : ( id ) == ( com.google.gerrit.server.query.change.IsReviewedPredicate.NOT_REVIEWED ) ; }

Target:
public boolean match ( com.google.gerrit.server.query.change.ChangeData cd ) throws com.google.gwtorm.server.OrmException { java.util.Set < com.google.gerrit.reviewdb.client.Account.Id > reviewedBy = cd.reviewedBy ( ) ; return ! ( reviewedBy.isEmpty ( ) ) ? reviewedBy.contains ( id ) : id.equals ( com.google.gerrit.server.query.change.IsReviewedPredicate.NOT_REVIEWED ) ; }
Source:
com.google.gerrit.server.index.account.AccountIndexer create ( com.google.gerrit.server.index.account.AccountIndexCollection indexes ) ;

Target:
void index ( com.google.gerrit.reviewdb.client.Account.Id id ) throws java.io.IOException ;
Source:
public void copy ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.project.ChangeControl ctl , com.google.gerrit.reviewdb.client.PatchSet.Id psId ) throws com.google.gwtorm.server.OrmException { db.patchSetApprovals ( ) . insert ( getForPatchSet ( db , ctl , psId ) ) ; }

Target:
public void copy ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.project.ChangeControl ctl , com.google.gerrit.reviewdb.client.PatchSet ps ) throws com.google.gwtorm.server.OrmException { db.patchSetApprovals ( ) . insert ( getForPatchSet ( db , ctl , ps ) ) ; }
Source:
public void setDeny ( boolean newDeny ) { action = com.google.gerrit.common.data.PermissionRule.Action.DENY ; }

Target:
public void setDeny ( ) { action = com.google.gerrit.common.data.PermissionRule.Action.DENY ; }
Source:
public com.google.gerrit.server.notedb.ChangeNotes createFromIndexedChange ( com.google.gerrit.reviewdb.client.Change change ) { return new com.google.gerrit.server.notedb.ChangeNotes ( args , change.getProject ( ) , change ) ; }

Target:
public com.google.gerrit.server.notedb.ChangeNotes createFromIndexedChange ( com.google.gerrit.reviewdb.client.Change change ) { return new com.google.gerrit.server.notedb.ChangeNotes ( args , change ) ; }
Source:
protected void submit ( java.lang.String changeId ) throws java.lang.Exception { submit ( changeId , HttpStatus.SC_OK ) ; }

Target:
protected void submit ( java.lang.String changeId ) throws java.lang.Exception { submit ( changeId , HttpStatus.SC_OK , null ) ; }
Source:
public void onSuccess ( com.google.gerrit.common.data.AgreementInfo result ) { if ( isAttached ( ) ) { mySigned = new java.util.HashSet < java.lang.String > ( result.accepted ) ; postRPC ( ) ; } }

Target:
public void onSuccess ( com.google.gerrit.common.data.AgreementInfo result ) { if ( isAttached ( ) ) { mySigned = new java.util.HashSet ( result.accepted ) ; postRPC ( ) ; } }
Source:
private java.lang.String url ( com.google.gerrit.client.info.ChangeInfo.RevisionInfo r ) { return com.google.gerrit.common.PageLinks.toChange ( changeId , r.id ( ) ) ; }

Target:
private java.lang.String url ( com.google.gerrit.client.info.ChangeInfo.RevisionInfo r ) { return com.google.gerrit.common.PageLinks.toChange ( project , changeId , r.id ( ) ) ; }
Source:
private void cancel ( final javax.servlet.http.HttpServletRequest req , final javax.servlet.http.HttpServletResponse rsp ) throws java.io.IOException { callback ( req , rsp ) ; }

Target:
private void cancel ( final javax.servlet.http.HttpServletRequest req , final javax.servlet.http.HttpServletResponse rsp ) throws java.io.IOException { callback ( false , req , rsp ) ; }
Source:
private java.lang.String format ( java.lang.String s ) { if ( ( s.length ( ) ) < ( permissionGroupWidth ) ) { return s ; } else { return s.substring ( 0 , permissionGroupWidth ) ; } }

Target:
private java.lang.String format ( java.lang.String s ) { if ( ( s.length ( ) ) < ( permissionGroupWidth ) ) { return s ; } return s.substring ( 0 , permissionGroupWidth ) ; }
Source:
private void setRefLogIdent ( final com.google.gerrit.reviewdb.PatchSetApproval submitAudit ) { if ( submitAudit != null ) { branchUpdate.setRefLogIdent ( identifiedUserFactory.create ( submitAudit.getAccountId ( ) ) . newRefLogIdent ( ) ) ; } }

Target:
private void setRefLogIdent ( final com.google.gerrit.reviewdb.client.PatchSetApproval submitAudit ) { if ( submitAudit != null ) { branchUpdate.setRefLogIdent ( identifiedUserFactory.create ( submitAudit.getAccountId ( ) ) . newRefLogIdent ( ) ) ; } }
Source:
private void assertProblems ( com.google.gerrit.gpg.testutil.TestKey tk , java.lang.String ... expected ) throws java.lang.Exception { com.google.gerrit.gpg.CheckResult result = new com.google.gerrit.gpg.PublicKeyChecker ( ) . check ( tk.getPublicKey ( ) ) ; org.junit.Assert.assertEquals ( java.util.Arrays.asList ( expected ) , result.getProblems ( ) ) ; }

Target:
private void assertProblems ( com.google.gerrit.gpg.testutil.TestKey tk , java.lang.String ... expected ) throws java.lang.Exception { assertProblems ( tk.getPublicKey ( ) , expected ) ; }
Source:
public void index ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { index.apply ( change , new com.google.gerrit.server.change.Index.Input ( ) ) ; } catch ( java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot index change" , e ) ; } }

Target:
public void index ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { index.apply ( change , new com.google.gerrit.server.change.Index.Input ( ) ) ; } catch ( java.io.IOException | com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot index change" , e ) ; } }
Source:
private java.lang.String pushTagForNewCommit ( com.google.gerrit.acceptance.rest.project.PushTagIT.TagType tagType , org.eclipse.jgit.transport.RemoteRefUpdate.Status expectedStatus ) throws java.lang.Exception { return pushTag ( tagType , null , true , expectedStatus ) ; }

Target:
private java.lang.String pushTagForNewCommit ( com.google.gerrit.acceptance.rest.project.PushTagIT.TagType tagType , org.eclipse.jgit.transport.RemoteRefUpdate.Status expectedStatus ) throws java.lang.Exception { return pushTag ( tagType , null , true , false , expectedStatus ) ; }
Source:
public java.util.List < com.google.gerrit.extensions.common.AccountInfo > getPastAssignees ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getPastAssignees.apply ( change ) . value ( ) ; } catch ( java.lang.Exception e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot get past assignees" , e ) ; } }

Target:
public java.util.List < com.google.gerrit.extensions.common.AccountInfo > getPastAssignees ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getPastAssignees.apply ( change ) . value ( ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot get past assignees" , e ) ; } }
Source:
public void mergeByOtherCcingSelfNotifyNone ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageChange ( com.google.gerrit.server.account.WatchConfig.NotifyType.ALL_COMMENTS , com.google.gerrit.server.account.WatchConfig.NotifyType.SUBMITTED_CHANGES ) ; setEmailStrategy ( other , EmailStrategy.CC_ON_OWN_COMMENTS ) ; merge ( sc.changeId , other , com.google.gerrit.extensions.api.changes.NotifyHandling.NONE ) ; assertThat ( sender ) . notSent ( ) ; }

Target:
public void mergeByOtherCcingSelfNotifyNone ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageChange ( ) ; setEmailStrategy ( other , EmailStrategy.CC_ON_OWN_COMMENTS ) ; merge ( sc.changeId , other , com.google.gerrit.extensions.api.changes.NotifyHandling.NONE ) ; assertThat ( sender ) . notSent ( ) ; }
Source:
public static void ensureAllPatchSetsLoaded ( java.lang.Iterable < com.google.gerrit.server.query.change.ChangeData > changes ) throws com.google.gwtorm.server.OrmException { for ( com.google.gerrit.server.query.change.ChangeData cd : changes ) { cd.patches ( ) ; } }

Target:
public static void ensureAllPatchSetsLoaded ( java.lang.Iterable < com.google.gerrit.server.query.change.ChangeData > changes ) throws com.google.gwtorm.server.OrmException { for ( com.google.gerrit.server.query.change.ChangeData cd : changes ) { cd.patchSets ( ) ; } }
Source:
protected void configure ( ) { bind ( ProjectControl.GenericFactory.class ) ; factory ( ProjectControl.AssistedFactory.class ) ; bind ( ChangeControl.GenericFactory.class ) ; bind ( ChangeControl.Factory.class ) ; }

Target:
protected void configure ( ) { bind ( ProjectControl.GenericFactory.class ) ; factory ( ProjectControl.AssistedFactory.class ) ; bind ( ChangeControl.Factory.class ) ; }
Source:
void resizeCodeMirror ( ) { if ( ! ( prefs.renderEntireFile ( ) ) ) { int height = getCodeMirrorHeight ( ) ; cmA.setHeight ( height ) ; cmB.setHeight ( height ) ; diffTable.sidePanel.adjustGutters ( cmB ) ; } }

Target:
void resizeCodeMirror ( ) { int height = getCodeMirrorHeight ( ) ; cmA.setHeight ( height ) ; cmB.setHeight ( height ) ; diffTable.sidePanel.adjustGutters ( cmB ) ; }
Source:
public int getSpecificity ( ) { return specificity ; }

Target:
public int getSpecificity ( ) { return 2 ; }
Source:
private com.cisco.gerrit.plugins.slack.config.ProjectConfig getConfig ( ) throws java.lang.Exception { return getConfig ( "^WIP.*" , true ) ; }

Target:
private com.cisco.gerrit.plugins.slack.config.ProjectConfig getConfig ( ) throws java.lang.Exception { return getConfig ( "^WIP.*" , true , true ) ; }
Source:
protected abstract T updateProjectConfig ( com.google.gerrit.server.project.ProjectControl projectControl , com.google.gerrit.server.git.ProjectConfig config , com.google.gerrit.server.git.MetaDataUpdate md , boolean parentProjectUpdate ) throws com.google.gerrit.common.errors.PermissionDeniedException , com.google.gerrit.server.permissions.PermissionBackendException , com.google.gerrit.server.project.NoSuchProjectException , com.google.gwtorm.server.OrmException , java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException ;

Target:
protected abstract T updateProjectConfig ( com.google.gerrit.server.git.ProjectConfig config , com.google.gerrit.server.git.MetaDataUpdate md , boolean parentProjectUpdate ) throws com.google.gerrit.common.errors.PermissionDeniedException , com.google.gerrit.server.permissions.PermissionBackendException , com.google.gerrit.server.project.NoSuchProjectException , com.google.gwtorm.server.OrmException , java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException ;
Source:
public com.google.gerrit.extensions.registration.DynamicItem < T > get ( ) { return new com.google.gerrit.extensions.registration.DynamicItem < T > ( key , com.google.gerrit.extensions.registration.DynamicItemProvider.find ( injector , type ) , "gerrit" ) ; }

Target:
public com.google.gerrit.extensions.registration.DynamicItem < T > get ( ) { return new com.google.gerrit.extensions.registration.DynamicItem ( key , com.google.gerrit.extensions.registration.DynamicItemProvider.find ( injector , type ) , "gerrit" ) ; }
Source:
public java.lang.String getAvatarUrl ( ) throws com.google.gerrit.extensions.restapi.RestApiException { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }

Target:
public java.lang.String getAvatarUrl ( int size ) throws com.google.gerrit.extensions.restapi.RestApiException { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }
Source:
public void postUpdate ( com.google.gerrit.server.git.BatchUpdate.Context ctx ) { if ( ( change ) != null ) { topicEdited.fire ( change , ctx.getUser ( ) . asIdentifiedUser ( ) . getAccount ( ) , oldTopicName , ctx.getWhen ( ) ) ; } }

Target:
public void postUpdate ( com.google.gerrit.server.git.BatchUpdate.Context ctx ) { if ( ( change ) != null ) { topicEdited.fire ( change , ctx.getAccount ( ) , oldTopicName , ctx.getWhen ( ) ) ; } }
Source:
protected static boolean is_claimID ( final java.lang.String url ) { return url.contains ( ".claimid.com/" ) ; }

Target:
protected static boolean is_claimID ( final java.lang.String url ) { return ( url.contains ( ".claimid.com/" ) ) || ( url.contains ( "://claimid.com/" ) ) ; }
Source:
public java.util.Set < com.google.gerrit.reviewdb.client.Change.Id > clearStarredChanges ( ) { abortStarredChanges ( ) ; starredChanges = null ; return starredChanges ; }

Target:
public void clearStarredChanges ( ) { abortStarredChanges ( ) ; starredChanges = null ; }
Source:
public void updateRepo ( com.google.gerrit.server.update.RepoContext ctx ) throws java.io.IOException { ctx.addRefUpdate ( new org.eclipse.jgit.transport.ReceiveCommand ( oldId , newId , dest ) ) ; }

Target:
public void updateRepo ( com.google.gerrit.server.update.RepoContext ctx ) throws java.io.IOException { ctx.addRefUpdate ( oldId , newId , dest ) ; }
Source:
public void postEvent ( com.google.gerrit.reviewdb.client.Project.NameKey projectName , com.google.gerrit.server.events.Event event ) ;

Target:
void postEvent ( com.google.gerrit.server.events.Event event , com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException ;
Source:
boolean contains ( int b , int e , char c ) { for ( ; b < e ; b ++ ) { if ( ( charAt ( b ) ) == c ) { return true ; } } return false ; }

Target:
public boolean contains ( int b , int e , char c ) { for ( ; b < e ; b ++ ) { if ( ( charAt ( b ) ) == c ) { return true ; } } return false ; }
Source:
public void configure ( ) { install ( dbInjector.getInstance ( com.google.gerrit.pgm.util.BatchProgramModule.class ) ) ; bind ( com.google.gerrit.server.extensions.events.GitReferenceUpdated.class ) . toInstance ( GitReferenceUpdated.DISABLED ) ; install ( new com.google.gerrit.server.index.DummyIndexModule ( ) ) ; factory ( ChangeResource.Factory.class ) ; }

Target:
public void configure ( ) { install ( dbInjector.getInstance ( com.google.gerrit.pgm.util.BatchProgramModule.class ) ) ; install ( new com.google.gerrit.server.index.DummyIndexModule ( ) ) ; factory ( ChangeResource.Factory.class ) ; }
Source:
private java.util.Optional < com.google.gerrit.server.group.InternalGroup > toInternalGroup ( 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 ( ) . getInternalGroup ( uuid ) ; }

Target:
private java.util.Optional < com.google.gerrit.server.group.InternalGroup > toInternalGroup ( 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:
public void stop ( ) { synchronized ( lock ) { if ( ( manager ) != null ) { manager.shutdown ( ) ; } } }

Target:
private void stop ( ) { synchronized ( lock ) { if ( ( manager ) != null ) { manager.shutdown ( ) ; } } }
Source:
private java.util.List < com.google.gerrit.reviewdb.RefRight > getLocalRights ( com.google.gerrit.reviewdb.ApprovalCategory.Id actionId ) { return filter ( projectControl.getProjectState ( ) . getLocalRights ( ) , actionId ) ; }

Target:
private java.util.List < com.google.gerrit.reviewdb.RefRight > getLocalRights ( com.google.gerrit.reviewdb.ApprovalCategory.Id actionId ) { return filter ( getProjectState ( ) . getLocalRights ( actionId ) ) ; }
Source:
protected com.google.gerrit.client.reviewdb.ReviewDb openReviewDb ( ) throws com.google.gerrit.server.ssh.AbstractCommand.Failure { try { return com.google.gerrit.client.rpc.Common.getSchemaFactory ( ) . open ( ) ; } catch ( com.google.gwtorm.client.OrmException e ) { throw new com.google.gerrit.server.ssh.AbstractCommand.Failure ( 1 , "fatal: Gerrit database is offline" ) ; } }

Target:
protected com.google.gerrit.client.reviewdb.ReviewDb openReviewDb ( ) throws com.google.gerrit.server.ssh.AbstractCommand.Failure { try { return com.google.gerrit.client.rpc.Common.getSchemaFactory ( ) . open ( ) ; } catch ( com.google.gwtorm.client.OrmException e ) { throw new com.google.gerrit.server.ssh.AbstractCommand.Failure ( 1 , "fatal: Gerrit database is offline" , e ) ; } }
Source:
public void close ( ) { walk ( ) . close ( ) ; }

Target:
public void close ( ) { if ( ( walk ( ) ) != null ) { walk ( ) . close ( ) ; } }
Source:
private static java.lang.String toPatch ( java.lang.String type , com.google.gerrit.reviewdb.client.PatchSet.Id diffBase , com.google.gerrit.reviewdb.client.Patch.Key id ) { return com.google.gerrit.client.Dispatcher.toPatch ( type , diffBase , id.getParentKey ( ) , id.get ( ) ) ; }

Target:
private static java.lang.String toPatch ( java.lang.String type , com.google.gerrit.reviewdb.client.PatchSet.Id diffBase , com.google.gerrit.reviewdb.client.Patch.Key id ) { return com.google.gerrit.client.Dispatcher.toPatch ( type , diffBase , id.getParentKey ( ) , id.get ( ) , null , 0 ) ; }
Source:
void onEdit ( ) { if ( canEdit ) { show.setVisible ( false ) ; com.google.gwt.user.client.ui.UIObject.setVisible ( form , true ) ; input.setText ( text.getText ( ) ) ; input.setFocus ( true ) ; } }

Target:
void onEdit ( ) { if ( canEdit ) { com.google.gwt.user.client.ui.UIObject.setVisible ( form , true ) ; input.setText ( text.getText ( ) ) ; input.setFocus ( true ) ; } }
Source:
private static long lastUpdatedMs ( com.google.gerrit.reviewdb.client.Change c ) { return c.getLastUpdatedOn ( ) . getTime ( ) ; }

Target:
protected static long lastUpdatedMs ( com.google.gerrit.reviewdb.client.Change c ) { return c.getLastUpdatedOn ( ) . getTime ( ) ; }
Source:
void onRebaseEdit ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.EditActions.rebaseEdit ( changeId , publishEdit , rebaseEdit , deleteEdit ) ; }

Target:
void onRebaseEdit ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.EditActions.rebaseEdit ( getProject ( ) , changeId , publishEdit , rebaseEdit , deleteEdit ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { project2 = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p2" ) ; createProject ( project2.get ( ) ) ; project3 = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p3" ) ; createProject ( project3.get ( ) ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { project2 = createProject ( "p2" ) ; project3 = createProject ( "p3" ) ; }
Source:
public void setUserAccountId ( com.google.gerrit.reviewdb.client.Account.Id id ) { key = new com.google.gerrit.httpd.WebSessionManager.Key ( ( "id:" + id ) ) ; val = new com.google.gerrit.httpd.WebSessionManager.Val ( id , 0 , false , null , 0 ) ; }

Target:
public void setUserAccountId ( com.google.gerrit.reviewdb.client.Account.Id id ) { key = new com.google.gerrit.httpd.WebSessionManager.Key ( ( "id:" + id ) ) ; val = new com.google.gerrit.httpd.WebSessionManager.Val ( id , 0 , false , null , 0 , null ) ; }
Source:
public static java.lang.String toSideBySide ( com.google.gerrit.reviewdb.client.PatchSet.Id diffBase , com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName , com.google.gerrit.client.diff.DisplaySide side , int line ) { return com.google.gerrit.client.Dispatcher.toPatch ( "" , diffBase , revision , fileName , side , line ) ; }

Target:
public static java.lang.String toPatch ( com.google.gerrit.reviewdb.client.PatchSet.Id diffBase , com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName , com.google.gerrit.client.diff.DisplaySide side , int line ) { return com.google.gerrit.client.Dispatcher.toPatch ( "" , diffBase , revision , fileName , side , line ) ; }
Source:
private void index ( com.google.gerrit.reviewdb.client.AccountGroup group ) throws java.io.IOException { if ( ( indexCollection.getSearchIndex ( ) ) != null ) { indexCollection.getSearchIndex ( ) . replace ( group ) ; } }

Target:
private void index ( com.google.gerrit.reviewdb.client.AccountGroup group ) throws java.io.IOException { indexCollection.getSearchIndex ( ) . replace ( group ) ; }
Source:
public boolean canForgeGerritServerIdentity ( ) { return canPerform ( Permission.FORGE_SERVER ) ; }

Target:
private boolean canForgeGerritServerIdentity ( ) { return canPerform ( Permission.FORGE_SERVER ) ; }
Source:
public void onFailure ( java.lang.Throwable caught ) { enableButtons ( true ) ; new com.google.gerrit.client.ErrorDialog ( caught.getMessage ( ) ) . center ( ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { enableButtons ( true ) ; super . onFailure ( caught ) ; }
Source:
public void createProjectFoo ( ) throws java.lang.Exception { java.lang.String name = "foo" ; org.junit.Assert.assertEquals ( name , gApi.projects ( ) . name ( name ) . create ( ) . get ( ) . name ) ; }

Target:
public void createProjectFoo ( ) throws java.lang.Exception { java.lang.String name = "foo" ; com.google.common.truth.Truth.assertThat ( name ) . isEqualTo ( gApi.projects ( ) . name ( name ) . create ( ) . get ( ) . name ) ; }
Source:
private final native void setLine ( int line ) ;

Target:
public final native void setLine ( int line ) ;
Source:
private ProjectResetter.Builder builder ( ) { return builder ( null , null , null ) ; }

Target:
private ProjectResetter.Builder builder ( ) { return builder ( null , null , null , null ) ; }
Source:
protected void submit ( java.lang.String changeId ) throws java.lang.Exception { submit ( changeId , new com.google.gerrit.extensions.api.changes.SubmitInput ( ) , null , null ) ; }

Target:
protected void submit ( java.lang.String changeId , com.google.gerrit.extensions.api.changes.SubmitInput input ) throws java.lang.Exception { submit ( changeId , input , null , null , true ) ; }
Source:
public java.util.List < T > toList ( ) { final java.util.List < T > r = items ; if ( r == null ) { throw new java.lang.IllegalStateException ( "Results already obtained" ) ; } items = null ; return r ; }

Target:
public java.util.List < T > toList ( ) { if ( ( items ) == null ) { throw new java.lang.IllegalStateException ( "Results already obtained" ) ; } final java.util.List < T > r = new java.util.ArrayList < T > ( items ) ; items = null ; return r ; }
Source:
public boolean allowsEdit ( com.google.gerrit.reviewdb.client.Account.FieldName field ) { return ( field == ( com.google.gerrit.reviewdb.client.Account.FieldName.USER_NAME ) ) || ( editableAccountFields.contains ( field ) ) ; }

Target:
public boolean allowsEdit ( com.google.gerrit.reviewdb.client.Account.FieldName field ) { return editableAccountFields.contains ( field ) ; }
Source:
protected com.google.gerrit.server.change.ChangeInserter newChangeForBranch ( org.eclipse.jgit.junit.TestRepository < com.google.gerrit.testutil.InMemoryRepositoryManager.Repo > repo , java.lang.String branch ) throws java.lang.Exception { return newChange ( repo , null , null , branch , null , null ) ; }

Target:
protected com.google.gerrit.server.change.ChangeInserter newChangeForBranch ( org.eclipse.jgit.junit.TestRepository < com.google.gerrit.testutil.InMemoryRepositoryManager.Repo > repo , java.lang.String branch ) throws java.lang.Exception { return newChange ( repo , null , branch , null , null ) ; }
Source:
public com.google.gerrit.server.plugins.InstallPlugin create ( com.google.gerrit.extensions.restapi.TopLevelResource parent , java.lang.String id ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { return new com.google.gerrit.server.plugins.InstallPlugin ( loader , com.google.gerrit.server.util.Url.decode ( id ) ) ; }

Target:
public com.google.gerrit.server.plugins.InstallPlugin create ( com.google.gerrit.extensions.restapi.TopLevelResource parent , java.lang.String id ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { return new com.google.gerrit.server.plugins.InstallPlugin ( loader , com.google.gerrit.server.util.Url.decode ( id ) , true ) ; }
Source:
public com.google.gerrit.extensions.client.SubmitType testSubmitType ( com.google.gerrit.extensions.common.TestSubmitRuleInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return testSubmitType.get ( ) . apply ( revision , in ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot test submit type" , e ) ; } }

Target:
public com.google.gerrit.extensions.client.SubmitType testSubmitType ( com.google.gerrit.extensions.common.TestSubmitRuleInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return testSubmitType.apply ( revision , in ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot test submit type" , e ) ; } }
Source:
public static com.google.gerrit.client.config.ServerInfo getServerInfo ( ) { return com.google.gerrit.client.Gerrit.myServerInfo ; }

Target:
public static com.google.gerrit.client.config.ServerInfo info ( ) { return com.google.gerrit.client.Gerrit.myServerInfo ; }
Source:
public static void getConfig ( com.google.gerrit.reviewdb.client.Project.NameKey name , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.projects.ConfigInfo > cb ) { new com.google.gerrit.client.rpc.RestApi ( "/projects/" ) . id ( name.get ( ) ) . view ( "config" ) . get ( cb ) ; }

Target:
public static com.google.gerrit.client.rpc.RestApi project ( com.google.gerrit.reviewdb.client.Project.NameKey name ) { return new com.google.gerrit.client.rpc.RestApi ( "/projects/" ) . id ( name.get ( ) ) ; }
Source:
public java.lang.String toProject ( final com.google.gerrit.client.reviewdb.Project.NameKey project ) { final java.lang.StringBuffer r = new java.lang.StringBuffer ( ) ; com.google.gerrit.client.data.GitwebLink.p ( r , project ) ; com.google.gerrit.client.data.GitwebLink.a ( r , "summary" ) ; return ( baseUrl ) + r ; }

Target:
public java.lang.String toProject ( final com.google.gerrit.client.reviewdb.Project.NameKey project ) { final java.lang.StringBuilder r = new java.lang.StringBuilder ( ) ; com.google.gerrit.client.data.GitwebLink.p ( r , project ) ; com.google.gerrit.client.data.GitwebLink.a ( r , "summary" ) ; return ( baseUrl ) + r ; }
Source:
java.lang.String publishComments ( int change , int ps ) ;

Target:
java.lang.String publishComments ( java.lang.String changeId , int ps ) ;
Source:
public void stop ( ) { if ( ( pool ) != null ) { pool.unregisterWorkQueue ( ) ; pool = null ; } }

Target:
public void stop ( ) { if ( ( pool ) != null ) { pool = null ; } }
Source:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > apply ( java.util.List < ? > input ) throws java.lang.Exception { com.google.gerrit.pgm.RebuildNotedb.execute ( bru , repo ) ; com.google.gerrit.pgm.RebuildNotedb.execute ( bruAllUsers , allUsersRepo ) ; mpm.end ( ) ; return com.google.common.util.concurrent.Futures.immediateFuture ( null ) ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > apply ( java.util.List < ? > input ) throws java.lang.Exception { mpm.end ( ) ; return com.google.common.util.concurrent.Futures.immediateFuture ( null ) ; }
Source:
public void configure ( ) { bind ( com.google.gerrit.server.index.VersionManager.class ) . to ( com.google.gerrit.lucene.LuceneVersionManager.class ) ; listener ( ) . to ( com.google.gerrit.lucene.LuceneVersionManager.class ) ; if ( onlineUpgrade ) { listener ( ) . to ( com.google.gerrit.server.index.OnlineUpgrader.class ) ; } }

Target:
public void configure ( ) { listener ( ) . to ( com.google.gerrit.lucene.LuceneVersionManager.class ) ; if ( onlineUpgrade ) { listener ( ) . to ( com.google.gerrit.server.index.OnlineUpgrader.class ) ; } }
Source:
public com.google.gerrit.reviewdb.client.Change readChange ( ) throws com.google.gwtorm.server.OrmException { return db.changes ( ) . get ( update.getChange ( ) . getId ( ) ) ; }

Target:
public com.google.gerrit.reviewdb.client.Change getChange ( ) { return update.getChange ( ) ; }
Source:
static com.google.gerrit.server.patch.PatchListEntry empty ( final java.lang.String fileName ) { return new com.google.gerrit.server.patch.PatchListEntry ( com.google.gerrit.reviewdb.client.Patch.ChangeType.MODIFIED , com.google.gerrit.reviewdb.client.Patch.PatchType.UNIFIED , null , fileName , com.google.gerrit.server.patch.PatchListEntry.EMPTY_HEADER , java.util.Collections.< org.eclipse.jgit.diff.Edit > emptyList ( ) , 0 , 0 ) ; }

Target:
static com.google.gerrit.server.patch.PatchListEntry empty ( final java.lang.String fileName ) { return new com.google.gerrit.server.patch.PatchListEntry ( com.google.gerrit.reviewdb.client.Patch.ChangeType.MODIFIED , com.google.gerrit.reviewdb.client.Patch.PatchType.UNIFIED , null , fileName , com.google.gerrit.server.patch.PatchListEntry.EMPTY_HEADER , java.util.Collections.< org.eclipse.jgit.diff.Edit > emptyList ( ) , 0 , 0 , 0 ) ; }
Source:
public void testAppend_float ( ) { final com.google.gwtexpui.safehtml.client.SafeHtmlBuilder b = new com.google.gwtexpui.safehtml.client.SafeHtmlBuilder ( ) ; assertSame ( b , b.append ( 0.0F ) ) ; assertEquals ( "0.0" , b.asString ( ) ) ; }

Target:
public void testAppend_float ( ) { final com.google.gwtexpui.safehtml.client.SafeHtmlBuilder b = new com.google.gwtexpui.safehtml.client.SafeHtmlBuilder ( ) ; org.junit.Assert.assertSame ( b , b.append ( 0.0F ) ) ; org.junit.Assert.assertEquals ( "0.0" , b.asString ( ) ) ; }
Source:
public com.google.gerrit.server.CurrentUser getUser ( ) { if ( ! ( ReviewAssistant.realUser ) ) { return pluginUser ; } else { return identifiedUserFactory.create ( change.getOwner ( ) ) ; } }

Target:
public com.google.gerrit.server.CurrentUser getUser ( ) { if ( ! ( ReviewAssistant.realUser ) ) { return pluginUser ; } return identifiedUserFactory.create ( change.getOwner ( ) ) ; }