auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { toggleReviewed ( ) . run ( ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { upToChange ( ) . run ( ) ; }
Source:
public void setup ( ) throws java.lang.Exception { testRepo = cloneProject ( project , user ) ; }

Target:
public void setup ( ) throws java.lang.Exception { testRepo = cloneProject ( project , user ) ; initialHead = getRemoteHead ( ) ; }
Source:
public com.google.gerrit.server.query.change.ListChanges andDefaultField ( java.lang.String defaultField ) { this . defaultField = defaultField ; return this ; }

Target:
private static java.lang.String ensureSlash ( java.lang.String in ) { if ( ( in != null ) && ( ! ( in.endsWith ( "/" ) ) ) ) { return in + "/" ; } return in ; }
Source:
protected java.lang.Object getRowItemKey ( com.google.gerrit.client.change.RelatedChanges.ChangeAndCommit item ) { return item.id ( ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { onOpenRow ( getRow ( selectedRow ) ) ; }
Source:
public final com.google.gerrit.server.git.CodeReviewCommit run ( final com.google.gerrit.server.git.CodeReviewCommit mergeTip , final java.util.List < com.google.gerrit.server.git.CodeReviewCommit > toMerge ) throws com.google.gerrit.server.git.MergeException { refLogIdent = null ; return _run ( mergeTip , toMerge ) ; }

Target:
public final com.google.gerrit.server.git.MergeTip run ( final com.google.gerrit.server.git.CodeReviewCommit currentTip , final java.util.Collection < com.google.gerrit.server.git.CodeReviewCommit > toMerge ) throws com.google.gerrit.server.git.MergeException { refLogIdent = null ; return _run ( currentTip , toMerge ) ; }
Source:
public org.apache.http.impl.client.CloseableHttpClient get ( ) { return org.apache.http.impl.client.HttpClients.custom ( ) . setConnectionManager ( customConnectionManager ( ) ) . setDefaultRequestConfig ( customRequestConfig ( ) ) . setServiceUnavailableRetryStrategy ( customServiceUnavailRetryStrategy ( ) ) . build ( ) ; }

Target:
public org.apache.http.impl.client.CloseableHttpClient get ( ) { return org.apache.http.impl.client.HttpClients.custom ( ) . setConnectionManager ( create ( socketMgr.get ( ) ) ) . setDefaultRequestConfig ( customRequestConfig ( ) ) . setServiceUnavailableRetryStrategy ( customServiceUnavailRetryStrategy ( ) ) . build ( ) ; }
Source:
private boolean isDraftVisible ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.query.change.ChangeData cd ) throws com.google.gwtorm.server.OrmException { return ( isOwner ( ) ) || ( isReviewer ( db , cd ) ) ; }

Target:
private boolean isDraftVisible ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.query.change.ChangeData cd ) throws com.google.gwtorm.server.OrmException { return ( ( isOwner ( ) ) || ( isReviewer ( db , cd ) ) ) || ( getRefControl ( ) . canViewDrafts ( ) ) ; }
Source:
public ApprovalCategory.Id getApprovalCategoryId ( ) { return new com.google.gerrit.reviewdb.client.ApprovalCategory.Id ( getId ( ) ) ; }

Target:
public com.google.gerrit.reviewdb.client.PatchSetApproval.LabelId getLabelId ( ) { return new com.google.gerrit.reviewdb.client.PatchSetApproval.LabelId ( ( ( id ) != null ? id : name ) ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.rpc.NativeMap < com.googlesource.gerrit.plugins.verifystatus.client.VerificationInfo > result ) { if ( ! ( result.isEmpty ( ) ) ) { display ( result ) ; } }

Target:
public void onSuccess ( com.google.gerrit.client.rpc.NativeMap < com.googlesource.gerrit.plugins.verifystatus.client.VerificationInfo > result ) { if ( ! ( result.isEmpty ( ) ) ) { display ( patchsetId , result ) ; } }
Source:
public void onSuccess ( ) { com.google.gerrit.client.Gerrit.display ( token , ( edit ? new com.google.gerrit.client.editor.EditScreen ( baseId , id , line ) : new com.google.gerrit.client.diff.SideBySide ( baseId , id.getParentKey ( ) , id.get ( ) , side , line ) ) ) ; }

Target:
public void onSuccess ( ) { com.google.gerrit.client.Gerrit.display ( token , select ( ) ) ; }
Source:
public void onSuccess ( com.google.gwtjsonrpc.common.VoidResult result ) { }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { reviewedPanels.go ( ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.VoidResult n ) { prefs.copyTo ( com.google.gerrit.client.Gerrit.getEditPreferences ( ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.account.EditPreferences p ) { com.google.gerrit.client.Gerrit.setEditPreferences ( p.copyTo ( new com.google.gerrit.extensions.client.EditPreferencesInfo ( ) ) ) ; }
Source:
void onCancel ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( ( cm.isClean ( generation ) ) || ( com.google.gwt.user.client.Window.confirm ( EditConstants.I.discardUnsavedChanges ( ) ) ) ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChangeInEditMode ( revision.getParentKey ( ) ) ) ; } }

Target:
void onClose ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( ( cm.isClean ( generation ) ) || ( com.google.gwt.user.client.Window.confirm ( EditConstants.I.cancelUnsavedChanges ( ) ) ) ) { upToChange ( ) ; } }
Source:
private void initDisplayControls ( ) { final com.google.gwt.user.client.ui.Grid displayControls = new com.google.gwt.user.client.ui.Grid ( 0 , 4 ) ; displayControls.setStyleName ( "gerrit-PatchScreen-DisplayControls" ) ; add ( displayControls ) ; createIgnoreWhitespace ( displayControls , 0 , 0 ) ; createContext ( displayControls , 0 , 2 ) ; }

Target:
private void initDisplayControls ( ) { final com.google.gwt.user.client.ui.Grid displayControls = new com.google.gwt.user.client.ui.Grid ( 0 , 5 ) ; displayControls.setStyleName ( "gerrit-PatchScreen-DisplayControls" ) ; add ( displayControls ) ; createIgnoreWhitespace ( displayControls , 0 , 0 ) ; createContext ( displayControls , 0 , 2 ) ; }
Source:
public boolean isNotify ( final com.google.gerrit.reviewdb.client.AccountProjectWatch.NotifyType type ) { switch ( type ) { case NEW_CHANGES : return notifyNewChanges ; case ALL_COMMENTS : return notifyAllComments ; case SUBMITTED_CHANGES : return notifySubmittedChanges ; case ALL : break ; } return false ; }

Target:
public boolean isNotify ( final com.google.gerrit.reviewdb.client.AccountProjectWatch.NotifyType type ) { switch ( type ) { case NEW_CHANGES : return notifyNewChanges ; case NEW_PATCHSETS : return notifyNewPatchSets ; case ALL_COMMENTS : return notifyAllComments ; case SUBMITTED_CHANGES : return notifySubmittedChanges ; case ALL : break ; } return false ; }
Source:
public boolean match ( T object ) throws com.google.gwtorm.server.OrmException { int valueInt = getValueInt ( object ) ; return ( valueInt >= ( range.min ) ) && ( valueInt <= ( range.max ) ) ; }

Target:
public boolean match ( T object ) throws com.google.gwtorm.server.OrmException { java.lang.Integer valueInt = getValueInt ( object ) ; if ( valueInt == null ) { return false ; } return ( valueInt >= ( range.min ) ) && ( valueInt <= ( range.max ) ) ; }
Source:
private static com.google.gerrit.reviewdb.client.RevId toRevId ( final org.eclipse.jgit.revwalk.RevCommit src ) { return new com.google.gerrit.reviewdb.client.RevId ( src.getId ( ) . name ( ) ) ; }

Target:
private void logError ( java.lang.String msg ) { logError ( msg , null ) ; }
Source:
public void run ( ) { closedIndex.close ( ) ; }

Target:
public void close ( ) { com.google.common.util.concurrent.MoreExecutors.shutdownAndAwaitTermination ( executor , java.lang.Long.MAX_VALUE , java.util.concurrent.TimeUnit.SECONDS ) ; try { openIndex.close ( ) ; } finally { closedIndex.close ( ) ; } }
Source:
public boolean containsComment ( com.google.gerrit.reviewdb.client.PatchLineComment c ) { for ( com.google.gerrit.reviewdb.client.PatchLineComment existing : comments.values ( ) ) { if ( c.getKey ( ) . equals ( existing.getKey ( ) ) ) { return true ; } } return false ; }

Target:
public boolean containsComment ( com.google.gerrit.reviewdb.client.Comment c ) { for ( com.google.gerrit.reviewdb.client.Comment existing : comments.values ( ) ) { if ( c.key.equals ( existing.key ) ) { return true ; } } return false ; }
Source:
public void projectAccess ( final com.google.gerrit.reviewdb.Project.NameKey projectName , final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ProjectAccess > callback ) { projectAccessFactory.create ( projectName ) . to ( callback ) ; }

Target:
public void projectDetail ( final com.google.gerrit.reviewdb.client.Project.NameKey projectName , final com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ProjectDetail > callback ) { projectDetailFactory.create ( projectName ) . to ( callback ) ; }
Source:
private com.google.gerrit.server.project.ChangeControl stubChangeControl ( com.google.gerrit.reviewdb.client.Change c ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.testutil.TestChanges.stubChangeControl ( repoManager , c , allUsers , changeOwner ) ; }

Target:
private com.google.gerrit.server.project.ChangeControl stubChangeControl ( com.google.gerrit.reviewdb.client.Change c ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.testutil.TestChanges.stubChangeControl ( repoManager , migration , c , allUsers , changeOwner ) ; }
Source:
public void run ( ) { if ( cm.hasVimSearchHighlight ( ) ) { net.codemirror.lib.CodeMirror.handleVimKey ( cm , "n" ) ; } else { diffChunkNav ( cm , false ) . run ( ) ; } }

Target:
public void run ( ) { if ( cm.hasVimSearchHighlight ( ) ) { net.codemirror.lib.CodeMirror.handleVimKey ( cm , "n" ) ; } else { diffChunkNav ( cm , Direction.NEXT ) . run ( ) ; } }
Source:
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 , int start ) throws com.google.gerrit.server.query.QueryParseException ;

Target:
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 , int start , int limit ) throws com.google.gerrit.server.query.QueryParseException ;
Source:
public void visibleGroups ( final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.GroupList > callback ) { visibleGroupsFactory.create ( ) . to ( callback ) ; }

Target:
public void visibleGroups ( final com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.GroupList > callback ) { visibleGroupsFactory.create ( ) . to ( callback ) ; }
Source:
private java.lang.String getCommentPrefix ( com.google.gerrit.server.events.ChangeAttribute change ) { return ( getChangeIdUrl ( change ) ) + " | " ; }

Target:
private java.lang.String getCommentPrefix ( com.google.gerrit.server.data.ChangeAttribute change ) { return ( getChangeIdUrl ( change ) ) + " | " ; }
Source:
public com.google.gerrit.server.notedb.ChangeUpdate getChangeUpdate ( ) { return update ; }

Target:
public com.google.gerrit.server.notedb.ChangeUpdate getUpdate ( ) { return update ; }
Source:
public boolean handles ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) { return uuid.get ( ) . startsWith ( com.googlesource.gerrit.plugins.github.group.GitHubOrganisationGroup.UUID_PREFIX ) ; }

Target:
public boolean handles ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) { return uuid.get ( ) . startsWith ( com.googlesource.gerrit.plugins.github.group.GitHubGroup.UUID_PREFIX ) ; }
Source:
public boolean canUploadMerges ( ) { return projectControl.controlForRef ( ( "refs/for/" + ( getRefName ( ) ) ) ) . canPerform ( Permission.PUSH_MERGE ) ; }

Target:
public boolean canUploadMerges ( ) { return ( projectControl.controlForRef ( ( "refs/for/" + ( getRefName ( ) ) ) ) . canPerform ( Permission.PUSH_MERGE ) ) && ( canWrite ( ) ) ; }
Source:
public boolean isInGroup ( final com.google.gerrit.client.reviewdb.Account.Id accountId , final com.google.gerrit.client.reviewdb.AccountGroup.Id groupId ) { final java.util.Set < com.google.gerrit.client.reviewdb.AccountGroup.Id > m = getGroups ( accountId ) ; return m.contains ( groupId ) ; }

Target:
public boolean isAutoGroup ( final com.google.gerrit.client.reviewdb.AccountGroup.Id groupId ) { return ( isAnonymousUsers ( groupId ) ) || ( isRegisteredUsers ( groupId ) ) ; }
Source:
public void add ( final java.lang.Runnable task ) { synchronized ( cleanup ) { cleanup.add ( task ) ; } }

Target:
public void add ( final java.lang.Runnable task ) { synchronized ( cleanup ) { if ( run ) { throw new java.lang.IllegalStateException ( "Request has already been cleaned up" ) ; } cleanup.add ( task ) ; } }
Source:
public boolean multiValued ( ) { return false ; }

Target:
public boolean hidden ( ) { return false ; }
Source:
public com.google.gerrit.acceptance.PushOneCommit.Result to ( org.eclipse.jgit.api.Git git , java.lang.String ref ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.GitUtil.add ( git , fileName , content ) ; return execute ( git , ref ) ; }

Target:
com.google.gerrit.acceptance.PushOneCommit create ( com.google.gerrit.reviewdb.server.ReviewDb db , org.eclipse.jgit.lib.PersonIdent i , org.eclipse.jgit.api.Git git , @ com.google.inject.assistedinject.Assisted ( value = "subject" ) java.lang.String subject , @ com.google.inject.assistedinject.Assisted ( value = "fileName" ) java.lang.String fileName , @ com.google.inject.assistedinject.Assisted ( value = "content" ) java.lang.String content , @ com.google.inject.assistedinject.Assisted ( value = "changeId" ) java.lang.String changeId ) ;
Source:
public void setHeader ( java.lang.String name , java.lang.String value ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public void addIntHeader ( java.lang.String name , int value ) { headers.put ( name , java.lang.Integer.toString ( value ) ) ; }
Source:
public T call ( ) throws java.lang.Exception { com.google.gerrit.server.util.RequestContext old = local.setContext ( context ) ; try { return callable.call ( ) ; } finally { local.setContext ( old ) ; } }

Target:
public com.google.inject.Provider < com.google.gerrit.reviewdb.server.ReviewDb > getReviewDbProvider ( ) { return dbProviderProvider.get ( ) ; }
Source:
protected boolean isAllProjects ( com.google.gerrit.server.project.ProjectResource rsrc ) { return rsrc.getControl ( ) . getProject ( ) . getNameKey ( ) . equals ( allProjectsName ) ; }

Target:
public void assertDeletePermission ( com.google.gerrit.server.project.ProjectResource rsrc ) throws com.google.gerrit.extensions.restapi.AuthException { if ( ! ( canDelete ( rsrc ) ) ) { throw new com.google.gerrit.extensions.restapi.AuthException ( "not allowed to delete project" ) ; } }
Source:
void setChange ( com.google.gerrit.reviewdb.client.Change c ) { change = c ; }

Target:
public com.google.gerrit.server.notedb.ChangeNotes notes ( ) throws com.google.gwtorm.server.OrmException { if ( ( notes ) == null ) { notes = notesFactory.create ( change ( ) ) ; } return notes ; }
Source:
com.google.gerrit.server.change.ChangeInserter create ( com.google.gerrit.server.project.RefControl ctl , com.google.gerrit.reviewdb.client.Change.Id cid , org.eclipse.jgit.revwalk.RevCommit rc ) ;

Target:
com.google.gerrit.server.change.ChangeInserter create ( com.google.gerrit.reviewdb.client.Change.Id cid , org.eclipse.jgit.revwalk.RevCommit rc , java.lang.String refName ) ;
Source:
void evict ( com.google.gerrit.reviewdb.client.AccountGroup group ) throws java.io.IOException ;

Target:
void onCreateGroup ( com.google.gerrit.reviewdb.client.AccountGroup group ) throws java.io.IOException ;
Source:
public void setUp ( ) { org.mockito.Mockito.when ( configuration.peerInfoJGroups ( ) ) . thenReturn ( jgroupsConfig ) ; finder = new com.ericsson.gerrit.plugins.highavailability.peers.jgroups.InetAddressFinder ( configuration ) ; }

Target:
public void setUp ( ) { org.mockito.Mockito.when ( configuration.jgroups ( ) ) . thenReturn ( jgroupsConfig ) ; finder = new com.ericsson.gerrit.plugins.highavailability.peers.jgroups.InetAddressFinder ( configuration ) ; }
Source:
private static com.google.gerrit.client.rpc.RestApi group ( com.google.gerrit.reviewdb.client.AccountGroup.UUID group ) { return new com.google.gerrit.client.rpc.RestApi ( "/groups/" ) . id ( group.get ( ) ) ; }

Target:
private static com.google.gerrit.client.rpc.RestApi group ( com.google.gerrit.reviewdb.client.AccountGroup.UUID group ) { return com.google.gerrit.client.groups.GroupApi.group ( group.get ( ) ) ; }
Source:
protected void configureServlets ( ) { serve ( "/become" ) . with ( com.google.gerrit.httpd.auth.become.BecomeAnyAccountLoginServlet.class ) ; }

Target:
protected void configureServlets ( ) { filter ( "/*" ) . through ( com.google.gerrit.httpd.RequestCleanupFilter.class ) ; }
Source:
public void onChange ( final com.google.gwt.event.dom.client.ChangeEvent event ) { updateCategorySelection ( ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { final java.util.HashSet < com.google.gerrit.reviewdb.RefRight.Key > refRightIds = rights.getRefRightIdsChecked ( ) ; doDeleteRefRights ( refRightIds ) ; }
Source:
private java.util.List < com.google.gerrit.extensions.common.SuggestedReviewerInfo > suggestReviewers ( java.lang.String changeId , java.lang.String query , int n ) throws java.io.IOException { return suggestReviewers ( adminSession , changeId , query , n ) ; }

Target:
private java.util.List < com.google.gerrit.extensions.common.SuggestedReviewerInfo > suggestReviewers ( java.lang.String changeId , java.lang.String query , int n ) throws java.lang.Exception { return gApi.changes ( ) . id ( changeId ) . suggestReviewers ( query ) . withLimit ( n ) . get ( ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo result ) { sent = true ; hide ( ) ; com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange2 ( result.legacy_id ( ) ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo result ) { sent = true ; hide ( ) ; com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( result.legacy_id ( ) ) ) ; }
Source:
private void setRejectImplicitMerges ( ) throws java.lang.Exception { com.google.gerrit.server.git.ProjectConfig cfg = projectCache.checkedGet ( project ) . getConfig ( ) ; cfg.getProject ( ) . setBooleanConfig ( BooleanProjectConfig.REJECT_IMPLICIT_MERGES , InheritableBoolean.TRUE ) ; saveProjectConfig ( project , cfg ) ; }

Target:
private void setRejectImplicitMerges ( ) throws java.lang.Exception { com.google.gerrit.server.project.ProjectConfig cfg = projectCache.checkedGet ( project ) . getConfig ( ) ; cfg.getProject ( ) . setBooleanConfig ( BooleanProjectConfig.REJECT_IMPLICIT_MERGES , InheritableBoolean.TRUE ) ; saveProjectConfig ( project , cfg ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { toggleReviewed ( ) . run ( ) ; }

Target:
public void onResize ( com.google.gwt.event.logical.shared.ResizeEvent event ) { resizeCodeMirror ( ) ; resizeBoxPaddings ( ) ; }
Source:
public com.google.gerrit.extensions.restapi.RestModifyView < com.google.gerrit.server.project.ProjectResource , ? > create ( com.google.gerrit.server.project.ProjectResource parent , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.RestApiException { if ( id.toString ( ) . equals ( "default" ) ) { return createDefault.get ( ) ; } throw new com.google.gerrit.extensions.restapi.ResourceNotFoundException ( id ) ; }

Target:
public static boolean isDefaultDashboard ( @ com.google.gerrit.common.Nullable com.google.gerrit.extensions.restapi.IdString id ) { return ( id != null ) && ( com.google.gerrit.server.project.DashboardsCollection.isDefaultDashboard ( id.toString ( ) ) ) ; }
Source:
private void initTcpIpForwardFilter ( ) { setTcpIpForwardFilter ( new org.apache.sshd.server.TcpIpForwardFilter ( ) { @ java.lang.Override public boolean canConnect ( java.net.InetSocketAddress address , org.apache.sshd.server.session.ServerSession session ) { return false ; } @ java.lang.Override public boolean canListen ( java.net.InetSocketAddress address , org.apache.sshd.server.session.ServerSession session ) { return false ; } } ) ; }

Target:
public boolean canForwardX11 ( org.apache.sshd.server.session.ServerSession session ) { return false ; }
Source:
public boolean equals ( final java.lang.Object o ) { return ( o instanceof com.google.gerrit.client.reviewdb.PatchContent.Key ) && ( sha1.equals ( ( ( com.google.gerrit.client.reviewdb.PatchContent.Key ) ( o ) ) . sha1 ) ) ; }

Target:
public boolean equals ( final java.lang.Object o ) { return ( ( getClass ( ) ) == ( o.getClass ( ) ) ) && ( sha1.equals ( ( ( com.google.gerrit.client.reviewdb.PatchContent.Key ) ( o ) ) . sha1 ) ) ; }
Source:
public void setShowUsernameInReviewCategory ( final boolean showUsernameInReviewCategory ) { this . showUserInReview = showUsernameInReviewCategory ; }

Target:
public void setSizeBarInChangeTable ( boolean sizeBarInChangeTable ) { this . sizeBarInChangeTable = sizeBarInChangeTable ; }
Source:
public boolean equals ( com.google.gerrit.server.patch.CharText a , int ai , com.google.gerrit.server.patch.CharText b , int bi ) { return ( a.charAt ( ai ) ) == ( b.charAt ( bi ) ) ; }

Target:
public boolean equals ( com.google.gerrit.server.diff.CharText a , int ai , com.google.gerrit.server.diff.CharText b , int bi ) { return ( a.charAt ( ai ) ) == ( b.charAt ( bi ) ) ; }
Source:
public int compare ( com.google.gerrit.reviewdb.AccountExternalId a , com.google.gerrit.reviewdb.AccountExternalId b ) { return emailOf ( a ) . compareTo ( emailOf ( b ) ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { updateDeleteButton ( ) ; super . onFailure ( caught ) ; }
Source:
private static int getInt ( org.eclipse.jgit.transport.RemoteConfig rc , org.eclipse.jgit.lib.Config cfg , java.lang.String name , int defValue ) { return cfg.getInt ( "remote" , rc.getName ( ) , name , defValue ) ; }

Target:
public com.googlesource.gerrit.plugins.replication.Destination.QueueInfo getQueueInfo ( ) { synchronized ( stateLock ) { return new com.googlesource.gerrit.plugins.replication.Destination.QueueInfo ( pending , inFlight ) ; } }
Source:
public org.eclipse.jgit.lib.RefUpdate.Result modifyFile ( com.google.gerrit.server.edit.ChangeEdit edit , java.lang.String file , com.google.gerrit.extensions.restapi.RawInput content ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.project.InvalidChangeOperationException , java.io.IOException { return modify ( com.google.gerrit.server.edit.ChangeEditModifier.TreeOperation.CHANGE_ENTRY , edit , file , null , content ) ; }

Target:
public org.eclipse.jgit.lib.RefUpdate.Result deleteFile ( com.google.gerrit.server.edit.ChangeEdit edit , java.lang.String file ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.project.InvalidChangeOperationException , java.io.IOException { return modify ( edit , new com.google.gerrit.server.edit.tree.DeleteFileModification ( file ) ) ; }
Source:
private static boolean isBecomeAnyoneEnabled ( ) { try { java.lang.String s = "com.google.gerrit.server.http.BecomeAnyAccountLoginServlet" ; return java.lang.Boolean.getBoolean ( s ) ; } catch ( java.lang.SecurityException se ) { return false ; } }

Target:
private static boolean isBecomeAnyoneEnabled ( ) { try { return java.lang.Boolean.getBoolean ( "com.google.gerrit.httpd.auth.become" ) ; } catch ( java.lang.SecurityException se ) { return false ; } }
Source:
com.google.gwtorm.client.ResultSet < com.google.gerrit.client.reviewdb.AccountSshKey > byAccount ( com.google.gerrit.client.reviewdb.Account.Id id ) throws com.google.gwtorm.client.OrmException ;

Target:
com.google.gwtorm.client.ResultSet < com.google.gerrit.client.reviewdb.AccountSshKey > valid ( com.google.gerrit.client.reviewdb.Account.Id id ) throws com.google.gwtorm.client.OrmException ;
Source:
private com.google.gwtexpui.clippy.client.CopyableLabel getCommitLabel ( com.google.gerrit.client.changes.ChangeInfo.CommitInfo c ) { com.google.gwtexpui.clippy.client.CopyableLabel copyLabel ; copyLabel = new com.google.gwtexpui.clippy.client.CopyableLabel ( c.commit ( ) ) ; copyLabel.setTitle ( c.subject ( ) ) ; copyLabel.setStyleName ( style.clippy ( ) ) ; return copyLabel ; }

Target:
private com.google.gwtexpui.clippy.client.CopyableLabel getCommitLabel ( com.google.gerrit.client.info.ChangeInfo.CommitInfo c ) { com.google.gwtexpui.clippy.client.CopyableLabel copyLabel ; copyLabel = new com.google.gwtexpui.clippy.client.CopyableLabel ( c.commit ( ) ) ; copyLabel.setTitle ( c.subject ( ) ) ; copyLabel.setStyleName ( style.clippy ( ) ) ; return copyLabel ; }
Source:
private com.google.gerrit.server.patch.PatchListKey getKey ( org.eclipse.jgit.lib.ObjectId revisionIdA , org.eclipse.jgit.lib.ObjectId revisionIdB ) { return new com.google.gerrit.server.patch.PatchListKey ( project , revisionIdA , revisionIdB , com.google.gerrit.reviewdb.client.AccountDiffPreference.Whitespace.IGNORE_NONE ) ; }

Target:
private com.google.gerrit.server.patch.PatchListKey getKey ( org.eclipse.jgit.lib.ObjectId revisionIdA , org.eclipse.jgit.lib.ObjectId revisionIdB ) { return new com.google.gerrit.server.patch.PatchListKey ( revisionIdA , revisionIdB , com.google.gerrit.extensions.client.DiffPreferencesInfo.Whitespace.IGNORE_NONE ) ; }
Source:
void expandAll ( ) { expandSideAll ( ) ; otherBar.expandSideAll ( ) ; }

Target:
private void expandAll ( ) { expandSideAll ( ) ; otherBar.expandSideAll ( ) ; manager.remove ( this , otherBar ) ; }
Source:
public void setCommentLinks ( final java.util.List < com.google.gwtexpui.safehtml.client.RegexFindReplace > cl ) { commentLinks = cl ; }

Target:
public void setSerializableCommentLinks ( java.util.List < com.google.gerrit.common.data.GerritConfig.CommentLink > commentLinks ) { findReplaceLinks = null ; this . commentLinks = java.util.Collections.unmodifiableList ( commentLinks ) ; }
Source:
naming.LdapSchema getSchema ( javax.naming.directory.DirContext ctx ) { if ( ( ldapSchema ) == null ) { synchronized ( this ) { if ( ( ldapSchema ) == null ) { ldapSchema = new naming.LdapSchema ( ctx ) ; } } } return ldapSchema ; }

Target:
com.google.gerrit.server.auth.ldap.Helper.LdapSchema getSchema ( javax.naming.directory.DirContext ctx ) { if ( ( ldapSchema ) == null ) { synchronized ( this ) { if ( ( ldapSchema ) == null ) { ldapSchema = new com.google.gerrit.server.auth.ldap.Helper.LdapSchema ( ctx ) ; } } } return ldapSchema ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( formatter , project , resource , revId , metaConfigRevId , parentsHash ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( formatter , project , resource , revId , metaConfigRevId , parentsHash , revIdB , diffMode ) ; }
Source:
com.google.gerrit.extensions.restapi.Response < com.google.gerrit.extensions.common.ChangeInfo > apply ( com.google.gerrit.server.change.RevisionResource rsrc ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.extensions.restapi.Response.withMustRevalidate ( json.format ( rsrc ) ) ; }

Target:
com.google.gerrit.extensions.restapi.Response < com.google.gerrit.extensions.common.ChangeInfo > apply ( com.google.gerrit.server.change.RevisionResource rsrc ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.extensions.restapi.Response.withMustRevalidate ( json.create ( options ) . format ( rsrc ) ) ; }
Source:
public void onResize ( com.google.gwt.event.logical.shared.ResizeEvent event ) { adjustCodeMirrorHeight ( ) ; }

Target:
public void onResize ( com.google.gwt.event.logical.shared.ResizeEvent event ) { cm.adjustHeight ( header.getOffsetHeight ( ) ) ; }
Source:
public void setParent ( org.eclipse.jgit.revwalk.RevCommit parent ) throws java.lang.Exception { commitBuilder.noParents ( ) ; commitBuilder.parent ( parent ) ; }

Target:
public com.google.gerrit.acceptance.PushOneCommit setParent ( org.eclipse.jgit.revwalk.RevCommit parent ) throws java.lang.Exception { commitBuilder.noParents ( ) ; commitBuilder.parent ( parent ) ; return this ; }
Source:
protected void display ( final com.google.gerrit.reviewdb.client.Account userAccount ) { super . display ( userAccount ) ; if ( "" . equals ( nameTxt.getText ( ) ) ) { nameTxt.setFocus ( true ) ; save.setEnabled ( true ) ; } }

Target:
protected void display ( com.google.gerrit.client.info.AccountInfo account ) { super . display ( account ) ; if ( "" . equals ( nameTxt.getText ( ) ) ) { nameTxt.setFocus ( true ) ; save.setEnabled ( true ) ; } }
Source:
private final native java.lang.String themeRaw ( ) ;

Target:
public final native boolean lineWrapping ( ) ;
Source:
public com.google.gerrit.server.git.WorkQueue.Executor getReceiveCommitsExecutor ( @ com.google.gerrit.server.config.GerritServerConfig org.eclipse.jgit.lib.Config config , com.google.gerrit.server.git.WorkQueue queues ) { int poolSize = config.getInt ( "receive" , null , "threadPoolSize" , java.lang.Runtime.getRuntime ( ) . availableProcessors ( ) ) ; return queues.createQueue ( poolSize , "ReceiveCommits" ) ; }

Target:
public WorkQueue.Executor createReceiveCommitsExecutor ( @ com.google.gerrit.server.config.GerritServerConfig org.eclipse.jgit.lib.Config config , com.google.gerrit.server.git.WorkQueue queues ) { int poolSize = config.getInt ( "receive" , null , "threadPoolSize" , java.lang.Runtime.getRuntime ( ) . availableProcessors ( ) ) ; return queues.createQueue ( poolSize , "ReceiveCommits" ) ; }
Source:
protected static com.google.gerrit.server.query.QueryParseException error ( java.lang.String msg , java.lang.Throwable why ) { return new com.google.gerrit.server.query.QueryParseException ( msg , why ) ; }

Target:
protected static com.google.gerrit.index.query.QueryParseException error ( java.lang.String msg , java.lang.Throwable why ) { return new com.google.gerrit.index.query.QueryParseException ( msg , why ) ; }
Source:
private void assertProblems ( org.eclipse.jgit.transport.PushCertificate cert , java.lang.String ... expected ) throws java.lang.Exception { com.google.gerrit.gpg.CheckResult result = checker.check ( cert ) . getCheckResult ( ) ; org.junit.Assert.assertEquals ( java.util.Arrays.asList ( expected ) , result.getProblems ( ) ) ; }

Target:
private void assertNoProblems ( org.eclipse.jgit.transport.PushCertificate cert ) { com.google.gerrit.gpg.CheckResult result = checker.check ( cert ) . getCheckResult ( ) ; org.junit.Assert.assertEquals ( java.util.Collections.emptyList ( ) , result.getProblems ( ) ) ; }
Source:
public java.lang.String getServletPath ( ) { return ( ( javax.servlet.http.HttpServletRequest ) ( getRequest ( ) ) ) . getRequestURI ( ) ; }

Target:
public java.lang.String getServletPath ( ) { return ( ( javax.servlet.http.HttpServletRequest ) ( getRequest ( ) ) ) . getRequestURI ( ) . substring ( contextPath.length ( ) ) ; }
Source:
public int compare ( com.google.gerrit.extensions.common.ChangeInfo c1 , com.google.gerrit.extensions.common.ChangeInfo c2 ) { return c1.branch.compareTo ( c2.branch ) ; }

Target:
public int compare ( com.google.gerrit.extensions.common.ChangeInfo c1 , com.google.gerrit.extensions.common.ChangeInfo c2 ) { int compareResult = c1.branch.compareTo ( c2.branch ) ; if ( compareResult == 0 ) { return java.lang.Integer.compare ( c1._number , c2._number ) ; } return compareResult ; }
Source:
public void onClick ( final com.google.gwt.user.client.ui.Widget sender ) { keys.deleteCurrent ( ) ; }

Target:
public void onClick ( final com.google.gwt.user.client.ui.Widget sender ) { keys.deleteChecked ( ) ; }
Source:
public org.eclipse.jgit.lib.ReflogReader getReflogReader ( java.lang.String refName ) throws java.io.IOException { return ( getRef ( refName ) ) != null ? delegate.getReflogReader ( refName ) : null ; }

Target:
public org.eclipse.jgit.lib.ReflogReader getReflogReader ( java.lang.String refName ) throws java.io.IOException { return ( exactRef ( refName ) ) != null ? delegate.getReflogReader ( refName ) : null ; }
Source:
com.googlesource.gerrit.plugins.reviewers.AddReviewersByConfiguration create ( com.google.gerrit.reviewdb.client.Change change , java.util.Set < com.google.gerrit.reviewdb.client.Account.Id > reviewers ) ;

Target:
com.googlesource.gerrit.plugins.reviewers.AddReviewersByConfiguration create ( com.google.gerrit.extensions.common.ChangeInfo changeInfo , java.util.Set < com.google.gerrit.reviewdb.client.Account.Id > reviewers ) ;
Source:
private boolean canPerformOnAnyRef ( com.google.gerrit.reviewdb.ApprovalCategory.Id actionId , short requireValue ) { return canPerform ( actionId , requireValue , null ) ; }

Target:
public boolean isOwner ( ) { return ( controlForRef ( RefRight.ALL ) . isOwner ( ) ) || ( getCurrentUser ( ) . isAdministrator ( ) ) ; }
Source:
public void deleteVote ( com.google.gerrit.extensions.api.changes.DeleteVoteInput input ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteVote.apply ( new com.google.gerrit.server.change.VoteResource ( reviewer , input.label ) , input ) ; } catch ( com.google.gerrit.server.update.UpdateException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot delete vote" , e ) ; } }

Target:
public void deleteVote ( com.google.gerrit.extensions.api.changes.DeleteVoteInput input ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteVote.apply ( new com.google.gerrit.server.change.VoteResource ( reviewer , input.label ) , input ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot delete vote" , e ) ; } }
Source:
void display ( final com.google.gerrit.client.reviewdb.Account account ) { setDefaultContext ( account.getDefaultContext ( ) ) ; }

Target:
void display ( final com.google.gerrit.client.reviewdb.Account account ) { showSiteHeader.setChecked ( account.isShowSiteHeader ( ) ) ; setDefaultContext ( account.getDefaultContext ( ) ) ; }
Source:
public void testInitialValueNotNull ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( com.ericsson.gerrit.plugins.multimaster.Context.isForwardedEvent ( ) ) . isNotNull ( ) ; com.google.common.truth.Truth.assertThat ( com.ericsson.gerrit.plugins.multimaster.Context.isForwardedEvent ( ) ) . isFalse ( ) ; }

Target:
public void testInitialValueNotNull ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( com.ericsson.gerrit.plugins.multimaster.forwarder.Context.isForwardedEvent ( ) ) . isNotNull ( ) ; com.google.common.truth.Truth.assertThat ( com.ericsson.gerrit.plugins.multimaster.forwarder.Context.isForwardedEvent ( ) ) . isFalse ( ) ; }
Source:
public static com.google.gerrit.server.patch.IntraLineDiffArgs create ( com.google.gerrit.server.patch.Text aText , com.google.gerrit.server.patch.Text bText , java.util.List < org.eclipse.jgit.diff.Edit > edits , com.google.gerrit.reviewdb.client.Project.NameKey project , org.eclipse.jgit.lib.ObjectId commit , java.lang.String path ) { return new com.google.gerrit.server.patch.AutoValue_IntraLineDiffArgs ( aText , bText , com.google.gerrit.server.patch.IntraLineDiffArgs.deepCopyEdits ( edits ) , project , commit , path ) ; }

Target:
public static com.google.gerrit.server.diff.IntraLineDiffArgs create ( com.google.gerrit.server.diff.Text aText , com.google.gerrit.server.diff.Text bText , java.util.List < org.eclipse.jgit.diff.Edit > edits , com.google.gerrit.reviewdb.client.Project.NameKey project , org.eclipse.jgit.lib.ObjectId commit , java.lang.String path ) { return new com.google.gerrit.server.diff.AutoValue_IntraLineDiffArgs ( aText , bText , com.google.gerrit.server.diff.IntraLineDiffArgs.deepCopyEdits ( edits ) , project , commit , path ) ; }
Source:
protected com.google.gerrit.httpd.rpc.GerritJsonServlet.GerritCall createActiveCall ( final javax.servlet.http.HttpServletRequest req , final javax.servlet.http.HttpServletResponse rsp ) { final com.google.gerrit.httpd.rpc.GerritJsonServlet.GerritCall call = new com.google.gerrit.httpd.rpc.GerritJsonServlet.GerritCall ( session.get ( ) , req , rsp ) ; com.google.gerrit.httpd.rpc.GerritJsonServlet.currentCall.set ( call ) ; return call ; }

Target:
protected com.google.gerrit.httpd.rpc.GerritJsonServlet.GerritCall createActiveCall ( final javax.servlet.http.HttpServletRequest req , final javax.servlet.http.HttpServletResponse rsp ) { final com.google.gerrit.httpd.rpc.GerritJsonServlet.GerritCall call = new com.google.gerrit.httpd.rpc.GerritJsonServlet.GerritCall ( session.get ( ) , req , new com.google.gerrit.httpd.rpc.AuditedHttpServletResponse ( rsp ) ) ; com.google.gerrit.httpd.rpc.GerritJsonServlet.currentCall.set ( call ) ; return call ; }
Source:
public com.google.gerrit.server.query.change.QueryOptions withLimit ( int newLimit ) { return com.google.gerrit.server.query.change.QueryOptions.create ( config ( ) , start ( ) , newLimit , fields ( ) ) ; }

Target:
public com.google.gerrit.server.index.QueryOptions withLimit ( int newLimit ) { return com.google.gerrit.server.index.QueryOptions.create ( config ( ) , start ( ) , newLimit , fields ( ) ) ; }
Source:
public abstract java.util.Collection < com.google.gerrit.reviewdb.client.AccountProjectWatch > getNotificationFilters ( ) ;

Target:
public static < T > com.google.gerrit.server.CurrentUser.PropertyKey < T > create ( ) { return new com.google.gerrit.server.CurrentUser.PropertyKey < > ( ) ; }
Source:
public com.google.gerrit.extensions.common.WebLinkInfo getPatchSetWebLink ( java.lang.String projectName , java.lang.String commit ) { return new com.google.gerrit.extensions.common.WebLinkInfo ( name , null , java.lang.String.format ( "%s/%s/+/%s" , baseUrl , projectName , commit ) , target ) ; }

Target:
public com.google.gerrit.extensions.common.WebLinkInfo getParentWebLink ( java.lang.String projectName , java.lang.String commit ) { return new com.google.gerrit.extensions.common.WebLinkInfo ( name , null , java.lang.String.format ( "%s/%s/+/%s" , baseUrl , projectName , commit ) , target ) ; }
Source:
public void setSession ( final org.apache.sshd.server.session.ServerSession session ) { this . session = session ; }

Target:
protected void onExit ( final int rc ) { exit.onExit ( rc ) ; cleanup.run ( ) ; }
Source:
public void configure ( ) { install ( dbInjector.getInstance ( com.google.gerrit.pgm.util.BatchProgramModule.class ) ) ; install ( new com.google.gerrit.server.index.DummyIndexModule ( ) ) ; factory ( ChangeResource.Factory.class ) ; }

Target:
public void configure ( ) { install ( dbInjector.getInstance ( com.google.gerrit.pgm.util.BatchProgramModule.class ) ) ; install ( new com.google.gerrit.server.index.DummyIndexModule ( ) ) ; factory ( ChangeResource.Factory.class ) ; factory ( GarbageCollection.Factory.class ) ; }
Source:
public void testLinkify_Parens1 ( ) { final com.google.gwtexpui.safehtml.client.SafeHtml o = com.google.gwtexpui.safehtml.client.SafeHtml_WikifyTest.html ( "A (http://go.here/) B" ) ; final com.google.gwtexpui.safehtml.client.SafeHtml n = o.wikify ( ) ; com.google.common.truth.Truth.assertThat ( o ) . isNotSameAs ( n ) ; com.google.common.truth.Truth.assertThat ( n.asString ( ) ) . isEqualTo ( "<p>A (<a href=\"http://go.here/\" target=\"_blank\">http://go.here/</a>) B</p>" ) ; }

Target:
public void testLinkify_Parens1 ( ) { final com.google.gwtexpui.safehtml.client.SafeHtml o = com.google.gwtexpui.safehtml.client.SafeHtml_WikifyTest.html ( "A (http://go.here/) B" ) ; final com.google.gwtexpui.safehtml.client.SafeHtml n = o.wikify ( ) ; com.google.common.truth.Truth.assertThat ( o ) . isNotSameAs ( n ) ; com.google.common.truth.Truth.assertThat ( n.asString ( ) ) . isEqualTo ( ( "<p>A (<a href=\"http://go.here/\" target=\"_blank\" rel=\"nofollow\"" + ">http://go.here/</a>) B</p>" ) ) ; }
Source:
public void pushBypassPrivateByDefaultEnabled ( ) throws java.lang.Exception { setPrivateByDefault ( project2 , InheritableBoolean.TRUE ) ; com.google.common.truth.Truth.assertThat ( createChange ( project2 , "refs/for/master%remove-private" ) . getChange ( ) . change ( ) . isPrivate ( ) ) . isEqualTo ( false ) ; }

Target:
public void pushBypassPrivateByDefaultEnabled ( ) throws java.lang.Exception { setPrivateByDefault ( project2 , InheritableBoolean.TRUE ) ; com.google.common.truth.Truth.assertThat ( createChange ( project2 , "refs/for/master%remove-private" ) . getChange ( ) . change ( ) . isPrivate ( ) ) . isFalse ( ) ; }
Source:
public void setUseContentMerge ( final com.google.gerrit.reviewdb.client.Project.InheritableBoolean cm ) { useContentMerge = cm ; }

Target:
public void setState ( final com.google.gerrit.extensions.api.projects.ProjectState newState ) { state = newState ; }
Source:
public final native boolean edit ( ) ;

Target:
public final native boolean is_edit ( ) ;
Source:
public synchronized javax.sql.DataSource get ( ) { if ( ! ( init ) ) { loadSiteLib ( ) ; init = true ; } return super . get ( ) ; }

Target:
public synchronized javax.sql.DataSource get ( ) { if ( ! ( init ) ) { com.google.gerrit.pgm.util.SiteLibraryLoaderUtil.loadSiteLib ( libdir ) ; init = true ; } return super . get ( ) ; }
Source:
java.lang.String publishComments ( java.lang.String changeId , int ps ) ;

Target:
java.lang.String diffBaseParent ( int parentNum ) ;
Source:
static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.account.AccountState > equalsName ( java.lang.String name ) { return new com.google.gerrit.server.query.account.AccountPredicates.AccountPredicate ( com.google.gerrit.server.index.account.AccountField.NAME_PART , AccountQueryBuilder.FIELD_NAME , name ) ; }

Target:
static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.account.AccountState > equalsName ( java.lang.String name ) { return new com.google.gerrit.server.query.account.AccountPredicates.AccountPredicate ( com.google.gerrit.server.index.account.AccountField.NAME_PART , AccountQueryBuilder.FIELD_NAME , name.toLowerCase ( ) ) ; }
Source:
abstract boolean hasReviewStarted ( ) ;

Target:
abstract com.google.gerrit.server.ReviewerByEmailSet pendingReviewersByEmail ( ) ;
Source:
protected boolean hasDifferences ( final com.google.gerrit.common.data.PatchScript script ) { boolean hasEdits = ! ( script.getEdits ( ) . isEmpty ( ) ) ; boolean hasMeta = ! ( script.getPatchHeader ( ) . isEmpty ( ) ) ; return hasEdits || hasMeta ; }

Target:
public boolean isPureMetaChange ( com.google.gerrit.common.data.PatchScript script ) { return ( ! ( hasEdits ( script ) ) ) && ( hasMeta ( script ) ) ; }
Source:
com.google.common.util.concurrent.ListenableFuture < ? > replace ( org.apache.lucene.index.Term term , org.apache.lucene.document.Document doc ) throws java.io.IOException { return new com.google.gerrit.lucene.SubIndex.NrtFuture ( writer.updateDocument ( term , doc ) ) ; }

Target:
public java.lang.Long call ( ) throws java.io.IOException , java.lang.InterruptedException { return writer.updateDocument ( term , doc ) ; }
Source:
private boolean isLive ( final java.io.File entry ) { final java.lang.String name = entry.getName ( ) ; return ( ErrorLogFile.LOG_NAME.equals ( name ) ) || ( name.endsWith ( ".pid" ) ) ; }

Target:
private boolean isLive ( final java.io.File entry ) { final java.lang.String name = entry.getName ( ) ; return ( ( ErrorLogFile.LOG_NAME.equals ( name ) ) || ( "sshd_log" . equals ( name ) ) ) || ( name.endsWith ( ".pid" ) ) ; }
Source:
public org.parboiled.Rule whitespace ( ) { return zeroOrMore ( anyOf ( " \t" ) ) ; }

Target:
public org.parboiled.Rule colsTag ( ) { return string ( "|||---|||" ) ; }
Source:
public com.google.gerrit.extensions.auth.oauth.OAuthToken getAccessToken ( com.google.gerrit.extensions.auth.oauth.OAuthVerifier rv ) { return getAsOAuthToken ( uaaClient.getAccessToken ( rv.getValue ( ) ) ) ; }

Target:
public com.google.gerrit.extensions.auth.oauth.OAuthToken getAccessToken ( com.google.gerrit.extensions.auth.oauth.OAuthVerifier rv ) { return com.googlesource.gerrit.plugins.cfoauth.CFOAuthService.getAsOAuthToken ( uaaClient.getAccessToken ( rv.getValue ( ) ) ) ; }
Source:
com.google.gerrit.server.account.GroupMembersFactory create ( com.google.gerrit.reviewdb.Project.NameKey project , com.google.gerrit.reviewdb.AccountGroup.UUID groupUUID ) ;

Target:
com.google.gerrit.server.account.GroupMembers create ( ) ;
Source:
private void fireEventForUnrestrictedListeners ( final com.google.gerrit.server.events.ChangeEvent event ) { for ( com.google.gerrit.common.ChangeListener listener : unrestrictedListeners ) { listener.onChangeEvent ( event ) ; } }

Target:
public void postEvent ( final com.google.gerrit.reviewdb.client.Branch.NameKey branchName , final com.google.gerrit.server.events.Event event ) { fireEvent ( branchName , event ) ; }
Source:
int getHeaderHeight ( ) { int h = patchSetSelectBoxA.getOffsetHeight ( ) ; if ( header ) { h += diffHeaderRow.getOffsetHeight ( ) ; } return h ; }

Target:
void refresh ( ) { if ( header ) { net.codemirror.lib.CodeMirror cm = getDiffScreen ( ) . getCmFromSide ( DisplaySide.A ) ; diffHeaderText.getStyle ( ) . setMarginLeft ( cm.getGutterElement ( ) . getOffsetWidth ( ) , Unit.PX ) ; } }
Source:
public java.util.Set < com.google.gerrit.reviewdb.client.AccountGeneralPreferences.DownloadScheme > getDownloadScheme ( ) { return downloadSchemes ; }

Target:
public java.util.Set < com.google.gerrit.reviewdb.client.AccountGeneralPreferences.DownloadScheme > getDownloadSchemes ( ) { return downloadSchemes ; }
Source:
public void deleteBranchByUserWithForcePushPermission ( ) throws java.lang.Exception { grantForcePush ( ) ; setApiUser ( user ) ; assertDeleteSucceeds ( ) ; }

Target:
public void deleteBranchByUserWithForcePushPermission ( ) throws java.lang.Exception { grantForcePush ( ) ; setApiUser ( user ) ; assertDeleteSucceeds ( testBranch ) ; }
Source:
public long getId ( ) { return java.nio.ByteBuffer.wrap ( fp ) . getLong ( 12 ) ; }

Target:
public java.lang.String toString ( ) { return com.google.gerrit.server.git.gpg.Fingerprint.toString ( fp ) ; }
Source:
protected com.google.gerrit.git.RepositoryCache getRepositoryCache ( ) throws com.google.gerrit.server.ssh.AbstractCommand.Failure { final com.google.gerrit.git.RepositoryCache rc = getGerritServer ( ) . getRepositoryCache ( ) ; if ( rc == null ) { throw new com.google.gerrit.server.ssh.AbstractCommand.Failure ( 128 , "fatal: Gerrit repositories are not available" , new java.lang.IllegalStateException ( "git_base_path not set in system_config" ) ) ; } return rc ; }

Target:
protected com.google.gerrit.git.RepositoryCache getRepositoryCache ( ) throws com.google.gerrit.server.ssh.AbstractCommand.Failure { final com.google.gerrit.git.RepositoryCache rc = getGerritServer ( ) . getRepositoryCache ( ) ; if ( rc == null ) { throw new com.google.gerrit.server.ssh.AbstractCommand.Failure ( 128 , "fatal: Gerrit repositories are not available" , new java.lang.IllegalStateException ( "gerrit.basePath not set" ) ) ; } return rc ; }
Source:
public void validNewChange ( ) throws java.lang.Exception { com.google.gerrit.reviewdb.client.Change c = insertChange ( ) ; insertPatchSet ( c ) ; incrementPatchSet ( c ) ; insertPatchSet ( c ) ; assertProblems ( c ) ; }

Target:
public void validNewChange ( ) throws java.lang.Exception { assertNoProblems ( insertChange ( ) , null ) ; }
Source:
java.lang.String getBranchUrl ( java.lang.String projectName , java.lang.String branchName ) ;

Target:
com.google.gerrit.extensions.common.WebLinkInfo getBranchWebLink ( java.lang.String projectName , java.lang.String branchName ) ;
Source:
public void init ( javax.servlet.FilterConfig config ) throws javax.servlet.ServletException { }

Target:
public void init ( javax.servlet.FilterConfig config ) throws javax.servlet.ServletException { for ( com.google.gerrit.httpd.AllRequestFilter f : filters ) { f.init ( config ) ; } }
Source:
public com.google.gerrit.server.project.ListProjects setShowTree ( boolean show ) { this . showTree = show ; return this ; }

Target:
public com.google.gerrit.server.project.ListProjects setFormat ( com.google.gerrit.server.OutputFormat fmt ) { this . format = fmt ; return this ; }