auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void enable ( final boolean on ) { showSiteHeader.setEnabled ( on ) ; defaultContext.setEnabled ( on ) ; }

Target:
private void enable ( final boolean on ) { showSiteHeader.setEnabled ( on ) ; useFlashClipboard.setEnabled ( on ) ; defaultContext.setEnabled ( on ) ; }
Source:
public com.google.gerrit.server.CurrentUser getCurrentUser ( ) { throw new com.google.inject.OutOfScopeException ( "No user on email thread" ) ; }

Target:
public com.google.gerrit.server.CurrentUser getCurrentUser ( ) { return user.getRealUser ( ) ; }
Source:
com.google.gerrit.extensions.common.WebLinkInfo getPathSetWebLink ( final java.lang.String projectName , final java.lang.String commit ) ;

Target:
com.google.gerrit.extensions.common.WebLinkInfo getPatchSetWebLink ( final java.lang.String projectName , final java.lang.String commit ) ;
Source:
public java.lang.String toString ( ) { return ( "Label[" + ( name ) ) + ']' ; }

Target:
public java.lang.String toString ( ) { if ( ( forUser ) == ( com.google.gerrit.server.permissions.LabelPermission.ForUser.ON_BEHALF_OF ) ) { return ( "LabelAs[" + ( name ) ) + ']' ; } return ( "Label[" + ( name ) ) + ']' ; }
Source:
public UiAction.Description getDescription ( com.google.gerrit.server.change.ChangeResource rsrc ) { return new com.google.gerrit.extensions.webui.UiAction.Description ( ) . setLabel ( "Edit Assignee" ) . setVisible ( rsrc.permissions ( ) . testOrFalse ( ChangePermission.EDIT_ASSIGNEE ) ) ; }

Target:
public UiAction.Description getDescription ( com.google.gerrit.server.change.ChangeResource resource ) { return new com.google.gerrit.extensions.webui.UiAction.Description ( ) . setLabel ( "Edit Assignee" ) . setVisible ( resource.getControl ( ) . canEditAssignee ( ) ) ; }
Source:
protected com.google.inject.Injector createInjector ( ) { org.eclipse.jgit.lib.Config luceneConfig = new org.eclipse.jgit.lib.Config ( config ) ; com.google.gerrit.testutil.InMemoryModule.setDefaults ( luceneConfig ) ; return com.google.inject.Guice.createInjector ( new com.google.gerrit.testutil.InMemoryModule ( luceneConfig ) ) ; }

Target:
protected com.google.inject.Injector createInjector ( com.google.gerrit.lifecycle.LifecycleManager lifecycle ) { org.eclipse.jgit.lib.Config luceneConfig = new org.eclipse.jgit.lib.Config ( config ) ; com.google.gerrit.testutil.InMemoryModule.setDefaults ( luceneConfig ) ; return com.google.gerrit.testutil.InMemoryModule.createInjector ( lifecycle , luceneConfig ) ; }
Source:
public boolean isBlocked ( java.lang.String permissionName ) { return ! ( doCanPerform ( permissionName , true ) ) ; }

Target:
boolean canPerform ( java.lang.String permissionName , boolean isChangeOwner ) { return doCanPerform ( permissionName , isChangeOwner , false ) ; }
Source:
private boolean match ( java.lang.String destBranch , java.lang.String refPattern ) { return com.google.gerrit.server.project.RefPatternMatcher.getMatcher ( refPattern ) . match ( destBranch , getCurrentUser ( ) . getUserName ( ) ) ; }

Target:
private boolean match ( java.lang.String destBranch , java.lang.String refPattern ) { return com.google.gerrit.server.project.RefPatternMatcher.getMatcher ( refPattern ) . match ( destBranch , getUser ( ) . getUserName ( ) ) ; }
Source:
public void onFailure ( final java.lang.Throwable caught ) { com.google.gwt.core.client.GWT.log ( "ChangeTable.onSignIn myStarredChangeIds failed" , caught ) ; }

Target:
public void onFailure ( final java.lang.Throwable caught ) { super . onFailure ( caught ) ; c.setStarred ( prior ) ; setStar ( row , c ) ; }
Source:
public boolean isTokenValid ( final java.lang.String inputToken ) { return ( isSignedIn ( ) ) && ( key.getToken ( ) . equals ( inputToken ) ) ; }

Target:
public boolean isTokenValid ( final java.lang.String inputToken ) { return ( ( isSignedIn ( ) ) && ( ( val.getXsrfToken ( ) ) != null ) ) && ( val.getXsrfToken ( ) . equals ( inputToken ) ) ; }
Source:
public static void detail ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.changes.ChangeInfo > cb ) { com.google.gerrit.client.changes.ChangeApi.call ( id , "detail" ) . get ( cb ) ; }

Target:
private static com.google.gerrit.client.rpc.RestApi detail ( int id ) { return com.google.gerrit.client.changes.ChangeApi.call ( id , "detail" ) ; }
Source:
public void confirmInvalidToken_UnprocessableEntity ( ) throws java.lang.Exception { com.google.gerrit.server.config.ConfirmEmail.Input in = new com.google.gerrit.server.config.ConfirmEmail.Input ( ) ; in.token = "invalidToken" ; com.google.gerrit.acceptance.RestResponse r = adminSession.put ( "/config/server/email.confirm" , in ) ; com.google.common.truth.Truth.assertThat ( r.getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_UNPROCESSABLE_ENTITY ) ; }

Target:
public void confirmInvalidToken_UnprocessableEntity ( ) throws java.lang.Exception { com.google.gerrit.server.config.ConfirmEmail.Input in = new com.google.gerrit.server.config.ConfirmEmail.Input ( ) ; in.token = "invalidToken" ; adminSession.put ( "/config/server/email.confirm" , in ) . assertUnprocessableEntity ( ) ; }
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.getPath ( ) , "--batch" , "--no-auto-start" , "--skip-plugins" , "--show-stack-trace" ) ; }
Source:
private com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > rewrite ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in , int limit ) throws com.google.gerrit.server.query.QueryParseException { return rewrite.rewrite ( in , 0 , limit ) ; }

Target:
private com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > rewrite ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in , com.google.gerrit.server.query.change.QueryOptions opts ) throws com.google.gerrit.server.query.QueryParseException { return rewrite.rewrite ( in , opts ) ; }
Source:
public void hashtagsWithAccentedCharacters ( ) throws java.lang.Exception { java.lang.String commitMessage = "Jag #måste #öva på min #Svenska!\n\n" + "Jag behöver en #läkare." ; com.google.common.truth.Truth.assertThat ( com.google.gerrit.server.change.HashtagsUtil.extractTags ( commitMessage ) ) . containsExactlyElementsIn ( com.google.common.collect.Sets.newHashSet ( "måste" , "öva" , "Svenska" , "läkare" ) ) ; }

Target:
public void hashtagsWithAccentedCharacters ( ) throws java.lang.Exception { java.lang.String commitMessage = "Jag #måste #öva på min #Svenska!\n\nJag behöver en #läkare." ; com.google.common.truth.Truth.assertThat ( com.google.gerrit.server.change.HashtagsUtil.extractTags ( commitMessage ) ) . containsExactlyElementsIn ( com.google.common.collect.Sets.newHashSet ( "måste" , "öva" , "Svenska" , "läkare" ) ) ; }
Source:
public static < T > com.google.inject.binder.LinkedBindingBuilder < T > bind ( com.google.inject.Binder binder , com.google.inject.TypeLiteral < T > type , com.google.inject.name.Named name ) { return binder.bind ( type ) . annotatedWith ( name ) ; }

Target:
public static < T > com.google.inject.binder.LinkedBindingBuilder < T > bind ( com.google.inject.Binder binder , com.google.inject.TypeLiteral < T > type , com.google.inject.name.Named name ) { binder.disableCircularProxies ( ) ; return binder.bind ( type ) . annotatedWith ( name ) ; }
Source:
private static com.google.gerrit.extensions.common.ApprovalInfo fromApprovalInfo ( com.google.gerrit.server.change.ChangeJson.ApprovalInfo ai ) { com.google.gerrit.extensions.common.ApprovalInfo ao = new com.google.gerrit.extensions.common.ApprovalInfo ( ) ; ao.value = ai.value ; ao.date = ai.date ; com.google.gerrit.server.api.changes.ChangeInfoMapper.fromAccount ( ai , ao ) ; return ao ; }

Target:
private static com.google.gerrit.extensions.common.ApprovalInfo fromApprovalInfo ( com.google.gerrit.server.change.ChangeJson.ApprovalInfo ai ) { com.google.gerrit.extensions.common.ApprovalInfo ao = new com.google.gerrit.extensions.common.ApprovalInfo ( ) ; ao.value = ai.value ; ao.date = ai.date ; com.google.gerrit.server.api.accounts.AccountInfoMapper.fromAccount ( ai , ao ) ; return ao ; }
Source:
public com.google.gerrit.server.account.AccountSshKey create ( com.google.gerrit.server.account.AccountSshKey.Id id , java.lang.String encoded ) { return new com.google.gerrit.server.account.AccountSshKey ( id , encoded ) ; }

Target:
public com.google.gerrit.server.account.AccountSshKey create ( com.google.gerrit.reviewdb.client.Account.Id accountId , int seq , java.lang.String encoded ) { return com.google.gerrit.server.account.AccountSshKey.create ( accountId , seq , encoded ) ; }
Source:
public void setCurrentFilePaths ( java.util.List < java.lang.String > filePaths ) { currentFiles = filePaths ; }

Target:
public void setCurrentFilePaths ( java.util.List < java.lang.String > filePaths ) { currentFiles = com.google.common.collect.ImmutableList.copyOf ( filePaths ) ; }
Source:
private void checkPreconditions ( javax.servlet.http.HttpServletRequest req ) throws com.google.gerrit.extensions.restapi.PreconditionFailedException { if ( "*" . equals ( req.getHeader ( "If-None-Match" ) ) ) { throw new com.google.gerrit.extensions.restapi.PreconditionFailedException ( "Resource already exists" ) ; } }

Target:
private void checkPreconditions ( javax.servlet.http.HttpServletRequest req ) throws com.google.gerrit.extensions.restapi.PreconditionFailedException { if ( "*" . equals ( req.getHeader ( com.google.common.net.HttpHeaders.IF_NONE_MATCH ) ) ) { throw new com.google.gerrit.extensions.restapi.PreconditionFailedException ( "Resource already exists" ) ; } }
Source:
public com.google.gerrit.server.patch.PatchList load ( final com.google.gerrit.server.patch.PatchListKey key ) throws com.google.gerrit.server.patch.PatchListNotAvailableException , java.io.IOException { final org.eclipse.jgit.lib.Repository repo = repoManager.openRepository ( key.projectKey ) ; try { return readPatchList ( key , repo ) ; } finally { repo.close ( ) ; } }

Target:
public org.eclipse.jgit.patch.FileHeader call ( ) throws java.io.IOException { synchronized ( lock ) { return diffFormatter.toFileHeader ( diffEntry ) ; } }
Source:
public void testCreateProjectHttpWithUnreasonableName_BadRequest ( ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = adminSession.put ( ( "/projects/" + ( com.google.gerrit.extensions.restapi.Url.encode ( name ( "invalid/../name" ) ) ) ) ) ; com.google.common.truth.Truth.assertThat ( r.getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_BAD_REQUEST ) ; }

Target:
public void testCreateProjectHttpWithUnreasonableName_BadRequest ( ) throws java.lang.Exception { adminSession.put ( ( "/projects/" + ( com.google.gerrit.extensions.restapi.Url.encode ( name ( "invalid/../name" ) ) ) ) ) . assertBadRequest ( ) ; }
Source:
public void deleteComment ( com.google.gerrit.reviewdb.client.Comment c ) { verifyComment ( c ) ; delete.add ( com.google.gerrit.server.notedb.ChangeDraftUpdate.key ( c ) ) ; }

Target:
public void putComment ( com.google.gerrit.reviewdb.client.Comment c ) { verifyComment ( c ) ; put.add ( c ) ; }
Source:
public void testLinkify_Parens1 ( ) { final com.google.gwtexpui.safehtml.client.SafeHtml o = com.google.gwtexpui.safehtml.client.SafeHtml_LinkifyTest.html ( "A (http://go.here/) B" ) ; final com.google.gwtexpui.safehtml.client.SafeHtml n = o.linkify ( ) ; assertNotSame ( o , n ) ; assertEquals ( "A (<a href=\"http://go.here/\" target=\"_blank\">http://go.here/</a>) B" , n.asString ( ) ) ; }

Target:
public void testLinkify_Parens1 ( ) { final com.google.gwtexpui.safehtml.client.SafeHtml o = com.google.gwtexpui.safehtml.client.SafeHtml_LinkifyTest.html ( "A (http://go.here/) B" ) ; final com.google.gwtexpui.safehtml.client.SafeHtml n = o.linkify ( ) ; org.junit.Assert.assertNotSame ( o , n ) ; org.junit.Assert.assertEquals ( "A (<a href=\"http://go.here/\" target=\"_blank\">http://go.here/</a>) B" , n.asString ( ) ) ; }
Source:
protected com.google.gerrit.server.query.Predicate < T > postRewrite ( com.google.gerrit.server.query.Predicate < T > pred ) { return pred ; }

Target:
public com.google.gerrit.server.query.QueryProcessor < T > enforceVisibility ( boolean enforce ) { enforceVisibility = enforce ; return this ; }
Source:
public org.apache.sshd.server.Command createCommand ( final java.lang.String requestCommand ) { return new com.google.gerrit.sshd.CommandFactoryProvider.Trampoline ( requestCommand ) ; }

Target:
public org.apache.sshd.server.Command createCommand ( final java.lang.String requestCommand ) { java.lang.String c = requestCommand ; com.google.gerrit.sshd.SshCreateCommandInterceptor interceptor = createCommandInterceptor.get ( ) ; if ( interceptor != null ) { c = interceptor.intercept ( c ) ; } return new com.google.gerrit.sshd.CommandFactoryProvider.Trampoline ( c ) ; }
Source:
void apply ( com.google.gerrit.server.notedb.ChangeUpdate update ) throws com.google.gwtorm.server.OrmException { checkUpdate ( update ) ; update.setChangeMessage ( message.getMessage ( ) ) ; }

Target:
void apply ( com.google.gerrit.server.notedb.ChangeUpdate update ) throws com.google.gwtorm.server.OrmException { checkUpdate ( update ) ; update.setChangeMessage ( message.getMessage ( ) ) ; setTopic ( update ) ; }
Source:
private void uncacheSshKeys ( final java.lang.String userName ) { if ( userName != null ) { server.getSshKeysCache ( ) . remove ( userName ) ; } }

Target:
private void uncacheSshKeys ( final java.lang.String userName ) { if ( userName != null ) { sshKeyCache.evict ( userName ) ; } }
Source:
private int countMagicFiles ( java.util.List < com.google.gerrit.server.patch.PatchListEntry > entries ) { int count = 0 ; for ( com.google.gerrit.server.patch.PatchListEntry e : entries ) { if ( com.google.gerrit.reviewdb.client.Patch.isMagic ( e.getNewName ( ) ) ) { count ++ ; } } return count ; }

Target:
private int countMagicFiles ( java.util.List < com.google.gerrit.server.diff.PatchListEntry > entries ) { int count = 0 ; for ( com.google.gerrit.server.diff.PatchListEntry e : entries ) { if ( com.google.gerrit.reviewdb.client.Patch.isMagic ( e.getNewName ( ) ) ) { count ++ ; } } return count ; }
Source:
public void assertMessage ( java.lang.String expectedMessage ) { org.eclipse.jgit.transport.RemoteRefUpdate refUpdate = result.getRemoteUpdate ( ref ) ; org.junit.Assert.assertTrue ( message ( refUpdate ) , message ( refUpdate ) . toLowerCase ( ) . contains ( expectedMessage.toLowerCase ( ) ) ) ; }

Target:
public void assertMessage ( java.lang.String expectedMessage ) { org.eclipse.jgit.transport.RemoteRefUpdate refUpdate = result.getRemoteUpdate ( ref ) ; com.google.common.truth.Truth.assertThat ( message ( refUpdate ) . toLowerCase ( ) ) . named ( message ( refUpdate ) ) . contains ( expectedMessage.toLowerCase ( ) ) ; }
Source:
private boolean exists ( ) { return ( comment.getKey ( ) . get ( ) ) != null ; }

Target:
boolean isNew ( ) { return ( comment.getKey ( ) . get ( ) ) == null ; }
Source:
java.util.Set < java.lang.String > keySet ( ) { return java.util.Collections.unmodifiableSet ( atts.keySet ( ) ) ; }

Target:
java.util.Map < java.lang.String , java.lang.String > map ( ) { return java.util.Collections.unmodifiableMap ( atts ) ; }
Source:
public com.google.gerrit.server.project.ProjectState getParentState ( ) { if ( isAllProjects ) { return null ; } return projectCache.get ( getProject ( ) . getParent ( allProjectsName ) ) ; }

Target:
public java.lang.Iterable < com.google.gerrit.server.project.ProjectState > tree ( ) { return new java.lang.Iterable < com.google.gerrit.server.project.ProjectState > ( ) { @ java.lang.Override public java.util.Iterator < com.google.gerrit.server.project.ProjectState > iterator ( ) { return new com.google.gerrit.server.project.ProjectHierarchyIterator ( projectCache , allProjectsName , com.google.gerrit.server.project.ProjectState.this ) ; } } ; }
Source:
public void removeProjectEvents ( java.lang.String project ) throws java.sql.SQLException { execute ( java.lang.String.format ( "DELETE FROM %s WHERE project = '%s'" , com.ericsson.gerrit.plugins.eventslog.sql.SQLTable.TABLE_NAME , project ) ) ; }

Target:
void removeProjectEvents ( java.lang.String project ) { try { execute ( java.lang.String.format ( "DELETE FROM %s WHERE project = '%s'" , com.ericsson.gerrit.plugins.eventslog.sql.SQLTable.TABLE_NAME , project ) ) ; } catch ( java.sql.SQLException e ) { com.ericsson.gerrit.plugins.eventslog.sql.SQLClient.log.warn ( ( ( "Cannot remove project " + project ) + " events from database" ) , e ) ; } }
Source:
private com.google.common.collect.ImmutableList < com.google.gerrit.extensions.common.CommitInfo > log ( ) throws java.lang.Exception { return com.google.gerrit.server.group.db.testing.GroupTestUtil.log ( repo , com.google.gerrit.reviewdb.client.RefNames.REFS_GROUPNAMES ) ; }

Target:
private com.google.common.collect.ImmutableList < com.google.gerrit.extensions.common.CommitInfo > log ( ) throws java.lang.Exception { return com.google.gerrit.testing.GitTestUtil.log ( repo , com.google.gerrit.reviewdb.client.RefNames.REFS_GROUPNAMES ) ; }
Source:
private com.google.gwtexpui.safehtml.client.SafeHtmlBuilder formatHashtags ( com.google.gerrit.client.changes.ChangeInfo info ) { if ( ( info.hashtags ( ) ) != null ) { return formatHashtags ( info.hashtags ( ) ) ; } return new com.google.gwtexpui.safehtml.client.SafeHtmlBuilder ( ) ; }

Target:
private com.google.gwtexpui.safehtml.client.SafeHtmlBuilder formatHashtags ( com.google.gerrit.client.info.ChangeInfo info ) { if ( ( info.hashtags ( ) ) != null ) { return formatHashtags ( info.hashtags ( ) ) ; } return new com.google.gwtexpui.safehtml.client.SafeHtmlBuilder ( ) ; }
Source:
public java.lang.String getRefName ( ) { return refUpdate.refName ; }

Target:
public java.lang.String getRefName ( ) { return refUpdate.get ( ) . refName ; }
Source:
public java.util.Map < java.lang.String , java.lang.Short > votes ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return listVotes.apply ( reviewer ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot list votes" , e ) ; } }

Target:
public java.util.Map < java.lang.String , java.lang.Short > votes ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return listVotes.apply ( reviewer ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot list votes" , e ) ; } }
Source:
public final native boolean edit ( ) ;

Target:
public final native com.google.gerrit.client.changes.ChangeInfo.EditInfo edit ( ) ;
Source:
private org.eclipse.jgit.lib.Config config ( org.junit.runner.Description description ) { com.google.gerrit.acceptance.GerritConfigs cfgs = description.getAnnotation ( com.google.gerrit.acceptance.GerritConfigs.class ) ; com.google.gerrit.acceptance.GerritConfig cfg = description.getAnnotation ( com.google.gerrit.acceptance.GerritConfig.class ) ; if ( ( cfgs != null ) && ( cfg != null ) ) { throw new java.lang.IllegalStateException ( "Use either @GerritConfigs or @GerritConfig not both" ) ; } if ( cfgs != null ) { return com.google.gerrit.acceptance.ConfigAnnotationParser.parse ( baseConfig , cfgs ) ; } else if ( cfg != null ) { return com.google.gerrit.acceptance.ConfigAnnotationParser.parse ( baseConfig , cfg ) ; } else { return baseConfig ; } }

Target:
protected com.google.gerrit.extensions.common.ChangeInfo get ( java.lang.String id , com.google.gerrit.extensions.client.ListChangesOption ... options ) throws com.google.gerrit.extensions.restapi.RestApiException { return gApi.changes ( ) . id ( id ) . get ( com.google.common.collect.Sets.newEnumSet ( java.util.Arrays.asList ( options ) , com.google.gerrit.extensions.client.ListChangesOption.class ) ) ; }
Source:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { removeUI ( ) ; }

Target:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { notifyDraftDelta ( ( - 1 ) ) ; removeUI ( ) ; }
Source:
void rebaseChange ( com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ChangeDetail > callback ) ;

Target:
void deleteDraftChange ( com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gwtjsonrpc.common.VoidResult > callback ) ;
Source:
public void addHeader ( java.lang.String name , java.lang.String value ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public void setHeader ( java.lang.String name , java.lang.String value ) { headers.removeAll ( name ) ; addHeader ( name , value ) ; }
Source:
void revertChange ( com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId , java.lang.String message , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ChangeDetail > callback ) ;

Target:
void createNewPatchSet ( final com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId , final java.lang.String newCommitMessage , final com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ChangeDetail > callback ) ;
Source:
public com.googlecode.prolog_cafe.lang.NumberTerm shiftRight ( com.googlecode.prolog_cafe.lang.NumberTerm t ) { if ( t.isDouble ( ) ) throw new com.googlecode.prolog_cafe.exceptions.IllegalTypeException ( "integer" , t ) ; return new com.googlecode.prolog_cafe.lang.IntegerTerm ( ( ( this . val ) > > ( t.intValue ( ) ) ) ) ; }

Target:
public com.googlecode.prolog_cafe.lang.NumberTerm shiftRight ( com.googlecode.prolog_cafe.lang.NumberTerm t ) { if ( t instanceof com.googlecode.prolog_cafe.lang.DoubleTerm ) throw new com.googlecode.prolog_cafe.exceptions.IllegalTypeException ( "integer" , t ) ; return new com.googlecode.prolog_cafe.lang.IntegerTerm ( ( ( this . val ) > > ( t.intValue ( ) ) ) ) ; }
Source:
private PushOneCommit.Result createChange ( ) 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/for/master" ) ; }

Target:
private PushOneCommit.Result createChange ( ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , admin.getIdent ( ) , "test commit" , "a.txt" , "some content" ) ; return push.to ( git , "refs/for/master" ) ; }
Source:
public static java.lang.String toEditScreen ( com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName , int line ) { return com.google.gerrit.client.Dispatcher.toPatch ( "edit" , null , revision , fileName , null , line ) ; }

Target:
public static java.lang.String toEditScreen ( com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName , int line ) { return com.google.gerrit.client.Dispatcher.toPatch ( "edit" , com.google.gerrit.client.DiffObject.base ( ) , revision , fileName , null , line ) ; }
Source:
public void setSession ( final org.apache.sshd.server.session.ServerSession session ) { this . context = sshScope.newContext ( session.getAttribute ( SshSession.KEY ) , "" ) ; }

Target:
public void setSession ( final org.apache.sshd.server.session.ServerSession session ) { com.google.gerrit.sshd.SshSession s = session.getAttribute ( SshSession.KEY ) ; this . context = sshScope.newContext ( schemaFactory , s , "" ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { toggleShowIntraline ( ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { toggleReviewed ( ) . run ( ) ; }
Source:
public boolean isVisible ( ) { return canPerform ( ApprovalCategory.READ , ( ( short ) ( 1 ) ) ) ; }

Target:
public com.google.gerrit.server.project.ChangeControl controlFor ( final com.google.gerrit.reviewdb.Change change ) { return new com.google.gerrit.server.project.ChangeControl ( controlForRef ( change.getDest ( ) ) , change ) ; }
Source:
public com.google.gwtexpui.safehtml.client.SafeHtml linkify ( ) { return replaceAll ( ( "(https?://" + ( ( ( ( ( "[a-zA-Z0-9$_.+!*',%;:@&=?#/-]{2,}" + "([(]" ) + "[a-zA-Z0-9$_.+!*',%;:@&=?#/-]*" ) + "[)])*" ) + "[a-zA-Z0-9$_.+!*',%;:@&=?#/-]*" ) + ")" ) ) , "<a href=\"$1\">$1</a>" ) ; }

Target:
public com.google.gwtexpui.safehtml.client.SafeHtml linkify ( ) { final java.lang.String part = "(?:" + ( ( "[a-zA-Z0-9$_.+!*',%;:@=?#/-]" + "|&(?!lt;|gt;)" ) + ")" ) ; return replaceAll ( ( ( ( ( ( ( ( ( ( "(https?://" + part ) + "{2,}" ) + "(?:[(]" ) + part ) + "*" ) + "[)])*" ) + part ) + "*" ) + ")" ) , "<a href=\"$1\">$1</a>" ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( project ( ) . get ( ) , filter ( ) ) ; }

Target:
public java.util.List < com.google.gerrit.server.git.ValidationError > getValidationErrors ( ) { if ( ( validationErrors ) != null ) { return com.google.common.collect.ImmutableList.copyOf ( validationErrors ) ; } return com.google.common.collect.ImmutableList.of ( ) ; }
Source:
public java.lang.Object createEntry ( final java.lang.Object key ) throws java.lang.Exception { return lookup ( ( ( com.google.gerrit.client.reviewdb.AccountGroup.Id ) ( key ) ) ) ; }

Target:
public com.google.gerrit.client.reviewdb.AccountGroup createEntry ( final com.google.gerrit.client.reviewdb.AccountGroup.Id key ) throws java.lang.Exception { return lookup ( key ) ; }
Source:
protected void submit ( java.lang.String changeId ) throws java.lang.Exception { submit ( changeId , HttpStatus.SC_OK , null ) ; }

Target:
protected void submit ( java.lang.String changeId ) throws java.lang.Exception { submit ( changeId , new com.google.gerrit.extensions.api.changes.SubmitInput ( ) , null , null , true ) ; }
Source:
public static boolean isStreamingResponse ( javax.servlet.http.HttpServletRequest req ) { return com.google.common.base.Objects.firstNonNull ( ( ( java.lang.Boolean ) ( req.getAttribute ( com.google.gitiles.BaseServlet.STREAMING_ATTRIBUTE ) ) ) , false ) ; }

Target:
public static boolean isStreamingResponse ( javax.servlet.http.HttpServletRequest req ) { return com.google.common.base.MoreObjects.firstNonNull ( ( ( java.lang.Boolean ) ( req.getAttribute ( com.google.gitiles.BaseServlet.STREAMING_ATTRIBUTE ) ) ) , false ) ; }
Source:
public static boolean isOAuthFinal ( javax.servlet.http.HttpServletRequest request ) { return ( com.google.common.base.Strings.emptyToNull ( request.getParameter ( "code" ) ) ) != null ; }

Target:
public static boolean isOAuthFinal ( javax.servlet.http.HttpServletRequest request ) { return ( ( com.google.common.base.Strings.emptyToNull ( request.getParameter ( "code" ) ) ) != null ) && ( ( request.getParameter ( com.googlesource.gerrit.plugins.github.oauth.OAuthProtocol.FINAL_URL_PARAM ) ) == null ) ; }
Source:
public void setHeader ( java.lang.String name , java.lang.String value ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public void addHeader ( java.lang.String name , java.lang.String value ) { headers.put ( name , value ) ; }
Source:
private void publishDrafts ( ) throws com.google.gwtorm.client.OrmException { for ( final com.google.gerrit.reviewdb.PatchLineComment c : drafts ) { c.setStatus ( PatchLineComment.Status.PUBLISHED ) ; c.updated ( ) ; } db.patchComments ( ) . update ( drafts ) ; }

Target:
private void publishDrafts ( ) throws com.google.gwtorm.server.OrmException { for ( final com.google.gerrit.reviewdb.client.PatchLineComment c : drafts ) { c.setStatus ( PatchLineComment.Status.PUBLISHED ) ; c.updated ( ) ; } db.patchComments ( ) . update ( drafts ) ; }
Source:
private void infoRow ( final int row , final java.lang.String name ) { info.setText ( row , labelIdx , name ) ; info.getCellFormatter ( ) . addStyleName ( row , 0 , "header" ) ; }

Target:
private void infoRow ( final int row , final java.lang.String name ) { info.setText ( row , labelIdx , name ) ; info.getCellFormatter ( ) . addStyleName ( row , 0 , Gerrit.RESOURCES.css ( ) . header ( ) ) ; }
Source:
public com.google.gwtorm.server.ResultSet < com.google.gerrit.reviewdb.client.Change > get ( java.lang.Iterable < com.google.gerrit.reviewdb.client.Change.Id > keys ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.server.schema.DisabledChangesReviewDbWrapper.MSG ) ; }

Target:
public com.google.gwtorm.server.ResultSet < com.google.gerrit.reviewdb.client.Change > get ( java.lang.Iterable < com.google.gerrit.reviewdb.client.Change.Id > keys ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.reviewdb.server.DisabledChangesReviewDbWrapper.MSG ) ; }
Source:
public void setSampledStatisticsEnabled ( boolean enableStatistics ) { self.setSampledStatisticsEnabled ( enableStatistics ) ; }

Target:
public void setStatisticsEnabled ( boolean enableStatistics ) { self ( ) . setStatisticsEnabled ( enableStatistics ) ; }
Source:
private static boolean isGoogleAccount ( final com.dyuproject.openid.OpenIdUser user ) { return user.getClaimedId ( ) . startsWith ( ( ( com.google.gerrit.client.openid.OpenIdUtil.URL_GOOGLE ) + "?" ) ) ; }

Target:
private static boolean isGoogleAccount ( final org.openid4java.discovery.Identifier user ) { return user.getIdentifier ( ) . startsWith ( ( ( com.google.gerrit.client.openid.OpenIdUtil.URL_GOOGLE ) + "?" ) ) ; }
Source:
private int search ( java.lang.String fileName ) { com.google.gerrit.server.patch.PatchListEntry want = com.google.gerrit.server.patch.PatchListEntry.empty ( fileName ) ; return java.util.Arrays.binarySearch ( patches , 0 , patches.length , want , com.google.gerrit.server.patch.PatchList.PATCH_CMP ) ; }

Target:
private int search ( java.lang.String fileName ) { com.google.gerrit.server.diff.PatchListEntry want = com.google.gerrit.server.diff.PatchListEntry.empty ( fileName ) ; return java.util.Arrays.binarySearch ( patches , 0 , patches.length , want , com.google.gerrit.server.diff.PatchList.PATCH_CMP ) ; }
Source:
public boolean canAddPatchSet ( ) { return getRefControl ( ) . canUpload ( ) ; }

Target:
public boolean canAddPatchSet ( com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException { return ( getRefControl ( ) . canUpload ( ) ) && ( ! ( isPatchSetLocked ( db ) ) ) ; }
Source:
private static boolean isSafe ( org.spearce.jgit.lib.RepositoryConfig cfg , java.lang.String type , boolean def ) { return cfg.getBoolean ( com.google.gerrit.server.MimeUtilFileTypeRegistry.SECTION_MIMETYPE , type , com.google.gerrit.server.MimeUtilFileTypeRegistry.KEY_SAFE , def ) ; }

Target:
private static boolean isSafe ( org.spearce.jgit.lib.Config cfg , java.lang.String type , boolean def ) { return cfg.getBoolean ( com.google.gerrit.server.MimeUtilFileTypeRegistry.SECTION_MIMETYPE , type , com.google.gerrit.server.MimeUtilFileTypeRegistry.KEY_SAFE , def ) ; }
Source:
public void onFailure ( java.lang.Throwable err ) { relatedChangesTab.setTitle ( Resources.M.relatedChanges ( Resources.C.notAvailable ( ) ) ) ; relatedChangesTab.setError ( err.getMessage ( ) ) ; }

Target:
private com.google.gerrit.client.change.RelatedChangesTab getTab ( ) { if ( ( relatedChangesTab ) == null ) { relatedChangesTab = createTab ( Resources.C.relatedChanges ( ) , Resources.C.relatedChangesTooltip ( ) ) ; } return relatedChangesTab ; }
Source:
, @ com.google.gerrit.acceptance.GerritConfig ( name = "suggest.fullTextSearchMaxMatches" , value = "2" ) } ) public void suggestReviewersFullTextSearchLimitMaxMatches ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; java.util.List < com.google.gerrit.server.change.SuggestReviewers.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , "ser" , 3 ) ; org.junit.Assert.assertEquals ( 2 , reviewers.size ( ) ) ; }

Target:
, @ com.google.gerrit.acceptance.GerritConfig ( name = "suggest.fullTextSearchMaxMatches" , value = "2" ) } ) public void suggestReviewersFullTextSearchLimitMaxMatches ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; java.util.List < com.google.gerrit.extensions.common.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , "ser" , 3 ) ; com.google.common.truth.Truth.assertThat ( reviewers ) . hasSize ( 2 ) ; }
Source:
public static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.account.AccountState > externalId ( java.lang.String externalId ) { return new com.google.gerrit.server.query.account.AccountPredicates.AccountPredicate ( com.google.gerrit.server.index.account.AccountField.EXTERNAL_ID , externalId ) ; }

Target:
public static com.google.gerrit.index.query.Predicate < com.google.gerrit.server.account.AccountState > externalId ( java.lang.String externalId ) { return new com.google.gerrit.server.query.account.AccountPredicates.AccountPredicate ( com.google.gerrit.server.index.account.AccountField.EXTERNAL_ID , externalId ) ; }
Source:
public com.google.gerrit.extensions.api.changes.ChangeApi id ( java.lang.String project , int id ) { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }

Target:
public com.google.gerrit.extensions.api.changes.ChangeApi id ( java.lang.String project , int id ) throws com.google.gerrit.extensions.restapi.RestApiException { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }
Source:
public void testEventSentFailed ( ) throws java.lang.Exception { com.google.gerrit.server.events.Event event = setUpMocksForEvent ( false , "Error" , false ) ; com.google.common.truth.Truth.assertThat ( restForwarder.send ( event ) ) . isFalse ( ) ; }

Target:
public void testEventSentFailed ( ) throws java.lang.Exception { com.google.gerrit.server.events.Event event = setUpMocksForEvent ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestForwarderTest.FAILED , com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestForwarderTest.ERROR_MSG , com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestForwarderTest.DO_NOT_THROW_EXCEPTION ) ; com.google.common.truth.Truth.assertThat ( restForwarder.send ( event ) ) . isFalse ( ) ; }
Source:
public java.util.List < com.google.gerrit.reviewdb.AccountProjectWatch > byProject ( com.google.gerrit.reviewdb.Project.NameKey name ) { return byProjectName.get ( name ) . list ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < java.util.List < com.google.gerrit.reviewdb.AccountProjectWatch > > byProject ( com.google.gerrit.reviewdb.Project.NameKey name ) { return com.google.common.util.concurrent.Futures.compose ( byProjectName.get ( name ) , com.google.gerrit.server.account.AccountProjectWatchCacheImpl.unpack ) ; }
Source:
private void initMac ( ) { setMacFactories ( java.util.Arrays.< org.apache.sshd.common.NamedFactory < org.apache.sshd.common.Mac > > asList ( new org.apache.sshd.common.mac.HMACMD5.Factory ( ) , new org.apache.sshd.common.mac.HMACSHA1.Factory ( ) , new org.apache.sshd.common.mac.HMACMD596.Factory ( ) , new org.apache.sshd.common.mac.HMACSHA196.Factory ( ) ) ) ; }

Target:
private void initMacs ( final org.spearce.jgit.lib.RepositoryConfig cfg ) { setMacFactories ( com.google.gerrit.server.ssh.GerritSshDaemon.filter ( cfg , "mac" , new org.apache.sshd.common.mac.HMACMD5.Factory ( ) , new org.apache.sshd.common.mac.HMACSHA1.Factory ( ) , new org.apache.sshd.common.mac.HMACMD596.Factory ( ) , new org.apache.sshd.common.mac.HMACSHA196.Factory ( ) ) ) ; }
Source:
private static java.lang.String addEndSlash ( java.lang.String input ) { return input.endsWith ( "/" ) ? input : input.concat ( "/" ) ; }

Target:
private java.lang.String reduceWildcard ( java.lang.String input ) { if ( input.endsWith ( "*" ) ) { wildcardBranch = true ; return input.substring ( 0 , input.indexOf ( "*" ) ) ; } else { wildcardBranch = false ; return input ; } }
Source:
private boolean canRestore ( com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException { return ( canAbandon ( db ) ) && ( getRefControl ( ) . canUpload ( ) ) ; }

Target:
private boolean canRestore ( com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException { return ( canAbandon ( db ) ) && ( refControl.asForRef ( ) . testOrFalse ( RefPermission.CREATE_CHANGE ) ) ; }
Source:
public com.googlecode.prolog_cafe.lang.Term getMessageTerm ( ) { com.googlecode.prolog_cafe.lang.Term [ ] args = new com.googlecode.prolog_cafe.lang.Term [ ] { com.googlecode.prolog_cafe.lang.SymbolTerm.create ( message ) } ; return new com.googlecode.prolog_cafe.lang.StructureTerm ( com.googlecode.prolog_cafe.lang.InternalException.INTERNAL_ERROR , args ) ; }

Target:
public com.googlecode.prolog_cafe.lang.Term getMessageTerm ( ) { com.googlecode.prolog_cafe.lang.Term [ ] args = new com.googlecode.prolog_cafe.lang.Term [ ] { com.googlecode.prolog_cafe.lang.SymbolTerm.create ( message ) } ; return new com.googlecode.prolog_cafe.lang.StructureTerm ( com.googlecode.prolog_cafe.exceptions.InternalException.INTERNAL_ERROR , args ) ; }
Source:
public static com.google.gerrit.extensions.client.GeneralPreferencesInfo readDefaultPreferences ( org.eclipse.jgit.lib.Repository allUsersRepo ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { return com.google.gerrit.server.account.PreferencesConfig.parse ( com.google.gerrit.server.account.PreferencesConfig.readDefaultConfig ( allUsersRepo ) , null , null ) ; }

Target:
public static com.google.gerrit.extensions.client.GeneralPreferencesInfo readDefaultGeneralPreferences ( org.eclipse.jgit.lib.Repository allUsersRepo ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { return com.google.gerrit.server.account.PreferencesConfig.parseGeneralPreferences ( com.google.gerrit.server.account.PreferencesConfig.readDefaultConfig ( allUsersRepo ) , null , null ) ; }
Source:
private WorkQueue.Executor getExecutor ( ) { return queue.getQueue ( user.get ( ) . getCapabilities ( ) . getQueueType ( ) ) ; }

Target:
private java.util.concurrent.ScheduledThreadPoolExecutor getExecutor ( ) { com.google.gerrit.server.git.QueueProvider.QueueType qt = capabilityFactory.create ( user.get ( ) ) . getQueueType ( ) ; return queue.getQueue ( qt ) ; }
Source:
final native void set_revision_number ( int n ) ;

Target:
final native void setRevisionNumber ( int n ) ;
Source:
public void run ( ) { apply.run ( ) ; }

Target:
void operation ( java.lang.Runnable apply ) { cmA.operation ( ( ) -> { cmB.operation ( apply :: run ) ; } ) ; }
Source:
public static void defaultDashboard ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gwtjsonrpc.common.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.gwtjsonrpc.common.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 ) ; }
Source:
public int getEffectiveMaxBatchChangesLimit ( com.google.gerrit.server.CurrentUser user ) { if ( user.getCapabilities ( ) . canPerform ( com.google.gerrit.common.data.GlobalCapability.BATCH_CHANGES_LIMIT ) ) { return user.getCapabilities ( ) . getRange ( com.google.gerrit.common.data.GlobalCapability.BATCH_CHANGES_LIMIT ) . getMax ( ) ; } return systemMaxBatchChanges ; }

Target:
public int getEffectiveMaxBatchChangesLimit ( com.google.gerrit.server.CurrentUser user ) { com.google.gerrit.server.account.CapabilityControl cap = user.getCapabilities ( ) ; if ( cap.hasExplicitRange ( com.google.gerrit.common.data.GlobalCapability.BATCH_CHANGES_LIMIT ) ) { return cap.getRange ( com.google.gerrit.common.data.GlobalCapability.BATCH_CHANGES_LIMIT ) . getMax ( ) ; } return systemMaxBatchChanges ; }
Source:
public void onSuccess ( final com.google.gerrit.client.groups.GroupInfo result ) { addIncludeBox.setEnabled ( true ) ; addIncludeBox.setText ( "" ) ; includes.insert ( result ) ; }

Target:
public void onSuccess ( final com.google.gerrit.client.info.GroupInfo result ) { addIncludeBox.setEnabled ( true ) ; addIncludeBox.setText ( "" ) ; includes.insert ( result ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.client.Dispatcher.toEditScreen ( new com.google.gerrit.reviewdb.client.PatchSet.Id ( result.legacyId ( ) , 1 ) , "project.config" ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.client.Dispatcher.toEditScreen ( new com.google.gerrit.reviewdb.client.PatchSet.Id ( result.legacyId ( ) , 1 ) , "project.config" ) ) ; }
Source:
public com.google.gerrit.extensions.common.ChangeInfo check ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return check.apply ( change ) . value ( ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot check change" , e ) ; } }

Target:
public com.google.gerrit.extensions.common.ChangeInfo check ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return check.apply ( change ) . value ( ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot check change" , e ) ; } }
Source:
public static com.google.gerrit.reviewdb.client.Change newChange ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.server.IdentifiedUser user ) { return com.google.gerrit.testutil.TestChanges.newChange ( project , user , com.google.gerrit.testutil.TestChanges.nextChangeId.getAndIncrement ( ) ) ; }

Target:
public static com.google.gerrit.reviewdb.client.Change newChange ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Account.Id userId ) { return com.google.gerrit.testutil.TestChanges.newChange ( project , userId , com.google.gerrit.testutil.TestChanges.nextChangeId.getAndIncrement ( ) ) ; }
Source:
java.nio.file.Path targetPath ( com.google.gerrit.httpd.raw.BuildSystem.Label l ) ;

Target:
abstract java.lang.String buildCommand ( com.google.gerrit.httpd.raw.BuildSystem.Label l ) ;
Source:
javax.servlet.http.HttpServlet getPolyGerritUiIndexServlet ( @ com.google.inject.name.Named ( value = com.google.gerrit.httpd.raw.StaticModule.CACHE ) com.google.common.cache.Cache < java.nio.file.Path , com.google.gerrit.httpd.raw.ResourceServlet.Resource > cache ) { return new com.google.gerrit.httpd.raw.SingleFileServlet ( cache , polyGerritBasePath ( ) . resolve ( "index.html" ) , isDev ( ) ) ; }

Target:
javax.servlet.http.HttpServlet getPolyGerritUiIndexServlet ( @ com.google.inject.name.Named ( value = com.google.gerrit.httpd.raw.StaticModule.CACHE ) com.google.common.cache.Cache < java.nio.file.Path , com.google.gerrit.httpd.raw.ResourceServlet.Resource > cache ) { return new com.google.gerrit.httpd.raw.SingleFileServlet ( cache , polyGerritBasePath ( ) . resolve ( "index.html" ) , getPaths ( ) . isDev ( ) ) ; }
Source:
private java.lang.String createMyChange ( ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , user.getIdent ( ) , git ) ; return push.to ( "refs/for/master" ) . getChangeId ( ) ; }

Target:
private java.lang.String createMyChange ( ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , user.getIdent ( ) , testRepo ) ; return push.to ( "refs/for/master" ) . getChangeId ( ) ; }
Source:
public void returnDefaultforNullMap ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( com.ericsson.gerrit.plugins.eventslog.sql.QueryMakerTest.queryMaker.formQueryFromRequestParameters ( null ) ) . isEqualTo ( com.ericsson.gerrit.plugins.eventslog.sql.QueryMakerTest.defaultQuery ) ; }

Target:
public void returnDefaultQueryforNullMap ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( queryMaker.formQueryFromRequestParameters ( null ) ) . isEqualTo ( defaultQuery ) ; }
Source:
protected void onInitUI ( ) { super . onInitUI ( ) ; panel = new com.google.gerrit.client.account.ContactPanelFull ( ) { @ java.lang.Override void display ( ) { com.google.gerrit.client.account.MyContactInformationScreen.this . display ( ) ; } } ; add ( panel ) ; }

Target:
protected void onInitUI ( ) { super . onInitUI ( ) ; panel = new com.google.gerrit.client.account.ContactPanelShort ( ) { @ java.lang.Override void display ( ) { com.google.gerrit.client.account.MyContactInformationScreen.this . display ( ) ; } } ; add ( panel ) ; }
Source:
protected void onOpenItem ( final com.google.gerrit.client.reviewdb.Project item ) { com.google.gwt.user.client.History.newItem ( com.google.gerrit.client.Link.toProjectAdmin ( item.getId ( ) ) ) ; }

Target:
private java.lang.String link ( final com.google.gerrit.client.reviewdb.Project item ) { return com.google.gerrit.client.Link.toProjectAdmin ( item.getId ( ) , ProjectAdminScreen.INFO_TAB ) ; }
Source:
private com.google.gerrit.common.changes.Side getSideFromCm ( net.codemirror.lib.CodeMirror cm ) { return cm == ( cmA ) ? com.google.gerrit.common.changes.Side.PARENT : com.google.gerrit.common.changes.Side.REVISION ; }

Target:
private com.google.gerrit.client.diff.SideBySide2.DisplaySide getSideFromCm ( net.codemirror.lib.CodeMirror cm ) { return cm == ( cmA ) ? com.google.gerrit.client.diff.SideBySide2.DisplaySide.A : com.google.gerrit.client.diff.SideBySide2.DisplaySide.B ; }
Source:
public static java.lang.String toChangeQuery ( final java.lang.String query ) { return com.google.gerrit.common.PageLinks.toChangeQuery ( query , com.google.gerrit.common.PageLinks.TOP ) ; }

Target:
public static java.lang.String toChangeQuery ( java.lang.String query ) { return ( com.google.gerrit.common.PageLinks.QUERY ) + ( com.google.gwtorm.client.KeyUtil.encode ( query ) ) ; }
Source:
private void wantGroup ( final com.google.gerrit.client.reviewdb.AccountGroup.Id id ) { groups.put ( id , null ) ; }

Target:
public void setGroups ( final java.util.Map < com.google.gerrit.client.reviewdb.AccountGroup.Id , com.google.gerrit.client.reviewdb.AccountGroup > g ) { groups = g ; }
Source:
public com.google.gerrit.server.query.change.ChangeDataSource getSource ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p ) throws com.google.gerrit.server.query.QueryParseException ;

Target:
public com.google.gerrit.server.query.change.ChangeDataSource getSource ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p , int limit ) throws com.google.gerrit.server.query.QueryParseException ;
Source:
public java.lang.String onSubmit ( java.lang.String newCommitMessage , org.eclipse.jgit.revwalk.RevCommit original , org.eclipse.jgit.revwalk.RevCommit mergeTip , com.google.gerrit.server.project.ChangeControl ctl ) { return ( newCommitMessage + "Custom: " ) + ( ctl.getChange ( ) . getDest ( ) . get ( ) ) ; }

Target:
public java.lang.String onSubmit ( java.lang.String newCommitMessage , org.eclipse.jgit.revwalk.RevCommit original , org.eclipse.jgit.revwalk.RevCommit mergeTip , com.google.gerrit.reviewdb.client.Branch.NameKey destination ) { return ( newCommitMessage + "Custom: " ) + ( destination.get ( ) ) ; }
Source:
public void cancel ( ) { final com.google.gerrit.sshd.SshScope.Context old = com.google.gerrit.sshd.SshScope.set ( context ) ; try { onExit ( com.google.gerrit.sshd.BaseCommand.STATUS_CANCEL ) ; } finally { com.google.gerrit.sshd.SshScope.set ( old ) ; } }

Target:
public void cancel ( ) { synchronized ( this ) { final com.google.gerrit.sshd.SshScope.Context old = sshScope.set ( context ) ; try { onExit ( com.google.gerrit.sshd.BaseCommand.STATUS_CANCEL ) ; } finally { sshScope.set ( old ) ; } } }
Source:
public static final native net.codemirror.lib.LineCharacter pos ( int line , int ch ) ;

Target:
public final native net.codemirror.lib.Vim vim ( ) ;