auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public abstract java.lang.String getNextSequenceValueSql ( java.lang.String seqname ) ;

Target:
protected abstract java.lang.String getNextSequenceValueSql ( java.lang.String seqname ) ;
Source:
public void setPrivate ( boolean value ) { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }

Target:
public void setPrivate ( boolean value , @ com.google.gerrit.common.Nullable java.lang.String message ) { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }
Source:
private void logDebug ( java.lang.String msg , java.lang.Object ... args ) { if ( ( ( requestId ) != null ) && ( com.google.gerrit.server.update.BatchUpdate.log.isDebugEnabled ( ) ) ) { com.google.gerrit.server.update.BatchUpdate.log.debug ( ( ( requestId ) + msg ) , args ) ; } }

Target:
protected void logDebug ( java.lang.String msg , java.lang.Object ... args ) { if ( ( ( requestId ) != null ) && ( com.google.gerrit.server.update.BatchUpdate.log.isDebugEnabled ( ) ) ) { com.google.gerrit.server.update.BatchUpdate.log.debug ( ( ( requestId ) + msg ) , args ) ; } }
Source:
public boolean isOwnerOf ( com.google.gerrit.common.data.AccessSection section ) { return getOwnerOf ( ) . contains ( section.getRefPattern ( ) ) ; }

Target:
public boolean isOwnerOf ( com.google.gerrit.common.data.AccessSection section ) { return isOwnerOf ( section.getName ( ) ) ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.server.permissions.PermissionBackend.class ) . to ( com.google.gerrit.server.project.DefaultPermissionBackend.class ) . in ( Scopes.SINGLETON ) ; 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.GenericFactory.class ) ; bind ( ChangeControl.Factory.class ) ; }
Source:
private boolean nameEqualsAbbreviated ( org.eclipse.jgit.lib.ObjectId other ) { return org.eclipse.jgit.lib.AbbreviatedObjectId.isId ( name ) ? ( org.eclipse.jgit.lib.AbbreviatedObjectId.fromString ( name ) . prefixCompare ( other ) ) == 0 : false ; }

Target:
private boolean nameEqualsAbbreviated ( org.eclipse.jgit.lib.ObjectId other ) { return ( org.eclipse.jgit.lib.AbbreviatedObjectId.isId ( name ) ) && ( ( org.eclipse.jgit.lib.AbbreviatedObjectId.fromString ( name ) . prefixCompare ( other ) ) == 0 ) ; }
Source:
public com.google.gerrit.server.ssh.DispatchCommand get ( ) { return new com.google.gerrit.server.ssh.DispatchCommand ( dispatcherName , getMap ( ) ) ; }

Target:
public com.google.gerrit.server.ssh.DispatchCommand get ( ) { return factory.create ( dispatcherName , getMap ( ) ) ; }
Source:
void invalidUserName ( ) { userNameTxt.setFocus ( true ) ; new com.google.gerrit.client.ErrorDialog ( Util.C.invalidSshUserName ( ) ) . center ( ) ; }

Target:
void invalidUserName ( ) { userNameTxt.setFocus ( true ) ; new com.google.gerrit.client.ErrorDialog ( Util.C.invalidUserName ( ) ) . center ( ) ; }
Source:
public void getNonExistingChildProject_NotFound ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( HttpStatus.SC_NOT_FOUND , GET ( ( ( "/projects/" + ( allProjects.get ( ) ) ) + "/children/non-existing" ) ) . getStatusCode ( ) ) ; }

Target:
public void getNonExistingChildProject_NotFound ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( GET ( ( ( "/projects/" + ( allProjects.get ( ) ) ) + "/children/non-existing" ) ) . getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_NOT_FOUND ) ; }
Source:
private com.google.gerrit.server.git.VersionedMetaDataTest.MyMetaData load ( int expectedValue ) throws java.lang.Exception { com.google.gerrit.server.git.VersionedMetaDataTest.MyMetaData d = new com.google.gerrit.server.git.VersionedMetaDataTest.MyMetaData ( ) ; d.load ( repo ) ; com.google.common.truth.Truth.assertThat ( d.getValue ( ) ) . isEqualTo ( expectedValue ) ; return d ; }

Target:
private com.google.gerrit.server.git.VersionedMetaDataTest.MyMetaData load ( java.lang.String ref , int expectedValue ) throws java.lang.Exception { com.google.gerrit.server.git.VersionedMetaDataTest.MyMetaData d = new com.google.gerrit.server.git.VersionedMetaDataTest.MyMetaData ( ref ) ; d.load ( repo ) ; com.google.common.truth.Truth.assertThat ( d.getValue ( ) ) . isEqualTo ( expectedValue ) ; return d ; }
Source:
public void singleHashtagNumeric ( ) throws java.lang.Exception { java.lang.String commitMessage = "Subject\n\n#123\n\nLine 2" ; com.google.common.truth.Truth.assertThat ( ( ( java.lang.Iterable < ? > ) ( com.google.gerrit.server.change.HashtagsUtil.extractTags ( commitMessage ) ) ) ) . containsExactlyElementsIn ( com.google.common.collect.Sets.newHashSet ( "123" ) ) ; }

Target:
public void singleHashtagNumeric ( ) throws java.lang.Exception { java.lang.String commitMessage = "Subject\n\n#123\n\nLine 2" ; com.google.common.truth.Truth.assertThat ( com.google.gerrit.server.change.HashtagsUtil.extractTags ( commitMessage ) ) . containsExactlyElementsIn ( com.google.common.collect.Sets.newHashSet ( "123" ) ) ; }
Source:
protected void focusHint ( ) { if ( hintOn ) { super . setText ( "" ) ; hintOn = false ; if ( ( getHintStyleName ( ) ) != null ) { removeStyleName ( getHintStyleName ( ) ) ; } } }

Target:
protected void focusHint ( ) { if ( hintOn ) { super . setText ( "" ) ; if ( ( getHintStyleName ( ) ) != null ) { removeStyleName ( getHintStyleName ( ) ) ; } hintOn = false ; } }
Source:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > indexAsync ( com.google.gerrit.server.query.change.ChangeData cd ) { return ( executor ) != null ? submit ( new com.google.gerrit.server.index.ChangeIndexer.Task ( cd , false ) ) : com.google.common.util.concurrent.Futures.< java.lang.Object , java.io.IOException > immediateCheckedFuture ( null ) ; }

Target:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > indexAsync ( com.google.gerrit.reviewdb.client.Change change ) { return ( executor ) != null ? submit ( new com.google.gerrit.server.index.ChangeIndexer.Task ( new com.google.gerrit.server.query.change.ChangeData ( change ) , false ) ) : com.google.common.util.concurrent.Futures.< java.lang.Object , java.io.IOException > immediateCheckedFuture ( null ) ; }
Source:
public void requestSuggestions ( com.google.gerrit.client.ui.Request req , com.google.gerrit.client.ui.Callback cb ) { com.google.gerrit.client.ui.RemoteSuggestOracle.Query q = new com.google.gerrit.client.ui.RemoteSuggestOracle.Query ( req , cb ) ; if ( ( query ) == null ) { q.start ( ) ; } query = q ; }

Target:
public void requestSuggestions ( com.google.gerrit.client.ui.Request req , com.google.gerrit.client.ui.Callback cb ) { com.google.gerrit.client.ui.RemoteSuggestOracle.Query q = new com.google.gerrit.client.ui.RemoteSuggestOracle.Query ( req , cb ) ; if ( ( query ) == null ) { query = q ; q.start ( ) ; } else { query = q ; } }
Source:
public void upsert ( java.lang.Iterable < T > instances ) throws com.google.gwtorm.client.OrmException { for ( T obj : instances ) { upsertOne ( obj ) ; } }

Target:
public void upsert ( java.lang.Iterable < T > instances ) throws com.google.gwtorm.client.OrmException { for ( T obj : instances ) { upsertOne ( obj , false ) ; } }
Source:
private com.google.gerrit.extensions.common.ChangeInput newChangeInput ( ) { com.google.gerrit.extensions.common.ChangeInput in = new com.google.gerrit.extensions.common.ChangeInput ( ) ; in.branch = "master" ; in.subject = "test" ; in.project = project.get ( ) ; return in ; com.google.gerrit.acceptance.api.accounts.a9e025 Merge ; com.google.gerrit.acceptance.api.accounts.into stable ; }

Target:
private com.google.gerrit.extensions.common.ChangeInput newChangeInput ( ) { com.google.gerrit.extensions.common.ChangeInput in = new com.google.gerrit.extensions.common.ChangeInput ( ) ; in.branch = "master" ; in.subject = "test" ; in.project = project.get ( ) ; return in ; }
Source:
private java.lang.String trimFromChar ( java.lang.String string , char ch ) { if ( ( string.lastIndexOf ( ch ) ) >= 0 ) { string = string.substring ( ( ( string.lastIndexOf ( ch ) ) + 1 ) ) ; } return string ; }

Target:
private java.lang.String trimFromChar ( java.lang.String string , char ch ) { if ( ( string.lastIndexOf ( ch ) ) >= 0 ) { return string.substring ( ( ( string.lastIndexOf ( ch ) ) + 1 ) ) ; } return string ; }
Source:
public java.lang.String format ( com.googlesource.gerrit.plugins.xdocs.ConfigSection cfg , java.lang.String raw ) throws java.io.IOException ;

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 ;
Source:
protected void preDisplay ( final com.google.gerrit.common.data.PatchSetPublishDetail result ) { send.setEnabled ( true ) ; display ( result ) ; }

Target:
protected void preDisplay ( final com.google.gerrit.common.data.PatchSetPublishDetail result ) { send.setEnabled ( true ) ; this . preDisplay ( result , this ) ; }
Source:
private java.util.Set < java.security.PublicKey > getPeerKeys ( ) { com.google.gerrit.sshd.DatabasePubKeyAuth.PeerKeyCache p = peerKeyCache ; if ( ! ( p.isCurrent ( ) ) ) { p = p.reload ( ) ; peerKeyCache = p ; } return p.keys ; HEAD ( a4b4ea ) ; }

Target:
private java.util.Set < java.security.PublicKey > getPeerKeys ( ) { com.google.gerrit.sshd.DatabasePubKeyAuth.PeerKeyCache p = peerKeyCache ; if ( ! ( p.isCurrent ( ) ) ) { p = p.reload ( ) ; peerKeyCache = p ; } return p.keys ; }
Source:
private com.google.gerrit.reviewdb.AccountDiffPreference.Whitespace getIgnoreWhitespace ( ) { final int sel = ignoreWhitespace.getSelectedIndex ( ) ; if ( 0 <= sel ) { return com.google.gerrit.reviewdb.AccountDiffPreference.Whitespace.valueOf ( ignoreWhitespace.getValue ( sel ) ) ; } return value.getWhitespace ( ) ; }

Target:
private com.google.gerrit.reviewdb.AccountDiffPreference.Whitespace getIgnoreWhitespace ( ) { final int sel = ignoreWhitespace.getSelectedIndex ( ) ; if ( 0 <= sel ) { return com.google.gerrit.reviewdb.AccountDiffPreference.Whitespace.valueOf ( ignoreWhitespace.getValue ( sel ) ) ; } return value.getIgnoreWhitespace ( ) ; }
Source:
public java.lang.String getNextSequenceValueSql ( final java.lang.String seqname ) { return seqname ; }

Target:
protected java.lang.String getNextSequenceValueSql ( final java.lang.String seqname ) { return seqname ; }
Source:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.client.Dispatcher.toEditScreen ( new com.google.gerrit.reviewdb.client.PatchSet.Id ( result.legacyId ( ) , 1 ) , "project.config" ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.client.Dispatcher.toEditScreen ( project , new com.google.gerrit.reviewdb.client.PatchSet.Id ( result.legacyId ( ) , 1 ) , "project.config" ) ) ; }
Source:
public void start ( final org.apache.sshd.server.Environment env ) { startThread ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { runImp ( ) ; } } ) ; }

Target:
public void start ( final org.apache.sshd.server.Environment env ) { startThread ( this :: runImp ) ; }
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 ( 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 ( null , index , p , limit ) ; }
Source:
public java.lang.String getUrl ( java.lang.String project ) { return "repo download " + project ; }

Target:
public java.lang.String getUrl ( java.lang.String project ) { return project ; }
Source:
public void done ( ) { finalAdded = true ; applyAllSuccess ( ) ; }

Target:
public void done ( ) { finalAdded = true ; apply ( ) ; }
Source:
static com.google.gerrit.server.git.CodeReviewCommit error ( final com.google.gerrit.server.git.CommitMergeStatus s ) { final com.google.gerrit.server.git.CodeReviewCommit r = new com.google.gerrit.server.git.CodeReviewCommit ( org.eclipse.jgit.lib.ObjectId.zeroId ( ) ) ; r.statusCode = s ; return r ; }

Target:
private static com.google.gerrit.server.git.CodeReviewCommit error ( com.google.gerrit.server.git.CommitMergeStatus s ) { com.google.gerrit.server.git.CodeReviewCommit r = new com.google.gerrit.server.git.CodeReviewCommit ( org.eclipse.jgit.lib.ObjectId.zeroId ( ) ) ; r.statusCode = s ; return r ; }
Source:
public static java.lang.String refsStarredChanges ( com.google.gerrit.reviewdb.client.Change.Id changeId , com.google.gerrit.reviewdb.client.Account.Id accountId ) { java.lang.StringBuilder r = com.google.gerrit.reviewdb.client.RefNames.buildRefsPrefix ( com.google.gerrit.reviewdb.client.RefNames.REFS_STARRED_CHANGES , changeId.get ( ) ) ; r.append ( accountId.get ( ) ) ; return r.toString ( ) ; }

Target:
public static java.lang.String refsStarredChanges ( com.google.gerrit.reviewdb.client.Change.Id changeId , com.google.gerrit.reviewdb.client.Account.Id accountId ) { return com.google.gerrit.reviewdb.client.RefNames.buildRefsPrefix ( com.google.gerrit.reviewdb.client.RefNames.REFS_STARRED_CHANGES , changeId.get ( ) ) . append ( accountId.get ( ) ) . toString ( ) ; }
Source:
private void setupDefaultOperations ( ) { new org.eclipse.example.calc.internal.operations.Equals ( ) ; new org.eclipse.example.calc.internal.operations.Minus ( ) ; new org.eclipse.example.calc.internal.operations.Plus ( ) ; new org.eclipse.example.calc.internal.operations.Square ( ) ; new org.eclipse.example.calc.internal.Divide ( ) ; new org.eclipse.example.calc.internal.Multiply ( ) ; }

Target:
private void setupDefaultOperations ( ) { new org.eclipse.example.calc.internal.operations.Equals ( ) ; new org.eclipse.example.calc.internal.operations.Minus ( ) ; new org.eclipse.example.calc.internal.operations.Plus ( ) ; new org.eclipse.example.calc.internal.Divide ( ) ; new org.eclipse.example.calc.internal.operations.Square ( ) ; }
Source:
public static com.google.common.base.Function < com.google.gerrit.reviewdb.client.Change , com.google.gerrit.reviewdb.client.Change.Id > changeIdFunction ( ) { return com.google.gerrit.reviewdb.server.ReviewDbUtil.CHANGE_ID_FUNCTION ; }

Target:
public static com.google.common.base.Function < com.google.gerrit.reviewdb.client.Change , com.google.gerrit.reviewdb.client.Change.Id > changeIdFunction ( ) { return Change :: getId ; }
Source:
public static java.lang.String toAccountQuery ( java.lang.String fullname , com.google.gerrit.reviewdb.client.Change.Status status ) { return com.google.gerrit.common.PageLinks.toChangeQuery ( ( ( ( com.google.gerrit.common.PageLinks.op ( "owner" , fullname ) ) + " " ) + ( com.google.gerrit.common.PageLinks.status ( status ) ) ) , com.google.gerrit.common.PageLinks.TOP ) ; }

Target:
public static java.lang.String toAccountQuery ( java.lang.String fullname , com.google.gerrit.reviewdb.client.Change.Status status ) { return com.google.gerrit.common.PageLinks.toChangeQuery ( ( ( ( com.google.gerrit.common.PageLinks.op ( "owner" , fullname ) ) + " " ) + ( com.google.gerrit.common.PageLinks.status ( status ) ) ) ) ; }
Source:
public com.google.gerrit.server.mail.MergeFailSender create ( com.google.gerrit.reviewdb.client.Change change ) ;

Target:
public com.google.gerrit.server.mail.MergeFailSender create ( com.google.gerrit.reviewdb.client.Change.Id id ) ;
Source:
public void clear ( ) { set ( cssText , headerHtml , footerHtml ) ; }

Target:
public void clear ( ) { set ( null ) ; }
Source:
static java.nio.file.Path getZipPath ( java.nio.file.Path buckOut ) { if ( buckOut == null ) { return null ; } return buckOut.resolve ( "gen" ) . resolve ( "polygerrit-ui" ) . resolve ( "polygerrit_components" ) . resolve ( "polygerrit_components.bower_components.zip" ) ; }

Target:
private static java.nio.file.Path getZipPath ( java.nio.file.Path buckOut ) { if ( buckOut == null ) { return null ; } return buckOut.resolve ( "gen" ) . resolve ( "polygerrit-ui" ) . resolve ( "polygerrit_components" ) . resolve ( "polygerrit_components.bower_components.zip" ) ; }
Source:
public boolean canRestore ( com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException { return ( canAbandon ( db ) ) && ( getRefControl ( ) . canUpload ( ) ) ; }

Target:
private boolean canRestore ( com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException { return ( canAbandon ( db ) ) && ( getRefControl ( ) . canUpload ( ) ) ; }
Source:
public boolean isAuthSupported ( ) { return isAuthRequired ( ) ; }

Target:
public abstract boolean isAuthSupported ( ) ;
Source:
public void fooSubdirText ( ) throws java.lang.Exception { com.google.gitiles.FakeHttpServletResponse res = buildText ( "/foo/" ) ; org.junit.Assert.assertEquals ( "bar/repo\n" , new java.lang.String ( res.getActualBody ( ) , java.nio.charset.StandardCharsets.UTF_8 ) ) ; }

Target:
public void fooSubdirText ( ) throws java.lang.Exception { com.google.gitiles.FakeHttpServletResponse res = buildText ( "/foo/" ) ; com.google.common.truth.Truth.assertThat ( new java.lang.String ( res.getActualBody ( ) , java.nio.charset.StandardCharsets.UTF_8 ) ) . isEqualTo ( "bar/repo\n" ) ; }
Source:
private void release ( ) { tw.release ( ) ; }

Target:
public void close ( ) { tw.close ( ) ; }
Source:
com.google.gerrit.server.change.ChangeKind getChangeKind ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.notedb.ChangeNotes notes , com.google.gerrit.reviewdb.client.PatchSet patch ) ;

Target:
com.google.gerrit.server.change.ChangeKind getChangeKind ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.PatchSet patch ) ;
Source:
com.google.gwtorm.client.ResultSet < com.google.gerrit.client.reviewdb.PatchLineComment > draft ( com.google.gerrit.client.reviewdb.Patch.Id patch , com.google.gerrit.client.reviewdb.Account.Id author ) throws com.google.gwtorm.client.OrmException ;

Target:
com.google.gwtorm.client.ResultSet < com.google.gerrit.client.reviewdb.PatchLineComment > draft ( com.google.gerrit.client.reviewdb.Patch.Key patch , com.google.gerrit.client.reviewdb.Account.Id author ) throws com.google.gwtorm.client.OrmException ;
Source:
com.google.gerrit.server.mail.RevertedSender create ( com.google.gerrit.reviewdb.client.Change change ) ;

Target:
com.google.gerrit.server.mail.RevertedSender create ( com.google.gerrit.reviewdb.client.Change.Id id ) ;
Source:
public final native void setPath ( java.lang.String path ) ;

Target:
public final native void path ( java.lang.String p ) ;
Source:
public void options ( com.google.gerrit.extensions.common.GroupOptionsInfo options ) throws com.google.gerrit.extensions.restapi.RestApiException { try { putOptions.apply ( rsrc , options ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot put group options" , e ) ; } }

Target:
public void options ( com.google.gerrit.extensions.common.GroupOptionsInfo options ) throws com.google.gerrit.extensions.restapi.RestApiException { try { putOptions.apply ( rsrc , options ) ; } catch ( com.google.gwtorm.server.OrmException | java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot put group options" , e ) ; } }
Source:
private com.google.gerrit.server.change.ChangeJson newChangeJson ( ) { return jsonFactory.create ( java.util.EnumSet.of ( ListChangesOption.CHECK ) ) ; }

Target:
private com.google.gerrit.server.change.ChangeJson newChangeJson ( ) { return jsonFactory.create ( ListChangesOption.CHECK ) ; }
Source:
public void addPatchSets ( com.google.gerrit.server.data.ChangeAttribute ca , java.util.Collection < com.google.gerrit.reviewdb.client.PatchSet > ps , java.util.Map < com.google.gerrit.reviewdb.client.PatchSet.Id , java.util.Collection < com.google.gerrit.reviewdb.client.PatchSetApproval > > approvals , com.google.gerrit.common.data.LabelTypes labelTypes ) { addPatchSets ( ca , ps , approvals , false , null , labelTypes ) ; }

Target:
public void addPatchSets ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.data.ChangeAttribute a , java.util.Collection < com.google.gerrit.reviewdb.client.PatchSet > ps , com.google.gerrit.common.data.LabelTypes labelTypes ) { addPatchSets ( db , a , ps , null , false , null , labelTypes ) ; }
Source:
protected void preDisplay ( final com.google.gerrit.client.groups.GroupMap result ) { groups.display ( result , subname ) ; groups.finishDisplay ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.groups.GroupMap result ) { groups.display ( result , subname ) ; groups.finishDisplay ( ) ; }
Source:
public com.google.common.util.concurrent.CheckedFuture < java.lang.Boolean , java.io.IOException > updateAsync ( com.google.gerrit.reviewdb.client.Change change ) { return com.google.common.util.concurrent.Futures.makeChecked ( executor.submit ( new com.google.gerrit.server.change.MergeabilityChecker.ChangeUpdateTask ( schemaFactory , change ) ) , com.google.gerrit.server.change.MergeabilityChecker.MAPPER ) ; }

Target:
public com.google.common.util.concurrent.CheckedFuture < java.lang.Boolean , java.io.IOException > updateAsync ( com.google.gerrit.reviewdb.client.Change change ) { return updateAsync ( change , false ) ; }
Source:
public void onSuccess ( com.google.gwtjsonrpc.client.VoidResult result ) { com.google.gerrit.client.Gerrit.setAccountDiffPreference ( getValue ( ) ) ; setEnabled ( true ) ; }

Target:
public void onSuccess ( com.google.gwtjsonrpc.client.VoidResult result ) { setEnabled ( true ) ; }
Source:
protected < R extends com.google.gerrit.extensions.restapi.RestResource > com.google.gerrit.extensions.restapi.RestApiModule.ReadViewBinder < R > get ( com.google.inject.TypeLiteral < com.google.gerrit.extensions.restapi.RestView < R > > viewType , java.lang.String name ) { return new com.google.gerrit.extensions.restapi.RestApiModule.ReadViewBinder < R > ( view ( viewType , com.google.gerrit.extensions.restapi.RestApiModule.GET , name ) ) ; }

Target:
protected < R extends com.google.gerrit.extensions.restapi.RestResource > com.google.gerrit.extensions.restapi.RestApiModule.ReadViewBinder < R > get ( com.google.inject.TypeLiteral < com.google.gerrit.extensions.restapi.RestView < R > > viewType , java.lang.String name ) { return new com.google.gerrit.extensions.restapi.RestApiModule.ReadViewBinder ( view ( viewType , com.google.gerrit.extensions.restapi.RestApiModule.GET , name ) ) ; }
Source:
protected void writeOne ( java.lang.CharSequence line ) throws java.io.IOException { writer.print ( line ) ; }

Target:
protected void writeOne ( java.lang.CharSequence line ) throws java.io.IOException { writer.append ( line ) ; }
Source:
public com.google.gerrit.gpg.PublicKeyChecker disableTrust ( ) { store = null ; trusted = null ; return this ; }

Target:
public com.google.gerrit.gpg.PublicKeyChecker disableTrust ( ) { trusted = null ; return this ; }
Source:
protected void onLoad ( ) { super . onLoad ( ) ; com.google.gerrit.client.changes.ChangeList.next ( query , start , pageSize , ChangeTable.OPTIONS , loadCallback ( ) ) ; }

Target:
protected void onLoad ( ) { super . onLoad ( ) ; com.google.gerrit.client.changes.ChangeList.query ( query , ChangeTable.OPTIONS , loadCallback ( ) , start , pageSize ) ; }
Source:
private static java.lang.String url ( com.google.gerrit.reviewdb.client.PatchSet.Id ps , com.google.gerrit.client.changes.CommentInfo info ) { return com.google.gerrit.client.Dispatcher.toPatch ( null , ps , info.path ( ) ) ; }

Target:
private static java.lang.String url ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.PatchSet.Id ps , com.google.gerrit.client.changes.CommentInfo info ) { return com.google.gerrit.client.Dispatcher.toPatch ( project , null , ps , info.path ( ) ) ; }
Source:
private void addComment ( com.google.gerrit.acceptance.PushOneCommit.Result r , java.lang.String message ) throws java.lang.Exception { addComment ( r , message , false , false ) ; }

Target:
private void addComment ( com.google.gerrit.acceptance.PushOneCommit.Result r , java.lang.String message ) throws java.lang.Exception { addComment ( r , message , false , false , null ) ; }
Source:
private static void h ( final java.lang.StringBuilder r , final com.google.gerrit.client.reviewdb.PatchSet ps ) { com.google.gerrit.client.data.GitwebLink.var ( r , "h" , ps.getRevision ( ) ) ; }

Target:
private static void h ( final java.lang.StringBuilder r , final com.google.gerrit.client.reviewdb.PatchSet ps ) { com.google.gerrit.client.data.GitwebLink.var ( r , "h" , ps.getRevision ( ) . get ( ) ) ; }
Source:
protected void removeCookie ( final java.lang.String name ) { final javax.servlet.http.Cookie c = new javax.servlet.http.Cookie ( name , "" ) ; c.setMaxAge ( 0 ) ; com.google.gwtjsonrpc.server.JsonServlet.getCurrentCall ( ) . httpResponse.addCookie ( c ) ; }

Target:
protected void removeCookie ( final java.lang.String name ) { com.google.gwtjsonrpc.server.JsonServlet.getCurrentCall ( ) . removeCookie ( name ) ; }
Source:
, @ com.google.gerrit.acceptance.GerritConfig ( name = "suggest.from" , value = "1" ) , @ com.google.gerrit.acceptance.GerritConfig ( name = "accounts.visibility" , value = "NONE" ) } ) public void suggestReviewersNoResult2 ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; java.util.List < com.google.gerrit.extensions.common.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , name ( "u" ) , 6 ) ; com.google.common.truth.Truth.assertThat ( reviewers ) . isEmpty ( ) ; }

Target:
, @ com.google.gerrit.acceptance.GerritConfig ( name = "accounts.visibility" , value = "NONE" ) } ) public void suggestReviewersNoResult2 ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; java.util.List < com.google.gerrit.extensions.common.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , name ( "u" ) , 6 ) ; com.google.common.truth.Truth.assertThat ( reviewers ) . isEmpty ( ) ; }
Source:
public java.lang.String toString ( ) { return body ; }

Target:
public java.lang.String toString ( ) { return body.get ( ) ; }
Source:
private void loadPatchSets ( final com.google.gerrit.client.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException { detail.setPatchSets ( db.patchSets ( ) . byChange ( changeId ) . toList ( ) ) ; }

Target:
private void loadPatchSets ( ) throws com.google.gwtorm.client.OrmException { detail.setPatchSets ( db.patchSets ( ) . byChange ( changeId ) . toList ( ) ) ; }
Source:
public void submit ( com.google.gerrit.extensions.api.changes.SubmitInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { submit.get ( ) . apply ( revision , in ) ; } catch ( com.google.gwtorm.server.OrmException | java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot submit change" , e ) ; } }

Target:
public void submit ( com.google.gerrit.extensions.api.changes.SubmitInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { submit.apply ( revision , in ) ; } catch ( com.google.gwtorm.server.OrmException | java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot submit change" , e ) ; } }
Source:
public static long parseSortKey ( java.lang.String sortKey ) { if ( "z" . equals ( sortKey ) ) { return java.lang.Long.MAX_VALUE ; } return java.lang.Long.parseLong ( sortKey.substring ( 0 , 8 ) , 16 ) ; }

Target:
public static long parseSortKey ( java.lang.String sortKey ) { if ( "z" . equals ( sortKey ) ) { return java.lang.Long.MAX_VALUE ; } return java.lang.Long.parseLong ( sortKey , 16 ) ; }
Source:
public static void deleteDraft ( com.google.gerrit.reviewdb.client.PatchSet.Id id , java.lang.String draftId , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gerrit.client.changes.CommentApi.revision ( id , "drafts" ) . id ( draftId ) . delete ( cb ) ; }

Target:
public static void deleteDraft ( @ com.google.gerrit.common.Nullable java.lang.String project , com.google.gerrit.reviewdb.client.PatchSet.Id id , java.lang.String draftId , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gerrit.client.changes.CommentApi.revision ( project , id , "drafts" ) . id ( draftId ) . delete ( cb ) ; }
Source:
com.google.gerrit.server.change.ReviewerResource create ( com.google.gerrit.server.change.ChangeResource rsrc , com.google.gerrit.server.IdentifiedUser user ) ;

Target:
com.google.gerrit.server.change.ReviewerResource create ( com.google.gerrit.server.change.ChangeResource change , com.google.gerrit.reviewdb.client.Account.Id id ) ;
Source:
private com.cisco.gerrit.plugins.slack.config.ProjectConfig getConfig ( ) throws java.lang.Exception { return getConfig ( "^WIP.*" , true , true ) ; }

Target:
private com.cisco.gerrit.plugins.slack.config.ProjectConfig getConfig ( ) throws java.lang.Exception { return getConfig ( "^WIP.*" , true , true , true , true ) ; }
Source:
public void testIndexPredicate ( ) throws java.lang.Exception { com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in = parse ( "file:a" ) ; assertEquals ( query ( in ) , rewrite ( in ) ) ; }

Target:
public void testIndexPredicate ( ) throws java.lang.Exception { com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in = parse ( "file:a" ) ; org.junit.Assert.assertEquals ( query ( in ) , rewrite ( in ) ) ; }
Source:
public void onSuccess ( final java.util.List < com.google.gerrit.client.data.ChangeInfo > result ) { starred.display ( result ) ; table.finishDisplay ( ) ; }

Target:
public void onSuccess ( final java.util.List < com.google.gerrit.client.data.ChangeInfo > result ) { starred.display ( result ) ; table.finishDisplay ( true ) ; }
Source:
public void onRpcStart ( final com.google.gwtjsonrpc.client.event.RpcStartEvent event ) { if ( ( ++ ( activeCalls ) ) == 1 ) { if ( ( com.google.gerrit.client.RpcStatus.hideDepth ) == 0 ) { loading.setVisible ( true ) ; } } }

Target:
public void onRpcStart ( final com.google.gwtjsonrpc.client.event.RpcStartEvent event ) { onRpcStart ( ) ; }
Source:
private native void panel ( java.lang.String i , com.google.gwt.core.client.JavaScriptObject e ) ;

Target:
private native void panel ( java.lang.String i , com.google.gwt.core.client.JavaScriptObject e , java.lang.String n ) ;
Source:
public com.google.gerrit.client.reviewdb.Change.Id getKey ( ) { return changeId ; }

Target:
public com.google.gerrit.client.reviewdb.Change.Id getId ( ) { return changeId ; }
Source:
static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > create ( com.google.gerrit.server.index.Schema < com.google.gerrit.server.query.change.ChangeData > schema ) { if ( ( com.google.gerrit.server.query.change.IsReviewedPredicate.getField ( schema ) ) == ( com.google.gerrit.server.index.ChangeField.LEGACY_REVIEWED ) ) { return new com.google.gerrit.server.query.change.LegacyIsReviewedPredicate ( ) ; } return com.google.gerrit.server.query.Predicate.not ( new com.google.gerrit.server.query.change.IsReviewedPredicate ( com.google.gerrit.server.query.change.IsReviewedPredicate.NOT_REVIEWED ) ) ; }

Target:
static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > create ( ) { return com.google.gerrit.server.query.Predicate.not ( new com.google.gerrit.server.query.change.IsReviewedPredicate ( com.google.gerrit.server.query.change.IsReviewedPredicate.NOT_REVIEWED ) ) ; }
Source:
public void tearDown ( ) throws java.lang.Exception { revWalk.release ( ) ; super . tearDown ( ) ; }

Target:
public void tearDown ( ) throws java.lang.Exception { revWalk.close ( ) ; super . tearDown ( ) ; }
Source:
protected void preDisplay ( java.lang.String content ) { setShowTabs ( prefs.showTabs ( ) ) ; initEditor ( content ) ; }

Target:
protected void preDisplay ( java.lang.String content ) { initEditor ( content ) ; }
Source:
protected static void usage ( ) { java.lang.System.err.println ( "Usage:" ) ; java.lang.System.err.println ( " java -jar cafeteria.jar package:predicate" ) ; java.lang.System.err.println ( " java -jar cafeteria.jar predicate" ) ; java.lang.System.err.println ( " package: package name\n" ) ; java.lang.System.err.println ( " predicate: predicate name (only atom)" ) ; }

Target:
private static void usage ( ) { java.lang.System.err.println ( "Usage:" ) ; java.lang.System.err.println ( " java -jar cafeteria.jar package:predicate" ) ; java.lang.System.err.println ( " java -jar cafeteria.jar predicate" ) ; java.lang.System.err.println ( " package: package name\n" ) ; java.lang.System.err.println ( " predicate: predicate name (only atom)" ) ; }
Source:
java.lang.Runnable toggleReviewed ( ) { return ( ) -> { reviewed.setValue ( ( ! ( reviewed.getValue ( ) ) ) , true ) ; } ; }

Target:
java.lang.Runnable toggleReviewed ( ) { return ( ) -> reviewed.setValue ( ( ! ( reviewed.getValue ( ) ) ) , true ) ; }
Source:
public synchronized void start ( ) { com.google.gerrit.server.plugins.PluginLoader.log.info ( ( "Loading plugins from " + ( pluginsDir.getAbsolutePath ( ) ) ) ) ; rescan ( false ) ; scanner.start ( ) ; }

Target:
public synchronized void start ( ) { com.google.gerrit.server.plugins.PluginLoader.log.info ( ( "Loading plugins from " + ( pluginsDir.getAbsolutePath ( ) ) ) ) ; rescan ( false ) ; if ( ( scanner ) != null ) { scanner.start ( ) ; } }
Source:
public void checkCustom ( org.bouncycastle.openpgp.PGPPublicKey key , long expectedKeyId , java.lang.String expectedUserId , java.util.List < java.lang.String > problems ) { }

Target:
public void checkCustom ( org.bouncycastle.openpgp.PGPPublicKey key , long expectedKeyId , java.util.List < java.lang.String > problems ) { }
Source:
public short getMaxAutomergeVote ( ) throws org.eclipse.jgit.errors.ConfigInvalidException { return ( ( short ) ( getConfig ( ) . getInt ( "global" , "maxAutomergeVote" , 1 ) ) ) ; }

Target:
public short getMaxAutomergeVote ( ) throws org.eclipse.jgit.errors.ConfigInvalidException { return ( ( short ) ( getConfig ( ) . getInt ( "global" , "maxAutomergeVote" , 2 ) ) ) ; }
Source:
public void testCreateLinkForWebUiNullText ( ) { mockUnconnectableStoryboard ( ) ; replayMocks ( ) ; com.googlesource.gerrit.plugins.its.storyboard.StoryboardItsFacade itsFacade = createStoryboardItsFacade ( ) ; java.lang.String actual = itsFacade.createLinkForWebui ( "Test-Url" , null ) ; assertEquals ( "[Test-Url]" , actual ) ; }

Target:
public void testCreateLinkForWebUiNullText ( ) { mockUnconnectableStoryboard ( ) ; replayMocks ( ) ; com.googlesource.gerrit.plugins.its.storyboard.StoryboardItsFacade itsFacade = createStoryboardItsFacade ( ) ; java.lang.String actual = itsFacade.createLinkForWebui ( "Test-Url" , null ) ; assertEquals ( "Test-Url" , actual ) ; }
Source:
public void deleteNotAllowedWithOnlyPushPermission ( ) throws java.lang.Exception { grant ( Permission.PUSH , project , "refs/*" , false ) ; assertDeleteRef ( org.eclipse.jgit.transport.RemoteRefUpdate.Status.REJECTED_OTHER_REASON ) ; }

Target:
public void deleteNotAllowedWithOnlyPushPermission ( ) throws java.lang.Exception { grant ( project , "refs/*" , Permission.PUSH , false ) ; assertDeleteRef ( org.eclipse.jgit.transport.RemoteRefUpdate.Status.REJECTED_OTHER_REASON ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { project = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p" ) ; com.google.gerrit.acceptance.GitUtil.createProject ( sshSession , project.get ( ) ) ; setUpChanges ( ) ; setUpPermissions ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { setUpChanges ( ) ; setUpPermissions ( ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo info ) { info.init ( ) ; addExtensionPoints ( info ) ; loadConfigInfo ( info , base ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo info ) { info.init ( ) ; loadConfigInfo ( info , base ) ; }
Source:
protected void updateChangeImpl ( com.google.gerrit.server.git.BatchUpdate.ChangeContext ctx ) throws java.lang.Exception { }

Target:
protected com.google.gerrit.reviewdb.client.PatchSet updateChangeImpl ( com.google.gerrit.server.git.BatchUpdate.ChangeContext ctx ) throws java.lang.Exception { return null ; }
Source:
public org.eclipse.jgit.lib.ObjectId getRevision ( ) { return revision.copy ( ) ; }

Target:
public org.eclipse.jgit.lib.ObjectId getRevision ( ) { return ( revision ) != null ? revision.copy ( ) : null ; }
Source:
public void testWikify_OneParagraph1 ( ) { final com.google.gwtexpui.safehtml.client.SafeHtml o = com.google.gwtexpui.safehtml.client.SafeHtml_WikifyTest.html ( "A\nB" ) ; final com.google.gwtexpui.safehtml.client.SafeHtml n = o.wikify ( ) ; assertNotSame ( o , n ) ; assertEquals ( "<p>A\nB</p>" , n.asString ( ) ) ; }

Target:
public void testWikify_OneParagraph1 ( ) { final com.google.gwtexpui.safehtml.client.SafeHtml o = com.google.gwtexpui.safehtml.client.SafeHtml_WikifyTest.html ( "A\nB" ) ; final com.google.gwtexpui.safehtml.client.SafeHtml n = o.wikify ( ) ; org.junit.Assert.assertNotSame ( o , n ) ; org.junit.Assert.assertEquals ( "<p>A\nB</p>" , n.asString ( ) ) ; }
Source:
public void testFormat ( ) { assertEquals ( "0000000f" , com.google.gerrit.server.util.IdGenerator.format ( 15 ) ) ; assertEquals ( "801234ab" , com.google.gerrit.server.util.IdGenerator.format ( - 2146290517 ) ) ; assertEquals ( "deadbeef" , com.google.gerrit.server.util.IdGenerator.format ( - 559038737 ) ) ; }

Target:
public void testFormat ( ) { org.junit.Assert.assertEquals ( "0000000f" , com.google.gerrit.server.util.IdGenerator.format ( 15 ) ) ; org.junit.Assert.assertEquals ( "801234ab" , com.google.gerrit.server.util.IdGenerator.format ( - 2146290517 ) ) ; org.junit.Assert.assertEquals ( "deadbeef" , com.google.gerrit.server.util.IdGenerator.format ( - 559038737 ) ) ; }
Source:
public void normalize ( final com.google.gerrit.common.data.ApprovalType at , final com.google.gerrit.reviewdb.PatchSetApproval ca ) { applyTypeFloor ( at , ca ) ; applyRightFloor ( ca ) ; }

Target:
public void normalize ( final com.google.gerrit.common.data.ApprovalType at , final com.google.gerrit.reviewdb.PatchSetApproval ca ) { applyTypeFloor ( at , ca ) ; applyRightFloor ( at , ca ) ; }
Source:
private static java.lang.String fullName ( java.lang.String branch ) { if ( branch.startsWith ( Constants.R_HEADS ) ) { return branch ; } else { return ( org.eclipse.jgit.lib.Constants.R_HEADS ) + branch ; } }

Target:
private static java.lang.String fullName ( java.lang.String branch ) { if ( branch.startsWith ( Constants.R_HEADS ) ) { return branch ; } return ( org.eclipse.jgit.lib.Constants.R_HEADS ) + branch ; }
Source:
public com.google.gerrit.common.data.LabelType byLabel ( com.google.gerrit.reviewdb.client.PatchSetApproval.LabelId labelId ) { com.google.gerrit.common.data.LabelType t = byId ( ) . get ( labelId.get ( ) ) ; return t != null ? t : byLabel ( ) . get ( labelId.get ( ) . toLowerCase ( ) ) ; }

Target:
public com.google.gerrit.common.data.LabelType byLabel ( com.google.gerrit.reviewdb.client.PatchSetApproval.LabelId labelId ) { return byLabel ( ) . get ( labelId.get ( ) . toLowerCase ( ) ) ; }
Source:
public void run ( ) { processCommands ( commands ) ; }

Target:
com.google.gerrit.reviewdb.client.Project getProject ( ) { return project ; }
Source:
public static java.lang.String toProjectDashboard ( com.google.gerrit.reviewdb.client.Project.NameKey projectName , java.lang.String dashboardId ) { return ( ( ( com.google.gerrit.common.PageLinks.PROJECTS ) + ( projectName.get ( ) ) ) + ( com.google.gerrit.common.PageLinks.DASHBOARDS ) ) + dashboardId ; }

Target:
public static java.lang.String toProjectDashboard ( com.google.gerrit.reviewdb.client.Project.NameKey name , java.lang.String id ) { return ( ( ( com.google.gerrit.common.PageLinks.PROJECTS ) + ( name.get ( ) ) ) + ( com.google.gerrit.common.PageLinks.DASHBOARDS ) ) + id ; }
Source:
public static com.google.gerrit.lucene.LuceneIndexModule singleVersionWithExplicitVersions ( java.util.Map < java.lang.String , java.lang.Integer > versions , int threads ) { return new com.google.gerrit.lucene.LuceneIndexModule ( versions , threads ) ; }

Target:
public static com.google.gerrit.lucene.LuceneIndexModule singleVersionWithExplicitVersions ( java.util.Map < java.lang.String , java.lang.Integer > versions , int threads ) { return new com.google.gerrit.lucene.LuceneIndexModule ( versions , threads , false ) ; }
Source:
private org.eclipse.jgit.lib.PersonIdent newIdent ( com.google.gerrit.reviewdb.client.Account author , java.util.Date when ) { return new org.eclipse.jgit.lib.PersonIdent ( new com.google.gerrit.common.data.AccountInfo ( author ) . getName ( anonymousCowardName ) , ( ( ( author.getId ( ) . get ( ) ) + "@" ) + ( com.google.gerrit.server.notedb.ChangeNoteUtil.GERRIT_PLACEHOLDER_HOST ) ) , when , serverIdent.getTimeZone ( ) ) ; }

Target:
private org.eclipse.jgit.lib.PersonIdent newIdent ( com.google.gerrit.reviewdb.client.Account author , java.util.Date when ) { return new org.eclipse.jgit.lib.PersonIdent ( author.getName ( anonymousCowardName ) , ( ( ( author.getId ( ) . get ( ) ) + "@" ) + ( com.google.gerrit.server.notedb.ChangeNoteUtil.GERRIT_PLACEHOLDER_HOST ) ) , when , serverIdent.getTimeZone ( ) ) ; }
Source:
protected java.lang.Object createServiceHandle ( ) throws java.lang.Exception { final com.google.gerrit.server.GerritServer gs = com.google.gerrit.server.GerritServer.getInstance ( ) ; final com.google.gwtorm.client.SchemaFactory < com.google.gerrit.client.reviewdb.ReviewDb > rdf = gs.getDatabase ( ) ; return new com.google.gerrit.client.changes.ChangeDetailServiceImpl ( rdf ) ; }

Target:
protected java.lang.Object createServiceHandle ( ) throws java.lang.Exception { return new com.google.gerrit.client.changes.ChangeDetailServiceImpl ( ) ; }
Source:
private void initAllUsersRepo ( ) throws java.io.IOException { if ( ( allUsersRepo ) == null ) { allUsersRepo = openRepo ( allUsersName ) ; } }

Target:
private void initAllUsersRepo ( ) throws java.io.IOException { if ( ( allUsersRepo ) == null ) { allUsersRepo = openRepo ( allUsersName , true ) ; } }
Source:
private java.lang.String pushTagForExistingCommit ( com.google.gerrit.acceptance.rest.project.PushTagIT.TagType tagType , org.eclipse.jgit.transport.RemoteRefUpdate.Status expectedStatus ) throws java.lang.Exception { return pushTag ( tagType , false , expectedStatus ) ; }

Target:
private java.lang.String pushTagForExistingCommit ( com.google.gerrit.acceptance.rest.project.PushTagIT.TagType tagType , org.eclipse.jgit.transport.RemoteRefUpdate.Status expectedStatus ) throws java.lang.Exception { return pushTag ( tagType , null , false , expectedStatus ) ; }
Source:
private void logDebug ( java.lang.String msg , java.lang.Object ... args ) { if ( com.google.gerrit.server.git.MergeOp.log.isDebugEnabled ( ) ) { com.google.gerrit.server.git.MergeOp.log.debug ( ( ( ( "[" + ( submissionId ) ) + "]" ) + msg ) , args ) ; } }

Target:
private void logDebug ( java.lang.String msg , java.lang.Object ... args ) { if ( com.google.gerrit.server.git.MergeOp.log.isDebugEnabled ( ) ) { com.google.gerrit.server.git.MergeOp.log.debug ( ( ( submissionId ) + msg ) , args ) ; } }
Source:
private void logWarn ( java.lang.String msg ) { if ( com.google.gerrit.server.git.MergeOp.log.isWarnEnabled ( ) ) { com.google.gerrit.server.git.MergeOp.log.warn ( ( ( ( "[" + ( submissionId ) ) + "]" ) + msg ) ) ; } }

Target:
private void logWarn ( java.lang.String msg ) { if ( com.google.gerrit.server.git.MergeOp.log.isWarnEnabled ( ) ) { com.google.gerrit.server.git.MergeOp.log.warn ( ( ( submissionId ) + msg ) ) ; } }
Source:
public void stop ( ) { index.close ( ) ; }

Target:
public void stop ( ) { }
Source:
public java.util.SortedSet < com.google.gerrit.reviewdb.client.Project.NameKey > list ( ) { namesUpdateLock.lock ( ) ; try { com.google.gerrit.server.git.LocalDiskRepositoryManager.ProjectVisitor visitor = new com.google.gerrit.server.git.LocalDiskRepositoryManager.ProjectVisitor ( basePath ) ; scanProjects ( visitor ) ; return java.util.Collections.unmodifiableSortedSet ( visitor.found ) ; } finally { namesUpdateLock.unlock ( ) ; } }

Target:
public java.util.SortedSet < com.google.gerrit.reviewdb.client.Project.NameKey > list ( ) { com.google.gerrit.server.git.LocalDiskRepositoryManager.ProjectVisitor visitor = new com.google.gerrit.server.git.LocalDiskRepositoryManager.ProjectVisitor ( basePath ) ; scanProjects ( visitor ) ; return java.util.Collections.unmodifiableSortedSet ( visitor.found ) ; }
Source:
private static java.util.List < com.googlecode.prolog_cafe.lang.Term > eval ( com.google.gerrit.server.project.SubmitRuleEvaluator evaluator ) throws com.google.gerrit.server.project.RuleEvalException { return evaluator.evaluate ( ) . toJava ( ) ; }

Target:
private static java.util.List < com.googlecode.prolog_cafe.lang.Term > eval ( com.google.gerrit.server.project.SubmitRuleEvaluator evaluator ) throws com.google.gerrit.server.project.RuleEvalException { return evaluator.evaluate ( ) ; }
Source:
com.google.gerrit.server.IdentifiedUser getUser ( ) { return ( ( com.google.gerrit.server.IdentifiedUser ) ( getControl ( ) . getCurrentUser ( ) ) ) ; }

Target:
com.google.gerrit.server.IdentifiedUser getUser ( ) { return ( ( com.google.gerrit.server.IdentifiedUser ) ( getControl ( ) . getUser ( ) ) ) ; }
Source:
private void initAllUsersRepo ( ) throws java.io.IOException { if ( ( allUsersRepo ) == null ) { allUsersRepo = openRepo ( allUsersName , true ) ; } }

Target:
private void initAllUsersRepo ( ) throws java.io.IOException { if ( ( allUsersRepo ) == null ) { allUsersRepo = openRepo ( allUsersName ) ; } }
Source:
public com.google.gerrit.server.events.AccountAttribute asAccountAttribute ( final com.google.gerrit.reviewdb.Account account ) { com.google.gerrit.server.events.AccountAttribute who = new com.google.gerrit.server.events.AccountAttribute ( ) ; who.name = account.getFullName ( ) ; who.email = account.getPreferredEmail ( ) ; return who ; }

Target:
public com.google.gerrit.server.events.AccountAttribute asAccountAttribute ( final com.google.gerrit.reviewdb.client.Account account ) { com.google.gerrit.server.events.AccountAttribute who = new com.google.gerrit.server.events.AccountAttribute ( ) ; who.name = account.getFullName ( ) ; who.email = account.getPreferredEmail ( ) ; return who ; }
Source:
public void onSuccess ( T value ) { if ( failed ) { return ; } this . result = value ; remaining.remove ( this ) ; this . applyAllSuccess ( ) ; }

Target:
public void onSuccess ( T value ) { this . result = value ; remaining.remove ( this ) ; this . applyAllSuccess ( ) ; }
Source:
private com.google.gerrit.acceptance.GerritServer startImpl ( @ com.google.gerrit.common.Nullable com.google.inject.Module testSysModule , java.lang.String ... additionalArgs ) throws java.lang.Exception { return com.google.gerrit.acceptance.GerritServer.start ( serverDesc , baseConfig , sitePaths.site_path , testSysModule , additionalArgs ) ; }

Target:
private com.google.gerrit.acceptance.GerritServer startImpl ( @ com.google.gerrit.common.Nullable com.google.inject.Module testSysModule , java.lang.String ... additionalArgs ) throws java.lang.Exception { return com.google.gerrit.acceptance.GerritServer.start ( serverDesc , baseConfig , sitePaths.site_path , testSysModule , null , null , additionalArgs ) ; }
Source:
private boolean isHidden ( ) { return getProject ( ) . getState ( ) . equals ( com.google.gerrit.extensions.client.ProjectState.HIDDEN ) ; }

Target:
public boolean isHidden ( ) { return getProject ( ) . getState ( ) . equals ( com.google.gerrit.extensions.client.ProjectState.HIDDEN ) ; }