auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public com.google.gerrit.server.project.FileResource parse ( com.google.gerrit.server.project.CommitResource parent , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { return new com.google.gerrit.server.project.FileResource ( parent.getProject ( ) , parent.getCommit ( ) , id.get ( ) ) ; }

Target:
public com.google.gerrit.server.project.FileResource parse ( com.google.gerrit.server.project.CommitResource parent , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException , java.io.IOException { return com.google.gerrit.server.project.FileResource.create ( repoManager , parent.getProject ( ) , parent.getCommit ( ) , id.get ( ) ) ; }
Source:
public void addEventListener ( com.google.gerrit.common.EventListener listener , com.google.gerrit.server.CurrentUser user ) { }

Target:
public void doReviewerDeletedHook ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.Account account , com.google.gerrit.reviewdb.client.PatchSet patchSet , java.lang.String comment , java.util.Map < java.lang.String , java.lang.Short > approvals , java.util.Map < java.lang.String , java.lang.Short > oldApprovals , com.google.gerrit.reviewdb.server.ReviewDb db ) { }
Source:
static void invoke ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.client.actions.ActionInfo action , com.google.gerrit.client.rpc.RestApi api ) { com.google.gerrit.client.api.DefaultActions.invoke ( action , api , com.google.gerrit.client.api.DefaultActions.callback ( com.google.gerrit.common.PageLinks.toProject ( project ) ) ) ; }

Target:
static void invoke ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.client.info.ActionInfo action , com.google.gerrit.client.rpc.RestApi api ) { com.google.gerrit.client.api.DefaultActions.invoke ( action , api , com.google.gerrit.client.api.DefaultActions.callback ( com.google.gerrit.common.PageLinks.toProject ( project ) ) ) ; }
Source:
protected com.google.gerrit.server.change.ChangeJson.ChangeInfo getChange ( java.lang.String changeId , com.google.gerrit.common.changes.ListChangesOption ... options ) throws java.io.IOException { return getChange ( adminSession , changeId , options ) ; }

Target:
protected com.google.gerrit.server.change.ChangeJson.ChangeInfo getChange ( java.lang.String changeId , com.google.gerrit.extensions.common.ListChangesOption ... options ) throws java.io.IOException { return getChange ( adminSession , changeId , options ) ; }
Source:
protected void preDisplay ( com.google.gerrit.client.projects.ConfigInfoCache.Entry result ) { commentLinkProcessor = result.getCommentLinkProcessor ( ) ; setTheme ( result.getTheme ( ) ) ; com.google.gerrit.client.diff.DiffInfo diffInfo = diff ; diff = null ; display ( diffInfo ) ; }

Target:
public void run ( ) { fixScroll ( cmA ) ; }
Source:
public static java.lang.String toChange ( final com.google.gerrit.reviewdb.client.Change.Id c ) { return ( "/c/" + c ) + "/" ; }

Target:
public static java.lang.String toChange ( @ com.google.gerrit.common.Nullable com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id c ) { return ( com.google.gerrit.common.PageLinks.toChangeNoSlash ( project , c ) ) + "/" ; }
Source:
public final native void setScrollSetByOther ( boolean setByOther ) ;

Target:
public final native void setScrollSetAt ( double when ) ;
Source:
static boolean traceServerMsg ( ) { return ( com.googlesource.gerrit.plugins.findowners.Config.TRACE_SERVER_MSG ) && ( com.googlesource.gerrit.plugins.findowners.Config.addDebugMsg ) ; }

Target:
static int getMaxCacheSize ( ) { return com.googlesource.gerrit.plugins.findowners.Config.maxCacheSize ; }
Source:
public com.google.gerrit.client.rpc.RestApi data ( com.google.gwt.json.client.JSONObject obj ) { contentType = com.google.gwtjsonrpc.common.JsonConstants.JSON_REQ_CT ; contentData = obj.toString ( ) ; return this ; }

Target:
public com.google.gerrit.client.rpc.RestApi data ( com.google.gwt.json.client.JSONObject obj ) { contentType = ( com.google.gerrit.client.rpc.RestApi.JSON_TYPE ) + "; charset=utf-8" ; contentData = obj.toString ( ) ; return this ; }
Source:
public com.google.gerrit.server.group.GroupOptionsInfo apply ( com.google.gerrit.server.group.GroupResource resource ) { return new com.google.gerrit.server.group.GroupOptionsInfo ( resource.getGroup ( ) ) ; }

Target:
public com.google.gerrit.extensions.common.GroupOptionsInfo apply ( com.google.gerrit.server.group.GroupResource resource ) { return com.google.gerrit.server.group.GroupJson.createOptions ( resource.getGroup ( ) ) ; }
Source:
public void remove ( ) { for ( java.lang.String name : names ) { registry.remove ( name ) ; } }

Target:
public void remove ( ) { descriptions.remove ( name ) ; registry.remove ( name ) ; }
Source:
protected void doGet ( final javax.servlet.http.HttpServletRequest req , final javax.servlet.http.HttpServletResponse rsp ) throws java.io.IOException { com.google.gerrit.httpd.UrlModule.toGerrit ( req.getRequestURI ( ) , req , rsp ) ; }

Target:
protected void doGet ( final javax.servlet.http.HttpServletRequest req , final javax.servlet.http.HttpServletResponse rsp ) throws java.io.IOException { com.google.gerrit.httpd.UrlModule.toGerrit ( req.getRequestURI ( ) . substring ( req.getContextPath ( ) . length ( ) ) , req , rsp ) ; }
Source:
protected void submitWithConflict ( java.lang.String changeId , java.lang.String expectedError ) throws java.lang.Exception { submit ( changeId , HttpStatus.SC_CONFLICT , expectedError ) ; }

Target:
protected void submit ( java.lang.String changeId ) throws java.lang.Exception { submit ( changeId , new com.google.gerrit.extensions.api.changes.SubmitInput ( ) , null , null ) ; }
Source:
public void cancel ( ) { try { SshScopes.current.set ( context ) ; onExit ( 15 ) ; } finally { SshScopes.current.set ( null ) ; } }

Target:
public void cancel ( ) { try { SshScopes.current.set ( context ) ; onExit ( com.google.gerrit.sshd.BaseCommand.STATUS_CANCEL ) ; } finally { SshScopes.current.set ( null ) ; } }
Source:
private static dk.brics.automaton.RegExp toRegExp ( java.lang.String refPattern ) { if ( refPattern.startsWith ( RefRight.REGEX_PREFIX ) ) { refPattern = refPattern.substring ( 1 ) ; } return new dk.brics.automaton.RegExp ( refPattern ) ; }

Target:
private static dk.brics.automaton.RegExp toRegExp ( java.lang.String refPattern ) { if ( com.google.gerrit.server.project.RefControl.isRE ( refPattern ) ) { refPattern = refPattern.substring ( 1 ) ; } return new dk.brics.automaton.RegExp ( refPattern ) ; }
Source:
public abstract com.google.protobuf.ByteString encode ( T obj ) ;

Target:
protected abstract void encode ( T obj , com.google.protobuf.CodedOutputStream out ) ;
Source:
public static com.google.gerrit.acceptance.git.GitUtil.Commit createCommit ( org.eclipse.jgit.api.Git git , org.eclipse.jgit.lib.PersonIdent i , java.lang.String msg ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { return com.google.gerrit.acceptance.git.GitUtil.createCommit ( git , i , msg , null ) ; }

Target:
public static com.google.gerrit.acceptance.GitUtil.Commit createCommit ( org.eclipse.jgit.api.Git git , org.eclipse.jgit.lib.PersonIdent i , java.lang.String msg ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { return com.google.gerrit.acceptance.GitUtil.createCommit ( git , i , msg , null ) ; }
Source:
public java.lang.String getReplacementString ( ) { return info.getName ( ) ; }

Target:
public java.lang.String getDisplayString ( ) { return info.name ( ) ; }
Source:
private static void assertNotOwner ( java.lang.String ref , com.google.gerrit.server.project.ProjectControl u ) { org.junit.Assert.assertFalse ( ( "NOT OWN " + ref ) , u.controlForRef ( ref ) . isOwner ( ) ) ; }

Target:
private void assertNotOwner ( com.google.gerrit.server.project.ProjectControl u ) { com.google.common.truth.Truth.assertThat ( u.isOwner ( ) ) . named ( "not owner" ) . isFalse ( ) ; }
Source:
com.google.gerrit.server.index.ChangeIndexer create ( com.google.gerrit.server.index.ChangeIndex index ) ;

Target:
com.google.gerrit.server.index.ChangeIndexer create ( com.google.common.util.concurrent.ListeningExecutorService executor , com.google.gerrit.server.index.ChangeIndex index ) ;
Source:
public void setLocalUser ( final java.lang.String localUser ) { if ( isScheme ( com.google.gerrit.reviewdb.client.AccountExternalId.SCHEME_GERRIT ) ) { final com.google.gerrit.reviewdb.client.AccountExternalId.Key key = new com.google.gerrit.reviewdb.client.AccountExternalId.Key ( com.google.gerrit.reviewdb.client.AccountExternalId.SCHEME_GERRIT , localUser ) ; externalId = key.get ( ) ; } }

Target:
public void setLocalUser ( java.lang.String localUser ) { if ( externalId.isScheme ( com.google.gerrit.server.account.ExternalId.SCHEME_GERRIT ) ) { externalId = ExternalId.Key.create ( com.google.gerrit.server.account.ExternalId.SCHEME_GERRIT , localUser ) ; } }
Source:
public static com.google.gerrit.server.patch.PatchListKey againstParentNum ( int parentNum , org.eclipse.jgit.lib.AnyObjectId newId , com.google.gerrit.extensions.client.DiffPreferencesInfo.Whitespace ws ) { return new com.google.gerrit.server.patch.PatchListKey ( parentNum , newId , ws ) ; }

Target:
public static com.google.gerrit.server.patch.PatchListKey againstParentNum ( int parentNum , org.eclipse.jgit.lib.AnyObjectId newId , com.google.gerrit.extensions.client.DiffPreferencesInfo.Whitespace ws ) { return new com.google.gerrit.server.patch.PatchListKey ( parentNum , newId , ws , com.google.gerrit.server.patch.PatchListKey.Algorithm.OPTIMIZED_DIFF ) ; }
Source:
public void testSyncIndexTaskToString ( ) throws java.lang.Exception { com.ericsson.gerrit.plugins.syncindex.IndexEventHandler.SyncIndexTask syncIndexTask = indexEventHandler.new com.ericsson.gerrit.plugins.syncindex.IndexEventHandler.SyncIndexTask ( com.ericsson.gerrit.plugins.syncindex.IndexEventHandlerTest.CHANGE_ID , false ) ; com.google.common.truth.Truth.assertThat ( syncIndexTask.toString ( ) ) . isEqualTo ( java.lang.String.format ( "[%s] Index change %s in target instance" , com.ericsson.gerrit.plugins.syncindex.IndexEventHandlerTest.PLUGIN_NAME , com.ericsson.gerrit.plugins.syncindex.IndexEventHandlerTest.CHANGE_ID ) ) ; }

Target:
public void testSyncIndexTaskToString ( ) throws java.lang.Exception { com.ericsson.gerrit.plugins.multimaster.IndexEventHandler.SyncIndexTask syncIndexTask = indexEventHandler.new com.ericsson.gerrit.plugins.multimaster.IndexEventHandler.SyncIndexTask ( com.ericsson.gerrit.plugins.multimaster.IndexEventHandlerTest.CHANGE_ID , false ) ; com.google.common.truth.Truth.assertThat ( syncIndexTask.toString ( ) ) . isEqualTo ( java.lang.String.format ( "[%s] Index change %s in target instance" , com.ericsson.gerrit.plugins.multimaster.IndexEventHandlerTest.PLUGIN_NAME , com.ericsson.gerrit.plugins.multimaster.IndexEventHandlerTest.CHANGE_ID ) ) ; }
Source:
public com.google.gerrit.extensions.common.WebLinkInfo getPathSetWebLink ( java.lang.String projectName , java.lang.String commit ) { return new com.google.gerrit.extensions.common.WebLinkInfo ( name , myImageUrl , java.lang.String.format ( placeHolderUrlProjectCommit , projectName , commit ) , com.google.gerrit.extensions.webui.WebLinkTarget.BLANK ) ; }

Target:
public com.google.gerrit.extensions.common.WebLinkInfo getPathSetWebLink ( java.lang.String projectName , java.lang.String commit ) { return new com.google.gerrit.extensions.common.WebLinkInfo ( name , myImageUrl , java.lang.String.format ( placeHolderUrlProjectCommit , projectName , commit ) , Target.BLANK ) ; }
Source:
public com.google.gerrit.pgm.init.api.Section get ( java.lang.String name , java.lang.String subsection ) { return new com.google.gerrit.pgm.init.api.Section ( flags , site , ui , name , subsection ) ; }

Target:
public com.google.gerrit.pgm.init.api.Section get ( java.lang.String name , java.lang.String subsection ) { return new com.google.gerrit.pgm.init.api.Section ( flags , site , secureStore , ui , name , subsection ) ; }
Source:
public short normalize ( com.google.gerrit.reviewdb.ApprovalCategory.Id category , short score ) { return getRefControl ( ) . normalize ( category , score ) ; }

Target:
public java.util.List < com.google.gerrit.common.data.PermissionRange > getLabelRanges ( ) { return getRefControl ( ) . getLabelRanges ( ) ; }
Source:
private java.lang.String newChange2 ( org.eclipse.jgit.api.Git git , org.eclipse.jgit.lib.PersonIdent ident ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , ident , PushOneCommit.SUBJECT , com.google.gerrit.acceptance.edit.ChangeEditIT.FILE_NAME , com.google.gerrit.acceptance.edit.ChangeEditIT.CONTENT_OLD ) ; return push.rm ( git , "refs/for/master" ) . getChangeId ( ) ; }

Target:
private java.lang.String newChange ( org.eclipse.jgit.api.Git git , org.eclipse.jgit.lib.PersonIdent ident ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , ident , PushOneCommit.SUBJECT , com.google.gerrit.acceptance.edit.ChangeEditIT.FILE_NAME , new java.lang.String ( com.google.gerrit.acceptance.edit.ChangeEditIT.CONTENT_OLD ) ) ; return push.to ( git , "refs/for/master" ) . getChangeId ( ) ; }
Source:
private com.google.gerrit.extensions.common.FixReplacementInfo createFixReplacementInfo ( ) { com.google.gerrit.extensions.common.FixReplacementInfo newFixReplacementInfo = new com.google.gerrit.extensions.common.FixReplacementInfo ( ) ; newFixReplacementInfo.replacement = "some replacement code" ; newFixReplacementInfo.range = createRange ( 3 , 12 , 15 , 4 ) ; return newFixReplacementInfo ; }

Target:
private com.google.gerrit.extensions.common.FixReplacementInfo createFixReplacementInfo ( ) { com.google.gerrit.extensions.common.FixReplacementInfo newFixReplacementInfo = new com.google.gerrit.extensions.common.FixReplacementInfo ( ) ; newFixReplacementInfo.path = com.google.gerrit.acceptance.PushOneCommit.FILE_NAME ; newFixReplacementInfo.replacement = "some replacement code" ; newFixReplacementInfo.range = createRange ( 3 , 12 , 15 , 4 ) ; return newFixReplacementInfo ; }
Source:
void createFileCommentEitorOnSideB ( ) { }

Target:
protected PatchScreen.Type getPatchScreenType ( ) { return PatchScreen.Type.UNIFIED ; }
Source:
public void repeatedHashtag ( ) throws java.lang.Exception { java.lang.String commitMessage = "#Subject\n\n#Hashtag1\n\n#Hashtag2\n\n#Hashtag1" ; com.google.common.truth.Truth.assertThat ( com.google.gerrit.server.change.HashtagsUtil.extractTags ( commitMessage ) ) . containsExactlyElementsIn ( com.google.common.collect.Sets.newHashSet ( "Subject" , "Hashtag1" , "Hashtag2" ) ) ; }

Target:
public void repeatedHashtag ( ) throws java.lang.Exception { java.lang.String commitMessage = "#Subject\n\n#Hashtag1\n\n#Hashtag2\n\n#Hashtag1" ; com.google.common.truth.Truth.assertThat ( ( ( java.lang.Iterable < ? > ) ( com.google.gerrit.server.change.HashtagsUtil.extractTags ( commitMessage ) ) ) ) . containsExactlyElementsIn ( com.google.common.collect.Sets.newHashSet ( "Subject" , "Hashtag1" , "Hashtag2" ) ) ; }
Source:
com.google.gerrit.server.index.IndexConfig getIndexConfig ( @ com.google.gerrit.server.config.GerritServerConfig org.eclipse.jgit.lib.Config cfg ) { org.apache.lucene.search.BooleanQuery.setMaxClauseCount ( cfg.getInt ( "index" , "maxTerms" , org.apache.lucene.search.BooleanQuery.getMaxClauseCount ( ) ) ) ; return com.google.gerrit.server.index.IndexConfig.fromConfig ( cfg ) . separateChangeSubIndexes ( true ) . build ( ) ; }

Target:
com.google.gerrit.index.IndexConfig getIndexConfig ( @ com.google.gerrit.server.config.GerritServerConfig org.eclipse.jgit.lib.Config cfg ) { org.apache.lucene.search.BooleanQuery.setMaxClauseCount ( cfg.getInt ( "index" , "maxTerms" , org.apache.lucene.search.BooleanQuery.getMaxClauseCount ( ) ) ) ; return com.google.gerrit.index.IndexConfig.fromConfig ( cfg ) . separateChangeSubIndexes ( true ) . build ( ) ; }
Source:
public com.google.gerrit.reviewdb.client.PatchSetApproval getSubmitter ( final com.google.gerrit.reviewdb.client.PatchSet.Id c ) { return com.google.gerrit.server.git.MergeUtil.getSubmitter ( db.get ( ) , c ) ; }

Target:
public static org.eclipse.jgit.merge.ThreeWayMergeStrategy getMergeStrategy ( org.eclipse.jgit.lib.Config cfg ) { return com.google.gerrit.server.git.MergeUtil.useRecursiveMerge ( cfg ) ? org.eclipse.jgit.merge.MergeStrategy.RECURSIVE : org.eclipse.jgit.merge.MergeStrategy.RESOLVE ; }
Source:
private com.google.gerrit.reviewdb.client.Change insertChange ( ) throws java.lang.Exception { com.google.gerrit.reviewdb.client.Change c = com.google.gerrit.testutil.TestChanges.newChange ( project , userId ) ; db.changes ( ) . insert ( java.util.Collections.singleton ( c ) ) ; return c ; }

Target:
private com.google.gerrit.reviewdb.client.Change insertChange ( ) throws java.lang.Exception { com.google.gerrit.reviewdb.client.Change c = com.google.gerrit.testutil.TestChanges.newChange ( project , adminId ) ; db.changes ( ) . insert ( java.util.Collections.singleton ( c ) ) ; return c ; }
Source:
java.lang.String years0MonthsAgo ( long years , java.lang.String yearLabel ) ;

Target:
java.lang.String patchTableSize_ModifyBinaryFilesWithPercentages ( java.lang.String bytesInserted , java.lang.String percentageInserted , java.lang.String bytesDeleted , java.lang.String percentageDeleted ) ;
Source:
public boolean isAccessTokenForUser ( java.lang.String username , java.lang.String accessToken ) { try { com.google.gson.JsonObject jsonWebToken = toJsonWebToken ( accessToken ) ; return username.equals ( getAttribute ( jsonWebToken , com.googlesource.gerrit.plugins.cfoauth.UAAClient.USER_NAME_ATTRIBUTE ) ) ; } catch ( com.googlesource.gerrit.plugins.cfoauth.UAAClientException e ) { return false ; } }

Target:
public boolean isAccessTokenForUser ( java.lang.String username , java.lang.String accessToken ) { try { com.google.gson.JsonObject jsonWebToken = toJsonWebToken ( accessToken ) ; return equalsAdjustCase ( username , getAttribute ( jsonWebToken , com.googlesource.gerrit.plugins.cfoauth.UAAClient.USER_NAME_ATTRIBUTE ) ) ; } catch ( com.googlesource.gerrit.plugins.cfoauth.UAAClientException e ) { return false ; } }
Source:
public static com.google.gerrit.server.mail.MailUtil.MailRecipients getRecipientsFromReviewers ( com.google.common.collect.Multimap < com.google.gerrit.server.notedb.ReviewerStateInternal , com.google.gerrit.reviewdb.client.Account.Id > reviewers ) { com.google.gerrit.server.mail.MailUtil.MailRecipients recipients = new com.google.gerrit.server.mail.MailUtil.MailRecipients ( ) ; recipients.reviewers.addAll ( reviewers.get ( com.google.gerrit.server.notedb.ReviewerStateInternal.REVIEWER ) ) ; recipients.cc.addAll ( reviewers.get ( com.google.gerrit.server.notedb.ReviewerStateInternal.CC ) ) ; return recipients ; }

Target:
public static com.google.gerrit.server.mail.MailUtil.MailRecipients getRecipientsFromReviewers ( com.google.gerrit.server.ReviewerSet reviewers ) { com.google.gerrit.server.mail.MailUtil.MailRecipients recipients = new com.google.gerrit.server.mail.MailUtil.MailRecipients ( ) ; recipients.reviewers.addAll ( reviewers.byState ( com.google.gerrit.server.notedb.ReviewerStateInternal.REVIEWER ) ) ; recipients.cc.addAll ( reviewers.byState ( com.google.gerrit.server.notedb.ReviewerStateInternal.CC ) ) ; return recipients ; }
Source:
public static com.google.gerrit.server.notedb.AbstractChangeNotes.LoadHandle create ( org.eclipse.jgit.revwalk.RevWalk walk , org.eclipse.jgit.lib.ObjectId id ) { return new com.google.gerrit.server.notedb.AutoValue_AbstractChangeNotes_LoadHandle ( walk , ( id != null ? id.copy ( ) : null ) ) ; }

Target:
protected abstract void onLoad ( org.eclipse.jgit.revwalk.RevWalk walk ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException ;
Source:
public java.lang.String getPluginName ( java.io.File srcFile ) { return com.google.common.base.MoreObjects.firstNonNull ( getGerritPluginName ( srcFile ) , com.google.gerrit.server.plugins.PluginLoader.nameOf ( srcFile ) ) ; }

Target:
public java.lang.String getPluginName ( java.nio.file.Path srcPath ) { return com.google.common.base.MoreObjects.firstNonNull ( getGerritPluginName ( srcPath ) , com.google.gerrit.server.plugins.PluginLoader.nameOf ( srcPath ) ) ; }
Source:
public com.google.common.util.concurrent.ListenableFuture < ? > delete ( com.google.gerrit.server.query.change.ChangeData cd ) { return executor.submit ( deleteTask ( cd ) ) ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < ? > delete ( com.google.gerrit.server.query.change.ChangeData cd ) { return ( executor ) != null ? executor.submit ( deleteTask ( cd ) ) : com.google.common.util.concurrent.Futures.immediateFuture ( null ) ; }
Source:
public void confirmForOtherUser_UnprocessableEntity ( ) throws java.lang.Exception { com.google.gerrit.server.config.ConfirmEmail.Input in = new com.google.gerrit.server.config.ConfirmEmail.Input ( ) ; in.token = emailTokenVerifier.encode ( user.getId ( ) , "new.mail@example.com" ) ; 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:
protected void preDisplay ( com.google.gerrit.client.projects.ConfigInfoCache.Entry result ) { loaded = true ; commentLinkProcessor = result.getCommentLinkProcessor ( ) ; setTheme ( result.getTheme ( ) ) ; renderChangeInfo ( info ) ; loadRevisionInfo ( ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { com.google.gerrit.client.change.ChangeScreen.logger.log ( java.util.logging.Level.SEVERE , ( "Loading file list and inline comments failed: " + ( caught.getMessage ( ) ) ) ) ; loadConfigInfo ( info , rev ) ; }
Source:
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 ) ; } }

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.query ( p ) . entities ( ) ; } catch ( com.google.gerrit.server.query.QueryParseException e ) { throw new com.google.gwtorm.server.OrmException ( e ) ; } }
Source:
public void setHashtags ( com.google.gerrit.extensions.api.changes.HashtagsInput input ) throws com.google.gerrit.extensions.restapi.RestApiException { try { postHashtags.apply ( change , input ) ; } catch ( com.google.gerrit.server.update.UpdateException | com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot post hashtags" , e ) ; } }

Target:
public void setHashtags ( com.google.gerrit.extensions.api.changes.HashtagsInput input ) throws com.google.gerrit.extensions.restapi.RestApiException { try { postHashtags.apply ( change , input ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot post hashtags" , e ) ; } }
Source:
private java.io.FileNotFoundException badWebRoot ( java.net.URL u , java.lang.Throwable cause ) { java.io.FileNotFoundException notFound = badWebRoot ( u ) ; notFound.initCause ( cause ) ; return notFound ; }

Target:
private static java.io.FileNotFoundException badSourceRoot ( java.net.URI u , java.lang.Throwable cause ) { java.io.FileNotFoundException notFound = com.google.gitiles.dev.DevServer.badSourceRoot ( u ) ; notFound.initCause ( cause ) ; return notFound ; }
Source:
public com.googlesource.gerrit.plugins.github.oauth.OAuthCookie getFromCookie ( javax.servlet.http.Cookie cookie ) { try { return new com.googlesource.gerrit.plugins.github.oauth.OAuthCookie ( decode ( cookie.getValue ( ) ) , cookie.getValue ( ) ) ; } catch ( com.googlesource.gerrit.plugins.github.oauth.OAuthTokenException e ) { return null ; } }

Target:
public com.googlesource.gerrit.plugins.github.oauth.OAuthCookie getFromCookie ( javax.servlet.http.Cookie cookie ) throws com.googlesource.gerrit.plugins.github.oauth.OAuthTokenException { return new com.googlesource.gerrit.plugins.github.oauth.OAuthCookie ( cipher , cookie ) ; }
Source:
public com.google.gerrit.server.group.GroupJson.GroupInfo apply ( com.google.gerrit.server.group.GroupResource resource ) { return json.addOption ( com.google.gerrit.common.groups.ListGroupsOption.OWNER ) . format ( resource.getGroup ( ) ) ; }

Target:
public com.google.gerrit.server.group.GroupJson.GroupInfo apply ( com.google.gerrit.server.group.GroupResource resource ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException , com.google.gwtorm.server.OrmException { return json.format ( resource.getGroup ( ) ) ; }
Source:
public static < T > com.google.gerrit.server.query.Predicate < T > not ( com.google.gerrit.server.query.Predicate < T > that ) { if ( that instanceof com.google.gerrit.server.query.NotPredicate ) { return that.getChild ( 0 ) ; } return new com.google.gerrit.server.query.NotPredicate ( that ) ; }

Target:
public static < T > com.google.gerrit.index.query.Predicate < T > not ( com.google.gerrit.index.query.Predicate < T > that ) { if ( that instanceof com.google.gerrit.index.query.NotPredicate ) { return that.getChild ( 0 ) ; } return new com.google.gerrit.index.query.NotPredicate ( that ) ; }
Source:
public com.google.gerrit.server.query.InternalQuery < T > enforceVisibility ( boolean enforce ) { queryProcessor.enforceVisibility ( enforce ) ; return this ; }

Target:
public com.google.gerrit.index.query.InternalQuery < T > enforceVisibility ( boolean enforce ) { queryProcessor.enforceVisibility ( enforce ) ; return this ; }
Source:
protected abstract void authorizeUser ( com.google.gerrit.server.project.ProjectState state , com.google.gerrit.server.CurrentUser user ) throws org.eclipse.jgit.lfs.errors.LfsUnauthorized ;

Target:
protected abstract void authorizeUser ( com.google.gerrit.server.permissions.PermissionBackend.ForProject project ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.permissions.PermissionBackendException ;
Source:
void setNoFilters ( boolean no ) { input.filters = ( no ) ? com.google.gerrit.server.change.TestSubmitRule.Filters.SKIP : com.google.gerrit.server.change.TestSubmitRule.Filters.RUN ; }

Target:
void setNoFilters ( boolean no ) { input.filters = ( no ) ? com.google.gerrit.extensions.common.TestSubmitRuleInput.Filters.SKIP : com.google.gerrit.extensions.common.TestSubmitRuleInput.Filters.RUN ; }
Source:
private com.google.gerrit.server.CurrentUser getUser ( ) { return getRefControl ( ) . getUser ( ) ; }

Target:
private com.google.gerrit.server.CurrentUser getUser ( ) { return refControl.getUser ( ) ; }
Source:
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 boolean useHtml ( ) { return true ; }

Target:
protected boolean supportsHtml ( ) { return true ; }
Source:
public com.google.gerrit.server.project.ChangeControl getReviewerControl ( ) { return change.getControl ( ) . forUser ( user ) ; }

Target:
public com.google.gerrit.server.project.ChangeControl getReviewerControl ( ) { com.google.common.base.Preconditions.checkArgument ( ( ( user ) != null ) , "no user provided" ) ; return change.getControl ( ) . forUser ( user ) ; }
Source:
private void apply ( com.google.gerrit.server.index.ChangeIndex i , com.google.gerrit.server.query.change.ChangeData cd ) throws java.io.IOException { if ( delete ) { i.delete ( cd ) ; } else { i.replace ( cd ) ; } }

Target:
public void index ( com.google.gerrit.server.query.change.ChangeData cd ) throws java.io.IOException { for ( com.google.gerrit.server.index.ChangeIndex i : getWriteIndexes ( ) ) { i.replace ( cd ) ; } }
Source:
protected abstract org.eclipse.jgit.lib.CommitBuilder applyImpl ( org.eclipse.jgit.lib.ObjectInserter ins ) throws com.google.gwtorm.server.OrmException , java.io.IOException ;

Target:
protected abstract org.eclipse.jgit.lib.CommitBuilder applyImpl ( org.eclipse.jgit.revwalk.RevWalk rw , org.eclipse.jgit.lib.ObjectInserter ins , org.eclipse.jgit.lib.ObjectId curr ) throws com.google.gwtorm.server.OrmException , java.io.IOException ;
Source:
public static java.lang.String refsDraftCommentsPrefix ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { return com.google.gerrit.reviewdb.client.RefNames.buildRefsPrefix ( com.google.gerrit.reviewdb.client.RefNames.REFS_DRAFT_COMMENTS , accountId.get ( ) ) . toString ( ) ; }

Target:
public static java.lang.String refsDraftComments ( 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_DRAFT_COMMENTS , changeId.get ( ) ) ; r.append ( accountId.get ( ) ) ; return r.toString ( ) ; }
Source:
static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.account.AccountState > username ( java.lang.String username ) { return new com.google.gerrit.server.query.account.AccountPredicates.AccountPredicate ( com.google.gerrit.server.index.account.AccountField.USERNAME , AccountQueryBuilder.FIELD_USERNAME , username ) ; }

Target:
static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.account.AccountState > username ( java.lang.String username ) { return new com.google.gerrit.server.query.account.AccountPredicates.AccountPredicate ( com.google.gerrit.server.index.account.AccountField.USERNAME , AccountQueryBuilder.FIELD_USERNAME , username.toLowerCase ( ) ) ; }
Source:
public void onSuccess ( final com.google.gerrit.reviewdb.client.AccountExternalId result ) { display ( result ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.VoidResult result ) { id.setPassword ( null ) ; display ( id ) ; }
Source:
public java.util.Optional < com.google.gerrit.reviewdb.client.AccountGroup > load ( java.lang.String name ) throws java.lang.Exception { try ( com.google.gerrit.reviewdb.server.ReviewDb db = schema.open ( ) ) { return groups.get ( db , new com.google.gerrit.reviewdb.client.AccountGroup.NameKey ( name ) ) ; } }

Target:
public java.util.Optional < com.google.gerrit.reviewdb.client.AccountGroup > load ( java.lang.String name ) throws java.lang.Exception { try ( com.google.gerrit.reviewdb.server.ReviewDb db = schema.open ( ) ) { return groups.getGroup ( db , new com.google.gerrit.reviewdb.client.AccountGroup.NameKey ( name ) ) ; } }
Source:
public java.util.Map < java.lang.String , com.google.gerrit.server.restapi.config.ListCapabilities.CapabilityInfo > apply ( com.google.gerrit.server.config.ConfigResource resource ) throws java.lang.IllegalAccessException , java.lang.NoSuchFieldException { java.util.Map < java.lang.String , com.google.gerrit.server.restapi.config.ListCapabilities.CapabilityInfo > output = new java.util.TreeMap < > ( ) ; collectCoreCapabilities ( output ) ; collectPluginCapabilities ( output ) ; return output ; }

Target:
public java.util.Map < java.lang.String , com.google.gerrit.server.restapi.config.ListCapabilities.CapabilityInfo > apply ( com.google.gerrit.server.config.ConfigResource resource ) throws java.lang.IllegalAccessException , java.lang.NoSuchFieldException { return com.google.common.collect.ImmutableMap.< java.lang.String , com.google.gerrit.server.restapi.config.ListCapabilities.CapabilityInfo > builder ( ) . putAll ( collectCoreCapabilities ( ) ) . putAll ( collectPluginCapabilities ( ) ) . build ( ) ; }
Source:
public com.google.gerrit.server.git.BatchUpdate create ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Project.NameKey project , java.sql.Timestamp when ) ;

Target:
public com.google.gerrit.server.git.BatchUpdate create ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.server.CurrentUser user , java.sql.Timestamp when ) ;
Source:
public void want ( final com.google.gerrit.reviewdb.client.AccountGroup.Id id ) { if ( ( id != null ) && ( ! ( out.containsKey ( id ) ) ) ) { out.put ( id , groupCache.get ( id ) ) ; } }

Target:
public void want ( final com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) { if ( ( uuid != null ) && ( ! ( out.containsKey ( uuid ) ) ) ) { out.put ( uuid , groupCache.get ( uuid ) ) ; } }
Source:
public void set ( java.lang.String key , com.google.gson.JsonObject event ) throws java.io.IOException ;

Target:
public void set ( com.google.gerrit.reviewdb.client.Project.NameKey projectKey , java.lang.String refKey , com.google.gson.JsonObject statusEvent ) throws java.io.IOException ;
Source:
protected java.lang.String getRefName ( ) { return com.google.gerrit.server.notedb.ChangeNoteUtil.changeRefName ( getId ( ) ) ; }

Target:
protected java.lang.String getRefName ( ) { return com.google.gerrit.reviewdb.client.RefNames.changeMetaRef ( getId ( ) ) ; }
Source:
public com.google.gerrit.reviewdb.client.Change abandon ( com.google.gerrit.server.project.ChangeControl control ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.git.UpdateException { return abandon ( control , "" , NotifyHandling.ALL ) ; }

Target:
public com.google.gerrit.reviewdb.client.Change abandon ( com.google.gerrit.server.project.ChangeControl control ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.git.UpdateException { return abandon ( control , "" , NotifyHandling.ALL , com.google.common.collect.ImmutableListMultimap.of ( ) ) ; }
Source:
public com.google.gerrit.server.change.ChangeJson.ChangeInfo format ( com.google.gerrit.server.query.change.ChangeData cd ) throws com.google.gwtorm.server.OrmException { return format ( cd , null ) ; }

Target:
public com.google.gerrit.server.change.ChangeJson.ChangeInfo format ( com.google.gerrit.server.query.change.ChangeData cd ) throws com.google.gwtorm.server.OrmException { return format ( cd , com.google.common.base.Optional.< com.google.gerrit.reviewdb.client.PatchSet.Id > absent ( ) ) ; }
Source:
public java.lang.String getLinkName ( ) { return "readme" ; }

Target:
public com.google.gerrit.extensions.common.WebLinkInfo getBranchWebLink ( java.lang.String projectName , java.lang.String branchName ) { return new com.google.gerrit.extensions.common.WebLinkInfo ( com.googlesource.gerrit.plugins.xdocs.XDocWebLink.README , getImageUrl ( ) , getBranchUrl ( projectName , branchName ) , com.google.gerrit.extensions.webui.WebLinkTarget.SELF ) ; }
Source:
public void current ( ) { com.google.common.truth.Truth.assertThat ( com.google.gerrit.testutil.IndexVersionsTest.get ( com.google.gerrit.testing.IndexVersions.CURRENT ) ) . containsExactly ( com.google.gerrit.testutil.IndexVersionsTest.SCHEMA_DEF.getLatest ( ) . getVersion ( ) ) ; }

Target:
public void current ( ) { com.google.common.truth.Truth.assertThat ( com.google.gerrit.testing.IndexVersionsTest.get ( com.google.gerrit.testing.IndexVersions.CURRENT ) ) . containsExactly ( com.google.gerrit.testing.IndexVersionsTest.SCHEMA_DEF.getLatest ( ) . getVersion ( ) ) ; }
Source:
void deleteBranch ( com.google.gerrit.reviewdb.Project.NameKey projectName , java.util.Set < com.google.gerrit.reviewdb.Branch.NameKey > ids , com.google.gwt.user.client.rpc.AsyncCallback < java.util.Set < com.google.gerrit.reviewdb.Branch.NameKey > > callback ) ;

Target:
void reviewProjectAccess ( com.google.gerrit.reviewdb.client.Project.NameKey projectName , java.lang.String baseRevision , java.lang.String message , java.util.List < com.google.gerrit.common.data.AccessSection > sections , com.google.gerrit.reviewdb.client.Project.NameKey parentProjectName , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.reviewdb.client.Change.Id > callback ) ;
Source:
private void checkLoaded ( ) { com.google.common.base.Preconditions.checkState ( isLoaded , "account not loaded yet" ) ; }

Target:
private void checkLoaded ( ) { com.google.common.base.Preconditions.checkState ( isLoaded , "Account %s not loaded yet" , accountId.get ( ) ) ; }
Source:
public static void deleteAssignee ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.info.AccountInfo > cb ) { com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( "assignee" ) . delete ( cb ) ; }

Target:
public static com.google.gerrit.client.rpc.RestApi detail ( @ com.google.gerrit.common.Nullable java.lang.String project , int id ) { return com.google.gerrit.client.changes.ChangeApi.call ( project , id , "detail" ) ; }
Source:
public boolean isDefaults ( ) { return RefNames.REFS_USER_DEFAULT.equals ( getRefName ( ) ) ; }

Target:
public boolean isDefaults ( ) { return RefNames.REFS_USERS_DEFAULT.equals ( getRefName ( ) ) ; }
Source:
public void getCacheWithGerritPrefix ( ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = adminSession.get ( "/config/server/caches/gerrit-accounts" ) ; com.google.common.truth.Truth.assertThat ( r.getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_OK ) ; }

Target:
public void getCacheWithGerritPrefix ( ) throws java.lang.Exception { adminSession.get ( "/config/server/caches/gerrit-accounts" ) . assertOK ( ) ; }
Source:
private static GarbageCollectorListener.Event createEvent ( final java.lang.String projectName , final java.util.Properties statistics ) { com.google.gerrit.extensions.events.GarbageCollectorListener.Event event = new com.google.gerrit.extensions.events.GarbageCollectorListener.Event ( ) { @ java.lang.Override public java.lang.String getProjectName ( ) { return projectName ; } @ java.lang.Override public java.util.Properties getStatistics ( ) { return statistics ; } } ; return event ; }

Target:
public com.google.gerrit.extensions.api.changes.NotifyHandling getNotify ( ) { return com.google.gerrit.extensions.api.changes.NotifyHandling.ALL ; }
Source:
public void onSuccess ( final com.google.gerrit.reviewdb.AccountExternalId result ) { enableUI ( true ) ; display ( result ) ; }

Target:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { com.google.gerrit.client.Gerrit.getUserAccount ( ) . setUserName ( newUserName ) ; enableUI ( true ) ; }
Source:
public com.googlecode.prolog_cafe.lang.Term getSubmitRule ( ) { return submitRule ; }

Target:
public com.googlecode.prolog_cafe.lang.Term getSubmitRule ( ) { com.google.common.base.Preconditions.checkState ( ( ( submitRule ) != null ) , "getSubmitRule() invalid before evaluation" ) ; return submitRule ; }
Source:
protected void preDisplay ( com.google.gerrit.client.projects.ConfigInfoCache.Entry result ) { commentManager = new com.google.gerrit.client.diff.CommentManager ( this , base , revision , path , result.getCommentLinkProcessor ( ) ) ; setTheme ( result.getTheme ( ) ) ; display ( comments ) ; }

Target:
protected void preDisplay ( com.google.gerrit.client.projects.ConfigInfoCache.Entry result ) { commentManager = new com.google.gerrit.client.diff.CommentManager ( this , base , revision , path , result.getCommentLinkProcessor ( ) , changeStatus.isOpen ( ) ) ; setTheme ( result.getTheme ( ) ) ; display ( comments ) ; }
Source:
public java.lang.Iterable < com.google.gerrit.common.data.EditList.Hunk > getHunks ( ) { return new com.google.gerrit.common.data.EditList ( edits , getContext ( ) , a.size ( ) , b.size ( ) ) . getHunks ( ) ; }

Target:
public java.lang.Iterable < com.google.gerrit.prettify.common.EditList.Hunk > getHunks ( ) { return getEditList ( ) . getHunks ( ) ; }
Source:
public void postUpdate ( com.google.gerrit.server.git.BatchUpdate.Context ctx ) throws com.google.gwtorm.server.OrmException { if ( ( rebaseOp ) != null ) { rebaseOp.postUpdate ( ctx ) ; } }

Target:
public void postUpdateImpl ( com.google.gerrit.server.git.BatchUpdate.Context ctx ) throws com.google.gwtorm.server.OrmException { if ( ( rebaseOp ) != null ) { rebaseOp.postUpdate ( ctx ) ; } }
Source:
protected void add ( com.google.gerrit.server.mail.RecipientType type , com.google.gerrit.server.mail.ChangeEmail.Watchers.List list ) { for ( com.google.gerrit.reviewdb.client.Account.Id user : list.accounts ) { add ( type , user ) ; } for ( com.google.gerrit.server.mail.Address addr : list.emails ) { add ( type , addr ) ; } }

Target:
private void setListIdHeader ( ) throws com.google.gerrit.common.errors.EmailException { setVHeader ( "List-Id" , "<$email.listId.replace('@', '.')>" ) ; if ( ( getSettingsUrl ( ) ) != null ) { setVHeader ( "List-Unsubscribe" , "<$email.settingsUrl>" ) ; } }
Source:
com.google.gerrit.server.account.IncludingGroupMembership create ( java.lang.Iterable < com.google.gerrit.reviewdb.client.AccountGroup.UUID > groupIds ) ;

Target:
com.google.gerrit.server.account.IncludingGroupMembership create ( com.google.gerrit.server.IdentifiedUser user ) ;
Source:
com.google.gerrit.rules.PrologEnvironment create ( java.lang.ClassLoader cl ) ;

Target:
com.google.gerrit.rules.PrologEnvironment create ( com.googlecode.prolog_cafe.lang.PrologMachineCopy src ) ;
Source:
private static boolean isGoogleAccount ( final com.dyuproject.openid.OpenIdUser user ) { return user.getIdentity ( ) . startsWith ( ( ( com.google.gerrit.client.openid.OpenIdUtil.URL_GOOGLE ) + "?" ) ) ; }

Target:
private static boolean isGoogleAccount ( final com.dyuproject.openid.OpenIdUser user ) { return user.getClaimedId ( ) . startsWith ( ( ( com.google.gerrit.client.openid.OpenIdUtil.URL_GOOGLE ) + "?" ) ) ; }
Source:
public void invalidNonce ( ) throws java.lang.Exception { org.eclipse.jgit.transport.PushCertificate cert = newSignedCert ( "invalid-nonce" , com.google.gerrit.gpg.testutil.TestKeys.key1 ( ) ) ; assertProblems ( cert , "Invalid nonce" ) ; }

Target:
public void invalidNonce ( ) throws java.lang.Exception { org.eclipse.jgit.transport.PushCertificate cert = newSignedCert ( "invalid-nonce" , com.google.gerrit.gpg.testutil.TestKeys.validKeyWithoutExpiration ( ) ) ; assertProblems ( cert , "Invalid nonce" ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.rpc.NativeMap < com.google.gerrit.client.actions.ActionInfo > actionMap ) { actionMap.copyKeysIntoChildren ( "id" ) ; renderRevisionInfo ( changeInfo , actionMap ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo info ) { info.init ( ) ; addExtensionPoints ( info ) ; loadConfigInfo ( info , base ) ; }
Source:
public void set ( java.lang.String key , com.google.gson.JsonObject event ) throws java.io.IOException { java.nio.file.Path replicationStatusPath = getReplicationStatusPath ( key ) ; java.nio.file.Files.write ( replicationStatusPath , event.toString ( ) . getBytes ( ) , java.nio.file.StandardOpenOption.TRUNCATE_EXISTING , java.nio.file.StandardOpenOption.CREATE , java.nio.file.StandardOpenOption.WRITE ) ; }

Target:
private java.nio.file.Path getReplicationStatusPath ( java.lang.String key ) throws java.io.IOException { java.nio.file.Path projectPath = pluginData.resolve ( ( ( getSanitizedKey ( key ) ) + ".replication-error.json" ) ) ; java.nio.file.Files.createDirectories ( projectPath.getParent ( ) ) ; return projectPath ; }
Source:
protected org.apache.sshd.common.session.AbstractSession doCreateSession ( org.apache.sshd.common.io.IoSession ioSession ) throws java.lang.Exception { return new com.google.gerrit.sshd.GerritServerSession ( server , ioSession ) ; }

Target:
protected org.apache.sshd.server.session.ServerSessionImpl doCreateSession ( org.apache.sshd.common.io.IoSession ioSession ) throws java.lang.Exception { return new org.apache.sshd.server.session.ServerSessionImpl ( getServer ( ) , ioSession ) ; }
Source:
public static final native void defineVimEx ( java.lang.String name , java.lang.String prefix , java.lang.Runnable thunk ) ;

Target:
public void handle ( net.codemirror.lib.CodeMirror instance , int line , java.lang.String gutter , com.google.gwt.dom.client.NativeEvent clickEvent ) ;
Source:
public com.googlesource.gerrit.plugins.rabbitmq.session.Session getSession ( ) { return session ; }

Target:
private boolean isConnected ( ) { return ( ( session ) != null ) && ( session.isOpen ( ) ) ; }
Source:
public static com.google.gerrit.common.data.GroupReference groupReference ( java.lang.String orgName ) { return new com.google.gerrit.common.data.GroupReference ( com.googlesource.gerrit.plugins.github.group.GitHubOrganisationGroup.uuid ( orgName ) , ( ( com.googlesource.gerrit.plugins.github.group.GitHubOrganisationGroup.NAME_PREFIX ) + orgName ) ) ; }

Target:
public static com.google.gerrit.common.data.GroupReference groupReference ( java.lang.String orgName ) { return new com.google.gerrit.common.data.GroupReference ( com.googlesource.gerrit.plugins.github.group.GitHubOrganisationGroup.uuid ( orgName ) , ( ( NAME_PREFIX ) + orgName ) ) ; }
Source:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { hide ( ) ; }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( com.google.gwtexpui.globalkey.client.KeyCommandSet.toMask ( event ) ) == ( ShowHelpCommand.INSTANCE.keyMask ) ) { event.stopPropagation ( ) ; event.preventDefault ( ) ; } hide ( ) ; }
Source:
private static final com.google.gwt.resources.client.ExternalTextResource findTheme ( com.google.gerrit.extensions.common.Theme theme ) { for ( com.google.gwt.resources.client.ExternalTextResource r : net.codemirror.theme.ThemeLoader.THEMES ) { if ( theme.name ( ) . toLowerCase ( ) . equals ( r.getName ( ) ) ) { return r ; } } return null ; }

Target:
private static final com.google.gwt.resources.client.ExternalTextResource findTheme ( com.google.gerrit.extensions.client.Theme theme ) { for ( com.google.gwt.resources.client.ExternalTextResource r : net.codemirror.theme.ThemeLoader.THEMES ) { if ( theme.name ( ) . toLowerCase ( ) . equals ( r.getName ( ) ) ) { return r ; } } return null ; }
Source:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( event.getCharCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { doExternalSearch ( ) ; } }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( event.getNativeEvent ( ) . getKeyCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { doExternalSearch ( ) ; } }
Source:
public static void main ( java.lang.String [ ] argv ) throws java.lang.Exception { com.google.gerrit.gwtdebug.GerritSDMLauncher launcher = new com.google.gerrit.gwtdebug.GerritSDMLauncher ( ) ; launcher.mainImpl ( argv ) ; }

Target:
public static void main ( java.lang.String [ ] argv ) throws java.lang.Exception { com.google.gerrit.gwtdebug.GerritGwtDebugLauncher launcher = new com.google.gerrit.gwtdebug.GerritGwtDebugLauncher ( ) ; launcher.mainImpl ( argv ) ; }
Source:
public static java.lang.String toPatch ( java.lang.String type , com.google.gerrit.reviewdb.client.PatchSet.Id diffBase , com.google.gerrit.reviewdb.client.Patch.Key id ) { return com.google.gerrit.client.Dispatcher.toPatch ( type , diffBase , id.getParentKey ( ) , id.get ( ) , null , 0 ) ; }

Target:
public static java.lang.String toPatch ( java.lang.String type , com.google.gerrit.client.DiffObject diffBase , com.google.gerrit.reviewdb.client.Patch.Key id ) { return com.google.gerrit.client.Dispatcher.toPatch ( type , diffBase , id.getParentKey ( ) , id.get ( ) , null , 0 ) ; }