auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void listNonExistingGroupIncludes_NotFound ( ) throws java.lang.Exception { java.lang.String name = name ( "non-existing" ) ; com.google.common.truth.Truth.assertThat ( adminSession.get ( ( ( "/groups/" + name ) + "/groups/" ) ) . getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_NOT_FOUND ) ; }

Target:
public void listNonExistingGroupIncludes_NotFound ( ) throws java.lang.Exception { try { gApi.groups ( ) . id ( "non-existing" ) . includedGroups ( ) ; } catch ( com.google.gerrit.extensions.restapi.ResourceNotFoundException expected ) { } }
Source:
void onDoubleClick ( com.google.gwt.event.dom.client.DoubleClickEvent e ) { setEdit ( true ) ; }

Target:
void onMessageDoubleClick ( com.google.gwt.event.dom.client.DoubleClickEvent e ) { setEdit ( true ) ; }
Source:
public void emptyChangeUpdate ( ) throws java.lang.Exception { com.google.gerrit.server.notedb.ChangeUpdate update = newUpdate ( newChange ( ) , changeOwner ) ; update.commit ( ) ; org.junit.Assert.assertNull ( update.getRevision ( ) ) ; }

Target:
public void emptyChangeUpdate ( ) throws java.lang.Exception { com.google.gerrit.server.notedb.ChangeUpdate update = newUpdate ( newChange ( ) , changeOwner ) ; update.commit ( ) ; com.google.common.truth.Truth.assertThat ( update.getRevision ( ) ) . isNull ( ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.VoidResult result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChangeInEditMode ( revision.getParentKey ( ) ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.rpc.HttpResponse < com.google.gerrit.client.rpc.NativeString > fc ) { content = fc ; if ( prefs.syntaxHighlighting ( ) ) { injectMode ( fc.getContentType ( ) , modeCallback ) ; } else { modeCallback.onSuccess ( null ) ; } }
Source:
public com.google.gerrit.server.project.TagResource parse ( com.google.gerrit.server.project.ProjectResource resource , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException , java.io.IOException { return new com.google.gerrit.server.project.TagResource ( resource.getControl ( ) , list.get ( ) . get ( resource , id ) ) ; }

Target:
public com.google.gerrit.server.project.TagResource parse ( com.google.gerrit.server.project.ProjectResource rsrc , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException , java.io.IOException { return new com.google.gerrit.server.project.TagResource ( rsrc.getProjectState ( ) , rsrc.getUser ( ) , list.get ( ) . get ( rsrc , id ) ) ; }
Source:
public void run ( ) { if ( cm.hasActiveLine ( ) ) { newDraft ( cm ) ; } }

Target:
public void run ( ) { if ( cm.extras ( ) . hasActiveLine ( ) ) { newDraft ( cm ) ; } }
Source:
public void parseLabel ( java.lang.String label , java.lang.String text , com.google.gerrit.server.git.ValidationError.Sink errors ) throws java.io.IOException { destinations.replaceValues ( label , com.google.gerrit.server.git.DestinationList.toSet ( parse ( text , ( ( com.google.gerrit.server.git.DestinationList.DIR_NAME ) + label ) , com.google.gerrit.server.git.TRIM , null , errors ) ) ) ; }

Target:
void parseLabel ( java.lang.String label , java.lang.String text , com.google.gerrit.server.git.ValidationError.Sink errors ) throws java.io.IOException { destinations.replaceValues ( label , com.google.gerrit.server.account.DestinationList.toSet ( parse ( text , ( ( com.google.gerrit.server.account.DestinationList.DIR_NAME ) + label ) , com.google.gerrit.server.account.TRIM , null , errors ) ) ) ; }
Source:
public void addUser ( ) throws java.lang.Exception { com.google.gerrit.server.account.PutUsername.Input in = new com.google.gerrit.server.account.PutUsername.Input ( ) ; in.username = "sandboxuser" ; com.google.gerrit.acceptance.RestResponse r = adminSession.put ( "/accounts/sandboxuser" , in ) ; com.google.common.truth.Truth.assertThat ( r.getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_CREATED ) ; }

Target:
public void addUser ( ) throws java.lang.Exception { gApi.accounts ( ) . create ( "sandboxuser" ) ; }
Source:
public WorkQueue.Executor createMergeabilityChecksExecutor ( com.google.gerrit.server.git.WorkQueue queues ) { return queues.createQueue ( 1 , "MergeabilityChecks" ) ; }

Target:
private void disableChangeCache ( ) { globalConfig.setLong ( "cache" , "changes" , "maximumWeight" , 0 ) ; }
Source:
public void onSuccess ( com.google.gwtjsonrpc.client.VoidResult result ) { actionsPanel.remove ( b ) ; fireOnSuggestRefresh ( ) ; }

Target:
public void onSuccess ( java.lang.Object result ) { actionsPanel.remove ( b ) ; fireOnSuggestRefresh ( ) ; }
Source:
public void testIndexTaskToString ( ) throws java.lang.Exception { com.ericsson.gerrit.plugins.highavailability.index.IndexEventHandler.IndexTask indexTask = indexEventHandler.new com.ericsson.gerrit.plugins.highavailability.index.IndexEventHandler.IndexTask ( com.ericsson.gerrit.plugins.highavailability.index.IndexEventHandlerTest.CHANGE_ID , false ) ; com.google.common.truth.Truth.assertThat ( indexTask.toString ( ) ) . isEqualTo ( java.lang.String.format ( "[%s] Index change %s in target instance" , com.ericsson.gerrit.plugins.highavailability.index.IndexEventHandlerTest.PLUGIN_NAME , com.ericsson.gerrit.plugins.highavailability.index.IndexEventHandlerTest.CHANGE_ID ) ) ; }

Target:
public void testIndexChangeTaskToString ( ) throws java.lang.Exception { com.ericsson.gerrit.plugins.highavailability.index.IndexEventHandler.IndexChangeTask task = indexEventHandler.new com.ericsson.gerrit.plugins.highavailability.index.IndexEventHandler.IndexChangeTask ( com.ericsson.gerrit.plugins.highavailability.index.IndexEventHandlerTest.CHANGE_ID , false ) ; com.google.common.truth.Truth.assertThat ( task.toString ( ) ) . isEqualTo ( java.lang.String.format ( "[%s] Index change %s in target instance" , com.ericsson.gerrit.plugins.highavailability.index.IndexEventHandlerTest.PLUGIN_NAME , com.ericsson.gerrit.plugins.highavailability.index.IndexEventHandlerTest.CHANGE_ID ) ) ; }
Source:
private java.io.File getFile ( java.lang.String includeFileName ) { if ( includeFileName.startsWith ( "/" ) ) { return new java.io.File ( basePath , includeFileName ) ; } else { return new java.io.File ( currentIs.getCurrentDir ( ) , includeFileName ) ; } }

Target:
private java.nio.file.Path getFile ( java.lang.String includeFileName ) { if ( includeFileName.startsWith ( "/" ) ) { return basePath.resolve ( includeFileName ) ; } else { return currentIs.getCurrentDir ( ) . resolve ( includeFileName ) ; } }
Source:
public void testLinkify_AngleBrackets1 ( ) { final com.google.gwtexpui.safehtml.client.SafeHtml o = com.google.gwtexpui.safehtml.client.SafeHtml_WikifyTest.html ( "A <http://go.here/> B" ) ; final com.google.gwtexpui.safehtml.client.SafeHtml n = o.wikify ( ) ; org.junit.Assert.assertNotSame ( o , n ) ; org.junit.Assert.assertEquals ( "<p>A &lt;<a href=\"http://go.here/\" target=\"_blank\">http://go.here/</a>&gt; B</p>" , n.asString ( ) ) ; }

Target:
public void testLinkify_Parens ( ) { final com.google.gwtexpui.safehtml.client.SafeHtml o = com.google.gwtexpui.safehtml.client.SafeHtml_WikifyTest.html ( "A http://go.here/#m() B" ) ; final com.google.gwtexpui.safehtml.client.SafeHtml n = o.wikify ( ) ; com.google.common.truth.Truth.assertThat ( o ) . isNotSameAs ( n ) ; com.google.common.truth.Truth.assertThat ( n.asString ( ) ) . isEqualTo ( "<p>A <a href=\"http://go.here/#m()\" target=\"_blank\">http://go.here/#m()</a> B</p>" ) ; }
Source:
void onDeleteRevision ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( com.google.gwt.user.client.Window.confirm ( Resources.C.deleteDraftRevision ( ) ) ) { com.google.gerrit.client.change.DraftActions.delete ( changeId , revision ) ; } }

Target:
void onRebaseEdit ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.EditActions.rebaseEdit ( changeId , publishEdit , rebaseEdit , deleteEdit ) ; }
Source:
public int hashCode ( ) { return com.google.common.base.Objects.hashCode ( project , resource , revId ) ; }

Target:
public int hashCode ( ) { return com.google.common.base.Objects.hashCode ( formatter , project , resource , revId ) ; }
Source:
public void removeChangeListener ( com.google.gerrit.common.ChangeListener listener ) { listeners.remove ( listener ) ; }

Target:
public void removeEventListener ( com.google.gerrit.common.EventListener listener ) { listeners.remove ( listener ) ; }
Source:
private com.cisco.gerrit.plugins.slack.config.ProjectConfig getConfig ( boolean publishOnPatchSetCreated , boolean ignoreRebaseEmptyPatchSet ) throws java.lang.Exception { return getConfig ( "^WIP.*" , publishOnPatchSetCreated , ignoreRebaseEmptyPatchSet ) ; }

Target:
private com.cisco.gerrit.plugins.slack.config.ProjectConfig getConfig ( boolean publishOnPatchSetCreated , boolean ignoreUnchangedPatchSet , boolean ignoreWorkInProgressPatchSet , boolean ignorePrivatePatchSet ) throws java.lang.Exception { return getConfig ( "^WIP.*" , publishOnPatchSetCreated , ignoreUnchangedPatchSet , ignoreWorkInProgressPatchSet , ignorePrivatePatchSet ) ; }
Source:
private void configureCmdLineParser ( ) { factory ( CmdLineParser.Factory.class ) ; registerOptionHandler ( PatchSet.Id.class , com.google.gerrit.server.ssh.commands.PatchSetIdHandler.class ) ; registerOptionHandler ( com.google.gerrit.server.project.ProjectControl.class , com.google.gerrit.server.ssh.commands.ProjectControlHandler.class ) ; }

Target:
private void configureCmdLineParser ( ) { factory ( CmdLineParser.Factory.class ) ; registerOptionHandler ( Account.Id.class , com.google.gerrit.server.ssh.commands.AccountIdHandler.class ) ; registerOptionHandler ( PatchSet.Id.class , com.google.gerrit.server.ssh.commands.PatchSetIdHandler.class ) ; registerOptionHandler ( com.google.gerrit.server.project.ProjectControl.class , com.google.gerrit.server.ssh.commands.ProjectControlHandler.class ) ; }
Source:
public void testIsIgnoredTopicChangedEvent ( ) { com.google.gerrit.server.events.TopicChangedEvent event = new com.google.gerrit.server.events.TopicChangedEvent ( ) ; com.googlesource.gerrit.plugins.its.base.its.ItsConfig itsConfig = createItsConfig ( ) ; replayMocks ( ) ; assertFalse ( itsConfig.isEnabled ( event ) ) ; assertLogMessageContains ( "not recognised and ignored" ) ; }

Target:
public void testIsEnabledUnknownEvent ( ) { com.google.gerrit.server.events.Event event = new com.google.gerrit.server.events.Event ( "foo" ) { } ; com.googlesource.gerrit.plugins.its.base.its.ItsConfig itsConfig = createItsConfig ( ) ; replayMocks ( ) ; assertFalse ( itsConfig.isEnabled ( event ) ) ; assertLogMessageContains ( "not recognised and ignored" ) ; }
Source:
private void colorLines ( net.codemirror.lib.CodeMirror cm , int line , int cnt ) { for ( int i = 0 ; i < cnt ; i ++ ) { cm.addLineClass ( ( line + i ) , LineClassWhere.WRAP , diffTable.style.diff ( ) ) ; } }

Target:
private void colorLines ( net.codemirror.lib.CodeMirror cm , java.lang.String color , int line , int cnt ) { for ( int i = 0 ; i < cnt ; i ++ ) { cm.addLineClass ( ( line + i ) , LineClassWhere.WRAP , color ) ; } }
Source:
static void postSignIn ( ) { com.google.gerrit.client.Gerrit.refreshMenuBar ( ) ; for ( final com.google.gerrit.client.SignedInListener l : com.google.gerrit.client.Gerrit.signedInListeners ) { l.onSignIn ( ) ; } }

Target:
public void execute ( ) { for ( final com.google.gerrit.client.SignedInListener l : com.google.gerrit.client.Gerrit.signedInListeners ) { l.onSignIn ( ) ; } }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { doExternalSearch ( ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { doAddNewInclude ( ) ; }
Source:
private void updateSelection ( ) { if ( cm.somethingSelected ( ) ) { net.codemirror.lib.TextMarker.FromTo sel = cm.getSelectedRange ( ) ; cm.setSelection ( sel.getFrom ( ) , sel.getTo ( ) ) ; } }

Target:
private void updateSelection ( ) { if ( cm.somethingSelected ( ) ) { net.codemirror.lib.TextMarker.FromTo sel = cm.getSelectedRange ( ) ; cm.setSelection ( sel.from ( ) , sel.to ( ) ) ; } }
Source:
private void assumeNoteDbDisabled ( ) { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isFalse ( ) ; com.google.common.truth.TruthJUnit.assume ( ) . that ( com.google.gerrit.testutil.NoteDbMode.get ( ) ) . isNotEqualTo ( NoteDbMode.CHECK ) ; }

Target:
private void assumeNoteDbDisabled ( ) { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isFalse ( ) ; com.google.common.truth.TruthJUnit.assume ( ) . that ( com.google.gerrit.testing.NoteDbMode.get ( ) ) . isNotEqualTo ( NoteDbMode.CHECK ) ; }
Source:
private com.google.gerrit.common.data.SubmitTypeRecord typeError ( java.lang.String err , java.lang.Exception e ) { if ( logErrors ) { com.google.gerrit.server.project.SubmitRuleEvaluator.log.error ( err , e ) ; return com.google.gerrit.server.project.SubmitRuleEvaluator.defaultTypeError ( ) ; } else { return com.google.gerrit.server.project.SubmitRuleEvaluator.createTypeError ( err ) ; } }

Target:
private java.util.List < com.google.gerrit.common.data.SubmitRecord > ruleError ( java.lang.String err ) { return ruleError ( err , null ) ; }
Source:
public com.googlesrouce.gerrit.plugins.github.git.GHPullRequest getPullRequest ( int i ) throws java.io.IOException { return ghRepository.getPullRequest ( i ) ; }

Target:
public com.googlesource.gerrit.plugins.github.git.GHPullRequest getPullRequest ( int i ) throws java.io.IOException { return ghRepository.getPullRequest ( i ) ; }
Source:
com.google.gerrit.server.CurrentUser getCurrentUser ( ) { if ( isSignedIn ( ) ) { return identified.create ( AccessPath.WEB , val.getAccountId ( ) ) ; } return anonymous ; }

Target:
com.google.gerrit.server.CurrentUser getCurrentUser ( ) { if ( isSignedIn ( ) ) { return identified.create ( accessPath , val.getAccountId ( ) ) ; } return anonymous ; }
Source:
public void setCookie ( javax.servlet.http.HttpServletResponse response , com.gitblit.models.UserModel user ) { }

Target:
public boolean supportsCookies ( ) { return false ; }
Source:
private org.eclipse.jgit.lib.ObjectId createCommit ( com.google.gerrit.server.IdentifiedUser me , org.eclipse.jgit.lib.ObjectInserter inserter , org.eclipse.jgit.revwalk.RevCommit revision , org.eclipse.jgit.lib.ObjectId tree ) throws java.io.IOException { return createCommit ( me , inserter , revision , tree , revision.getFullMessage ( ) ) ; }

Target:
private org.eclipse.jgit.lib.ObjectId createCommit ( com.google.gerrit.server.IdentifiedUser me , org.eclipse.jgit.lib.ObjectInserter inserter , org.eclipse.jgit.revwalk.RevCommit revision , org.eclipse.jgit.lib.ObjectId tree , java.sql.Timestamp when ) throws java.io.IOException { return createCommit ( me , inserter , revision , tree , revision.getFullMessage ( ) , when ) ; }
Source:
protected void onOpenRow ( final int row ) { final com.google.gerrit.client.changes.ChangeInfo c = getRowItem ( row ) ; final com.google.gerrit.reviewdb.client.Change.Id id = c.legacy_id ( ) ; com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( id ) ) ; }

Target:
protected void onOpenRow ( final int row ) { final com.google.gerrit.client.changes.ChangeInfo c = getRowItem ( row ) ; final com.google.gerrit.reviewdb.client.Change.Id id = c.legacyId ( ) ; com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( id ) ) ; }
Source:
protected void configure ( ) { bind ( com.ericsson.gerrit.plugins.highavailability.Configuration.class ) . in ( Scopes.SINGLETON ) ; install ( new com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestForwarderModule ( ) ) ; install ( new com.ericsson.gerrit.plugins.highavailability.event.EventModule ( ) ) ; install ( new com.ericsson.gerrit.plugins.highavailability.index.IndexModule ( ) ) ; }

Target:
protected void configure ( ) { bind ( com.ericsson.gerrit.plugins.highavailability.Configuration.class ) . in ( Scopes.SINGLETON ) ; install ( new com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestForwarderModule ( ) ) ; install ( new com.ericsson.gerrit.plugins.highavailability.event.EventModule ( ) ) ; install ( new com.ericsson.gerrit.plugins.highavailability.index.IndexModule ( ) ) ; install ( new com.ericsson.gerrit.plugins.highavailability.cache.CacheModule ( ) ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( event.getCharCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { doAddNewBranch ( ) ; } }

Target:
public void onSuccess ( final com.google.gerrit.common.data.ListBranchesResult result ) { addBranch.setEnabled ( true ) ; nameTxtBox.setText ( "" ) ; irevTxtBox.setText ( "" ) ; display ( result.getBranches ( ) ) ; }
Source:
public void onResize ( com.google.gwt.event.logical.shared.ResizeEvent event ) { resizeCodeMirror ( ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { toggleReviewed ( ) . run ( ) ; }
Source:
public void onReplace ( org.eclipse.jgit.lib.ObjectId newNotesRev , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toRemove , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toAdd ) { }

Target:
public void onReplace ( org.eclipse.jgit.lib.ObjectId oldNotesRev , org.eclipse.jgit.lib.ObjectId newNotesRev , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toRemove , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toAdd ) { }
Source:
public static com.google.gerrit.client.rpc.RestApi revision ( int id , java.lang.String revision ) { return com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( "revisions" ) . id ( revision ) ; }

Target:
public static void edit ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.info.ChangeInfo.EditInfo > cb ) { com.google.gerrit.client.changes.ChangeApi.edit ( project , id ) . get ( cb ) ; }
Source:
public void noRevisionOptions ( ) throws java.lang.Exception { com.google.gerrit.server.change.ChangeJson.ChangeInfo c = getChange ( changeId ) ; org.junit.Assert.assertNull ( c.currentRevision ) ; org.junit.Assert.assertNull ( c.revisions ) ; }

Target:
public void noRevisionOptions ( ) throws java.lang.Exception { com.google.gerrit.extensions.common.ChangeInfo c = info ( changeId ) ; org.junit.Assert.assertNull ( c.currentRevision ) ; org.junit.Assert.assertNull ( c.revisions ) ; }
Source:
com.google.gerrit.server.git.ChainedReceiveCommands getChangeCommands ( ) throws java.io.IOException { initChangeRepo ( ) ; return changeRepo.cmds ; }

Target:
com.google.gerrit.server.notedb.NoteDbUpdateManager.OpenRepo getChangeRepo ( ) throws java.io.IOException { initChangeRepo ( ) ; return changeRepo ; }
Source:
private com.google.gerrit.client.diff.FileCommentPanel getPanelFromSide ( com.google.gerrit.common.changes.Side side ) { return side == ( com.google.gerrit.common.changes.Side.PARENT ) ? fileCommentPanelA : fileCommentPanelB ; }

Target:
private com.google.gerrit.client.diff.FileCommentPanel getPanelFromSide ( com.google.gerrit.client.diff.SideBySide2.DisplaySide side ) { return side == ( com.google.gerrit.client.diff.SideBySide2.DisplaySide.A ) ? fileCommentPanelA : fileCommentPanelB ; }
Source:
public boolean updateChange ( com.google.gerrit.server.update.BatchUpdate.ChangeContext ctx ) throws com.google.gerrit.extensions.restapi.ResourceConflictException , com.google.gwtorm.server.OrmException , java.io.IOException { boolean ret = patchSetInserter.updateChange ( ctx ) ; rebasedPatchSet = patchSetInserter.getPatchSet ( ) ; return ret ; }

Target:
public boolean updateChange ( com.google.gerrit.server.update.ChangeContext ctx ) throws com.google.gerrit.extensions.restapi.ResourceConflictException , com.google.gwtorm.server.OrmException , java.io.IOException { boolean ret = patchSetInserter.updateChange ( ctx ) ; rebasedPatchSet = patchSetInserter.getPatchSet ( ) ; return ret ; }
Source:
void onExpandBefore ( com.google.gwt.event.dom.client.ClickEvent e ) { otherBar.expandBefore ( ) ; expandBefore ( ) ; cm.focus ( ) ; }

Target:
void expandBefore ( int cnt ) { expandSideBefore ( cnt ) ; otherBar.expandSideBefore ( cnt ) ; }
Source:
protected void doPost ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse rsp ) { process ( req , rsp , com.ericsson.gerrit.plugins.highavailability.forwarder.rest.AbstractIndexRestApiServlet.Operation.INDEX ) ; }

Target:
protected void doPost ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse rsp ) { process ( req , rsp , Operation.INDEX ) ; }
Source:
public java.util.Map < java.lang.String , com.google.gitiles.RepositoryDescription > listRepositories ( java.util.Set < java.lang.String > branches ) throws java.io.IOException , org.eclipse.jgit.transport.resolver.ServiceNotAuthorizedException , org.eclipse.jgit.transport.resolver.ServiceNotEnabledException ;

Target:
public java.util.Map < java.lang.String , com.google.gitiles.RepositoryDescription > listRepositories ( @ javax.annotation.Nullable java.lang.String prefix , java.util.Set < java.lang.String > branches ) throws java.io.IOException , org.eclipse.jgit.transport.resolver.ServiceNotAuthorizedException , org.eclipse.jgit.transport.resolver.ServiceNotEnabledException ;
Source:
public void copy ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.project.ChangeControl ctl , com.google.gerrit.reviewdb.client.PatchSet ps ) throws com.google.gwtorm.server.OrmException { db.patchSetApprovals ( ) . insert ( getForPatchSet ( db , ctl , ps ) ) ; }

Target:
public void copy ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.project.ChangeControl ctl , com.google.gerrit.reviewdb.client.PatchSet ps , java.lang.Iterable < com.google.gerrit.reviewdb.client.PatchSetApproval > dontCopy ) throws com.google.gwtorm.server.OrmException { db.patchSetApprovals ( ) . insert ( getForPatchSet ( db , ctl , ps , dontCopy ) ) ; }
Source:
private 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 ) ; }

Target:
private void reject ( final org.eclipse.jgit.transport.ReceiveCommand cmd , final java.lang.String why ) { cmd.setResult ( org.eclipse.jgit.transport.ReceiveCommand.Result.REJECTED_OTHER_REASON , why ) ; commandProgress.update ( 1 ) ; }
Source:
private static java.lang.String readDefaultCSS ( ) { if ( ( com.googlesource.gerrit.plugins.xdocs.formatter.AsciidoctorFormatter.defaultCss ) != null ) { return com.googlesource.gerrit.plugins.xdocs.formatter.AsciidoctorFormatter.defaultCss ; } try { return com.googlesource.gerrit.plugins.xdocs.formatter.AsciidoctorFormatter.readDefaultCss ( new java.util.concurrent.atomic.AtomicBoolean ( ) ) ; } catch ( java.io.IOException err ) { return "" ; } }

Target:
private static java.util.Properties readAttributes ( ) throws java.io.IOException { java.util.Properties attributes = new java.util.Properties ( ) ; try ( java.io.InputStream in = com.googlesource.gerrit.plugins.xdocs.formatter.AsciidoctorFormatter.class . getResourceAsStream ( "asciidoctor.properties" ) ) { attributes.load ( in ) ; } return attributes ; }
Source:
public void write ( java.io.Writer w ) throws java.io.IOException { final java.text.SimpleDateFormat fmt ; fmt = new java.text.SimpleDateFormat ( "EEE, d MMM yyyy HH:mm:ss Z" , java.util.Locale.ENGLISH ) ; w.write ( fmt.format ( value ) ) ; }

Target:
public void write ( java.io.Writer w ) throws java.io.IOException { final java.text.SimpleDateFormat fmt ; fmt = new java.text.SimpleDateFormat ( "EEE, d MMM yyyy HH:mm:ss Z" , java.util.Locale.US ) ; w.write ( fmt.format ( value ) ) ; }
Source:
public void fire ( com.google.gerrit.reviewdb.client.Project.NameKey project , org.eclipse.jgit.lib.RefUpdate refUpdate ) { fire ( project , refUpdate.getName ( ) , refUpdate.getOldObjectId ( ) , refUpdate.getNewObjectId ( ) , ReceiveCommand.Type.UPDATE ) ; }

Target:
public void fire ( com.google.gerrit.reviewdb.client.Project.NameKey project , org.eclipse.jgit.lib.RefUpdate refUpdate , com.google.gerrit.reviewdb.client.Account updater ) { fire ( project , refUpdate.getName ( ) , refUpdate.getOldObjectId ( ) , refUpdate.getNewObjectId ( ) , ReceiveCommand.Type.UPDATE , util.accountInfo ( updater ) ) ; }
Source:
private org.spearce.jgit.lib.Repository getRepository ( ) { try { return server.getRepositoryCache ( ) . get ( projectName ) ; } catch ( com.google.gerrit.git.InvalidRepositoryException e ) { return null ; } }

Target:
private org.spearce.jgit.lib.Repository getRepository ( ) { try { return server.openRepository ( projectName ) ; } catch ( org.spearce.jgit.errors.RepositoryNotFoundException e ) { return null ; } }
Source:
com.google.gerrit.httpd.WebSessionManager.Val get ( final com.google.gerrit.httpd.WebSessionManager.Key key ) { return self.getIfPresent ( key.token ) ; }

Target:
void destroy ( final com.google.gerrit.httpd.WebSessionManager.Key key ) { self.remove ( key ) ; }
Source:
private com.google.gerrit.common.changes.Side getStoredSideFromDisplaySide ( com.google.gerrit.client.diff.DisplaySide side ) { return ( side == ( DisplaySide.A ) ) && ( ( base ) == null ) ? com.google.gerrit.common.changes.Side.PARENT : com.google.gerrit.common.changes.Side.REVISION ; }

Target:
private com.google.gerrit.extensions.common.Side getStoredSideFromDisplaySide ( com.google.gerrit.client.diff.DisplaySide side ) { return ( side == ( DisplaySide.A ) ) && ( ( base ) == null ) ? com.google.gerrit.extensions.common.Side.PARENT : com.google.gerrit.extensions.common.Side.REVISION ; }
Source:
public static java.lang.String toSideBySide ( 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" , diffBase , revision , fileName , null , 0 ) ; }

Target:
public static java.lang.String toEditScreen ( @ com.google.gerrit.common.Nullable com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName , int line ) { return com.google.gerrit.client.Dispatcher.toPatch ( "edit" , project , com.google.gerrit.client.DiffObject.base ( ) , revision , fileName , null , line ) ; }
Source:
public void selectHttpUrl ( ) throws java.io.IOException , java.net.URISyntaxException , org.eclipse.jgit.api.errors.GitAPIException { BRANCH ( c303a3 ) ; }

Target:
public void selectHttpUrl ( ) throws java.lang.Exception { org.eclipse.jgit.transport.CredentialsProvider.setDefault ( new org.eclipse.jgit.transport.UsernamePasswordCredentialsProvider ( admin.username , admin.httpPassword ) ) ; selectProtocol ( Protocol.HTTP ) ; }
Source:
public static com.google.gerrit.client.changes.ReviewInput create ( ) { com.google.gerrit.client.changes.ReviewInput r = createObject ( ) . cast ( ) ; r.init ( ) ; return r ; }

Target:
public static com.google.gerrit.client.changes.ReviewInput create ( ) { com.google.gerrit.client.changes.ReviewInput r = createObject ( ) . cast ( ) ; r.init ( ) ; r.drafts ( com.google.gerrit.client.changes.ReviewInput.DraftHandling.PUBLISH ) ; return r ; }
Source:
public com.google.gerrit.server.mail.CommentSender create ( com.google.gerrit.reviewdb.client.Change change ) ;

Target:
public com.google.gerrit.server.mail.CommentSender create ( com.google.gerrit.server.change.PostReview.NotifyHandling notify , com.google.gerrit.reviewdb.client.Change change ) ;
Source:
private void closeConnection ( java.sql.Connection conn ) { if ( conn != null ) { try { conn.close ( ) ; } catch ( java.sql.SQLException e ) { com.ericsson.gerrit.plugins.eventslog.SQLStore.log.warn ( "Cannot close connection" , e ) ; } } }

Target:
private void removeProjectEvents ( java.lang.String project ) { try { sqlClient.removeProjectEvents ( project ) ; } catch ( java.sql.SQLException e ) { com.ericsson.gerrit.plugins.eventslog.SQLStore.log.warn ( ( ( "Cannot remove project " + project ) + " from database" ) , e ) ; } }
Source:
protected com.google.gerrit.server.notedb.AbstractChangeNotes.LoadHandle openHandle ( org.eclipse.jgit.lib.Repository repo ) throws java.io.IOException { return com.google.gerrit.server.notedb.AbstractChangeNotes.LoadHandle.create ( new org.eclipse.jgit.revwalk.RevWalk ( repo ) , readRef ( repo ) ) ; }

Target:
protected com.google.gerrit.server.notedb.AbstractChangeNotes.LoadHandle openHandle ( org.eclipse.jgit.lib.Repository repo ) throws java.io.IOException { return com.google.gerrit.server.notedb.AbstractChangeNotes.LoadHandle.create ( com.google.gerrit.server.notedb.ChangeNotesCommit.newRevWalk ( repo ) , readRef ( repo ) ) ; }
Source:
private static void noCache ( javax.servlet.http.HttpServletResponse res ) { res.setHeader ( "Expires" , "Fri, 01 Jan 1980 00:00:00 GMT" ) ; res.setHeader ( "Pragma" , "no-cache" ) ; res.setHeader ( "Cache-Control" , "no-cache, must-revalidate" ) ; res.setHeader ( "Content-Disposition" , "attachment" ) ; }

Target:
protected static void sendError ( javax.servlet.http.HttpServletResponse res , int statusCode , java.lang.String msg ) throws java.io.IOException { res.setStatus ( statusCode ) ; com.google.gerrit.httpd.RestApiServlet.sendText ( null , res , msg ) ; }
Source:
public final com.googlesource.gerrit.plugins.xdocs.client.ChangeStatus getStatus ( ) { return com.googlesource.gerrit.plugins.xdocs.client.ChangeStatus.valueOf ( statusRaw ( ) ) ; }

Target:
public final com.google.gerrit.extensions.common.ChangeStatus getStatus ( ) { return com.google.gerrit.extensions.common.ChangeStatus.valueOf ( statusRaw ( ) ) ; }
Source:
public void doFilter ( javax.servlet.ServletRequest request , javax.servlet.ServletResponse response , javax.servlet.FilterChain chain ) throws java.io.IOException , javax.servlet.ServletException { monitoring.doFilter ( request , response , chain ) ; }

Target:
public void destroy ( ) { monitoring.destroy ( ) ; }
Source:
public com.google.gerrit.server.IdentifiedUser create ( java.net.SocketAddress remotePeer , com.google.gerrit.reviewdb.client.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , starredChangesUtil , authConfig , realm , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , com.google.inject.util.Providers.of ( remotePeer ) , null , id , null ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( java.net.SocketAddress remotePeer , com.google.gerrit.reviewdb.client.Account.Id id ) { return runAs ( remotePeer , id , null ) ; }
Source:
public void index ( com.google.gerrit.reviewdb.client.Account.Id id ) throws java.io.IOException { for ( com.google.gerrit.server.index.Index < ? , com.google.gerrit.server.account.AccountState > i : indexes.getWriteIndexes ( ) ) { i.replace ( byIdCache.get ( id ) ) ; } }

Target:
private java.util.Collection < com.google.gerrit.server.index.account.AccountIndex > getWriteIndexes ( ) { return ( indexes ) != null ? indexes.getWriteIndexes ( ) : java.util.Collections.singleton ( index ) ; }
Source:
public void addReviewerByEmailToReviewableChangeInNoteDb ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isTrue ( ) ; forAll ( ( adder ) -> { 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 ) . sent ( "newchange" , sc ) . to ( email ) . cc ( sc.reviewer ) . cc ( sc.reviewerByEmail , sc.ccerByEmail ) . noOneElse ( ) ; } ) ; }

Target:
private void addReviewerByEmailToReviewableChangeInNoteDb ( com.google.gerrit.acceptance.server.mail.AddReviewerSenderIT.Adder adder ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isTrue ( ) ; 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 ) . sent ( "newchange" , sc ) . to ( email ) . cc ( sc.reviewer ) . cc ( sc.reviewerByEmail , sc.ccerByEmail ) . noOneElse ( ) ; }
Source:
T call ( com.google.gerrit.server.update.BatchUpdate.Factory updateFactory ) throws java.lang.Exception ;

Target:
T call ( com.google.gerrit.server.update.BatchUpdate.Factory batchUpdateFactory ) throws java.lang.Exception ;
Source:
protected void configure ( ) { bind ( com.google.gerrit.pgm.util.ConsoleUI.class ) . toInstance ( init.ui ) ; bind ( com.google.gerrit.pgm.init.InitFlags.class ) . toInstance ( init.flags ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.pgm.init.ConsoleUI.class ) . toInstance ( init.ui ) ; bind ( com.google.gerrit.pgm.init.InitFlags.class ) . toInstance ( init.flags ) ; }
Source:
public static void setup ( ) { com.google.gerrit.server.events.EventTypes.register ( com.ericsson.gerrit.plugins.syncevents.SyncEventsRestApiServletTest.RefReplicationDoneEvent.TYPE , com.ericsson.gerrit.plugins.syncevents.SyncEventsRestApiServletTest.RefReplicationDoneEvent.class ) ; com.google.gwtorm.client.KeyUtil.setEncoderImpl ( new com.google.gwtorm.server.StandardKeyEncoder ( ) ) ; }

Target:
public static void setup ( ) { com.google.gerrit.server.events.EventTypes.register ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.EventRestApiServletTest.RefReplicationDoneEvent.TYPE , com.ericsson.gerrit.plugins.highavailability.forwarder.rest.EventRestApiServletTest.RefReplicationDoneEvent.class ) ; com.google.gwtorm.client.KeyUtil.setEncoderImpl ( new com.google.gwtorm.server.StandardKeyEncoder ( ) ) ; }
Source:
public void BROKEN_testIsEnabledUnknownEvent ( ) { com.google.gerrit.server.events.Event event = new com.google.gerrit.server.events.Event ( "foo" ) { } ; com.googlesource.gerrit.plugins.its.base.its.ItsConfig itsConfig = createItsConfig ( ) ; replayMocks ( ) ; assertFalse ( itsConfig.isEnabled ( event ) ) ; assertLogMessageContains ( "not recognised and ignored" ) ; }

Target:
public void BROKEN_testIsEnabledUnknownEvent ( ) { com.google.gerrit.server.events.RefEvent event = createMock ( com.google.gerrit.server.events.RefEvent.class ) ; com.googlesource.gerrit.plugins.its.base.its.ItsConfig itsConfig = createItsConfig ( ) ; replayMocks ( ) ; assertFalse ( itsConfig.isEnabled ( event ) ) ; assertLogMessageContains ( "not recognised and ignored" ) ; }
Source:
private org.eclipse.jgit.revwalk.RevCommit getHead ( org.eclipse.jgit.lib.Repository repo , java.lang.String name ) throws java.io.IOException { try ( org.eclipse.jgit.revwalk.RevWalk rw = new org.eclipse.jgit.revwalk.RevWalk ( repo ) ) { return rw.parseCommit ( repo.getRef ( name ) . getObjectId ( ) ) ; } }

Target:
private org.eclipse.jgit.revwalk.RevCommit getHead ( org.eclipse.jgit.lib.Repository repo , java.lang.String name ) throws java.io.IOException { try ( org.eclipse.jgit.revwalk.RevWalk rw = new org.eclipse.jgit.revwalk.RevWalk ( repo ) ) { return rw.parseCommit ( repo.exactRef ( name ) . getObjectId ( ) ) ; } }
Source:
private static com.google.gerrit.server.index.Schema < com.google.gerrit.server.query.change.ChangeData > release ( java.util.Collection < com.google.gerrit.server.index.FieldDef < com.google.gerrit.server.query.change.ChangeData , ? > > fields ) { return new com.google.gerrit.server.index.Schema ( true , fields ) ; }

Target:
private static com.google.gerrit.server.index.Schema < com.google.gerrit.server.query.change.ChangeData > schema ( java.util.Collection < com.google.gerrit.server.index.FieldDef < com.google.gerrit.server.query.change.ChangeData , ? > > fields ) { return new com.google.gerrit.server.index.Schema ( com.google.common.collect.ImmutableList.copyOf ( fields ) ) ; }
Source:
public void onFailure ( final java.lang.Throwable caught ) { addNew.setEnabled ( true ) ; super . onFailure ( caught ) ; }

Target:
public void onFailure ( final java.lang.Throwable caught ) { addNew.setEnabled ( true ) ; nameBox.setEnabled ( true ) ; filterTxt.setEnabled ( true ) ; super . onFailure ( caught ) ; }
Source:
public void execute ( java.lang.String issue , java.lang.Iterable < com.googlesource.gerrit.plugins.hooks.workflow.ActionRequest > actions ) { for ( com.googlesource.gerrit.plugins.hooks.workflow.ActionRequest actionRequest : actions ) { execute ( issue , actionRequest ) ; } }

Target:
public void execute ( java.lang.String issue , java.lang.Iterable < com.googlesource.gerrit.plugins.hooks.workflow.ActionRequest > actions , java.util.Set < com.googlesource.gerrit.plugins.hooks.workflow.Property > properties ) { for ( com.googlesource.gerrit.plugins.hooks.workflow.ActionRequest actionRequest : actions ) { execute ( issue , actionRequest , properties ) ; } }
Source:
public java.lang.Thread newThread ( final java.lang.Runnable task ) { final java.lang.Thread t = parent.newThread ( task ) ; t.setPriority ( java.lang.Thread.MIN_PRIORITY ) ; return t ; }

Target:
public WorkQueue.Executor get ( ) { com.google.gerrit.server.git.WorkQueue.Executor executor ; if ( user.isBatchUser ( ) ) { executor = queues.getBatchQueue ( ) ; } else { executor = queues.getInteractiveQueue ( ) ; } return executor ; }
Source:
public com.google.gerrit.server.change.ChangeJson.ChangeInfo format ( com.google.gerrit.server.change.ChangeResource rsrc ) throws com.google.gwtorm.server.OrmException { return format ( new com.google.gerrit.server.query.change.ChangeData ( rsrc.getControl ( ) ) ) ; }

Target:
public com.google.gerrit.server.change.ChangeJson.ChangeInfo format ( com.google.gerrit.server.change.ChangeResource rsrc ) throws com.google.gwtorm.server.OrmException { return format ( changeDataFactory.create ( db.get ( ) , rsrc.getControl ( ) ) ) ; }
Source:
private void allowPushOfTagsForNewCommits ( ) throws java.lang.Exception { grant ( Permission.PUSH , project , "refs/tags/*" , false , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS ) ; }

Target:
private void fastForwardTagToNewCommit ( com.google.gerrit.acceptance.rest.project.PushTagIT.TagType tagType , java.lang.String tagName , org.eclipse.jgit.transport.RemoteRefUpdate.Status expectedStatus ) throws java.lang.Exception { pushTag ( tagType , tagName , true , expectedStatus ) ; }
Source:
private com.google.gerrit.client.change.RelatedChangesTab getTab ( ) { if ( ( cherryPicksTab ) == null ) { cherryPicksTab = createTab ( Resources.C.cherryPicks ( ) , Resources.C.cherryPicksTooltip ( ) ) ; cherryPicksTab.registerKeys ( ) ; cherryPicksTab.setShowBranches ( true ) ; } return cherryPicksTab ; }

Target:
private com.google.gerrit.client.change.RelatedChangesTab getTab ( ) { if ( ( sameTopicTab ) == null ) { sameTopicTab = createTab ( Resources.C.sameTopic ( ) , Resources.C.sameTopicTooltip ( ) ) ; } return sameTopicTab ; }
Source:
public static com.google.gerrit.server.notedb.MutableNotesMigration newNotesMigrationFromEnv ( ) { com.google.gerrit.server.notedb.MutableNotesMigration m = com.google.gerrit.server.notedb.MutableNotesMigration.newDisabled ( ) ; com.google.gerrit.testutil.NoteDbMode.resetFromEnv ( m ) ; return m ; }

Target:
public static com.google.gerrit.server.notedb.MutableNotesMigration newNotesMigrationFromEnv ( ) { com.google.gerrit.server.notedb.MutableNotesMigration m = com.google.gerrit.server.notedb.MutableNotesMigration.newDisabled ( ) ; com.google.gerrit.testing.NoteDbMode.resetFromEnv ( m ) ; return m ; }
Source:
java.lang.String onSubmit ( java.lang.String newCommitMessage , org.eclipse.jgit.revwalk.RevCommit original , org.eclipse.jgit.revwalk.RevCommit mergeTip , com.google.gerrit.server.project.ChangeControl ctl ) ;

Target:
java.lang.String onSubmit ( java.lang.String newCommitMessage , org.eclipse.jgit.revwalk.RevCommit original , org.eclipse.jgit.revwalk.RevCommit mergeTip , com.google.gerrit.reviewdb.client.Branch.NameKey destination ) ;
Source:
public void remove ( K key ) { if ( key != null ) { cache.remove ( new com.google.gerrit.ehcache.SerializableProtobuf < K > ( key , keyCodec ) ) ; } }

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > removeAllAsync ( ) { return cache.removeAllAsync ( ) ; }
Source:
public void addReviewerToWipChangeInReviewDbNotifyAll ( ) throws java.lang.Exception { forAll ( ( adder ) -> { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isFalse ( ) ; com.google.gerrit.acceptance.server.mail.StagedChange sc = stageWipChange ( ) ; com.google.gerrit.acceptance.TestAccount reviewer = accounts.create ( "added" , "added@example.com" , "added" ) ; addReviewer ( adder , sc.changeId , sc.owner , reviewer.email , NotifyHandling.ALL ) ; assertThat ( sender ) . sent ( "newchange" , sc ) . to ( reviewer ) . cc ( sc.reviewer , sc.ccer ) . cc ( sc.reviewerByEmail , sc.ccerByEmail ) . noOneElse ( ) ; } ) ; }

Target:
private void addReviewerToWipChangeInReviewDbNotifyAll ( com.google.gerrit.acceptance.server.mail.AddReviewerSenderIT.Adder adder ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isFalse ( ) ; com.google.gerrit.acceptance.server.mail.StagedChange sc = stageWipChange ( ) ; com.google.gerrit.acceptance.TestAccount reviewer = accountCreator.create ( "added" , "added@example.com" , "added" ) ; addReviewer ( adder , sc.changeId , sc.owner , reviewer.email , NotifyHandling.ALL ) ; assertThat ( sender ) . sent ( "newchange" , sc ) . to ( reviewer ) . cc ( sc.reviewer , sc.ccer ) . cc ( sc.reviewerByEmail , sc.ccerByEmail ) . noOneElse ( ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.changes.ChangeFileApi.FileContent result ) { textArea.setText ( result.text ( ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.rpc.HttpResponse < com.google.gerrit.client.rpc.NativeString > result ) { textArea.setText ( result.getResult ( ) . asString ( ) ) ; }
Source:
protected < T > T buildJson ( java.lang.String path , java.lang.Class < T > classOfT ) throws java.lang.Exception { return new com.google.gson.Gson ( ) . fromJson ( buildJsonRaw ( path ) , classOfT ) ; }

Target:
protected com.google.gson.JsonElement buildJson ( java.lang.String path , java.lang.String additionalQueryString ) throws java.lang.Exception { return new com.google.gson.JsonParser ( ) . parse ( buildJsonRaw ( path , additionalQueryString ) ) ; }
Source:
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 ) throws java.io.IOException ;

Target:
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 ) throws java.io.IOException ;
Source:
protected void configure ( ) { bind ( com.google.gerrit.server.permissions.PermissionBackend.class ) . to ( com.google.gerrit.server.project.DefaultPermissionBackend.class ) . in ( Scopes.SINGLETON ) ; bind ( ProjectControl.GenericFactory.class ) ; factory ( ProjectControl.AssistedFactory.class ) ; bind ( ChangeControl.GenericFactory.class ) ; bind ( ChangeControl.Factory.class ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.server.permissions.PermissionBackend.class ) . to ( com.google.gerrit.server.project.DefaultPermissionBackend.class ) . in ( Scopes.SINGLETON ) ; install ( new com.google.gerrit.server.project.DefaultPermissionBackendModule.LegacyControlsModule ( ) ) ; }
Source:
protected java.lang.String getName ( ) { return hook.getName ( ) ; }

Target:
public java.lang.String toString ( ) { return "hook " + ( hook.getFileName ( ) ) ; }
Source:
static ExternalId.Key toExtIdKey ( org.bouncycastle.openpgp.PGPPublicKey key ) { return ExternalId.Key.create ( com.google.gerrit.server.account.ExternalId.SCHEME_GPGKEY , com.google.common.io.BaseEncoding.base16 ( ) . encode ( key.getFingerprint ( ) ) ) ; }

Target:
static ExternalId.Key toExtIdKey ( org.bouncycastle.openpgp.PGPPublicKey key ) { return ExternalId.Key.create ( com.google.gerrit.server.account.externalids.ExternalId.SCHEME_GPGKEY , com.google.common.io.BaseEncoding.base16 ( ) . encode ( key.getFingerprint ( ) ) ) ; }
Source:
private void updateManifest ( java.lang.String projectName , java.lang.String refName , com.amd.gerrit.plugins.manifestsubscription.manifest.Manifest manifest , java.lang.String manifestSrc ) throws java.io.IOException , javax.xml.bind.JAXBException { updateManifest ( projectName , refName , manifest , manifestSrc , "" ) ; }

Target:
private void updateManifest ( java.lang.String projectName , java.lang.String refName , com.amd.gerrit.plugins.manifestsubscription.manifest.Manifest manifest , java.lang.String manifestSrc ) throws java.io.IOException , javax.xml.bind.JAXBException { com.amd.gerrit.plugins.manifestsubscription.Utilities.updateManifest ( gitRepoManager , metaDataUpdateFactory , changeHooks , projectName , refName , manifest , manifestSrc , "" , null ) ; }
Source:
void onCancel ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { openForm.setVisible ( true ) ; com.google.gwt.user.client.ui.UIObject.setVisible ( form , false ) ; suggestBox.setFocus ( false ) ; }

Target:
void onCancel ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { openForm.setVisible ( true ) ; com.google.gwt.user.client.ui.UIObject.setVisible ( form , false ) ; suggestBox.setFocus ( false ) ; suggestBox.setText ( "" ) ; }
Source:
protected void configureCommands ( ) { command ( com.google.gerrit.plugins.ShowAccountCommand.class ) ; alias ( "show-account" , com.google.gerrit.plugins.ShowAccountCommand.class ) ; }

Target:
protected void configureCommands ( ) { command ( com.google.gerrit.plugins.ShowAccountCommand.class ) ; alias ( "show-account" , com.google.gerrit.plugins.ShowAccountCommand.class ) ; alias ( "show-repo-account-access" , com.google.gerrit.plugins.ShowRepoAccountAccessCommand.class ) ; alias ( "show-repo-access" , com.google.gerrit.plugins.ShowRepoAccessCommand.class ) ; }
Source:
public void onClick ( final com.google.gwt.user.client.ui.Widget sender ) { doSave ( ) ; }

Target:
public void onClick ( final com.google.gwt.user.client.ui.Widget sender ) { doRegisterNewEmail ( ) ; }
Source:
public org.eclipse.jgit.lib.ObjectId commit ( final org.eclipse.jgit.lib.ObjectInserter inserter , final org.eclipse.jgit.lib.CommitBuilder mergeCommit ) throws java.io.IOException , java.io.UnsupportedEncodingException { org.eclipse.jgit.lib.ObjectId id = inserter.insert ( mergeCommit ) ; inserter.flush ( ) ; return id ; }

Target:
public org.eclipse.jgit.merge.ThreeWayMerger newThreeWayMerger ( final org.eclipse.jgit.lib.Repository repo , final org.eclipse.jgit.lib.ObjectInserter inserter ) { return com.google.gerrit.server.git.MergeUtil.newThreeWayMerger ( repo , inserter , mergeStrategyName ( ) ) ; }
Source:
public abstract java.util.List < com.google.gerrit.server.query.change.ChangeData > changes ( ) ;

Target:
public abstract boolean more ( ) ;
Source:
protected abstract com.google.gwtorm.nosql.IndexFunction < T > getKeyIndex ( ) ;

Target:
protected abstract com.google.gwtorm.nosql.IndexFunction < T > [ ] getIndexes ( ) ;
Source:
public void onResize ( com.google.gwt.event.logical.shared.ResizeEvent event ) { resizeCodeMirror ( ) ; resizeBoxPaddings ( ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { toggleReviewed ( ) . run ( ) ; }
Source:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { doChangeUserName ( ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( event.getCharCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { doChangeUserName ( ) ; } }
Source:
void cancel ( ) { canceled = true ; }

Target:
void canceledByReplication ( ) { canceled = true ; }