auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
void initMeter ( ) { if ( ( meter ) == null ) { meter = new com.google.gwtexpui.progress.client.ProgressBar ( Util.M.loadingPatchSet ( psid.get ( ) ) ) ; myBody.clear ( ) ; myBody.add ( meter ) ; } updateMeter ( ) ; }

Target:
public void setRegisterKeys ( final boolean on ) { myTable.setRegisterKeys ( on ) ; }
Source:
public void testWarnNonExistingRuleBase ( ) { replayMocks ( ) ; createRuleBase ( ) ; assertLogMessageContains ( "does not exist" ) ; }

Target:
public void testWarnNonExistingRuleBase ( ) { replayMocks ( ) ; createRuleBase ( ) ; assertLogMessageContains ( "Neither global" ) ; }
Source:
com.google.gerrit.client.diff.LineMapper.LineOnOtherInfo lineOnOther ( com.google.gerrit.client.diff.DisplaySide side , int line ) { return getChunkManager ( ) . getLineMapper ( ) . lineOnOther ( side , line ) ; }

Target:
com.google.gerrit.client.diff.LineMapper.LineOnOtherInfo lineOnOther ( com.google.gerrit.client.diff.DisplaySide side , int line ) { return getChunkManager ( ) . lineMapper.lineOnOther ( side , line ) ; }
Source:
public com.google.gerrit.reviewdb.client.PatchLineComment apply ( com.google.gerrit.server.notedb.RevisionNoteData.Comment c ) { com.google.gerrit.reviewdb.client.PatchLineComment plc = c.export ( ) ; plc.setStatus ( status ) ; return plc ; }

Target:
com.google.common.collect.ImmutableList < com.google.gerrit.reviewdb.client.PatchLineComment > exportComments ( com.google.gerrit.reviewdb.client.PatchLineComment.Status status ) { return com.google.common.collect.ImmutableList.copyOf ( comments.stream ( ) . map ( ( c ) -> c.export ( status ) ) . collect ( java.util.stream.Collectors.toList ( ) ) ) ; }
Source:
public org.eclipse.jgit.transport.UploadPack create ( javax.servlet.http.HttpServletRequest req , org.eclipse.jgit.lib.Repository repo ) { org.eclipse.jgit.transport.UploadPack up = new org.eclipse.jgit.transport.UploadPack ( repo ) ; up.setPackConfig ( packConfig ) ; return up ; }

Target:
public org.eclipse.jgit.transport.UploadPack create ( javax.servlet.http.HttpServletRequest req , org.eclipse.jgit.lib.Repository repo ) { org.eclipse.jgit.transport.UploadPack up = new org.eclipse.jgit.transport.UploadPack ( repo ) ; up.setPackConfig ( packConfig ) ; session.get ( ) . setAccessPath ( AccessPath.GIT ) ; return up ; }
Source:
public void blockOwnerProject ( ) { com.google.gerrit.server.project.Util.allow ( local , com.google.gerrit.common.data.Permission.OWNER , com.google.gerrit.server.project.Util.ADMIN , "refs/*" ) ; com.google.gerrit.server.project.Util.block ( local , com.google.gerrit.common.data.Permission.OWNER , com.google.gerrit.server.project.Util.DEVS , "refs/*" ) ; assertAdminsAreOwnersAndDevsAreNot ( ) ; }

Target:
public void denyOwnerProject ( ) { com.google.gerrit.server.project.testing.Util.allow ( local , com.google.gerrit.common.data.Permission.OWNER , com.google.gerrit.server.project.testing.Util.ADMIN , "refs/*" ) ; com.google.gerrit.server.project.testing.Util.deny ( local , com.google.gerrit.common.data.Permission.OWNER , com.google.gerrit.server.project.testing.Util.DEVS , "refs/*" ) ; assertAdminsAreOwnersAndDevsAreNot ( ) ; }
Source:
public void startCharGreaterThanEndCharForSameLineResultsInInvalidRange ( ) { com.google.gerrit.extensions.client.Comment.Range range = createRange ( 13 , 11 , 13 , 10 ) ; com.google.gerrit.extensions.client.testing.RangeSubject.assertThat ( range ) . isInvalid ( ) ; }

Target:
public void startCharGreaterThanEndCharForSameLineResultsInInvalidRange ( ) { com.google.gerrit.extensions.client.Comment.Range range = createRange ( 13 , 11 , 13 , 10 ) ; com.google.gerrit.extensions.common.testing.RangeSubject.assertThat ( range ) . isInvalid ( ) ; }
Source:
final native void set_commit ( com.google.gerrit.client.changes.ChangeInfo.CommitInfo c ) ;

Target:
final native void setCommit ( com.google.gerrit.client.changes.ChangeInfo.CommitInfo c ) ;
Source:
public com.google.gerrit.server.IdentifiedUser create ( com.google.inject.Provider < com.google.gerrit.reviewdb.ReviewDb > db , com.google.gerrit.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( AccessPath.UNKNOWN , authConfig , canonicalUrl , realm , accountCache , null , db , id ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( com.google.inject.Provider < com.google.gerrit.reviewdb.ReviewDb > db , com.google.gerrit.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( AccessPath.UNKNOWN , authConfig , canonicalUrl , realm , accountCache , starredChangesCache , accountProjectWatchCache , accountDiffPreferencesCache , null , db , id ) ; }
Source:
public void testGcNotAllowed_Forbidden ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( userSession.post ( ( ( "/projects/" + ( allProjects.get ( ) ) ) + "/gc" ) ) . getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_FORBIDDEN ) ; }

Target:
public void testGcNotAllowed_Forbidden ( ) throws java.lang.Exception { userSession.post ( ( ( "/projects/" + ( allProjects.get ( ) ) ) + "/gc" ) ) . assertForbidden ( ) ; }
Source:
public org.eclipse.jgit.lib.PersonIdent newCommitter ( ) { return newIdent ( getUser ( ) . getAccount ( ) ) ; }

Target:
public org.eclipse.jgit.revwalk.RevCommit commit ( ) throws java.io.IOException { com.google.gerrit.server.notedb.BatchMetaDataUpdate batch = openUpdate ( ) ; try { batch.write ( new org.eclipse.jgit.lib.CommitBuilder ( ) ) ; return batch.commit ( ) ; } finally { batch.close ( ) ; } }
Source:
public void onSignOut ( ) { if ( isRequiresSignIn ( ) ) { com.google.gwt.user.client.History.newItem ( PageLinks.ALL_OPEN ) ; } }

Target:
public void onSignOut ( ) { if ( isRequiresSignIn ( ) ) { com.google.gwt.user.client.History.newItem ( com.google.gerrit.common.PageLinks.toChangeQuery ( "status:open" ) ) ; } }
Source:
public void commentOnReviewableChangeByOther ( ) throws java.lang.Exception { com.google.gerrit.acceptance.TestAccount other = accounts.create ( "other" , "other@example.com" , "other" ) ; com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( com.google.gerrit.server.account.WatchConfig.NotifyType.ALL_COMMENTS ) ; setApiUser ( other ) ; review ( sc.changeId , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.ENABLED ) ; assertThat ( sender ) . sent ( "comment" , sc ) . notTo ( other ) . to ( sc.owner ) . to ( sc.reviewerByEmail ) . cc ( sc.reviewer , sc.ccer ) . cc ( sc.ccerByEmail ) . bcc ( sc.starrer ) . bcc ( com.google.gerrit.server.account.WatchConfig.NotifyType.ALL_COMMENTS ) ; }

Target:
public void commentOnReviewableChangeByOther ( ) throws java.lang.Exception { com.google.gerrit.acceptance.TestAccount other = accountCreator.create ( "other" , "other@example.com" , "other" ) ; com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( com.google.gerrit.server.account.WatchConfig.NotifyType.ALL_COMMENTS ) ; review ( other , sc.changeId , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.ENABLED ) ; assertThat ( sender ) . sent ( "comment" , sc ) . notTo ( other ) . to ( sc.owner ) . to ( sc.reviewerByEmail ) . cc ( sc.reviewer , sc.ccer ) . cc ( sc.ccerByEmail ) . bcc ( sc.starrer ) . bcc ( com.google.gerrit.server.account.WatchConfig.NotifyType.ALL_COMMENTS ) ; }
Source:
public void addPatchSets ( com.google.gerrit.server.events.ChangeAttribute a , java.util.Collection < com.google.gerrit.reviewdb.PatchSet > ps ) { addPatchSets ( a , ps , null ) ; }

Target:
public void addCommitMessage ( com.google.gerrit.server.events.ChangeAttribute a , java.lang.String commitMessage ) { a.commitMessage = commitMessage ; }
Source:
private void rollback ( ) { for ( com.googlesrouce.gerrit.plugins.github.git.ImportStep importStep : importSteps ) { importStep.rollback ( ) ; } }

Target:
private void rollback ( ) { for ( com.googlesource.gerrit.plugins.github.git.ImportStep importStep : importSteps ) { importStep.rollback ( ) ; } }
Source:
void onPublishEdit ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.EditActions.publishEdit ( changeId , publishEdit , rebaseEdit , deleteEdit ) ; }

Target:
void onDeleteEdit ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( com.google.gwt.user.client.Window.confirm ( Resources.C.deleteChangeEdit ( ) ) ) { com.google.gerrit.client.change.EditActions.deleteEdit ( getProject ( ) , changeId , publishEdit , rebaseEdit , deleteEdit ) ; } }
Source:
protected com.google.gerrit.acceptance.StandaloneSiteTest.ServerContext startServer ( @ com.google.gerrit.common.Nullable com.google.inject.Module testSysModule ) throws java.lang.Exception { return new com.google.gerrit.acceptance.StandaloneSiteTest.ServerContext ( startImpl ( testSysModule ) ) ; }

Target:
protected com.google.gerrit.acceptance.StandaloneSiteTest.ServerContext startServer ( @ com.google.gerrit.common.Nullable com.google.inject.Module testSysModule , java.lang.String ... additionalArgs ) throws java.lang.Exception { return new com.google.gerrit.acceptance.StandaloneSiteTest.ServerContext ( startImpl ( testSysModule , additionalArgs ) ) ; }
Source:
public void onCallStart ( ) { if ( ( ++ ( activeCalls ) ) == 1 ) { loading.setVisible ( true ) ; } }

Target:
public void onCallStart ( ) { if ( ( ++ ( activeCalls ) ) == 1 ) { if ( ( com.google.gerrit.client.RpcStatus.hideDepth ) == 0 ) { loading.setVisible ( true ) ; } } }
Source:
public final void addLineClass ( int line , net.codemirror.lib.CodeMirror.LineClassWhere where , java.lang.String className ) { addLineClassNative ( line , where.name ( ) . toLowerCase ( ) , className ) ; }

Target:
public final void addLineClass ( net.codemirror.lib.CodeMirror.LineHandle line , net.codemirror.lib.CodeMirror.LineClassWhere where , java.lang.String className ) { addLineClassNative ( line , where.value ( ) , className ) ; }
Source:
public boolean canSeeGroup ( com.google.gerrit.reviewdb.AccountGroup.Id id ) { return isVisible ( ) ; }

Target:
public boolean canAddGroup ( com.google.gerrit.reviewdb.AccountGroup.Id id ) { return isOwner ( ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.info.AccountPreferencesInfo prefs ) { com.google.gerrit.client.Gerrit.getUserAccount ( ) . setGeneralPreferences ( p ) ; com.google.gerrit.client.Gerrit.applyUserPreferences ( ) ; enable ( true ) ; display ( prefs ) ; com.google.gerrit.client.Gerrit.refreshMenuBar ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.info.AccountPreferencesInfo prefs ) { com.google.gerrit.client.Gerrit.setUserPreferences ( prefs ) ; enable ( true ) ; display ( prefs ) ; }
Source:
public static void deleteEdit ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gerrit.client.changes.ChangeApi.edit ( id ) . delete ( cb ) ; }

Target:
public static void deleteRevision ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , java.lang.String commit , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gerrit.client.changes.ChangeApi.revision ( project , id , commit ) . delete ( cb ) ; }
Source:
public final native boolean hasActiveLine ( ) ;

Target:
private static native net.codemirror.lib.CodeMirror newCM ( com.google.gwt.dom.client.Element p , net.codemirror.lib.Configuration cfg ) ;
Source:
public java.util.Set < com.google.gerrit.server.account.externalids.ExternalId > byEmail ( java.lang.String email ) throws java.io.IOException { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public com.google.common.collect.ImmutableSetMultimap < java.lang.String , com.google.gerrit.server.account.externalids.ExternalId > byEmails ( java.lang.String ... emails ) throws java.io.IOException { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
public final java.util.Set < java.lang.String > labels ( ) { return all_labels ( ) . keySet ( ) ; }

Target:
public final java.util.Set < java.lang.String > labels ( ) { return allLabels ( ) . keySet ( ) ; }
Source:
private static void install ( com.google.gwt.core.client.JavaScriptObject cb , com.google.gwt.core.client.JavaScriptObject p ) { try { com.google.gerrit.client.api.ApiGlue.pluginName = com.google.gerrit.client.api.PluginName.get ( ) ; com.google.gerrit.client.api.ApiGlue.invoke ( cb , p ) ; } finally { com.google.gerrit.client.api.ApiGlue.pluginName = null ; } }

Target:
private static void install ( com.google.gwt.core.client.JavaScriptObject cb , com.google.gerrit.client.api.JsUiPlugin p ) { try { com.google.gerrit.client.api.ApiGlue.pluginName = p.name ( ) ; com.google.gerrit.client.api.ApiGlue.invoke ( cb , p ) ; } finally { com.google.gerrit.client.api.ApiGlue.pluginName = null ; } }
Source:
public void onSuccess ( java.lang.String result ) { type = result ; injectMode ( result , modeInjectorCb ) ; }

Target:
public void onSuccess ( java.lang.String result ) { net.codemirror.mode.ModeInfo mode = net.codemirror.mode.ModeInfo.findMode ( result , path ) ; type = ( mode != null ) ? mode.mime ( ) : null ; injectMode ( result , modeInjectorCb ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.changes.SubmitInfo result ) { saveStateOnUnload = false ; goChange ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.PublishCommentScreen.ReviewInput result ) { if ( submit ) { submit ( ) ; } else { saveStateOnUnload = false ; goChange ( ) ; } }
Source:
public void run ( ) { resizePaddingOnOtherSide ( side , instance.getLineNumber ( handle ) ) ; }

Target:
public void handle ( net.codemirror.lib.CodeMirror cm , net.codemirror.lib.CodeMirror.LineHandle lh , com.google.gwt.dom.client.Element e ) { commentManager.resizePadding ( lh ) ; chunkManager.resizePadding ( cm , lh , side ) ; }
Source:
private void detach ( ) { if ( ( lineWidget ) != null ) { lineWidget.clear ( ) ; lineWidget = null ; } manager.clearLine ( cm.side ( ) , line ) ; removeFromParent ( ) ; }

Target:
private void detach ( ) { if ( ( lineWidget ) != null ) { lineWidget.clear ( ) ; lineWidget = null ; updateSelection ( ) ; } manager.clearLine ( cm.side ( ) , line ) ; removeFromParent ( ) ; }
Source:
com.google.gerrit.client.reviewdb.Account byLocalId ( com.google.gerrit.client.reviewdb.Account.Id key ) throws com.google.gwtorm.client.OrmException ;

Target:
com.google.gerrit.client.reviewdb.Account byId ( com.google.gerrit.client.reviewdb.Account.Id key ) throws com.google.gwtorm.client.OrmException ;
Source:
public static com.google.gerrit.client.ui.AccountLink link ( final com.google.gerrit.common.data.AccountInfoCache cache , final com.google.gerrit.reviewdb.client.Account.Id id ) { final com.google.gerrit.common.data.AccountInfo ai = cache.get ( id ) ; return ai != null ? new com.google.gerrit.client.ui.AccountLink ( ai ) : null ; }

Target:
public static com.google.gerrit.client.ui.AccountLink link ( com.google.gerrit.common.data.AccountInfoCache cache , com.google.gerrit.reviewdb.client.Account.Id id ) { com.google.gerrit.client.changes.AccountInfo ai = cache.get ( id ) ; return ai != null ? new com.google.gerrit.client.ui.AccountLink ( ai ) : null ; }
Source:
public static com.google.gerrit.server.account.ExternalId createWithEmail ( com.google.gerrit.server.account.ExternalId.Key key , com.google.gerrit.reviewdb.client.Account.Id accountId , java.lang.String email ) { return new com.google.gerrit.server.account.AutoValue_ExternalId ( key , accountId , email , null ) ; }

Target:
public static com.google.gerrit.server.account.ExternalId createWithEmail ( com.google.gerrit.server.account.ExternalId.Key key , com.google.gerrit.reviewdb.client.Account.Id accountId , @ com.google.gerrit.common.Nullable java.lang.String email ) { return new com.google.gerrit.server.account.AutoValue_ExternalId ( key , accountId , com.google.common.base.Strings.emptyToNull ( email ) , null ) ; }
Source:
protected void assertResultEquals ( com.google.gerrit.reviewdb.client.Change expected , com.google.gerrit.extensions.common.ChangeInfo actual ) { com.google.common.truth.Truth.assertThat ( actual._number ) . isEqualTo ( expected.getId ( ) . get ( ) ) ; }

Target:
protected void assertQuery ( java.lang.Object query , com.google.gerrit.reviewdb.client.Change ... changes ) throws java.lang.Exception { assertQuery ( newQuery ( query ) , changes ) ; }
Source:
protected void ccExistingReviewers ( ) { try { for ( com.google.gerrit.reviewdb.client.Account.Id id : getReviewers ( ) . get ( ReviewerState.REVIEWER ) ) { add ( RecipientType.CC , id ) ; } } catch ( com.google.gwtorm.server.OrmException err ) { com.google.gerrit.server.mail.ChangeEmail.log.warn ( "Cannot CC users that commented on updated change" , err ) ; } }

Target:
protected void ccAllApprovals ( ) { try { for ( com.google.gerrit.reviewdb.client.Account.Id id : changeData.reviewers ( ) . values ( ) ) { add ( RecipientType.CC , id ) ; } } catch ( com.google.gwtorm.server.OrmException err ) { com.google.gerrit.server.mail.ChangeEmail.log.warn ( "Cannot CC users that reviewed updated change" , err ) ; } }
Source:
public com.google.gerrit.server.query.change.ListChanges addQuery ( java.lang.String query ) { if ( ( queries ) == null ) { queries = com.google.common.collect.Lists.newArrayList ( ) ; } queries.add ( query ) ; return this ; }

Target:
public com.google.gerrit.server.change.ChangeJson setChangeControlFactory ( com.google.gerrit.server.project.ChangeControl.Factory cf ) { changeControlUserFactory = cf ; return this ; }
Source:
public static java.lang.String createCommit ( org.eclipse.jgit.api.Git git , org.eclipse.jgit.lib.PersonIdent i , java.lang.String msg ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { return com.google.gerrit.acceptance.git.ssh.GitUtil.createCommit ( git , i , msg , true ) ; }

Target:
public static java.lang.String createCommit ( org.eclipse.jgit.api.Git git , org.eclipse.jgit.lib.PersonIdent i , java.lang.String msg ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { return com.google.gerrit.acceptance.git.GitUtil.createCommit ( git , i , msg , true ) ; }
Source:
private java.util.List < com.google.gerrit.reviewdb.client.AccountSshKey > getKeys ( ) { checkLoaded ( ) ; return com.google.common.collect.Lists.newArrayList ( com.google.common.base.Optional.presentInstances ( keys ) ) ; }

Target:
private java.util.List < com.google.gerrit.reviewdb.client.AccountSshKey > getKeys ( ) { checkLoaded ( ) ; return keys.stream ( ) . filter ( java.util.Optional :: isPresent ) . map ( java.util.Optional :: get ) . collect ( java.util.stream.Collectors.toList ( ) ) ; }
Source:
public java.lang.String toString ( ) { return ( getClass ( ) . getSimpleName ( ) ) + ( ids ( ) ) ; }

Target:
public java.lang.String toString ( ) { return ( ( getClass ( ) . getSimpleName ( ) ) + ( ids ( ) ) ) + ( furtherHiddenChanges ? " and further hidden changes" : "" ) ; }
Source:
void build ( com.google.gerrit.httpd.raw.BuildSystem.Label l ) throws com.google.gerrit.httpd.raw.BuildSystem.BuildFailureException , java.io.IOException ;

Target:
abstract java.nio.file.Path targetPath ( com.google.gerrit.httpd.raw.BuildSystem.Label l ) ;
Source:
public java.util.SortedSet < ? extends com.google.gerrit.sshd.commands.TreeFormatter.TreeNode > getChildren ( ) { return children ; }

Target:
public java.util.SortedSet < ? extends com.google.gerrit.server.util.TreeFormatter.TreeNode > getChildren ( ) { return children ; }
Source:
public void shouldNotDispatchForwardedEvents ( ) { replayAll ( ) ; com.ericsson.gerrit.plugins.syncevents.Context.setForwardedEvent ( ) ; try { broker.fireEventForUnrestrictedListeners ( event ) ; } finally { com.ericsson.gerrit.plugins.syncevents.Context.unsetForwardedEvent ( ) ; } verifyAll ( ) ; }

Target:
public void shouldNotDispatchForwardedEvents ( ) { com.ericsson.gerrit.plugins.syncevents.Context.setForwardedEvent ( ) ; try { broker.fireEventForUnrestrictedListeners ( event ) ; } finally { com.ericsson.gerrit.plugins.syncevents.Context.unsetForwardedEvent ( ) ; } org.mockito.Mockito.verifyZeroInteractions ( listenerMock ) ; }
Source:
private static dk.brics.automaton.RegExp toRegExp ( java.lang.String refPattern ) { if ( refPattern.startsWith ( RefRight.REGEX_PREFIX ) ) { refPattern = refPattern.substring ( 1 ) ; } return new dk.brics.automaton.RegExp ( refPattern ) ; }

Target:
private static boolean isRE ( java.lang.String refPattern ) { return refPattern.startsWith ( RefRight.REGEX_PREFIX ) ; }
Source:
public static com.google.common.collect.ImmutableList < com.google.gerrit.server.git.gpg.TestKey > allValidKeys ( ) { return com.google.common.collect.ImmutableList.of ( com.google.gerrit.server.git.gpg.TestKey.key1 ( ) , com.google.gerrit.server.git.gpg.TestKey.key2 ( ) , com.google.gerrit.server.git.gpg.TestKey.key5 ( ) ) ; }

Target:
public static com.google.common.collect.ImmutableList < com.google.gerrit.gpg.testutil.TestKey > allValidKeys ( ) { return com.google.common.collect.ImmutableList.of ( com.google.gerrit.gpg.testutil.TestKey.key1 ( ) , com.google.gerrit.gpg.testutil.TestKey.key2 ( ) , com.google.gerrit.gpg.testutil.TestKey.key5 ( ) ) ; }
Source:
public void byId ( ) throws java.lang.Exception { com.google.gerrit.extensions.common.AccountInfo user = newAccount ( "user" ) ; assertQuery ( "9999999" ) ; assertQuery ( currentUserInfo._accountId , currentUserInfo ) ; assertQuery ( user._accountId , user ) ; setAnonymous ( ) ; assertQuery ( "9999999" ) ; }

Target:
public void asAnonymous ( ) throws java.lang.Exception { com.google.gerrit.extensions.common.AccountInfo user1 = newAccount ( "user1" ) ; setAnonymous ( ) ; assertQuery ( "9999999" ) ; assertQuery ( "self" ) ; assertQuery ( ( "username:" + ( user1.username ) ) , user1 ) ; }
Source:
protected void onOpenRow ( final int row ) { super . onOpenRow ( row ) ; openRow ( getRowItem ( row ) . name ( ) ) ; }

Target:
public void onKeyUp ( com.google.gwt.event.dom.client.KeyUpEvent event ) { subname = filterTxt.getValue ( ) ; populateProjects ( ) ; }
Source:
public void resetTime ( ) { org.joda.time.DateTimeUtils.setCurrentMillisSystem ( ) ; java.lang.System.setProperty ( "user.timezone" , systemTimeZone ) ; }

Target:
public void resetTime ( ) { com.google.gerrit.testutil.TestTimeUtil.useSystemTime ( ) ; java.lang.System.setProperty ( "user.timezone" , systemTimeZone ) ; }
Source:
com.googlesource.gerrit.plugins.webhooks.EventProcessor create ( com.google.gerrit.server.events.ProjectEvent event ) ;

Target:
java.util.Optional < com.googlesource.gerrit.plugins.webhooks.EventProcessor.Request > process ( com.google.gerrit.server.events.ProjectEvent event , com.googlesource.gerrit.plugins.webhooks.RemoteConfig remote ) ;
Source:
public void testExpiredTime ( ) throws java.lang.Exception { org.joda.time.DateTime now = now ( ) ; com.google.common.truth.Truth.assertThat ( Verifier.onTime ( com.googlesource.gerrit.plugins.lfs.LfsAuthToken.ISO.print ( now.minusMillis ( 1 ) ) ) ) . isFalse ( ) ; }

Target:
public void testExpiredTime ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( Verifier.onTime ( com.googlesource.gerrit.plugins.lfs.LfsDateTime.format ( now ( ) . minusMillis ( 1 ) ) ) ) . isFalse ( ) ; }
Source:
public boolean canSubmitAs ( ) { return canPerform ( Permission.SUBMIT_AS ) ; }

Target:
public boolean canViewPrivateChanges ( ) { return canPerform ( Permission.VIEW_PRIVATE_CHANGES ) ; }
Source:
final void setUseContributorAgreements ( com.google.gerrit.extensions.common.InheritableBoolean v ) { setUseContributorAgreementsRaw ( v.name ( ) ) ; }

Target:
final void setState ( com.google.gerrit.extensions.client.ProjectState s ) { setStateRaw ( s.name ( ) ) ; }
Source:
public com.google.gerrit.server.project.ListProjects setMatchPrefix ( java.lang.String prefix ) { this . matchPrefix = prefix ; return this ; }

Target:
public void setGroupUuid ( com.google.gerrit.reviewdb.client.AccountGroup.UUID groupUuid ) { this . groupUuid = groupUuid ; }
Source:
public static void deleteRevision ( int id , java.lang.String commit , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gerrit.client.changes.ChangeApi.revision ( id , commit ) . delete ( cb ) ; }

Target:
public static void deleteChange ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gerrit.client.changes.ChangeApi.change ( project , id ) . delete ( cb ) ; }
Source:
private void writeFile ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res ) throws java.io.IOException { res.setStatus ( HttpServletResponse.SC_NO_CONTENT ) ; streamRequestToFile ( req , resolveFile ( req ) ) ; }

Target:
private boolean isGerritConfig ( javax.servlet.http.HttpServletRequest req ) throws java.io.IOException { return java.nio.file.Files.isSameFile ( sitePaths.gerrit_config , resolvePath ( req ) ) ; }
Source:
public java.lang.String getAutomergeLabel ( ) throws org.eclipse.jgit.errors.ConfigInvalidException { java.lang.String automergeLabel = getConfig ( ) . getString ( "global" , null , "automergeLabel" ) ; return automergeLabel != null ? automergeLabel : "Verified" ; }

Target:
public java.lang.String getAutomergeLabel ( ) throws org.eclipse.jgit.errors.ConfigInvalidException { java.lang.String automergeLabel = getConfig ( ) . getString ( "global" , null , "automergeLabel" ) ; return automergeLabel != null ? automergeLabel : "Code-Review" ; }
Source:
private java.lang.String peeled ( java.lang.String refName ) throws java.io.IOException { return org.eclipse.jgit.lib.ObjectId.toString ( repo.getRepository ( ) . peel ( repo.getRepository ( ) . getRef ( refName ) ) . getPeeledObjectId ( ) ) ; }

Target:
private java.lang.String peeled ( java.lang.String refName ) throws java.io.IOException { return org.eclipse.jgit.lib.ObjectId.toString ( repo.getRepository ( ) . peel ( repo.getRepository ( ) . exactRef ( refName ) ) . getPeeledObjectId ( ) ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo info ) { info.init ( ) ; loadConfigInfo ( info , base ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo info ) { info.init ( ) ; addExtensionPoints ( info ) ; loadConfigInfo ( info , base ) ; }
Source:
public int getInt ( java.lang.String name , int defaultValue ) { return getValue ( name , new com.google.common.base.Function < java.lang.String , java.lang.Integer > ( ) { @ java.lang.Override public java.lang.Integer apply ( java.lang.String stringVal ) { return java.lang.Integer.parseInt ( stringVal ) ; } } , defaultValue ) ; }

Target:
public java.lang.String getString ( java.lang.String name ) { return cfg.getString ( com.google.gerrit.server.config.PluginConfig.PLUGIN , pluginName , name ) ; }
Source:
public void onFailure ( final java.lang.Throwable caught ) { k.getWatch ( ) . setNotifySubmittedChanges ( oldVal ) ; notifySubmittedChanges.setValue ( oldVal ) ; super . onFailure ( caught ) ; }

Target:
public void onSuccess ( final java.util.List < com.google.gerrit.reviewdb.Project > result ) { projectsTab.display ( result ) ; if ( firstPopupLoad ) { firstPopupLoad = false ; displayPopup ( ) ; } }
Source:
protected void set ( java.lang.String newValue ) { branchName = newValue ; }

Target:
protected void set ( java.lang.String newValue ) { branchName = com.google.gerrit.reviewdb.client.RefNames.fullName ( newValue ) ; }
Source:
public com.google.gerrit.client.ui.Screen recycleThis ( final com.google.gerrit.client.ui.Screen newScreen ) { ownerId = ( ( com.google.gerrit.client.changes.AccountDashboardScreen ) ( newScreen ) ) . ownerId ; return this ; }

Target:
public com.google.gerrit.client.ui.Screen recycleThis ( final com.google.gerrit.client.ui.Screen newScreen ) { ownerId = ( ( com.google.gerrit.client.changes.AccountDashboardScreen ) ( newScreen ) ) . ownerId ; setRequiresSignIn ( ( ( ownerId ) == null ) ) ; return this ; }
Source:
protected void onLoad ( ) { super . onLoad ( ) ; add ( new com.google.gerrit.client.api.ExtensionPanel ( com.google.gerrit.client.GerritUiExtensionPoint.PROFILE_SCREEN_BOTTOM ) ) ; display ( com.google.gerrit.client.Gerrit.getUserAccount ( ) ) ; display ( ) ; }

Target:
protected void onLoad ( ) { super . onLoad ( ) ; add ( createExtensionPoint ( GerritUiExtensionPoint.PROFILE_SCREEN_BOTTOM ) ) ; display ( com.google.gerrit.client.Gerrit.getUserAccount ( ) ) ; display ( ) ; }
Source:
public com.google.gerrit.server.index.FieldType < ? > getType ( ) { return def.getType ( ) ; }

Target:
public com.google.gerrit.index.FieldType < ? > getType ( ) { return def.getType ( ) ; }
Source:
private static java.lang.ClassLoader threadCL ( ) { try { return java.lang.Thread.currentThread ( ) . getContextClassLoader ( ) ; } catch ( java.lang.SecurityException e ) { return com.google.gwtorm.jdbc.Database.class . getClassLoader ( ) ; } }

Target:
private static java.lang.ClassLoader threadCL ( ) { try { return java.lang.Thread.currentThread ( ) . getContextClassLoader ( ) ; } catch ( java.lang.SecurityException e ) { return com.google.gwtorm.jdbc.SimpleDataSource.class . getClassLoader ( ) ; } }
Source:
public java.util.List < com.google.gwtexpui.safehtml.client.RegexFindReplace > getCommentLinks ( ) { return commentLinks ; }

Target:
public java.util.List < com.google.gerrit.common.data.GerritConfig.CommentLink > getSerializableCommentLinks ( ) { return commentLinks ; }
Source:
public void validateLocalDomain ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( validator.isValid ( "foo@bar.local" ) ) . isTrue ( ) ; }

Target:
public void resetDomainValidator ( ) throws java.lang.Exception { java.lang.Class < ? > c = java.lang.Class.forName ( "org.apache.commons.validator.routines.DomainValidator" ) ; java.lang.reflect.Field f = c.getDeclaredField ( "inUse" ) ; f.setAccessible ( true ) ; f.setBoolean ( c , false ) ; }
Source:
Change.Id parse ( java.lang.String id ) { return Change.Id.parse ( id ) ; }

Target:
Change.Id parse ( java.lang.String id ) { return new com.google.gerrit.reviewdb.client.Change.Id ( java.lang.Integer.parseInt ( id ) ) ; }
Source:
public void onLoad ( com.google.gerrit.plugin.client.screen.Screen screen ) { screen.setPageTitle ( "Imagare Preferences" ) ; screen.show ( new com.googlesource.gerrit.plugins.imagare.client.ImagarePreferenceScreen ( ) ) ; }

Target:
public void onLoad ( com.google.gerrit.plugin.client.screen.Screen screen ) { screen.setPageTitle ( "Imagare Preferences" ) ; screen.show ( new com.googlesource.gerrit.plugins.imagare.client.ImagarePreferenceScreen ( enableImageServer ) ) ; }
Source:
private static < K , V > com.google.inject.Key < com.google.gerrit.server.cache.EntryCreator < K , V > > newKey ( ) { return ( ( com.google.inject.Key < com.google.gerrit.server.cache.EntryCreator < K , V > > ) ( info.newKeyImpl ( ) ) ) ; }

Target:
private static < K , V > com.google.inject.Key < com.google.gerrit.server.cache.EntryCreator < K , V > > newKey ( ) { return ( ( com.google.inject.Key < com.google.gerrit.server.cache.EntryCreator < K , V > > ) ( com.google.gerrit.server.cache.CacheModule.newKeyImpl ( ) ) ) ; }
Source:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { saveName.setEnabled ( false ) ; setPageTitle ( Util.M.group ( newName ) ) ; }

Target:
public void onSuccess ( final com.google.gerrit.common.data.GroupDetail groupDetail ) { saveName.setEnabled ( false ) ; display ( groupDetail ) ; }
Source:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) { com.google.gerrit.client.Gerrit.display ( PageLinks.MINE ) ; } else { com.google.gerrit.client.Gerrit.display ( PageLinks.ALL_OPEN ) ; } }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { com.google.gerrit.client.Gerrit.displayLastChangeList ( ) ; }
Source:
static void setView ( javax.servlet.http.HttpServletRequest req , com.google.gitiles.GitilesView view ) { req.setAttribute ( com.google.gitiles.ViewFilter.VIEW_ATTIRBUTE , view ) ; }

Target:
static void setView ( javax.servlet.http.HttpServletRequest req , com.google.gitiles.GitilesView view ) { req.setAttribute ( com.google.gitiles.ViewFilter.VIEW_ATTRIBUTE , view ) ; }
Source:
private java.lang.String getValue ( final org.eclipse.jgit.lib.Config config , final java.lang.String section , final java.lang.String setting , final java.lang.String fallback ) { final java.lang.String result = config.getString ( section , null , setting ) ; return result == null ? fallback : result ; }

Target:
private java.lang.String getValue ( final org.eclipse.jgit.lib.Config config , final java.lang.String section , final java.lang.String setting , final java.lang.String fallback ) { final java.lang.String result = config.getString ( section , null , setting ) ; return com.google.common.base.Strings.isNullOrEmpty ( result ) ? fallback : result ; }
Source:
public static void publish ( int id , java.lang.String commit , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gwt.core.client.JavaScriptObject in = com.google.gwt.core.client.JavaScriptObject.createObject ( ) ; com.google.gerrit.client.changes.ChangeApi.call ( id , commit , "publish" ) . post ( in , cb ) ; }

Target:
public static void deleteEdit ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gerrit.client.changes.ChangeApi.edit ( project , id ) . delete ( cb ) ; }
Source:
public void onSuccess ( final com.google.gwtjsonrpc.common.VoidResult result ) { com.google.gerrit.client.Gerrit.getUserAccount ( ) . setUserName ( newUserName ) ; userNameLbl.setText ( newUserName ) ; userNameLbl.setVisible ( true ) ; userNameTxt.setVisible ( false ) ; setUserName.setVisible ( false ) ; }

Target:
public void onSuccess ( com.google.gwtjsonrpc.common.VoidResult result ) { com.google.gerrit.client.Gerrit.getUserAccount ( ) . username ( newUserName ) ; userNameLbl.setText ( newUserName ) ; userNameLbl.setVisible ( true ) ; userNameTxt.setVisible ( false ) ; setUserName.setVisible ( false ) ; }
Source:
public com.google.gerrit.reviewdb.com.google.gwtorm [ ] members ( ) { return new com.google.gwtorm.client.Key < ? > [ ] { projectName } ; }

Target:
public com.google.gerrit.reviewdb.com.google.gwtorm [ ] members ( ) { return new com.google.gwtorm.client.Key < ? > [ ] { projectName , filter } ; }
Source:
public void refsDraftCommentsPrefix ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( com.google.gerrit.reviewdb.client.RefNames.refsDraftCommentsPrefix ( accountId ) ) . isEqualTo ( "refs/draft-comments/23/1011123-" ) ; }

Target:
public void refsDraftCommentsPrefix ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( com.google.gerrit.reviewdb.client.RefNames.refsDraftCommentsPrefix ( accountId ) ) . isEqualTo ( "refs/draft-comments/23/1011123/" ) ; }
Source:
public final boolean isCustomExtension ( ) { return ( authType ( ) ) == ( com.google.gerrit.reviewdb.client.AuthType.CUSTOM_EXTENSION ) ; }

Target:
public final boolean isOAuth ( ) { return ( authType ( ) ) == ( com.google.gerrit.reviewdb.client.AuthType.OAUTH ) ; }
Source:
public void run ( ) { try { executePredicate ( ) ; } catch ( com.googlecode.prolog_cafe.lang.PrologException e ) { java.lang.System.out.println ( e.toString ( ) ) ; } catch ( java.lang.Exception e ) { printStackTrace ( e ) ; } stop ( ) ; }

Target:
public void run ( ) { try { executePredicate ( ) ; } catch ( com.googlecode.prolog_cafe.exceptions.PrologException e ) { java.lang.System.out.println ( e.toString ( ) ) ; } catch ( java.lang.Exception e ) { printStackTrace ( e ) ; } stop ( ) ; }
Source:
public java.lang.Boolean call ( ) throws java.lang.Exception { return client ( ) . issueExists ( issueKey ) ; }

Target:
public boolean exists ( final java.lang.String issueKey ) throws java.io.IOException { return execute ( ( ) -> client ( ) . issueExists ( issueKey ) ) ; }
Source:
public void onSuccess ( final java.util.List < com.google.gerrit.client.reviewdb.AccountSshKey > result ) { keys.display ( result ) ; if ( result.isEmpty ( ) ) { showAddKeyBlock ( true ) ; } }

Target:
public void onSuccess ( final java.util.List < com.google.gerrit.client.reviewdb.AccountSshKey > result ) { keys.display ( result ) ; if ( ( result.isEmpty ( ) ) && ( keys.isVisible ( ) ) ) { showAddKeyBlock ( true ) ; } }
Source:
public void onSuccess ( final com.google.gerrit.common.data.ProjectDetail result ) { enableForm ( true ) ; display ( result ) ; }

Target:
public void onSuccess ( final com.google.gerrit.common.data.ProjectDetail result ) { enableForm ( result.canModifyAgreements , result.canModifyDescription , result.canModifyMergeType ) ; display ( result ) ; }
Source:
private java.lang.Class < T > generate ( com.google.gwtorm.schema.sql.SqlDialect dialect , final com.google.gwtorm.server.GeneratedClassLoader loader ) throws com.google.gwtorm.client.OrmException { return ( ( java.lang.Class < T > ) ( new com.google.gwtorm.jdbc.gen.SchemaGen ( loader , schemaModel , dialect ) . create ( ) ) ) ; }

Target:
public < A extends com.google.gwtorm.client.Access < ? , ? > > java.lang.Class < A > create ( com.google.gwtorm.server.GeneratedClassLoader loader , com.google.gwtorm.schema.RelationModel rm ) throws com.google.gwtorm.client.OrmException { return new com.google.gwtorm.jdbc.gen.AccessGen ( loader , rm , dialect ) . create ( ) ; }
Source:
public int compare ( eu.medsea.mimeutil.MimeType a , eu.medsea.mimeutil.MimeType b ) { return ( b.getSpecificity ( ) ) - ( a.getSpecificity ( ) ) ; }

Target:
public int compare ( eu.medsea.mimeutil.MimeType a , eu.medsea.mimeutil.MimeType b ) { return ( getCorrectedMimeSpecificity ( b ) ) - ( getCorrectedMimeSpecificity ( a ) ) ; }
Source:
boolean isHtmlAllowed ( com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.Formatter formatter ) { return cfg.getBoolean ( com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.SECTION_FORMATTER , formatter.name ( ) , com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.KEY_ALLOW_HTML , false ) ; }

Target:
static void initialize ( org.eclipse.jgit.lib.Config cfg ) { cfg.setString ( com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.SECTION_FORMATTER , MarkdownFormatter.NAME , com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.KEY_MIME_TYPE , "text/x-markdown" ) ; cfg.setString ( com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.SECTION_FORMATTER , PlainTextFormatter.NAME , com.googlesource.gerrit.plugins.xdocs.XDocGlobalConfig.KEY_MIME_TYPE , "text/plain" ) ; }
Source:
private void checkNotSlaveMode ( ) throws com.google.gerrit.common.Die { org.eclipse.jgit.lib.Config cfg = dbInjector.getInstance ( com.google.inject.Key.get ( org.eclipse.jgit.lib.Config.class , com.google.gerrit.server.config.GerritServerConfig.class ) ) ; if ( cfg.getBoolean ( "container" , "slave" , false ) ) { throw die ( "Cannot run reindex in slave mode" ) ; } }

Target:
private void checkNotSlaveMode ( ) throws com.google.gerrit.common.Die { if ( globalConfig.getBoolean ( "container" , "slave" , false ) ) { throw die ( "Cannot run reindex in slave mode" ) ; } }
Source:
public static void topMenus ( com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.info.TopMenuList > cb ) { new com.google.gerrit.client.rpc.RestApi ( "/config/server/top-menus" ) . get ( cb ) ; }

Target:
public static void topMenus ( com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.info.TopMenuList > cb ) { new com.google.gerrit.client.rpc.RestApi ( "config/server/top-menus" ) . get ( cb ) ; }
Source:
protected abstract void doRun ( ) throws java.io.IOException , org.eclipse.jgit.lfs.errors.LfsException ;

Target:
protected abstract java.lang.String getProjectName ( ) throws org.eclipse.jgit.lfs.errors.LfsException ;
Source:
private static boolean isLdapUUID ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) { return uuid.get ( ) . startsWith ( com.google.gerrit.server.auth.ldap.Helper.LDAP_UUID ) ; }

Target:
private boolean isLdapUUID ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) { return ( helper.hasLdapConfiguration ( ) ) && ( uuid.get ( ) . startsWith ( com.google.gerrit.server.auth.ldap.Helper.LDAP_UUID ) ) ; }
Source:
public void onSizeChanged ( ) { root.relayout ( ) ; }

Target:
public void onSizeChanged ( ) { diffView.relayout ( ) ; }
Source:
Change.Id getChangeId ( ) { return changeId ; }

Target:
PatchSet.Id getPatchSetId ( ) { return new com.google.gerrit.reviewdb.client.PatchSet.Id ( changeInfo.legacyId ( ) , changeInfo.revisions ( ) . get ( revision ) . _number ( ) ) ; }
Source:
public void onSuccess ( java.lang.String result ) { type = result ; injectMode ( result , modeInjectorCb ) ; }

Target:
public void onSuccess ( java.lang.Void result ) { net.codemirror.theme.ThemeLoader.loadTheme ( prefs.theme ( ) , themeCallback ) ; }
Source:
public void init ( javax.servlet.FilterConfig config ) { }

Target:
public void init ( javax.servlet.FilterConfig config ) throws javax.servlet.ServletException { if ( com.google.common.base.Strings.isNullOrEmpty ( gitOAuthProvider ) ) { pickOnlyProvider ( ) ; } else { pickConfiguredProvider ( ) ; } }
Source:
public void destroySite ( ) throws java.lang.Exception { if ( ( sitePath ) != null ) { com.google.gerrit.acceptance.TempFileUtil.cleanup ( ) ; } }

Target:
public void destroySite ( ) throws java.lang.Exception { if ( ( sitePath ) != null ) { com.google.gerrit.testutil.TempFileUtil.cleanup ( ) ; } }
Source:
public void commit ( ) { throw new com.google.gerrit.testutil.DisabledReviewDb.Disabled ( ) ; }

Target:
public void commit ( ) { throw new com.google.gerrit.testing.DisabledReviewDb.Disabled ( ) ; }
Source:
public void testWithSectionToOtherServer ( ) throws java.lang.Exception { com.google.gerrit.reviewdb.client.Project.NameKey p1 = createProject ( "a" ) ; org.eclipse.jgit.lib.Config cfg = new org.eclipse.jgit.lib.Config ( ) ; cfg.fromText ( ( ( ( ( "" + ( ( "[submodule \"a\"]" + "path = a" ) + "url = ssh://non-localhost/" ) ) + ( p1.get ( ) ) ) + "\n" ) + "branch = ." ) ) ; java.lang.String thisServer = com.google.gerrit.acceptance.git.SubmoduleSectionParserIT.THIS_SERVER ; com.google.gerrit.reviewdb.client.Branch.NameKey targetBranch = new com.google.gerrit.reviewdb.client.Branch.NameKey ( new com.google.gerrit.reviewdb.client.Project.NameKey ( "project" ) , "master" ) ; java.util.Set < com.google.gerrit.reviewdb.client.SubmoduleSubscription > res = new com.google.gerrit.server.util.SubmoduleSectionParser ( projectCache , cfg , thisServer , targetBranch ) . parseAllSections ( ) ; com.google.common.truth.Truth.assertThat ( res ) . isEmpty ( ) ; }

Target:
public void testWithSectionToOtherServer ( ) throws java.lang.Exception { com.google.gerrit.reviewdb.client.Project.NameKey p1 = createProject ( "a" ) ; org.eclipse.jgit.lib.Config cfg = new org.eclipse.jgit.lib.Config ( ) ; cfg.fromText ( ( ( ( ( "" + ( ( "[submodule \"a\"]" + "path = a" ) + "url = ssh://non-localhost/" ) ) + ( p1.get ( ) ) ) + "\n" ) + "branch = ." ) ) ; com.google.gerrit.reviewdb.client.Branch.NameKey targetBranch = new com.google.gerrit.reviewdb.client.Branch.NameKey ( new com.google.gerrit.reviewdb.client.Project.NameKey ( "project" ) , "master" ) ; java.util.Set < com.google.gerrit.reviewdb.client.SubmoduleSubscription > res = new com.google.gerrit.server.util.SubmoduleSectionParser ( cfg , com.google.gerrit.acceptance.git.SubmoduleSectionParserIT.THIS_SERVER , targetBranch ) . parseAllSections ( ) ; com.google.common.truth.Truth.assertThat ( res ) . isEmpty ( ) ; }
Source:
private boolean isRelevantRef ( com.googlesource.gerrit.plugins.refprotection.Event event ) { return ( ! ( isNewRef ( event ) ) ) && ( ( event.getRefName ( ) . startsWith ( org.eclipse.jgit.lib.Constants.R_HEADS ) ) || ( event.getRefName ( ) . startsWith ( org.eclipse.jgit.lib.Constants.R_TAGS ) ) ) ; }

Target:
private boolean isRelevantRef ( com.google.gerrit.server.events.RefUpdatedEvent event ) { return ( ! ( isNewRef ( event ) ) ) && ( ( event.getRefName ( ) . startsWith ( org.eclipse.jgit.lib.Constants.R_HEADS ) ) || ( event.getRefName ( ) . startsWith ( org.eclipse.jgit.lib.Constants.R_TAGS ) ) ) ; }
Source:
public void run ( ) { com.google.gerrit.server.query.change.ChangeData cd = new com.google.gerrit.server.query.change.ChangeData ( change ) ; try { index.replace ( cd ) ; } catch ( java.io.IOException e ) { com.google.gerrit.server.index.ChangeIndexerImpl.log.error ( "Error indexing change" , e ) ; } }

Target:
public java.lang.Void call ( ) throws java.io.IOException { index.replace ( new com.google.gerrit.server.query.change.ChangeData ( change ) ) ; return null ; }
Source:
public void operationComplete ( org.apache.sshd.common.future.CloseFuture future ) { connected.decrementAndGet ( ) ; if ( sd.isAuthenticationError ( ) ) { sshLog.onAuthFail ( sd ) ; } }

Target:
public void operationComplete ( org.apache.sshd.common.future.CloseFuture future ) { connected.decrementAndGet ( ) ; if ( sd.isAuthenticationError ( ) ) { authFailures.increment ( ) ; sshLog.onAuthFail ( sd ) ; } }
Source:
public void onCreateGroup ( com.google.gerrit.reviewdb.client.AccountGroup.NameKey newGroupName ) { byName.invalidate ( newGroupName.get ( ) ) ; }

Target:
public void onCreateGroup ( com.google.gerrit.reviewdb.client.AccountGroup.NameKey newGroupName ) throws java.io.IOException { byName.invalidate ( newGroupName.get ( ) ) ; indexer.get ( ) . index ( get ( newGroupName ) . getGroupUUID ( ) ) ; }
Source:
private java.lang.String timeout ( int expirationSeconds ) { return com.googlesource.gerrit.plugins.lfs.fs.LfsFsRequestAuthorizer.DATE_TIME.print ( now ( ) . plusSeconds ( expirationSeconds ) ) ; }

Target:
protected boolean verifyTokenValues ( ) { return ( operation.equals ( token.operation ) ) && ( id.getName ( ) . equals ( token.id.getName ( ) ) ) ; }
Source:
void init ( java.lang.String name , com.google.gerrit.server.query.Predicate < T > [ ] args ) { this . name = name ; this . children = java.util.Arrays.asList ( args ) ; }

Target:
protected void init ( java.lang.String name , com.google.gerrit.server.query.Predicate < T > ... args ) { this . init = true ; this . name = name ; this . children = java.util.Arrays.asList ( args ) ; }
Source:
private void doVerify ( ) { org.easymock.EasyMock.verify ( schemaFactory , schema , subscriptions , urlProvider , repoManager , gitRefUpdated ) ; }

Target:
private void doVerify ( ) { mockMaker.verify ( ) ; }
Source:
private void renderDownload ( com.google.gerrit.client.changes.ChangeInfo info , java.lang.String revision ) { downloadAction = new com.google.gerrit.client.change.DownloadAction ( info.legacy_id ( ) , info.project ( ) , info.revision ( revision ) , style , headerLine , download ) ; }

Target:
private void initDownloadAction ( com.google.gerrit.client.changes.ChangeInfo info , java.lang.String revision ) { downloadAction = new com.google.gerrit.client.change.DownloadAction ( info.legacy_id ( ) , info.project ( ) , info.revision ( revision ) , style , headerLine , download ) ; }
Source:
public scala.reflect.internal.util.SourceFile apply ( java.io.File scalaFile ) { try { return new scala.reflect.internal.util.BatchSourceFile ( scalaFile.getName ( ) , readScalaFile ( scalaFile ) ) ; } catch ( java.io.IOException e ) { throw new java.lang.IllegalArgumentException ( ( "Cannot load scala file " + scalaFile ) , e ) ; } }

Target:
public scala.reflect.internal.util.SourceFile apply ( java.nio.file.Path scalaFile ) { try { return new scala.reflect.internal.util.BatchSourceFile ( scalaFile.toString ( ) , readScalaFile ( scalaFile ) ) ; } catch ( java.io.IOException e ) { throw new java.lang.IllegalArgumentException ( ( "Cannot load scala file " + scalaFile ) , e ) ; } }
Source:
private com.google.gerrit.server.project.RefControl getRefControl ( ) { return refControl ; }

Target:
private com.google.gerrit.server.project.ChangeControl forUser ( com.google.gerrit.server.CurrentUser who ) { if ( getUser ( ) . equals ( who ) ) { return this ; } return new com.google.gerrit.server.project.ChangeControl ( changeDataFactory , approvalsUtil , refControl.forUser ( who ) , notes , patchSetUtil ) ; }
Source:
protected void preDisplay ( final com.google.gerrit.client.projects.ProjectMap result ) { if ( mySubname.equals ( subname ) ) { display ( result ) ; } }

Target:
protected void onOpenRow ( final int row ) { com.google.gwt.user.client.History.newItem ( link ( getRowItem ( row ) ) ) ; }