auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public final com.google.gerrit.client.projects.ConfigInfo.ConfigParameterValue values ( java.lang.String [ ] values ) { init ( ) ; for ( java.lang.String v : values ) { add_value ( v ) ; } return this ; }

Target:
public final com.google.gerrit.client.projects.ConfigInfo.ConfigParameterValue values ( java.lang.String [ ] values ) { init ( ) ; for ( java.lang.String v : values ) { addValue ( v ) ; } return this ; }
Source:
protected void onOpenRow ( final int row ) { com.google.gwt.user.client.History.newItem ( com.google.gerrit.client.Dispatcher.toAccountGroup ( getRowItem ( row ) . getId ( ) ) ) ; }

Target:
protected void onOpenRow ( final int row ) { com.google.gwt.user.client.History.newItem ( com.google.gerrit.client.Dispatcher.toGroup ( getRowItem ( row ) . getId ( ) ) ) ; }
Source:
public com.google.gerrit.extensions.restapi.BinaryResult apply ( com.google.gerrit.server.project.FileResource rsrc ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException , java.io.IOException { return fileContentUtil.getContent ( rsrc.getProject ( ) . getProjectState ( ) , rsrc.getRev ( ) , rsrc.getPath ( ) ) ; }

Target:
public com.google.gerrit.extensions.restapi.BinaryResult apply ( com.google.gerrit.server.project.FileResource rsrc ) throws com.google.gerrit.extensions.restapi.BadRequestException , com.google.gerrit.extensions.restapi.ResourceNotFoundException , java.io.IOException { return fileContentUtil.getContent ( rsrc.getProject ( ) . getProjectState ( ) , rsrc.getRev ( ) , rsrc.getPath ( ) , null ) ; }
Source:
public java.lang.String getChangeAvatarUrl ( com.google.gerrit.server.IdentifiedUser forUser ) { return replaceInUrl ( avatarChangeUrl , forUser.getUserName ( ) ) ; }

Target:
public java.lang.String getChangeAvatarUrl ( com.google.gerrit.server.IdentifiedUser forUser ) { java.lang.String userReplacedAvatarChangeURL = replaceInUrl ( com.googlesource.gerrit.plugins.avatars.external.ExternalUrlAvatarProvider.USER_PLACEHOLDER , avatarChangeUrl , forUser.getUserName ( ) ) ; return replaceInUrl ( com.googlesource.gerrit.plugins.avatars.external.ExternalUrlAvatarProvider.EMAIL_PLACEHOLDER , userReplacedAvatarChangeURL , forUser.getAccount ( ) . getPreferredEmail ( ) ) ; }
Source:
private static boolean isModify ( com.google.gerrit.server.diff.PatchListEntry content ) { switch ( content.getChangeType ( ) ) { case MODIFIED : case COPIED : case RENAMED : case REWRITE : return true ; case ADDED : case DELETED : default : return false ; } }

Target:
private static boolean isModify ( com.google.gerrit.server.patch.PatchListEntry content ) { switch ( content.getChangeType ( ) ) { case MODIFIED : case COPIED : case RENAMED : case REWRITE : return true ; case ADDED : case DELETED : default : return false ; } }
Source:
public final boolean isClientSslCertLdap ( ) { return ( authType ( ) ) == ( com.google.gerrit.reviewdb.client.AuthType.CLIENT_SSL_CERT_LDAP ) ; }

Target:
public final boolean isClientSslCertLdap ( ) { return ( authType ( ) ) == ( com.google.gerrit.extensions.client.AuthType.CLIENT_SSL_CERT_LDAP ) ; }
Source:
public void indexPredicate ( ) throws java.lang.Exception { com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in = parse ( "file:a" ) ; com.google.common.truth.Truth.assertThat ( rewrite ( in ) ) . isEqualTo ( query ( in ) ) ; }

Target:
public void indexPredicate ( ) throws java.lang.Exception { com.google.gerrit.index.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in = parse ( "file:a" ) ; com.google.common.truth.Truth.assertThat ( rewrite ( in ) ) . isEqualTo ( query ( in ) ) ; }
Source:
public com.google.gerrit.server.change.CommentInfo apply ( com.google.gerrit.server.change.DraftResource rsrc ) { return new com.google.gerrit.server.change.CommentInfo ( rsrc.getComment ( ) , null ) ; }

Target:
public com.google.gerrit.extensions.common.CommentInfo apply ( com.google.gerrit.server.change.DraftResource rsrc ) throws com.google.gwtorm.server.OrmException { return commentJson.format ( rsrc.getComment ( ) ) ; }
Source:
public boolean apply ( K in ) { return patchSets.containsKey ( func.apply ( in ) ) ; }

Target:
public boolean apply ( K in ) { com.google.gerrit.reviewdb.client.PatchSet.Id psId = func.apply ( in ) ; return ( upToCurrent.apply ( psId ) ) && ( patchSets.containsKey ( psId ) ) ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.httpd.GerritUiOptions.class ) . toInstance ( new com.google.gerrit.httpd.GerritUiOptions ( headless ) ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.httpd.GerritUiOptions.class ) . toInstance ( new com.google.gerrit.httpd.GerritUiOptions ( headless ) ) ; if ( test ) { bind ( com.google.gerrit.server.securestore.SecureStore.class ) . toProvider ( com.google.gerrit.pgm.util.SecureStoreProvider.class ) ; } }
Source:
public void stop ( ) { }

Target:
public void stop ( ) { java.util.concurrent.ScheduledFuture < ? > f = handle ; if ( f != null ) { handle = null ; f.cancel ( true ) ; } }
Source:
public void readCommentLinkRawHtml ( ) throws java.lang.Exception { org.eclipse.jgit.revwalk.RevCommit rev = tr.commit ( ) . add ( "project.config" , ( "[commentlink \"bugzilla\"]\n" + ( "\tmatch = \"(bugs#?)(d+)\"\n" + "\thtml = http://bugs.example.com/show_bug.cgi?id=$2" ) ) ) . create ( ) ; com.google.gerrit.server.git.ProjectConfig cfg = read ( rev ) ; com.google.common.truth.Truth.assertThat ( cfg.getCommentLinkSections ( ) ) . isEmpty ( ) ; com.google.common.truth.Truth.assertThat ( cfg.getValidationErrors ( ) . stream ( ) . map ( ValidationError :: getMessage ) ) . containsExactly ( ( "project.config: Error in pattern \"(bugs#?)(d+)\" in commentlink.bugzilla.match: " + "Raw html replacement not allowed" ) ) ; }

Target:
public void readCommentLinkRawHtml ( ) throws java.lang.Exception { org.eclipse.jgit.revwalk.RevCommit rev = tr.commit ( ) . add ( "project.config" , ( "[commentlink \"bugzilla\"]\n" + ( "\tmatch = \"(bugs#?)(d+)\"\n" + "\thtml = http://bugs.example.com/show_bug.cgi?id=$2" ) ) ) . create ( ) ; com.google.gerrit.server.git.ProjectConfig cfg = read ( rev ) ; com.google.common.truth.Truth.assertThat ( cfg.getCommentLinkSections ( ) ) . isEmpty ( ) ; com.google.common.truth.Truth.assertThat ( cfg.getValidationErrors ( ) ) . containsExactly ( new com.google.gerrit.server.git.ValidationError ( ( "project.config: Error in pattern \"(bugs#?)(d+)\" in commentlink.bugzilla.match: " + "Raw html replacement not allowed" ) ) ) ; }
Source:
private boolean search ( java.util.Set < com.google.gerrit.reviewdb.client.AccountGroup.UUID > ids ) { return user.getEffectiveGroups ( ) . containsAnyOf ( ids ) ; }

Target:
private boolean search ( java.util.Set < com.google.gerrit.reviewdb.client.AccountGroup.UUID > ids ) { return user.memberOfAny ( ids ) ; }
Source:
public java.lang.String getUserName ( ) { return username ; }

Target:
public java.util.Optional < java.lang.String > getUserName ( ) { return java.util.Optional.of ( username ) ; }
Source:
private static boolean match ( java.util.Set < com.google.gerrit.reviewdb.AccountGroup.UUID > groups , com.google.gerrit.common.data.PermissionRule rule ) { return groups.contains ( rule.getGroup ( ) . getUUID ( ) ) ; }

Target:
private static boolean match ( com.google.gerrit.server.account.GroupMembership groups , com.google.gerrit.common.data.PermissionRule rule ) { return groups.contains ( rule.getGroup ( ) . getUUID ( ) ) ; }
Source:
private static com.google.gerrit.extensions.common.InheritableBoolean asInheritableBoolean ( java.sql.ResultSet rs , java.lang.String col ) throws java.sql.SQLException { return "Y" . equals ( rs.getString ( col ) ) ? com.google.gerrit.extensions.common.InheritableBoolean.TRUE : com.google.gerrit.extensions.common.InheritableBoolean.INHERIT ; }

Target:
private static com.google.gerrit.extensions.client.InheritableBoolean asInheritableBoolean ( java.sql.ResultSet rs , java.lang.String col ) throws java.sql.SQLException { return "Y" . equals ( rs.getString ( col ) ) ? com.google.gerrit.extensions.client.InheritableBoolean.TRUE : com.google.gerrit.extensions.client.InheritableBoolean.INHERIT ; }
Source:
public java.sql.Timestamp apply ( com.google.gerrit.reviewdb.client.PatchSetApproval input ) { return input.getGranted ( ) ; }

Target:
public static com.google.gerrit.reviewdb.client.Change readOneReviewDbChange ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Change.Id id ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.reviewdb.server.ReviewDbUtil.unwrapDb ( db ) . changes ( ) . get ( id ) ; }
Source:
private void addMessage ( java.lang.String message ) { messages.add ( new com.google.gerrit.server.git.ReceiveCommits.Message ( message , false ) ) ; }

Target:
private void addMessage ( java.lang.String message ) { messages.add ( new com.google.gerrit.server.git.validators.CommitValidationMessage ( message , false ) ) ; }
Source:
public void revokedByKeyNotPresentInStore ( ) throws java.lang.Exception { com.google.gerrit.gpg.testutil.TestKey k = add ( com.google.gerrit.gpg.testutil.TestKeys.revokedCompromisedKey ( ) ) ; save ( ) ; assertProblems ( k ) ; }

Target:
public void revokedByKeyNotPresentInStore ( ) throws java.lang.Exception { com.google.gerrit.gpg.testutil.TestKey k = add ( com.google.gerrit.gpg.testutil.TestKeys.revokedCompromisedKey ( ) ) ; save ( ) ; assertProblems ( k , ( "Key is revoked (key material has been compromised):" + " test6 compromised" ) ) ; }
Source:
void onDeleteChange ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( com.google.gwt.user.client.Window.confirm ( Resources.C.deleteDraftChange ( ) ) ) { com.google.gerrit.client.change.DraftActions.delete ( changeId , publish , deleteRevision , deleteChange ) ; } }

Target:
void onDeleteChange ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( com.google.gwt.user.client.Window.confirm ( Resources.C.deleteChange ( ) ) ) { com.google.gerrit.client.change.DraftActions.delete ( changeId , publish , deleteRevision , deleteChange ) ; } }
Source:
public void stop ( ) { com.ericsson.gerrit.plugins.highavailability.peers.jgroups.JGroupsPeerInfoProvider.log.info ( "closing jgroups channel {}" , jgroupsConfig.clusterName ( ) ) ; channel.close ( ) ; peerInfo = java.util.Optional.empty ( ) ; peerAddress = null ; }

Target:
public void stop ( ) { com.ericsson.gerrit.plugins.highavailability.peers.jgroups.JGroupsPeerInfoProvider.log.info ( "closing jgroups channel (cluster {})" , channel.getName ( ) , jgroupsConfig.clusterName ( ) ) ; channel.close ( ) ; peerInfo = java.util.Optional.empty ( ) ; peerAddress = null ; }
Source:
private static final native void init ( java.lang.String r ) ;

Target:
private static final native void init ( java.lang.String r , java.lang.String v ) ;
Source:
public void postEvent ( final com.google.gerrit.reviewdb.client.Change change , final com.google.gerrit.server.events.ChangeEvent event , final com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException { fireEvent ( change , event , db ) ; }

Target:
public void postEvent ( final com.google.gerrit.reviewdb.client.Change change , final com.google.gerrit.server.events.Event event , final com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException { fireEvent ( change , event , db ) ; }
Source:
abstract void setShowLineNumbers ( boolean b ) ;

Target:
abstract java.lang.String getLineNumberClassName ( ) ;
Source:
com.google.gerrit.server.permissions.PermissionBackend.ForProject asForProject ( ) { return new com.google.gerrit.server.project.ProjectControl.ForProjectImpl ( ) ; }

Target:
com.google.gerrit.server.permissions.PermissionBackend.ForProject asForProject ( ) { return new com.google.gerrit.server.permissions.ProjectControl.ForProjectImpl ( ) ; }
Source:
public void run ( ) { java.lang.String t = newTheme.name ( ) . toLowerCase ( ) ; view.getEditor ( ) . setOption ( "theme" , t ) ; }

Target:
public void onSuccess ( java.lang.Void result ) { view.setTheme ( newTheme ) ; }
Source:
public void execute ( ) { final java.lang.String to = com.google.gwt.user.client.History.getToken ( ) ; new com.google.gerrit.client.auth.openid.OpenIdSignInDialog ( com.google.gerrit.common.auth.SignInMode.REGISTER , to , null ) . center ( ) ; }

Target:
public void execute ( ) { java.lang.String t = com.google.gwt.user.client.History.getToken ( ) ; if ( t == null ) { t = "" ; } com.google.gerrit.client.Gerrit.doSignIn ( ( ( com.google.gerrit.common.PageLinks.REGISTER ) + t ) ) ; }
Source:
private static void validateReindexerNotRunning ( com.google.gerrit.server.index.OnlineReindexer < ? , ? , ? > reindexer ) throws com.google.gerrit.lucene.ReindexerAlreadyRunningException { if ( ( reindexer != null ) && ( reindexer.isRunning ( ) ) ) { throw new com.google.gerrit.lucene.ReindexerAlreadyRunningException ( ) ; } }

Target:
private static void validateReindexerNotRunning ( com.google.gerrit.server.index.OnlineReindexer < ? , ? , ? > reindexer ) throws com.google.gerrit.server.index.ReindexerAlreadyRunningException { if ( ( reindexer != null ) && ( reindexer.isRunning ( ) ) ) { throw new com.google.gerrit.server.index.ReindexerAlreadyRunningException ( ) ; } }
Source:
private final native void setkeyMapTypeRaw ( java.lang.String i ) ;

Target:
public final native void showBase ( boolean s ) ;
Source:
public java.util.List < com.google.gerrit.common.data.SubmitRecord > getSubmitRecords ( ) { return submitRecords ; }

Target:
public void setSubmitRecords ( com.google.gerrit.server.project.SubmitRuleOptions options , java.util.List < com.google.gerrit.common.data.SubmitRecord > records ) { submitRecords.put ( options , records ) ; }
Source:
public com.google.gerrit.server.group.GroupJson.GroupInfo format ( com.google.gerrit.server.group.GroupResource rsrc ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.server.group.GroupJson.GroupInfo info = init ( rsrc.getGroup ( ) ) ; initMembersAndIncludes ( rsrc , info ) ; return info ; }

Target:
public com.google.gerrit.extensions.common.GroupInfo format ( com.google.gerrit.server.group.GroupResource rsrc ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.extensions.common.GroupInfo info = init ( rsrc.getGroup ( ) ) ; initMembersAndIncludes ( rsrc , info ) ; return info ; }
Source:
protected void configure ( ) { com.google.gerrit.extensions.registration.DynamicMap.mapOf ( binder ( ) , com.google.gerrit.metrics.dropwizard.MetricResource.METRIC_KIND ) ; child ( com.google.gerrit.server.config.ConfigResource.CONFIG_KIND , "metrics" ) . to ( com.google.gerrit.metrics.dropwizard.MetricsCollection.class ) ; get ( com.google.gerrit.metrics.dropwizard.MetricResource.METRIC_KIND ) . to ( com.google.gerrit.metrics.dropwizard.GetMetric.class ) ; }

Target:
protected void configure ( ) { com.google.gerrit.extensions.registration.DynamicMap.mapOf ( binder ( ) , com.google.gerrit.metrics.dropwizard.MetricResource.METRIC_KIND ) ; child ( com.google.gerrit.server.config.ConfigResource.CONFIG_KIND , "metrics" ) . to ( com.google.gerrit.metrics.dropwizard.MetricsCollection.class ) ; get ( com.google.gerrit.metrics.dropwizard.MetricResource.METRIC_KIND ) . to ( com.google.gerrit.metrics.dropwizard.GetMetric.class ) ; bind ( com.google.gerrit.server.cache.CacheMetrics.class ) ; }
Source:
void setGerritSshDaemon ( final com.google.gerrit.server.ssh.GerritSshDaemon d ) { sshd = d ; }

Target:
void setSshd ( final com.google.gerrit.server.ssh.Sshd d ) { sshd = d ; }
Source:
protected < K , V > com.google.gerrit.server.cache.UnnamedCacheBinding < K , V > core ( final com.google.inject.TypeLiteral < com.google.gerrit.server.cache.Cache < K , V > > type ) { return core ( com.google.inject.Key.get ( type ) , type ) ; }

Target:
protected < K , V > com.google.gerrit.server.cache.UnnamedCacheBinding < K , V > cache ( final com.google.inject.TypeLiteral < com.google.gerrit.server.cache.Cache < K , V > > type ) { return cache ( com.google.inject.Key.get ( type ) , type ) ; }
Source:
public < K , V > com.google.common.cache.LoadingCache < K , V > build ( com.google.gerrit.server.cache.CacheBinding < K , V > def , com.google.common.cache.CacheLoader < K , V > loader ) { return create ( def , false ) . build ( loader ) ; }

Target:
public < K , V > com.google.common.cache.LoadingCache < K , V > build ( com.google.gerrit.server.cache.CacheBinding < K , V > def , com.google.common.cache.CacheLoader < K , V > loader ) { return com.github.benmanes.caffeine.guava.CaffeinatedGuava.build ( create ( def , false ) , loader ) ; }
Source:
public final com.google.gerrit.extensions.client.InheritableBoolean configured_value ( ) { return com.google.gerrit.extensions.client.InheritableBoolean.valueOf ( configured_valueRaw ( ) ) ; }

Target:
public final com.google.gerrit.extensions.client.InheritableBoolean configuredValue ( ) { return com.google.gerrit.extensions.client.InheritableBoolean.valueOf ( configuredValueRaw ( ) ) ; }
Source:
private com.google.gerrit.server.notedb.ChangeNotesParser newParser ( org.eclipse.jgit.lib.ObjectId tip ) throws java.lang.Exception { com.google.gerrit.reviewdb.client.Change c = newChange ( ) ; return new com.google.gerrit.server.notedb.ChangeNotesParser ( c.getProject ( ) , c.getId ( ) , tip , walk , repoManager , noteUtil ) ; }

Target:
private com.google.gerrit.server.notedb.ChangeNotesParser newParser ( org.eclipse.jgit.lib.ObjectId tip ) throws java.lang.Exception { com.google.gerrit.reviewdb.client.Change c = newChange ( ) ; return new com.google.gerrit.server.notedb.ChangeNotesParser ( c.getProject ( ) , c.getId ( ) , tip , walk , repoManager , noteUtil , args.metrics ) ; }
Source:
boolean needsCookieRefresh ( ) { return ( refreshCookieAt ) <= ( com.google.gerrit.httpd.WebSessionManager.now ( ) ) ; }

Target:
boolean needsCookieRefresh ( ) { return ( refreshCookieAt ) <= ( com.google.gerrit.server.util.TimeUtil.nowMs ( ) ) ; }
Source:
private void expandAll ( ) { hiddenSkipMap.remove ( cm.getLineHandle ( marker.find ( ) . getTo ( ) . getLine ( ) ) ) ; marker.clear ( ) ; widget.clear ( ) ; removeFromParent ( ) ; }

Target:
private void clearMarkerAndWidget ( ) { marker.clear ( ) ; if ( ( widget ) != null ) { widget.clear ( ) ; } else { cm.removeLineClass ( 0 , LineClassWhere.WRAP , DiffTable.style.hideNumber ( ) ) ; } }
Source:
private java.lang.String escape ( java.lang.String str ) { if ( str != null ) { str = str.replace ( "\"" , "\\\"" ) ; } return str ; }

Target:
private java.lang.String clean ( java.lang.String str ) { if ( str != null ) { str = str.replace ( "\"" , "\\\"" ) . trim ( ) ; } else { str = "" ; } return str ; }
Source:
private synchronized void runHook ( java.io.File hook , java.util.List < java.lang.String > args ) { if ( hook.exists ( ) ) { hookQueue.execute ( new com.google.gerrit.common.ChangeHookRunner.AsyncHookTask ( null , hook , args ) ) ; } }

Target:
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 ) ) ; } }
Source:
com.google.gerrit.common.data.PermissionRange getRange ( java.lang.String permission , boolean isChangeOwner ) { if ( com.google.gerrit.common.data.Permission.hasRange ( permission ) ) { return toRange ( permission , access ( permission , isChangeOwner ) ) ; } return null ; }

Target:
boolean canPerform ( java.lang.String permissionName ) { return canPerform ( permissionName , false , false ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { reviewedLink.go ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { setReviewedByCurrentUser ( true ) ; reviewedLink.go ( ) ; }
Source:
public com.google.gerrit.reviewdb.client.LabelId getLabelId ( ) { return key.categoryId ; }

Target:
public com.google.gerrit.reviewdb.client.LabelId getJobId ( ) { return key.jobId ; }
Source:
public com.google.gerrit.server.schema.SchemaVersion get ( ) { return schemaVersion ; }

Target:
public com.google.gerrit.reviewdb.SystemConfig getSystemConfig ( ) throws com.google.gwtorm.client.OrmException { final com.google.gerrit.reviewdb.ReviewDb c = open ( ) ; try { return c.systemConfig ( ) . get ( new com.google.gerrit.reviewdb.SystemConfig.Key ( ) ) ; } finally { c.close ( ) ; } }
Source:
private void configureWebsessiosSection ( ) { ui.header ( "Websession section" ) ; promptAndSetString ( "Cleanup interval" , com.ericsson.gerrit.plugins.highavailability.WEBSESSION_SECTION , com.ericsson.gerrit.plugins.highavailability.CLEANUP_INTERVAL_KEY , com.ericsson.gerrit.plugins.highavailability.DEFAULT_CLEANUP_INTERVAL ) ; }

Target:
private void configureWebsessiosSection ( ) { ui.header ( "Websession section" ) ; promptAndSetString ( "Cleanup interval" , com.ericsson.gerrit.plugins.highavailability.Configuration.WEBSESSION_SECTION , com.ericsson.gerrit.plugins.highavailability.Configuration.CLEANUP_INTERVAL_KEY , com.ericsson.gerrit.plugins.highavailability.Configuration.DEFAULT_CLEANUP_INTERVAL ) ; }
Source:
public com.google.gerrit.extensions.common.WebLinkInfo getProjectWeblink ( java.lang.String projectName ) { return new com.google.gerrit.extensions.common.WebLinkInfo ( name , myImageUrl , java.lang.String.format ( placeHolderUrlProject , projectName ) , com.google.gerrit.extensions.webui.WebLinkTarget.BLANK ) ; }

Target:
public com.google.gerrit.extensions.common.WebLinkInfo getProjectWeblink ( java.lang.String projectName ) { return new com.google.gerrit.extensions.common.WebLinkInfo ( name , myImageUrl , java.lang.String.format ( placeHolderUrlProject , projectName ) , Target.BLANK ) ; }
Source:
public void testMIXED_NoFullNameUser ( ) { setFrom ( "MIXED" ) ; final java.lang.String email = "a.u.thor@test.example.com" ; final com.google.gerrit.reviewdb.client.Account.Id user = user ( null , email ) ; org.easymock.EasyMock.replay ( accountCache ) ; final com.google.gerrit.server.mail.Address r = create ( ) . from ( user ) ; assertNotNull ( r ) ; assertEquals ( "Anonymous Coward (Code Review)" , r.name ) ; assertEquals ( ident.getEmailAddress ( ) , r.email ) ; org.easymock.EasyMock.verify ( accountCache ) ; }

Target:
public void testMIXED_NoFullNameUser ( ) { setFrom ( "MIXED" ) ; final java.lang.String email = "a.u.thor@test.example.com" ; final com.google.gerrit.reviewdb.client.Account.Id user = user ( null , email ) ; org.easymock.EasyMock.replay ( accountCache ) ; final com.google.gerrit.server.mail.Address r = create ( ) . from ( user ) ; org.junit.Assert.assertNotNull ( r ) ; org.junit.Assert.assertEquals ( "Anonymous Coward (Code Review)" , r.name ) ; org.junit.Assert.assertEquals ( ident.getEmailAddress ( ) , r.email ) ; org.easymock.EasyMock.verify ( accountCache ) ; }
Source:
public com.google.gerrit.extensions.common.WebLinkInfo getProjectWeblink ( java.lang.String projectName ) { return new com.google.gerrit.extensions.common.WebLinkInfo ( com.googlesource.gerrit.plugins.xdocs.XDocWebLink.README , getImageUrl ( ) , getBranchUrl ( projectName , Constants.HEAD ) , com.google.gerrit.extensions.webui.WebLinkTarget.BLANK ) ; }

Target:
public com.google.gerrit.extensions.common.WebLinkInfo getProjectWeblink ( java.lang.String projectName ) { java.lang.String url = getBranchUrl ( projectName , Constants.HEAD ) ; return url == null ? null : new com.google.gerrit.extensions.common.WebLinkInfo ( com.googlesource.gerrit.plugins.xdocs.XDocWebLink.README , getImageUrl ( ) , url , Target.SELF ) ; }
Source:
com.google.gerrit.server.patch.PublishComments create ( com.google.gerrit.reviewdb.PatchSet.Id patchSetId , java.lang.String messageText , java.util.Set < com.google.gerrit.reviewdb.ApprovalCategoryValue.Id > approvals ) ;

Target:
com.google.gerrit.server.patch.PublishComments create ( com.google.gerrit.reviewdb.PatchSet.Id patchSetId , java.lang.String messageText , java.util.Set < com.google.gerrit.reviewdb.ApprovalCategoryValue.Id > approvals , boolean forceMessage ) ;
Source:
void onDeleteChange ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( com.google.gwt.user.client.Window.confirm ( Resources.C.deleteDraftChange ( ) ) ) { com.google.gerrit.client.change.DraftActions.delete ( changeId ) ; } }

Target:
void onDeleteChange ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( com.google.gwt.user.client.Window.confirm ( Resources.C.deleteDraftChange ( ) ) ) { com.google.gerrit.client.change.DraftActions.delete ( changeId , publish , deleteRevision , deleteChange ) ; } }
Source:
public static void unmarkPrivate ( 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.delete" ) . post ( com.google.gerrit.client.changes.ChangeApi.PrivateInput.create ( ) , cb ) ; }

Target:
public static void deleteRevision ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , java.lang.String commit , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gerrit.client.changes.ChangeApi.revision ( project , id , commit ) . delete ( cb ) ; }
Source:
public java.lang.String toString ( ) { return ( ( ( "OAuthSession [token=" + ( tokenCache.get ( user ) ) ) + ", user=" ) + ( user ) ) + "]" ; }

Target:
public java.lang.String toString ( ) { return ( ( ( "OAuthSession [token=" + ( tokenCache.get ( accountId ) ) ) + ", user=" ) + ( user ) ) + "]" ; }
Source:
public java.lang.String toString ( ) { return com.google.gerrit.server.git.gpg.Fingerprint.toString ( fp ) ; }

Target:
public java.lang.String toString ( ) { return com.google.gerrit.gpg.Fingerprint.toString ( fp ) ; }
Source:
public com.google.gerrit.server.IdentifiedUser getReviewerUser ( ) { return user ; }

Target:
public com.google.gerrit.server.IdentifiedUser getReviewerUser ( ) { com.google.common.base.Preconditions.checkArgument ( ( ( user ) != null ) , "no user provided" ) ; return user ; }
Source:
public com.google.gerrit.server.group.CreateGroup create ( com.google.gerrit.extensions.restapi.TopLevelResource root , java.lang.String name ) { return createGroup.create ( com.google.gerrit.server.util.Url.decode ( name ) ) ; }

Target:
public com.google.gerrit.server.group.CreateGroup create ( com.google.gerrit.extensions.restapi.TopLevelResource root , java.lang.String name ) { return createGroup.create ( com.google.gerrit.extensions.restapi.Url.decode ( name ) ) ; }
Source:
private java.lang.String url ( com.google.gerrit.client.info.FileInfo info ) { return ( diffScreenType ) == ( com.google.gerrit.extensions.client.GeneralPreferencesInfo.DiffView.UNIFIED_DIFF ) ? com.google.gerrit.client.Dispatcher.toUnified ( base , patchSetId , info.path ( ) ) : com.google.gerrit.client.Dispatcher.toSideBySide ( base , patchSetId , info.path ( ) ) ; }

Target:
private com.google.gerrit.client.rpc.RestApi reviewed ( ) { return com.google.gerrit.client.changes.ChangeApi.revision ( Project.NameKey.asStringOrNull ( projectKey ) , patchSetId ) . view ( "files" ) . id ( path ) . view ( "reviewed" ) ; }
Source:
protected void configure ( ) { com.google.gerrit.extensions.registration.DynamicSet.setOf ( binder ( ) , com.googlesource.gerrit.plugins.events.StreamEventListener.class ) ; bind ( com.googlesource.gerrit.plugins.events.EventStore.class ) . to ( com.googlesource.gerrit.plugins.events.fsstore.FsStore.class ) ; com.google.gerrit.extensions.registration.DynamicSet.bind ( binder ( ) , com.google.gerrit.common.ChangeListener.class ) . to ( com.googlesource.gerrit.plugins.events.CoreListener.class ) ; }

Target:
protected void configure ( ) { com.google.gerrit.extensions.registration.DynamicSet.setOf ( binder ( ) , com.googlesource.gerrit.plugins.events.StreamEventListener.class ) ; bind ( com.googlesource.gerrit.plugins.events.EventStore.class ) . to ( com.googlesource.gerrit.plugins.events.fsstore.FsStore.class ) ; com.google.gerrit.extensions.registration.DynamicSet.bind ( binder ( ) , com.google.gerrit.common.EventListener.class ) . to ( com.googlesource.gerrit.plugins.events.CoreListener.class ) ; }
Source:
com.google.common.util.concurrent.ListenableFuture < ? > delete ( org.apache.lucene.index.Term term ) throws java.io.IOException { return new com.google.gerrit.lucene.SubIndex.NrtFuture ( writer.deleteDocuments ( term ) ) ; }

Target:
com.google.common.util.concurrent.ListenableFuture < ? > delete ( org.apache.lucene.index.Term term ) throws java.io.IOException { return new NrtFuture ( writer.deleteDocuments ( term ) ) ; }
Source:
private void setupPostMocks ( boolean changeExist , boolean ormException ) throws com.google.gwtorm.server.OrmException , java.io.IOException { setupPostMocks ( changeExist , ormException , com.ericsson.gerrit.plugins.syncindex.SyncIndexRestApiServletTest.DO_NOT_THROW_IO_EXCEPTION ) ; }

Target:
private void setupPostMocks ( boolean changeExist , boolean ormException ) throws com.google.gwtorm.server.OrmException , java.io.IOException { setupPostMocks ( changeExist , ormException , com.ericsson.gerrit.plugins.multimaster.SyncIndexRestApiServletTest.DO_NOT_THROW_IO_EXCEPTION ) ; }
Source:
private boolean canEditSshUserName ( ) { return com.google.gerrit.client.Gerrit.getConfig ( ) . canEdit ( Account.FieldName.USER_NAME ) ; }

Target:
private boolean canEditUserName ( ) { return com.google.gerrit.client.Gerrit.getConfig ( ) . canEdit ( Account.FieldName.USER_NAME ) ; }
Source:
public boolean canRead ( ) { return ( getProjectControl ( ) . getProject ( ) . getState ( ) . equals ( ProjectState.READ_ONLY ) ) || ( canWrite ( ) ) ; }

Target:
private boolean isProjectStatePermittingRead ( ) { return ( getProjectControl ( ) . getProject ( ) . getState ( ) . equals ( ProjectState.READ_ONLY ) ) || ( isProjectStatePermittingWrite ( ) ) ; }
Source:
public void onSuccess ( com.google.gwtjsonrpc.client.VoidResult result ) { com.google.gerrit.client.Gerrit.display ( PageLinks.MINE ) ; }

Target:
public void onSuccess ( final com.google.gerrit.common.data.ChangeDetail result ) { if ( result != null ) { changeScreen.update ( result ) ; } else { com.google.gerrit.client.Gerrit.display ( PageLinks.MINE ) ; } }
Source:
protected void preDisplay ( final com.google.gerrit.client.projects.ProjectMap result ) { display ( result ) ; }

Target:
protected void preDisplay ( final com.google.gerrit.client.projects.ProjectMap result ) { if ( ( ( subname ) == null ) || ( "" . equals ( subname ) ) ) { display ( result ) ; } }
Source:
public void getDiffPreferencesOfNonExistingAccount_NotFound ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( HttpStatus.SC_NOT_FOUND , adminSession.get ( "/accounts/non-existing/preferences" ) . getStatusCode ( ) ) ; }

Target:
public void getDiffPreferencesOfNonExistingAccount_NotFound ( ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = adminSession.get ( "/accounts/non-existing/preferences" ) ; r.assertNotFound ( ) ; }
Source:
public static java.lang.String toProjectAdmin ( final com.google.gerrit.client.reviewdb.Project.Id id ) { return "admin,project," + ( id.toString ( ) ) ; }

Target:
public static java.lang.String toProjectAdmin ( final com.google.gerrit.client.reviewdb.Project.Id id , final java.lang.String tab ) { return ( ( "admin,project," + ( id.toString ( ) ) ) + "," ) + tab ; }
Source:
public com.google.gerrit.server.patch.IntraLineDiff getIntraLineDiff ( org.eclipse.jgit.lib.ObjectId aId , com.google.gerrit.server.patch.Text aText , org.eclipse.jgit.lib.ObjectId bId , com.google.gerrit.server.patch.Text bText , java.util.List < org.eclipse.jgit.diff.Edit > edits ) ;

Target:
public com.google.gerrit.server.patch.IntraLineDiff getIntraLineDiff ( com.google.gerrit.server.patch.IntraLineDiffKey key ) ;
Source:
private org.joda.time.DateTime now ( ) { return org.joda.time.DateTime.now ( ) . toDateTime ( DateTimeZone.UTC ) ; }

Target:
private java.time.Instant now ( ) { return java.time.Instant.now ( ) ; }
Source:
protected com.google.gerrit.server.query.Predicate < com.google.gerrit.server.account.AccountState > enforceVisibility ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.account.AccountState > pred ) { return new com.google.gerrit.server.query.AndSource ( com.google.common.collect.ImmutableList.of ( pred , new com.google.gerrit.server.query.account.IsVisibleToPredicate ( accountControlFactory.get ( ) ) ) ) ; }

Target:
protected com.google.gerrit.server.query.Predicate < com.google.gerrit.server.account.AccountState > enforceVisibility ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.account.AccountState > pred ) { return new com.google.gerrit.server.query.AndSource ( pred , new com.google.gerrit.server.query.account.AccountIsVisibleToPredicate ( accountControlFactory.get ( ) ) ) ; }
Source:
com.google.gerrit.server.git.receive.AsyncReceiveCommits create ( com.google.gerrit.server.project.ProjectControl projectControl , org.eclipse.jgit.lib.Repository repository , com.google.common.collect.SetMultimap < com.google.gerrit.server.notedb.ReviewerStateInternal , com.google.gerrit.reviewdb.client.Account.Id > extraReviewers ) ;

Target:
com.google.gerrit.server.git.receive.AsyncReceiveCommits create ( com.google.gerrit.server.project.ProjectControl projectControl , org.eclipse.jgit.lib.Repository repository , @ com.google.gerrit.common.Nullable com.google.gerrit.server.git.receive.MessageSender messageSender , com.google.common.collect.SetMultimap < com.google.gerrit.server.notedb.ReviewerStateInternal , com.google.gerrit.reviewdb.client.Account.Id > extraReviewers ) ;
Source:
private void syncDisabledPlugins ( com.google.common.collect.Multimap < java.lang.String , java.nio.file.Path > jars ) { stopRemovedPlugins ( jars ) ; dropRemovedDisabledPlugins ( jars ) ; }

Target:
private void syncDisabledPlugins ( com.google.common.collect.SetMultimap < java.lang.String , java.nio.file.Path > jars ) { stopRemovedPlugins ( jars ) ; dropRemovedDisabledPlugins ( jars ) ; }
Source:
protected void add ( final com.google.gerrit.server.mail.RecipientType rt , final com.google.gerrit.reviewdb.Account.Id to ) { if ( ( ! ( emailOnlyAuthors ) ) || ( authors.contains ( to ) ) ) { super . add ( rt , to ) ; } }

Target:
protected boolean isVisibleTo ( final com.google.gerrit.reviewdb.client.Account.Id to ) throws com.google.gwtorm.server.OrmException { return ( ( projectState ) == null ) || ( projectState.controlFor ( args.identifiedUserFactory.create ( to ) ) . controlFor ( change ) . isVisible ( args.db.get ( ) ) ) ; }
Source:
public boolean ignored ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return stars.isIgnoredBy ( change.getId ( ) , change.getUser ( ) . getAccountId ( ) ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot check if ignored" , e ) ; } }

Target:
public boolean ignored ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return stars.isIgnored ( change ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot check if ignored" , e ) ; } }
Source:
public static com.google.gerrit.server.patch.IntraLineDiffArgs create ( com.google.gerrit.server.patch.Text aText , com.google.gerrit.server.patch.Text bText , java.util.List < org.eclipse.jgit.diff.Edit > edits , com.google.gerrit.reviewdb.client.Project.NameKey project , org.eclipse.jgit.lib.ObjectId commit , java.lang.String path ) { return new com.google.gerrit.server.patch.AutoValue_IntraLineDiffArgs ( aText , bText , edits , project , commit , path ) ; }

Target:
public static com.google.gerrit.server.patch.IntraLineDiffArgs create ( com.google.gerrit.server.patch.Text aText , com.google.gerrit.server.patch.Text bText , java.util.List < org.eclipse.jgit.diff.Edit > edits , com.google.gerrit.reviewdb.client.Project.NameKey project , org.eclipse.jgit.lib.ObjectId commit , java.lang.String path ) { return new com.google.gerrit.server.patch.AutoValue_IntraLineDiffArgs ( aText , bText , com.google.gerrit.server.patch.IntraLineDiffArgs.deepCopyEdits ( edits ) , project , commit , path ) ; }
Source:
com.google.gerrit.server.git.MergeOp create ( com.google.gerrit.server.git.ChangeSet changes ) ;

Target:
com.google.gerrit.server.git.MergeOp create ( com.google.gerrit.server.git.ChangeSet changes , com.google.gerrit.server.IdentifiedUser caller ) ;
Source:
public void setGroups ( java.lang.Iterable < java.lang.String > groups ) { this . groups = groups ; }

Target:
public void setGroups ( java.util.List < java.lang.String > groups ) { com.google.common.base.Preconditions.checkNotNull ( groups , "groups may not be null" ) ; this . groups = groups ; }
Source:
public void testOnlyVisibleGroupsReturned ( ) throws com.google.gwtorm.server.OrmException , com.jcraft.jsch.JSchException , java.io.IOException { java.util.Set < java.lang.String > expectedGroups = com.google.common.collect.Sets.newHashSet ( ) ; expectedGroups.add ( "Anonymous Users" ) ; expectedGroups.add ( "Registered Users" ) ; com.google.gerrit.acceptance.TestAccount user = accounts.create ( "user" , "user@example.com" , "User" ) ; com.google.gerrit.acceptance.RestResponse r = new com.google.gerrit.acceptance.RestSession ( user ) . get ( "/groups/" ) ; java.util.Map < java.lang.String , com.google.gerrit.acceptance.rest.group.GroupInfo > result = new com.google.gson.Gson ( ) . fromJson ( r.getReader ( ) , new com.google.gson.reflect.TypeToken < java.util.Map < java.lang.String , com.google.gerrit.acceptance.rest.group.GroupInfo > > ( ) { } . getType ( ) ) ; com.google.gerrit.acceptance.rest.group.GroupAssert.assertGroups ( expectedGroups , result.keySet ( ) ) ; }

Target:
public void testOnlyVisibleGroupsReturned ( ) throws com.google.gwtorm.server.OrmException , com.jcraft.jsch.JSchException , java.io.IOException { java.util.Set < java.lang.String > expectedGroups = com.google.common.collect.Sets.newHashSet ( ) ; expectedGroups.add ( "Anonymous Users" ) ; expectedGroups.add ( "Registered Users" ) ; com.google.gerrit.acceptance.TestAccount user = accounts.create ( "user" , "user@example.com" , "User" ) ; com.google.gerrit.acceptance.RestResponse r = new com.google.gerrit.acceptance.RestSession ( server , user ) . get ( "/groups/" ) ; java.util.Map < java.lang.String , com.google.gerrit.acceptance.rest.group.GroupInfo > result = new com.google.gson.Gson ( ) . fromJson ( r.getReader ( ) , new com.google.gson.reflect.TypeToken < java.util.Map < java.lang.String , com.google.gerrit.acceptance.rest.group.GroupInfo > > ( ) { } . getType ( ) ) ; com.google.gerrit.acceptance.rest.group.GroupAssert.assertGroups ( expectedGroups , result.keySet ( ) ) ; }
Source:
public static void fetch ( org.eclipse.jgit.junit.TestRepository < ? > testRepo , java.lang.String spec ) { }

Target:
public static void fetch ( org.eclipse.jgit.junit.TestRepository < ? > testRepo , java.lang.String spec ) throws org.eclipse.jgit.api.errors.GitAPIException { org.eclipse.jgit.api.FetchCommand fetch = testRepo.git ( ) . fetch ( ) ; fetch.setRefSpecs ( new org.eclipse.jgit.transport.RefSpec ( spec ) ) ; fetch.call ( ) ; }
Source:
protected java.lang.String cacheNameOf ( java.lang.String plugin , java.lang.String name ) { if ( "gerrit" . equals ( plugin ) ) { return name ; } else { return ( plugin + "." ) + name ; } }

Target:
protected java.lang.String cacheNameOf ( java.lang.String plugin , java.lang.String name ) { if ( "gerrit" . equals ( plugin ) ) { return name ; } else { return ( plugin + "-" ) + name ; } }
Source:
public void postEvent ( final com.google.gerrit.reviewdb.client.Branch.NameKey branchName , final com.google.gerrit.server.events.ChangeEvent event ) { fireEvent ( branchName , event ) ; }

Target:
public void postEvent ( final com.google.gerrit.reviewdb.client.Change change , final com.google.gerrit.server.events.Event event , final com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException { fireEvent ( change , event , db ) ; }
Source:
private static com.google.gerrit.reviewdb.client.RevId toRevId ( final org.eclipse.jgit.revwalk.RevCommit src ) { return new com.google.gerrit.reviewdb.client.RevId ( src.getId ( ) . name ( ) ) ; }

Target:
private static void synchronizedIncrement ( com.google.gerrit.server.git.MultiProgressMonitor.Task p ) { synchronized ( p ) { p.update ( 1 ) ; } }
Source:
public static void included ( com.google.gerrit.reviewdb.client.AccountGroup.UUID group , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.groups.GroupList > callback ) { new com.google.gerrit.client.rpc.RestApi ( "groups" ) . id ( group.get ( ) ) . view ( "groups" ) . get ( callback ) ; }

Target:
public static void included ( com.google.gerrit.reviewdb.client.AccountGroup.UUID group , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.groups.GroupList > callback ) { new com.google.gerrit.client.rpc.RestApi ( "/groups/" ) . id ( group.get ( ) ) . view ( "groups" ) . get ( callback ) ; }
Source:
public void testCreateChildProjectUnderNonExistingParent_UnprocessableEntity ( ) throws java.io.IOException { com.google.gerrit.acceptance.rest.project.CreateProjectIT.ProjectInput in = new com.google.gerrit.acceptance.rest.project.CreateProjectIT.ProjectInput ( ) ; in.parent = "non-existing-project" ; com.google.gerrit.acceptance.RestResponse r = session.put ( "/projects/child" , in ) ; org.junit.Assert.assertEquals ( HttpStatus.SC_UNPROCESSABLE_ENTITY , r.getStatusCode ( ) ) ; }

Target:
public void testCreateChildProjectUnderNonExistingParent_UnprocessableEntity ( ) throws java.io.IOException { com.google.gerrit.server.project.CreateProject.Input in = new com.google.gerrit.server.project.CreateProject.Input ( ) ; in.parent = "non-existing-project" ; com.google.gerrit.acceptance.RestResponse r = session.put ( "/projects/child" , in ) ; org.junit.Assert.assertEquals ( HttpStatus.SC_UNPROCESSABLE_ENTITY , r.getStatusCode ( ) ) ; }
Source:
public java.lang.String format ( java.lang.String projectName , java.lang.String revision , com.googlesource.gerrit.plugins.xdocs.ConfigSection cfg , java.io.InputStream raw ) throws java.io.IOException ;

Target:
public java.lang.String format ( java.lang.String projectName , java.lang.String path , java.lang.String revision , java.lang.String abbrRev , com.googlesource.gerrit.plugins.xdocs.ConfigSection cfg , java.io.InputStream raw ) throws java.io.IOException ;
Source:
public java.util.Set < com.google.gerrit.reviewdb.AccountGroup.Id > getEffectiveGroups ( ) { return java.util.Collections.unmodifiableSet ( effectiveGroups ) ; }

Target:
private static java.util.Set < com.google.gerrit.reviewdb.AccountGroup.Id > copy ( java.util.Set < com.google.gerrit.reviewdb.AccountGroup.Id > groups ) { return java.util.Collections.unmodifiableSet ( new java.util.HashSet < com.google.gerrit.reviewdb.AccountGroup.Id > ( groups ) ) ; }
Source:
public void commit ( ) { throw new java.lang.AssertionError ( com.google.gerrit.testutil.DisabledReviewDb.MESSAGE ) ; }

Target:
public void commit ( ) { throw new com.google.gerrit.testutil.DisabledReviewDb.Disabled ( ) ; }
Source:
private com.google.gerrit.extensions.client.GitBasicAuthPolicy getBasicAuthPolicy ( org.eclipse.jgit.lib.Config cfg ) { com.google.gerrit.extensions.client.GitBasicAuthPolicy defaultAuthPolicy = ( isLdapAuthType ( ) ) ? com.google.gerrit.extensions.client.GitBasicAuthPolicy.LDAP : com.google.gerrit.extensions.client.GitBasicAuthPolicy.HTTP ; return cfg.getEnum ( "auth" , null , "gitBasicAuthPolicy" , defaultAuthPolicy ) ; }

Target:
private com.google.gerrit.extensions.client.GitBasicAuthPolicy getBasicAuthPolicy ( org.eclipse.jgit.lib.Config cfg ) { com.google.gerrit.extensions.client.GitBasicAuthPolicy defaultAuthPolicy = ( isLdapAuthType ( ) ) ? com.google.gerrit.extensions.client.GitBasicAuthPolicy.LDAP : isOAuthType ( ) ? com.google.gerrit.extensions.client.GitBasicAuthPolicy.OAUTH : com.google.gerrit.extensions.client.GitBasicAuthPolicy.HTTP ; return cfg.getEnum ( "auth" , null , "gitBasicAuthPolicy" , defaultAuthPolicy ) ; }
Source:
private void enableForm ( final boolean on ) { descTxt.setEnabled ( on ) ; addMember.setEnabled ( on ) ; nameTxtBox.setEnabled ( on ) ; delMember.setEnabled ( on ) ; }

Target:
private void enableForm ( final boolean on ) { groupNameTxt.setEnabled ( on ) ; descTxt.setEnabled ( on ) ; addMember.setEnabled ( on ) ; nameTxtBox.setEnabled ( on ) ; delMember.setEnabled ( on ) ; }
Source:
protected int getEventType ( ) { return com.ruesga.gerrit.plugins.fcm.rest.CloudNotificationEvents.TOPIC_CHANGED_EVENT ; }

Target:
protected int getEventType ( ) { return com.ruesga.gerrit.plugins.fcm.rest.CloudNotificationEvents.ASSIGNEE_CHANGED_EVENT ; }
Source:
public java.lang.String getUrl ( ) { return escape ( url ) ; }

Target:
public java.lang.String getUrl ( ) { return clean ( url ) ; }
Source:
public void onLoad ( com.google.gerrit.plugin.client.screen.Screen screen ) { screen.setPageTitle ( "Imagare Preferences" ) ; screen.show ( new com.googlesource.gerrit.plugins.imagare.client.ImagarePreferenceScreen ( enableImageServer ) ) ; }

Target:
public void onLoad ( com.google.gerrit.plugin.client.screen.Screen screen ) { screen.setPageTitle ( ( ( com.google.gerrit.plugin.client.Plugin.get ( ) . getName ( ) ) + " Preferences" ) ) ; screen.show ( new com.googlesource.gerrit.plugins.imagare.client.ImagarePreferenceScreen ( enableImageServer ) ) ; }
Source:
public void setFile ( final java.lang.String pattern ) { file = pattern ; }

Target:
public void setFile ( java.lang.String str ) { file = str ; }
Source:
private static java.lang.String nextFunction ( ) { return "__gwtjsonrpc_callback" + ( ( com.google.gwtjsonrpc.client.CallbackHandle.callbackId ) ++ ) ; }

Target:
private static java.lang.String nextFunction ( ) { return ( "__gwtjsonrpc_callback" + ( com.google.gwtjsonrpc.client.CallbackHandle.cbgen ) ) + ( ( com.google.gwtjsonrpc.client.CallbackHandle.callbackId ) ++ ) ; }
Source:
com.ericsson.gerrit.plugins.highavailability.forwarder.rest.HttpResponseHandler.HttpResult delete ( java.lang.String endpoint ) throws java.io.IOException { return httpClient.execute ( new org.apache.http.client.methods.HttpDelete ( ( ( peerInfo.get ( ) . getDirectUrl ( ) ) + endpoint ) ) , new com.ericsson.gerrit.plugins.highavailability.forwarder.rest.HttpResponseHandler ( ) ) ; }

Target:
com.ericsson.gerrit.plugins.highavailability.forwarder.rest.HttpResponseHandler.HttpResult delete ( java.lang.String endpoint ) throws java.io.IOException { return httpClient.execute ( new org.apache.http.client.methods.HttpDelete ( ( ( getPeerInfo ( ) . getDirectUrl ( ) ) + endpoint ) ) , new com.ericsson.gerrit.plugins.highavailability.forwarder.rest.HttpResponseHandler ( ) ) ; }
Source:
private void writeObject ( final java.io.ObjectOutputStream out ) throws java.io.IOException { org.eclipse.jgit.lib.ObjectIdSerialization.writeCanBeNull ( out , oldId ) ; org.eclipse.jgit.lib.ObjectIdSerialization.writeNotNull ( out , newId ) ; com.google.gerrit.server.ioutil.BasicSerialization.writeEnum ( out , whitespace ) ; }

Target:
private void writeObject ( final java.io.ObjectOutputStream out ) throws java.io.IOException { refreshObjectIds ( ) ; org.eclipse.jgit.lib.ObjectIdSerialization.writeCanBeNull ( out , oldId ) ; org.eclipse.jgit.lib.ObjectIdSerialization.writeNotNull ( out , newId ) ; com.google.gerrit.server.ioutil.BasicSerialization.writeEnum ( out , getWhitespace ( ) ) ; }
Source:
private void setDefaultFields ( javax.servlet.FilterConfig filterConfig ) throws javax.servlet.ServletException { setDefaultConfig ( filterConfig ) ; setDefaultRenderer ( filterConfig ) ; setDefaultUrls ( ) ; setDefaultAccess ( ) ; setDefaultVisbilityCache ( ) ; setDefaultTimeCache ( ) ; setDefaultBlameCache ( ) ; setDefaultGitwebRedirect ( ) ; }

Target:
private void setDefaultFields ( javax.servlet.FilterConfig filterConfig ) throws javax.servlet.ServletException { setDefaultConfig ( filterConfig ) ; setDefaultRenderer ( filterConfig ) ; setDefaultUrls ( ) ; setDefaultAccess ( ) ; setDefaultVisibilityCache ( ) ; setDefaultTimeCache ( ) ; setDefaultBlameCache ( ) ; setDefaultGitwebRedirect ( ) ; }