auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private static java.lang.StringBuffer toGerrit ( final javax.servlet.http.HttpServletRequest req ) { final java.lang.StringBuffer url = new java.lang.StringBuffer ( ) ; url.append ( req.getContextPath ( ) ) ; url.append ( "/Gerrit" ) ; return url ; }

Target:
private static java.lang.StringBuffer toGerrit ( final javax.servlet.http.HttpServletRequest req ) { final java.lang.StringBuffer url = new java.lang.StringBuffer ( ) ; url.append ( req.getContextPath ( ) ) ; url.append ( "/" ) ; return url ; }
Source:
public void move ( java.lang.String destination ) throws com.google.gerrit.extensions.restapi.RestApiException { com.google.gerrit.extensions.api.changes.MoveInput in = new com.google.gerrit.extensions.api.changes.MoveInput ( ) ; in.destination_branch = destination ; move ( in ) ; }

Target:
public void move ( java.lang.String destination ) throws com.google.gerrit.extensions.restapi.RestApiException { com.google.gerrit.extensions.api.changes.MoveInput in = new com.google.gerrit.extensions.api.changes.MoveInput ( ) ; in.destinationBranch = destination ; move ( in ) ; }
Source:
public void testKeyIdToString ( ) throws java.lang.Exception { org.bouncycastle.openpgp.PGPPublicKey key = com.google.gerrit.gpg.testutil.TestKeys.key1 ( ) . getPublicKey ( ) ; org.junit.Assert.assertEquals ( "46328A8C" , com.google.gerrit.gpg.PublicKeyStore.keyIdToString ( key.getKeyID ( ) ) ) ; }

Target:
public void testKeyIdToString ( ) throws java.lang.Exception { org.bouncycastle.openpgp.PGPPublicKey key = com.google.gerrit.gpg.testutil.TestKeys.validKeyWithoutExpiration ( ) . getPublicKey ( ) ; org.junit.Assert.assertEquals ( "46328A8C" , com.google.gerrit.gpg.PublicKeyStore.keyIdToString ( key.getKeyID ( ) ) ) ; }
Source:
public com.google.gerrit.server.CurrentUser getCurrentUser ( ) { if ( ! ( ReviewAssistant.realUser ) ) { return pluginUser ; } else { return identifiedUserFactory.create ( change.getOwner ( ) ) ; } }

Target:
public com.google.gerrit.server.CurrentUser getUser ( ) { if ( ! ( ReviewAssistant.realUser ) ) { return pluginUser ; } else { return identifiedUserFactory.create ( change.getOwner ( ) ) ; } }
Source:
public void run ( ) { java.lang.String token = host.getToken ( ) ; if ( cm.hasActiveLine ( ) ) { net.codemirror.lib.CodeMirror.LineHandle handle = cm.getActiveLine ( ) ; int line = ( cm.getLineNumber ( handle ) ) + 1 ; token += ( "@" + ( ( cm.side ( ) ) == ( DisplaySide.A ) ? "a" : "" ) ) + line ; } com.google.gerrit.client.Gerrit.doSignIn ( token ) ; }

Target:
public void run ( ) { java.lang.String token = host.getToken ( ) ; if ( cm.hasActiveLine ( ) ) { net.codemirror.lib.CodeMirror.LineHandle handle = cm.activeLine ( ) ; int line = ( cm.getLineNumber ( handle ) ) + 1 ; token += ( "@" + ( ( cm.side ( ) ) == ( DisplaySide.A ) ? "a" : "" ) ) + line ; } com.google.gerrit.client.Gerrit.doSignIn ( token ) ; }
Source:
public void visit ( org.pegdown.ast.TableHeaderNode node ) { com.google.common.base.Preconditions.checkState ( ( ( table ) != null ) , "%s must be in table" , node ) ; table.inHeader = true ; wrapChildren ( "thead" , node ) ; table.inHeader = false ; }

Target:
public void visit ( org.pegdown.ast.TableHeaderNode node ) { mustBeInsideTable ( node ) ; table.inHeader = true ; wrapChildren ( "thead" , node ) ; table.inHeader = false ; }
Source:
public boolean isVisibleToAll ( ) { return false ; }

Target:
public java.lang.String getUrl ( ) { return null ; }
Source:
com.google.gerrit.server.project.ChangeControl create ( com.google.gerrit.server.project.RefControl refControl , com.google.gerrit.server.notedb.ChangeNotes notes ) ;

Target:
com.google.gerrit.server.project.ChangeControl create ( com.google.gerrit.server.project.RefControl refControl , com.google.gerrit.server.notedb.ChangeNotes notes ) { return new com.google.gerrit.server.project.ChangeControl ( changeDataFactory , approvalsUtil , refControl , notes ) ; }
Source:
public com.google.gerrit.server.query.change.ChangeData.ChangedLines getChangedLines ( ) { return new com.google.gerrit.server.query.change.ChangeData.ChangedLines ( insertions , deletions ) ; }

Target:
public com.google.gerrit.server.diff.DiffSummary.ChangedLines getChangedLines ( ) { return new com.google.gerrit.server.diff.DiffSummary.ChangedLines ( insertions , deletions ) ; }
Source:
public void onFailure ( java.lang.Throwable err ) { getTab ( ) . setTitle ( Resources.M.conflictingChanges ( "na" ) ) ; getTab ( ) . setError ( err.getMessage ( ) ) ; }

Target:
public void onFailure ( java.lang.Throwable err ) { getTab ( ) . setTitle ( Resources.M.sameTopic ( Resources.C.notAvailable ( ) ) ) ; getTab ( ) . setError ( err.getMessage ( ) ) ; }
Source:
public static void addGpgKey ( java.lang.String account , java.lang.String armored , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.rpc.NativeMap < com.google.gerrit.client.info.GpgKeyInfo > > cb ) { com.google.gerrit.client.account.AccountApi.accounts ( ) . id ( account ) . view ( "gpgkeys" ) . post ( com.google.gerrit.client.account.AccountApi.GpgKeysInput.add ( armored ) , cb ) ; }

Target:
public static void addGpgKey ( java.lang.String account , java.lang.String armored , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.rpc.NativeMap < com.google.gerrit.client.info.GpgKeyInfo > > cb ) { new com.google.gerrit.client.rpc.RestApi ( "/accounts/" ) . id ( account ) . view ( "gpgkeys" ) . post ( com.google.gerrit.client.account.AccountApi.GpgKeysInput.add ( armored ) , cb ) ; }
Source:
public void onSuccess ( final com.google.gerrit.common.data.PatchSetDetail result ) { loadInfoTable ( result ) ; loadActionPanel ( result ) ; }

Target:
public void onSuccess ( com.google.gerrit.common.data.PatchSetDetail result ) { if ( ( actionsPanel ) != null ) { actionsPanel.setVisible ( true ) ; } else { loadActionPanel ( result ) ; } loadPatchTable ( result ) ; }
Source:
public java.lang.String getFileRef ( ) { return fileRef ; }

Target:
public boolean isDislikeWarnings ( ) { return dislikeWarnings ; }
Source:
public com.google.gerrit.extensions.restapi.RestView < com.google.gerrit.server.change.RevisionResource > list ( ) throws com.google.gerrit.extensions.restapi.AuthException { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public com.google.gerrit.extensions.restapi.RestView < com.google.gerrit.server.change.RevisionResource > list ( ) throws com.google.gerrit.extensions.restapi.AuthException { return new com.google.gerrit.server.change.Files.List ( ) ; }
Source:
java.lang.String get ( final java.lang.String attName ) { return atts.get ( attName ) ; }

Target:
javax.naming.directory.Attribute getAll ( final java.lang.String attName ) { return atts.get ( attName ) ; }
Source:
public void setSubmitRecords ( java.util.List < com.google.gerrit.common.data.SubmitRecord > records ) { submitRecords = records ; }

Target:
public java.util.Set < com.google.gerrit.reviewdb.client.Account.Id > editsByUser ( ) throws com.google.gwtorm.server.OrmException { return editRefs ( ) . keySet ( ) ; }
Source:
public void onSuccess ( java.lang.Void result ) { net.codemirror.theme.ThemeLoader.loadTheme ( prefs.theme ( ) , themeCallback ) ; group2.done ( ) ; group3.done ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.rpc.HttpResponse < com.google.gerrit.client.rpc.NativeString > fc ) { baseContent = fc ; group3.done ( ) ; }
Source:
public void setIntHeader ( java.lang.String name , int value ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public void setIntHeader ( java.lang.String name , int value ) { headers.removeAll ( name ) ; addIntHeader ( name , value ) ; }
Source:
java.lang.String getRemoteUser ( javax.servlet.http.HttpServletRequest req ) { return com.google.gerrit.httpd.RemoteUserUtil.getRemoteUser ( req , loginHeader ) ; }

Target:
java.lang.String getRemoteUser ( javax.servlet.http.HttpServletRequest req ) { java.lang.String remoteUser = com.google.gerrit.httpd.RemoteUserUtil.getRemoteUser ( req , loginHeader ) ; return userNameToLowerCase ? remoteUser.toLowerCase ( java.util.Locale.US ) : remoteUser ; }
Source:
public void setUp ( ) throws java.lang.Exception { admin = accounts.create ( "admin" , "admin@example.com" , "Administrator" , "Administrators" ) ; com.google.gerrit.acceptance.SshSession sshSession = new com.google.gerrit.acceptance.SshSession ( server , admin ) ; project1 = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p1" ) ; com.google.gerrit.acceptance.git.GitUtil.createProject ( sshSession , project1.get ( ) ) ; project2 = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p2" ) ; com.google.gerrit.acceptance.git.GitUtil.createProject ( sshSession , project2.get ( ) ) ; sshSession.close ( ) ; session = new com.google.gerrit.acceptance.RestSession ( server , admin ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { admin = accounts.create ( "admin" , "admin@example.com" , "Administrator" , "Administrators" ) ; com.google.gerrit.acceptance.SshSession sshSession = new com.google.gerrit.acceptance.SshSession ( server , admin ) ; project1 = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p1" ) ; com.google.gerrit.acceptance.GitUtil.createProject ( sshSession , project1.get ( ) ) ; project2 = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p2" ) ; com.google.gerrit.acceptance.GitUtil.createProject ( sshSession , project2.get ( ) ) ; sshSession.close ( ) ; session = new com.google.gerrit.acceptance.RestSession ( server , admin ) ; }
Source:
protected void configure ( ) { HEAD ( 34 ) ; }

Target:
protected void configure ( ) { get ( com.google.gerrit.server.project.ProjectResource.PROJECT_KIND , "reviewers" ) . to ( com.googlesource.gerrit.plugins.reviewers.GetReviewers.class ) ; put ( com.google.gerrit.server.project.ProjectResource.PROJECT_KIND , "reviewers" ) . to ( com.googlesource.gerrit.plugins.reviewers.PutReviewers.class ) ; get ( com.google.gerrit.server.project.ProjectResource.PROJECT_KIND , "suggest_reviewers" ) . to ( com.googlesource.gerrit.plugins.reviewers.SuggestProjectReviewers.class ) ; }
Source:
public void destroy ( ) { }

Target:
public void destroy ( ) { for ( com.google.gerrit.httpd.AllRequestFilter f : filters ) { f.destroy ( ) ; } }
Source:
public com.google.gerrit.extensions.common.WebLinkInfo getBranchWebLink ( java.lang.String projectName , java.lang.String branchName ) { return new com.google.gerrit.extensions.common.WebLinkInfo ( name , null , java.lang.String.format ( "%s/%s/+/%s" , baseUrl , projectName , branchName ) , Target.BLANK ) ; }

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 ( name , null , java.lang.String.format ( "%s/%s/+/%s" , baseUrl , projectName , branchName ) , target ) ; }
Source:
public org.apache.sshd.server.CommandFactory get ( ) { return new com.google.gerrit.server.ssh.GuiceCommandFactory ( createMap ( ) ) ; }

Target:
public org.apache.sshd.server.CommandFactory get ( ) { return new org.apache.sshd.server.CommandFactory ( ) { public com.google.gerrit.server.ssh.Command createCommand ( final java.lang.String requestCommand ) { final com.google.gerrit.server.ssh.DispatchCommand c = dispatcher.get ( ) ; c.setCommandLine ( requestCommand ) ; return c ; } } ; }
Source:
public static java.lang.String toHTML ( final com.google.gerrit.client.reviewdb.PatchLineComment comment ) { return com.google.gerrit.client.ui.DomUtil.wikify ( comment.getMessage ( ) . trim ( ) ) ; }

Target:
public static com.google.gwtexpui.safehtml.client.SafeHtml toSafeHtml ( final com.google.gerrit.client.reviewdb.PatchLineComment msg ) { return new com.google.gwtexpui.safehtml.client.SafeHtmlBuilder ( ) . append ( msg.getMessage ( ) . trim ( ) ) . wikify ( ) ; }
Source:
private static void export ( org.spearce.jgit.lib.RepositoryConfig config , java.sql.ResultSet rs ) throws java.sql.SQLException { com.google.gerrit.pgm.ConvertSystemConfig.sshd ( config , rs ) ; }

Target:
private static void export ( org.spearce.jgit.lib.RepositoryConfig config , java.sql.ResultSet rs ) throws java.sql.SQLException { com.google.gerrit.pgm.ConvertSystemConfig.sshd ( config , rs ) ; com.google.gerrit.pgm.ConvertSystemConfig.contactstore ( config , rs ) ; }
Source:
private static long getLastModified ( com.googlesource.gerrit.plugins.replication.ReplicationFileBasedConfig cfg ) throws java.io.IOException { return java.nio.file.Files.getLastModifiedTime ( cfg.getCfgPath ( ) ) . toMillis ( ) ; }

Target:
private static long getLastModified ( com.googlesource.gerrit.plugins.replication.ReplicationFileBasedConfig cfg ) { return com.google.gerrit.common.FileUtil.lastModified ( cfg.getCfgPath ( ) ) ; }
Source:
void addRef ( final java.lang.String ref ) { delta.add ( ref ) ; }

Target:
void addRef ( final java.lang.String ref ) { if ( com.google.gerrit.git.PushOp.MIRROR_ALL.equals ( ref ) ) { delta.clear ( ) ; mirror = true ; } else if ( ! ( mirror ) ) { delta.add ( ref ) ; } }
Source:
private void fail ( com.google.gerrit.reviewdb.client.Change change , java.lang.Throwable t ) { com.google.gerrit.pgm.Reindex.log.error ( ( "Failed to index change " + ( change.getId ( ) ) ) , t ) ; ok.set ( false ) ; failed.update ( 1 ) ; }

Target:
private void fail ( com.google.gerrit.reviewdb.client.Project.NameKey project , java.lang.Throwable t ) { com.google.gerrit.pgm.Reindex.log.error ( ( "Failed to index project " + project ) , t ) ; ok.set ( false ) ; }
Source:
private long extractCreated ( final com.google.gerrit.sshd.SshScope.Context ctx ) { return ctx != null ? ctx.created : java.lang.System.currentTimeMillis ( ) ; }

Target:
private long extractCreated ( final com.google.gerrit.sshd.SshScope.Context ctx ) { return ctx != null ? ctx.created : com.google.gerrit.server.util.TimeUtil.nowMs ( ) ; }
Source:
public void run ( ) { if ( ! ( session.isOpen ( ) ) ) { com.googlesource.gerrit.plugins.rabbitmq.message.MessagePublisher.LOGGER.info ( "#start: try to reconnect" ) ; session.connect ( ) ; } }

Target:
public void run ( ) { if ( ! ( isConnected ( ) ) ) { com.googlesource.gerrit.plugins.rabbitmq.message.MessagePublisher.LOGGER.info ( "#start: try to reconnect" ) ; connect ( ) ; } }
Source:
public void listEmptyGroupMembers ( ) throws java.lang.Exception { group ( "empty" , "Administrators" ) ; com.google.common.truth.Truth.assertThat ( GET ( "/groups/empty/members/" ) ) . isEmpty ( ) ; }

Target:
public void listEmptyGroupMembers ( ) throws java.lang.Exception { java.lang.String group = createGroup ( "empty" ) ; com.google.common.truth.Truth.assertThat ( GET ( ( ( "/groups/" + group ) + "/members/" ) ) ) . isEmpty ( ) ; }
Source:
protected void configure ( ) { persist ( com.googlesource.gerrit.plugins.quota.MaxRepositorySizeQuota.CACHE_NAME , Project.NameKey.class , java.util.concurrent.atomic.AtomicLong.class ) . loader ( com.googlesource.gerrit.plugins.quota.MaxRepositorySizeQuota.Loader.class ) . expireAfterWrite ( 1 , java.util.concurrent.TimeUnit.DAYS ) ; }

Target:
protected void configure ( ) { persist ( com.googlesource.gerrit.plugins.quota.MaxRepositorySizeQuota.REPO_SIZE_CACHE , Project.NameKey.class , java.util.concurrent.atomic.AtomicLong.class ) . loader ( com.googlesource.gerrit.plugins.quota.MaxRepositorySizeQuota.Loader.class ) . expireAfterWrite ( 1 , java.util.concurrent.TimeUnit.DAYS ) ; }
Source:
public com.google.gerrit.server.account.GroupControl controlFor ( com.google.gerrit.reviewdb.client.AccountGroup.UUID groupId ) throws com.google.gerrit.common.errors.NoSuchGroupException { final com.google.gerrit.common.data.GroupDescription.Basic group = groupBackend.get ( groupId ) ; if ( group == null ) { throw new com.google.gerrit.common.errors.NoSuchGroupException ( groupId ) ; } return controlFor ( group ) ; }

Target:
public com.google.gerrit.server.account.GroupControl validateFor ( com.google.gerrit.reviewdb.client.AccountGroup.UUID groupUUID ) throws com.google.gerrit.common.errors.NoSuchGroupException { final com.google.gerrit.server.account.GroupControl c = controlFor ( groupUUID ) ; if ( ! ( c.isVisible ( ) ) ) { throw new com.google.gerrit.common.errors.NoSuchGroupException ( groupUUID ) ; } return c ; }
Source:
public static void setCurrentMillisSupplier ( java.util.function.LongSupplier customCurrentMillisSupplier ) { com.google.gerrit.common.TimeUtil.currentMillisSupplier = customCurrentMillisSupplier ; }

Target:
public static void setCurrentMillisSupplier ( java.util.function.LongSupplier customCurrentMillisSupplier ) { com.google.gerrit.common.TimeUtil.currentMillisSupplier = customCurrentMillisSupplier ; org.eclipse.jgit.util.SystemReader oldSystemReader = org.eclipse.jgit.util.SystemReader.getInstance ( ) ; if ( ! ( oldSystemReader instanceof com.google.gerrit.common.TimeUtil.GerritSystemReader ) ) { org.eclipse.jgit.util.SystemReader.setInstance ( new com.google.gerrit.common.TimeUtil.GerritSystemReader ( oldSystemReader ) ) ; } }
Source:
private org.eclipse.jgit.junit.TestRepository < com.google.gerrit.testutil.InMemoryRepositoryManager.Repo > newRepo ( java.lang.String name ) throws java.lang.Exception { return new org.eclipse.jgit.junit.TestRepository ( repoManager.createRepository ( new com.google.gerrit.reviewdb.client.Project.NameKey ( name ) ) ) ; }

Target:
private org.eclipse.jgit.junit.TestRepository < com.google.gerrit.testing.InMemoryRepositoryManager.Repo > newRepo ( java.lang.String name ) throws java.lang.Exception { return new org.eclipse.jgit.junit.TestRepository ( repoManager.createRepository ( new com.google.gerrit.reviewdb.client.Project.NameKey ( name ) ) ) ; }
Source:
private com.google.gerrit.extensions.auth.oauth.OAuthUserInfo getAsOAuthUserInfo ( com.googlesource.gerrit.plugins.cfoauth.AccessToken accessToken ) { return new com.google.gerrit.extensions.auth.oauth.OAuthUserInfo ( accessToken.getExternalId ( ) , accessToken.getUserName ( ) , accessToken.getEmailAddress ( ) , null , null ) ; }

Target:
private com.google.gerrit.extensions.auth.oauth.OAuthUserInfo getAsOAuthUserInfo ( com.googlesource.gerrit.plugins.cfoauth.AccessToken accessToken , java.lang.String displayName ) { return new com.google.gerrit.extensions.auth.oauth.OAuthUserInfo ( accessToken.getExternalId ( ) , accessToken.getUserName ( ) , accessToken.getEmailAddress ( ) , displayName , null ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { header.toggleReviewed ( ) . run ( ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { upToChange ( true ) . run ( ) ; }
Source:
void onExpandAll ( com.google.gwt.event.dom.client.ClickEvent e ) { expandAll ( ) ; manager.remove ( this , otherBar ) ; cm.focus ( ) ; }

Target:
void onExpandAll ( com.google.gwt.event.dom.client.ClickEvent e ) { expandAll ( ) ; updateSelection ( ) ; otherBar.updateSelection ( ) ; cm.focus ( ) ; }
Source:
private void initUI ( ) { initOwner ( ) ; initDescription ( ) ; initRights ( ) ; }

Target:
public void onTabSelected ( com.google.gwt.user.client.ui.SourcesTabEvents sender , int tabIndex ) { com.google.gerrit.client.Gerrit.display ( tabTokens.get ( tabIndex ) , false ) ; }
Source:
public com.google.gerrit.extensions.api.changes.ChangeApi revert ( ) throws com.google.gerrit.extensions.restapi.RestApiException { com.google.gerrit.extensions.api.changes.d47190 Revert ; }

Target:
public com.google.gerrit.extensions.api.changes.ChangeApi revert ( ) throws com.google.gerrit.extensions.restapi.RestApiException { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }
Source:
public com.google.gerrit.server.update.BatchUpdate addRepoOnlyOp ( com.google.gerrit.server.update.BatchUpdate.RepoOnlyOp op ) { com.google.common.base.Preconditions.checkArgument ( ( ! ( op instanceof com.google.gerrit.server.update.BatchUpdate.Op ) ) , "use addOp()" ) ; repoOnlyOps.add ( op ) ; return this ; }

Target:
public com.google.gerrit.server.update.BatchUpdate addRepoOnlyOp ( com.google.gerrit.server.update.RepoOnlyOp op ) { com.google.common.base.Preconditions.checkArgument ( ( ! ( op instanceof com.google.gerrit.server.update.BatchUpdateOp ) ) , "use addOp()" ) ; repoOnlyOps.add ( op ) ; return this ; }
Source:
public com.google.gerrit.extensions.common.EditInfo applyFix ( java.lang.String fixId ) { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }

Target:
public com.google.gerrit.extensions.common.EditInfo applyFix ( java.lang.String fixId ) throws com.google.gerrit.extensions.restapi.RestApiException { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }
Source:
public void testNonIndexPredicate ( ) throws java.lang.Exception { com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in = parse ( "foo:a" ) ; org.junit.Assert.assertSame ( in , rewrite ( in ) ) ; }

Target:
public void testNonIndexPredicate ( ) throws java.lang.Exception { com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in = parse ( "foo:a" ) ; com.google.common.truth.Truth.assertThat ( in ) . isSameAs ( rewrite ( in ) ) ; }
Source:
public java.util.List < com.google.gerrit.extensions.common.AccountInfo > apply ( com.google.gerrit.server.group.GroupResource resource ) throws com.google.gerrit.extensions.restapi.MethodNotAllowedException , com.google.gwtorm.server.OrmException { if ( ( resource.toAccountGroup ( ) ) == null ) { throw new com.google.gerrit.extensions.restapi.MethodNotAllowedException ( ) ; } return apply ( resource.getGroupUUID ( ) ) ; }

Target:
public java.util.List < com.google.gerrit.extensions.common.AccountInfo > apply ( com.google.gerrit.server.group.GroupResource resource ) throws com.google.gerrit.extensions.restapi.MethodNotAllowedException , com.google.gwtorm.server.OrmException { com.google.gerrit.common.data.GroupDescription.Internal group = resource.asInternalGroup ( ) . orElseThrow ( MethodNotAllowedException :: new ) ; return apply ( group.getGroupUUID ( ) ) ; }
Source:
public com.googlesource.gerrit.plugins.its.phabricator.conduit.results.ManiphestUpdate maniphestUpdate ( int taskId , java.lang.Iterable < java.lang.String > projects ) throws com.googlesource.gerrit.plugins.its.phabricator.conduit.ConduitException { return maniphestUpdate ( taskId , null , projects ) ; }

Target:
public com.googlesource.gerrit.plugins.its.phabricator.conduit.results.ManiphestEdit maniphestEdit ( int taskId , java.lang.Iterable < java.lang.String > projects , java.lang.String action ) throws com.googlesource.gerrit.plugins.its.phabricator.conduit.ConduitException { return maniphestEdit ( taskId , null , projects , action ) ; }
Source:
private void init ( org.eclipse.jgit.transport.ReceivePack rp ) { for ( com.google.gerrit.server.config.ReceivePackInitializer initializer : receivePackInitializers ) { initializer.init ( projectControl.getProject ( ) . getNameKey ( ) , rp ) ; } }

Target:
private void init ( org.eclipse.jgit.transport.ReceivePack rp ) { for ( com.google.gerrit.server.git.ReceivePackInitializer initializer : receivePackInitializers ) { initializer.init ( projectControl.getProject ( ) . getNameKey ( ) , rp ) ; } }
Source:
private java.lang.String [ ] toTrusted ( final org.eclipse.jgit.lib.Config cfg ) { final java.lang.String [ ] r = cfg.getStringList ( "auth" , null , "trustedopenid" ) ; if ( ( r.length ) == 0 ) { return new java.lang.String [ ] { "http://" , "https://" } ; } return r ; }

Target:
private static java.util.List < com.google.gerrit.common.auth.openid.OpenIdProviderPattern > toPatterns ( org.eclipse.jgit.lib.Config cfg , java.lang.String name ) { java.lang.String [ ] s = cfg.getStringList ( "auth" , null , name ) ; if ( ( s.length ) == 0 ) { s = new java.lang.String [ ] { "http://" , "https://" } ; } java.util.List < com.google.gerrit.common.auth.openid.OpenIdProviderPattern > r = new java.util.ArrayList < com.google.gerrit.common.auth.openid.OpenIdProviderPattern > ( ) ; for ( java.lang.String pattern : s ) { r.add ( com.google.gerrit.common.auth.openid.OpenIdProviderPattern.create ( pattern ) ) ; } return java.util.Collections.unmodifiableList ( r ) ; }
Source:
public void run ( ) { cm.getInputField ( ) . blur ( ) ; removeActiveLineHighlight ( cm ) ; removeActiveLineHighlight ( otherCm ( cm ) ) ; }

Target:
public void run ( ) { cm.getInputField ( ) . blur ( ) ; clearActiveLine ( cm ) ; clearActiveLine ( otherCm ( cm ) ) ; }
Source:
public Response.Action getDownloadAction ( org.eclipse.jgit.lfs.lib.AnyLongObjectId id ) { org.eclipse.jgit.lfs.server.Response.Action action = super . getDownloadAction ( id ) ; action.header = java.util.Collections.singletonMap ( org.eclipse.jgit.util.HttpSupport.HDR_AUTHORIZATION , authorizer.generateToken ( com.googlesource.gerrit.plugins.lfs.fs.LocalLargeFileRepository.DOWNLOAD , id ) ) ; return action ; }

Target:
public Response.Action getDownloadAction ( org.eclipse.jgit.lfs.lib.AnyLongObjectId id ) { org.eclipse.jgit.lfs.server.Response.Action action = super . getDownloadAction ( id ) ; action.header = java.util.Collections.singletonMap ( org.eclipse.jgit.util.HttpSupport.HDR_AUTHORIZATION , authorizer.generateToken ( com.googlesource.gerrit.plugins.lfs.fs.LocalLargeFileRepository.DOWNLOAD , id , expirationSeconds ) ) ; return action ; }
Source:
private com.google.gitiles.doc.MarkdownToHtml readme ( com.google.gitiles.GitilesView v , java.lang.String path ) { return new com.google.gitiles.doc.MarkdownToHtml ( v , config , path ) ; }

Target:
private com.google.gitiles.doc.MarkdownToHtml readme ( com.google.gitiles.GitilesView v , java.lang.String path ) { return com.google.gitiles.doc.MarkdownToHtml.builder ( ) . setGitilesView ( v ) . setConfig ( new com.google.gitiles.doc.MarkdownConfig ( config ) ) . setFilePath ( path ) . build ( ) ; }
Source:
public void logout ( ) { if ( ( val ) != null ) { manager.destroy ( key ) ; key = null ; val = null ; saveCookie ( "" , 0 ) ; } }

Target:
public void login ( final com.google.gerrit.client.reviewdb.Account.Id id , final boolean rememberMe ) { logout ( ) ; key = manager.createKey ( id ) ; val = manager.createVal ( key , id , rememberMe ) ; saveCookie ( ) ; }
Source:
com.google.gerrit.server.patch.PatchListKey toPatchListKey ( ) { return new com.google.gerrit.server.patch.PatchListKey ( oldId , parentNum , newId , whitespace , PatchListKey.Algorithm.OPTIMIZED_DIFF ) ; }

Target:
public com.google.gerrit.server.diff.PatchListKey toPatchListKey ( ) { return new com.google.gerrit.server.diff.PatchListKey ( oldId , parentNum , newId , whitespace , PatchListKey.Algorithm.OPTIMIZED_DIFF ) ; }
Source:
protected com.google.gerrit.server.index.Schema < T > schema ( ) { com.google.gerrit.server.index.Index < ? , T > index = ( ( indexes ) != null ) ? indexes.getSearchIndex ( ) : null ; return index != null ? index.getSchema ( ) : null ; }

Target:
protected com.google.gerrit.index.Schema < T > schema ( ) { com.google.gerrit.index.Index < ? , T > index = ( ( indexes ) != null ) ? indexes.getSearchIndex ( ) : null ; return index != null ? index.getSchema ( ) : null ; }
Source:
public com.google.gerrit.reviewdb.client.Change abandon ( com.google.gerrit.server.update.BatchUpdate.Factory updateFactory , com.google.gerrit.server.project.ChangeControl control ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.update.UpdateException { return abandon ( updateFactory , control , "" , NotifyHandling.ALL , com.google.common.collect.ImmutableListMultimap.of ( ) ) ; }

Target:
public com.google.gerrit.reviewdb.client.Change abandon ( com.google.gerrit.server.update.BatchUpdate.Factory updateFactory , com.google.gerrit.server.project.ChangeControl control , java.lang.String msgTxt ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.update.UpdateException { return abandon ( updateFactory , control , msgTxt , defaultNotify ( control ) , com.google.common.collect.ImmutableListMultimap.of ( ) ) ; }
Source:
com.google.gerrit.pgm.init.Section get ( java.lang.String name ) ;

Target:
com.google.gerrit.pgm.init.Section get ( @ com.google.inject.assistedinject.Assisted ( value = "section" ) java.lang.String section , @ com.google.inject.assistedinject.Assisted ( value = "subsection" ) java.lang.String subsection ) ;
Source:
javax.servlet.http.HttpServlet getDocServlet ( @ 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 ) { HEAD ( 685 ) ; com.google.gerrit.httpd.raw.b5b Merge ; }

Target:
protected void service ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse resp ) throws java.io.IOException { resp.sendError ( HttpServletResponse.SC_NOT_FOUND ) ; }
Source:
public java.util.Map < java.lang.String , com.google.gerrit.extensions.common.ActionInfo > actions ( ) throws com.google.gerrit.extensions.restapi.RestApiException { return revisionActions.apply ( revision ) . value ( ) ; }

Target:
public java.util.Map < java.lang.String , com.google.gerrit.extensions.common.ActionInfo > actions ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return revisionActions.apply ( revision ) . value ( ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot get actions" , e ) ; } }
Source:
protected com.google.gerrit.server.notedb.ChangeUpdate newUpdate ( com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.server.CurrentUser user ) throws java.lang.Exception { com.google.gerrit.server.notedb.ChangeUpdate update = com.google.gerrit.testutil.TestChanges.newUpdate ( injector , c , user ) ; update.setAllowWriteToNewRef ( true ) ; return update ; }

Target:
protected com.google.gerrit.server.notedb.ChangeUpdate newUpdate ( com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.server.CurrentUser user ) throws java.lang.Exception { com.google.gerrit.server.notedb.ChangeUpdate update = com.google.gerrit.testutil.TestChanges.newUpdate ( injector , c , user ) ; update.setPatchSetId ( c.currentPatchSetId ( ) ) ; update.setAllowWriteToNewRef ( true ) ; return update ; }
Source:
public void onSuccess ( final java.util.List < com.google.gerrit.client.data.ChangeInfo > result ) { starred.display ( result ) ; table.finishDisplay ( true ) ; }

Target:
public void onSuccess ( final com.google.gerrit.client.data.MineStarredInfo result ) { table.setAccountInfoCache ( result.getAccounts ( ) ) ; starred.display ( result.getStarred ( ) ) ; table.finishDisplay ( true ) ; }
Source:
private java.lang.Object cache ( java.lang.Object res ) { return com.google.gerrit.extensions.restapi.Response.ok ( res ) . caching ( com.google.gerrit.extensions.restapi.CacheControl.PRIVATE ( 0 , java.util.concurrent.TimeUnit.SECONDS ) . setMustRevalidate ( ) ) ; }

Target:
private com.google.gerrit.extensions.restapi.Response < com.google.gerrit.server.change.ChangeJson.ChangeInfo > cache ( com.google.gerrit.server.change.ChangeJson.ChangeInfo res ) { return com.google.gerrit.extensions.restapi.Response.ok ( res ) . caching ( com.google.gerrit.extensions.restapi.CacheControl.PRIVATE ( 0 , java.util.concurrent.TimeUnit.SECONDS ) . setMustRevalidate ( ) ) ; }
Source:
com.google.gerrit.extensions.client.ChangeKind getChangeKind ( @ com.google.gerrit.common.Nullable org.eclipse.jgit.lib.Repository repo , @ com.google.gerrit.common.Nullable org.eclipse.jgit.revwalk.RevWalk rw , com.google.gerrit.server.query.change.ChangeData cd , com.google.gerrit.reviewdb.client.PatchSet patch ) ;

Target:
com.google.gerrit.extensions.client.ChangeKind getChangeKind ( @ com.google.gerrit.common.Nullable org.eclipse.jgit.revwalk.RevWalk rw , @ com.google.gerrit.common.Nullable org.eclipse.jgit.lib.Config repoConfig , com.google.gerrit.server.query.change.ChangeData cd , com.google.gerrit.reviewdb.client.PatchSet patch ) ;
Source:
void onLogout ( ) { async.append ( log ( "LOGOUT" ) ) ; }

Target:
void onLogout ( ) { async.append ( log ( "LOGOUT" ) ) ; audit ( "0" , "LOGOUT" , new java.lang.String [ ] { } ) ; }
Source:
private void toggleCurrentRow ( ) { final com.google.gwt.user.client.ui.CheckBox cb = ( ( com.google.gwt.user.client.ui.CheckBox ) ( table.getWidget ( getCurrentRow ( ) , 1 ) ) ) ; cb.setChecked ( ( ! ( cb.isChecked ( ) ) ) ) ; }

Target:
private void toggleCurrentRow ( ) { final com.google.gwt.user.client.ui.CheckBox cb = ( ( com.google.gwt.user.client.ui.CheckBox ) ( table.getWidget ( getCurrentRow ( ) , 1 ) ) ) ; cb.setValue ( ( ! ( cb.getValue ( ) ) ) ) ; }
Source:
private com.googlesource.gerrit.plugins.uploadvalidator.ValidatorConfig getConfig ( java.lang.String defaultConfig ) throws org.eclipse.jgit.errors.ConfigInvalidException { com.googlesource.gerrit.plugins.uploadvalidator.ValidatorConfig config = new com.googlesource.gerrit.plugins.uploadvalidator.ValidatorConfig ( new com.googlesource.gerrit.plugins.uploadvalidator.FakeConfigFactory ( projectName , defaultConfig ) , new com.googlesource.gerrit.plugins.uploadvalidator.FakeGroupCacheUUIDByName ( ) ) ; return config ; }

Target:
private com.googlesource.gerrit.plugins.uploadvalidator.ValidatorConfig getConfig ( java.lang.String defaultConfig ) throws org.eclipse.jgit.errors.ConfigInvalidException { return new com.googlesource.gerrit.plugins.uploadvalidator.ValidatorConfig ( new com.googlesource.gerrit.plugins.uploadvalidator.FakeConfigFactory ( projectName , defaultConfig ) , new com.googlesource.gerrit.plugins.uploadvalidator.FakeGroupByNameFinder ( ) ) ; }
Source:
public boolean accept ( java.io.File pathname ) { return ( pathname.getName ( ) . endsWith ( ".jar" ) ) && ( pathname.isFile ( ) ) ; }

Target:
public boolean accept ( java.io.File pathname ) { java.lang.String n = pathname.getName ( ) ; return ( ( n.endsWith ( ".jar" ) ) || ( n.endsWith ( ".jar.disabled" ) ) ) && ( pathname.isFile ( ) ) ; }
Source:
private void appendLineText ( final com.google.gwtexpui.safehtml.client.SafeHtmlBuilder m , final com.google.gerrit.client.patches.PatchLine.Type type , final com.google.gerrit.prettify.common.SparseHtmlFile src , final int i , final boolean fullBlock ) { appendLineText ( m , type , src.getSafeHtmlLine ( i ) , src.hasTrailingEdit ( i ) , fullBlock ) ; }

Target:
private void appendLineText ( final com.google.gwtexpui.safehtml.client.SafeHtmlBuilder m , final com.google.gerrit.client.patches.PatchLine.Type type , final com.google.gerrit.prettify.client.SparseHtmlFile src , final int i , final boolean fullBlock ) { appendLineText ( m , type , src.getSafeHtmlLine ( i ) , src.hasTrailingEdit ( i ) , fullBlock ) ; }
Source:
public void checkChanges ( com.google.gerrit.reviewdb.client.Change ... changeIds ) throws java.lang.Exception { checkActual ( readExpected ( java.util.Arrays.stream ( changeIds ) ) , new java.util.ArrayList < > ( ) ) ; }

Target:
public void checkChanges ( com.google.gerrit.reviewdb.client.Change ... changeIds ) throws java.lang.Exception { checkActual ( readExpected ( java.util.Arrays.stream ( changeIds ) ) , com.google.common.collect.ImmutableListMultimap.of ( ) , new java.util.ArrayList < > ( ) ) ; }
Source:
public com.google.gitiles.GitilesView.Builder setExtension ( java.lang.String extension ) { switch ( type ) { default : com.google.common.base.Preconditions.checkState ( ( extension == null ) , "cannot set path on %s view" , type ) ; case ARCHIVE : this . extension = extension ; break ; } return this ; }

Target:
public com.google.gitiles.GitilesView.Builder setExtension ( java.lang.String extension ) { switch ( type ) { default : com.google.common.base.Preconditions.checkState ( ( extension == null ) , "cannot set extension on %s view" , type ) ; case ARCHIVE : this . extension = extension ; break ; } return this ; }
Source:
public static void markPrivate ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( "private" ) . post ( com.google.gerrit.client.changes.ChangeApi.PrivateInput.create ( ) , cb ) ; }

Target:
public static void deleteAssignee ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.info.AccountInfo > cb ) { com.google.gerrit.client.changes.ChangeApi.change ( project , id ) . view ( "assignee" ) . delete ( cb ) ; }
Source:
public void evictAllNoReindex ( ) { byId.invalidateAll ( ) ; }

Target:
public void evictAll ( ) { byId.invalidateAll ( ) ; }
Source:
public com.google.gerrit.reviewdb.client.PatchSet get ( com.google.gerrit.reviewdb.client.PatchSet.Id id ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.server.schema.DisabledChangesReviewDbWrapper.MSG ) ; }

Target:
public com.google.gerrit.reviewdb.client.PatchSet get ( com.google.gerrit.reviewdb.client.PatchSet.Id id ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.reviewdb.server.DisabledChangesReviewDbWrapper.MSG ) ; }
Source:
public final com.google.gerrit.server.index.IndexDefinition.IndexFactory < K , V , I > getIndexFactory ( ) { return indexFactory ; }

Target:
public final com.google.gerrit.index.IndexDefinition.IndexFactory < K , V , I > getIndexFactory ( ) { return indexFactory ; }
Source:
private synchronized void runHook ( java.nio.file.Path hook , java.util.List < java.lang.String > args ) { if ( java.nio.file.Files.exists ( hook ) ) { hookQueue.execute ( new com.google.gerrit.common.ChangeHookRunner.AsyncHookTask ( null , hook , args ) ) ; } }

Target:
private synchronized void runHook ( com.google.common.base.Optional < java.nio.file.Path > hook , java.util.List < java.lang.String > args ) { if ( hook.isPresent ( ) ) { hookQueue.execute ( new com.google.gerrit.common.ChangeHookRunner.AsyncHookTask ( null , hook.get ( ) , args ) ) ; } }
Source:
public static void putContent ( com.google.gerrit.reviewdb.client.PatchSet.Id id , java.lang.String filename , java.lang.String content , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.VoidResult > result ) { com.google.gerrit.client.changes.ChangeFileApi.contentEdit ( id.getParentKey ( ) , filename ) . put ( content , result ) ; }

Target:
public static void putContent ( com.google.gerrit.reviewdb.client.PatchSet.Id id , java.lang.String filename , java.lang.String content , com.google.gerrit.client.rpc.GerritCallback < com.google.gerrit.client.VoidResult > result ) { com.google.gerrit.client.changes.ChangeFileApi.contentEdit ( id.getParentKey ( ) , filename ) . put ( content , result ) ; }
Source:
public com.google.gerrit.reviewdb.client.SystemConfig getSystemConfig ( ) throws com.google.gwtorm.server.OrmException { final com.google.gerrit.reviewdb.server.ReviewDb c = open ( ) ; try { return c.systemConfig ( ) . get ( new com.google.gerrit.reviewdb.client.SystemConfig.Key ( ) ) ; } finally { c.close ( ) ; } }

Target:
public com.google.gerrit.reviewdb.client.CurrentSchemaVersion getSchemaVersion ( ) throws com.google.gwtorm.server.OrmException { try ( com.google.gerrit.reviewdb.server.ReviewDb c = open ( ) ) { return c.schemaVersion ( ) . get ( new com.google.gerrit.reviewdb.client.CurrentSchemaVersion.Key ( ) ) ; } }
Source:
public void setCertificate ( java.lang.String certificate ) { this . certificate = certificate ; resetSession ( ) ; }

Target:
public com.googlesource.gerrit.plugins.its.phabricator.conduit.results.ManiphestEdit maniphestEdit ( int taskId , java.lang.String comment ) throws com.googlesource.gerrit.plugins.its.phabricator.conduit.ConduitException { return maniphestEdit ( taskId , comment , null , com.googlesource.gerrit.plugins.its.phabricator.conduit.Conduit.ACTION_COMMENT ) ; }
Source:
public int getTabIndex ( ) { return suggestBox.getTabIndex ( ) ; }

Target:
public void setFocus ( boolean focused ) { suggestBox.setFocus ( focused ) ; }
Source:
private void group ( java.lang.String name , java.lang.String ownerGroup ) throws java.io.IOException { com.google.gerrit.acceptance.rest.group.GroupInput in = new com.google.gerrit.acceptance.rest.group.GroupInput ( ) ; in.owner_id = ownerGroup ; session.put ( ( "/groups/" + name ) , in ) . consume ( ) ; }

Target:
private void group ( java.lang.String name , java.lang.String ownerGroup ) throws java.io.IOException { com.google.gerrit.server.group.CreateGroup.Input in = new com.google.gerrit.server.group.CreateGroup.Input ( ) ; in.ownerId = ownerGroup ; session.put ( ( "/groups/" + name ) , in ) . consume ( ) ; }
Source:
public void run ( ) { try { sem.acquire ( queueLen ) ; } catch ( java.lang.InterruptedException e ) { e.printStackTrace ( ) ; } pm.end ( ) ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > apply ( java.util.List < ? > input ) throws java.lang.Exception { mpm.end ( ) ; return com.google.common.util.concurrent.Futures.immediateFuture ( null ) ; }
Source:
private boolean canRead ( com.google.gerrit.server.project.ChangeControl ctl ) throws com.google.gerrit.server.permissions.PermissionBackendException { return permissionBackend.user ( user ) . change ( ctl.getNotes ( ) ) . database ( db ) . test ( ChangePermission.READ ) ; }

Target:
private boolean canRead ( com.google.gerrit.server.notedb.ChangeNotes notes ) throws com.google.gerrit.server.permissions.PermissionBackendException { return permissionBackend.user ( user ) . change ( notes ) . database ( db ) . test ( ChangePermission.READ ) ; }
Source:
private java.util.Optional < com.google.gerrit.server.edit.ChangeEdit > lookupChangeEdit ( com.google.gerrit.server.project.ChangeControl changeControl ) throws com.google.gerrit.extensions.restapi.AuthException , java.io.IOException { return changeEditUtil.byChange ( changeControl ) ; }

Target:
private java.util.Optional < com.google.gerrit.server.edit.ChangeEdit > lookupChangeEdit ( com.google.gerrit.server.notedb.ChangeNotes notes ) throws com.google.gerrit.extensions.restapi.AuthException , java.io.IOException { return changeEditUtil.byChange ( notes ) ; }
Source:
public com.google.gerrit.extensions.common.ChangeInfo get ( java.util.EnumSet < com.google.gerrit.extensions.client.ListChangesOption > s ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return changeJson.create ( s ) . format ( change ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot retrieve change" , e ) ; } }

Target:
public com.google.gerrit.extensions.common.ChangeInfo get ( java.util.EnumSet < com.google.gerrit.extensions.client.ListChangesOption > s ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return changeJson.create ( s ) . format ( change ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot retrieve change" , e ) ; } }
Source:
public void noNotificationForPrivateChangesForWatchersInNotifyConfig ( ) throws java.lang.Exception { com.google.gerrit.server.mail.Address addr = new com.google.gerrit.server.mail.Address ( "Watcher" , "watcher@example.com" ) ; com.google.gerrit.server.git.NotifyConfig nc = new com.google.gerrit.server.git.NotifyConfig ( ) ; nc.addEmail ( addr ) ; nc.setName ( "team" ) ; nc.setHeader ( NotifyConfig.Header.TO ) ; nc.setTypes ( java.util.EnumSet.of ( NotifyType.NEW_CHANGES ) ) ; com.google.gerrit.server.git.ProjectConfig cfg = projectCache.checkedGet ( project ) . getConfig ( ) ; cfg.putNotifyConfig ( "team" , nc ) ; saveProjectConfig ( project , cfg ) ; sender.clear ( ) ; com.google.gerrit.acceptance.PushOneCommit.Result r = pushFactory.create ( db , admin.getIdent ( ) , testRepo , "private change" , "a" , "a1" ) . to ( "refs/for/master%private" ) ; r.assertOkStatus ( ) ; com.google.common.truth.Truth.assertThat ( sender.getMessages ( ) ) . isEmpty ( ) ; }

Target:
public void noNotificationForPrivateChangesForWatchersInNotifyConfig ( ) throws java.lang.Exception { com.google.gerrit.server.mail.Address addr = new com.google.gerrit.server.mail.Address ( "Watcher" , "watcher@example.com" ) ; com.google.gerrit.server.git.NotifyConfig nc = new com.google.gerrit.server.git.NotifyConfig ( ) ; nc.addEmail ( addr ) ; nc.setName ( "team" ) ; nc.setHeader ( NotifyConfig.Header.TO ) ; nc.setTypes ( java.util.EnumSet.of ( NotifyType.NEW_CHANGES , NotifyType.ALL_COMMENTS ) ) ; com.google.gerrit.server.git.ProjectConfig cfg = projectCache.checkedGet ( project ) . getConfig ( ) ; cfg.putNotifyConfig ( "team" , nc ) ; saveProjectConfig ( project , cfg ) ; sender.clear ( ) ; com.google.gerrit.acceptance.PushOneCommit.Result r = pushFactory.create ( db , admin.getIdent ( ) , testRepo , "private change" , "a" , "a1" ) . to ( "refs/for/master%private" ) ; r.assertOkStatus ( ) ; com.google.common.truth.Truth.assertThat ( sender.getMessages ( ) ) . isEmpty ( ) ; setApiUser ( admin ) ; com.google.gerrit.extensions.api.changes.ReviewInput in = new com.google.gerrit.extensions.api.changes.ReviewInput ( ) ; in.message = "comment" ; gApi.changes ( ) . id ( r.getChangeId ( ) ) . current ( ) . review ( in ) ; com.google.common.truth.Truth.assertThat ( sender.getMessages ( ) ) . isEmpty ( ) ; }
Source:
public void generateResultSetGet ( final com.google.gwtorm.jdbc.gen.CodeGenSupport cgs ) { cgs.fieldSetBegin ( ) ; cgs.pushSqlHandle ( ) ; cgs.pushColumnIndex ( ) ; cgs.invokeResultSetGet ( getJavaSqlTypeAlias ( ) ) ; cgs.fieldSetEnd ( ) ; }

Target:
public void generateResultSetGet ( final com.google.gwtorm.server.CodeGenSupport cgs ) { cgs.fieldSetBegin ( ) ; cgs.pushSqlHandle ( ) ; cgs.pushColumnIndex ( ) ; cgs.invokeResultSetGet ( getJavaSqlTypeAlias ( ) ) ; cgs.fieldSetEnd ( ) ; }
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.common.session.AbstractSession doCreateSession ( org.apache.sshd.common.io.IoSession ioSession ) throws java.lang.Exception { return new com.google.gerrit.sshd.GerritServerSession ( getServer ( ) , ioSession ) ; }
Source:
public java.lang.String apply ( com.google.gerrit.server.change.ChangeResource rsrc ) { com.google.gerrit.server.config.PluginConfig cfg = cfgFactory.getFromProjectConfig ( rsrc.getControl ( ) . getProjectControl ( ) . getProjectState ( ) , pluginName ) ; return cfg.getString ( "changeInfo" ) ; }

Target:
public java.lang.String apply ( com.google.gerrit.server.change.ChangeResource rsrc ) throws com.google.gerrit.server.project.NoSuchProjectException { com.google.gerrit.server.config.PluginConfig cfg = cfgFactory.getFromProjectConfig ( rsrc.getProject ( ) , pluginName ) ; return cfg.getString ( "changeInfo" ) ; }
Source:
org.eclipse.jgit.lib.Repository getAllUsersRepo ( ) throws java.io.IOException { initAllUsersRepo ( ) ; return allUsersRepo.repo ; }

Target:
private void initCodeRepo ( ) throws java.io.IOException { if ( ( codeRepo ) == null ) { codeRepo = openRepo ( projectName , false ) ; } }
Source:
org.eclipse.jgit.revwalk.RevWalk getChangeRevWalk ( ) throws java.io.IOException { initChangeRepo ( ) ; return changeRepo.rw ; }

Target:
com.google.gerrit.server.notedb.NoteDbUpdateManager.OpenRepo getCodeRepo ( ) throws java.io.IOException { initCodeRepo ( ) ; return codeRepo ; }
Source:
void patchSetDetail ( com.google.gerrit.reviewdb.PatchSet.Id keyA , com.google.gerrit.reviewdb.PatchSet.Id keyB , com.google.gerrit.reviewdb.AccountDiffPreference diffPrefs , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.PatchSetDetail > callback ) ;

Target:
void patchSetDetail2 ( com.google.gerrit.reviewdb.PatchSet.Id baseId , com.google.gerrit.reviewdb.PatchSet.Id key , com.google.gerrit.reviewdb.AccountDiffPreference diffPrefs , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.PatchSetDetail > callback ) ;