auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void assertIllegalArgument ( java.lang.String value , java.lang.String expectedMessage ) { exception.expect ( java.lang.IllegalArgumentException.class ) ; exception.expectMessage ( expectedMessage ) ; com.google.gerrit.testutil.IndexVersionsTest.get ( value ) ; }

Target:
private void assertIllegalArgument ( java.lang.String value , java.lang.String expectedMessage ) { exception.expect ( java.lang.IllegalArgumentException.class ) ; exception.expectMessage ( expectedMessage ) ; com.google.gerrit.testing.IndexVersionsTest.get ( value ) ; }
Source:
public final java.sql.Timestamp updated ( ) { return com.google.gwtjsonrpc.client.impl.ser.JavaSqlTimestamp_JsonSerializer.parseTimestamp ( updatedRaw ( ) ) ; }

Target:
public final java.sql.Timestamp updated ( ) { java.lang.String updatedRaw = updatedRaw ( ) ; return updatedRaw == null ? null : com.google.gwtjsonrpc.client.impl.ser.JavaSqlTimestamp_JsonSerializer.parseTimestamp ( updatedRaw ( ) ) ; }
Source:
protected void configureServlets ( ) { install ( new com.google.gerrit.httpd.rpc.RpcServletModule ( com.google.gerrit.httpd.rpc.UiRpcModule.PREFIX ) { @ java.lang.Override protected void configureServlets ( ) { rpc ( com.google.gerrit.httpd.auth.ldap.UserPassAuthServiceImpl.class ) ; } } ) ; }

Target:
protected void configureServlets ( ) { serve ( "/login/*" ) . with ( com.google.gerrit.httpd.auth.ldap.LoginRedirectServlet.class ) ; install ( new com.google.gerrit.httpd.rpc.RpcServletModule ( com.google.gerrit.httpd.rpc.UiRpcModule.PREFIX ) { @ java.lang.Override protected void configureServlets ( ) { rpc ( com.google.gerrit.httpd.auth.ldap.UserPassAuthServiceImpl.class ) ; } } ) ; }
Source:
public abstract java.lang.String getProjectDescription ( com.google.gerrit.reviewdb.client.Project.NameKey name ) throws java.io.IOException , org.eclipse.jgit.errors.RepositoryNotFoundException ;

Target:
org.eclipse.jgit.lib.Repository createRepository ( com.google.gerrit.reviewdb.client.Project.NameKey name ) throws com.google.gerrit.server.git.RepositoryCaseMismatchException , java.io.IOException , org.eclipse.jgit.errors.RepositoryNotFoundException ;
Source:
void appendSubmittedBy ( com.google.gerrit.reviewdb.client.Account user ) { sb.append ( "Submitted-by: " ) ; appendUserData ( user ) ; sb.append ( "\n" ) ; }

Target:
void appendSubmittedBy ( com.google.gerrit.reviewdb.client.Account.Id accountId , java.util.Optional < com.google.gerrit.reviewdb.client.Account > account ) { sb.append ( "Submitted-by: " ) ; appendUserData ( accountId , account ) ; sb.append ( "\n" ) ; }
Source:
public void deleteComment ( com.google.gerrit.reviewdb.client.PatchLineComment comment ) throws com.google.gwtorm.server.OrmException { if ( ( comment.getStatus ( ) ) == ( com.google.gerrit.reviewdb.client.PatchLineComment.Status.DRAFT ) ) { deleteDraftComment ( comment ) ; } else { throw new java.lang.IllegalArgumentException ( "Cannot delete a published comment." ) ; } }

Target:
public void deleteComment ( com.google.gerrit.reviewdb.client.PatchLineComment comment ) throws com.google.gwtorm.server.OrmException { if ( ( comment.getStatus ( ) ) == ( PatchLineComment.Status.DRAFT ) ) { deleteDraftComment ( comment ) ; } else { throw new java.lang.IllegalArgumentException ( "Cannot delete a published comment." ) ; } }
Source:
com.google.gerrit.server.git.ReplaceOp create ( com.google.gerrit.server.project.ProjectControl projectControl , com.google.gerrit.reviewdb.client.Branch.NameKey dest , boolean checkMergedInto , @ com.google.inject.assistedinject.Assisted ( value = "priorPatchSetId" ) com.google.gerrit.reviewdb.client.PatchSet.Id priorPatchSetId , @ com.google.inject.assistedinject.Assisted ( value = "priorCommit" ) org.eclipse.jgit.revwalk.RevCommit priorCommit , @ com.google.inject.assistedinject.Assisted ( value = "patchSetId" ) com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId , @ com.google.inject.assistedinject.Assisted ( value = "commit" ) org.eclipse.jgit.revwalk.RevCommit commit , com.google.gerrit.reviewdb.client.PatchSetInfo info , java.util.List < java.lang.String > groups , @ com.google.gerrit.common.Nullable com.google.gerrit.server.git.ReceiveCommits.MagicBranchInput magicBranch , @ com.google.gerrit.common.Nullable org.eclipse.jgit.transport.PushCertificate pushCertificate ) ;

Target:
com.google.gerrit.server.git.ReplaceOp create ( com.google.gerrit.server.project.ProjectControl projectControl , com.google.gerrit.reviewdb.client.Branch.NameKey dest , boolean checkMergedInto , @ com.google.inject.assistedinject.Assisted ( value = "priorPatchSetId" ) com.google.gerrit.reviewdb.client.PatchSet.Id priorPatchSetId , @ com.google.inject.assistedinject.Assisted ( value = "priorCommitId" ) org.eclipse.jgit.lib.ObjectId priorCommit , @ com.google.inject.assistedinject.Assisted ( value = "patchSetId" ) com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId , @ com.google.inject.assistedinject.Assisted ( value = "commitId" ) org.eclipse.jgit.lib.ObjectId commitId , com.google.gerrit.reviewdb.client.PatchSetInfo info , java.util.List < java.lang.String > groups , @ com.google.gerrit.common.Nullable com.google.gerrit.server.git.ReceiveCommits.MagicBranchInput magicBranch , @ com.google.gerrit.common.Nullable org.eclipse.jgit.transport.PushCertificate pushCertificate ) ;
Source:
private java.util.Set < com.google.gerrit.reviewdb.client.AccountGroup.UUID > groupsOf ( com.google.gerrit.reviewdb.client.Account account ) { com.google.gerrit.server.IdentifiedUser user = userFactory.create ( account.getId ( ) ) ; return new java.util.HashSet < com.google.gerrit.reviewdb.client.AccountGroup.UUID > ( user.getEffectiveGroups ( ) ) ; }

Target:
private java.util.Set < com.google.gerrit.reviewdb.client.AccountGroup.UUID > groupsOf ( com.google.gerrit.reviewdb.client.Account account ) { return userFactory.create ( account.getId ( ) ) . getEffectiveGroups ( ) . getKnownGroups ( ) ; }
Source:
public void setRequireChangeID ( final boolean cid ) { requireChangeID = cid ; }

Target:
public void setRequireChangeID ( final com.google.gerrit.reviewdb.client.Project.InheritedBoolean cid ) { requireChangeID = cid ; }
Source:
public com.google.gerrit.reviewdb.client.PatchSetApproval get ( com.google.gerrit.reviewdb.client.PatchSetApproval.Key key ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.server.schema.DisabledChangesReviewDbWrapper.MSG ) ; }

Target:
public com.google.gerrit.reviewdb.client.PatchSetApproval get ( com.google.gerrit.reviewdb.client.PatchSetApproval.Key key ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.reviewdb.server.DisabledChangesReviewDbWrapper.MSG ) ; }
Source:
public void selfRevokedKey ( ) throws java.lang.Exception { assertProblems ( com.google.gerrit.gpg.testutil.TestKey.key4 ( ) , "Key is revoked" ) ; }

Target:
public void selfRevokedKey ( ) throws java.lang.Exception { assertProblems ( com.google.gerrit.gpg.testutil.TestKeys.key4 ( ) , "Key is revoked" ) ; }
Source:
protected void preDisplay ( java.lang.String content ) { initEditor ( content ) ; }

Target:
public void onSuccess ( java.lang.String result ) { type = result ; injectMode ( result , modeInjectorCb ) ; }
Source:
public void addPatchSets ( com.google.gerrit.server.events.ChangeAttribute ca , java.util.Collection < com.google.gerrit.reviewdb.client.PatchSet > ps , java.util.Map < com.google.gerrit.reviewdb.client.PatchSet.Id , java.util.Collection < com.google.gerrit.reviewdb.client.PatchSetApproval > > approvals , com.google.gerrit.common.data.LabelTypes labelTypes ) { addPatchSets ( ca , ps , approvals , false , null , labelTypes ) ; }

Target:
public void addPatchSets ( com.google.gerrit.server.data.ChangeAttribute ca , java.util.Collection < com.google.gerrit.reviewdb.client.PatchSet > ps , java.util.Map < com.google.gerrit.reviewdb.client.PatchSet.Id , java.util.Collection < com.google.gerrit.reviewdb.client.PatchSetApproval > > approvals , com.google.gerrit.common.data.LabelTypes labelTypes ) { addPatchSets ( ca , ps , approvals , false , null , labelTypes ) ; }
Source:
private void preMerge ( ) throws com.google.gerrit.server.git.MergeException { final com.google.gerrit.server.git.SubmitStrategy strategy = createStrategy ( ) ; mergeTip = strategy.run ( branchTip , toMerge ) ; refLogIdent = strategy.getRefLogIdent ( ) ; commits.putAll ( strategy.getNewCommits ( ) ) ; }

Target:
private void preMerge ( final com.google.gerrit.server.git.SubmitStrategy strategy , final java.util.List < com.google.gerrit.server.git.CodeReviewCommit > toMerge ) throws com.google.gerrit.server.git.MergeException { mergeTip = strategy.run ( branchTip , toMerge ) ; refLogIdent = strategy.getRefLogIdent ( ) ; commits.putAll ( strategy.getNewCommits ( ) ) ; }
Source:
public com.googlecode.prolog_cafe.lang.NumberTerm shiftLeft ( com.googlecode.prolog_cafe.lang.NumberTerm t ) { if ( t.isDouble ( ) ) throw new com.googlecode.prolog_cafe.exceptions.IllegalTypeException ( "integer" , t ) ; return new com.googlecode.prolog_cafe.lang.IntegerTerm ( ( ( this . val ) << ( t.intValue ( ) ) ) ) ; }

Target:
public com.googlecode.prolog_cafe.lang.NumberTerm shiftRight ( com.googlecode.prolog_cafe.lang.NumberTerm t ) { if ( t instanceof com.googlecode.prolog_cafe.lang.DoubleTerm ) throw new com.googlecode.prolog_cafe.exceptions.IllegalTypeException ( "integer" , t ) ; return new com.googlecode.prolog_cafe.lang.IntegerTerm ( ( ( this . val ) > > ( t.intValue ( ) ) ) ) ; }
Source:
private void setupDefaultOperations ( ) { new org.eclipse.example.calc.internal.operations.Equals ( ) ; new org.eclipse.example.calc.internal.operations.Minus ( ) ; new org.eclipse.example.calc.internal.operations.Plus ( ) ; new org.eclipse.example.calc.internal.operations.Square ( ) ; new org.eclipse.example.calc.internal.Divide ( ) ; }

Target:
private void setupDefaultOperations ( ) { new org.eclipse.example.calc.internal.operations.Equals ( ) ; new org.eclipse.example.calc.internal.operations.Minus ( ) ; new org.eclipse.example.calc.internal.operations.Plus ( ) ; new org.eclipse.example.calc.internal.operations.Square ( ) ; new org.eclipse.example.calc.internal.Divide ( ) ; new org.eclipse.example.calc.internal.Multiply ( ) ; }
Source:
public void isEnabledForAllRefsByDefault ( ) throws java.lang.Exception { com.googlesource.gerrit.plugins.uploadvalidator.ValidatorConfig config = getConfig ( ( "[plugin \"uploadvalidator\"]\n" + "blockedFileExtension = jar" ) ) ; com.google.common.truth.Truth.assertThat ( config.isEnabledForRef ( projectName , "anyRef" , "blockedFileExtension" ) ) . isTrue ( ) ; }

Target:
public void isEnabledForAllRefsByDefault ( ) throws java.lang.Exception { com.googlesource.gerrit.plugins.uploadvalidator.ValidatorConfig config = getConfig ( ( "[plugin \"uploadvalidator\"]\n" + "blockedFileExtension = jar" ) ) ; com.google.common.truth.Truth.assertThat ( config.isEnabledForRef ( anyUser , projectName , "anyRef" , "blockedFileExtension" ) ) . isTrue ( ) ; }
Source:
public final native boolean isDefault ( ) ;

Target:
private final native boolean isDefaultNew ( ) ;
Source:
public static void init ( ) { com.google.gerrit.client.api.ApiGlue.init0 ( ) ; com.google.gerrit.client.api.ActionContext.init ( ) ; com.google.gerrit.client.api.ApiGlue.addHistoryHook ( ) ; }

Target:
public static void init ( ) { com.google.gerrit.client.api.ApiGlue.init0 ( ) ; com.google.gerrit.client.api.ActionContext.init ( ) ; com.google.gerrit.client.api.HtmlTemplate.init ( ) ; com.google.gerrit.client.api.Plugin.init ( ) ; com.google.gerrit.client.api.ApiGlue.addHistoryHook ( ) ; }
Source:
public static com.google.gerrit.common.data.SubmitTypeRecord OK ( com.google.gerrit.extensions.client.SubmitType type ) { com.google.gerrit.common.data.SubmitTypeRecord r = new com.google.gerrit.common.data.SubmitTypeRecord ( ) ; r.status = com.google.gerrit.common.data.SubmitTypeRecord.Status.OK ; r.type = type ; return r ; }

Target:
public static com.google.gerrit.common.data.SubmitTypeRecord error ( java.lang.String err ) { return new com.google.gerrit.common.data.SubmitTypeRecord ( com.google.gerrit.common.data.SubmitTypeRecord.Status.RULE_ERROR , null , err ) ; }
Source:
public < T extends java.lang.Enum < ? > > T readEnum ( T def , java.lang.String fmt , java.lang.Object ... args ) { return def ; }

Target:
public < T extends java.lang.Enum < ? > , A extends java.util.EnumSet < ? extends T > > T readEnum ( T def , A options , java.lang.String fmt , java.lang.Object ... args ) { return def ; }
Source:
public void onSelection ( com.google.gwt.event.logical.shared.SelectionEvent < com.google.gwt.user.client.ui.SuggestOracle.Suggestion > event ) { if ( submitOnSelection ) { submitOnSelection = false ; doAdd ( ) ; } }

Target:
public void onSelection ( com.google.gwt.event.logical.shared.SelectionEvent < com.google.gwt.user.client.ui.SuggestOracle.Suggestion > event ) { nameTxtBox.setFocus ( true ) ; if ( submitOnSelection ) { submitOnSelection = false ; doAdd ( ) ; } }
Source:
public int getCost ( ) { return 2 ; }

Target:
private static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > equalsLabelPredicate ( com.google.gerrit.server.project.ProjectCache projectCache , com.google.gerrit.server.project.ChangeControl.GenericFactory ccFactory , com.google.gerrit.server.IdentifiedUser.GenericFactory userFactory , com.google.inject.Provider < com.google.gerrit.reviewdb.server.ReviewDb > dbProvider , java.lang.String label , int expVal ) { return new com.google.gerrit.server.query.change.EqualsLabelPredicate ( projectCache , ccFactory , userFactory , dbProvider , label , expVal ) ; }
Source:
public final com.google.common.collect.ImmutableSortedMap < java.lang.Integer , com.google.gerrit.server.index.Schema < V > > getSchemas ( ) { return schemaDefs.getSchemas ( ) ; }

Target:
public final com.google.common.collect.ImmutableSortedMap < java.lang.Integer , com.google.gerrit.index.Schema < V > > getSchemas ( ) { return schemaDefs.getSchemas ( ) ; }
Source:
public com.google.gerrit.server.CurrentUser getUser ( ) { return user ; }

Target:
public void setUp ( ) throws java.lang.Exception { project = new com.google.gerrit.reviewdb.client.Project.NameKey ( "test" ) ; org.eclipse.jgit.lib.Repository inMemoryRepo = repoManager.createRepository ( project ) ; repo = new org.eclipse.jgit.junit.TestRepository ( inMemoryRepo ) ; }
Source:
public java.lang.String getName ( ) { return "Group" ; }

Target:
public java.lang.String getName ( ) { return "Group " + uuid ; }
Source:
public void put ( final K key , final V value ) { self.put ( new net.sf.ehcache.Element ( key , value ) ) ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > putAsync ( final K key , final V value ) { self.put ( new net.sf.ehcache.Element ( key , value ) ) ; return com.google.common.util.concurrent.Futures.immediateFuture ( null ) ; }
Source:
com.google.gerrit.server.git.strategy.SubmitStrategy.Arguments create ( com.google.gerrit.extensions.client.SubmitType submitType , com.google.gerrit.reviewdb.client.Branch.NameKey destBranch , com.google.gerrit.server.git.MergeOp.CommitStatus commits , com.google.gerrit.server.git.CodeReviewCommit.CodeReviewRevWalk rw , com.google.gerrit.server.IdentifiedUser caller , com.google.gerrit.server.git.MergeTip mergeTip , org.eclipse.jgit.lib.ObjectInserter inserter , org.eclipse.jgit.lib.Repository repo , org.eclipse.jgit.revwalk.RevFlag canMergeFlag , com.google.gerrit.reviewdb.server.ReviewDb db , java.util.Set < org.eclipse.jgit.revwalk.RevCommit > alreadyAccepted , java.lang.String submissionId ) ;

Target:
com.google.gerrit.server.git.strategy.SubmitStrategy.Arguments create ( com.google.gerrit.extensions.client.SubmitType submitType , com.google.gerrit.reviewdb.client.Branch.NameKey destBranch , com.google.gerrit.server.git.MergeOp.CommitStatus commits , com.google.gerrit.server.git.CodeReviewCommit.CodeReviewRevWalk rw , com.google.gerrit.server.IdentifiedUser caller , com.google.gerrit.server.git.MergeTip mergeTip , org.eclipse.jgit.lib.ObjectInserter inserter , org.eclipse.jgit.lib.Repository repo , org.eclipse.jgit.revwalk.RevFlag canMergeFlag , com.google.gerrit.reviewdb.server.ReviewDb db , java.util.Set < org.eclipse.jgit.revwalk.RevCommit > alreadyAccepted , java.lang.String submissionId , com.google.gerrit.extensions.api.changes.ReviewInput.NotifyHandling notifyHandling ) ;
Source:
public void onSuccess ( java.lang.Void result ) { net.codemirror.lib.Loader.initDisableUnwantedKeys ( ) ; }

Target:
public void onSuccess ( java.lang.Void result ) { net.codemirror.lib.Loader.initDisableUnwantedKeys ( ) ; cb.onSuccess ( null ) ; }
Source:
public static java.lang.String toProjectAcceess ( final com.google.gerrit.reviewdb.Project.NameKey p ) { return ( "admin,project," + ( p.get ( ) ) ) + ",access" ; }

Target:
public static java.lang.String toProjectAcceess ( final com.google.gerrit.reviewdb.Project.NameKey p ) { return ( "/admin/projects/" + ( p.get ( ) ) ) + ",access" ; }
Source:
public boolean enableDefaultUi ( ) { return ( ! ( headless ) ) && ( ! ( enablePolyGerrit ) ) ; }

Target:
public boolean headless ( ) { return headless ; }
Source:
public void addNonExistingMember_NotFound ( ) throws java.lang.Exception { adminSession.put ( "/groups/Administrators/members/non-existing" ) . assertNotFound ( ) ; }

Target:
public void addNonExistingMember_NotFound ( ) throws java.lang.Exception { adminRestSession.put ( "/groups/Administrators/members/non-existing" ) . assertNotFound ( ) ; }
Source:
public void maxAutomergeVoteDisabledTest ( ) throws java.lang.Exception { defaultSetup ( "automerger.config" ) ; com.google.common.truth.Truth.assertThat ( configLoader.maxAutomergeVoteDisabled ( ) ) . isEqualTo ( false ) ; }

Target:
public void maxAutomergeVoteDisabledTest ( ) throws java.lang.Exception { defaultSetup ( "automerger.config" ) ; com.google.common.truth.Truth.assertThat ( configLoader.maxAutomergeVoteDisabled ( ) ) . isFalse ( ) ; }
Source:
private GitilesView.Builder parseDescribeCommand ( javax.servlet.http.HttpServletRequest req , java.lang.String repoName , java.lang.String path ) { if ( com.google.gitiles.ViewFilter.isEmptyPath ( path ) ) { return null ; } return com.google.gitiles.GitilesView.describe ( ) . setRepositoryName ( repoName ) . setPathPart ( path ) ; }

Target:
private GitilesView.Builder parseDescribeCommand ( javax.servlet.http.HttpServletRequest req , java.lang.String repoName , java.lang.String path ) { if ( com.google.gitiles.ViewFilter.isEmptyOrSlash ( path ) ) { return null ; } return com.google.gitiles.GitilesView.describe ( ) . setRepositoryName ( repoName ) . setPathPart ( path ) ; }
Source:
public com.google.gerrit.extensions.common.ChangeInfo info ( ) throws com.google.gerrit.extensions.restapi.RestApiException { return get ( java.util.EnumSet.noneOf ( com.google.gerrit.extensions.common.ListChangesOption.class ) ) ; }

Target:
public java.util.List < com.google.gerrit.extensions.common.ChangeInfo > submittedTogether ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return submittedTogether.apply ( change ) ; } catch ( java.lang.Exception e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot query submittedTogether" , e ) ; } }
Source:
public void onSuccess ( com.google.gwt.core.client.JavaScriptObject result ) { removeUI ( ) ; }

Target:
public void onMouseMove ( com.google.gwt.event.dom.client.MouseMoveEvent event ) { resizePaddingWidget ( ) ; }
Source:
protected void add ( final javax.mail.Message.RecipientType rt , final java.util.Collection < com.google.gerrit.client.reviewdb.Account.Id > list ) throws javax.mail.MessagingException { for ( final com.google.gerrit.client.reviewdb.Account.Id id : list ) { add ( rt , id ) ; } }

Target:
protected void setHeader ( final java.lang.String name , final java.util.Date date ) { headers.put ( name , new com.google.gerrit.server.mail.EmailHeader.Date ( date ) ) ; }
Source:
public void setHashtags ( com.google.gerrit.extensions.api.changes.HashtagsInput input ) throws com.google.gerrit.extensions.restapi.RestApiException { try { postHashtags.apply ( change , input ) ; } catch ( com.google.gerrit.extensions.restapi.RestApiException | com.google.gerrit.server.git.UpdateException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot post hashtags" , e ) ; } }

Target:
public void setHashtags ( com.google.gerrit.extensions.api.changes.HashtagsInput input ) throws com.google.gerrit.extensions.restapi.RestApiException { try { postHashtags.apply ( change , input ) ; } catch ( com.google.gerrit.server.update.UpdateException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot post hashtags" , e ) ; } }
Source:
public static org.eclipse.jgit.revwalk.RevWalk newRevWalk ( org.eclipse.jgit.lib.Repository repo ) { return new org.eclipse.jgit.revwalk.RevWalk ( repo ) { @ java.lang.Override protected org.eclipse.jgit.revwalk.RevCommit createCommit ( org.eclipse.jgit.lib.AnyObjectId id ) { return new com.google.gerrit.server.git.CodeReviewCommit ( id ) ; } } ; }

Target:
public static org.eclipse.jgit.revwalk.RevWalk newRevWalk ( org.eclipse.jgit.lib.Repository repo ) { return new com.google.gerrit.server.git.CodeReviewCommit.CodeReviewRevWalk ( repo ) ; }
Source:
protected void onUnload ( ) { com.google.gerrit.client.Gerrit.removeSignedInListener ( signedInListener ) ; super . onUnload ( ) ; }

Target:
protected void onLoad ( ) { com.google.gerrit.client.Gerrit.addSignOutHandler ( signedInListener ) ; super . onLoad ( ) ; }
Source:
public void onSuccess ( final java.util.List < com.google.gerrit.common.data.ContributorAgreement > result ) { if ( isAttached ( ) ) { available = result ; postRPC ( ) ; } }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { doSign ( ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.rpc.NativeMap < com.google.gerrit.client.actions.ActionInfo > actionMap ) { actionMap.copyKeysIntoChildren ( "id" ) ; renderRevisionInfo ( changeInfo , actionMap ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo info ) { info.init ( ) ; loadConfigInfo ( info , base ) ; }
Source:
void toggleShowIntraline ( ) { prefs.intralineDifference ( ( ! ( prefs.intralineDifference ( ) ) ) ) ; setShowIntraline ( prefs.intralineDifference ( ) ) ; prefsAction.update ( ) ; }

Target:
private void toggleShowIntraline ( ) { prefs.intralineDifference ( ( ! ( java.lang.Boolean.valueOf ( prefs.intralineDifference ( ) ) ) ) ) ; setShowIntraline ( prefs.intralineDifference ( ) ) ; prefsAction.update ( ) ; }
Source:
public void onSuccess ( java.lang.Void result ) { net.codemirror.lib.Vim.initKeyMap ( ) ; cb.onSuccess ( null ) ; }

Target:
public void onSuccess ( com.google.gwt.resources.client.TextResource resource ) { com.google.gwt.dom.client.StyleInjector.inject ( resource.getText ( ) ) ; cb.onSuccess ( null ) ; }
Source:
public void batchAbandon ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.server.CurrentUser user , java.util.Collection < com.google.gerrit.server.project.ChangeControl > controls ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.update.UpdateException { batchAbandon ( project , user , controls , "" , NotifyHandling.ALL , com.google.common.collect.ImmutableListMultimap.of ( ) ) ; }

Target:
public void batchAbandon ( com.google.gerrit.server.update.BatchUpdate.Factory updateFactory , com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.server.CurrentUser user , java.util.Collection < com.google.gerrit.server.project.ChangeControl > controls ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.update.UpdateException { batchAbandon ( updateFactory , project , user , controls , "" , NotifyHandling.ALL , com.google.common.collect.ImmutableListMultimap.of ( ) ) ; }
Source:
private static java.lang.String getExtension ( java.io.File file ) { return com.google.gerrit.server.plugins.JarPluginProvider.getExtension ( file.getName ( ) ) ; }

Target:
private static java.lang.String getExtension ( java.nio.file.Path path ) { return com.google.gerrit.server.plugins.JarPluginProvider.getExtension ( path.getFileName ( ) . toString ( ) ) ; }
Source:
public boolean match ( com.google.gerrit.server.project.ProjectState projectState ) throws com.google.gwtorm.server.OrmException { return permissionBackend.user ( user ) . project ( projectState.getProject ( ) . getNameKey ( ) ) . testOrFalse ( ProjectPermission.READ ) ; }

Target:
public boolean match ( com.google.gerrit.server.project.ProjectData pd ) throws com.google.gwtorm.server.OrmException { return permissionBackend.user ( user ) . project ( pd.getProject ( ) . getNameKey ( ) ) . testOrFalse ( ProjectPermission.READ ) ; }
Source:
private static void assertParseNotifyValueFails ( java.lang.String notifyValue ) { try { com.google.gerrit.server.account.WatchConfigTest.parseNotifyValue ( notifyValue ) ; org.junit.Assert.fail ( ( "expected ConfigInvalidException for notifyValue: " + notifyValue ) ) ; } catch ( org.eclipse.jgit.errors.ConfigInvalidException e ) { } }

Target:
private void assertParseNotifyValueFails ( java.lang.String notifyValue ) { com.google.common.truth.Truth.assertThat ( validationErrors ) . isEmpty ( ) ; parseNotifyValue ( notifyValue ) ; com.google.common.truth.Truth.assertThat ( validationErrors ) . named ( ( "expected validation error for notifyValue: " + notifyValue ) ) . isNotEmpty ( ) ; validationErrors.clear ( ) ; }
Source:
public void testAppend_float ( ) { final com.google.gwtexpui.safehtml.client.SafeHtmlBuilder b = new com.google.gwtexpui.safehtml.client.SafeHtmlBuilder ( ) ; org.junit.Assert.assertSame ( b , b.append ( 0.0F ) ) ; org.junit.Assert.assertEquals ( "0.0" , b.asString ( ) ) ; }

Target:
public void testAppend_float ( ) { final com.google.gwtexpui.safehtml.client.SafeHtmlBuilder b = new com.google.gwtexpui.safehtml.client.SafeHtmlBuilder ( ) ; com.google.common.truth.Truth.assertThat ( b ) . isSameAs ( b.append ( 0.0F ) ) ; com.google.common.truth.Truth.assertThat ( b.asString ( ) ) . isEqualTo ( "0.0" ) ; }
Source:
public com.google.gerrit.server.change.ChangeEditResource parse ( com.google.gerrit.server.change.ChangeResource parent , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException , java.lang.Exception { throw new java.lang.IllegalStateException ( "not yet implemented" ) ; }

Target:
public com.google.gerrit.server.change.ChangeEditResource parse ( com.google.gerrit.server.change.ChangeResource parent , com.google.gerrit.extensions.restapi.IdString id ) { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }
Source:
private static java.lang.String my ( org.eclipse.jgit.lib.Config cfg , java.lang.String subsection , java.lang.String key , java.lang.String defaultValue ) { java.lang.String val = cfg.getString ( com.google.gerrit.server.account.GetPreferences.MY , subsection , key ) ; return ! ( com.google.common.base.Strings.isNullOrEmpty ( val ) ) ? val : defaultValue ; }

Target:
private static java.lang.String my ( org.eclipse.jgit.lib.Config cfg , java.lang.String subsection , java.lang.String key , java.lang.String defaultValue ) { java.lang.String val = cfg.getString ( UserConfigSections.MY , subsection , key ) ; return ! ( com.google.common.base.Strings.isNullOrEmpty ( val ) ) ? val : defaultValue ; }
Source:
public static java.lang.String toEditScreen ( com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName , int line ) { return com.google.gerrit.client.Dispatcher.toPatch ( "edit" , com.google.gerrit.client.DiffObject.base ( ) , revision , fileName , null , line ) ; }

Target:
public static java.lang.String toSideBySide ( @ 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 ( "sidebyside" , project , diffBase , revision , fileName , null , 0 ) ; }
Source:
public com.google.gerrit.acceptance.PushOneCommit.Result rm ( org.eclipse.jgit.api.Git git , java.lang.String ref ) throws org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.GitUtil.rm ( git , fileName ) ; return execute ( git , ref ) ; }

Target:
public com.google.gerrit.acceptance.PushOneCommit.Result to ( java.lang.String ref ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.GitUtil.add ( git , fileName , content ) ; return execute ( ref ) ; }
Source:
public boolean match ( com.google.gerrit.server.project.ProjectData pd ) throws com.google.gwtorm.server.OrmException { return permissionBackend.user ( user ) . project ( pd.getProject ( ) . getNameKey ( ) ) . testOrFalse ( ProjectPermission.READ ) ; }

Target:
public boolean match ( com.google.gerrit.index.project.ProjectData pd ) throws com.google.gwtorm.server.OrmException { return permissionBackend.user ( user ) . project ( pd.getProject ( ) . getNameKey ( ) ) . testOrFalse ( ProjectPermission.READ ) ; }
Source:
static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.account.AccountState > email ( java.lang.String email ) { return new com.google.gerrit.server.query.account.AccountPredicates.AccountPredicate ( com.google.gerrit.server.index.account.AccountField.EMAIL , AccountQueryBuilder.FIELD_EMAIL , email ) ; }

Target:
static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.account.AccountState > email ( java.lang.String email ) { return new com.google.gerrit.server.query.account.AccountPredicates.AccountPredicate ( com.google.gerrit.server.index.account.AccountField.EMAIL , AccountQueryBuilder.FIELD_EMAIL , email.toLowerCase ( ) ) ; }
Source:
public void createSyncEventsRestApiServlet ( ) throws java.lang.Exception { syncEventsRestApiServlet = new com.ericsson.gerrit.plugins.syncevents.SyncEventsRestApiServlet ( dispatcher ) ; org.mockito.Mockito.when ( req.getContentType ( ) ) . thenReturn ( com.google.common.net.MediaType.JSON_UTF_8.toString ( ) ) ; }

Target:
public void createEventsRestApiServlet ( ) throws java.lang.Exception { eventRestApiServlet = new com.ericsson.gerrit.plugins.highavailability.forwarder.rest.EventRestApiServlet ( dispatcher ) ; org.mockito.Mockito.when ( req.getContentType ( ) ) . thenReturn ( com.google.common.net.MediaType.JSON_UTF_8.toString ( ) ) ; }
Source:
public static synchronized void useSystemTime ( ) { com.google.gerrit.testutil.TestTimeUtil.clockMs = null ; com.google.gerrit.common.TimeUtil.resetCurrentMillisSupplier ( ) ; }

Target:
public static synchronized void useSystemTime ( ) { com.google.gerrit.testing.TestTimeUtil.clockMs = null ; com.google.gerrit.common.TimeUtil.resetCurrentMillisSupplier ( ) ; }
Source:
public void setContentType ( java.lang.String type ) { headers.removeAll ( com.google.common.net.HttpHeaders.CONTENT_TYPE ) ; headers.put ( com.google.common.net.HttpHeaders.CONTENT_TYPE , type ) ; }

Target:
public void setContentType ( java.lang.String type ) { headers.removeAll ( com.google.common.net.HttpHeaders.CONTENT_TYPE ) ; addHeader ( com.google.common.net.HttpHeaders.CONTENT_TYPE , type ) ; }
Source:
public Account.Id apply ( com.google.gerrit.acceptance.TestAccount in ) { return in.id ; }

Target:
public static com.google.common.collect.FluentIterable < com.google.gerrit.reviewdb.client.Account.Id > ids ( java.lang.Iterable < com.google.gerrit.acceptance.TestAccount > accounts ) { return com.google.common.collect.FluentIterable.from ( accounts ) . transform ( ( a ) -> a.id ) ; }
Source:
public void listTagsOfNonVisibleProject ( ) throws java.lang.Exception { blockRead ( project , "refs/*" ) ; com.google.common.truth.Truth.assertThat ( userSession.get ( ( ( "/projects/" + ( project.get ( ) ) ) + "/tags" ) ) . getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_NOT_FOUND ) ; }

Target:
public void listTagsOfNonVisibleProject ( ) throws java.lang.Exception { blockRead ( project , "refs/*" ) ; userSession.get ( ( ( "/projects/" + ( project.get ( ) ) ) + "/tags" ) ) . assertNotFound ( ) ; }
Source:
private static void reject ( final org.eclipse.jgit.transport.ReceiveCommand cmd , final java.lang.String why ) { cmd.setResult ( ReceiveCommand.Result.REJECTED_OTHER_REASON , why ) ; }

Target:
void reject ( final org.eclipse.jgit.transport.ReceiveCommand cmd , final java.lang.String why ) { cmd.setResult ( ReceiveCommand.Result.REJECTED_OTHER_REASON , why ) ; commandProgress.update ( 1 ) ; }
Source:
default com.google.gerrit.reviewdb.client.Account getAccount ( ) { return getIdentifiedUser ( ) . getAccount ( ) ; }

Target:
default com.google.gerrit.server.account.AccountState getAccount ( ) { return getIdentifiedUser ( ) . state ( ) ; }
Source:
protected void init ( ) throws javax.mail.MessagingException { super . init ( ) ; setHeader ( MimeMessage.MESSAGE_ID , getChangeMessageThreadId ( ) ) ; add ( RecipientType.TO , reviewers ) ; add ( RecipientType.CC , extraCC ) ; rcptToAuthors ( RecipientType.CC ) ; }

Target:
protected void init ( ) { super . init ( ) ; setHeader ( "Message-ID" , getChangeMessageThreadId ( ) ) ; add ( RecipientType.TO , reviewers ) ; add ( RecipientType.CC , extraCC ) ; rcptToAuthors ( RecipientType.CC ) ; }
Source:
void publish ( com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ChangeDetail > callback ) ;

Target:
void rebaseChange ( com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ChangeDetail > callback ) ;
Source:
protected void onUnload ( ) { com.google.gerrit.client.Gerrit.removeSignedInListener ( signedInListener ) ; super . onUnload ( ) ; }

Target:
protected void onUnload ( ) { com.google.gerrit.client.Gerrit.removeSignOutHandler ( signedInListener ) ; super . onUnload ( ) ; }
Source:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( event.getNativeEvent ( ) . getKeyCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { doSearch ( ) ; } }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( event.getNativeEvent ( ) . getKeyCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { if ( ! ( suggestionDisplay.isSuggestionSelected ) ) { doSearch ( ) ; } } }
Source:
void projectDetail ( com.google.gerrit.reviewdb.Project.NameKey projectName , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ProjectDetail > callback ) ;

Target:
void visibleProjects ( com.google.gwt.user.client.rpc.AsyncCallback < java.util.List < com.google.gerrit.reviewdb.Project > > callback ) ;
Source:
public java.lang.String getMessageText ( ) { return ( message.getText ( ) . trim ( ) ) + '\n' ; }

Target:
public java.lang.String getMessageText ( ) { return ( message.getText ( ) . replaceAll ( "\r\n" , "\n" ) . trim ( ) ) + '\n' ; }
Source:
public com.google.gerrit.extensions.restapi.BinaryResult submitPreview ( java.lang.String format ) throws com.google.gerrit.extensions.restapi.RestApiException { submitPreview.setFormat ( format ) ; return submitPreview.apply ( revision ) ; }

Target:
public com.google.gerrit.extensions.restapi.BinaryResult submitPreview ( java.lang.String format ) throws com.google.gerrit.extensions.restapi.RestApiException { try { submitPreview.setFormat ( format ) ; return submitPreview.apply ( revision ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot get submit preview" , e ) ; } }
Source:
private void forAll ( com.google.gerrit.acceptance.server.mail.AddReviewerSenderIT.Tester tester ) throws java.lang.Exception { for ( com.google.gerrit.acceptance.server.mail.AddReviewerSenderIT.Adder adder : com.google.common.collect.ImmutableList.of ( singly ( ) , batch ( ) ) ) { tester.test ( adder ) ; } }

Target:
public void addReviewerToReviewableChangeInNoteDbBatch ( ) throws java.lang.Exception { addReviewerToReviewableChangeInNoteDb ( batch ( ) ) ; }
Source:
public java.lang.String apply ( com.google.gerrit.server.project.ProjectResource resource ) { com.google.gerrit.reviewdb.client.Project project = resource.getControl ( ) . getProject ( ) ; com.google.gerrit.reviewdb.client.Project.NameKey parentName = project.getParent ( allProjectsName ) ; return parentName != null ? parentName.get ( ) : "" ; }

Target:
public java.lang.String apply ( com.google.gerrit.server.project.ProjectResource resource ) { com.google.gerrit.reviewdb.client.Project project = resource.getProjectState ( ) . getProject ( ) ; com.google.gerrit.reviewdb.client.Project.NameKey parentName = project.getParent ( allProjectsName ) ; return parentName != null ? parentName.get ( ) : "" ; }
Source:
private java.util.Collection < com.google.gerrit.reviewdb.client.Account.Id > fetchAccountIds ( com.google.gerrit.server.change.ChangeResource rsrc ) throws com.google.gwtorm.server.OrmException { return approvalsUtil.getReviewers ( dbProvider.get ( ) , rsrc.getChange ( ) . getId ( ) ) . values ( ) ; }

Target:
private java.util.Collection < com.google.gerrit.reviewdb.client.Account.Id > fetchAccountIds ( com.google.gerrit.server.change.ChangeResource rsrc ) throws com.google.gwtorm.server.OrmException { return approvalsUtil.getReviewers ( dbProvider.get ( ) , rsrc.getNotes ( ) ) . values ( ) ; }
Source:
public net.sf.ehcache.Element get ( final com.google.gerrit.server.patch.DiffCacheKey key ) { return self.get ( key ) ; }

Target:
public com.google.gerrit.server.patch.DiffCacheContent get ( final com.google.gerrit.server.patch.DiffCacheKey key ) { return self.get ( key ) ; }
Source:
public long longValue ( ) { return ( ( long ) ( this . val ) ) ; }

Target:
public int intValue ( ) { return this . val ; }
Source:
public com.google.gerrit.extensions.client.ChangeKind getChangeKind ( @ com.google.gerrit.common.Nullable org.eclipse.jgit.lib.Repository repo , @ com.google.gerrit.common.Nullable org.eclipse.jgit.revwalk.RevWalk rw , com.google.gerrit.server.query.change.ChangeData cd , com.google.gerrit.reviewdb.client.PatchSet patch ) { return com.google.gerrit.server.change.ChangeKindCacheImpl.getChangeKindInternal ( this , repo , rw , cd , patch ) ; }

Target:
public com.google.gerrit.extensions.client.ChangeKind getChangeKind ( @ com.google.gerrit.common.Nullable org.eclipse.jgit.revwalk.RevWalk rw , @ com.google.gerrit.common.Nullable org.eclipse.jgit.lib.Config repoConfig , com.google.gerrit.server.query.change.ChangeData cd , com.google.gerrit.reviewdb.client.PatchSet patch ) { return com.google.gerrit.server.change.ChangeKindCacheImpl.getChangeKindInternal ( this , rw , repoConfig , cd , patch ) ; }
Source:
private static org.eclipse.jgit.lib.ObjectId toObjectId ( java.lang.String id ) { return id != null ? org.eclipse.jgit.lib.ObjectId.fromString ( id ) : null ; }

Target:
private static org.eclipse.jgit.lib.ObjectId toObjectId ( java.lang.String id ) { return ! ( com.google.common.base.Strings.isNullOrEmpty ( id ) ) ? org.eclipse.jgit.lib.ObjectId.fromString ( id ) : null ; }
Source:
public com.google.gerrit.server.notedb.ChangeNotes createForNew ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Change change ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.server.notedb.ChangeNotes ( db , repoManager , migration , allUsersProvider , change ) . load ( ) ; }

Target:
public com.google.gerrit.server.notedb.ChangeNotes createFromIndexedChange ( com.google.gerrit.reviewdb.client.Change change ) { return new com.google.gerrit.server.notedb.ChangeNotes ( repoManager , migration , allUsersProvider , change.getProject ( ) , change ) ; }
Source:
protected void provideStateTo ( final org.apache.sshd.server.CommandFactory.Command cmd ) { cmd.setInputStream ( in ) ; cmd.setOutputStream ( out ) ; cmd.setErrorStream ( err ) ; cmd.setExitCallback ( exit ) ; }

Target:
protected void provideStateTo ( final org.apache.sshd.server.Command cmd ) { cmd.setInputStream ( in ) ; cmd.setOutputStream ( out ) ; cmd.setErrorStream ( err ) ; cmd.setExitCallback ( exit ) ; }
Source:
protected void ccAllApprovals ( ) { ccApprovals ( true ) ; }

Target:
protected void ccAllApprovals ( ) { try { for ( com.google.gerrit.reviewdb.client.Account.Id id : getReviewers ( ) . 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 void onFailure ( final java.lang.Throwable caught ) { k.getWatch ( ) . setNotifyAllComments ( oldVal ) ; notifyAllComments.setValue ( oldVal ) ; super . onFailure ( caught ) ; }

Target:
public void preDisplay ( final java.util.List < com.google.gerrit.common.data.AccountProjectWatchInfo > result ) { watchesTab.display ( result ) ; }
Source:
public void abandonChange ( final com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId , final java.lang.String message , final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ChangeDetail > callback ) { abandonChangeHandlerFactory.create ( patchSetId , message ) . to ( callback ) ; }

Target:
public void abandonChange ( final com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId , final java.lang.String message , final com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ChangeDetail > callback ) { abandonChangeHandlerFactory.create ( patchSetId , message ) . to ( callback ) ; }
Source:
public java.lang.String apply ( org.eclipse.jgit.lib.ObjectId id ) { return id.getName ( ) ; }

Target:
private static java.util.List < java.lang.String > transformCommits ( java.util.List < org.eclipse.jgit.lib.ObjectId > commits ) { if ( ( commits == null ) || ( commits.isEmpty ( ) ) ) { return null ; } return com.google.common.collect.Lists.transform ( commits , ObjectId :: getName ) ; }
Source:
public void remove ( ) { for ( java.lang.String name : names ) { descriptions.remove ( name ) ; registry.remove ( name ) ; } }

Target:
public void remove ( ) { for ( com.google.gerrit.metrics.CallbackMetric < ? > m : all ) { m.remove ( ) ; } }
Source:
public static void edit ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.info.ChangeInfo.EditInfo > cb ) { com.google.gerrit.client.changes.ChangeApi.edit ( id ) . get ( cb ) ; }

Target:
public static void unmarkPrivate ( @ 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 ) . view ( "private.delete" ) . post ( com.google.gerrit.client.changes.ChangeApi.PrivateInput.create ( ) , cb ) ; }
Source:
public com.google.gwtorm.server.ResultSet < com.google.gerrit.reviewdb.client.PatchSet > byChange ( com.google.gerrit.reviewdb.client.Change.Id id ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.server.schema.DisabledChangesReviewDbWrapper.MSG ) ; }

Target:
public com.google.gwtorm.server.ResultSet < com.google.gerrit.reviewdb.client.PatchSet > byChange ( com.google.gerrit.reviewdb.client.Change.Id id ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.reviewdb.server.DisabledChangesReviewDbWrapper.MSG ) ; }
Source:
private void assertDeleteForbidden ( ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.AuthException.class ) ; branch ( ) . delete ( ) ; }

Target:
private void assertDeleteForbidden ( ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.AuthException.class ) ; exception.expectMessage ( "Cannot delete branch" ) ; branch ( ) . delete ( ) ; }
Source:
void removeAll ( ) { if ( ( skipBars ) != null ) { for ( com.google.gerrit.client.diff.SkipBar bar : skipBars ) { bar.expandSideAll ( ) ; } skipBars = null ; line0 = null ; } }

Target:
void removeAll ( ) { if ( ( skipBars ) != null ) { for ( com.google.gerrit.client.diff.SkipBar bar : skipBars ) { bar.expandSideAll ( ) ; } getOverviewBar ( ) . refresh ( ) ; skipBars = null ; line0 = null ; } }
Source:
protected abstract int printJsonImpl ( int fieldCount , java.lang.StringBuilder sb , T o ) ;

Target:
protected abstract int printJsonImpl ( int field , java.lang.StringBuilder sb , java.lang.Object o ) ;
Source:
public int compareTo ( com.ericsson.gerrit.plugins.eventslog.sql.SQLEntry o ) { return ( this . id ) - ( o.id ) ; }

Target:
public int compareTo ( com.ericsson.gerrit.plugins.eventslog.sql.SQLEntry o ) { return java.lang.Integer.compare ( this . id , o.id ) ; }
Source:
public static boolean hasRange ( java.lang.String varName ) { return ( com.google.gerrit.common.data.GlobalCapability.QUERY_LIMIT.equalsIgnoreCase ( varName ) ) || ( com.google.gerrit.common.data.GlobalCapability.BATCH_CHANGES_LIMIT.equalsIgnoreCase ( varName ) ) ; }

Target:
public static boolean hasRange ( java.lang.String varName ) { for ( java.lang.String n : com.google.gerrit.common.data.GlobalCapability.RANGE_NAMES ) { if ( n.equalsIgnoreCase ( varName ) ) { return true ; } } return false ; }
Source:
public static java.lang.String toGroup ( com.google.gerrit.reviewdb.client.AccountGroup.Id id , java.lang.String panel ) { return ( ( "/admin/groups/" + ( id.toString ( ) ) ) + "," ) + panel ; }

Target:
public static java.lang.String toGroup ( final com.google.gerrit.reviewdb.client.AccountGroup.Id id ) { return ( com.google.gerrit.common.PageLinks.ADMIN_GROUPS ) + ( id.toString ( ) ) ; }
Source:
public static Account.Id getAccountId ( ) { return com.google.gerrit.client.rpc.RpcUtil.caImpl.getAccountId ( ) ; }

Target:
public static Account.Id getAccountId ( ) { return com.google.gerrit.client.rpc.Common.caImpl.getAccountId ( ) ; }
Source:
protected void assertResultEquals ( java.lang.String message , com.google.gerrit.reviewdb.client.Change expected , com.google.gerrit.server.change.ChangeJson.ChangeInfo actual ) { org.junit.Assert.assertEquals ( message , expected.getId ( ) . get ( ) , actual._number ) ; }

Target:
protected void assertResultEquals ( java.lang.String message , com.google.gerrit.reviewdb.client.Change expected , com.google.gerrit.extensions.common.ChangeInfo actual ) { com.google.common.truth.Truth.assert_ ( ) . withFailureMessage ( message ) . that ( actual._number ) . isEqualTo ( expected.getId ( ) . get ( ) ) ; }
Source:
void appendSubmittedBy ( com.google.gerrit.reviewdb.client.Account.Id accountId , @ com.google.gerrit.common.Nullable com.google.gerrit.reviewdb.client.Account account ) { sb.append ( "Submitted-by: " ) ; appendUserData ( accountId , account ) ; sb.append ( "\n" ) ; }

Target:
void appendSubmittedBy ( com.google.gerrit.reviewdb.client.Account.Id accountId , java.util.Optional < com.google.gerrit.reviewdb.client.Account > account ) { sb.append ( "Submitted-by: " ) ; appendUserData ( accountId , account ) ; sb.append ( "\n" ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.rpc.NativeString result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toProjectTags ( getProjectKey ( ) ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.VoidResult result ) { query = new com.google.gerrit.client.admin.ProjectTagsScreen.Query ( match ) . start ( start ) . run ( ) ; }
Source:
public long getMinValue ( ) { return 0 ; }

Target:
public long getMinValue ( com.google.gerrit.server.index.Schema < com.google.gerrit.server.query.change.ChangeData > schema ) { return 0 ; }