auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private com.google.gerrit.server.project.ProjectControl user ( com.google.gerrit.reviewdb.AccountGroup ... memberOf ) { com.google.gerrit.reviewdb.ReviewDb db = null ; com.google.gerrit.server.account.GroupCache groupCache = null ; java.lang.String canonicalWebUrl = "http://localhost" ; com.google.gerrit.server.project.RefControl.Factory refControlFactory = new com.google.gerrit.server.project.RefControl.Factory ( ) { @ java.lang.Override public com.google.gerrit.server.project.RefControl create ( final com.google.gerrit.server.project.ProjectControl projectControl , final java.lang.String ref ) { return new com.google.gerrit.server.project.RefControl ( projectControl , ref ) ; } } ; return new com.google.gerrit.server.project.ProjectControl ( java.util.Collections.< com.google.gerrit.reviewdb.AccountGroup.UUID > emptySet ( ) , java.util.Collections.< com.google.gerrit.reviewdb.AccountGroup.UUID > emptySet ( ) , db , groupCache , canonicalWebUrl , refControlFactory , new com.google.gerrit.server.project.RefControlTest.MockUser ( memberOf ) , newProjectState ( ) ) ; }

Target:
private com.google.gerrit.server.project.ProjectControl user ( com.google.gerrit.reviewdb.AccountGroup ... memberOf ) { com.google.gwtorm.client.SchemaFactory < com.google.gerrit.reviewdb.ReviewDb > schema = null ; com.google.gerrit.server.account.GroupCache groupCache = null ; java.lang.String canonicalWebUrl = "http://localhost" ; com.google.gerrit.server.project.RefControl.Factory refControlFactory = new com.google.gerrit.server.project.RefControl.Factory ( ) { @ java.lang.Override public com.google.gerrit.server.project.RefControl create ( final com.google.gerrit.server.project.ProjectControl projectControl , final java.lang.String ref ) { return new com.google.gerrit.server.project.RefControl ( projectControl , ref ) ; } } ; return new com.google.gerrit.server.project.ProjectControl ( java.util.Collections.< com.google.gerrit.reviewdb.AccountGroup.UUID > emptySet ( ) , java.util.Collections.< com.google.gerrit.reviewdb.AccountGroup.UUID > emptySet ( ) , schema , groupCache , canonicalWebUrl , refControlFactory , new com.google.gerrit.server.project.RefControlTest.MockUser ( memberOf ) , newProjectState ( ) ) ; }
Source:
public com.googlecode.prolog_cafe.lang.NumberTerm xor ( com.googlecode.prolog_cafe.lang.NumberTerm t ) { if ( t.isDouble ( ) ) throw new com.googlecode.prolog_cafe.exceptions.IllegalTypeException ( "integer" , t ) ; return new com.googlecode.prolog_cafe.lang.IntegerTerm ( ( ( this . val ) ^ ( t.intValue ( ) ) ) ) ; }

Target:
public com.googlecode.prolog_cafe.lang.NumberTerm xor ( com.googlecode.prolog_cafe.lang.NumberTerm t ) { if ( t instanceof com.googlecode.prolog_cafe.lang.DoubleTerm ) throw new com.googlecode.prolog_cafe.exceptions.IllegalTypeException ( "integer" , t ) ; return new com.googlecode.prolog_cafe.lang.IntegerTerm ( ( ( this . val ) ^ ( t.intValue ( ) ) ) ) ; }
Source:
public static com.google.gerrit.client.rpc.RestApi edit ( int id ) { return com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( "edit" ) ; }

Target:
public static void rebaseEdit ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gwt.core.client.JavaScriptObject in = com.google.gwt.core.client.JavaScriptObject.createObject ( ) ; com.google.gerrit.client.changes.ChangeApi.change ( project , id ) . view ( "edit:rebase" ) . post ( in , cb ) ; }
Source:
public void operationComplete ( org.apache.mina.core.future.IoFuture future ) { final com.google.gerrit.sshd.SshScopes.Context old = SshScopes.current.get ( ) ; try { SshScopes.current.set ( ctx ) ; log.onLogout ( ) ; } finally { SshScopes.current.set ( old ) ; } }

Target:
public void operationComplete ( org.apache.mina.core.future.IoFuture future ) { final com.google.gerrit.sshd.SshScope.Context ctx = new com.google.gerrit.sshd.SshScope.Context ( sd ) ; final com.google.gerrit.sshd.SshScope.Context old = com.google.gerrit.sshd.SshScope.set ( ctx ) ; try { log.onLogout ( ) ; } finally { com.google.gerrit.sshd.SshScope.set ( old ) ; } }
Source:
public static com.google.gerrit.reviewdb.server.ReviewDb unwrapDb ( com.google.gerrit.reviewdb.server.ReviewDb db ) { if ( db instanceof com.google.gerrit.reviewdb.server.DisabledChangesReviewDbWrapper ) { return ( ( com.google.gerrit.reviewdb.server.DisabledChangesReviewDbWrapper ) ( db ) ) . unsafeGetDelegate ( ) ; } return db ; }

Target:
public static com.google.gerrit.reviewdb.server.ReviewDb unwrapDb ( com.google.gerrit.reviewdb.server.ReviewDb db ) { if ( db instanceof com.google.gerrit.reviewdb.server.DisallowReadFromChangesReviewDbWrapper ) { return ( ( com.google.gerrit.reviewdb.server.DisallowReadFromChangesReviewDbWrapper ) ( db ) ) . unsafeGetDelegate ( ) ; } return db ; }
Source:
private final native void setLine ( int line ) ;

Target:
public final native void range ( com.google.gerrit.client.diff.CommentRange r ) ;
Source:
public com.google.gerrit.server.git.BatchUpdate addOp ( com.google.gerrit.reviewdb.client.Change.Id id , com.google.gerrit.server.git.BatchUpdate.Op op ) { ops.put ( id , op ) ; return this ; }

Target:
public com.google.gerrit.server.git.BatchUpdate addOp ( com.google.gerrit.reviewdb.client.Change.Id id , com.google.gerrit.server.git.BatchUpdate.Op op ) { com.google.common.base.Preconditions.checkArgument ( ( ! ( op instanceof com.google.gerrit.server.git.BatchUpdate.InsertChangeOp ) ) , "use insertChange" ) ; ops.put ( id , op ) ; return this ; }
Source:
private static native com.google.gerrit.client.account.AccountApi.GpgKeysInput createAdd ( com.google.gwt.core.client.JsArrayString keys ) ;

Target:
private static native com.google.gerrit.client.account.AccountApi.GpgKeysInput createWithAdd ( com.google.gwt.core.client.JsArrayString keys ) ;
Source:
public void onFailure ( java.lang.Throwable caught ) { }

Target:
public void onFailure ( java.lang.Throwable caught ) { send.setEnabled ( true ) ; }
Source:
public com.google.gerrit.extensions.api.projects.ProjectApi.ListBranchesRequest withRegex ( java.lang.String regex ) { this . regex = regex ; return this ; }

Target:
public com.google.gerrit.extensions.api.projects.ProjectApi.ListRefsRequest < T > withRegex ( java.lang.String regex ) { this . regex = regex ; return this ; }
Source:
public com.google.gerrit.server.query.change.ListChanges addQuery ( java.lang.String query ) { if ( ( queries ) == null ) { queries = com.google.common.collect.Lists.newArrayList ( ) ; } queries.add ( query ) ; return this ; }

Target:
public com.google.gerrit.server.change.ChangeJson setSshInfo ( com.google.gerrit.server.ssh.SshInfo info ) { sshInfo = info ; return this ; }
Source:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > deleteAsync ( com.google.gerrit.reviewdb.client.Change.Id id ) { return ( executor ) != null ? submit ( new com.google.gerrit.server.index.ChangeIndexer.Task ( id , true ) ) : com.google.common.util.concurrent.Futures.< java.lang.Object , java.io.IOException > immediateCheckedFuture ( null ) ; }

Target:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > deleteAsync ( com.google.gerrit.reviewdb.client.Change.Id id ) { return ( executor ) != null ? submit ( new com.google.gerrit.server.index.ChangeIndexer.DeleteTask ( id ) ) : com.google.common.util.concurrent.Futures.< java.lang.Object , java.io.IOException > immediateCheckedFuture ( null ) ; }
Source:
public boolean canUpdate ( ) { if ( ( GitRepositoryManager.REF_CONFIG.equals ( refName ) ) && ( ! ( getProjectControl ( ) . isOwner ( ) ) ) ) { return false ; } return canPerform ( Permission.PUSH ) ; }

Target:
public boolean canUpdate ( ) { if ( ( GitRepositoryManager.REF_CONFIG.equals ( refName ) ) && ( ! ( projectControl.isOwner ( ) ) ) ) { return false ; } return canPerform ( Permission.PUSH ) ; }
Source:
public void configure ( ) { factory ( ChangeUpdate.Factory.class ) ; factory ( ChangeDraftUpdate.Factory.class ) ; factory ( NoteDbUpdateManager.Factory.class ) ; }

Target:
public void configure ( ) { factory ( ChangeUpdate.Factory.class ) ; factory ( ChangeDraftUpdate.Factory.class ) ; factory ( DraftCommentNotes.Factory.class ) ; factory ( NoteDbUpdateManager.Factory.class ) ; }
Source:
public boolean containsHeader ( java.lang.String name ) { return ! ( headers.get ( name ) . isEmpty ( ) ) ; }

Target:
public boolean containsHeader ( java.lang.String name ) { return headers.containsKey ( name ) ; }
Source:
void onRemoveDraftBox ( com.google.gerrit.client.diff.DraftBox box ) { getPanelFromSide ( box.getSide ( ) ) . onRemoveDraftBox ( box ) ; }

Target:
void onRemoveDraftBox ( com.google.gerrit.client.diff.DraftBox box ) { getPanelFromSide ( box.getCm ( ) . side ( ) ) . onRemoveDraftBox ( box ) ; }
Source:
protected void closePopup ( ) { popup.hide ( ) ; }

Target:
protected void closePopup ( ) { popup.hide ( ) ; if ( ( regWindowResize ) != null ) { regWindowResize.removeHandler ( ) ; regWindowResize = null ; } }
Source:
public void testGcNotAllowed_Forbidden ( ) throws java.lang.Exception { userSession.post ( ( ( "/projects/" + ( allProjects.get ( ) ) ) + "/gc" ) ) . assertForbidden ( ) ; }

Target:
public void testGcNotAllowed_Forbidden ( ) throws java.lang.Exception { userRestSession.post ( ( ( "/projects/" + ( allProjects.get ( ) ) ) + "/gc" ) ) . assertForbidden ( ) ; }
Source:
private com.google.gerrit.reviewdb.client.PatchSet getCurrentPatchSet ( java.lang.String changeId ) throws com.google.gwtorm.server.OrmException { return db.patchSets ( ) . get ( com.google.common.collect.Iterables.getOnlyElement ( db.changes ( ) . byKey ( new com.google.gerrit.reviewdb.client.Change.Key ( changeId ) ) ) . currentPatchSetId ( ) ) ; }

Target:
private com.google.gerrit.server.query.change.ChangeData getChange ( java.lang.String changeId ) throws com.google.gwtorm.server.OrmException { return com.google.common.collect.Iterables.getOnlyElement ( queryProvider.get ( ) . byKeyPrefix ( changeId ) ) ; }
Source:
public com.google.gwtorm.jdbc.TestJdbcAccess.Data get ( com.google.gwtorm.jdbc.TestJdbcAccess.Data.DataKey key ) throws com.google.gwtorm.server.OrmException { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public com.google.gwtorm.jdbc.AbstractTestJdbcAccess.Data.DataKey primaryKey ( com.google.gwtorm.jdbc.AbstractTestJdbcAccess.Data entity ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.rpc.NativeString user ) { com.google.gerrit.client.Gerrit.getUserAccount ( ) . username ( user.asString ( ) ) ; refreshHttpPassword ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.rpc.NativeString user ) { com.google.gerrit.client.Gerrit.getUserAccount ( ) . username ( user.asString ( ) ) ; enableUI ( true ) ; display ( ) ; }
Source:
public void setSearchIndex ( com.google.gerrit.server.index.ChangeIndex index ) { searchIndex.set ( index ) ; }

Target:
public void setSearchIndex ( com.google.gerrit.server.index.ChangeIndex index ) { com.google.gerrit.server.index.ChangeIndex old = searchIndex.getAndSet ( index ) ; if ( ( old != null ) && ( old != index ) ) { old.close ( ) ; } }
Source:
public com.google.gerrit.server.CurrentUser get ( ) { return session.get ( ) . getCurrentUser ( ) ; }

Target:
public com.google.gerrit.server.CurrentUser get ( ) { final com.google.gerrit.server.CurrentUser user = session.get ( ) . getCurrentUser ( ) ; if ( user instanceof com.google.gerrit.server.IdentifiedUser ) { return identifiedProvider.get ( ) ; } return session.get ( ) . getCurrentUser ( ) ; }
Source:
com.google.gerrit.server.IdentifiedUser provideCurrentUser ( com.google.gerrit.server.CurrentUser user ) { if ( user.isIdentifiedUser ( ) ) { return ( ( com.google.gerrit.server.IdentifiedUser ) ( user ) ) ; } throw new com.google.inject.ProvisionException ( com.google.gerrit.common.errors.NotSignedInException.MESSAGE , new com.google.gerrit.common.errors.NotSignedInException ( ) ) ; }

Target:
com.google.gerrit.server.IdentifiedUser provideCurrentUser ( com.google.gerrit.server.CurrentUser user ) { if ( user.isIdentifiedUser ( ) ) { return user.asIdentifiedUser ( ) ; } throw new com.google.inject.ProvisionException ( com.google.gerrit.common.errors.NotSignedInException.MESSAGE , new com.google.gerrit.common.errors.NotSignedInException ( ) ) ; }
Source:
public final native void setScrollSetAt ( double when ) ;

Target:
public void handle ( net.codemirror.lib.CodeMirror instance , int line , java.lang.String gutter , com.google.gwt.event.dom.client.MouseDownEvent clickEvent ) ;
Source:
public final native net.codemirror.lib.CodeMirror.FromTo getViewport ( ) ;

Target:
public final native void setScrollSetByOther ( boolean setByOther ) ;
Source:
protected void assertBadQuery ( com.google.gerrit.extensions.api.changes.Changes.QueryRequest query ) throws java.lang.Exception { try { query.get ( ) ; org.junit.Assert.fail ( ( "expected BadRequestException for query: " + query ) ) ; } catch ( com.google.gerrit.extensions.restapi.BadRequestException e ) { } }

Target:
protected void assertBadQuery ( com.google.gerrit.extensions.api.changes.Changes.QueryRequest query ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.BadRequestException.class ) ; query.get ( ) ; }
Source:
java.util.Optional < com.google.gerrit.server.group.InternalGroup > getInternalGroup ( com.google.gerrit.reviewdb.client.AccountGroup.UUID groupUuid ) ;

Target:
void evict ( com.google.gerrit.reviewdb.client.AccountGroup.UUID groupUuid , com.google.gerrit.reviewdb.client.AccountGroup.Id groupId , com.google.gerrit.reviewdb.client.AccountGroup.NameKey groupName ) throws java.io.IOException ;
Source:
public long getMinValue ( ) { return com.google.gerrit.server.ChangeUtil.parseSortKey ( getValue ( ) ) ; }

Target:
public long getMinValue ( com.google.gerrit.server.index.Schema < com.google.gerrit.server.query.change.ChangeData > schema ) { return com.google.gerrit.server.query.change.SortKeyPredicate.parseSortKey ( schema , getValue ( ) ) ; }
Source:
public java.util.concurrent.Callable < ? > indexTask ( com.google.gerrit.server.query.change.ChangeData cd ) { return new java.util.concurrent.Callable < java.lang.Void > ( ) { @ java.lang.Override public java.lang.Void call ( ) { return null ; } } ; }

Target:
protected java.util.concurrent.Callable < ? > indexTask ( com.google.gerrit.server.query.change.ChangeData cd ) { return com.google.common.util.concurrent.Callables.returning ( null ) ; }
Source:
protected void preDisplay ( final com.google.gerrit.common.data.PatchSetPublishDetail result ) { send.setEnabled ( true ) ; this . preDisplay ( result , this ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.rpc.NativeString result ) { submitTypeRecord = com.google.gerrit.common.data.SubmitTypeRecord.OK ( Project.SubmitType.valueOf ( result.asString ( ) ) ) ; }
Source:
java.lang.String keyReload ( ) ;

Target:
java.lang.String keyReloadChange ( ) ;
Source:
public void beforeTest ( ) throws java.lang.Exception { if ( com.google.gerrit.testutil.GerritServerTests.isNoteDbTestEnabled ( ) ) { com.google.gerrit.server.notedb.ConfigNotesMigration.setAllEnabledConfig ( config ) ; } }

Target:
public void beforeTest ( ) throws java.lang.Exception { notesMigration = new com.google.gerrit.testutil.TestNotesMigration ( ) . setAllEnabled ( com.google.gerrit.testutil.GerritServerTests.isNoteDbTestEnabled ( ) ) ; }
Source:
public void addListener ( com.google.gerrit.client.rpc.CallbackGroup group ) { addListener ( group.add ( com.google.gerrit.client.rpc.CallbackGroup.< java.lang.Void > emptyCallback ( ) ) ) ; }

Target:
public void addListener ( com.google.gerrit.client.rpc.CallbackGroup group ) { addListener ( group.< java.lang.Void > addEmpty ( ) ) ; }
Source:
public static com.google.gerrit.server.query.Predicate < com.google.gerrit.reviewdb.client.AccountGroup > uuid ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) { return new com.google.gerrit.server.query.group.GroupPredicates.GroupPredicate ( com.google.gerrit.server.index.group.GroupField.UUID , GroupQueryBuilder.FIELD_UUID , uuid.get ( ) ) ; }

Target:
public static com.google.gerrit.index.query.Predicate < com.google.gerrit.reviewdb.client.AccountGroup > uuid ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) { return new com.google.gerrit.server.query.group.GroupPredicates.GroupPredicate ( com.google.gerrit.server.index.group.GroupField.UUID , GroupQueryBuilder.FIELD_UUID , uuid.get ( ) ) ; }
Source:
public org.eclipse.jgit.lib.Repository openRepository ( com.google.gerrit.reviewdb.client.Project.NameKey name ) throws org.eclipse.jgit.errors.RepositoryNotFoundException { return openRepository ( basePath , name ) ; }

Target:
public org.eclipse.jgit.lib.Repository openRepository ( com.google.gerrit.reviewdb.client.Project.NameKey name ) throws org.eclipse.jgit.errors.RepositoryNotFoundException { return openRepository ( getBasePath ( name ) , name ) ; }
Source:
com.google.gerrit.server.git.EmailMerge create ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id changeId , com.google.gerrit.reviewdb.client.Account.Id submitter , com.google.gerrit.extensions.api.changes.NotifyHandling notifyHandling ) ;

Target:
com.google.gerrit.server.git.EmailMerge create ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id changeId , com.google.gerrit.reviewdb.client.Account.Id submitter , com.google.gerrit.extensions.api.changes.NotifyHandling notifyHandling , com.google.common.collect.Multimap < com.google.gerrit.extensions.api.changes.RecipientType , com.google.gerrit.reviewdb.client.Account.Id > accountsToNotify ) ;
Source:
public void addReviewerToReviewableChangeInNoteDbNotifyOwnerReviewers ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isTrue ( ) ; forAll ( ( adder ) -> { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; com.google.gerrit.acceptance.TestAccount reviewer = accounts.create ( "added" , "added@example.com" , "added" ) ; addReviewer ( adder , sc.changeId , sc.owner , reviewer.email , com.google.gerrit.extensions.api.changes.NotifyHandling.OWNER_REVIEWERS ) ; assertThat ( sender ) . sent ( "newchange" , sc ) . to ( reviewer ) . to ( sc.reviewerByEmail ) . cc ( sc.reviewer ) . cc ( sc.ccerByEmail ) . notTo ( sc.owner , sc.starrer ) ; } ) ; }

Target:
public void addReviewerToReviewableChangeInNoteDbNotifyOwnerReviewers ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isTrue ( ) ; forAll ( ( adder ) -> { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; com.google.gerrit.acceptance.TestAccount reviewer = accountCreator.create ( "added" , "added@example.com" , "added" ) ; addReviewer ( adder , sc.changeId , sc.owner , reviewer.email , com.google.gerrit.extensions.api.changes.NotifyHandling.OWNER_REVIEWERS ) ; assertThat ( sender ) . sent ( "newchange" , sc ) . to ( reviewer ) . cc ( sc.reviewer ) . cc ( sc.reviewerByEmail , sc.ccerByEmail ) . notTo ( sc.owner , sc.starrer ) ; } ) ; }
Source:
public void stop ( ) { refreshThread.stop = true ; try { refreshThread.join ( ) ; } catch ( java.lang.InterruptedException e ) { com.google.gerrit.lucene.LuceneChangeIndex.log.warn ( "error stopping refresh thread" , e ) ; } openIndex.close ( ) ; closedIndex.close ( ) ; }

Target:
public void stop ( ) { refreshThread.halt ( ) ; openIndex.close ( ) ; closedIndex.close ( ) ; }
Source:
public com.google.gerrit.server.events.TrackingIdAttribute asTrackingIdAttribute ( com.google.gerrit.reviewdb.TrackingId id ) { com.google.gerrit.server.events.TrackingIdAttribute a = new com.google.gerrit.server.events.TrackingIdAttribute ( ) ; a.system = id.getSystem ( ) ; a.id = id.getTrackingId ( ) ; return a ; }

Target:
public com.google.gerrit.server.events.TrackingIdAttribute asTrackingIdAttribute ( com.google.gerrit.reviewdb.client.TrackingId id ) { com.google.gerrit.server.events.TrackingIdAttribute a = new com.google.gerrit.server.events.TrackingIdAttribute ( ) ; a.system = id.getSystem ( ) ; a.id = id.getTrackingId ( ) ; return a ; }
Source:
void replicate ( java.lang.String ref ) { if ( replication.isEnabled ( ) ) { replication.scheduleUpdate ( projectName , ref ) ; } }

Target:
void replicate ( java.lang.String ref ) { replication.fire ( projectName , ref ) ; }
Source:
public synchronized com.google.gerrit.server.account.AccountState getOrNull ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { return byId.get ( accountId ) ; }

Target:
public synchronized java.util.Optional < com.google.gerrit.server.account.AccountState > maybeGet ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { return java.util.Optional.ofNullable ( byId.get ( accountId ) ) ; }
Source:
java.lang.String getId ( ) { return comment.getKey ( ) . get ( ) ; }

Target:
java.lang.String getId ( ) { return comment.key.uuid ; }
Source:
public java.lang.String getLocalUser ( ) { if ( getExternalId ( ) . startsWith ( com.google.gerrit.client.reviewdb.AccountExternalId.SCHEME_GERRIT ) ) { return getExternalId ( ) . substring ( com.google.gerrit.client.reviewdb.AccountExternalId.SCHEME_GERRIT.length ( ) ) ; } return null ; }

Target:
public boolean isScheme ( final java.lang.String scheme ) { return getExternalId ( ) . startsWith ( scheme ) ; }
Source:
public static boolean isCommentUrl ( java.lang.String str , java.lang.String changeUrl , com.google.gerrit.reviewdb.client.Comment comment ) { return ( str.equals ( ( ( ( com.google.gerrit.server.mail.receive.ParserUtil.filePath ( changeUrl , comment ) ) + "@" ) + ( comment.lineNbr ) ) ) ) || ( str.equals ( ( ( ( com.google.gerrit.server.mail.receive.ParserUtil.filePath ( changeUrl , comment ) ) + "@a" ) + ( comment.lineNbr ) ) ) ) ; }

Target:
public static boolean isCommentUrl ( java.lang.String str , java.lang.String changeUrl , com.google.gerrit.reviewdb.client.Comment comment ) { int lineNbr = ( ( comment.range ) == null ) ? comment.lineNbr : comment.range.startLine ; return ( str.equals ( ( ( ( com.google.gerrit.server.mail.receive.ParserUtil.filePath ( changeUrl , comment ) ) + "@" ) + lineNbr ) ) ) || ( str.equals ( ( ( ( com.google.gerrit.server.mail.receive.ParserUtil.filePath ( changeUrl , comment ) ) + "@a" ) + lineNbr ) ) ) ; }
Source:
protected void configure ( ) { install ( new com.google.gerrit.server.index.IndexModule ( 1 ) ) ; bind ( com.google.gerrit.server.index.IndexConfig.class ) . toInstance ( com.google.gerrit.server.index.IndexConfig.createDefault ( ) ) ; bind ( com.google.gerrit.server.index.change.ChangeIndex.class ) . toInstance ( new com.google.gerrit.server.index.change.DummyChangeIndex ( ) ) ; }

Target:
protected void configure ( ) { install ( new com.google.gerrit.server.index.IndexModule ( 1 ) ) ; bind ( com.google.gerrit.server.index.IndexConfig.class ) . toInstance ( com.google.gerrit.server.index.IndexConfig.createDefault ( ) ) ; bind ( com.google.gerrit.server.index.Index.class ) . toInstance ( new com.google.gerrit.server.index.change.DummyChangeIndex ( ) ) ; }
Source:
public boolean enableDefaultUi ( ) { return ! ( headless ) ; }

Target:
public boolean enableDefaultUi ( ) { return ( ! ( headless ) ) && ( ! ( polyGerrit ) ) ; }
Source:
private java.lang.String getComment ( com.google.gerrit.server.events.ChangeAttribute change , com.google.gerrit.server.events.ChangeEvent hook , com.google.gerrit.server.events.AccountAttribute who , java.lang.String what ) { return ( ( ( ( ( getCommentPrefix ( change ) ) + "change " ) + what ) + " [by " ) + who ) + "]" ; }

Target:
private java.lang.String getComment ( com.google.gerrit.server.events.ChangeAttribute change , com.google.gerrit.server.events.ChangeEvent hook , com.google.gerrit.server.events.AccountAttribute who , java.lang.String what ) { return ( ( ( ( ( getCommentPrefix ( change ) ) + "change " ) + what ) + " [by " ) + ( formatAccountAttribute ( who ) ) ) + "]" ; }
Source:
public static com.google.common.cache.CacheBuilder < java.lang.Object , java.lang.Object > newBuilder ( ) { return com.google.common.cache.CacheBuilder.newBuilder ( ) . maximumWeight ( ( 10 << 10 ) ) ; }

Target:
public java.util.List < com.google.gitiles.BlameCache.Region > load ( com.google.gitiles.BlameCacheImpl.Key key ) throws java.io.IOException { return loadBlame ( key ) ; }
Source:
public javax.naming.directory.DirContext run ( ) throws javax.naming.NamingException { return new javax.naming.directory.InitialDirContext ( env ) ; }

Target:
public javax.naming.directory.DirContext run ( ) throws java.io.IOException , javax.naming.NamingException { return createContext ( env ) ; }
Source:
public synchronized com.google.gerrit.server.account.AccountState get ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { com.google.gerrit.server.account.AccountState state = getIfPresent ( accountId ) ; if ( state != null ) { return state ; } return com.google.gerrit.testutil.FakeAccountCache.newState ( new com.google.gerrit.reviewdb.client.Account ( accountId , com.google.gerrit.server.util.TimeUtil.nowTs ( ) ) ) ; }

Target:
public synchronized com.google.gerrit.server.account.AccountState get ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { com.google.gerrit.server.account.AccountState state = getIfPresent ( accountId ) ; if ( state != null ) { return state ; } return com.google.gerrit.testutil.FakeAccountCache.newState ( new com.google.gerrit.reviewdb.client.Account ( accountId , com.google.gerrit.common.TimeUtil.nowTs ( ) ) ) ; }
Source:
private static void addLink ( final com.google.gerrit.client.ui.LinkMenuBar m , final java.lang.String text , final java.lang.String historyToken ) { m.addItem ( new com.google.gerrit.client.ui.LinkMenuItem ( text , historyToken ) ) ; }

Target:
private static void insertLink ( final com.google.gerrit.client.ui.LinkMenuBar m , final java.lang.String text , final java.lang.String historyToken , final int beforeIndex ) { m.insertItem ( new com.google.gerrit.client.ui.LinkMenuItem ( text , historyToken ) , beforeIndex ) ; }
Source:
private static int version ( com.google.gerrit.server.index.Index < ? , ? > i ) { return i.getSchema ( ) . getVersion ( ) ; }

Target:
private static int version ( com.google.gerrit.index.Index < ? , ? > i ) { return i.getSchema ( ) . getVersion ( ) ; }
Source:
public static void doSignOut ( ) { com.google.gwt.user.client.Cookies.removeCookie ( com.google.gerrit.client.Gerrit.ACCOUNT_COOKIE ) ; com.google.gwt.user.client.Cookies.removeCookie ( com.google.gerrit.client.Gerrit.OPENIDUSER_COOKIE ) ; com.google.gerrit.client.Gerrit.refreshMenus ( ) ; }

Target:
public static void doSignOut ( ) { com.google.gwt.user.client.Cookies.removeCookie ( com.google.gerrit.client.Gerrit.ACCOUNT_COOKIE ) ; com.google.gwt.user.client.Cookies.removeCookie ( com.google.gerrit.client.Gerrit.OPENIDUSER_COOKIE ) ; com.google.gerrit.client.Gerrit.refreshMenuBar ( ) ; }
Source:
public static org.eclipse.jgit.internal.storage.dfs.InMemoryRepository newRepository ( com.google.gerrit.reviewdb.client.Project.NameKey name ) { return new com.google.gerrit.testutil.InMemoryRepositoryManager.Repo ( name ) ; }

Target:
public static org.eclipse.jgit.internal.storage.dfs.InMemoryRepository newRepository ( com.google.gerrit.reviewdb.client.Project.NameKey name ) { return new com.google.gerrit.testutil.InMemoryRepositoryManager.Repo ( new com.google.gerrit.testutil.TestNotesMigration ( ) , name ) ; }
Source:
protected void configureServlets ( ) { serve ( "/login/*" ) . with ( com.google.gerrit.httpd.auth.ldap.LoginRedirectServlet.class ) ; install ( new com.google.gerrit.httpd.rpc.RpcServletModule ( com.google.gerrit.httpd.rpc.UiRpcModule.PREFIX ) { @ java.lang.Override protected void configureServlets ( ) { rpc ( com.google.gerrit.httpd.auth.ldap.UserPassAuthServiceImpl.class ) ; } } ) ; }

Target:
protected void configureServlets ( ) { serve ( "/login/*" ) . with ( com.google.gerrit.httpd.auth.ldap.LdapLoginServlet.class ) ; }
Source:
com.googlesource.gerrit.plugins.reviewersbyblame.ReviewersByBlame create ( org.eclipse.jgit.revwalk.RevCommit commit , com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.PatchSet ps , int maxReviewers , org.eclipse.jgit.lib.Repository repo ) ;

Target:
com.googlesource.gerrit.plugins.reviewersbyblame.ReviewersByBlame create ( org.eclipse.jgit.revwalk.RevCommit commit , com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.PatchSet ps , int maxReviewers , org.eclipse.jgit.lib.Repository repo , java.lang.String ignoreFileRegEx ) ;
Source:
public < T extends com.google.gwt.core.client.JavaScriptObject > void delete ( com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { send ( com.google.gwt.http.client.RequestBuilder.DELETE , cb ) ; }

Target:
public < T extends com.google.gwt.core.client.JavaScriptObject > void get ( com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { get ( com.google.gerrit.client.rpc.RestApi.wrap ( cb ) ) ; }
Source:
public void testQueueShouldNotBeEmptyWhenOneEventSubmitted ( ) { asyncListener.onChangeEvent ( event ) ; org.junit.Assert.assertFalse ( asyncListener.getQueue ( ) . isEmpty ( ) ) ; }

Target:
public void testQueueShouldNotBeEmptyWhenOneEventSubmitted ( ) { asyncListener.onEvent ( event ) ; org.junit.Assert.assertFalse ( asyncListener.getQueue ( ) . isEmpty ( ) ) ; }
Source:
public static < T > com.google.gerrit.server.query.Predicate < T > or ( com.google.gerrit.server.query.Predicate < T > ... that ) { if ( ( that.length ) == 1 ) { return that [ 0 ] ; } return new com.google.gerrit.server.query.OrPredicate ( that ) ; }

Target:
public static < T > com.google.gerrit.index.query.Predicate < T > or ( com.google.gerrit.index.query.Predicate < T > ... that ) { if ( ( that.length ) == 1 ) { return that [ 0 ] ; } return new com.google.gerrit.index.query.OrPredicate ( that ) ; }
Source:
public com.google.gerrit.extensions.common.ProjectInfo apply ( com.google.gerrit.server.project.ProjectResource rsrc ) { return json.format ( rsrc.getControl ( ) ) ; }

Target:
public com.google.gerrit.extensions.common.ProjectInfo apply ( com.google.gerrit.server.project.ProjectResource rsrc ) { return json.format ( rsrc.getProjectState ( ) ) ; }
Source:
public void all ( ) { com.google.common.truth.Truth.assertThat ( com.google.gerrit.testutil.IndexVersionsTest.get ( com.google.gerrit.testing.IndexVersions.ALL ) ) . containsExactlyElementsIn ( com.google.gerrit.testutil.IndexVersionsTest.SCHEMA_DEF.getSchemas ( ) . keySet ( ) ) . inOrder ( ) ; }

Target:
public void all ( ) { com.google.common.truth.Truth.assertThat ( com.google.gerrit.testing.IndexVersionsTest.get ( com.google.gerrit.testing.IndexVersions.ALL ) ) . containsExactlyElementsIn ( com.google.gerrit.testing.IndexVersionsTest.SCHEMA_DEF.getSchemas ( ) . keySet ( ) ) . inOrder ( ) ; }
Source:
void setOpen ( boolean open ) { resizePaddingWidget ( ) ; setRangeHighlight ( open ) ; getCm ( ) . focus ( ) ; }

Target:
void setOpen ( boolean open ) { group.resize ( ) ; setRangeHighlight ( open ) ; getCm ( ) . focus ( ) ; }
Source:
private void expandAll ( ) { expandSideAll ( ) ; otherBar.expandSideAll ( ) ; manager.remove ( this , otherBar ) ; }

Target:
private void expandAll ( ) { expandSideAll ( ) ; otherBar.expandSideAll ( ) ; manager.remove ( this , otherBar ) ; manager.getOverviewBar ( ) . refresh ( ) ; }
Source:
java.lang.String getProjectUrl ( java.lang.String projectName ) ;

Target:
com.google.gerrit.extensions.common.WebLinkInfo getProjectWeblink ( java.lang.String projectName ) ;
Source:
public void start ( ) { updateConfiguration ( ) ; }

Target:
public void start ( ) { try { updateConfiguration ( ) ; } catch ( com.google.gerrit.server.project.NoSuchProjectException e ) { warn ( "can't read configuration: %s" , e.getMessage ( ) ) ; } }
Source:
public abstract void execute ( ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.update.UpdateException ;

Target:
public void execute ( ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.update.UpdateException { execute ( BatchUpdateListener.NONE ) ; }
Source:
public java.lang.String getRefName ( ) { return ( org.eclipse.jgit.lib.Constants.R_HEADS ) + ( change.branch ) ; }

Target:
public java.lang.String getRefName ( ) { return com.google.gerrit.reviewdb.client.RefNames.fullName ( change.branch ) ; }
Source:
public void execute ( ) { showError ( ) ; enable ( true ) ; providerId.selectAll ( ) ; providerId.setFocus ( true ) ; }

Target:
private void onDiscoveryFailure ( ) { showError ( ) ; enable ( true ) ; providerId.selectAll ( ) ; providerId.setFocus ( true ) ; }
Source:
public com.google.gerrit.extensions.common.CommentInfo apply ( com.google.gerrit.server.change.CommentResource rsrc ) throws com.google.gwtorm.server.OrmException { return commentJson.get ( ) . format ( rsrc.getComment ( ) ) ; }

Target:
public com.google.gerrit.extensions.common.CommentInfo apply ( com.google.gerrit.server.change.CommentResource rsrc ) throws com.google.gwtorm.server.OrmException { return commentJson.get ( ) . newCommentFormatter ( ) . format ( rsrc.getComment ( ) ) ; }
Source:
void addFileComment ( com.google.gerrit.client.diff.CommentBox box ) { boxes.add ( box ) ; body.add ( box ) ; table.updateFileCommentVisibility ( false ) ; }

Target:
void addFileComment ( com.google.gerrit.client.diff.CommentBox box ) { boxes.add ( box ) ; body.add ( box ) ; table.setHeaderVisible ( true ) ; }
Source:
public void evict ( com.google.gerrit.reviewdb.AccountGroup group ) ;

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > evictAsync ( com.google.gerrit.reviewdb.AccountGroup group ) ;
Source:
public static java.lang.String escape ( final java.lang.String in ) { return com.google.gerrit.client.ui.DomUtil.INSTANCE.escape ( in ) ; }

Target:
public static java.lang.String linkify ( final java.lang.String in ) { return in.replaceAll ( "(https?://[^ \n\r\t]*)" , "<a href=\"$1\">$1</a>" ) ; }
Source:
public com.google.gerrit.extensions.client.DiffPreferencesInfo apply ( com.google.gerrit.server.config.ConfigResource configResource ) throws com.google.gerrit.extensions.restapi.BadRequestException , com.google.gerrit.extensions.restapi.ResourceConflictException , java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { return com.google.gerrit.server.restapi.config.GetDiffPreferences.readFromGit ( gitManager , allUsersName , null ) ; }

Target:
public com.google.gerrit.extensions.client.DiffPreferencesInfo apply ( com.google.gerrit.server.config.ConfigResource configResource ) throws com.google.gerrit.extensions.restapi.BadRequestException , com.google.gerrit.extensions.restapi.ResourceConflictException , java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { try ( org.eclipse.jgit.lib.Repository git = gitManager.openRepository ( allUsersName ) ) { return com.google.gerrit.server.account.PreferencesConfig.readDefaultDiffPreferences ( git ) ; } }
Source:
public void setTag ( final java.lang.String tagName ) { this . tagName = tagName ; }

Target:
public void setTag ( final com.google.gerrit.acceptance.PushOneCommit.Tag tag ) { this . tag = tag ; }
Source:
public com.google.gerrit.reviewdb.client.AccountSshKey getKey ( com.google.gerrit.reviewdb.client.Account.Id accountId , int seq ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { return read ( accountId ) . getKey ( seq ) ; }

Target:
public com.google.gerrit.server.account.AccountSshKey getKey ( com.google.gerrit.reviewdb.client.Account.Id accountId , int seq ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { return read ( accountId ) . getKey ( seq ) ; }
Source:
private int getMyTotalHeight ( ) { int total = 0 ; for ( com.google.gerrit.client.diff.CommentBox box : comments ) { total += ( box.getOffsetHeight ( ) ) + 5 ; } return total ; }

Target:
private int getMyTotalHeight ( ) { int total = 0 ; for ( com.google.gerrit.client.diff.CommentBox box : comments ) { total += box.getSelfWidgetWrapper ( ) . getElement ( ) . getParentElement ( ) . getOffsetHeight ( ) ; } return total ; }
Source:
public com.google.gerrit.server.query.QueryResult < T > query ( com.google.gerrit.server.query.Predicate < T > query ) throws com.google.gerrit.index.query.QueryParseException , com.google.gwtorm.server.OrmException { return query ( com.google.common.collect.ImmutableList.of ( query ) ) . get ( 0 ) ; }

Target:
public com.google.gerrit.index.query.QueryResult < T > query ( com.google.gerrit.index.query.Predicate < T > query ) throws com.google.gerrit.index.query.QueryParseException , com.google.gwtorm.server.OrmException { return query ( com.google.common.collect.ImmutableList.of ( query ) ) . get ( 0 ) ; }
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 | java.io.IOException 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 ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot put group options" , e ) ; } }
Source:
private com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > rewrite ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in ) throws com.google.gerrit.server.query.QueryParseException { return rewrite.rewrite ( in , 0 ) ; }

Target:
private com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > rewrite ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in ) throws com.google.gerrit.server.query.QueryParseException { return rewrite.rewrite ( in , 0 , com.google.gerrit.common.data.GlobalCapability.DEFAULT_MAX_QUERY_LIMIT ) ; }
Source:
public static com.google.gerrit.server.config.PluginConfig getEmptyPluginConfig ( ) { return new com.google.gerrit.server.config.PluginConfig ( "" , new org.eclipse.jgit.lib.Config ( ) ) ; }

Target:
public static java.io.File createEmptyFile ( java.lang.String name , org.eclipse.jgit.lib.Repository repo ) { return new java.io.File ( repo.getDirectory ( ) . getParent ( ) , name ) ; }
Source:
public java.lang.String apply ( com.google.gerrit.server.group.GroupResource resource ) throws com.google.gerrit.extensions.restapi.MethodNotAllowedException { com.google.gerrit.reviewdb.client.AccountGroup group = resource.toAccountGroup ( ) ; if ( group == null ) { throw new com.google.gerrit.extensions.restapi.MethodNotAllowedException ( ) ; } return com.google.common.base.Strings.nullToEmpty ( group.getDescription ( ) ) ; }

Target:
public java.lang.String apply ( com.google.gerrit.server.group.GroupResource resource ) throws com.google.gerrit.extensions.restapi.MethodNotAllowedException { com.google.gerrit.common.data.GroupDescription.Internal group = resource.asInternalGroup ( ) . orElseThrow ( MethodNotAllowedException :: new ) ; return com.google.common.base.Strings.nullToEmpty ( group.getDescription ( ) ) ; }
Source:
private void injectMode ( java.lang.String type , com.google.gwt.user.client.rpc.AsyncCallback < java.lang.Void > cb ) { new net.codemirror.lib.ModeInjector ( ) . add ( type ) . inject ( cb ) ; }

Target:
private void injectMode ( java.lang.String type , com.google.gwt.user.client.rpc.AsyncCallback < java.lang.Void > cb ) { new net.codemirror.mode.ModeInjector ( ) . add ( type ) . inject ( cb ) ; }
Source:
public java.util.List < com.google.gerrit.extensions.common.EmailInfo > getEmails ( ) { return getEmails.apply ( account ) ; }

Target:
public java.util.List < com.google.gerrit.extensions.common.EmailInfo > getEmails ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getEmails.apply ( account ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot get emails" , e ) ; } }
Source:
public com.google.gerrit.server.CurrentUser runAs ( java.net.SocketAddress remotePeer , com.google.gerrit.reviewdb.client.Account.Id id , @ com.google.gerrit.common.Nullable com.google.gerrit.server.CurrentUser caller ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , com.google.inject.util.Providers.of ( remotePeer ) , null , id , caller ) ; }

Target:
public com.google.gerrit.server.CurrentUser runAs ( java.net.SocketAddress remotePeer , com.google.gerrit.reviewdb.client.Account.Id id , @ com.google.gerrit.common.Nullable com.google.gerrit.server.CurrentUser caller ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , realm , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , com.google.inject.util.Providers.of ( remotePeer ) , null , id , caller ) ; }
Source:
boolean visibleForReplication ( ) { return ( ( getCurrentUser ( ) ) instanceof com.google.gerrit.server.ReplicationUser ) && ( ( ( com.google.gerrit.server.ReplicationUser ) ( getCurrentUser ( ) ) ) . isEverythingVisible ( ) ) ; }

Target:
public boolean isOwner ( ) { return ( isDeclaredOwner ( ) ) || ( user.getCapabilities ( ) . canAdministrateServer ( ) ) ; }
Source:
protected java.lang.Object createServiceHandle ( ) throws java.lang.Exception { return new com.google.gerrit.client.admin.GroupAdminServiceImpl ( com.google.gerrit.server.GerritServer.getInstance ( ) . getDatabase ( ) ) ; }

Target:
protected java.lang.Object createServiceHandle ( ) throws java.lang.Exception { return new com.google.gerrit.server.GroupAdminServiceImpl ( com.google.gerrit.server.GerritServer.getInstance ( ) ) ; }
Source:
public static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.account.AccountState > isNotActive ( ) { return new com.google.gerrit.server.query.account.AccountPredicates.AccountPredicate ( com.google.gerrit.server.index.account.AccountField.ACTIVE , "0" ) ; }

Target:
public static com.google.gerrit.index.query.Predicate < com.google.gerrit.server.account.AccountState > isNotActive ( ) { return new com.google.gerrit.server.query.account.AccountPredicates.AccountPredicate ( com.google.gerrit.server.index.account.AccountField.ACTIVE , "0" ) ; }
Source:
public void onFailure ( java.lang.Throwable caught ) { enable ( true ) ; super . onFailure ( caught ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { error.clear ( ) ; enable ( true ) ; super . onFailure ( caught ) ; }
Source:
public boolean isVisible ( com.google.gerrit.reviewdb.client.Account account ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.server.IdentifiedUser who = identifiedUserFactory.create ( reviewDbProvider , account.getId ( ) ) ; return changeControl.forUser ( who ) . isVisible ( reviewDbProvider.get ( ) ) ; }

Target:
public boolean isVisible ( com.google.gerrit.reviewdb.client.Account account ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.server.IdentifiedUser who = identifiedUserFactory.create ( reviewDbProvider , account.getId ( ) ) ; return changeControl.forUser ( who ) . isRefVisible ( ) ; }
Source:
protected void configureServlets ( ) { com.google.gerrit.extensions.registration.DynamicSet.bind ( binder ( ) , com.google.gerrit.extensions.webui.WebUiPlugin.class ) . toInstance ( new com.google.gerrit.extensions.webui.GwtPlugin ( "imagare" ) ) ; }

Target:
protected void configureServlets ( ) { com.google.gerrit.extensions.registration.DynamicSet.bind ( binder ( ) , com.google.gerrit.extensions.webui.WebUiPlugin.class ) . toInstance ( new com.google.gerrit.extensions.webui.GwtPlugin ( "imagare" ) ) ; com.google.gerrit.extensions.registration.DynamicSet.bind ( binder ( ) , com.google.gerrit.extensions.webui.WebUiPlugin.class ) . toInstance ( new com.google.gerrit.extensions.webui.JavaScriptPlugin ( "imagare.js" ) ) ; }
Source:
public final native net.codemirror.lib.LineCharacter getFrom ( ) ;

Target:
public final native void to ( net.codemirror.lib.Pos t ) ;
Source:
public static com.google.gerrit.server.group.db.InternalGroupUpdate.Builder builder ( ) { return new com.google.gerrit.server.group.db.AutoValue_InternalGroupUpdate.Builder ( ) ; }

Target:
public static com.google.gerrit.server.group.db.InternalGroupUpdate.Builder builder ( ) { return new com.google.gerrit.server.group.db.AutoValue_InternalGroupUpdate.Builder ( ) . setMemberModification ( java.util.function.Function.identity ( ) ) ; }
Source:
public com.google.gerrit.extensions.api.projects.Projects.ListParameter withPrefix ( java.lang.String prefix ) { this . prefix = prefix ; return this ; }

Target:
public com.google.gerrit.extensions.api.projects.Projects.ListRequest withPrefix ( java.lang.String prefix ) { this . prefix = prefix ; return this ; }
Source:
public void onSuccess ( final com.google.gwtjsonrpc.common.VoidResult result ) { com.google.gerrit.client.Gerrit.getUserAccount ( ) . setGeneralPreferences ( p ) ; com.google.gerrit.client.Gerrit.applyUserPreferences ( ) ; com.google.gerrit.client.Dispatcher.changeScreen2 = false ; enable ( true ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.account.Preferences prefs ) { com.google.gerrit.client.Gerrit.getUserAccount ( ) . setGeneralPreferences ( p ) ; com.google.gerrit.client.Gerrit.applyUserPreferences ( ) ; com.google.gerrit.client.Dispatcher.changeScreen2 = false ; enable ( true ) ; display ( prefs ) ; }
Source:
public boolean isAllowed ( final com.google.gerrit.reviewdb.ApprovalCategory.Id id ) { final java.util.Set < com.google.gerrit.reviewdb.ApprovalCategoryValue.Id > s = getAllowed ( id ) ; return ( s != null ) && ( ! ( s.isEmpty ( ) ) ) ; }

Target:
public com.google.gerrit.common.data.PermissionRange getRange ( final java.lang.String permissionName ) { for ( com.google.gerrit.common.data.PermissionRange s : labels ) { if ( s.getName ( ) . equals ( permissionName ) ) { return s ; } } return null ; }
Source:
private static boolean isMaybeHTML ( java.lang.String text ) { return com.google.gerrit.httpd.restapi.RestApiServlet.IS_HTML.matcher ( text ) . find ( ) ; }

Target:
private static boolean isMaybeHTML ( java.lang.String text ) { return com.google.common.base.CharMatcher.anyOf ( "<&" ) . matchesAnyOf ( text ) ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < com.google.gerrit.common.data.PatchScriptSettings > event ) { update ( event.getValue ( ) ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < com.google.gerrit.reviewdb.AccountDiffPreference > event ) { update ( event.getValue ( ) ) ; }
Source:
public Project.SubmitType getSubmitType ( ) { return submitType ; }

Target:
public com.google.gerrit.common.data.SubmitTypeRecord getSubmitTypeRecord ( ) { return submitTypeRecord ; }
Source:
public void onFailure ( final java.lang.Throwable caught ) { enableUI ( true ) ; if ( caught instanceof com.google.gerrit.common.errors.InvalidUserNameException ) { new com.google.gerrit.client.ErrorDialog ( Util.C.invalidUserName ( ) ) . center ( ) ; } else { super . onFailure ( caught ) ; } }

Target:
public void onFailure ( java.lang.Throwable caught ) { enableUI ( true ) ; if ( com.google.gerrit.client.rpc.RestApi.isExpected ( 422 ) ) { new com.google.gerrit.client.ErrorDialog ( Util.C.invalidUserName ( ) ) . center ( ) ; } else { super . onFailure ( caught ) ; } }
Source:
private boolean isVisible ( final com.google.gerrit.reviewdb.client.Project.NameKey project , com.googlesource.gerrit.plugins.replication.ReplicationState ... states ) { HEAD ( 398143 ) ; }

Target:
public java.lang.Boolean call ( ) throws com.google.gerrit.server.project.NoSuchProjectException { return controlFor ( project ) . isVisible ( ) ; }