auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static com.google.gerrit.common.data.SubmitTypeRecord OK ( com.google.gerrit.extensions.client.SubmitType type ) { com.google.gerrit.common.data.SubmitTypeRecord r = new com.google.gerrit.common.data.SubmitTypeRecord ( ) ; r.status = com.google.gerrit.common.data.SubmitTypeRecord.Status.OK ; r.type = type ; return r ; }

Target:
public static com.google.gerrit.common.data.SubmitTypeRecord OK ( com.google.gerrit.extensions.client.SubmitType type ) { return new com.google.gerrit.common.data.SubmitTypeRecord ( com.google.gerrit.common.data.SubmitTypeRecord.Status.OK , type , null ) ; }
Source:
public void deleteAll ( ) throws java.io.IOException { openIndex.deleteAll ( ) ; closedIndex.deleteAll ( ) ; }

Target:
public void run ( ) { closedIndex.close ( ) ; }
Source:
public void addPatchSets ( com.google.gerrit.server.events.ChangeAttribute ca , java.util.Collection < com.google.gerrit.reviewdb.PatchSet > ps , java.util.Map < com.google.gerrit.reviewdb.PatchSet.Id , java.util.Collection < com.google.gerrit.reviewdb.PatchSetApproval > > approvals ) { addPatchSets ( ca , ps , approvals , false , null ) ; }

Target:
public void addPatchSets ( com.google.gerrit.server.events.ChangeAttribute ca , java.util.Collection < com.google.gerrit.reviewdb.client.PatchSet > ps , java.util.Map < com.google.gerrit.reviewdb.client.PatchSet.Id , java.util.Collection < com.google.gerrit.reviewdb.client.PatchSetApproval > > approvals ) { addPatchSets ( ca , ps , approvals , false , null ) ; }
Source:
public void onSuccess ( final com.google.gerrit.common.data.ProjectDetail result ) { addRight.setEnabled ( true ) ; nameTxt.setText ( "" ) ; referenceTxt.setText ( "" ) ; display ( result ) ; }

Target:
public void onSuccess ( final com.google.gerrit.common.data.ProjectDetail result ) { display ( result ) ; }
Source:
public com.google.gerrit.extensions.restapi.Response < ? > apply ( com.google.gerrit.server.change.ChangeResource resource , com.google.gerrit.server.change.ChangeEdits.Put.Input input ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.extensions.restapi.ResourceConflictException , com.google.gerrit.server.permissions.PermissionBackendException , com.google.gwtorm.server.OrmException , java.io.IOException { putEdit.apply ( resource.getControl ( ) , path , input.content ) ; return com.google.gerrit.extensions.restapi.Response.none ( ) ; }

Target:
public com.google.gerrit.extensions.restapi.Response < ? > apply ( com.google.gerrit.server.change.ChangeResource resource , com.google.gerrit.server.change.ChangeEdits.Put.Input input ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.extensions.restapi.ResourceConflictException , com.google.gerrit.server.permissions.PermissionBackendException , com.google.gwtorm.server.OrmException , java.io.IOException { putEdit.apply ( resource , path , input.content ) ; return com.google.gerrit.extensions.restapi.Response.none ( ) ; }
Source:
public com.google.gerrit.reviewdb.AccountGroup lookup ( final java.lang.String groupName ) { return byName.get ( new com.google.gerrit.reviewdb.AccountGroup.NameKey ( groupName ) ) ; }

Target:
public com.google.gerrit.reviewdb.AccountGroup get ( final com.google.gerrit.reviewdb.AccountGroup.NameKey name ) { return byName.get ( name ) ; }
Source:
private java.util.List < com.google.gerrit.server.notedb.rebuild.Event > events ( com.google.gerrit.server.notedb.rebuild.Event ... es ) { return com.google.common.collect.Lists.newArrayList ( es ) ; }

Target:
private static java.util.List < com.google.gerrit.server.notedb.rebuild.Event > events ( com.google.gerrit.server.notedb.rebuild.Event ... es ) { return com.google.common.collect.Lists.newArrayList ( es ) ; }
Source:
public void testThatNullBasePathThrowsAnException ( ) { new com.google.gerrit.server.git.LocalDiskRepositoryManager ( site , new org.eclipse.jgit.lib.Config ( ) , createNiceMock ( com.google.gerrit.server.notedb.NotesMigration.class ) ) ; }

Target:
public void testThatNullBasePathThrowsAnException ( ) { new com.google.gerrit.server.git.LocalDiskRepositoryManager ( site , new org.eclipse.jgit.lib.Config ( ) ) ; }
Source:
public void onSuccess ( ) { com.google.gerrit.client.Gerrit.display ( token , new com.google.gerrit.client.diff.Unified ( base , com.google.gerrit.client.DiffObject.patchSet ( id.getParentKey ( ) ) , id.get ( ) , side , line ) ) ; }

Target:
public void onSuccess ( ) { com.google.gerrit.client.Gerrit.display ( token , new com.google.gerrit.client.diff.Unified ( project , base , com.google.gerrit.client.DiffObject.patchSet ( id.getParentKey ( ) ) , id.get ( ) , side , line ) ) ; }
Source:
public void postEvent ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.server.events.Event event , com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException ;

Target:
void postEvent ( com.google.gerrit.server.events.Event event , com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException ;
Source:
private static boolean isNotSignedIn ( final java.lang.Throwable caught ) { if ( caught instanceof com.google.gerrit.client.rpc.NotSignedInException ) { return true ; } return ( caught instanceof com.google.gwtjsonrpc.client.RemoteJsonException ) && ( caught.getMessage ( ) . equals ( NotSignedInException.MESSAGE ) ) ; }

Target:
public static boolean isNotSignedIn ( final java.lang.Throwable caught ) { if ( caught instanceof com.google.gerrit.client.rpc.NotSignedInException ) { return true ; } return ( caught instanceof com.google.gwtjsonrpc.client.RemoteJsonException ) && ( caught.getMessage ( ) . equals ( NotSignedInException.MESSAGE ) ) ; }
Source:
protected < T > T buildJson ( java.lang.String path , java.lang.reflect.Type typeOfT ) throws java.lang.Exception { return new com.google.gson.Gson ( ) . < T > fromJson ( buildJsonRaw ( path , "" ) , typeOfT ) ; }

Target:
protected < T > T buildJson ( java.lang.String path , java.lang.reflect.Type typeOfT ) throws java.lang.Exception { return buildJson ( path , typeOfT , "" ) ; }
Source:
public boolean usePool ( ) { }

Target:
boolean usePool ( ) ;
Source:
public java.util.List < org.eclipse.jgit.revwalk.FooterLine > commitFooters ( ) throws com.google.gerrit.server.project.NoSuchChangeException , com.google.gwtorm.server.OrmException , java.io.IOException { if ( ( commitFooters ) == null ) { loadCommitData ( ) ; } return commitFooters ; }

Target:
public java.util.List < org.eclipse.jgit.revwalk.FooterLine > commitFooters ( ) throws com.google.gwtorm.server.OrmException , java.io.IOException { if ( ( commitFooters ) == null ) { if ( ! ( loadCommitData ( ) ) ) { return null ; } } return commitFooters ; }
Source:
public static java.lang.String toChange ( final com.google.gerrit.client.reviewdb.Change.Id c ) { return "change," + ( c.get ( ) ) ; }

Target:
public static java.lang.String toChange ( final com.google.gerrit.client.reviewdb.Change.Id c ) { return "change," + ( c.toString ( ) ) ; }
Source:
private java.util.List < com.google.gerrit.common.data.SubmitRecord > ruleError ( 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.defaultRuleError ( ) ; } else { return com.google.gerrit.server.project.SubmitRuleEvaluator.createRuleError ( err ) ; } }

Target:
private java.util.List < com.google.gerrit.common.data.SubmitRecord > ruleError ( java.lang.String err ) { return ruleError ( err , null ) ; }
Source:
public void tearDown ( ) throws java.lang.Exception { walk.release ( ) ; }

Target:
public void tearDown ( ) throws java.lang.Exception { walk.close ( ) ; }
Source:
public void createProjectFooWithGitSuffix ( ) throws java.lang.Exception { java.lang.String name = "foo" ; com.google.common.truth.Truth.assertThat ( name ) . isEqualTo ( gApi.projects ( ) . name ( ( name + ".git" ) ) . create ( ) . get ( ) . name ) ; }

Target:
public void createProjectFooWithGitSuffix ( ) throws java.lang.Exception { java.lang.String name = "foo" ; com.google.common.truth.Truth.assertThat ( name ) . isEqualTo ( gApi.projects ( ) . create ( ( name + ".git" ) ) . get ( ) . name ) ; }
Source:
private PushOneCommit.Result createDraft ( ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , admin.getIdent ( ) ) ; return push.to ( git , "refs/drafts/master" ) ; }

Target:
private PushOneCommit.Result createDraft ( ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , admin.getIdent ( ) , git ) ; return push.to ( "refs/drafts/master" ) ; }
Source:
org.eclipse.jgit.lib.ObjectId getChangeMetaId ( ) { return changeMetaId ; }

Target:
public org.eclipse.jgit.lib.ObjectId getChangeMetaId ( ) { return changeMetaId ; }
Source:
com.google.gerrit.extensions.client.Side getStoredSideFromDisplaySide ( com.google.gerrit.client.diff.DisplaySide side ) { if ( ( ( side == ( DisplaySide.A ) ) && ( base.isBaseOrAutoMerge ( ) ) ) || ( base.isParent ( ) ) ) { return com.google.gerrit.extensions.client.Side.PARENT ; } return com.google.gerrit.extensions.client.Side.REVISION ; }

Target:
com.google.gerrit.extensions.client.Side getStoredSideFromDisplaySide ( com.google.gerrit.client.diff.DisplaySide side ) { if ( ( side == ( DisplaySide.A ) ) && ( ( base.isBaseOrAutoMerge ( ) ) || ( base.isParent ( ) ) ) ) { return com.google.gerrit.extensions.client.Side.PARENT ; } return com.google.gerrit.extensions.client.Side.REVISION ; }
Source:
public com.google.gerrit.server.project.ProjectState getParentState ( ) { if ( isAllProjects ) { return null ; } com.google.gerrit.reviewdb.client.Project.NameKey parentName = getProject ( ) . getParent ( ) ; if ( parentName == null ) { parentName = allProjectsName ; } return projectCache.get ( parentName ) ; }

Target:
public com.google.gerrit.server.project.ProjectState getParentState ( ) { if ( isAllProjects ) { return null ; } return projectCache.get ( getProject ( ) . getParent ( allProjectsName ) ) ; }
Source:
public void tearDown ( ) { plugin.stop ( env ) ; env.onStopPlugin ( plugin ) ; }

Target:
public void tearDown ( ) { if ( ( plugin ) != null ) { plugin.stop ( env ) ; env.onStopPlugin ( plugin ) ; } }
Source:
private void removeAllChildren ( com.google.gwt.user.client.Element el ) { for ( int i = ( com.google.gwt.user.client.DOM.getChildCount ( el ) ) - 1 ; i >= 0 ; i -- ) { com.google.gwt.user.client.DOM.removeChild ( el , com.google.gwt.user.client.DOM.getChild ( el , i ) ) ; } }

Target:
private void removeAllChildren ( com.google.gwt.user.client.Element el ) { for ( int i = ( com.google.gwt.user.client.DOM.getChildCount ( el ) ) - 1 ; i >= 0 ; i -- ) { el.removeChild ( com.google.gwt.user.client.DOM.getChild ( el , i ) ) ; } }
Source:
private static java.lang.String describe ( com.google.gerrit.server.CurrentUser user ) { if ( user.isIdentifiedUser ( ) ) { return user.getAccountId ( ) . toString ( ) ; } return user.toString ( ) ; }

Target:
protected static java.lang.String describe ( com.google.gerrit.server.CurrentUser user ) { if ( user.isIdentifiedUser ( ) ) { return user.getAccountId ( ) . toString ( ) ; } return user.toString ( ) ; }
Source:
public com.google.gerrit.server.notedb.ChangeNotes create ( com.google.gerrit.reviewdb.client.Change change ) { return new com.google.gerrit.server.notedb.ChangeNotes ( repoManager , migration , allUsersProvider , change ) ; }

Target:
public com.google.gerrit.server.notedb.ChangeNotes create ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Change change ) { return new com.google.gerrit.server.notedb.ChangeNotes ( repoManager , migration , allUsersProvider , change ) ; }
Source:
public void updateRepo ( com.google.gerrit.server.update.RepoContext ctx ) throws java.lang.Exception { ctx.addRefUpdate ( new org.eclipse.jgit.transport.ReceiveCommand ( edit.getEditCommit ( ) . copy ( ) , org.eclipse.jgit.lib.ObjectId.zeroId ( ) , edit.getRefName ( ) ) ) ; }

Target:
public void updateRepo ( com.google.gerrit.server.update.RepoContext ctx ) throws java.lang.Exception { ctx.addRefUpdate ( edit.getEditCommit ( ) . copy ( ) , org.eclipse.jgit.lib.ObjectId.zeroId ( ) , edit.getRefName ( ) ) ; }
Source:
void addDep ( com.google.gerrit.server.notedb.rebuild.Event e ) { deps.add ( e ) ; }

Target:
com.google.gerrit.server.notedb.rebuild.Event addDep ( com.google.gerrit.server.notedb.rebuild.Event e ) { deps.add ( e ) ; return this ; }
Source:
public com.google.gerrit.extensions.client.ChangeKind getChangeKind ( @ com.google.gerrit.common.Nullable org.eclipse.jgit.lib.Repository repo , com.google.gerrit.server.query.change.ChangeData cd , com.google.gerrit.reviewdb.client.PatchSet patch ) { return com.google.gerrit.server.change.ChangeKindCacheImpl.getChangeKindInternal ( this , repo , cd , patch ) ; }

Target:
public com.google.gerrit.extensions.client.ChangeKind getChangeKind ( @ com.google.gerrit.common.Nullable org.eclipse.jgit.lib.Repository repo , @ com.google.gerrit.common.Nullable org.eclipse.jgit.revwalk.RevWalk rw , com.google.gerrit.server.query.change.ChangeData cd , com.google.gerrit.reviewdb.client.PatchSet patch ) { return com.google.gerrit.server.change.ChangeKindCacheImpl.getChangeKindInternal ( this , repo , rw , cd , patch ) ; }
Source:
private void assertNoProblems ( com.google.gerrit.server.notedb.ChangeNotes notes , @ com.google.gerrit.common.Nullable com.google.gerrit.extensions.api.changes.FixInput fix ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( checker.check ( controlForNotes ( notes ) , fix ) . problems ( ) ) . isEmpty ( ) ; }

Target:
private void assertNoProblems ( com.google.gerrit.server.notedb.ChangeNotes notes , @ com.google.gerrit.common.Nullable com.google.gerrit.extensions.api.changes.FixInput fix ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( checker.check ( notes , fix ) . problems ( ) ) . isEmpty ( ) ; }
Source:
private short getContext ( ) { final int sel = context.getSelectedIndex ( ) ; if ( 0 <= sel ) { return java.lang.Short.parseShort ( context.getValue ( sel ) ) ; } return getValue ( ) . getContext ( ) ; }

Target:
private int getContext ( ) { final int sel = context.getSelectedIndex ( ) ; if ( 0 <= sel ) { return java.lang.Short.parseShort ( context.getValue ( sel ) ) ; } return getValue ( ) . context ; }
Source:
public boolean canRebase ( ) { return rebaseChange.get ( ) . canRebase ( revision ) ; }

Target:
public boolean canRebase ( ) { return rebaseChange.canRebase ( revision ) ; }
Source:
public boolean canRestore ( ) { return ( canAbandon ( ) ) && ( getRefControl ( ) . canUpload ( ) ) ; }

Target:
public boolean canRestore ( com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException { return ( canAbandon ( db ) ) && ( getRefControl ( ) . canUpload ( ) ) ; }
Source:
public void testParentHashCode ( ) { final int id = 42 ; final com.google.gwtorm.client.IntKeyTestCase.Parent p = new com.google.gwtorm.client.IntKeyTestCase.Parent ( id ) ; assertEquals ( id , p.hashCode ( ) ) ; }

Target:
public void testParentHashCode ( ) { final int id = 42 ; final com.google.gwtorm.client.IntKeyTestCase.Parent p = new com.google.gwtorm.client.IntKeyTestCase.Parent ( id ) ; org.junit.Assert.assertEquals ( id , p.hashCode ( ) ) ; }
Source:
void save ( ) throws java.io.IOException { cfg.save ( ) ; }

Target:
public void save ( ) throws java.io.IOException { cfg.save ( ) ; }
Source:
public final void upsert ( final java.lang.Iterable < E > instances ) throws com.google.gwtorm.client.OrmException { doUpsert ( instances , null ) ; }

Target:
public final void upsert ( final java.lang.Iterable < E > instances ) throws com.google.gwtorm.client.OrmException { doUpsert ( instances ) ; }
Source:
public static boolean isNoSuchAccount ( final java.lang.Throwable caught ) { if ( caught instanceof com.google.gerrit.client.rpc.NoSuchAccountException ) { return true ; } return ( caught instanceof com.google.gwtjsonrpc.client.RemoteJsonException ) && ( caught.getMessage ( ) . startsWith ( NoSuchAccountException.MESSAGE ) ) ; }

Target:
private static boolean isNoSuchAccount ( final java.lang.Throwable caught ) { return ( caught instanceof com.google.gwtjsonrpc.client.RemoteJsonException ) && ( caught.getMessage ( ) . startsWith ( NoSuchAccountException.MESSAGE ) ) ; }
Source:
private java.util.Optional < com.google.gerrit.common.data.GroupReference > loadGroup ( com.google.gerrit.reviewdb.client.AccountGroup.NameKey groupName ) throws java.lang.Exception { return com.google.gerrit.server.group.db.GroupNameNotes.loadOneGroupReference ( repo , groupName.get ( ) ) ; }

Target:
private java.util.Optional < com.google.gerrit.common.data.GroupReference > loadGroup ( com.google.gerrit.reviewdb.client.AccountGroup.NameKey groupName ) throws java.lang.Exception { return com.google.gerrit.server.group.db.GroupNameNotes.loadGroup ( repo , groupName ) ; }
Source:
java.lang.String getRemoteUser ( javax.servlet.http.HttpServletRequest req ) { java.lang.String remoteUser = com.google.gerrit.httpd.RemoteUserUtil.getRemoteUser ( req , loginHeader ) ; return userNameToLowerCase ? remoteUser.toLowerCase ( java.util.Locale.US ) : remoteUser ; }

Target:
java.lang.String getRemoteUser ( javax.servlet.http.HttpServletRequest req ) { java.lang.String remoteUser = com.google.gerrit.httpd.RemoteUserUtil.getRemoteUser ( req , loginHeader ) ; return ( userNameToLowerCase ) && ( remoteUser != null ) ? remoteUser.toLowerCase ( java.util.Locale.US ) : remoteUser ; }
Source:
private void assertProblems ( com.google.gerrit.gpg.testutil.TestKey tk , java.lang.String ... expected ) throws java.lang.Exception { com.google.gerrit.gpg.CheckResult result = new com.google.gerrit.gpg.PublicKeyChecker ( ) . check ( tk.getPublicKey ( ) , store ) ; org.junit.Assert.assertEquals ( java.util.Arrays.asList ( expected ) , result.getProblems ( ) ) ; }

Target:
private void assertProblems ( com.google.gerrit.gpg.testutil.TestKey tk , java.lang.String ... expected ) throws java.lang.Exception { com.google.gerrit.gpg.CheckResult result = new com.google.gerrit.gpg.PublicKeyChecker ( ) . check ( tk.getPublicKey ( ) ) ; org.junit.Assert.assertEquals ( java.util.Arrays.asList ( expected ) , result.getProblems ( ) ) ; }
Source:
public com.google.gerrit.solr.SolrChangeIndex getChangeIndex ( @ com.google.gerrit.server.config.GerritServerConfig org.eclipse.jgit.lib.Config cfg , com.google.gerrit.server.config.SitePaths sitePaths , com.google.gerrit.server.index.IndexCollection indexes , com.google.gerrit.server.index.FieldDef.FillArgs fillArgs ) throws java.io.IOException { return new com.google.gerrit.solr.SolrChangeIndex ( cfg , fillArgs , sitePaths , indexes , com.google.gerrit.server.index.ChangeSchemas.getLatestRelease ( ) ) ; }

Target:
public com.google.gerrit.solr.SolrChangeIndex getChangeIndex ( @ com.google.gerrit.server.config.GerritServerConfig org.eclipse.jgit.lib.Config cfg , com.google.gerrit.server.config.SitePaths sitePaths , com.google.gerrit.server.index.IndexCollection indexes , com.google.gerrit.server.index.FieldDef.FillArgs fillArgs ) throws java.io.IOException { return new com.google.gerrit.solr.SolrChangeIndex ( cfg , fillArgs , sitePaths , indexes , com.google.gerrit.server.index.ChangeSchemas.getLatestRelease ( ) , base ) ; }
Source:
public com.google.gerrit.server.project.ProjectResource parse ( com.google.gerrit.extensions.restapi.TopLevelResource parent , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException , java.io.IOException { com.google.gerrit.server.project.ProjectResource rsrc = _parse ( id.get ( ) ) ; if ( rsrc == null ) { throw new com.google.gerrit.extensions.restapi.ResourceNotFoundException ( id ) ; } return rsrc ; }

Target:
public com.google.gerrit.server.project.ProjectResource parse ( com.google.gerrit.extensions.restapi.TopLevelResource parent , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException , java.io.IOException { com.google.gerrit.server.project.ProjectResource rsrc = _parse ( id.get ( ) , true ) ; if ( rsrc == null ) { throw new com.google.gerrit.extensions.restapi.ResourceNotFoundException ( id ) ; } return rsrc ; }
Source:
public int getCost ( ) { return com.google.gerrit.server.query.change.ChangeCosts.cost ( ChangeCosts.IDS_MEMORY , getCardinality ( ) ) ; }

Target:
public int getCost ( ) { return 0 ; }
Source:
public void listBranchesOfNonVisibleProject_NotFound ( ) throws com.google.gwtorm.server.OrmException , com.jcraft.jsch.JSchException , java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { blockRead ( project , "refs/*" ) ; com.google.gerrit.acceptance.RestSession session = new com.google.gerrit.acceptance.RestSession ( accounts.create ( "user" , "user@example.com" , "User" ) ) ; org.junit.Assert.assertEquals ( HttpStatus.SC_NOT_FOUND , session.get ( ( ( "/projects/" + ( project.get ( ) ) ) + "/branches" ) ) . getStatusCode ( ) ) ; }

Target:
public void listBranchesOfNonVisibleProject_NotFound ( ) throws com.google.gwtorm.server.OrmException , com.jcraft.jsch.JSchException , java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { blockRead ( project , "refs/*" ) ; com.google.gerrit.acceptance.RestSession session = new com.google.gerrit.acceptance.RestSession ( server , accounts.create ( "user" , "user@example.com" , "User" ) ) ; org.junit.Assert.assertEquals ( HttpStatus.SC_NOT_FOUND , session.get ( ( ( "/projects/" + ( project.get ( ) ) ) + "/branches" ) ) . getStatusCode ( ) ) ; }
Source:
public int compare ( com.google.gerrit.common.data.AccessSection a , com.google.gerrit.common.data.AccessSection b ) { return compare ( a.getRefPattern ( ) , b.getRefPattern ( ) ) ; }

Target:
public int compare ( com.google.gerrit.common.data.AccessSection a , com.google.gerrit.common.data.AccessSection b ) { return compare ( a.getName ( ) , b.getName ( ) ) ; }
Source:
public void assertEquals ( java.lang.String str ) { printWriter.flush ( ) ; junit.framework.TestCase.assertEquals ( stringWriter.toString ( ) , str ) ; }

Target:
public void assertEquals ( java.lang.String str ) { printWriter.flush ( ) ; org.junit.Assert.assertEquals ( stringWriter.toString ( ) , str ) ; }
Source:
private boolean isDraftVisible ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.query.change.ChangeData cd ) throws com.google.gwtorm.server.OrmException { return ( ( isOwner ( ) ) || ( isReviewer ( db , cd ) ) ) || ( getRefControl ( ) . canViewDrafts ( ) ) ; }

Target:
public boolean isDraftVisible ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.query.change.ChangeData cd ) throws com.google.gwtorm.server.OrmException { return ( ( isOwner ( ) ) || ( isReviewer ( db , cd ) ) ) || ( getRefControl ( ) . canViewDrafts ( ) ) ; }
Source:
private void allowTagCreation ( com.google.gerrit.acceptance.rest.project.PushTagIT.TagType tagType ) throws java.lang.Exception { grant ( tagType.createPermission , project , "refs/tags/*" , false , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS ) ; }

Target:
private void allowTagCreation ( com.google.gerrit.acceptance.rest.project.PushTagIT.TagType tagType ) throws java.lang.Exception { grant ( project , "refs/tags/*" , tagType.createPermission , false , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS ) ; }
Source:
public void onFailure ( java.lang.Throwable err ) { if ( com.google.gerrit.client.changes.SubmitFailureDialog.isConflict ( err ) ) { new com.google.gerrit.client.changes.SubmitFailureDialog ( err.getMessage ( ) ) . center ( ) ; redisplay ( ) ; } else { super . onFailure ( err ) ; } }

Target:
public void onFailure ( java.lang.Throwable err ) { if ( com.google.gerrit.client.changes.SubmitFailureDialog.isConflict ( err ) ) { new com.google.gerrit.client.changes.SubmitFailureDialog ( err.getMessage ( ) ) . center ( ) ; } else { super . onFailure ( err ) ; } redisplay ( ) ; }
Source:
protected void preDisplay ( final java.util.List < com.google.gerrit.reviewdb.Project > result ) { projectsTab.display ( result ) ; if ( firstPopupLoad ) { firstPopupLoad = false ; displayPopup ( ) ; } }

Target:
public void onSuccess ( final java.util.List < com.google.gerrit.reviewdb.Project > result ) { projectsTab.display ( result ) ; if ( firstPopupLoad ) { firstPopupLoad = false ; displayPopup ( ) ; } }
Source:
private void deactivate ( ) { if ( ( activePatchSetId ) != ( - 1 ) ) { com.google.gerrit.client.changes.PatchSetComplexDisclosurePanel patchSetPanel = patchSetPanels.get ( activePatchSetId ) ; patchSetPanel.setActive ( false ) ; activePatchSetId = - 1 ; } }

Target:
private void deactivate ( ) { if ( ( activePatchSetId ) != null ) { com.google.gerrit.client.changes.PatchSetComplexDisclosurePanel patchSetPanel = patchSetPanels.get ( activePatchSetId ) ; patchSetPanel.setActive ( false ) ; activePatchSetId = null ; } }
Source:
public void updateChange ( com.google.gerrit.server.git.BatchUpdate.ChangeContext ctx ) throws java.lang.Exception { ctx.getUpdate ( ps.getId ( ) ) . setTopic ( magicBranch.topic ) ; }

Target:
public void updateChange ( com.google.gerrit.server.git.BatchUpdate.ChangeContext ctx ) throws java.lang.Exception { ctx.getUpdate ( psId ) . setTopic ( magicBranch.topic ) ; }
Source:
private static java.lang.String describe ( com.google.gerrit.server.CurrentUser user ) { if ( user.isIdentifiedUser ( ) ) { return ( ( com.google.gerrit.server.IdentifiedUser ) ( user ) ) . getAccountId ( ) . toString ( ) ; } return user.toString ( ) ; }

Target:
private static java.lang.String describe ( com.google.gerrit.server.CurrentUser user ) { if ( user.isIdentifiedUser ( ) ) { return user.getAccountId ( ) . toString ( ) ; } return user.toString ( ) ; }
Source:
public com.google.gerrit.server.change.PatchSetInserter setCheckAddPatchSetPermission ( boolean checkAddPatchSetPermission ) { BRANCH ( 43.0F ) ; }

Target:
public com.google.gerrit.server.change.PatchSetInserter setCheckAddPatchSetPermission ( boolean checkAddPatchSetPermission ) { this . checkAddPatchSetPermission = checkAddPatchSetPermission ; return this ; }
Source:
private com.google.gerrit.extensions.api.changes.NotifyHandling defaultNotify ( com.google.gerrit.server.project.ChangeControl control ) { return control.getChange ( ) . hasReviewStarted ( ) ? com.google.gerrit.extensions.api.changes.NotifyHandling.ALL : com.google.gerrit.extensions.api.changes.NotifyHandling.OWNER ; }

Target:
private com.google.gerrit.extensions.api.changes.NotifyHandling defaultNotify ( com.google.gerrit.reviewdb.client.Change change ) { return change.hasReviewStarted ( ) ? com.google.gerrit.extensions.api.changes.NotifyHandling.ALL : com.google.gerrit.extensions.api.changes.NotifyHandling.OWNER ; }
Source:
public com.google.gerrit.pgm.init.LibraryDownloader get ( ) { return new com.google.gerrit.pgm.init.LibraryDownloader ( reload , ui , site ) ; }

Target:
public com.google.gerrit.pgm.init.LibraryDownloader get ( ) { return new com.google.gerrit.pgm.init.LibraryDownloader ( ui , site ) ; }
Source:
public void cleanup ( ) { org.joda.time.DateTimeUtils.setCurrentMillisSystem ( ) ; db.close ( ) ; }

Target:
public void cleanup ( ) { db.close ( ) ; }
Source:
private static void validateDiffMode ( com.googlesource.gerrit.plugins.xdocs.XDocServlet.ResourceKey key , com.googlesource.gerrit.plugins.xdocs.formatter.Formatters.FormatterProvider formatter , eu.medsea.mimeutil.MimeType mimeType ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { if ( ( ( key.diffMode ) != ( DiffMode.NO_DIFF ) ) && ( ( key.revisionB ) == null ) ) { throw new com.google.gerrit.extensions.restapi.ResourceNotFoundException ( ) ; } }

Target:
private static void validateDiffMode ( com.googlesource.gerrit.plugins.xdocs.XDocServlet.ResourceKey key ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { if ( ( ( key.diffMode ) != ( DiffMode.NO_DIFF ) ) && ( ( key.revisionB ) == null ) ) { throw new com.google.gerrit.extensions.restapi.ResourceNotFoundException ( ) ; } }
Source:
public void setUp ( ) throws java.lang.Exception { repo = new org.eclipse.jgit.junit.TestRepository < org.eclipse.jgit.internal.storage.dfs.DfsRepository > ( new org.eclipse.jgit.internal.storage.dfs.InMemoryRepository ( new org.eclipse.jgit.internal.storage.dfs.DfsRepositoryDescription ( "test" ) ) ) ; servlet = com.google.gitiles.TestGitilesServlet.create ( repo ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { repo = new org.eclipse.jgit.junit.TestRepository ( new org.eclipse.jgit.internal.storage.dfs.InMemoryRepository ( new org.eclipse.jgit.internal.storage.dfs.DfsRepositoryDescription ( "test" ) ) ) ; servlet = com.google.gitiles.TestGitilesServlet.create ( repo ) ; }
Source:
java.lang.Runnable toggleOpenBox ( final net.codemirror.lib.CodeMirror cm ) { return new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { com.google.gerrit.client.diff.CommentGroup group = getCommentGroupOnActiveLine ( cm ) ; if ( group != null ) { group.openCloseLast ( ) ; } } } ; }

Target:
java.lang.Runnable toggleOpenBox ( net.codemirror.lib.CodeMirror cm ) { return ( ) -> { com.google.gerrit.client.diff.CommentGroup group = getCommentGroupOnActiveLine ( cm ) ; if ( group != null ) { group.openCloseLast ( ) ; } } ; }
Source:
public void doRefUpdatedHook ( final com.google.gerrit.reviewdb.client.Branch.NameKey refName , final org.eclipse.jgit.lib.RefUpdate refUpdate , final com.google.gerrit.reviewdb.client.Account account ) { doRefUpdatedHook ( refName , refUpdate.getOldObjectId ( ) , refUpdate.getNewObjectId ( ) , account ) ; }

Target:
public void doRefUpdatedHook ( com.google.gerrit.reviewdb.client.Branch.NameKey refName , org.eclipse.jgit.lib.RefUpdate refUpdate , com.google.gerrit.reviewdb.client.Account account ) { doRefUpdatedHook ( refName , refUpdate.getOldObjectId ( ) , refUpdate.getNewObjectId ( ) , account ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { cm.setCursor ( net.codemirror.lib.LineCharacter.create ( line ) ) ; cm.scrollToY ( java.lang.Math.max ( 0 , ( height - ( 0.5 * scrollbarHeight ) ) ) ) ; cm.focus ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { cm.setCursor ( net.codemirror.lib.LineCharacter.create ( line ) ) ; cm.scrollToY ( ( height - ( 0.5 * scrollbarHeight ) ) ) ; cm.focus ( ) ; }
Source:
public java.util.List < java.lang.String > currentFilePaths ( ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.reviewdb.client.PatchSet ps = currentPatchSet ( ) ; if ( ps == null ) { return null ; } return filePaths ( currentPatchSet ) ; }

Target:
public java.util.List < java.lang.String > currentFilePaths ( ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.reviewdb.client.PatchSet ps = currentPatchSet ( ) ; return ps != null ? filePaths ( ps ) : null ; }
Source:
public void close ( ) throws java.io.IOException { rw.close ( ) ; repo.close ( ) ; }

Target:
public void close ( ) throws java.io.IOException { repo.close ( ) ; }
Source:
public void printJson ( final java.lang.StringBuffer sb , final java.lang.String o ) { sb.append ( escapeString ( o ) ) ; }

Target:
public void printJson ( final java.lang.StringBuilder sb , final java.lang.String o ) { sb.append ( escapeString ( o ) ) ; }
Source:
public java.lang.String render ( java.lang.Integer object ) { if ( 0 <= object ) { return "+" + object ; } else { return java.lang.String.valueOf ( object ) ; } }

Target:
public java.lang.String render ( java.lang.Integer object ) { if ( 0 <= object ) { return "+" + object ; } return java.lang.String.valueOf ( object ) ; }
Source:
public static void updateDraft ( com.google.gerrit.reviewdb.client.PatchSet.Id id , java.lang.String draftId , com.google.gerrit.client.changes.CommentInfo content , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.changes.CommentInfo > cb ) { com.google.gerrit.client.changes.CommentApi.revision ( id , "drafts" ) . id ( draftId ) . put ( content , cb ) ; }

Target:
public static void updateDraft ( @ com.google.gerrit.common.Nullable java.lang.String project , com.google.gerrit.reviewdb.client.PatchSet.Id id , java.lang.String draftId , com.google.gerrit.client.changes.CommentInfo content , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.changes.CommentInfo > cb ) { com.google.gerrit.client.changes.CommentApi.revision ( project , id , "drafts" ) . id ( draftId ) . put ( content , cb ) ; }
Source:
void onLogout ( ) { async.append ( log ( "LOGOUT" ) ) ; audit ( context.get ( ) , "0" , "LOGOUT" , new java.lang.String [ ] { } ) ; }

Target:
void onLogout ( ) { async.append ( log ( "LOGOUT" ) ) ; audit ( context.get ( ) , "0" , "LOGOUT" ) ; }
Source:
protected java.lang.Object createServiceHandle ( ) throws java.lang.Exception { return new com.google.gerrit.client.ui.SuggestServiceImpl ( com.google.gerrit.server.GerritServer.getInstance ( ) . getDatabase ( ) ) ; }

Target:
protected java.lang.Object createServiceHandle ( ) throws java.lang.Exception { return new com.google.gerrit.client.ui.SuggestServiceImpl ( ) ; }
Source:
public java.util.List < com.google.gerrit.common.data.GroupReference > run ( final com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException { return suggestAccountGroup ( db , query , limit ) ; }

Target:
public java.util.List < com.google.gerrit.common.data.GroupReference > run ( final com.google.gerrit.reviewdb.server.ReviewDb db ) { return suggestAccountGroup ( query , limit ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { com.google.gerrit.acceptance.TestAccount admin = accounts.create ( "admin" , "Administrators" ) ; session = new com.google.gerrit.acceptance.RestSession ( admin ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { com.google.gerrit.acceptance.TestAccount admin = accounts.create ( "admin" , "Administrators" ) ; session = new com.google.gerrit.acceptance.RestSession ( server , admin ) ; }
Source:
protected com.google.gerrit.server.IdentifiedUser user ( com.google.gerrit.acceptance.TestAccount testAccount ) { return identifiedUserFactory.create ( com.google.inject.util.Providers.of ( db ) , testAccount.getId ( ) ) ; }

Target:
protected com.google.gerrit.server.IdentifiedUser user ( com.google.gerrit.acceptance.TestAccount testAccount ) { return identifiedUserFactory.create ( testAccount.getId ( ) ) ; }
Source:
public void listChildrenOfNonExistingProject_NotFound ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( HttpStatus.SC_NOT_FOUND , GET ( "/projects/non-existing/children/" ) . getStatusCode ( ) ) ; }

Target:
public void listChildrenOfNonExistingProject_NotFound ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( GET ( "/projects/non-existing/children/" ) . getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_NOT_FOUND ) ; }
Source:
public com.google.gerrit.server.notedb.ChangeNotes createForNew ( com.google.gerrit.reviewdb.client.Change change ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.server.notedb.ChangeNotes ( args , change.getProject ( ) , change ) . load ( ) ; }

Target:
public com.google.gerrit.server.notedb.ChangeNotes createForNew ( com.google.gerrit.reviewdb.client.Change change ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.server.notedb.ChangeNotes ( args , change ) . load ( ) ; }
Source:
com.google.gerrit.server.query.change.ChangeData convert ( com.google.gerrit.reviewdb.client.PatchSetApproval t ) { return new com.google.gerrit.server.query.change.ChangeData ( t.getPatchSetId ( ) . getParentKey ( ) ) ; }

Target:
com.google.gerrit.server.query.change.ChangeData convert ( com.google.gerrit.reviewdb.client.PatchSet t ) { return factory.create ( db.get ( ) , t.getId ( ) . getParentKey ( ) ) ; }
Source:
private boolean canCreateCommit ( com.google.gerrit.reviewdb.server.ReviewDb db , org.eclipse.jgit.lib.Repository repo , org.eclipse.jgit.revwalk.RevCommit commit ) { if ( canUpdate ( ) ) { return true ; } else if ( isMergedIntoBranchOrTag ( db , repo , commit ) ) { return true ; } return false ; }

Target:
private boolean canCreateCommit ( org.eclipse.jgit.lib.Repository repo , org.eclipse.jgit.revwalk.RevCommit commit ) { if ( canUpdate ( ) ) { return true ; } else if ( isMergedIntoBranchOrTag ( repo , commit ) ) { return true ; } return false ; }
Source:
public void review ( com.google.gerrit.extensions.api.changes.ReviewInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { review.get ( ) . apply ( revision , in ) ; } catch ( com.google.gwtorm.server.OrmException | com.google.gerrit.server.git.UpdateException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot post review" , e ) ; } }

Target:
public void review ( com.google.gerrit.extensions.api.changes.ReviewInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { review.apply ( revision , in ) ; } catch ( com.google.gwtorm.server.OrmException | com.google.gerrit.server.git.UpdateException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot post review" , e ) ; } }
Source:
protected static boolean isNoSuchEntity ( final java.lang.Throwable caught ) { if ( caught instanceof com.google.gerrit.client.rpc.NoSuchEntityException ) { return true ; } return ( caught instanceof com.google.gwtjsonrpc.client.RemoteJsonException ) && ( caught.getMessage ( ) . equals ( NoSuchEntityException.MESSAGE ) ) ; }

Target:
public static boolean isNoSuchEntity ( final java.lang.Throwable caught ) { if ( caught instanceof com.google.gerrit.client.rpc.NoSuchEntityException ) { return true ; } return ( caught instanceof com.google.gwtjsonrpc.client.RemoteJsonException ) && ( caught.getMessage ( ) . equals ( NoSuchEntityException.MESSAGE ) ) ; }
Source:
private org.eclipse.jetty.util.thread.ThreadPool threadPool ( org.eclipse.jgit.lib.Config cfg ) { org.eclipse.jetty.util.thread.QueuedThreadPool pool = new org.eclipse.jetty.util.thread.QueuedThreadPool ( ) ; pool.setName ( "HTTP" ) ; pool.setMinThreads ( 2 ) ; pool.setMaxThreads ( 10 ) ; pool.setMaxQueued ( 50 ) ; return pool ; }

Target:
private org.eclipse.jetty.util.thread.ThreadPool threadPool ( ) { org.eclipse.jetty.util.thread.QueuedThreadPool pool = new org.eclipse.jetty.util.thread.QueuedThreadPool ( ) ; pool.setName ( "HTTP" ) ; pool.setMinThreads ( 2 ) ; pool.setMaxThreads ( 10 ) ; pool.setMaxQueued ( 50 ) ; return pool ; }
Source:
protected com.google.gerrit.server.change.ChangeInserter newChangeWithTopic ( org.eclipse.jgit.junit.TestRepository < com.google.gerrit.testutil.InMemoryRepositoryManager.Repo > repo , java.lang.String topic ) throws java.lang.Exception { return newChange ( repo , null , null , null , null , topic ) ; }

Target:
protected com.google.gerrit.server.change.ChangeInserter newChangeWithTopic ( org.eclipse.jgit.junit.TestRepository < com.google.gerrit.testutil.InMemoryRepositoryManager.Repo > repo , java.lang.String topic ) throws java.lang.Exception { return newChange ( repo , null , null , null , topic ) ; }
Source:
public void setUp ( ) { listenerMock = createMock ( com.google.gerrit.common.EventListener.class ) ; com.google.gerrit.extensions.registration.DynamicSet < com.google.gerrit.common.EventListener > listeners = com.google.gerrit.extensions.registration.DynamicSet.emptySet ( ) ; listeners.add ( listenerMock ) ; broker = new com.ericsson.gerrit.plugins.syncevents.SyncEventBroker ( null , listeners , null , null ) ; }

Target:
public void setUp ( ) { listenerMock = createMock ( com.google.gerrit.common.EventListener.class ) ; com.google.gerrit.extensions.registration.DynamicSet < com.google.gerrit.common.EventListener > listeners = com.google.gerrit.extensions.registration.DynamicSet.emptySet ( ) ; listeners.add ( listenerMock ) ; broker = new com.ericsson.gerrit.plugins.syncevents.SyncEventBroker ( null , listeners , null , null , null ) ; }
Source:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > byCommit ( org.eclipse.jgit.lib.ObjectId id ) throws com.google.gwtorm.server.OrmException { return query ( com.google.gerrit.server.query.change.InternalChangeQuery.commit ( com.google.gerrit.server.query.change.InternalChangeQuery.schema ( indexes ) , id.name ( ) ) ) ; }

Target:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > byCommit ( org.eclipse.jgit.lib.ObjectId id ) throws com.google.gwtorm.server.OrmException { return byCommit ( id.name ( ) ) ; }
Source:
private com.google.gerrit.server.git.MetaDataUpdate newMetaDataUpdate ( ) { com.google.gerrit.server.git.MetaDataUpdate u = new com.google.gerrit.server.git.MetaDataUpdate ( com.google.gerrit.server.extensions.events.GitReferenceUpdated.DISABLED , project , repo , null ) ; org.eclipse.jgit.lib.PersonIdent author = new org.eclipse.jgit.lib.PersonIdent ( "J. Author" , "author@example.com" , com.google.gerrit.common.TimeUtil.nowTs ( ) , com.google.gerrit.server.git.VersionedMetaDataTest.TZ ) ; u.getCommitBuilder ( ) . setAuthor ( author ) ; u.getCommitBuilder ( ) . setCommitter ( new org.eclipse.jgit.lib.PersonIdent ( "M. Committer" , "committer@example.com" , author.getWhen ( ) , author.getTimeZone ( ) ) ) ; return u ; }

Target:
private com.google.gerrit.server.git.MetaDataUpdate newMetaDataUpdate ( ) { return newMetaDataUpdate ( null ) ; }
Source:
public com.google.gwtorm.server.ResultSet < com.google.gerrit.reviewdb.client.PatchLineComment > answer ( ) throws java.lang.Throwable { return new com.google.gwtorm.server.ListResultSet < com.google.gerrit.reviewdb.client.PatchLineComment > ( com.google.common.collect.Lists.newArrayList ( comments ) ) ; }

Target:
public com.google.gwtorm.server.ResultSet < com.google.gerrit.reviewdb.client.PatchLineComment > answer ( ) throws java.lang.Throwable { return new com.google.gwtorm.server.ListResultSet ( com.google.common.collect.Lists.newArrayList ( comments ) ) ; }
Source:
private static void execute ( org.eclipse.jgit.lib.BatchRefUpdate bru , org.eclipse.jgit.lib.Repository repo ) throws java.io.IOException { org.eclipse.jgit.revwalk.RevWalk rw = new org.eclipse.jgit.revwalk.RevWalk ( repo ) ; try { bru.execute ( rw , NullProgressMonitor.INSTANCE ) ; } finally { rw.release ( ) ; } }

Target:
private static void execute ( org.eclipse.jgit.lib.BatchRefUpdate bru , org.eclipse.jgit.lib.Repository repo ) throws java.io.IOException { try ( org.eclipse.jgit.revwalk.RevWalk rw = new org.eclipse.jgit.revwalk.RevWalk ( repo ) ) { bru.execute ( rw , NullProgressMonitor.INSTANCE ) ; } }
Source:
public void onTimeout ( org.eclipse.jetty.continuation.Continuation self ) { com.google.gerrit.server.git.WorkQueue.Executor executor = getExecutor ( ) ; executor.remove ( this ) ; }

Target:
public void onTimeout ( org.eclipse.jetty.continuation.Continuation self ) { executor.remove ( this ) ; }
Source:
java.lang.String getToken ( ) { return isSignedIn ( ) ? key.token : null ; }

Target:
java.lang.String getToken ( ) { return isSignedIn ( ) ? key.getToken ( ) : null ; }
Source:
private void blockForcePush ( ) throws java.lang.Exception { block ( Permission.PUSH , com.google.gerrit.server.group.SystemGroupBackend.ANONYMOUS_USERS , "refs/tags/*" ) . setForce ( true ) ; }

Target:
private void blockForcePush ( ) throws java.lang.Exception { block ( "refs/tags/*" , Permission.PUSH , com.google.gerrit.server.group.SystemGroupBackend.ANONYMOUS_USERS ) . setForce ( true ) ; }
Source:
public java.util.concurrent.Callable < java.lang.Void > indexTask ( com.google.gerrit.server.query.change.ChangeData cd ) { return new com.google.gerrit.server.index.ChangeIndexerImpl.Task ( cd ) ; }

Target:
public java.util.concurrent.Callable < java.lang.Void > indexTask ( com.google.gerrit.server.query.change.ChangeData cd ) { return new com.google.gerrit.server.index.ChangeIndexerImpl.Task ( cd , false ) ; }
Source:
public java.util.List < com.google.gerrit.reviewdb.client.PatchSetApproval > approvals ( com.google.inject.Provider < com.google.gerrit.reviewdb.server.ReviewDb > db ) throws com.google.gwtorm.server.OrmException { return com.google.common.collect.ImmutableList.copyOf ( approvalsMap ( db ) . values ( ) ) ; }

Target:
public java.util.List < com.google.gerrit.reviewdb.client.PatchSetApproval > approvals ( ) throws com.google.gwtorm.server.OrmException { return com.google.common.collect.ImmutableList.copyOf ( approvalsMap ( ) . values ( ) ) ; }
Source:
private void upsertDraftComment ( com.google.gerrit.reviewdb.client.PatchLineComment c ) { createDraftUpdateIfNull ( c ) ; draftUpdate.upsertComment ( c ) ; }

Target:
private void upsertDraftComment ( com.google.gerrit.reviewdb.client.PatchLineComment c ) { createDraftUpdateIfNull ( ) ; draftUpdate.upsertComment ( c ) ; }
Source:
public com.google.gerrit.reviewdb.Project.SubmitType getSubmitType ( ) { return com.google.gerrit.reviewdb.Project.SubmitType.forCode ( submitType ) ; }

Target:
public com.google.gerrit.reviewdb.Project.SubmitType getSubmitType ( ) { return submitType ; }
Source:
protected void onLoad ( ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { org.eclipse.jgit.lib.Config cfg = readConfig ( com.google.gerrit.server.account.WatchConfig.WATCH_CONFIG ) ; projectWatches = com.google.gerrit.server.account.WatchConfig.parse ( accountId , cfg ) ; }

Target:
protected void onLoad ( ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { org.eclipse.jgit.lib.Config cfg = readConfig ( com.google.gerrit.server.account.WatchConfig.WATCH_CONFIG ) ; projectWatches = com.google.gerrit.server.account.WatchConfig.parse ( accountId , cfg , this ) ; }
Source:
public void onRpcStart ( final com.google.gwtjsonrpc.client.event.RpcStartEvent event ) { if ( ( ++ ( activeCalls ) ) == 1 ) { if ( ( com.google.gerrit.client.RpcStatus.hideDepth ) == 0 ) { loading.setVisible ( true ) ; } } }

Target:
public void onRpcStart ( ) { if ( ( ++ ( activeCalls ) ) == 1 ) { if ( ( com.google.gerrit.client.RpcStatus.hideDepth ) == 0 ) { loading.setVisible ( true ) ; } } }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { rights.showInherited ( showInherited.isChecked ( ) ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { rights.showInherited ( showInherited.getValue ( ) ) ; }
Source:
public void merge ( final com.google.gerrit.client.reviewdb.Branch.NameKey branch ) { if ( start ( branch ) ) { try { mergeImpl ( branch ) ; } finally { finish ( branch ) ; } } }

Target:
public void merge ( final com.google.gerrit.client.reviewdb.Branch.NameKey branch ) { if ( start ( branch ) ) { mergeImpl ( branch ) ; } }
Source:
public static void getDefault ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.dashboards.DashboardInfo > callback ) { new com.google.gerrit.client.rpc.RestApi ( ( ( com.google.gerrit.client.dashboards.DashboardList.base ( project ) ) + "default" ) ) . addParameterTrue ( "inherited" ) . get ( callback ) ; }

Target:
public static void getDefault ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.dashboards.DashboardInfo > callback ) { com.google.gerrit.client.dashboards.DashboardList.base ( project ) . view ( "default" ) . addParameterTrue ( "inherited" ) . get ( callback ) ; }
Source:
public java.util.Collection < com.google.gerrit.server.index.ChangeIndex > getWriteIndexes ( ) { return java.util.Collections.unmodifiableCollection ( writeIndexes.values ( ) ) ; }

Target:
public java.util.Collection < com.google.gerrit.server.index.ChangeIndex > getWriteIndexes ( ) { return java.util.Collections.unmodifiableCollection ( writeIndexes ) ; }