auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static java.lang.String refsDraftComments ( com.google.gerrit.reviewdb.client.Account.Id accountId , com.google.gerrit.reviewdb.client.Change.Id changeId ) { java.lang.StringBuilder r = com.google.gerrit.reviewdb.client.RefNames.buildRefsPrefix ( com.google.gerrit.reviewdb.client.RefNames.REFS_DRAFT_COMMENTS , accountId.get ( ) ) ; r.append ( changeId.get ( ) ) ; return r.toString ( ) ; }

Target:
public static java.lang.String refsDraftComments ( com.google.gerrit.reviewdb.client.Change.Id changeId , com.google.gerrit.reviewdb.client.Account.Id accountId ) { java.lang.StringBuilder r = com.google.gerrit.reviewdb.client.RefNames.buildRefsPrefix ( com.google.gerrit.reviewdb.client.RefNames.REFS_DRAFT_COMMENTS , changeId.get ( ) ) ; r.append ( accountId.get ( ) ) ; return r.toString ( ) ; }
Source:
private boolean can ( com.google.gerrit.server.permissions.LabelPermission perm ) { com.google.gerrit.common.data.PermissionRange r = label ( perm.permissionName ( ) . get ( ) ) ; return ( ( r.getMin ( ) ) < 0 ) || ( ( r.getMax ( ) ) > 0 ) ; }

Target:
private boolean can ( com.google.gerrit.server.permissions.LabelPermission perm ) { return ! ( label ( perm.permissionName ( ) . get ( ) ) . isEmpty ( ) ) ; }
Source:
private com.google.gerrit.server.git.SubmitStrategy createStrategy ( final com.google.gerrit.reviewdb.client.Project.SubmitType submitType ) throws com.google.gerrit.server.git.MergeException , com.google.gerrit.server.project.NoSuchProjectException { return submitStrategyFactory.create ( submitType , db , repo , rw , inserter , canMergeFlag , getAlreadyAccepted ( branchTip ) , destBranch , destProject.isUseContentMerge ( ) ) ; }

Target:
private com.google.gerrit.server.git.SubmitStrategy createStrategy ( final com.google.gerrit.reviewdb.client.Project.SubmitType submitType ) throws com.google.gerrit.server.git.MergeException , com.google.gerrit.server.project.NoSuchProjectException { return submitStrategyFactory.create ( submitType , db , repo , rw , inserter , canMergeFlag , getAlreadyAccepted ( branchTip ) , destBranch ) ; }
Source:
protected void rcptToAuthors ( final com.google.gerrit.server.mail.RecipientType rt ) { for ( final com.google.gerrit.reviewdb.Account.Id id : authors ) { add ( rt , id ) ; } }

Target:
protected void rcptToAuthors ( final com.google.gerrit.server.mail.RecipientType rt ) { for ( final com.google.gerrit.reviewdb.client.Account.Id id : authors ) { add ( rt , id ) ; } }
Source:
public boolean isRefVisible ( ) { return getRefControl ( ) . isVisible ( ) ; }

Target:
private boolean isRefVisible ( ) { return getRefControl ( ) . isVisible ( ) ; }
Source:
public void onShowView ( ) { super . onShowView ( ) ; cmA.refresh ( ) ; cmB.refresh ( ) ; }

Target:
public void onShowView ( ) { super . onShowView ( ) ; if ( ( cmA ) != null ) { cmA.refresh ( ) ; } if ( ( cmB ) != null ) { cmB.refresh ( ) ; } }
Source:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > byProjectOpen ( com.google.gerrit.reviewdb.client.Project.NameKey projectName ) throws com.google.gwtorm.server.OrmException { return query ( com.google.gerrit.server.query.Predicate.and ( com.google.gerrit.server.query.change.InternalChangeQuery.project ( projectName ) , com.google.gerrit.server.query.change.ChangeStatusPredicate.open ( ) ) ) ; }

Target:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > byProjectOpen ( com.google.gerrit.reviewdb.client.Project.NameKey project ) throws com.google.gwtorm.server.OrmException { return query ( com.google.gerrit.server.query.Predicate.and ( com.google.gerrit.server.query.change.InternalChangeQuery.project ( project ) , com.google.gerrit.server.query.change.ChangeStatusPredicate.open ( ) ) ) ; }
Source:
public static com.google.gerrit.server.patch.PatchListKey againstParentNum ( int parentNum , org.eclipse.jgit.lib.AnyObjectId newId , com.google.gerrit.extensions.client.DiffPreferencesInfo.Whitespace ws ) { return new com.google.gerrit.server.patch.PatchListKey ( parentNum , newId , ws , com.google.gerrit.server.patch.PatchListKey.Algorithm.OPTIMIZED_DIFF ) ; }

Target:
public static com.google.gerrit.server.patch.PatchListKey againstParentNum ( int parentNum , org.eclipse.jgit.lib.AnyObjectId newId , com.google.gerrit.extensions.client.DiffPreferencesInfo.Whitespace ws ) { return new com.google.gerrit.server.patch.PatchListKey ( parentNum , newId , ws ) ; }
Source:
public com.google.gerrit.server.data.AccountAttribute get ( ) { return eventFactory.asAccountAttribute ( new com.google.gerrit.reviewdb.client.Account.Id ( account._accountId ) ) ; }

Target:
public com.google.gerrit.server.data.AccountAttribute get ( ) { return account != null ? eventFactory.asAccountAttribute ( new com.google.gerrit.reviewdb.client.Account.Id ( account._accountId ) ) : null ; }
Source:
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 ( ) ) ; }

Target:
private com.google.gerrit.server.project.ProjectControl user ( java.lang.String name , 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" ; 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 , new com.google.gerrit.server.project.RefControlTest.MockUser ( name , memberOf ) , newProjectState ( ) ) ; }
Source:
public void onFailure ( final java.lang.Throwable caught ) { text.setReadOnly ( false ) ; save.setEnabled ( saveOn ) ; cancel.setEnabled ( true ) ; discard.setEnabled ( true ) ; super . onFailure ( caught ) ; }

Target:
public void onFailure ( final java.lang.Throwable caught ) { text.setReadOnly ( false ) ; save.setEnabled ( true ) ; cancel.setEnabled ( true ) ; discard.setEnabled ( true ) ; super . onFailure ( caught ) ; }
Source:
protected Project.NameKey getProjectName ( ) { return draftsProject ; }

Target:
public Project.NameKey getProjectName ( ) { return draftsProject ; }
Source:
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 ( ) ; } }

Target:
public void run ( ) { closedIndex.close ( ) ; }
Source:
public static void stopCommonServer ( ) throws java.lang.Exception { if ( ( com.google.gerrit.acceptance.AbstractDaemonTest.commonServer ) != null ) { com.google.gerrit.acceptance.AbstractDaemonTest.commonServer.stop ( ) ; com.google.gerrit.acceptance.AbstractDaemonTest.commonServer = null ; } com.google.gerrit.testutil.TempFileUtil.cleanup ( ) ; }

Target:
public static void stopCommonServer ( ) throws java.lang.Exception { if ( ( com.google.gerrit.acceptance.AbstractDaemonTest.commonServer ) != null ) { try { com.google.gerrit.acceptance.AbstractDaemonTest.commonServer.stop ( ) ; } finally { com.google.gerrit.acceptance.AbstractDaemonTest.commonServer = null ; } } com.google.gerrit.testutil.TempFileUtil.cleanup ( ) ; }
Source:
public synchronized void evict ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { byId.remove ( accountId ) ; }

Target:
public synchronized void evict ( @ com.google.gerrit.common.Nullable com.google.gerrit.reviewdb.client.Account.Id accountId ) { if ( ( byId ) != null ) { byId.remove ( accountId ) ; } }
Source:
public static java.lang.String toUnified ( com.google.gerrit.client.DiffObject diffBase , com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName ) { return com.google.gerrit.client.Dispatcher.toPatch ( "unified" , diffBase , revision , fileName , null , 0 ) ; }

Target:
public static java.lang.String toUnified ( @ com.google.gerrit.common.Nullable com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.client.DiffObject diffBase , com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName ) { return com.google.gerrit.client.Dispatcher.toPatch ( "unified" , project , diffBase , revision , fileName , null , 0 ) ; }
Source:
private static java.lang.String getGerritPluginName ( java.io.File srcFile ) throws java.io.IOException { java.util.jar.JarFile jarFile = new java.util.jar.JarFile ( srcFile ) ; try { return jarFile.getManifest ( ) . getMainAttributes ( ) . getValue ( "Gerrit-PluginName" ) ; } finally { jarFile.close ( ) ; } }

Target:
public static java.lang.String getGerritPluginName ( java.io.File srcFile ) throws java.io.IOException { java.util.jar.JarFile jarFile = new java.util.jar.JarFile ( srcFile ) ; try { return jarFile.getManifest ( ) . getMainAttributes ( ) . getValue ( "Gerrit-PluginName" ) ; } finally { jarFile.close ( ) ; } }
Source:
private boolean isMember ( com.google.gerrit.reviewdb.client.AccountGroup parent , com.google.gerrit.common.data.GroupDescription.Basic member ) throws com.google.gwtorm.server.OrmException { return groups.isIncluded ( dbProvider.get ( ) , parent.getId ( ) , member.getGroupUUID ( ) ) ; }

Target:
private boolean isMember ( com.google.gerrit.reviewdb.client.AccountGroup parent , com.google.gerrit.common.data.GroupDescription.Basic member ) throws com.google.gwtorm.server.OrmException { return groups.isIncluded ( dbProvider.get ( ) , parent.getGroupUUID ( ) , member.getGroupUUID ( ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { admins = groupCache.get ( new com.google.gerrit.reviewdb.client.AccountGroup.NameKey ( "Administrators" ) ) . getGroupUUID ( ) ; setUpChanges ( ) ; setUpPermissions ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { admins = groupCache.get ( new com.google.gerrit.reviewdb.client.AccountGroup.NameKey ( "Administrators" ) ) . getGroupUUID ( ) ; setUpPermissions ( ) ; setUpChanges ( ) ; }
Source:
boolean isLineStart ( int b ) { return ( b == 0 ) || ( ( charAt ( ( b - 1 ) ) ) == '\n' ) ; }

Target:
public boolean isLineStart ( int b ) { return ( b == 0 ) || ( ( charAt ( ( b - 1 ) ) ) == '\n' ) ; }
Source:
public void run ( ) { try { serverStarted.await ( ) ; } catch ( java.lang.InterruptedException e ) { throw new java.lang.RuntimeException ( e ) ; } catch ( java.util.concurrent.BrokenBarrierException e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public void run ( ) { try { serverStarted.await ( ) ; } catch ( java.lang.InterruptedException | java.util.concurrent.BrokenBarrierException e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
private static boolean match ( java.lang.String value , java.lang.String pattern , boolean refMatcher ) { if ( refMatcher ) { return com.google.gerrit.server.project.RefPatternMatcher.getMatcher ( pattern ) . match ( value , null ) ; } else { return java.util.regex.Pattern.matches ( pattern , value ) ; } }

Target:
private static boolean match ( java.lang.String value , java.lang.String pattern , boolean refMatcher ) { if ( refMatcher ) { return com.google.gerrit.server.project.RefPatternMatcher.getMatcher ( pattern ) . match ( value , null ) ; } return java.util.regex.Pattern.matches ( pattern , value ) ; }
Source:
public com.google.gerrit.server.IdentifiedUser create ( java.net.SocketAddress remotePeer , com.google.gerrit.reviewdb.client.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , anonymousCowardName , canonicalUrl , realm , accountCache , groupBackend , com.google.inject.util.Providers.of ( remotePeer ) , null , id ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( java.net.SocketAddress remotePeer , com.google.gerrit.reviewdb.client.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , anonymousCowardName , canonicalUrl , realm , accountCache , groupBackend , com.google.inject.util.Providers.of ( remotePeer ) , null , id , null ) ; }
Source:
private static org.apache.lucene.index.Term intTerm ( java.lang.String name , int value ) { org.apache.lucene.util.BytesRefBuilder builder = new org.apache.lucene.util.BytesRefBuilder ( ) ; org.apache.lucene.util.NumericUtils.intToPrefixCodedBytes ( value , 0 , builder ) ; return new org.apache.lucene.index.Term ( name , builder.get ( ) ) ; }

Target:
static org.apache.lucene.index.Term intTerm ( java.lang.String name , int value ) { org.apache.lucene.util.BytesRefBuilder builder = new org.apache.lucene.util.BytesRefBuilder ( ) ; org.apache.lucene.util.NumericUtils.intToPrefixCodedBytes ( value , 0 , builder ) ; return new org.apache.lucene.index.Term ( name , builder.get ( ) ) ; }
Source:
protected void onOpenRow ( final int row ) { super . onOpenRow ( row ) ; nameBox.setText ( getRowItem ( row ) . getName ( ) ) ; doAddNew ( ) ; }

Target:
protected void onOpenRow ( final int row ) { super . onOpenRow ( row ) ; nameBox.setText ( getRowItem ( row ) . name ( ) ) ; doAddNew ( ) ; }
Source:
void setCurrentCommand ( com.google.gerrit.client.download.DownloadCommandLink cmd ) { currentCommand = cmd ; update ( ) ; }

Target:
void setCurrentCommand ( com.google.gerrit.client.download.DownloadCommandLink cmd ) { currentCommand = cmd ; }
Source:
protected abstract void handleEmails ( ) ;

Target:
public abstract void handleEmails ( ) ;
Source:
public com.google.gerrit.server.IdentifiedUser create ( final com.google.gerrit.server.AccessPath accessPath , final com.google.gerrit.reviewdb.client.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , accessPath , authConfig , anonymousCowardName , canonicalUrl , realm , accountCache , groupBackend , remotePeerProvider , dbProvider , id ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( com.google.gerrit.reviewdb.client.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , anonymousCowardName , canonicalUrl , realm , accountCache , groupBackend , remotePeerProvider , dbProvider , id ) ; }
Source:
public void addReviewer ( com.google.gerrit.extensions.api.changes.AddReviewerInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { postReviewers.get ( ) . apply ( change , in ) ; } catch ( com.google.gwtorm.server.OrmException | com.google.gerrit.common.errors.EmailException | java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot add change reviewer" , e ) ; } }

Target:
public void addReviewer ( com.google.gerrit.extensions.api.changes.AddReviewerInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { postReviewers.apply ( change , in ) ; } catch ( com.google.gwtorm.server.OrmException | com.google.gerrit.common.errors.EmailException | java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot add change reviewer" , e ) ; } }
Source:
private void fail ( java.lang.Throwable t ) { com.google.gerrit.pgm.RebuildNotedb.log.error ( ( "Failed to rebuild change " + ( c.getId ( ) ) ) , t ) ; ok.set ( false ) ; failedTask.update ( 1 ) ; }

Target:
private void fail ( java.lang.Throwable t ) { com.google.gerrit.pgm.RebuildNotedb.log.error ( ( "Failed to rebuild change " + ( changeId ) ) , t ) ; ok.set ( false ) ; failedTask.update ( 1 ) ; }
Source:
private boolean isPatchSet ( ) { return ( this ) instanceof com.google.gerrit.server.notedb.rebuild.PatchSetEvent ; }

Target:
protected boolean isPatchSet ( ) { return false ; }
Source:
private java.lang.String newChange2 ( org.eclipse.jgit.api.Git git , org.eclipse.jgit.lib.PersonIdent ident ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , ident , PushOneCommit.SUBJECT , com.google.gerrit.acceptance.edit.ChangeEditIT.FILE_NAME , com.google.gerrit.acceptance.edit.ChangeEditIT.CONTENT_OLD ) ; return push.rm ( git , "refs/for/master" ) . getChangeId ( ) ; }

Target:
private java.lang.String newChange2 ( org.eclipse.jgit.api.Git git , org.eclipse.jgit.lib.PersonIdent ident ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , ident , PushOneCommit.SUBJECT , com.google.gerrit.acceptance.edit.ChangeEditIT.FILE_NAME , new java.lang.String ( com.google.gerrit.acceptance.edit.ChangeEditIT.CONTENT_OLD ) ) ; return push.rm ( git , "refs/for/master" ) . getChangeId ( ) ; }
Source:
protected java.lang.Object getRowItemKey ( final com.google.gerrit.client.dashboards.DashboardInfo item ) { return item.name ( ) ; }

Target:
protected java.lang.Object getRowItemKey ( final com.google.gerrit.client.dashboards.DashboardInfo item ) { return item.id ( ) ; }
Source:
public com.google.gerrit.extensions.registration.DynamicSet < T > get ( ) { return new com.google.gerrit.extensions.registration.DynamicSet < T > ( com.google.gerrit.extensions.registration.DynamicSetProvider.find ( injector , type ) ) ; }

Target:
public com.google.gerrit.extensions.registration.DynamicSet < T > get ( ) { return new com.google.gerrit.extensions.registration.DynamicSet ( com.google.gerrit.extensions.registration.DynamicSetProvider.find ( injector , type ) ) ; }
Source:
public void onRpcComplete ( final com.google.gwtjsonrpc.client.event.RpcCompleteEvent event ) { if ( ( -- ( activeCalls ) ) == 0 ) { loading.setVisible ( false ) ; } }

Target:
public void onRpcComplete ( final com.google.gwtjsonrpc.client.event.RpcCompleteEvent event ) { onRpcComplete ( ) ; }
Source:
public boolean createProject ( com.google.gerrit.reviewdb.client.Project.NameKey project , java.lang.String head ) { boolean success = false ; for ( org.eclipse.jgit.transport.URIish uri : getURIs ( project , FilterType.PROJECT_CREATION ) ) { success &= createProject ( uri , head ) ; } return success ; }

Target:
public boolean createProject ( com.google.gerrit.reviewdb.client.Project.NameKey project , java.lang.String head ) { boolean success = true ; for ( org.eclipse.jgit.transport.URIish uri : getURIs ( project , FilterType.PROJECT_CREATION ) ) { success &= createProject ( uri , head ) ; } return success ; }
Source:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo result ) { sent = true ; hide ( ) ; com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( id ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo result ) { sent = true ; hide ( ) ; com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( project , id ) ) ; }
Source:
public org.eclipse.jgit.lib.ObjectInserter getObjectInserter ( ) throws java.io.IOException { initRepository ( ) ; return inserter ; }

Target:
private org.eclipse.jgit.lib.ObjectInserter getObjectInserter ( ) throws java.io.IOException { initRepository ( ) ; return inserter ; }
Source:
void addRight ( com.google.gerrit.client.reviewdb.Project.Id projectId , com.google.gerrit.client.reviewdb.ApprovalCategory.Id categoryId , java.lang.String groupName , short min , short max , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.admin.ProjectDetail > callback ) ;

Target:
void addRight ( com.google.gerrit.client.reviewdb.Project.NameKey projectName , com.google.gerrit.client.reviewdb.ApprovalCategory.Id categoryId , java.lang.String groupName , short min , short max , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.admin.ProjectDetail > callback ) ;
Source:
public static void delete ( int id , java.lang.String path , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.VoidResult > cb ) { com.google.gerrit.client.changes.ChangeEditApi.editFile ( id , path ) . delete ( cb ) ; }

Target:
public static void delete ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , java.lang.String path , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.VoidResult > cb ) { com.google.gerrit.client.changes.ChangeEditApi.editFile ( project , id , path ) . delete ( cb ) ; }
Source:
public void onUnload ( ) { if ( ( regFocus ) != null ) { regFocus.removeHandler ( ) ; regFocus = null ; } }

Target:
protected void onUnload ( ) { if ( ( regFocus ) != null ) { regFocus.removeHandler ( ) ; regFocus = null ; } }
Source:
public static void createDraft ( com.google.gerrit.reviewdb.client.PatchSet.Id id , com.google.gerrit.client.changes.CommentInfo content , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.changes.CommentInfo > cb ) { com.google.gerrit.client.changes.CommentApi.revision ( id , "drafts" ) . put ( content , cb ) ; }

Target:
public static void createDraft ( @ com.google.gerrit.common.Nullable java.lang.String project , com.google.gerrit.reviewdb.client.PatchSet.Id id , com.google.gerrit.client.changes.CommentInfo content , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.changes.CommentInfo > cb ) { com.google.gerrit.client.changes.CommentApi.revision ( project , id , "drafts" ) . put ( content , cb ) ; }
Source:
public java.util.concurrent.Callable < java.lang.Void > indexTask ( com.google.gerrit.server.query.change.ChangeData cd ) { return new com.google.gerrit.server.index.ChangeIndexerImpl.Task ( cd , false ) ; }

Target:
protected java.util.concurrent.Callable < java.lang.Void > indexTask ( com.google.gerrit.server.query.change.ChangeData cd ) { return new com.google.gerrit.server.index.ChangeIndexerImpl.Task ( cd , false ) ; }
Source:
public com.google.gerrit.extensions.common.CommitInfo apply ( com.google.gerrit.server.project.CommitResource rsrc ) { org.eclipse.jgit.revwalk.RevCommit c = rsrc.getCommit ( ) ; com.google.gerrit.extensions.common.CommitInfo info = com.google.gerrit.server.project.GetCommit.toCommitInfo ( c ) ; return info ; }

Target:
public com.google.gerrit.extensions.common.CommitInfo apply ( com.google.gerrit.server.project.CommitResource rsrc ) { return com.google.gerrit.server.project.GetCommit.toCommitInfo ( rsrc.getCommit ( ) ) ; }
Source:
private void logWarn ( java.lang.String msg , java.lang.Throwable t ) { if ( com.google.gerrit.server.git.MergeOp.log.isWarnEnabled ( ) ) { com.google.gerrit.server.git.MergeOp.log.warn ( ( ( ( "[" + ( submissionId ) ) + "]" ) + msg ) , t ) ; } }

Target:
private void logWarn ( java.lang.String msg , java.lang.Throwable t ) { if ( com.google.gerrit.server.git.MergeOp.log.isWarnEnabled ( ) ) { com.google.gerrit.server.git.MergeOp.log.warn ( ( ( submissionId ) + msg ) , t ) ; } }
Source:
public void postEvent ( com.google.gerrit.reviewdb.client.Branch.NameKey branchName , com.google.gerrit.server.events.Event event ) { }

Target:
public void postEvent ( com.google.gerrit.server.events.Event event , com.google.gerrit.reviewdb.server.ReviewDb db ) { }
Source:
protected void configure ( ) { bind ( com.google.gerrit.server.ssh.SshInfo.class ) . to ( com.google.gerrit.server.ssh.NoSshInfo.class ) ; bind ( com.google.gerrit.server.ssh.SshKeyCache.class ) . to ( com.google.gerrit.server.ssh.NoSshKeyCache.class ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.server.ssh.SshInfo.class ) . to ( com.google.gerrit.server.ssh.NoSshInfo.class ) ; }
Source:
public static void merge ( final com.google.gerrit.client.reviewdb.Branch.NameKey branch ) { if ( com.google.gerrit.git.MergeQueue.start ( branch ) ) { try { com.google.gerrit.git.MergeQueue.mergeImpl ( branch ) ; } finally { com.google.gerrit.git.MergeQueue.finish ( branch ) ; } } }

Target:
void merge ( com.google.gerrit.client.reviewdb.Branch.NameKey branch ) ;
Source:
void setPluginName ( @ com.google.gerrit.extensions.annotations.PluginName java.lang.String name , final java.lang.String descr ) { this . command = com.google.gerrit.sshd.Commands.named ( name ) ; }

Target:
void setPluginName ( @ com.google.gerrit.extensions.annotations.PluginName java.lang.String name ) { this . command = com.google.gerrit.sshd.Commands.named ( name ) ; }
Source:
public com.google.gerrit.server.project.SubmitRuleOptions.Builder toBuilder ( ) { return com.google.gerrit.server.project.SubmitRuleOptions.builder ( ) . allowClosed ( allowClosed ( ) ) . skipFilters ( skipFilters ( ) ) . rule ( rule ( ) ) ; }

Target:
public abstract com.google.gerrit.server.project.SubmitRuleOptions.Builder toBuilder ( ) ;
Source:
public static void setup ( ) { com.google.gerrit.server.events.EventTypes.register ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.EventRestApiServletTest.RefReplicationDoneEvent.TYPE , com.ericsson.gerrit.plugins.highavailability.forwarder.rest.EventRestApiServletTest.RefReplicationDoneEvent.class ) ; com.google.gwtorm.client.KeyUtil.setEncoderImpl ( new com.google.gwtorm.server.StandardKeyEncoder ( ) ) ; }

Target:
public static void setup ( ) { com.google.gerrit.server.events.EventTypes.register ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.EventRestApiServletTest.RefReplicationDoneEvent.TYPE , com.ericsson.gerrit.plugins.highavailability.forwarder.rest.EventRestApiServletTest.RefReplicationDoneEvent.class ) ; }
Source:
public Change.Key getChangeKey ( ) { return null ; }

Target:
public java.lang.String getRefName ( ) { return null ; }
Source:
private com.cisco.gerrit.plugins.slack.config.ProjectConfig getConfig ( boolean publishOnPatchSetCreated ) throws java.lang.Exception { return getConfig ( "^WIP.*" , publishOnPatchSetCreated ) ; }

Target:
private com.cisco.gerrit.plugins.slack.config.ProjectConfig getConfig ( boolean publishOnPatchSetCreated ) throws java.lang.Exception { return getConfig ( "^WIP.*" , publishOnPatchSetCreated , true ) ; }
Source:
public static void replyError ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res , int statusCode , java.lang.String msg , @ com.google.gerrit.common.Nullable java.lang.Throwable err ) throws java.io.IOException { com.google.gerrit.httpd.restapi.RestApiServlet.replyError ( req , res , statusCode , msg , CacheControl.NONE , err ) ; }

Target:
public static long replyError ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res , int statusCode , java.lang.String msg , @ com.google.gerrit.common.Nullable java.lang.Throwable err ) throws java.io.IOException { return com.google.gerrit.httpd.restapi.RestApiServlet.replyError ( req , res , statusCode , msg , CacheControl.NONE , err ) ; }
Source:
void onRefReplicatedToAllNodes ( java.lang.String project , java.lang.String ref , int nodesCount ) { com.googlesource.gerrit.plugins.replication.RefReplicationDoneEvent event = new com.googlesource.gerrit.plugins.replication.RefReplicationDoneEvent ( project , ref , nodesCount ) ; postEvent ( project , event ) ; }

Target:
void onRefReplicatedToAllNodes ( java.lang.String project , java.lang.String ref , int nodesCount ) { com.googlesource.gerrit.plugins.replication.RefReplicationDoneEvent event = new com.googlesource.gerrit.plugins.replication.RefReplicationDoneEvent ( project , ref , nodesCount ) ; postEvent ( project , ref , event ) ; }
Source:
public abstract Change.Key getChangeKey ( ) ;

Target:
public Change.Key getChangeKey ( ) { return new com.google.gerrit.reviewdb.client.Change.Key ( change.id ) ; }
Source:
private boolean canEditFullName ( ) { return com.google.gerrit.client.Gerrit.getServerInfo ( ) . auth ( ) . canEdit ( Account.FieldName.FULL_NAME ) ; }

Target:
private boolean canEditFullName ( ) { return com.google.gerrit.client.Gerrit.info ( ) . auth ( ) . canEdit ( Account.FieldName.FULL_NAME ) ; }
Source:
public com.google.gerrit.server.plugins.PluginResource parse ( com.google.gerrit.extensions.restapi.TopLevelResource parent , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { com.google.gerrit.server.plugins.Plugin p = loader.get ( id.get ( ) ) ; if ( p == null ) { throw new com.google.gerrit.extensions.restapi.ResourceNotFoundException ( id ) ; } return new com.google.gerrit.server.plugins.PluginResource ( p ) ; }

Target:
public com.google.gerrit.server.plugins.PluginResource parse ( com.google.gerrit.extensions.restapi.TopLevelResource parent , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { return parse ( id.get ( ) ) ; }
Source:
protected void submitWithConflict ( java.lang.String changeId , java.lang.String expectedError ) throws java.lang.Exception { submit ( changeId , new com.google.gerrit.extensions.api.changes.SubmitInput ( ) , com.google.gerrit.extensions.restapi.ResourceConflictException.class , expectedError ) ; }

Target:
protected void submitWithConflict ( java.lang.String changeId , java.lang.String expectedError ) throws java.lang.Exception { submit ( changeId , new com.google.gerrit.extensions.api.changes.SubmitInput ( ) , com.google.gerrit.extensions.restapi.ResourceConflictException.class , expectedError , true ) ; }
Source:
public void registerKeys ( ) { super . registerKeys ( ) ; regNavigation = com.google.gwtexpui.globalkey.client.GlobalKey.add ( keysNavigation ) ; regAction = com.google.gwtexpui.globalkey.client.GlobalKey.add ( keysAction ) ; }

Target:
public void registerKeys ( ) { super . registerKeys ( ) ; regNavigation = com.google.gwtexpui.globalkey.client.GlobalKey.add ( this , keysNavigation ) ; regAction = com.google.gwtexpui.globalkey.client.GlobalKey.add ( this , keysAction ) ; }
Source:
private com.google.gerrit.server.index.PredicateWrapper wrap ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p ) throws com.google.gerrit.server.query.QueryParseException { return new com.google.gerrit.server.index.PredicateWrapper ( index , p ) ; }

Target:
private com.google.gerrit.server.index.PredicateWrapper wrap ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p ) throws com.google.gerrit.server.query.QueryParseException { return new com.google.gerrit.server.index.PredicateWrapper ( p , index ) ; }
Source:
private int getInt ( java.lang.String name , java.lang.String setting , int def ) { return config.getInt ( "cache" , name , setting , def ) ; }

Target:
private int getInt ( java.lang.String n , java.lang.String s , int d ) { return config.getInt ( "cache" , n , s , d ) ; }
Source:
public void onSuccess ( ) { com.google.gerrit.client.Gerrit.display ( token , ( edit ? new com.google.gerrit.client.editor.EditScreen ( 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 , ( 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 ) ) ) ; }
Source:
com.google.gerrit.server.patch.PatchListKey toPatchListKey ( ) { return new com.google.gerrit.server.patch.PatchListKey ( oldId , parentNum , newId , whitespace , PatchListKey.Algorithm.OPTIMIZED_DIFF ) ; }

Target:
com.google.gerrit.server.patch.PatchListKey toPatchListKey ( ) { return new com.google.gerrit.server.patch.PatchListKey ( oldId , parentNum , newId , whitespace ) ; }
Source:
public java.lang.Void call ( ) throws java.io.IOException { for ( com.google.gerrit.server.index.change.ChangeIndex i : getWriteIndexes ( ) ) { i.delete ( id ) ; } fireChangeDeletedFromIndexEvent ( id ) ; return null ; }

Target:
public java.lang.Void call ( ) throws java.io.IOException { for ( com.google.gerrit.server.index.change.ChangeIndex i : getWriteIndexes ( ) ) { i.delete ( id ) ; } fireChangeDeletedFromIndexEvent ( id.get ( ) ) ; return null ; }
Source:
java.lang.String descriptionNotifications ( ) ;

Target:
java.lang.String plugins ( ) ;
Source:
public void setUp ( ) throws java.lang.Exception { db = new com.google.gwtorm.nosql.heap.MemoryDatabase < com.google.gwtorm.data.PhoneBookDb > ( com.google.gwtorm.data.PhoneBookDb.class ) ; openSchemas = new java.util.ArrayList < com.google.gwtorm.data.PhoneBookDb > ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { db = new com.google.gwtorm.nosql.heap.MemoryDatabase ( com.google.gwtorm.data.PhoneBookDb.class ) ; openSchemas = new java.util.ArrayList < > ( ) ; }
Source:
private void fastForwardTagToExistingCommit ( com.google.gerrit.acceptance.rest.project.PushTagIT.TagType tagType , java.lang.String tagName , org.eclipse.jgit.transport.RemoteRefUpdate.Status expectedStatus ) throws java.lang.Exception { pushTag ( tagType , tagName , false , expectedStatus ) ; }

Target:
private void fastForwardTagToExistingCommit ( com.google.gerrit.acceptance.rest.project.PushTagIT.TagType tagType , java.lang.String tagName , org.eclipse.jgit.transport.RemoteRefUpdate.Status expectedStatus ) throws java.lang.Exception { pushTag ( tagType , tagName , false , false , expectedStatus ) ; }
Source:
public void delete ( com.google.gerrit.server.query.change.ChangeData cd ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public void delete ( com.google.gerrit.reviewdb.client.Change.Id id ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
com.google.gerrit.common.data.PermissionRange getRange ( java.lang.String permission , boolean isChangeOwner ) { if ( com.google.gerrit.common.data.Permission.hasRange ( permission ) ) { return toRange ( permission , access ( permission , isChangeOwner ) ) ; } return null ; }

Target:
com.google.gerrit.common.data.PermissionRange getRange ( java.lang.String permission , boolean isChangeOwner ) { if ( com.google.gerrit.common.data.Permission.hasRange ( permission ) ) { return toRange ( permission , isChangeOwner ) ; } return null ; }
Source:
public void onLoad ( ) { super . onLoad ( ) ; refresh ( true ) ; }

Target:
protected void onLoad ( ) { super . onLoad ( ) ; refresh ( true ) ; }
Source:
public boolean canEditAssignee ( ) { return ( ( ( isOwner ( ) ) || ( getProjectControl ( ) . isOwner ( ) ) ) || ( getRefControl ( ) . canEditAssignee ( ) ) ) || ( isAssignee ( ) ) ; }

Target:
private boolean canEditAssignee ( ) { return ( ( ( isOwner ( ) ) || ( getProjectControl ( ) . isOwner ( ) ) ) || ( getRefControl ( ) . canEditAssignee ( ) ) ) || ( isAssignee ( ) ) ; }
Source:
public com.google.gerrit.client.diff.DiffApi base ( com.google.gerrit.reviewdb.client.PatchSet.Id id ) { call.addParameter ( "base" , id.get ( ) ) ; return this ; }

Target:
public com.google.gerrit.client.diff.DiffApi base ( com.google.gerrit.reviewdb.client.PatchSet.Id id ) { if ( id != null ) { call.addParameter ( "base" , id.get ( ) ) ; } return this ; }
Source:
protected void configure ( ) { if ( recheckMergeable ) { install ( new com.google.gerrit.pgm.Reindex.MergeabilityModule ( ) ) ; } else { bind ( com.google.gerrit.server.change.MergeabilityChecker.class ) . toProvider ( com.google.inject.util.Providers.< com.google.gerrit.server.change.MergeabilityChecker > of ( null ) ) ; } }

Target:
protected void configure ( ) { if ( recheckMergeable ) { install ( new com.google.gerrit.pgm.Reindex.MergeabilityModule ( ) ) ; } }
Source:
public com.google.common.collect.ListMultimap < com.google.gerrit.reviewdb.client.PatchSet.Id , com.google.gerrit.reviewdb.client.PatchSetApproval > approvalsMap ( ) throws com.google.gwtorm.server.OrmException { if ( ( allApprovals ) == null ) { allApprovals = approvalsUtil.byChange ( db , notes ( ) ) ; } return allApprovals ; }

Target:
public com.google.common.collect.ListMultimap < com.google.gerrit.reviewdb.client.PatchSet.Id , com.google.gerrit.reviewdb.client.PatchSetApproval > approvals ( ) throws com.google.gwtorm.server.OrmException { if ( ( allApprovals ) == null ) { allApprovals = approvalsUtil.byChange ( db , notes ( ) ) ; } return allApprovals ; }
Source:
boolean setToRetry ( ) { retrying = true ; ( retryCount ) ++ ; return ( retryCount ) <= ( maxRetries ) ; }

Target:
boolean setToRetry ( ) { retrying = true ; ( retryCount ) ++ ; return ( ( maxRetries ) == 0 ) || ( ( retryCount ) <= ( maxRetries ) ) ; }
Source:
private long getDiskUsage ( com.google.gerrit.reviewdb.client.Project.NameKey project ) throws java.io.IOException { org.eclipse.jgit.lib.Repository git = gitManager.openRepository ( project ) ; try { java.io.File gitDir = git.getDirectory ( ) ; return getDiskUsage ( gitDir ) ; } finally { git.close ( ) ; } }

Target:
private long getDiskUsage ( com.google.gerrit.reviewdb.client.Project.NameKey project ) throws java.io.IOException { org.eclipse.jgit.lib.Repository git = gitManager.openRepository ( project ) ; try { return getDiskUsage ( git.getDirectory ( ) ) ; } finally { git.close ( ) ; } }
Source:
public void abandonReviewableChangeNotifyOwnerCcingSelf ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( com.google.gerrit.server.account.WatchConfig.NotifyType.ABANDONED_CHANGES ) ; abandon ( sc.changeId , sc.owner , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.CC_ON_OWN_COMMENTS , com.google.gerrit.extensions.api.changes.NotifyHandling.OWNER ) ; assertThat ( sender ) . notSent ( ) ; }

Target:
public void abandonReviewableChangeNotifyOwnerCcingSelf ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; abandon ( sc.changeId , sc.owner , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.CC_ON_OWN_COMMENTS , com.google.gerrit.extensions.api.changes.NotifyHandling.OWNER ) ; assertThat ( sender ) . notSent ( ) ; }
Source:
void setHideEmptyPane ( boolean hide ) { if ( ( changeType ) == ( com.google.gerrit.reviewdb.client.Patch.ChangeType.ADDED ) ) { setVisibleA ( ( ! hide ) ) ; } else if ( ( changeType ) == ( com.google.gerrit.reviewdb.client.Patch.ChangeType.DELETED ) ) { setVisibleB ( ( ! hide ) ) ; } }

Target:
abstract void setHideEmptyPane ( boolean hide ) ;
Source:
com.google.gitiles.CommitData.Builder setRevWalk ( org.eclipse.jgit.revwalk.RevWalk walk ) { this . walk = com.google.common.base.Preconditions.checkNotNull ( walk , "walk" ) ; return this ; }

Target:
com.google.gitiles.CommitData.Builder setRevWalk ( @ javax.annotation.Nullable org.eclipse.jgit.revwalk.RevWalk walk ) { this . walk = walk ; return this ; }
Source:
public void go ( ) { com.google.gerrit.client.Dispatcher.patch ( getTargetHistoryToken ( ) , patchKey , patchIndex , patchSetDetail , parentPatchTable , topView ) ; }

Target:
public void go ( ) { com.google.gerrit.client.Dispatcher.patch ( getTargetHistoryToken ( ) , base , patchKey , patchIndex , patchSetDetail , parentPatchTable , topView ) ; }
Source:
public void assertMessage ( java.lang.String expectedMessage ) { org.eclipse.jgit.transport.RemoteRefUpdate refUpdate = result.getRemoteUpdate ( ref ) ; com.google.common.truth.Truth.assertThat ( message ( refUpdate ) . toLowerCase ( ) ) . named ( message ( refUpdate ) ) . contains ( expectedMessage.toLowerCase ( ) ) ; }

Target:
public void assertMessage ( java.lang.String expectedMessage ) { org.eclipse.jgit.transport.RemoteRefUpdate refUpdate = result.getRemoteUpdate ( ref ) ; com.google.common.truth.Truth.assertThat ( message ( refUpdate ) . toLowerCase ( ) ) . contains ( expectedMessage.toLowerCase ( ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { project2 = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p2" ) ; createProject ( project2.get ( ) ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { project2 = createProject ( "p2" ) ; }
Source:
public void defaultDashboardDoesNotExist ( ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.ResourceNotFoundException.class ) ; gApi.projects ( ) . name ( project.get ( ) ) . defaultDashboard ( ) . get ( ) ; }

Target:
public void defaultDashboardDoesNotExist ( ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.ResourceNotFoundException.class ) ; project ( ) . defaultDashboard ( ) . get ( ) ; }
Source:
public void removeHandler ( ) { com.google.gwtexpui.globalkey.client.GlobalKey.keys.remove ( key ) ; com.google.gwtexpui.globalkey.client.GlobalKey.keyApplication.add ( key ) ; }

Target:
public void removeHandler ( ) { com.google.gwtexpui.globalkey.client.GlobalKey.keys.remove ( key ) ; com.google.gwtexpui.globalkey.client.GlobalKey.keyApplication.remove ( key ) ; }
Source:
private void autoFlush ( ) throws java.io.IOException { if ( autoCommit ) { manualFlush ( ) ; } }

Target:
public void autoFlush ( ) throws java.io.IOException { if ( autoCommit ) { manualFlush ( ) ; } }
Source:
private void assertIsUnhealthy ( ) throws java.io.IOException { javax.servlet.http.HttpServletResponse responseMock = mock ( javax.servlet.http.HttpServletResponse.class ) ; servlet.doGet ( null , responseMock ) ; org.mockito.Mockito.verify ( responseMock ) . sendError ( javax.servlet.http.HttpServletResponse.SC_SERVICE_UNAVAILABLE ) ; }

Target:
private void assertIsUnhealthy ( ) throws java.io.IOException { javax.servlet.http.HttpServletResponse responseMock = org.mockito.Mockito.mock ( javax.servlet.http.HttpServletResponse.class ) ; servlet.doGet ( null , responseMock ) ; org.mockito.Mockito.verify ( responseMock ) . sendError ( javax.servlet.http.HttpServletResponse.SC_SERVICE_UNAVAILABLE ) ; }
Source:
protected void configure ( ) { bind ( com.googlesource.gerrit.plugins.verifystatus.server.schema.SchemaVersion.class ) . to ( SchemaVersion.C ) ; bind ( com.google.gerrit.metrics.MetricMaker.class ) . to ( com.google.gerrit.metrics.DisabledMetricMaker.class ) ; }

Target:
protected void configure ( ) { bind ( com.googlesource.gerrit.plugins.verifystatus.server.schema.SchemaVersion.class ) . to ( SchemaVersion.C ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { allowGlobalCapabilities ( com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS , GlobalCapability.CREATE_GROUP ) ; allowGlobalCapabilities ( com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS , GlobalCapability.CREATE_PROJECT ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; allowGlobalCapabilities ( com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS , GlobalCapability.CREATE_GROUP ) ; allowGlobalCapabilities ( com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS , GlobalCapability.CREATE_PROJECT ) ; }
Source:
private static long upperLimit ( long unit ) { long limit = unit + ( unit / 2 ) ; return limit ; }

Target:
private static long upperLimit ( long unit ) { return unit + ( unit / 2 ) ; }
Source:
protected void configure ( ) { factory ( PatchScriptFactory.Factory.class ) ; factory ( SaveDraft.Factory.class ) ; }

Target:
protected void configure ( ) { factory ( SaveDraft.Factory.class ) ; }
Source:
protected net.codemirror.lib.LineWidget getSelfWidget ( ) { return selfWidget ; }

Target:
net.codemirror.lib.LineWidget getSelfWidget ( ) { return selfWidget ; }
Source:
public void testParentHashCode ( ) { final long id = 21281821821821881L ; final com.google.gwtorm.client.LongKeyTestCase.Parent p = new com.google.gwtorm.client.LongKeyTestCase.Parent ( id ) ; assertEquals ( ( ( int ) ( id ) ) , p.hashCode ( ) ) ; }

Target:
public void testParentHashCode ( ) { final long id = 21281821821821881L ; final com.google.gwtorm.client.LongKeyTestCase.Parent p = new com.google.gwtorm.client.LongKeyTestCase.Parent ( id ) ; org.junit.Assert.assertEquals ( ( ( int ) ( id ) ) , p.hashCode ( ) ) ; }
Source:
public void listTagsOfNonVisibleProject ( ) throws java.lang.Exception { blockRead ( project , "refs/*" ) ; userSession.get ( ( ( "/projects/" + ( project.get ( ) ) ) + "/tags" ) ) . assertNotFound ( ) ; }

Target:
public void listTagsOfNonVisibleProject ( ) throws java.lang.Exception { blockRead ( "refs/*" ) ; userSession.get ( ( ( "/projects/" + ( project.get ( ) ) ) + "/tags" ) ) . assertNotFound ( ) ; }
Source:
private com.google.gerrit.server.IdentifiedUser reloadUser ( ) { accountCache.evict ( userId ) ; user = userFactory.create ( com.google.inject.util.Providers.of ( db ) , userId ) ; return user ; }

Target:
private com.google.gerrit.server.IdentifiedUser reloadUser ( ) { accountCache.evict ( userId ) ; user = userFactory.create ( userId ) ; return user ; }
Source:
public boolean canForgeCommitter ( ) { if ( ( canForgeCommitter ) == null ) { canForgeCommitter = canPerform ( Permission.FORGE_COMMITTER ) ; } return canForgeCommitter ; }

Target:
private boolean canForgeCommitter ( ) { if ( ( canForgeCommitter ) == null ) { canForgeCommitter = canPerform ( Permission.FORGE_COMMITTER ) ; } return canForgeCommitter ; }
Source:
public java.lang.String getDisplayString ( ) { return branch.getName ( ) ; }

Target:
public java.lang.String getDisplayString ( ) { return branch.ref ( ) ; }
Source:
private com.google.gerrit.server.git.ProjectConfig read ( org.eclipse.jgit.revwalk.RevCommit rev ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { com.google.gerrit.server.git.ProjectConfig cfg = new com.google.gerrit.server.git.ProjectConfig ( new com.google.gerrit.reviewdb.Project.NameKey ( "test" ) ) ; cfg.load ( db , rev ) ; return cfg ; }

Target:
private com.google.gerrit.server.git.ProjectConfig read ( org.eclipse.jgit.revwalk.RevCommit rev ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { com.google.gerrit.server.git.ProjectConfig cfg = new com.google.gerrit.server.git.ProjectConfig ( new com.google.gerrit.reviewdb.client.Project.NameKey ( "test" ) ) ; cfg.load ( db , rev ) ; return cfg ; }
Source:
public static com.google.gerrit.server.git.ValidationError.Sink createLoggerSink ( java.lang.String message , org.slf4j.Logger log ) { return new com.google.gerrit.server.git.ValidationError.Sink ( ) { @ java.lang.Override public void error ( com.google.gerrit.server.git.ValidationError error ) { log.error ( ( message + ( error.getMessage ( ) ) ) ) ; } } ; }

Target:
public static com.google.gerrit.server.git.ValidationError.Sink createLoggerSink ( java.lang.String message , org.slf4j.Logger log ) { return ( error ) -> log.error ( ( message + ( error.getMessage ( ) ) ) ) ; }
Source:
public java.lang.Object apply ( com.google.gerrit.server.project.ProjectResource rsrc , com.google.gerrit.server.project.GarbageCollect.Input input ) { com.google.gerrit.reviewdb.client.Project.NameKey project = rsrc.getNameKey ( ) ; if ( input.async ) { return applyAsync ( project , input ) ; } else { return applySync ( project , input ) ; } }

Target:
public java.lang.Object apply ( com.google.gerrit.server.project.ProjectResource rsrc , com.google.gerrit.server.project.GarbageCollect.Input input ) { com.google.gerrit.reviewdb.client.Project.NameKey project = rsrc.getNameKey ( ) ; if ( input.async ) { return applyAsync ( project , input ) ; } return applySync ( project , input ) ; }
Source:
void postEvent ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.server.events.ChangeEvent event , com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException ;

Target:
void postEvent ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.server.events.ChangeEvent event ) throws com.google.gwtorm.server.OrmException ;
Source:
public void onFailure ( java.lang.Throwable caught ) { addBranch.setEnabled ( true ) ; com.google.gerrit.client.admin.ProjectBranchesScreen.selectAllAndFocus ( nameTxtBox ) ; new com.google.gerrit.client.ErrorDialog ( caught.getMessage ( ) ) . center ( ) ; }

Target:
public void onFailure ( final java.lang.Throwable caught ) { addBranch.setEnabled ( true ) ; super . onFailure ( caught ) ; }