auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public com.google.gerrit.server.group.GetGroup.GroupInfo apply ( final com.google.gerrit.server.group.IncludedGroupResource resource ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.extensions.restapi.BadRequestException , com.google.gerrit.extensions.restapi.ResourceConflictException , java.lang.Exception { return com.google.gerrit.server.group.GetGroup.parse ( resource.getControl ( ) . getGroup ( ) ) ; }

Target:
public com.google.gerrit.server.group.GetGroup.GroupInfo apply ( com.google.gerrit.server.group.IncludedGroupResource rsrc ) { return new com.google.gerrit.server.group.GetGroup.GroupInfo ( rsrc.getGroup ( ) ) ; }
Source:
public void mergeReview ( com.google.gerrit.extensions.common.ChangeInfo info ) throws java.lang.Exception { final com.google.gerrit.extensions.api.changes.SubmitInput input = new com.google.gerrit.extensions.api.changes.SubmitInput ( ) ; input.waitForMerge = true ; final com.google.gerrit.server.change.RevisionResource r = getRevisionResource ( info.project , info._number ) ; submitter.apply ( r , input ) ; }

Target:
public void mergeReview ( com.google.gerrit.extensions.common.ChangeInfo info ) throws java.lang.Exception { submitter.apply ( getRevisionResource ( info.project , info._number ) , new com.google.gerrit.extensions.api.changes.SubmitInput ( ) ) ; }
Source:
public void testExclamationMark ( ) { com.google.gerrit.common.data.GitWebType gitWebType = com.google.gerrit.common.data.GitWebType.fromName ( null ) ; gitWebType.setPathSeparator ( '!' ) ; assertEquals ( "a!b" , gitWebType.replacePathSeparator ( "a/b" ) ) ; }

Target:
public void testExclamationMark ( ) { com.google.gerrit.common.data.GitWebType gitWebType = com.google.gerrit.common.data.GitWebType.fromName ( null ) ; gitWebType.setPathSeparator ( '!' ) ; org.junit.Assert.assertEquals ( "a!b" , gitWebType.replacePathSeparator ( "a/b" ) ) ; }
Source:
private void fireEventForUnrestrictedListeners ( com.google.gerrit.server.events.Event event ) { for ( com.google.gerrit.common.EventListener listener : unrestrictedListeners ) { listener.onEvent ( event ) ; } }

Target:
protected void fireEventForUnrestrictedListeners ( com.google.gerrit.server.events.Event event ) { for ( com.google.gerrit.common.EventListener listener : unrestrictedListeners ) { listener.onEvent ( event ) ; } }
Source:
public void onSuccess ( com.google.gwt.core.client.JavaScriptObject result ) { if ( screen.isCurrentView ( ) ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( screen.getChangeId ( ) ) ) ; } }

Target:
public void onSuccess ( com.google.gwt.core.client.JavaScriptObject result ) { if ( screen.isCurrentView ( ) ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( changeId ) ) ; } }
Source:
private void doList ( ) throws com.google.gerrit.server.ssh.Failure { for ( final java.lang.String name : cacheNames ( ) ) { p.print ( name ) ; p.print ( '\n' ) ; } p.flush ( ) ; }

Target:
private void doList ( ) { for ( final java.lang.String name : cacheNames ( ) ) { p.print ( name ) ; p.print ( '\n' ) ; } p.flush ( ) ; }
Source:
public static com.google.gerrit.index.query.Predicate < com.google.gerrit.server.account.AccountState > cansee ( com.google.gerrit.server.query.account.AccountQueryBuilder.Arguments args , com.google.gerrit.server.notedb.ChangeNotes changeNotes ) { return new com.google.gerrit.server.query.account.CanSeeChangePredicate ( args.db , args.permissionBackend , args.userFactory , changeNotes ) ; }

Target:
public static com.google.gerrit.index.query.Predicate < com.google.gerrit.server.account.AccountState > cansee ( com.google.gerrit.server.query.account.AccountQueryBuilder.Arguments args , com.google.gerrit.server.notedb.ChangeNotes changeNotes ) { return new com.google.gerrit.server.query.account.CanSeeChangePredicate ( args.db , args.permissionBackend , changeNotes ) ; }
Source:
public void configure ( ) { install ( new com.google.gerrit.server.config.FactoryModule ( ) { @ java.lang.Override public void configure ( ) { factory ( OnlineReindexer.Factory.class ) ; } } ) ; listener ( ) . to ( com.google.gerrit.lucene.LuceneVersionManager.class ) ; }

Target:
public void configure ( ) { factory ( OnlineReindexer.Factory.class ) ; listener ( ) . to ( com.google.gerrit.lucene.LuceneVersionManager.class ) ; }
Source:
private com.google.gerrit.server.account.AccountState toAccountState ( org.apache.lucene.document.Document doc ) { com.google.gerrit.reviewdb.client.Account.Id id = new com.google.gerrit.reviewdb.client.Account.Id ( doc.getField ( com.google.gerrit.server.index.account.AccountField.ID.getName ( ) ) . numericValue ( ) . intValue ( ) ) ; return accountCache.get ( id ) ; }

Target:
private com.google.gerrit.server.account.AccountState toAccountState ( org.apache.lucene.document.Document doc ) { com.google.gerrit.reviewdb.client.Account.Id id = new com.google.gerrit.reviewdb.client.Account.Id ( doc.getField ( com.google.gerrit.server.index.account.AccountField.ID.getName ( ) ) . numericValue ( ) . intValue ( ) ) ; return accountCache.get ( ) . get ( id ) ; }
Source:
protected java.lang.String getQueryPattern ( final java.lang.String query ) { return ( "(" + ( com.google.gwtexpui.safehtml.client.HighlightSuggestOracle.escape ( query ) ) ) + ")" ; }

Target:
protected java.lang.String getQueryPattern ( final java.lang.String query ) { return query ; }
Source:
public static com.google.gitiles.BaseServlet notFoundServlet ( ) { return new com.google.gitiles.BaseServlet ( null ) { private static final long serialVersionUID = 1L ; @ java.lang.Override public void service ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res ) { res.setStatus ( javax.servlet.http.HttpServletResponse.SC_NOT_FOUND ) ; } } ; }

Target:
public static com.google.gitiles.BaseServlet notFoundServlet ( ) { return new com.google.gitiles.BaseServlet ( null , null ) { private static final long serialVersionUID = 1L ; @ java.lang.Override public void service ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res ) { res.setStatus ( javax.servlet.http.HttpServletResponse.SC_NOT_FOUND ) ; } } ; }
Source:
private com.google.gerrit.client.change.RelatedChangesTab getTab ( ) { if ( ( conflictingChangesTab ) == null ) { conflictingChangesTab = createTab ( Resources.C.conflictingChanges ( ) , Resources.C.conflictingChangesTooltip ( ) ) ; conflictingChangesTab.registerKeys ( ) ; } return conflictingChangesTab ; }

Target:
private com.google.gerrit.client.change.RelatedChangesTab getTab ( ) { if ( ( conflictingChangesTab ) == null ) { conflictingChangesTab = createTab ( Resources.C.conflictingChanges ( ) , Resources.C.conflictingChangesTooltip ( ) ) ; } return conflictingChangesTab ; }
Source:
public final native int patch_set ( ) ;

Target:
public final native int patchSet ( ) ;
Source:
protected java.lang.String getRefName ( ) { return com.google.gerrit.server.notedb.ChangeNoteUtil.changeRefName ( getChange ( ) . getId ( ) ) ; }

Target:
protected java.lang.String getRefName ( ) { return com.google.gerrit.server.notedb.ChangeNoteUtil.changeRefName ( ctl.getId ( ) ) ; }
Source:
public void testOpenSchema ( ) throws java.lang.Exception { final com.google.gwtorm.data.PhoneBookDb schema1 = open ( ) ; assertNotNull ( schema1 ) ; final com.google.gwtorm.data.PhoneBookDb schema2 = open ( ) ; assertNotNull ( schema2 ) ; assertNotSame ( schema1 , schema2 ) ; }

Target:
public void testOpenSchema ( ) throws java.lang.Exception { final com.google.gwtorm.data.PhoneBookDb schema1 = open ( ) ; org.junit.Assert.assertNotNull ( schema1 ) ; final com.google.gwtorm.data.PhoneBookDb schema2 = open ( ) ; org.junit.Assert.assertNotNull ( schema2 ) ; org.junit.Assert.assertNotSame ( schema1 , schema2 ) ; }
Source:
public void setFullName ( final java.lang.String name ) { fullName = ( name != null ) ? name.trim ( ) : null ; }

Target:
public void setFullName ( final java.lang.String name ) { if ( ( name != null ) && ( ! ( name.trim ( ) . isEmpty ( ) ) ) ) { fullName = name.trim ( ) ; } else { fullName = null ; } }
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 a , java.util.Collection < com.google.gerrit.reviewdb.client.PatchSet > ps ) { addPatchSets ( a , ps , null , false , null ) ; }
Source:
public void messagesNotReturnedByDefault ( ) throws com.google.gerrit.extensions.restapi.RestApiException , java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { java.lang.String changeId = createChange ( ) ; postMessage ( changeId , "Some nits need to be fixed." ) ; com.google.gerrit.extensions.common.ChangeInfo c = getChange ( ( "p~master~" + changeId ) ) ; org.junit.Assert.assertNull ( c.messages ) ; }

Target:
public void messagesNotReturnedByDefault ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; postMessage ( changeId , "Some nits need to be fixed." ) ; com.google.gerrit.extensions.common.ChangeInfo c = info ( changeId ) ; org.junit.Assert.assertNull ( c.messages ) ; }
Source:
public com.google.gerrit.server.notedb.ChangeNotes notes ( ) throws com.google.gwtorm.server.OrmException { if ( ( notes ) == null ) { notes = notesFactory.create ( db , project , legacyId ) ; } return notes ; }

Target:
public com.google.gerrit.server.notedb.ChangeNotes notes ( ) throws com.google.gwtorm.server.OrmException { if ( ( notes ) == null ) { notes = notesFactory.create ( db , project ( ) , legacyId ) ; } return notes ; }
Source:
private java.util.List < com.google.gerrit.server.query.change.ChangeData > query ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p ) throws com.google.gwtorm.server.OrmException { try { return qp.queryChanges ( p ) . changes ( ) ; } catch ( com.google.gerrit.server.query.QueryParseException e ) { throw new com.google.gwtorm.server.OrmException ( e ) ; } }

Target:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > query ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p ) throws com.google.gwtorm.server.OrmException { try { return qp.queryChanges ( p ) . changes ( ) ; } catch ( com.google.gerrit.server.query.QueryParseException e ) { throw new com.google.gwtorm.server.OrmException ( e ) ; } }
Source:
public java.util.Optional < com.google.gerrit.server.account.AccountState > load ( com.google.gerrit.reviewdb.client.Account.Id who ) throws java.lang.Exception { return java.util.Optional.ofNullable ( accounts.get ( who ) ) ; }

Target:
public java.util.Optional < com.google.gerrit.server.account.AccountState > load ( com.google.gerrit.reviewdb.client.Account.Id who ) throws java.lang.Exception { return accounts.get ( who ) ; }
Source:
protected void onCellSingleClick ( int row , int column ) { if ( ( column == 1 ) || ( column == 4 ) ) { onCellDoubleClick ( row , column ) ; } }

Target:
protected void onCellSingleClick ( int row , int column ) { super . onCellSingleClick ( row , column ) ; if ( ( column == 1 ) || ( column == 4 ) ) { onCellDoubleClick ( row , column ) ; } }
Source:
protected void configure ( ) { bind ( com.google.gerrit.httpd.GerritOptions.class ) . toInstance ( new com.google.gerrit.httpd.GerritOptions ( config , false , false ) ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.httpd.GerritOptions.class ) . toInstance ( new com.google.gerrit.httpd.GerritOptions ( config , false , false , false ) ) ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.server.git.GitRepositoryManager.class ) . to ( com.google.gerrit.server.git.LocalDiskRepositoryManager.class ) ; install ( new com.google.gerrit.lifecycle.LifecycleModule ( ) { @ java.lang.Override protected void configure ( ) { listener ( ) . to ( com.google.gerrit.server.git.LocalDiskRepositoryManager.Lifecycle.class ) ; } } ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.server.git.GitRepositoryManager.class ) . to ( com.google.gerrit.server.git.LocalDiskRepositoryManager.class ) ; listener ( ) . to ( com.google.gerrit.server.git.LocalDiskRepositoryManager.Lifecycle.class ) ; }
Source:
protected < R extends com.google.gerrit.extensions.restapi.RestResource > com.google.gerrit.extensions.restapi.RestApiModule.ModifyViewBinder < R > delete ( com.google.inject.TypeLiteral < com.google.gerrit.extensions.restapi.RestView < R > > viewType , java.lang.String name ) { return new com.google.gerrit.extensions.restapi.RestApiModule.ModifyViewBinder < R > ( view ( viewType , com.google.gerrit.extensions.restapi.RestApiModule.DELETE , name ) ) ; }

Target:
protected < R extends com.google.gerrit.extensions.restapi.RestResource > com.google.gerrit.extensions.restapi.RestApiModule.ModifyViewBinder < R > delete ( com.google.inject.TypeLiteral < com.google.gerrit.extensions.restapi.RestView < R > > viewType , java.lang.String name ) { return new com.google.gerrit.extensions.restapi.RestApiModule.ModifyViewBinder ( view ( viewType , com.google.gerrit.extensions.restapi.RestApiModule.DELETE , name ) ) ; }
Source:
public int next ( ) { return com.google.gerrit.server.util.IdGenerator.mix ( com.google.gerrit.server.util.IdGenerator.salt , gen.getAndIncrement ( ) ) ; }

Target:
public int next ( ) { return com.google.gerrit.server.util.IdGenerator.mix ( gen.getAndIncrement ( ) ) ; }
Source:
public com.google.gerrit.server.data.AccountAttribute asAccountAttribute ( com.google.gerrit.reviewdb.client.Account.Id id ) { if ( id == null ) { return null ; } return asAccountAttribute ( accountCache.get ( id ) . getAccount ( ) ) ; }

Target:
public com.google.gerrit.server.data.AccountAttribute asAccountAttribute ( com.google.gerrit.reviewdb.client.Account.Id id ) { if ( id == null ) { return null ; } return asAccountAttribute ( accountCache.get ( id ) ) ; }
Source:
public void testInalidPathSeparator ( ) { for ( char c : com.google.gerrit.httpd.GitWebConfigTest.SOME_INVALID_CHARACTERS.toCharArray ( ) ) { assertFalse ( ( "invalid character accepted: " + c ) , com.google.gerrit.httpd.GitWebConfig.isValidPathSeparator ( c ) ) ; } }

Target:
public void testInalidPathSeparator ( ) { for ( char c : com.google.gerrit.httpd.GitWebConfigTest.SOME_INVALID_CHARACTERS.toCharArray ( ) ) { org.junit.Assert.assertFalse ( ( "invalid character accepted: " + c ) , com.google.gerrit.httpd.GitWebConfig.isValidPathSeparator ( c ) ) ; } }
Source:
public final void delete ( final java.lang.Iterable < E > instances ) throws com.google.gwtorm.client.OrmException { doDelete ( instances , null ) ; }

Target:
public final void delete ( final java.lang.Iterable < E > instances ) throws com.google.gwtorm.client.OrmException { doDelete ( instances ) ; }
Source:
public org.eclipse.jgit.lib.BatchRefUpdate getBatchRefUpdate ( ) throws java.io.IOException { initRepository ( ) ; if ( ( batchRefUpdate ) == null ) { batchRefUpdate = repo.getRefDatabase ( ) . newBatchUpdate ( ) ; } return batchRefUpdate ; }

Target:
private org.eclipse.jgit.lib.BatchRefUpdate getBatchRefUpdate ( ) throws java.io.IOException { initRepository ( ) ; if ( ( batchRefUpdate ) == null ) { batchRefUpdate = repo.getRefDatabase ( ) . newBatchUpdate ( ) ; } return batchRefUpdate ; }
Source:
private java.lang.String comparePattern ( ) { if ( getRefPattern ( ) . startsWith ( com.google.gerrit.common.data.AccessSection.REGEX_PREFIX ) ) { return getRefPattern ( ) . substring ( com.google.gerrit.common.data.AccessSection.REGEX_PREFIX.length ( ) ) ; } return getRefPattern ( ) ; }

Target:
private java.lang.String comparePattern ( ) { if ( getName ( ) . startsWith ( com.google.gerrit.common.data.AccessSection.REGEX_PREFIX ) ) { return getName ( ) . substring ( com.google.gerrit.common.data.AccessSection.REGEX_PREFIX.length ( ) ) ; } return getName ( ) ; }
Source:
public com.google.gerrit.server.update.RepoView getRepoView ( ) throws java.io.IOException { initRepository ( ) ; return this . repoView ; }

Target:
public com.google.gerrit.server.update.RepoView getRepoView ( ) throws java.io.IOException { return this . getRepoView ( ) ; }
Source:
public void markReady ( boolean ready ) throws java.io.IOException { com.google.gerrit.lucene.AbstractLuceneIndex.setReady ( sitePaths , schema.getVersion ( ) , ready ) ; }

Target:
public void markReady ( boolean ready ) throws java.io.IOException { com.google.gerrit.lucene.AbstractLuceneIndex.setReady ( sitePaths , name , schema.getVersion ( ) , ready ) ; }
Source:
public java.lang.String getShortName ( ) { final java.lang.String n = getName ( ) ; if ( n.startsWith ( "refs/heads/" ) ) { return n.substring ( "refs/heads/" . length ( ) ) ; } return n ; }

Target:
public java.lang.String getShortName ( ) { return name.getShortName ( ) ; }
Source:
com.google.gwt.resources.client.DataResource soy ( ) ;

Target:
com.google.gwt.resources.client.DataResource sql ( ) ;
Source:
public static com.google.gerrit.server.account.externalids.ExternalId create ( com.google.gerrit.server.account.externalids.ExternalId.Key key , com.google.gerrit.reviewdb.client.Account.Id accountId , @ com.google.gerrit.common.Nullable java.lang.String email , @ com.google.gerrit.common.Nullable java.lang.String hashedPassword ) { return new com.google.gerrit.server.account.externalids.AutoValue_ExternalId ( key , accountId , com.google.common.base.Strings.emptyToNull ( email ) , com.google.common.base.Strings.emptyToNull ( hashedPassword ) ) ; }

Target:
public static com.google.gerrit.server.account.externalids.ExternalId create ( com.google.gerrit.server.account.externalids.ExternalId.Key key , com.google.gerrit.reviewdb.client.Account.Id accountId , @ com.google.gerrit.common.Nullable java.lang.String email , @ com.google.gerrit.common.Nullable java.lang.String hashedPassword ) { return com.google.gerrit.server.account.externalids.ExternalId.create ( key , accountId , com.google.common.base.Strings.emptyToNull ( email ) , com.google.common.base.Strings.emptyToNull ( hashedPassword ) , null ) ; }
Source:
public com.google.gerrit.server.config.PluginConfig getFromGerritConfig ( java.lang.String pluginName ) { return new com.google.gerrit.server.config.PluginConfig ( pluginName , cfg ) ; }

Target:
public com.google.gerrit.server.config.PluginConfig getFromGerritConfig ( java.lang.String pluginName ) { return getFromGerritConfig ( pluginName , false ) ; }
Source:
public java.util.List < java.lang.String > getUsernamesForRepositoryRole ( java.lang.String role ) { return java.util.Collections.emptyList ( ) ; }

Target:
public java.util.List < java.lang.String > getUsernamesForRepositoryRole ( java.lang.String role ) { return null ; }
Source:
com.google.gerrit.httpd.rpc.project.ChangeProjectAccess create ( @ com.google.inject.assistedinject.Assisted com.google.gerrit.reviewdb.Project.NameKey projectName , @ com.google.inject.assistedinject.Assisted org.eclipse.jgit.lib.ObjectId base , @ com.google.inject.assistedinject.Assisted java.util.List < com.google.gerrit.common.data.AccessSection > sectionList , @ javax.annotation.Nullable java.lang.String message ) ;

Target:
com.google.gerrit.httpd.rpc.project.ChangeProjectAccess create ( @ com.google.inject.assistedinject.Assisted com.google.gerrit.reviewdb.client.Project.NameKey projectName , @ javax.annotation.Nullable org.eclipse.jgit.lib.ObjectId base , @ com.google.inject.assistedinject.Assisted java.util.List < com.google.gerrit.common.data.AccessSection > sectionList , @ javax.annotation.Nullable java.lang.String message ) ;
Source:
public < K , V > com.google.common.cache.LoadingCache < K , V > build ( com.google.gerrit.server.cache.CacheBinding < K , V > def , com.google.common.cache.CacheLoader < K , V > loader ) { return com.github.benmanes.caffeine.guava.CaffeinatedGuava.build ( create ( def , false ) , loader ) ; }

Target:
public < K , V > com.google.common.cache.LoadingCache < K , V > build ( com.google.gerrit.server.cache.CacheBinding < K , V > def , com.google.common.cache.CacheLoader < K , V > loader ) { return create ( def , false ) . build ( loader ) ; }
Source:
public void dashboardDoesNotExist ( ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.ResourceNotFoundException.class ) ; gApi.projects ( ) . name ( project.get ( ) ) . dashboard ( "my:dashboard" ) . get ( ) ; }

Target:
public void dashboardDoesNotExist ( ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.ResourceNotFoundException.class ) ; project ( ) . dashboard ( "my:dashboard" ) . get ( ) ; }
Source:
protected com.google.gerrit.acceptance.AcceptanceTestRequestScope.Context setApiUserAnonymous ( ) { return atrScope.newContext ( reviewDbProvider , null , anonymousUser.get ( ) ) ; }

Target:
protected com.google.gerrit.acceptance.AcceptanceTestRequestScope.Context setApiUserAnonymous ( ) { return atrScope.set ( atrScope.newContext ( reviewDbProvider , null , anonymousUser.get ( ) ) ) ; }
Source:
protected void preDisplay ( final com.google.gerrit.client.admin.AccountGroupDetail result ) { enableForm ( true ) ; saveName.setEnabled ( false ) ; saveOwner.setEnabled ( false ) ; saveDesc.setEnabled ( false ) ; display ( result ) ; }

Target:
protected void preDisplay ( final com.google.gerrit.client.admin.AccountGroupDetail result ) { display ( result ) ; }
Source:
public void onSuccess ( java.lang.String result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( psId.getParentKey ( ) , java.lang.String.valueOf ( psId.get ( ) ) ) ) ; }

Target:
public void onSuccess ( java.lang.String result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( psId ) ) ; }
Source:
void evict ( com.google.gerrit.reviewdb.client.AccountGroup.UUID groupUuid , com.google.gerrit.reviewdb.client.AccountGroup.Id groupId , com.google.gerrit.reviewdb.client.AccountGroup.NameKey groupName ) throws java.io.IOException ;

Target:
void evict ( com.google.gerrit.reviewdb.client.AccountGroup.Id groupId ) ;
Source:
public static boolean isNameAlreadyUsed ( final java.lang.Throwable caught ) { if ( caught instanceof com.google.gerrit.client.rpc.NameAlreadyUsedException ) { return true ; } return ( caught instanceof com.google.gwtjsonrpc.client.RemoteJsonException ) && ( caught.getMessage ( ) . equals ( NameAlreadyUsedException.MESSAGE ) ) ; }

Target:
private static boolean isNameAlreadyUsed ( final java.lang.Throwable caught ) { return ( caught instanceof com.google.gwtjsonrpc.client.RemoteJsonException ) && ( caught.getMessage ( ) . equals ( NameAlreadyUsedException.MESSAGE ) ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( id ) ) ; hide ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( project , id ) ) ; hide ( ) ; }
Source:
public static java.lang.String refsStarredChanges ( com.google.gerrit.reviewdb.client.Account.Id accountId , com.google.gerrit.reviewdb.client.Change.Id changeId ) { java.lang.StringBuilder r = com.google.gerrit.reviewdb.client.RefNames.buildRefsPrefix ( com.google.gerrit.reviewdb.client.RefNames.REFS_STARRED_CHANGES , accountId ) ; r.append ( changeId.get ( ) ) ; return r.toString ( ) ; }

Target:
public static java.lang.String refsStarredChanges ( com.google.gerrit.reviewdb.client.Change.Id changeId , com.google.gerrit.reviewdb.client.Account.Id accountId ) { java.lang.StringBuilder r = com.google.gerrit.reviewdb.client.RefNames.buildRefsPrefix ( com.google.gerrit.reviewdb.client.RefNames.REFS_STARRED_CHANGES , changeId.get ( ) ) ; r.append ( accountId.get ( ) ) ; return r.toString ( ) ; }
Source:
public void put ( com.google.gerrit.extensions.auth.oauth.OAuthUserInfo user , com.google.gerrit.extensions.auth.oauth.OAuthToken accessToken ) { cache.put ( com.google.common.base.Preconditions.checkNotNull ( user.getUserName ( ) ) , encrypt ( com.google.common.base.Preconditions.checkNotNull ( accessToken ) ) ) ; }

Target:
public void put ( com.google.gerrit.reviewdb.client.Account.Id id , com.google.gerrit.extensions.auth.oauth.OAuthToken accessToken ) { cache.put ( id , encrypt ( com.google.common.base.Preconditions.checkNotNull ( accessToken ) ) ) ; }
Source:
public void stop ( ) { async.close ( ) ; }

Target:
public void stop ( ) { if ( ( async ) != null ) { async.close ( ) ; } }
Source:
void setSubmitEnabled ( boolean ok ) { submit.setVisible ( ( ok && ( canSubmit ) ) ) ; }

Target:
void setSubmitEnabled ( ) { submit.setVisible ( canSubmit ) ; }
Source:
protected void renderHtml ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res , java.lang.String templateName , java.util.Map < java.lang.String , ? > soyData ) throws java.io.IOException { renderer.render ( res , templateName , startHtmlResponse ( req , res , soyData ) ) ; }

Target:
protected void renderHtml ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res , java.lang.String templateName , java.util.Map < java.lang.String , ? > soyData ) throws java.io.IOException { renderer.render ( req , res , templateName , startHtmlResponse ( req , res , soyData ) ) ; }
Source:
int weigh ( ) { return ( resource.length ( ) ) * 2 ; }

Target:
public int weigh ( ) { return ( resource.length ( ) ) * 2 ; }
Source:
public com.google.gerrit.server.project.ChangeControl controlFor ( com.google.gerrit.reviewdb.client.Change change ) throws com.google.gwtorm.server.OrmException { return changeControlFactory.create ( controlForRef ( change.getDest ( ) ) , change.getProject ( ) , change.getId ( ) ) ; }

Target:
public com.google.gerrit.server.project.ChangeControl controlFor ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Change change ) throws com.google.gwtorm.server.OrmException { return changeControlFactory.create ( controlForRef ( change.getDest ( ) ) , db , change.getProject ( ) , change.getId ( ) ) ; }
Source:
private java.util.List < com.google.gerrit.server.patch.PatchListEntry > getPatches ( org.eclipse.jgit.lib.ObjectId revisionIdA , org.eclipse.jgit.lib.ObjectId revisionIdB ) throws com.google.gerrit.server.patch.PatchListNotAvailableException { return patchListCache.get ( getKey ( revisionIdA , revisionIdB ) ) . getPatches ( ) ; }

Target:
private java.util.List < com.google.gerrit.server.patch.PatchListEntry > getPatches ( org.eclipse.jgit.lib.ObjectId revisionIdA , org.eclipse.jgit.lib.ObjectId revisionIdB ) throws com.google.gerrit.server.patch.PatchListNotAvailableException { return patchListCache.get ( getKey ( revisionIdA , revisionIdB ) , project ) . getPatches ( ) ; }
Source:
public void testProjectRecreationAfterRestart ( ) throws java.lang.Exception { repoManager.createRepository ( new com.google.gerrit.reviewdb.client.Project.NameKey ( "a" ) ) ; com.google.gerrit.server.git.LocalDiskRepositoryManager newRepoManager = new com.google.gerrit.server.git.LocalDiskRepositoryManager ( site , cfg ) ; newRepoManager.start ( ) ; newRepoManager.createRepository ( new com.google.gerrit.reviewdb.client.Project.NameKey ( "a" ) ) ; }

Target:
public void testProjectRecreationAfterRestart ( ) throws java.lang.Exception { repoManager.createRepository ( new com.google.gerrit.reviewdb.client.Project.NameKey ( "a" ) ) ; com.google.gerrit.server.git.LocalDiskRepositoryManager newRepoManager = new com.google.gerrit.server.git.LocalDiskRepositoryManager ( site , cfg ) ; newRepoManager.createRepository ( new com.google.gerrit.reviewdb.client.Project.NameKey ( "a" ) ) ; }
Source:
public boolean supportsEmailAddressChanges ( com.gitblit.models.UserModel user ) { return false ; }

Target:
public boolean supportsEmailAddressChanges ( ) { return false ; }
Source:
protected int getEnd ( org.eclipse.jgit.diff.Edit e ) { return e.getEndA ( ) ; }

Target:
int getEnd ( org.eclipse.jgit.diff.Edit edit ) { return edit.getEndA ( ) ; }
Source:
public Project.NameKey getProjectName ( ) { com.google.gerrit.reviewdb.client.Project project = projectControl.getProjectState ( ) . getProject ( ) ; return project.getNameKey ( ) ; }

Target:
public Project.NameKey getProjectName ( ) { return projectControl.getProjectState ( ) . getNameKey ( ) ; }
Source:
private com.google.gerrit.server.notedb.ChangeNotesParser newParser ( org.eclipse.jgit.lib.ObjectId tip ) throws java.lang.Exception { com.google.gerrit.reviewdb.client.Change c = newChange ( ) ; return new com.google.gerrit.server.notedb.ChangeNotesParser ( c.getProject ( ) , c.getId ( ) , tip , walk , repoManager , noteUtil , args.metrics ) ; }

Target:
private com.google.gerrit.server.notedb.ChangeNotesParser newParser ( org.eclipse.jgit.lib.ObjectId tip ) throws java.lang.Exception { return new com.google.gerrit.server.notedb.ChangeNotesParser ( newChange ( ) . getId ( ) , tip , walk , noteUtil , args.metrics ) ; }
Source:
public static void updateDraft ( com.google.gerrit.reviewdb.client.PatchSet.Id id , java.lang.String draftId , com.google.gerrit.client.changes.CommentInput 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.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 ) ; }
Source:
public static void parentCandidates ( com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.client.projects.ProjectMap > callback ) { new com.google.gerrit.client.rpc.RestApi ( "/projects/" ) . addParameterRaw ( "type" , "PARENT_CANDIDATES" ) . addParameterTrue ( "all" ) . addParameterTrue ( "d" ) . send ( com.google.gerrit.client.rpc.NativeMap.copyKeysIntoChildren ( callback ) ) ; }

Target:
public static void parentCandidates ( com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.client.projects.ProjectMap > callback ) { new com.google.gerrit.client.rpc.RestApi ( "/projects/" ) . addParameterRaw ( "type" , "PARENT_CANDIDATES" ) . addParameterTrue ( "all" ) . addParameterTrue ( "d" ) . get ( com.google.gerrit.client.rpc.NativeMap.copyKeysIntoChildren ( callback ) ) ; }
Source:
com.google.gerrit.server.change.ReviewerResource create ( com.google.gerrit.server.change.ChangeResource rsrc , com.google.gerrit.reviewdb.client.Account.Id id ) ;

Target:
com.google.gerrit.server.change.ReviewerResource create ( com.google.gerrit.server.change.ChangeResource change , com.google.gerrit.reviewdb.client.Account.Id id ) ;
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 ( com.google.gerrit.reviewdb.client.Account.Id id ) { return create ( ( ( java.net.SocketAddress ) ( null ) ) , id ) ; }
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 com.google.gerrit.client.rpc.RestApi revision ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , java.lang.String revision ) { return com.google.gerrit.client.changes.ChangeApi.change ( project , id ) . view ( "revisions" ) . id ( revision ) ; }
Source:
protected java.io.Writer startRenderText ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res , java.lang.String contentType ) throws java.io.IOException { setApiHeaders ( res , contentType ) ; return com.google.gitiles.BaseServlet.newWriter ( req , res ) ; }

Target:
protected java.io.Writer startRenderText ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res , java.lang.String contentType ) throws java.io.IOException { setApiHeaders ( req , res , contentType ) ; return com.google.gitiles.BaseServlet.newWriter ( req , res ) ; }
Source:
public final native void scrollToY ( int y ) ;

Target:
public final native void scrollToY ( double y ) ;
Source:
public int getStatus ( ) { return status ; }

Target:
public synchronized int getStatus ( ) { return status ; }
Source:
private static java.lang.String nextFunction ( ) { return ( "__gwtjsonrpc_callback" + ( com.google.gwtjsonrpc.client.CallbackHandle.cbgen ) ) + ( ( com.google.gwtjsonrpc.client.CallbackHandle.callbackId ) ++ ) ; }

Target:
private static int nextFunction ( ) { return ++ ( com.google.gwtjsonrpc.client.CallbackHandle.callbackId ) ; }
Source:
public static com.google.gerrit.client.changes.QueryScreen forQuery ( java.lang.String query ) { return com.google.gerrit.client.changes.QueryScreen.forQuery ( query , PageLinks.TOP ) ; }

Target:
public static com.google.gerrit.client.changes.QueryScreen forQuery ( java.lang.String query ) { return com.google.gerrit.client.changes.QueryScreen.forQuery ( query , 0 ) ; }
Source:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > insert ( com.google.gerrit.server.query.change.ChangeData cd ) throws java.io.IOException { return com.google.common.util.concurrent.Futures.immediateFuture ( null ) ; }

Target:
public void insert ( com.google.gerrit.server.query.change.ChangeData cd ) throws java.io.IOException { }
Source:
com.google.gerrit.server.mail.MergeFailSender create ( com.google.gerrit.reviewdb.client.Change.Id id ) ;

Target:
com.google.gerrit.server.mail.MergeFailSender create ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id id ) ;
Source:
void removeAll ( ) { if ( ( skipBars ) != null ) { for ( com.google.gerrit.client.diff.SkipBar bar : skipBars ) { bar.expandSideAll ( ) ; } skipBars = null ; line0 = null ; } }

Target:
void removeAll ( ) { if ( ! ( skipBars.isEmpty ( ) ) ) { for ( com.google.gerrit.client.diff.SkipBar bar : skipBars ) { bar.expandSideAll ( ) ; } line0 = null ; } }
Source:
public void testCreateDatabaseHandle ( ) throws java.lang.Exception { assertNotNull ( db ) ; }

Target:
public void testCreateDatabaseHandle ( ) throws java.lang.Exception { org.junit.Assert.assertNotNull ( db ) ; }
Source:
private static void reject ( final org.eclipse.jgit.transport.ReceiveCommand cmd , final java.lang.String why ) { cmd.setResult ( ReceiveCommand.Result.REJECTED_OTHER_REASON , why ) ; }

Target:
static void reject ( final org.eclipse.jgit.transport.ReceiveCommand cmd , final java.lang.String why ) { cmd.setResult ( ReceiveCommand.Result.REJECTED_OTHER_REASON , why ) ; }
Source:
void onShow ( ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( changeId ) ) ; }

Target:
void onShow ( ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( project , changeId ) ) ; }
Source:
public boolean dryRun ( final com.google.gerrit.server.git.CodeReviewCommit mergeTip , final com.google.gerrit.server.git.CodeReviewCommit toMerge ) throws com.google.gerrit.server.git.MergeException { return args.mergeUtil.canMerge ( args.mergeSorter , args.repo , mergeTip , toMerge ) ; }

Target:
public boolean dryRun ( com.google.gerrit.server.git.CodeReviewCommit mergeTip , com.google.gerrit.server.git.CodeReviewCommit toMerge ) throws com.google.gerrit.server.git.MergeException { return args.mergeUtil.canMerge ( args.mergeSorter , args.repo , mergeTip , toMerge ) ; }
Source:
public boolean canSeeMember ( com.google.gerrit.reviewdb.client.Account.Id id ) { if ( ( user.isIdentifiedUser ( ) ) && ( ( ( com.google.gerrit.server.IdentifiedUser ) ( user ) ) . getAccountId ( ) . equals ( id ) ) ) { return true ; } return canSeeMembers ( ) ; }

Target:
public boolean canSeeMember ( com.google.gerrit.reviewdb.client.Account.Id id ) { if ( ( user.isIdentifiedUser ( ) ) && ( user.getAccountId ( ) . equals ( id ) ) ) { return true ; } return canSeeMembers ( ) ; }
Source:
public com.google.gerrit.server.IdentifiedUser getUser ( ) { return ( ( com.google.gerrit.server.IdentifiedUser ) ( ctl.getCurrentUser ( ) ) ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser getUser ( ) { return ( ( com.google.gerrit.server.IdentifiedUser ) ( ctl.getUser ( ) ) ) ; }
Source:
protected < T > T buildJson ( java.lang.String path , com.google.gson.reflect.TypeToken < T > typeOfT ) throws java.lang.Exception { return buildJson ( path , typeOfT , "" ) ; }

Target:
protected < T > T buildJson ( com.google.gson.reflect.TypeToken < T > typeOfT , java.lang.String path ) throws java.lang.Exception { return buildJson ( typeOfT , path , null ) ; }
Source:
public void tearDown ( ) throws java.lang.Exception { if ( ( openSchemas ) != null ) { for ( com.google.gwtorm.data.PhoneBookDb schema : openSchemas ) { schema.close ( ) ; } openSchemas = null ; } super . tearDown ( ) ; }

Target:
public void tearDown ( ) throws java.lang.Exception { if ( ( openSchemas ) != null ) { for ( com.google.gwtorm.data.PhoneBookDb schema : openSchemas ) { schema.close ( ) ; } openSchemas = null ; } }
Source:
public void setValue ( final short v ) { value = v ; granted = new java.sql.Timestamp ( java.lang.System.currentTimeMillis ( ) ) ; }

Target:
public void setValue ( final short v ) { value = v ; }
Source:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo info ) { info.init ( ) ; loadConfigInfo ( info , base ) ; loadRevisionInfo ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo info ) { info.init ( ) ; loadConfigInfo ( info , base ) ; }
Source:
public com.google.gwtorm.client.SchemaFactory < com.google.gerrit.reviewdb.ReviewDb > get ( ) { return ds ; }

Target:
public com.google.gwtorm.client.SchemaFactory < com.google.gerrit.reviewdb.ReviewDb > get ( ) { return ds.get ( ) ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.server.git.GitRepositoryManager.class ) . to ( com.google.gerrit.server.git.LocalDiskRepositoryManager.class ) ; listener ( ) . to ( com.google.gerrit.server.git.LocalDiskRepositoryManager.Lifecycle.class ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.server.git.GitRepositoryManager.class ) . to ( com.google.gerrit.server.git.LocalDiskRepositoryManager.class ) ; listener ( ) . to ( com.google.gerrit.server.git.LocalDiskRepositoryManager.class ) ; listener ( ) . to ( com.google.gerrit.server.git.LocalDiskRepositoryManager.Lifecycle.class ) ; }
Source:
void applyFailed ( ) { com.google.gwt.user.client.rpc.AsyncCallback < T > cb = delegate ; if ( cb != null ) { delegate = null ; result = null ; cb.onFailure ( failedThrowable ) ; } }

Target:
public void applyFailed ( ) { com.google.gwt.user.client.rpc.AsyncCallback < T > cb = delegate ; if ( cb != null ) { delegate = null ; result = null ; cb.onFailure ( failedThrowable ) ; } }
Source:
private void loadDefaults ( ) { approvals = com.google.common.collect.ImmutableListMultimap.of ( ) ; reviewers = com.google.common.collect.ImmutableSetMultimap.of ( ) ; submitRecords = com.google.common.collect.ImmutableList.of ( ) ; changeMessages = com.google.common.collect.ImmutableList.of ( ) ; }

Target:
private void loadDefaults ( ) { approvals = com.google.common.collect.ImmutableListMultimap.of ( ) ; reviewers = com.google.common.collect.ImmutableSetMultimap.of ( ) ; submitRecords = com.google.common.collect.ImmutableList.of ( ) ; changeMessages = com.google.common.collect.ImmutableListMultimap.of ( ) ; }
Source:
< A extends com.google.gwtorm.client.Access < ? , ? > > java.lang.Class < A > create ( com.google.gwtorm.server.GeneratedClassLoader loader , com.google.gwtorm.schema.RelationModel rm ) throws com.google.gwtorm.client.OrmException ;

Target:
java.lang.Class < ? > create ( com.google.gwtorm.server.GeneratedClassLoader loader , com.google.gwtorm.schema.RelationModel rm ) throws com.google.gwtorm.client.OrmException ;
Source:
private void initSite ( ) throws java.lang.Exception { com.google.gerrit.acceptance.pgm.RebuildNoteDbIT.runGerrit ( "init" , "-d" , sitePath.getPath ( ) , "--batch" , "--no-auto-start" , "--skip-plugins" , "--show-stack-trace" ) ; }

Target:
private void initSite ( ) throws java.lang.Exception { com.google.gerrit.acceptance.pgm.RebuildNoteDbIT.runGerrit ( "init" , "-d" , sitePath , "--batch" , "--no-auto-start" , "--skip-plugins" , "--show-stack-trace" ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.String > getMergeResults ( ) { return this . mergeResults ; }

Target:
public java.util.Map < java.lang.String , java.lang.String > getMergeResults ( ) { return mergeResults ; }
Source:
public int getCost ( ) { return com.google.gerrit.server.query.change.ChangeCosts.cost ( ChangeCosts.TR_SCAN , ChangeCosts.CARD_TRACKING_IDS ) ; }

Target:
public int getCost ( ) { return 1 ; }
Source:
private void deletePatchSet ( java.lang.String changeId , com.google.gerrit.reviewdb.client.PatchSet ps ) throws java.lang.Exception { gApi.changes ( ) . id ( changeId ) . revision ( ps.getId ( ) . get ( ) ) . delete ( ) ; }

Target:
private void deletePatchSet ( java.lang.String changeId , int ps ) throws java.lang.Exception { gApi.changes ( ) . id ( changeId ) . revision ( ps ) . delete ( ) ; }
Source:
public boolean apply ( com.google.gerrit.server.git.ReceiveCommits.CreateRequest input ) { return ( input.change ) != null ; }

Target:
public boolean apply ( com.google.gerrit.server.git.ReceiveCommits.CreateRequest input ) { return ( input.getChange ( ) ) != null ; }
Source:
private static final native void init ( java.lang.String e , java.lang.String r , java.lang.String o ) ;

Target:
private static final native void init ( java.lang.String d , java.lang.String e , java.lang.String r , java.lang.String o ) ;
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 ( ( cherryPicksTab ) == null ) { cherryPicksTab = createTab ( Resources.C.cherryPicks ( ) , Resources.C.cherryPicksTooltip ( ) ) ; cherryPicksTab.setShowBranches ( true ) ; } return cherryPicksTab ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; local = new com.google.gerrit.server.git.ProjectConfig ( localKey ) ; local.createInMemory ( ) ; util.add ( local ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { local = new com.google.gerrit.server.git.ProjectConfig ( localKey ) ; local.createInMemory ( ) ; util.add ( local ) ; }
Source:
public void stop ( ) { if ( ( queue ) != null ) { queue.unregisterWorkQueue ( ) ; queue.shutdownNow ( ) ; queue = null ; } }

Target:
public void stop ( ) { if ( ( queue ) != null ) { queue.shutdownNow ( ) ; queue = null ; } }
Source:
public void onHeadUpdated ( com.google.gerrit.extensions.events.HeadUpdatedListener.Event event ) { for ( org.eclipse.jgit.transport.URIish uri : getURIs ( new com.google.gerrit.reviewdb.client.Project.NameKey ( event.getProjectName ( ) ) , FilterType.ALL ) ) { updateHead ( uri , event.getNewHeadName ( ) ) ; } }

Target:
public void onHeadUpdated ( com.google.gerrit.extensions.events.HeadUpdatedListener.Event event ) { updateHead ( new com.google.gerrit.reviewdb.client.Project.NameKey ( event.getProjectName ( ) ) , event.getNewHeadName ( ) ) ; }
Source:
public static java.lang.String getToken ( final javax.servlet.http.HttpServletRequest req ) { java.lang.String token = req.getPathInfo ( ) ; if ( com.google.common.base.Strings.isNullOrEmpty ( token ) ) { return com.google.gerrit.httpd.LoginUrlToken.DEFAULT_TOKEN ; } else { return com.google.common.base.CharMatcher.is ( '/' ) . trimLeadingFrom ( token ) ; } }

Target:
public static java.lang.String getToken ( final javax.servlet.http.HttpServletRequest req ) { java.lang.String token = req.getPathInfo ( ) ; if ( com.google.common.base.Strings.isNullOrEmpty ( token ) ) { return com.google.gerrit.httpd.LoginUrlToken.DEFAULT_TOKEN ; } return com.google.common.base.CharMatcher.is ( '/' ) . trimLeadingFrom ( token ) ; }
Source:
private static com.google.gerrit.server.git.CodeReviewCommit parse ( org.eclipse.jgit.revwalk.RevWalk rw , org.eclipse.jgit.lib.ObjectId id ) throws java.io.IOException , org.eclipse.jgit.errors.IncorrectObjectTypeException , org.eclipse.jgit.errors.MissingObjectException { return ( ( com.google.gerrit.server.git.CodeReviewCommit ) ( rw.parseCommit ( id ) ) ) ; }

Target:
private com.google.gerrit.server.git.CodeReviewCommit parse ( org.eclipse.jgit.revwalk.RevWalk rw , org.eclipse.jgit.lib.ObjectId id ) throws java.io.IOException , org.eclipse.jgit.errors.IncorrectObjectTypeException , org.eclipse.jgit.errors.MissingObjectException { return ( ( com.google.gerrit.server.git.CodeReviewCommit ) ( rw.parseCommit ( id ) ) ) ; }
Source:
public void onLoad ( ) { super . onLoad ( ) ; if ( useLoadPrev ) { loadPrev ( ) ; } else { loadNext ( ) ; } }

Target:
protected void onLoad ( ) { super . onLoad ( ) ; if ( useLoadPrev ) { loadPrev ( ) ; } else { loadNext ( ) ; } }
Source:
private com.google.gerrit.reviewdb.server.ReviewDb db ( ) { return ( cd ) != null ? cd.db ( ) : null ; }

Target:
private com.google.gerrit.reviewdb.server.ReviewDb db ( ) { if ( ( db ) != null ) { return db.get ( ) ; } else if ( ( cd ) != null ) { return cd.db ( ) ; } else { return null ; } }
Source:
private void initDownloadAction ( com.google.gerrit.client.changes.ChangeInfo info , java.lang.String revision ) { downloadAction = new com.google.gerrit.client.change.DownloadAction ( info.legacy_id ( ) , info.project ( ) , info.revision ( revision ) , style , headerLine , download ) ; }

Target:
private void initDownloadAction ( com.google.gerrit.client.changes.ChangeInfo info , java.lang.String revision ) { downloadAction = new com.google.gerrit.client.change.DownloadAction ( info , revision , style , headerLine , download ) ; }
Source:
protected java.lang.String prettify ( java.lang.String html ) { return prettyPrintOne ( html , settings ) ; }

Target:
protected java.lang.String prettify ( java.lang.String html , java.lang.String type ) { return prettyPrintOne ( html , type , settings ) ; }
Source:
public static com.google.gerrit.lucene.LuceneIndexModule singleVersionAllLatest ( int threads ) { return new com.google.gerrit.lucene.LuceneIndexModule ( com.google.common.collect.ImmutableMap.< java.lang.String , java.lang.Integer > of ( ) , threads ) ; }

Target:
public static com.google.gerrit.lucene.LuceneIndexModule singleVersionAllLatest ( int threads ) { return new com.google.gerrit.lucene.LuceneIndexModule ( com.google.common.collect.ImmutableMap.< java.lang.String , java.lang.Integer > of ( ) , threads , false ) ; }
Source:
public void put ( final com.google.gerrit.server.patch.DiffCacheKey k , final com.google.gerrit.server.patch.DiffCacheContent c ) { self.put ( new net.sf.ehcache.Element ( k , c ) ) ; }

Target:
public void put ( final com.google.gerrit.server.patch.DiffCacheKey k , final com.google.gerrit.server.patch.DiffCacheContent c ) { self.put ( k , c ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo info ) { info.init ( ) ; loadConfigInfo ( info , null ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo info ) { info.init ( ) ; loadConfigInfo ( info , base ) ; }