auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void onClose ( com.google.gwt.event.logical.shared.CloseEvent < com.google.gerrit.client.ui.RemoteSuggestBox > event ) { hide ( ) ; }

Target:
public void onClose ( com.google.gwt.event.logical.shared.CloseEvent < com.google.gerrit.client.ui.RemoteSuggestBox > event ) { hide ( ) ; fileTable.registerKeys ( ) ; }
Source:
private void initUI ( ) { initOwner ( ) ; initDescription ( ) ; }

Target:
private void initUI ( ) { initOwner ( ) ; initDescription ( ) ; initRights ( ) ; }
Source:
public com.google.gerrit.extensions.client.DiffPreferencesInfo getDefaultDiffPreferences ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getDiffPreferences.apply ( new com.google.gerrit.server.config.ConfigResource ( ) ) ; } catch ( java.io.IOException | org.eclipse.jgit.errors.ConfigInvalidException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot get default diff preferences" , e ) ; } }

Target:
public com.google.gerrit.extensions.client.DiffPreferencesInfo getDefaultDiffPreferences ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getDiffPreferences.apply ( new com.google.gerrit.server.config.ConfigResource ( ) ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot get default diff preferences" , e ) ; } }
Source:
public boolean changesTablesEnabled ( ) { return delegate.changesTablesEnabled ( ) ; }

Target:
public void rollback ( ) throws com.google.gwtorm.server.OrmException { if ( inTransaction ) { inTransaction = false ; } else { delegate.rollback ( ) ; } }
Source:
public static void invalidate ( final com.google.gerrit.client.reviewdb.Account acct ) { if ( acct != null ) { com.google.gerrit.server.ssh.SshUtil.invalidate ( acct.getPreferredEmail ( ) ) ; } }

Target:
public static void invalidate ( final com.google.gerrit.client.reviewdb.Account acct ) { if ( acct != null ) { com.google.gerrit.server.ssh.SshUtil.invalidate ( acct.getSshUserName ( ) ) ; } }
Source:
public void onRemoveByKeys ( org.eclipse.jgit.lib.ObjectId newNotesRev , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId.Key > extIdKeys ) { }

Target:
public void onRemoveByKeys ( org.eclipse.jgit.lib.ObjectId oldNotesRev , org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.reviewdb.client.Account.Id accountId , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId.Key > extIdKeys ) { }
Source:
public com.google.gerrit.server.IdentifiedUser getUser ( ) { return ( ( com.google.gerrit.server.IdentifiedUser ) ( ctl.getUser ( ) ) ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser getUser ( ) { return ctl.getUser ( ) . asIdentifiedUser ( ) ; }
Source:
public void relativeLink ( ) throws java.lang.Exception { repo.branch ( "master" ) . commit ( ) . add ( "A/B/README.md" , "[c](../../C)" ) . create ( ) ; java.lang.String html = buildHtml ( "/repo/+doc/master/A/B/README.md" ) ; com.google.common.truth.Truth.assertThat ( html ) . contains ( "<a href=\"/b/repo/+show/master/C\">c</a>" ) ; }

Target:
public void relativeLink ( ) throws java.lang.Exception { repo.branch ( "master" ) . commit ( ) . add ( "A/B/README.md" , "[c](../../C)" ) . create ( ) ; java.lang.String html = buildHtml ( "/repo/+doc/master/A/B/README.md" ) ; com.google.common.truth.Truth.assertThat ( html ) . contains ( "<a href=\"/b/repo/+/master/C\">c</a>" ) ; }
Source:
protected void onLoad ( ) { super . onLoad ( ) ; display ( ) ; refresh ( false , false ) ; }

Target:
protected void onLoad ( ) { super . onLoad ( ) ; query = new com.google.gerrit.client.admin.GroupListScreen.Query ( match ) . start ( start ) . run ( ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { toggleShowIntraline ( ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { diffTable.toggleA ( ) . run ( ) ; }
Source:
private com.google.gerrit.acceptance.RestResponse GET ( java.lang.String endpoint ) throws java.io.IOException { return adminSession.get ( endpoint ) ; }

Target:
private com.google.gerrit.extensions.api.projects.ProjectApi.ListBranchesRequest list ( ) throws java.lang.Exception { return gApi.projects ( ) . name ( project.get ( ) ) . branches ( ) ; }
Source:
public void onFailure ( java.lang.Throwable caught ) { enableButtons ( true ) ; }

Target:
public void onFailure ( final java.lang.Throwable caught ) { enableButtons ( true ) ; new com.google.gerrit.client.ErrorDialog ( caught.getMessage ( ) ) . center ( ) ; }
Source:
public void preDisplay ( com.google.gerrit.client.projects.ConfigInfo result ) { display ( result ) ; }

Target:
public void onChange ( com.google.gwt.event.dom.client.ChangeEvent event ) { setEnabledForUseContentMerge ( ) ; }
Source:
private void assertNoProblems ( com.google.gerrit.gpg.testutil.TestKey tk ) { assertNoProblems ( tk.getPublicKey ( ) ) ; }

Target:
private void assertNoProblems ( com.google.gerrit.gpg.testing.TestKey tk ) { assertNoProblems ( tk.getPublicKey ( ) ) ; }
Source:
public void pushForNonExistingBranch ( ) throws java.lang.Exception { java.lang.String branchName = "non-existing" ; com.google.gerrit.acceptance.PushOneCommit.Result r = pushTo ( ( "refs/for/" + branchName ) ) ; r.assertErrorStatus ( ( ( "branch " + branchName ) + " not found" ) ) ; }

Target:
public void testPushForNonExistingBranch ( ) throws java.lang.Exception { java.lang.String branchName = "non-existing" ; com.google.gerrit.acceptance.PushOneCommit.Result r = pushTo ( ( "refs/for/" + branchName ) ) ; r.assertErrorStatus ( ( ( "branch " + branchName ) + " not found" ) ) ; }
Source:
public void createMergeChange ( ) throws java.lang.Exception { changeInTwoBranches ( "a.txt" , "b.txt" ) ; com.google.gerrit.extensions.common.ChangeInput in = newMergeChangeInput ( "master" , "branchA" , ChangeStatus.NEW ) ; assertCreateSucceeds ( in ) ; }

Target:
public void createMergeChange ( ) throws java.lang.Exception { changeInTwoBranches ( "branchA" , "a.txt" , "branchB" , "b.txt" ) ; com.google.gerrit.extensions.common.ChangeInput in = newMergeChangeInput ( "branchA" , "branchB" , "" ) ; assertCreateSucceeds ( in ) ; }
Source:
private java.lang.String createMyChange ( ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , user.getIdent ( ) , testRepo ) ; return push.to ( "refs/for/master" ) . getChangeId ( ) ; }

Target:
private java.lang.String createMyChange ( org.eclipse.jgit.junit.TestRepository < org.eclipse.jgit.internal.storage.dfs.InMemoryRepository > testRepo ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , user.getIdent ( ) , testRepo ) ; return push.to ( "refs/for/master" ) . getChangeId ( ) ; }
Source:
private java.nio.file.Path resolvePath ( javax.servlet.http.HttpServletRequest req ) { return sitePaths.resolve ( ( ( req.getServletPath ( ) ) + ( req.getPathInfo ( ) ) ) ) ; }

Target:
private java.nio.file.Path resolvePath ( javax.servlet.http.HttpServletRequest req ) { return sitePaths.resolve ( com.google.common.base.CharMatcher.is ( '/' ) . trimLeadingFrom ( ( ( req.getServletPath ( ) ) + ( req.getPathInfo ( ) ) ) ) ) ; }
Source:
public com.google.gerrit.server.project.ProjectControl getProject ( ) { return project.getControl ( ) ; }

Target:
public com.google.gerrit.server.project.ProjectState getProjectState ( ) { return project.getProjectState ( ) ; }
Source:
public synchronized com.google.gerrit.server.account.AccountState get ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { com.google.gerrit.server.account.AccountState state = getIfPresent ( accountId ) ; if ( state != null ) { return state ; } return com.google.gerrit.testutil.FakeAccountCache.newState ( new com.google.gerrit.reviewdb.client.Account ( accountId , com.google.gerrit.common.TimeUtil.nowTs ( ) ) ) ; }

Target:
public synchronized com.google.gerrit.server.account.AccountState get ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { com.google.gerrit.server.account.AccountState state = byId.get ( accountId ) ; if ( state != null ) { return state ; } return com.google.gerrit.testutil.FakeAccountCache.newState ( new com.google.gerrit.reviewdb.client.Account ( accountId , com.google.gerrit.common.TimeUtil.nowTs ( ) ) ) ; }
Source:
public final com.google.gerrit.server.index.Schema < V > getLatest ( ) { return schemaDefs.getLatest ( ) ; }

Target:
public final com.google.gerrit.index.Schema < V > getLatest ( ) { return schemaDefs.getLatest ( ) ; }
Source:
public void testEventSentOK ( ) throws java.lang.Exception { com.google.gerrit.server.events.Event event = setUpMocksForEvent ( true , "" , false ) ; com.google.common.truth.Truth.assertThat ( restForwarder.send ( event ) ) . isTrue ( ) ; }

Target:
public void testEventSentOK ( ) throws java.lang.Exception { com.google.gerrit.server.events.Event event = setUpMocksForEvent ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestForwarderTest.SUCCESSFUL , com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestForwarderTest.EMPTY_MSG , com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestForwarderTest.DO_NOT_THROW_EXCEPTION ) ; com.google.common.truth.Truth.assertThat ( restForwarder.send ( event ) ) . isTrue ( ) ; }
Source:
public final java.util.Set < java.lang.String > commands ( ) { return com.google.gerrit.client.rpc.Natives.keys ( _commands ( ) ) ; }

Target:
public final java.util.Set < java.lang.String > commandNames ( ) { return com.google.gerrit.client.rpc.Natives.keys ( _commands ( ) ) ; }
Source:
public static com.google.gitiles.GitilesView.Builder tar ( ) { return new com.google.gitiles.GitilesView.Builder ( com.google.gitiles.GitilesView.Type.TAR ) ; }

Target:
public static com.google.gitiles.GitilesView.Builder archive ( ) { return new com.google.gitiles.GitilesView.Builder ( com.google.gitiles.GitilesView.Type.ARCHIVE ) ; }
Source:
public synchronized com.google.gerrit.server.account.AccountState getIfPresent ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { BRANCH ( 4847 ) ; com.google.gerrit.testutil.c3 Let ; com.google.gerrit.testutil.take care ; com.google.gerrit.testutil.evict accounts ; com.google.gerrit.testutil.the a ; return byId.get ( accountId ) ; }

Target:
public synchronized com.google.gerrit.server.account.AccountState getOrNull ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { return byId.get ( accountId ) ; }
Source:
com.google.gerrit.server.project.RefControl forUser ( com.google.gerrit.server.CurrentUser who ) { com.google.gerrit.server.project.ProjectControl newCtl = projectControl.forUser ( who ) ; if ( relevant.isUserSpecific ( ) ) { return newCtl.controlForRef ( refName ) ; } return new com.google.gerrit.server.project.RefControl ( newCtl , refName , relevant ) ; }

Target:
com.google.gerrit.server.permissions.RefControl forUser ( com.google.gerrit.server.CurrentUser who ) { com.google.gerrit.server.permissions.ProjectControl newCtl = projectControl.forUser ( who ) ; if ( relevant.isUserSpecific ( ) ) { return newCtl.controlForRef ( refName ) ; } return new com.google.gerrit.server.permissions.RefControl ( newCtl , refName , relevant ) ; }
Source:
public org.eclipse.jgit.lib.RefUpdate.Result modifyFile ( com.google.gerrit.server.edit.ChangeEdit edit , java.lang.String file , com.google.gerrit.extensions.restapi.RawInput content ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.project.InvalidChangeOperationException , java.io.IOException { return modify ( com.google.gerrit.server.edit.ChangeEditModifier.TreeOperation.CHANGE_ENTRY , edit , file , null , content ) ; }

Target:
public org.eclipse.jgit.lib.RefUpdate.Result modifyFile ( com.google.gerrit.server.edit.ChangeEdit edit , java.lang.String file , com.google.gerrit.extensions.restapi.RawInput content ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.project.InvalidChangeOperationException , java.io.IOException { return modify ( edit , new com.google.gerrit.server.edit.tree.ChangeFileContentModification ( file , content ) ) ; }
Source:
protected final com.google.gerrit.pgm.CmdLineParser newCmdLineParserInstance ( final java.lang.Object bean ) { com.google.gerrit.pgm.CmdLineParser parser = new com.google.gerrit.pgm.CmdLineParser ( bean ) ; for ( com.google.gerrit.server.ssh.commands.CmdOption c : optionList ) { parser.addOption ( c , c ) ; } return parser ; }

Target:
protected final com.google.gerrit.pgm.CmdLineParser newCmdLineParser ( ) { final com.google.gerrit.pgm.CmdLineParser parser = new com.google.gerrit.pgm.CmdLineParser ( this ) ; for ( com.google.gerrit.server.ssh.commands.CmdOption c : optionList ) { parser.addOption ( c , c ) ; } return parser ; }
Source:
public void createNewChange ( ) throws java.lang.Exception { assertCreateSucceeds ( newChangeInfo ( ChangeStatus.NEW ) ) ; }

Target:
public void createNewChange ( ) throws java.lang.Exception { assertCreateSucceeds ( newChangeInput ( ChangeStatus.NEW ) ) ; }
Source:
public boolean isVisibleTo ( com.google.gerrit.reviewdb.client.Account.Id account ) throws com.google.gwtorm.server.OrmException { return true ; }

Target:
public boolean getSuggestAccounts ( ) { return suggestAccounts ; }
Source:
public void delete ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteDraft.apply ( draft , null ) ; } catch ( com.google.gerrit.server.update.UpdateException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot delete draft" , e ) ; } }

Target:
public void delete ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteDraft.apply ( draft , null ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot delete draft" , e ) ; } }
Source:
public void onSuccess ( com.google.gerrit.client.rpc.NativeMap < com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.CommentInfo > > result ) { attachComments ( result ) ; displayComments ( result ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.rpc.NativeMap < com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.CommentInfo > > result ) { attachComments ( result ) ; displayComments ( result ) ; send.setEnabled ( true ) ; }
Source:
private static void logAndThrowSubmoduleException ( final java.lang.String errorMsg , final java.lang.Exception e ) throws com.google.gerrit.server.git.SubmoduleException { com.google.gerrit.server.git.SubmoduleOp.log.error ( errorMsg , e ) ; throw new com.google.gerrit.server.git.SubmoduleException ( errorMsg , e ) ; }

Target:
private void logDebug ( java.lang.String msg , java.lang.Object ... args ) { if ( com.google.gerrit.server.git.SubmoduleOp.log.isDebugEnabled ( ) ) { com.google.gerrit.server.git.SubmoduleOp.log.debug ( ( ( ( "[" + ( updateId ) ) + "]" ) + msg ) , args ) ; } }
Source:
public void onTabSelected ( com.google.gwt.user.client.ui.SourcesTabEvents sender , int tabIndex ) { com.google.gerrit.client.Gerrit.display ( tabTokens.get ( tabIndex ) , false ) ; }

Target:
public void onSelection ( final com.google.gwt.event.logical.shared.SelectionEvent < java.lang.Integer > event ) { com.google.gerrit.client.Gerrit.display ( tabTokens.get ( event.getSelectedItem ( ) ) , false ) ; }
Source:
private boolean in ( final org.eclipse.jgit.diff.Edit edit ) { return ( ( aCur ) < ( edit.getEndA ( ) ) ) || ( ( bCur ) < ( edit.getEndB ( ) ) ) ; }

Target:
private boolean in ( final com.google.gerrit.prettify.common.BaseEdit edit ) { return ( ( aCur ) < ( edit.getEndA ( ) ) ) || ( ( bCur ) < ( edit.getEndB ( ) ) ) ; }
Source:
private com.google.gerrit.extensions.common.GroupInfo getGroup ( java.lang.String name ) throws java.io.IOException { com.google.gerrit.acceptance.RestResponse r = adminSession.get ( ( "/groups/" + name ) ) ; com.google.common.truth.Truth.assertThat ( r.getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_OK ) ; return parseGroup ( r ) ; }

Target:
private com.google.gerrit.reviewdb.client.AccountGroup getFromCache ( java.lang.String name ) throws java.lang.Exception { return groupCache.get ( new com.google.gerrit.reviewdb.client.AccountGroup.NameKey ( name ) ) ; }
Source:
private void afterTest ( ) throws java.lang.Exception { db.close ( ) ; sshSession.close ( ) ; server.stop ( ) ; com.google.gerrit.testutil.TempFileUtil.cleanup ( ) ; }

Target:
private void afterTest ( ) throws java.lang.Exception { db.close ( ) ; sshSession.close ( ) ; if ( ( server ) != ( com.google.gerrit.acceptance.AbstractDaemonTest.commonServer ) ) { server.stop ( ) ; } }
Source:
com.google.gerrit.server.project.ChangeControl create ( com.google.gerrit.server.project.RefControl refControl , com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id changeId ) throws com.google.gwtorm.server.OrmException { return create ( refControl , notesFactory.create ( db , project , changeId ) ) ; }

Target:
com.google.gerrit.server.permissions.ChangeControl create ( com.google.gerrit.server.permissions.RefControl refControl , com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id changeId ) throws com.google.gwtorm.server.OrmException { return create ( refControl , notesFactory.create ( db , project , changeId ) ) ; }
Source:
public void reAddExistingGpgKey ( ) throws java.lang.Exception { addExternalIdEmail ( admin , "test5@example.com" ) ; com.google.gerrit.gpg.testutil.TestKey key = com.google.gerrit.gpg.testutil.TestKey.key5 ( ) ; java.lang.String id = key.getKeyIdString ( ) ; org.bouncycastle.openpgp.PGPPublicKey pk = key.getPublicKey ( ) ; com.google.gerrit.extensions.common.GpgKeyInfo info = addGpgKey ( com.google.gerrit.acceptance.api.accounts.AccountIT.armor ( pk ) ) . get ( id ) ; com.google.common.truth.Truth.assertThat ( info.userIds ) . hasSize ( 2 ) ; com.google.gerrit.acceptance.api.accounts.AccountIT.assertIteratorSize ( 2 , getOnlyKeyFromStore ( key ) . getUserIDs ( ) ) ; pk = org.bouncycastle.openpgp.PGPPublicKey.removeCertification ( pk , "foo:myId" ) ; info = addGpgKey ( com.google.gerrit.acceptance.api.accounts.AccountIT.armor ( pk ) ) . get ( id ) ; com.google.common.truth.Truth.assertThat ( info.userIds ) . hasSize ( 1 ) ; com.google.gerrit.acceptance.api.accounts.AccountIT.assertIteratorSize ( 1 , getOnlyKeyFromStore ( key ) . getUserIDs ( ) ) ; }

Target:
public void reAddExistingGpgKey ( ) throws java.lang.Exception { addExternalIdEmail ( admin , "test5@example.com" ) ; com.google.gerrit.gpg.testutil.TestKey key = com.google.gerrit.gpg.testutil.TestKeys.key5 ( ) ; java.lang.String id = key.getKeyIdString ( ) ; org.bouncycastle.openpgp.PGPPublicKey pk = key.getPublicKey ( ) ; com.google.gerrit.extensions.common.GpgKeyInfo info = addGpgKey ( com.google.gerrit.acceptance.api.accounts.AccountIT.armor ( pk ) ) . get ( id ) ; com.google.common.truth.Truth.assertThat ( info.userIds ) . hasSize ( 2 ) ; com.google.gerrit.acceptance.api.accounts.AccountIT.assertIteratorSize ( 2 , getOnlyKeyFromStore ( key ) . getUserIDs ( ) ) ; pk = org.bouncycastle.openpgp.PGPPublicKey.removeCertification ( pk , "foo:myId" ) ; info = addGpgKey ( com.google.gerrit.acceptance.api.accounts.AccountIT.armor ( pk ) ) . get ( id ) ; com.google.common.truth.Truth.assertThat ( info.userIds ) . hasSize ( 1 ) ; com.google.gerrit.acceptance.api.accounts.AccountIT.assertIteratorSize ( 1 , getOnlyKeyFromStore ( key ) . getUserIDs ( ) ) ; }
Source:
public void run ( ) { java.lang.String token = host.getToken ( ) ; if ( cm.extras ( ) . hasActiveLine ( ) ) { token += "@" + ( getTokenSuffixForActiveLine ( cm ) ) ; } com.google.gerrit.client.Gerrit.doSignIn ( token ) ; }

Target:
java.lang.Runnable signInCallback ( net.codemirror.lib.CodeMirror cm ) { return ( ) -> { java.lang.String token = host.getToken ( ) ; if ( cm.extras ( ) . hasActiveLine ( ) ) { token += "@" + ( getTokenSuffixForActiveLine ( cm ) ) ; } com.google.gerrit.client.Gerrit.doSignIn ( token ) ; } ; }
Source:
private com.google.gerrit.reviewdb.client.Change.Id getOrRegisterAccount ( com.google.gerrit.reviewdb.server.ReviewDb db , org.kohsuke.github.GitUser author ) throws com.google.gerrit.extensions.restapi.BadRequestException , com.google.gerrit.extensions.restapi.ResourceConflictException , com.google.gerrit.extensions.restapi.UnprocessableEntityException , com.google.gwtorm.server.OrmException , java.io.IOException { return getOrRegisterAccount ( db , author.getName ( ) , author.getName ( ) , author.getEmail ( ) ) ; }

Target:
private com.google.gerrit.reviewdb.client.Change.Id getOrRegisterAccount ( com.google.gerrit.reviewdb.server.ReviewDb db , com.googlesource.gerrit.plugins.github.git.GitHubUser author ) throws com.google.gerrit.extensions.restapi.BadRequestException , com.google.gerrit.extensions.restapi.ResourceConflictException , com.google.gerrit.extensions.restapi.UnprocessableEntityException , com.google.gwtorm.server.OrmException , java.io.IOException { return getOrRegisterAccount ( db , author.getLogin ( ) , author.getName ( ) , author.getEmail ( ) ) ; }
Source:
protected void configure ( ) { get ( com.google.gerrit.server.project.ProjectResource.PROJECT_KIND , "lfs:config" ) . to ( com.googlesource.gerrit.plugins.lfs.GetLfsConfig.class ) ; get ( com.google.gerrit.server.project.ProjectResource.PROJECT_KIND , "lfs:settings" ) . to ( com.googlesource.gerrit.plugins.lfs.GetLfsSettings.class ) ; }

Target:
protected void configure ( ) { get ( com.google.gerrit.server.project.ProjectResource.PROJECT_KIND , "lfs:config-project" ) . to ( com.googlesource.gerrit.plugins.lfs.GetLfsProjectConfig.class ) ; get ( com.google.gerrit.server.project.ProjectResource.PROJECT_KIND , "lfs:config-global" ) . to ( com.googlesource.gerrit.plugins.lfs.GetLfsGlobalConfig.class ) ; put ( com.google.gerrit.server.project.ProjectResource.PROJECT_KIND , "lfs:config-global" ) . to ( com.googlesource.gerrit.plugins.lfs.PutLfsGlobalConfig.class ) ; }
Source:
public void run ( ) { resizeCodeMirror ( ) ; chunkManager.adjustPadding ( ) ; cmA.refresh ( ) ; cmB.refresh ( ) ; }

Target:
public void onResize ( com.google.gwt.event.logical.shared.ResizeEvent event ) { resizeCodeMirror ( ) ; }
Source:
private static boolean isHEAD ( final org.spearce.jgit.lib.Ref ref ) { return Constants.HEAD.equals ( ref.getName ( ) ) ; }

Target:
private static boolean isHEAD ( final org.spearce.jgit.lib.Ref ref ) { return Constants.HEAD.equals ( ref.getOrigName ( ) ) ; }
Source:
public java.lang.Long get ( ) { return unix.getOpenFileDescriptorCount ( ) ; }

Target:
public java.lang.Long get ( ) { return provider.getOpenFileDescriptorCount ( ) ; }
Source:
protected com.google.gerrit.server.patch.PatchList getPatchList ( ) { if ( ( patchSet ) != null ) { return args.patchListCache.get ( change , patchSet ) ; } return null ; }

Target:
protected com.google.gerrit.server.patch.PatchList getPatchList ( ) { if ( ( patchSet ) != null ) { return com.google.gerrit.server.util.FutureUtil.getOrNull ( args.patchListCache.get ( change , patchSet ) ) ; } return null ; }
Source:
public int weigh ( com.google.gitiles.blame.BlameCacheImpl.Key key , java.util.List < com.google.gitiles.blame.Region > value ) { return value.size ( ) ; }

Target:
public java.util.concurrent.Callable < java.util.List < com.google.gitiles.blame.Region > > newLoader ( com.google.gitiles.blame.BlameCacheImpl.Key key , org.eclipse.jgit.lib.Repository repo ) { return ( ) -> com.google.gitiles.blame.BlameCacheImpl.loadBlame ( key , repo ) ; }
Source:
public void testAppend_float ( ) { final com.google.gwtexpui.safehtml.client.SafeHtmlBuilder b = new com.google.gwtexpui.safehtml.client.SafeHtmlBuilder ( ) ; assertSame ( b , b.append ( 0.0F ) ) ; assertEquals ( "0.0" , b.asString ( ) ) ; }

Target:
public void testAppend_double ( ) { final com.google.gwtexpui.safehtml.client.SafeHtmlBuilder b = new com.google.gwtexpui.safehtml.client.SafeHtmlBuilder ( ) ; org.junit.Assert.assertSame ( b , b.append ( 0.0 ) ) ; org.junit.Assert.assertEquals ( "0.0" , b.asString ( ) ) ; }
Source:
private void renameGroup ( com.google.gerrit.reviewdb.client.AccountGroup.UUID groupUuid , com.google.gerrit.reviewdb.client.AccountGroup.NameKey oldName , com.google.gerrit.reviewdb.client.AccountGroup.NameKey newName ) throws java.lang.Exception { com.google.gerrit.server.group.db.GroupNameNotes groupNameNotes = com.google.gerrit.server.group.db.GroupNameNotes.loadForRename ( repo , groupUuid , oldName , newName ) ; commit ( groupNameNotes ) ; }

Target:
private void renameGroup ( com.google.gerrit.reviewdb.client.AccountGroup.UUID groupUuid , com.google.gerrit.reviewdb.client.AccountGroup.NameKey oldName , com.google.gerrit.reviewdb.client.AccountGroup.NameKey newName ) throws java.lang.Exception { com.google.gerrit.server.group.db.GroupNameNotes groupNameNotes = com.google.gerrit.server.group.db.GroupNameNotes.forRename ( repo , groupUuid , oldName , newName ) ; commit ( groupNameNotes ) ; }
Source:
public com.google.gwtjsonrpc.client.VoidResult run ( com.google.gerrit.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException { db.accountProjectWatches ( ) . update ( java.util.Collections.singleton ( watch ) ) ; accountProjectWatchCache.evict ( watch.getKey ( ) ) ; return com.google.gwtjsonrpc.client.VoidResult.INSTANCE ; }

Target:
public com.google.gwtjsonrpc.client.VoidResult run ( com.google.gerrit.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException { db.accountProjectWatches ( ) . update ( java.util.Collections.singleton ( watch ) ) ; com.google.gerrit.server.util.FutureUtil.waitFor ( accountProjectWatchCache.evictAsync ( watch.getKey ( ) ) ) ; return com.google.gwtjsonrpc.client.VoidResult.INSTANCE ; }
Source:
public java.lang.String getLinkName ( ) { return name ; }

Target:
public com.google.gerrit.extensions.common.WebLinkInfo getBranchWebLink ( java.lang.String projectName , java.lang.String branchName ) { return new com.google.gerrit.extensions.common.WebLinkInfo ( name , myImageUrl , java.lang.String.format ( placeHolderUrlProjectBranch , projectName , branchName ) , com.google.gerrit.extensions.webui.WebLinkTarget.BLANK ) ; }
Source:
protected com.google.gerrit.server.query.Predicate < com.google.gerrit.server.project.ProjectState > enforceVisibility ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.project.ProjectState > pred ) { return new com.google.gerrit.server.query.AndSource ( pred , new com.google.gerrit.server.query.project.ProjectIsVisibleToPredicate ( permissionBackend , userProvider.get ( ) ) , start ) ; }

Target:
protected com.google.gerrit.index.query.Predicate < com.google.gerrit.server.project.ProjectData > enforceVisibility ( com.google.gerrit.index.query.Predicate < com.google.gerrit.server.project.ProjectData > pred ) { return new com.google.gerrit.index.query.AndSource ( pred , new com.google.gerrit.server.query.project.ProjectIsVisibleToPredicate ( permissionBackend , userProvider.get ( ) ) , start ) ; }
Source:
protected org.eclipse.jgit.lib.PersonIdent newIdent ( com.google.gerrit.reviewdb.client.Account author , java.util.Date when ) { return new org.eclipse.jgit.lib.PersonIdent ( author.getFullName ( ) , ( ( ( author.getId ( ) . get ( ) ) + "@" ) + ( com.google.gerrit.server.notedb.ChangeNoteUtil.GERRIT_PLACEHOLDER_HOST ) ) , when , serverIdent.getTimeZone ( ) ) ; }

Target:
protected org.eclipse.jgit.lib.PersonIdent newIdent ( com.google.gerrit.reviewdb.client.Account author , java.util.Date when ) { return new org.eclipse.jgit.lib.PersonIdent ( new com.google.gerrit.common.data.AccountInfo ( author ) . getName ( anonymousCowardName ) , ( ( ( author.getId ( ) . get ( ) ) + "@" ) + ( com.google.gerrit.server.notedb.ChangeNoteUtil.GERRIT_PLACEHOLDER_HOST ) ) , when , serverIdent.getTimeZone ( ) ) ; }
Source:
public java.lang.Void call ( ) throws java.lang.Exception { rebuild ( change , changeRepo ) ; return null ; }

Target:
public java.lang.Void call ( ) throws java.lang.Exception { try ( com.google.gerrit.reviewdb.server.ReviewDb db = schemaFactory.open ( ) ) { rebuild ( db , id ) ; } return null ; }
Source:
public void onSend ( ) { Util.MANAGE_SVC.createNewPatchSet ( patchSetId , getMessageText ( ) , createCallback ( ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.common.data.ChangeDetail result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( changeId ) ) ; hide ( ) ; }
Source:
public com.google.gerrit.extensions.common.AccountInfo setAssignee ( com.google.gerrit.extensions.api.changes.AssigneeInput input ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return putAssignee.apply ( change , input ) . value ( ) ; } catch ( com.google.gerrit.server.git.UpdateException | java.io.IOException | com.google.gwtorm.server.OrmException | com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot set assignee" , e ) ; } }

Target:
public com.google.gerrit.extensions.common.AccountInfo setAssignee ( com.google.gerrit.extensions.api.changes.AssigneeInput input ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return putAssignee.apply ( change , input ) ; } catch ( com.google.gerrit.server.update.UpdateException | java.io.IOException | com.google.gwtorm.server.OrmException | com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot set assignee" , e ) ; } }
Source:
public void createEmptyChange_InvalidStatus ( ) throws java.lang.Exception { com.google.gerrit.extensions.common.ChangeInfo ci = newChangeInfo ( ChangeStatus.MERGED ) ; assertCreateFails ( ci , com.google.gerrit.extensions.restapi.BadRequestException.class , "unsupported change status" ) ; }

Target:
public void createEmptyChange_InvalidStatus ( ) throws java.lang.Exception { com.google.gerrit.extensions.common.ChangeInput ci = newChangeInput ( ChangeStatus.MERGED ) ; assertCreateFails ( ci , com.google.gerrit.extensions.restapi.BadRequestException.class , "unsupported change status" ) ; }
Source:
protected static com.google.gerrit.pgm.util.Die die ( java.lang.String why , java.lang.Throwable cause ) { return new com.google.gerrit.pgm.util.Die ( why , cause ) ; }

Target:
protected static com.google.gerrit.common.Die die ( java.lang.String why , java.lang.Throwable cause ) { return new com.google.gerrit.common.Die ( why , cause ) ; }
Source:
public java.lang.Class < ? extends java.lang.annotation.Annotation > annotationType ( ) { return com.google.gerrit.sshd.CommandName.class ; }

Target:
public static com.google.gerrit.sshd.CommandName named ( final java.lang.String value ) { return new com.google.gerrit.sshd.AutoAnnotation_Commands_named ( value ) ; }
Source:
public static synchronized void resetWithClockStep ( long clockStep , java.util.concurrent.TimeUnit clockStepUnit ) { com.google.gerrit.testutil.TestTimeUtil.clockMs = new java.util.concurrent.atomic.AtomicLong ( com.google.gerrit.testutil.TestTimeUtil.START.toEpochMilli ( ) ) ; com.google.gerrit.testutil.TestTimeUtil.setClockStep ( clockStep , clockStepUnit ) ; }

Target:
public static synchronized void resetWithClockStep ( long clockStep , java.util.concurrent.TimeUnit clockStepUnit ) { com.google.gerrit.testing.TestTimeUtil.clockMs = new java.util.concurrent.atomic.AtomicLong ( com.google.gerrit.testing.TestTimeUtil.START.toEpochMilli ( ) ) ; com.google.gerrit.testing.TestTimeUtil.setClockStep ( clockStep , clockStepUnit ) ; }
Source:
public boolean canForgeCommitter ( ) { if ( ( canForgeCommitter ) == null ) { canForgeCommitter = canPerform ( com.google.gerrit.reviewdb.ApprovalCategory.FORGE_IDENTITY , com.google.gerrit.reviewdb.ApprovalCategory.FORGE_COMMITTER ) ; } return canForgeCommitter ; }

Target:
public boolean canForgeCommitter ( ) { if ( ( canForgeCommitter ) == null ) { canForgeCommitter = canPerform ( Permission.FORGE_COMMITTER ) ; } return canForgeCommitter ; }
Source:
public java.lang.String toString ( ) { return "push " + ( uri ) ; }

Target:
public java.lang.String toString ( ) { if ( ( retryCount ) == 0 ) { return "push " + ( uri ) ; } return ( ( ( "(retry " + ( retryCount ) ) + ") " ) + "push " ) + ( uri ) ; }
Source:
private com.google.gerrit.server.query.change.InternalChangeQuery query ( ) { java.util.Set < java.lang.String > fields = com.google.common.collect.ImmutableSet.of ( ChangeField.CHANGE.getName ( ) , ChangeField.PATCH_SET.getName ( ) , ChangeField.MERGEABLE.getName ( ) ) ; return queryProvider.get ( ) . setRequestedFields ( fields ) ; }

Target:
private java.util.List < com.google.gerrit.server.query.change.ChangeData > byTopicOpen ( java.lang.String topic ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.server.git.MergeSuperSet.query ( queryProvider.get ( ) ) . byTopicOpen ( topic ) ; }
Source:
protected abstract void onLoad ( org.eclipse.jgit.revwalk.RevWalk walk ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException ;

Target:
public static com.google.gerrit.server.notedb.AbstractChangeNotes.LoadHandle create ( org.eclipse.jgit.revwalk.RevWalk walk , org.eclipse.jgit.lib.ObjectId id ) { return new com.google.gerrit.server.notedb.AutoValue_AbstractChangeNotes_LoadHandle ( walk , ( id != null ? id.copy ( ) : null ) ) ; }
Source:
public void addReviewerToReviewableChangeInNoteDb ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isTrue ( ) ; forAll ( ( adder ) -> { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; com.google.gerrit.acceptance.TestAccount reviewer = accounts.create ( "added" , "added@example.com" , "added" ) ; addReviewer ( adder , sc.changeId , sc.owner , reviewer.email ) ; assertThat ( sender ) . sent ( "newchange" , sc ) . to ( reviewer ) . cc ( sc.reviewer ) . cc ( sc.reviewerByEmail , sc.ccerByEmail ) . noOneElse ( ) ; } ) ; }

Target:
private void addReviewerByEmailToReviewableChangeInReviewDb ( com.google.gerrit.acceptance.server.mail.AddReviewerSenderIT.Adder adder ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isFalse ( ) ; java.lang.String email = "addedbyemail@example.com" ; com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; addReviewer ( adder , sc.changeId , sc.owner , email ) ; assertThat ( sender ) . notSent ( ) ; }
Source:
protected abstract com.google.gerrit.client.patches.AbstractPatchContentTable createPatchTable ( ) ;

Target:
protected abstract com.google.gerrit.client.patches.AbstractPatchContentTable createContentTable ( ) ;
Source:
public void createDraftChangeNotAllowed ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( isAllowDrafts ( ) ) . isFalse ( ) ; com.google.gerrit.extensions.common.ChangeInfo ci = newChangeInfo ( ChangeStatus.DRAFT ) ; assertCreateFails ( ci , com.google.gerrit.extensions.restapi.MethodNotAllowedException.class , "draft workflow is disabled" ) ; }

Target:
public void createDraftChangeNotAllowed ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( isAllowDrafts ( ) ) . isFalse ( ) ; com.google.gerrit.extensions.common.ChangeInput ci = newChangeInput ( ChangeStatus.DRAFT ) ; assertCreateFails ( ci , com.google.gerrit.extensions.restapi.MethodNotAllowedException.class , "draft workflow is disabled" ) ; }
Source:
com.google.gerrit.httpd.raw.PolyGerritUiServlet getPolyGerritUiServlet ( @ com.google.inject.name.Named ( value = com.google.gerrit.httpd.raw.StaticModule.CACHE ) com.google.common.cache.Cache < java.nio.file.Path , com.google.gerrit.httpd.raw.ResourceServlet.Resource > cache ) { return new com.google.gerrit.httpd.raw.PolyGerritUiServlet ( cache , polyGerritBasePath ( ) ) ; }

Target:
com.google.gerrit.httpd.raw.FontsServlet getFontsServlet ( @ com.google.inject.name.Named ( value = com.google.gerrit.httpd.raw.StaticModule.CACHE ) com.google.common.cache.Cache < java.nio.file.Path , com.google.gerrit.httpd.raw.ResourceServlet.Resource > cache ) throws java.io.IOException { return new com.google.gerrit.httpd.raw.FontsServlet ( cache , getPaths ( ) . buckOut ) ; }
Source:
public boolean isMatchable ( ) { for ( com.google.gerrit.server.query.Predicate < T > c : children ) { if ( ! ( c.isMatchable ( ) ) ) { return false ; } } return true ; }

Target:
public boolean isMatchable ( ) { for ( com.google.gerrit.index.query.Predicate < T > c : children ) { if ( ! ( c.isMatchable ( ) ) ) { return false ; } } return true ; }
Source:
public final native void activeLine ( net.codemirror.lib.CodeMirror.LineHandle line ) ;

Target:
public final native void on ( net.codemirror.lib.CodeMirror.ChangesHandler handler ) ;
Source:
public void onSuccess ( final com.google.gwtjsonrpc.common.VoidResult result ) { com.google.gerrit.client.Gerrit.getUserAccount ( ) . setGeneralPreferences ( p ) ; com.google.gerrit.client.Gerrit.applyUserPreferences ( ) ; com.google.gerrit.client.Dispatcher.changeScreen2 = false ; enable ( true ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.account.Preferences prefs ) { com.google.gerrit.client.Gerrit.getUserAccount ( ) . setGeneralPreferences ( p ) ; com.google.gerrit.client.Gerrit.applyUserPreferences ( ) ; com.google.gerrit.client.Dispatcher.changeScreen2 = false ; enable ( true ) ; display ( prefs ) ; com.google.gerrit.client.Gerrit.refreshMenuBar ( ) ; }
Source:
protected void configure ( ) { get ( com.google.gerrit.server.project.ProjectResource.PROJECT_KIND , "lfs:config" ) . to ( com.googlesource.gerrit.plugins.lfs.GetLfsConfig.class ) ; get ( com.google.gerrit.server.project.ProjectResource.PROJECT_KIND , "lfs:settings" ) . to ( com.googlesource.gerrit.plugins.lfs.GetLfsSettings.class ) ; }

Target:
protected void configure ( ) { get ( com.google.gerrit.server.project.ProjectResource.PROJECT_KIND , "lfs:config-project" ) . to ( com.googlesource.gerrit.plugins.lfs.GetLfsProjectConfig.class ) ; get ( com.google.gerrit.server.project.ProjectResource.PROJECT_KIND , "lfs:config-global" ) . to ( com.googlesource.gerrit.plugins.lfs.GetLfsGlobalConfig.class ) ; }
Source:
private static org.eclipse.jgit.transport.RemoteSession connect ( org.eclipse.jgit.transport.URIish uri ) throws org.eclipse.jgit.errors.TransportException { return org.eclipse.jgit.transport.SshSessionFactory.getInstance ( ) . getSession ( uri , null , FS.DETECTED , 0 ) ; }

Target:
private static org.eclipse.jgit.transport.RemoteSession connect ( org.eclipse.jgit.transport.URIish uri ) throws org.eclipse.jgit.errors.TransportException { return org.eclipse.jgit.transport.SshSessionFactory.getInstance ( ) . getSession ( uri , null , FS.DETECTED , com.googlesource.gerrit.plugins.replication.ReplicationQueue.SSH_REMOTE_TIMEOUT ) ; }
Source:
public void onClick ( com.google.gwt.user.client.ui.Widget sender ) { showAddKeyBlock ( true ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { showAddKeyBlock ( true ) ; }
Source:
public void run ( ) { unschedule ( e ) ; try { mergeImpl ( e.dest ) ; } finally { finish ( e.dest ) ; } }

Target:
private void scheduleJob ( final com.google.gerrit.git.ChangeMergeQueue.MergeEntry e ) { if ( ! ( e.jobScheduled ) ) { e.jobScheduled = true ; workQueue.getDefaultQueue ( ) . schedule ( e , 0 , java.util.concurrent.TimeUnit.SECONDS ) ; } }
Source:
public void onRemoveByKeys ( org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.reviewdb.client.Account.Id accountId , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId.Key > extIdKeys ) { }

Target:
public void onRemoveByKeys ( org.eclipse.jgit.lib.ObjectId oldNotesRev , org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.reviewdb.client.Account.Id accountId , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId.Key > extIdKeys ) { }
Source:
private com.google.gerrit.server.notedb.ChangeNotes newNotes ( com.google.gerrit.reviewdb.client.Change c ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { return new com.google.gerrit.server.notedb.ChangeNotes ( repo , c ) ; }

Target:
private com.google.gerrit.server.notedb.ChangeNotes newNotes ( com.google.gerrit.reviewdb.client.Change c ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.server.notedb.ChangeNotes ( repoManager , c ) . load ( ) ; }
Source:
void onEditAssignee ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { editAssignee ( suggestBox.getText ( ) ) ; }

Target:
void onEditAssignee ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( canEdit ) { editAssignee ( suggestBox.getText ( ) ) ; } }
Source:
public org.apache.sshd.server.FileSystemView createFileSystemView ( java.lang.String userName ) { return new org.apache.sshd.server.FileSystemView ( ) { @ java.lang.Override public org.apache.sshd.server.SshFile getFile ( java.lang.String file ) { return null ; } } ; }

Target:
public org.apache.sshd.server.FileSystemView createFileSystemView ( org.apache.sshd.common.Session session ) throws java.io.IOException { return new org.apache.sshd.server.FileSystemView ( ) { @ java.lang.Override public org.apache.sshd.server.SshFile getFile ( org.apache.sshd.server.SshFile baseDir , java.lang.String file ) { return null ; } @ java.lang.Override public org.apache.sshd.server.SshFile getFile ( java.lang.String file ) { return null ; } } ; }
Source:
private com.google.gerrit.extensions.common.ApprovalInfo approvalInfo ( com.google.gerrit.reviewdb.client.Account.Id id , java.lang.Integer value , java.sql.Timestamp date ) { com.google.gerrit.extensions.common.ApprovalInfo ai = new com.google.gerrit.extensions.common.ApprovalInfo ( id.get ( ) ) ; ai.value = value ; ai.date = date ; accountLoader.put ( ai ) ; return ai ; }

Target:
public static com.google.gerrit.extensions.common.ApprovalInfo getApprovalInfo ( com.google.gerrit.reviewdb.client.Account.Id id , java.lang.Integer value , java.lang.String tag , java.sql.Timestamp date ) { com.google.gerrit.extensions.common.ApprovalInfo ai = new com.google.gerrit.extensions.common.ApprovalInfo ( id.get ( ) ) ; ai.value = value ; ai.date = date ; ai.tag = tag ; return ai ; }
Source:
com.google.gerrit.server.patch.PatchScriptFactory create ( com.google.gerrit.server.project.ChangeControl control , java.lang.String fileName , int parentNum , com.google.gerrit.reviewdb.client.PatchSet.Id patchSetB , com.google.gerrit.extensions.client.DiffPreferencesInfo diffPrefs ) ;

Target:
com.google.gerrit.server.patch.PatchScriptFactory create ( com.google.gerrit.server.notedb.ChangeNotes notes , java.lang.String fileName , int parentNum , com.google.gerrit.reviewdb.client.PatchSet.Id patchSetB , com.google.gerrit.extensions.client.DiffPreferencesInfo diffPrefs ) ;
Source:
public com.google.gwtorm.server.ResultSet < com.google.gerrit.server.query.change.ChangeData > read ( ) throws com.google.gwtorm.server.OrmException { java.lang.Thread.currentThread ( ) . interrupt ( ) ; HEAD ( 880 ) ; com.google.gerrit.lucene.a9b Merge ; }

Target:
public void close ( ) { com.google.common.util.concurrent.MoreExecutors.shutdownAndAwaitTermination ( executor , java.lang.Long.MAX_VALUE , java.util.concurrent.TimeUnit.SECONDS ) ; try { openIndex.close ( ) ; } finally { closedIndex.close ( ) ; } }
Source:
java.util.Map < java.lang.String , java.lang.Object > toSoyData ( javax.servlet.http.HttpServletRequest req , org.eclipse.jgit.revwalk.RevCommit commit , com.google.gitiles.DateFormatterBuilder.DateFormatter df ) throws java.io.IOException { return toSoyData ( req , commit , com.google.gitiles.CommitSoyData.DEFAULT_FIELDS , df ) ; }

Target:
java.util.Map < java.lang.String , java.lang.Object > toSoyData ( javax.servlet.http.HttpServletRequest req , org.eclipse.jgit.revwalk.RevCommit commit , com.google.gitiles.DateFormatter df ) throws java.io.IOException { return toSoyData ( req , commit , com.google.gitiles.CommitSoyData.DEFAULT_FIELDS , df ) ; }
Source:
protected void submitWithConflict ( java.lang.String changeId , java.lang.String expectedError ) throws java.lang.Exception { submit ( changeId , HttpStatus.SC_CONFLICT , expectedError ) ; }

Target:
protected void submitWithConflict ( java.lang.String changeId , java.lang.String expectedError ) throws java.lang.Exception { submit ( changeId , new com.google.gerrit.extensions.api.changes.SubmitInput ( ) , com.google.gerrit.extensions.restapi.ResourceConflictException.class , expectedError , true ) ; }
Source:
public int weigh ( K key , com.google.gerrit.server.cache.h2.H2CacheImpl.ValueHolder < V > value ) { return guavaWeigher.weigh ( key , value.value ) ; }

Target:
public int weigh ( K key , com.google.gerrit.server.cache.h2.H2CacheImpl.ValueHolder < V > value ) { return impl.weigh ( key , value.value ) ; }
Source:
protected void postDisplay ( ) { patchSetsBlock.setRegisterKeys ( true ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < com.google.gerrit.common.data.ChangeDetail > event ) { if ( isAttached ( ) ) { display ( event.getValue ( ) ) ; } }
Source:
private java.lang.String url ( com.google.gerrit.client.changes.ChangeInfo.RevisionInfo r ) { return com.google.gerrit.common.PageLinks.toChange2 ( changeId , java.lang.String.valueOf ( r._number ( ) ) ) ; }

Target:
private java.lang.String url ( com.google.gerrit.client.changes.ChangeInfo.RevisionInfo r ) { return com.google.gerrit.common.PageLinks.toChange ( changeId , java.lang.String.valueOf ( r._number ( ) ) ) ; }
Source:
public void testEventSentThrowsException ( ) throws java.lang.Exception { com.google.gerrit.server.events.Event event = setUpMocksForEvent ( false , "Exception" , true ) ; com.google.common.truth.Truth.assertThat ( restForwarder.send ( event ) ) . isFalse ( ) ; }

Target:
public void testEventSentThrowsException ( ) throws java.lang.Exception { com.google.gerrit.server.events.Event event = setUpMocksForEvent ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestForwarderTest.FAILED , com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestForwarderTest.EXCEPTION_MSG , com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestForwarderTest.THROW_EXCEPTION ) ; com.google.common.truth.Truth.assertThat ( restForwarder.send ( event ) ) . isFalse ( ) ; }
Source:
public void updateRepo ( com.google.gerrit.server.update.BatchUpdate.RepoContext ctx ) throws java.lang.Exception { }

Target:
public void updateRepo ( com.google.gerrit.server.update.RepoContext ctx ) throws java.lang.Exception { }
Source:
abstract void onRefReplicatedToOneNode ( java.lang.String project , java.lang.String ref , org.eclipse.jgit.transport.URIish uri , com.googlesource.gerrit.plugins.replication.ReplicationState.RefPushResult status ) ;

Target:
abstract void onRefReplicatedToOneNode ( java.lang.String project , java.lang.String ref , org.eclipse.jgit.transport.URIish uri , com.googlesource.gerrit.plugins.replication.ReplicationState.RefPushResult status , org.eclipse.jgit.transport.RemoteRefUpdate.Status refStatus ) ;
Source:
public void newPatchSetByOtherOnReviewableChangeOwnerSelfCcNotifyOwner ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( com.google.gerrit.server.account.WatchConfig.NotifyType.NEW_PATCHSETS ) ; pushTo ( sc , "refs/for/master%notify=OWNER" , other , EmailStrategy.CC_ON_OWN_COMMENTS ) ; assertThat ( sender ) . notSent ( ) ; }

Target:
public void newPatchSetByOwnerOnReviewableChangeToWip ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; pushTo ( sc , "refs/for/master%wip" , sc.owner ) ; assertThat ( sender ) . notSent ( ) ; }