auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void onSuccess ( java.lang.String result ) { text.setText ( result ) ; onCancel ( null ) ; }

Target:
public void onSuccess ( java.lang.String result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange2 ( psId.getParentKey ( ) , java.lang.String.valueOf ( psId.get ( ) ) ) ) ; }
Source:
public void onSuccess ( final java.util.List < com.google.gerrit.reviewdb.AccountExternalId > result ) { com.google.gerrit.reviewdb.AccountExternalId id = null ; for ( com.google.gerrit.reviewdb.AccountExternalId i : result ) { if ( i.isScheme ( com.google.gerrit.reviewdb.AccountExternalId.SCHEME_USERNAME ) ) { id = i ; break ; } } display ( id ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { doGeneratePassword ( ) ; }
Source:
public static java.lang.String toChange ( final com.google.gerrit.reviewdb.client.PatchSet.Id ps ) { return ( ( "/c/" + ( ps.getParentKey ( ) ) ) + "/" ) + ( ps.getId ( ) ) ; }

Target:
public static java.lang.String toChange ( @ com.google.gerrit.common.Nullable com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.PatchSet.Id ps ) { return ( com.google.gerrit.common.PageLinks.toChange ( project , ps.getParentKey ( ) ) ) + ( ps.getId ( ) ) ; }
Source:
void onReply ( com.google.gwt.event.dom.client.ClickEvent e ) { replyAction.onReply ( ) ; }

Target:
void onReply ( com.google.gwt.event.dom.client.ClickEvent e ) { if ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) { replyAction.onReply ( ) ; } else { com.google.gerrit.client.Gerrit.doSignIn ( getToken ( ) ) ; } }
Source:
public void addReviewerByEmailToReviewableChangeInReviewDb ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isFalse ( ) ; forAll ( ( adder ) -> { java.lang.String email = "addedbyemail@example.com" ; com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; addReviewer ( adder , sc.changeId , sc.owner , email ) ; assertThat ( sender ) . notSent ( ) ; } ) ; }

Target:
private void addReviewerToReviewableChangeInReviewDb ( com.google.gerrit.acceptance.server.mail.AddReviewerSenderIT.Adder adder ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isFalse ( ) ; com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; com.google.gerrit.acceptance.TestAccount reviewer = accountCreator.create ( "added" , "added@example.com" , "added" ) ; addReviewer ( adder , sc.changeId , sc.owner , reviewer.email ) ; assertThat ( sender ) . sent ( "newchange" , sc ) . to ( reviewer ) . cc ( sc.reviewer , sc.ccer ) . cc ( sc.reviewerByEmail , sc.ccerByEmail ) . noOneElse ( ) ; }
Source:
com.googlesource.gerrit.plugins.replication.PushAll create ( java.lang.String urlMatch , com.googlesource.gerrit.plugins.replication.ReplicationState state ) ;

Target:
com.googlesource.gerrit.plugins.replication.PushAll create ( java.lang.String urlMatch , com.googlesource.gerrit.plugins.replication.ReplicationFilter filter , com.googlesource.gerrit.plugins.replication.ReplicationState state ) ;
Source:
public java.lang.String describeForException ( ) { if ( ( forUser ) == ( com.google.gerrit.server.permissions.LabelPermission.ForUser.ON_BEHALF_OF ) ) { return "labelAs " + ( name ) ; } return "label " + ( name ) ; }

Target:
public java.lang.String describeForException ( ) { if ( ( forUser ) == ( com.google.gerrit.server.permissions.LabelPermission.ForUser.ON_BEHALF_OF ) ) { return "label on behalf of " + ( name ) ; } return "label " + ( name ) ; }
Source:
public static void resetCurrentMillisSupplier ( ) { com.google.gerrit.common.TimeUtil.currentMillisSupplier = com.google.gerrit.common.TimeUtil.SYSTEM_CURRENT_MILLIS_SUPPLIER ; }

Target:
public static void resetCurrentMillisSupplier ( ) { com.google.gerrit.common.TimeUtil.currentMillisSupplier = com.google.gerrit.common.TimeUtil.SYSTEM_CURRENT_MILLIS_SUPPLIER ; org.eclipse.jgit.util.SystemReader.setInstance ( null ) ; }
Source:
public void testValidateRefPatternsOK ( ) throws java.lang.Exception { com.google.gerrit.server.project.RefControl.validateRefPattern ( "refs/*" ) ; com.google.gerrit.server.project.RefControl.validateRefPattern ( "^refs/heads/*" ) ; com.google.gerrit.server.project.RefControl.validateRefPattern ( "^refs/tags/[0-9a-zA-Z-_.]+" ) ; com.google.gerrit.server.project.RefControl.validateRefPattern ( "refs/heads/review/${username}/*" ) ; }

Target:
public void testValidateRefPatternsOK ( ) throws java.lang.Exception { com.google.gerrit.server.project.RefPattern.validate ( "refs/*" ) ; com.google.gerrit.server.project.RefPattern.validate ( "^refs/heads/*" ) ; com.google.gerrit.server.project.RefPattern.validate ( "^refs/tags/[0-9a-zA-Z-_.]+" ) ; com.google.gerrit.server.project.RefPattern.validate ( "refs/heads/review/${username}/*" ) ; }
Source:
void onReplaceByKeys ( org.eclipse.jgit.lib.ObjectId newNotesRev , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId.Key > toRemove , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toAdd ) throws java.io.IOException ;

Target:
void onReplaceByKeys ( org.eclipse.jgit.lib.ObjectId oldNotesRev , org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.reviewdb.client.Account.Id accountId , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId.Key > toRemove , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toAdd ) throws java.io.IOException ;
Source:
public com.google.gerrit.server.change.PatchSetInserter setValidatePolicy ( com.google.gerrit.server.git.validators.CommitValidators.Policy validate ) { this . validatePolicy = com.google.common.base.Preconditions.checkNotNull ( validate ) ; return this ; }

Target:
public com.google.gerrit.server.change.PatchSetInserter setValidate ( boolean validate ) { this . validate = validate ; return this ; }
Source:
public void ownerProject ( ) { com.google.gerrit.server.project.Util.allow ( local , com.google.gerrit.common.data.Permission.OWNER , com.google.gerrit.server.project.Util.ADMIN , "refs/*" ) ; assertAdminsAreOwnersAndDevsAreNot ( ) ; }

Target:
public void ownerProject ( ) { com.google.gerrit.server.project.testing.Util.allow ( local , com.google.gerrit.common.data.Permission.OWNER , com.google.gerrit.server.project.testing.Util.ADMIN , "refs/*" ) ; assertAdminsAreOwnersAndDevsAreNot ( ) ; }
Source:
public void onSuccess ( final com.google.gerrit.client.reviewdb.Account result ) { onCallback ( result ) ; }

Target:
public void onSuccess ( final com.google.gerrit.client.account.SignInResult result ) { onCallback ( result ) ; }
Source:
protected void doGet ( final javax.servlet.http.HttpServletRequest req , final javax.servlet.http.HttpServletResponse rsp ) throws java.io.IOException { com.google.gerrit.httpd.UrlModule.toGerrit ( ( "/register" + ( req.getPathInfo ( ) ) ) , req , rsp ) ; }

Target:
protected void doGet ( final javax.servlet.http.HttpServletRequest req , final javax.servlet.http.HttpServletResponse rsp ) throws java.io.IOException { java.lang.String path = java.lang.String.format ( "/register%s" , ( slash ? req.getPathInfo ( ) : "" ) ) ; com.google.gerrit.httpd.UrlModule.toGerrit ( path , req , rsp ) ; }
Source:
void destroy ( final com.google.gerrit.httpd.WebSessionManager.Key key ) { self.invalidate ( key.token ) ; }

Target:
void destroy ( final com.google.gerrit.httpd.WebSessionManager.Key key ) { self.remove ( key ) ; }
Source:
void onCreateGroup ( com.google.gerrit.reviewdb.client.AccountGroup.NameKey newGroupName ) throws java.io.IOException ;

Target:
void evict ( com.google.gerrit.reviewdb.client.AccountGroup.UUID groupUuid , com.google.gerrit.reviewdb.client.AccountGroup.Id groupId , com.google.gerrit.reviewdb.client.AccountGroup.NameKey groupName ) throws java.io.IOException ;
Source:
com.google.gerrit.httpd.raw.FontsServlet getFontsServlet ( @ 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 ) throws java.io.IOException { return new com.google.gerrit.httpd.raw.FontsServlet ( cache , getPaths ( ) . buckOut ) ; }

Target:
com.google.gerrit.httpd.raw.BowerComponentsServlet getBowerComponentsServlet ( @ 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 ) throws java.io.IOException { return new com.google.gerrit.httpd.raw.BowerComponentsServlet ( cache , getPaths ( ) . buckOut ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { configMock = createNiceMock ( com.google.gerrit.server.config.PluginConfig.class ) ; cfgFactoryMock = createMock ( com.google.gerrit.server.config.PluginConfigFactory.class ) ; org.easymock.EasyMock.expect ( cfgFactoryMock.getFromGerritConfig ( pluginName , true ) ) . andStubReturn ( configMock ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { org.mockito.Mockito.when ( cfgFactoryMock.getFromGerritConfig ( pluginName , true ) ) . thenReturn ( configMock ) ; }
Source:
public void resetHtml ( final com.google.gerrit.client.ui.FancyFlexTable.MyFlexTable myTable , final com.google.gwtexpui.safehtml.client.SafeHtml body ) { com.google.gwtexpui.safehtml.client.SafeHtml.set ( com.google.gerrit.client.ui.FancyFlexTableImpl.getBodyElement ( myTable ) , body ) ; }

Target:
public void resetHtml ( final com.google.gerrit.client.ui.FancyFlexTable.MyFlexTable myTable , final com.google.gwtexpui.safehtml.client.SafeHtml body ) { com.google.gwtexpui.safehtml.client.SafeHtml.setInnerHTML ( com.google.gerrit.client.ui.FancyFlexTableImpl.getBodyElement ( myTable ) , body ) ; }
Source:
private java.util.List < com.google.gerrit.extensions.api.projects.TagInfo > getTags ( ) throws java.lang.Exception { return gApi.projects ( ) . name ( project.get ( ) ) . tags ( ) . get ( ) ; }

Target:
private com.google.gerrit.extensions.api.projects.ProjectApi.ListTagsRequest getTags ( ) throws java.lang.Exception { return gApi.projects ( ) . name ( project.get ( ) ) . tags ( ) ; }
Source:
private static com.google.gerrit.server.account.WatchConfig.NotifyValue parseNotifyValue ( java.lang.String notifyValue ) throws org.eclipse.jgit.errors.ConfigInvalidException { return com.google.gerrit.server.account.WatchConfig.NotifyValue.parse ( new com.google.gerrit.reviewdb.client.Account.Id ( 1000000 ) , "project" , notifyValue ) ; }

Target:
private void assertParseNotifyValueFails ( java.lang.String notifyValue ) { com.google.common.truth.Truth.assertThat ( validationErrors ) . isEmpty ( ) ; parseNotifyValue ( notifyValue ) ; com.google.common.truth.Truth.assertThat ( validationErrors ) . named ( ( "expected validation error for notifyValue: " + notifyValue ) ) . isNotEmpty ( ) ; validationErrors.clear ( ) ; }
Source:
private void fireEvent ( final com.google.gerrit.reviewdb.Change change , final com.google.gerrit.common.ChangeHookRunner.ChangeEvent event ) { for ( com.google.gerrit.common.ChangeHookRunner.ChangeListenerHolder holder : listeners.values ( ) ) { if ( isVisibleTo ( change , holder.user ) ) { holder.listener.onChangeEvent ( event ) ; } } }

Target:
private void fireEvent ( final com.google.gerrit.reviewdb.Change change , final com.google.gerrit.server.events.ChangeEvent event ) { for ( com.google.gerrit.common.ChangeHookRunner.ChangeListenerHolder holder : listeners.values ( ) ) { if ( isVisibleTo ( change , holder.user ) ) { holder.listener.onChangeEvent ( event ) ; } } }
Source:
public void rebuildAndCheckAllChanges ( ) throws java.lang.Exception { rebuildAndCheckChanges ( getUnwrappedDb ( ) . changes ( ) . all ( ) . toList ( ) . stream ( ) . map ( Change :: getId ) ) ; }

Target:
public void rebuildAndCheckAllChanges ( ) throws java.lang.Exception { rebuildAndCheckChanges ( getUnwrappedDb ( ) . changes ( ) . all ( ) . toList ( ) . stream ( ) . map ( Change :: getId ) , com.google.common.collect.ImmutableListMultimap.of ( ) ) ; }
Source:
public void writeTo ( java.io.OutputStream os ) throws java.io.IOException { object.copyTo ( os ) ; }

Target:
public void writeTo ( java.io.OutputStream os ) throws java.io.IOException { obj.copyTo ( os ) ; }
Source:
public java.sql.Timestamp getMaxTimestamp ( ) { return new java.sql.Timestamp ( java.lang.Long.MAX_VALUE ) ; }

Target:
public long getMaxValue ( ) { return java.lang.Long.MAX_VALUE ; }
Source:
private static boolean autoReindexIfStale ( org.eclipse.jgit.lib.Config cfg ) { return cfg.getBoolean ( "index" , null , "testAutoReindexIfStale" , true ) ; }

Target:
private static boolean autoReindexIfStale ( org.eclipse.jgit.lib.Config cfg ) { return cfg.getBoolean ( "index" , null , "autoReindexIfStale" , true ) ; }
Source:
public boolean enabled ( ) { return ( writeChanges ( ) ) || ( readChanges ( ) ) ; }

Target:
public boolean enabled ( ) { return ( rawWriteChangesSetting ( ) ) || ( readChanges ( ) ) ; }
Source:
public void execute ( ) { file.setFocus ( true ) ; }

Target:
public void execute ( ) { if ( fileName.isEmpty ( ) ) { file.setFocus ( true ) ; } else { content.setFocus ( true ) ; } }
Source:
protected com.google.inject.binder.LinkedBindingBuilder < com.google.gerrit.lifecycle.LifecycleListener > listener ( ) { final java.lang.annotation.Annotation id = com.google.inject.internal.UniqueAnnotations.create ( ) ; return bind ( com.google.gerrit.lifecycle.LifecycleListener.class ) . annotatedWith ( id ) ; }

Target:
protected com.google.inject.binder.LinkedBindingBuilder < com.google.gerrit.extensions.events.LifecycleListener > listener ( ) { final java.lang.annotation.Annotation id = com.google.inject.internal.UniqueAnnotations.create ( ) ; return bind ( com.google.gerrit.extensions.events.LifecycleListener.class ) . annotatedWith ( id ) ; }
Source:
public boolean isCommitted ( ) { return false ; }

Target:
public synchronized boolean isCommitted ( ) { return committed ; }
Source:
private com.google.gerrit.reviewdb.SchemaVersion getSchemaVersion ( final com.google.gerrit.reviewdb.ReviewDb db ) { try { return db.schemaVersion ( ) . get ( new com.google.gerrit.reviewdb.SchemaVersion.Key ( ) ) ; } catch ( com.google.gwtorm.client.OrmException e ) { return null ; } }

Target:
private com.google.gerrit.reviewdb.CurrentSchemaVersion getSchemaVersion ( final com.google.gerrit.reviewdb.ReviewDb db ) { try { return db.schemaVersion ( ) . get ( new com.google.gerrit.reviewdb.CurrentSchemaVersion.Key ( ) ) ; } catch ( com.google.gwtorm.client.OrmException e ) { return null ; } }
Source:
public void onResize ( com.google.gwt.event.logical.shared.ResizeEvent event ) { resizeCodeMirror ( ) ; }

Target:
public void run ( ) { cm.getInputField ( ) . blur ( ) ; removeActiveLineHighlight ( cm ) ; removeActiveLineHighlight ( otherCm ( cm ) ) ; }
Source:
public PatchSet.Id getPatchSetId ( ) throws java.io.IOException { init ( ) ; return patchSet.getId ( ) ; }

Target:
public PatchSet.Id getPatchSetId ( ) throws java.io.IOException { if ( ( psId ) == null ) { psId = com.google.gerrit.server.ChangeUtil.nextPatchSetId ( git , ctl.getChange ( ) . currentPatchSetId ( ) ) ; } return psId ; }
Source:
public void setUp ( ) throws java.lang.Exception { new com.google.gerrit.testutil.InMemoryModule ( ) . inject ( this ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { new com.google.gerrit.testing.InMemoryModule ( ) . inject ( this ) ; }
Source:
public java.sql.Timestamp getCreatedOn ( ) { return createdOn ; }

Target:
public java.sql.Timestamp getCreatedOn ( ) { return ( createdOn ) != null ? createdOn : com.google.gerrit.reviewdb.client.AccountGroup.auditCreationInstantTs ( ) ; }
Source:
public static com.google.gerrit.reviewdb.client.ChangeMessage newMessage ( com.google.gerrit.server.update.BatchUpdate.ChangeContext ctx , java.lang.String body , @ com.google.gerrit.common.Nullable java.lang.String tag ) { return com.google.gerrit.server.ChangeMessagesUtil.newMessage ( ctx.getChange ( ) . currentPatchSetId ( ) , ctx.getUser ( ) , ctx.getWhen ( ) , body , tag ) ; }

Target:
public static com.google.gerrit.reviewdb.client.ChangeMessage newMessage ( com.google.gerrit.server.update.ChangeContext ctx , java.lang.String body , @ com.google.gerrit.common.Nullable java.lang.String tag ) { return com.google.gerrit.server.ChangeMessagesUtil.newMessage ( ctx.getChange ( ) . currentPatchSetId ( ) , ctx.getUser ( ) , ctx.getWhen ( ) , body , tag ) ; }
Source:
public static java.util.Map < java.lang.String , org.eclipse.jgit.lib.Config > againstPreviousIndexVersion ( ) { java.util.List < java.lang.Integer > schemaVersions = com.google.gerrit.testutil.IndexVersions.getWithoutLatest ( com.google.gerrit.server.index.project.ProjectSchemaDefinitions.INSTANCE ) ; return com.google.gerrit.testutil.IndexVersions.asConfigMap ( ProjectSchemaDefinitions.INSTANCE , schemaVersions , "againstIndexVersion" , defaultConfig ( ) ) ; }

Target:
public static java.util.Map < java.lang.String , org.eclipse.jgit.lib.Config > againstPreviousIndexVersion ( ) { java.util.List < java.lang.Integer > schemaVersions = com.google.gerrit.testing.IndexVersions.getWithoutLatest ( com.google.gerrit.server.index.project.ProjectSchemaDefinitions.INSTANCE ) ; return com.google.gerrit.testing.IndexVersions.asConfigMap ( ProjectSchemaDefinitions.INSTANCE , schemaVersions , "againstIndexVersion" , defaultConfig ( ) ) ; }
Source:
void addLabel ( final java.lang.String token ) { com.google.gerrit.server.util.LabelVote v = com.google.gerrit.server.util.LabelVote.parse ( token ) ; customLabels.put ( v.getLabel ( ) , v.getValue ( ) ) ; }

Target:
void addLabel ( final java.lang.String token ) { com.google.gerrit.server.util.LabelVote v = com.google.gerrit.server.util.LabelVote.parse ( token ) ; com.google.gerrit.common.data.LabelType.checkName ( v.getLabel ( ) ) ; customLabels.put ( v.getLabel ( ) , v.getValue ( ) ) ; }
Source:
public int getCost ( ) { return 2 ; }

Target:
public java.lang.String toString ( ) { return ( ( ChangeQueryBuilder.FIELD_LABEL ) + ":" ) + ( value ) ; }
Source:
private void assertCannotUpload ( com.google.gerrit.server.project.ProjectControl u ) { com.google.common.truth.Truth.assertThat ( u.canPushToAtLeastOneRef ( ) ) . named ( "cannot upload" ) . isNotEqualTo ( Capable.OK ) ; }

Target:
private void assertCannotUpload ( com.google.gerrit.server.project.ProjectControl u ) { com.google.common.truth.Truth.assertThat ( u.canPushToAtLeastOneRef ( ) ) . named ( "cannot upload" ) . isFalse ( ) ; }
Source:
protected com.google.gerrit.server.index.QueryOptions createOptions ( com.google.gerrit.server.index.IndexConfig indexConfig , int start , int limit , java.util.Set < java.lang.String > requestedFields ) { return com.google.gerrit.server.index.QueryOptions.create ( indexConfig , start , limit , requestedFields ) ; }

Target:
protected com.google.gerrit.index.QueryOptions createOptions ( com.google.gerrit.index.IndexConfig indexConfig , int start , int limit , java.util.Set < java.lang.String > requestedFields ) { return com.google.gerrit.index.QueryOptions.create ( indexConfig , start , limit , requestedFields ) ; }
Source:
private static java.net.URL toURL ( java.nio.file.Path jarPath ) throws com.googlecode.prolog_cafe.compiler.CompileException { try { return jarPath.toUri ( ) . toURL ( ) ; } catch ( java.net.MalformedURLException e ) { throw new com.googlecode.prolog_cafe.compiler.CompileException ( ( "Cannot create URL for " + jarPath ) , e ) ; } }

Target:
private static java.net.URL toURL ( java.nio.file.Path jarPath ) throws com.googlecode.prolog_cafe.exceptions.CompileException { try { return jarPath.toUri ( ) . toURL ( ) ; } catch ( java.net.MalformedURLException e ) { throw new com.googlecode.prolog_cafe.exceptions.CompileException ( ( "Cannot create URL for " + jarPath ) , e ) ; } }
Source:
public com.google.gerrit.extensions.common.ChangeInfo check ( com.google.gerrit.extensions.api.changes.FixInput fix ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return check.apply ( change , fix ) . value ( ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot check change" , e ) ; } }

Target:
public com.google.gerrit.extensions.common.ChangeInfo check ( com.google.gerrit.extensions.api.changes.FixInput fix ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return check.apply ( change , fix ) . value ( ) ; } catch ( com.google.gwtorm.server.OrmException | com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot check change" , e ) ; } }
Source:
public void setUp ( ) { com.google.common.truth.TruthJUnit.assume ( ) . that ( com.google.gerrit.testutil.NoteDbMode.readWrite ( ) ) . isFalse ( ) ; com.google.gerrit.testutil.TestTimeUtil.resetWithClockStep ( 1 , java.util.concurrent.TimeUnit.SECONDS ) ; notesMigration.setAllEnabled ( false ) ; }

Target:
public void setUp ( ) { com.google.common.truth.TruthJUnit.assume ( ) . that ( com.google.gerrit.testutil.NoteDbMode.readWrite ( ) ) . isFalse ( ) ; com.google.gerrit.testutil.TestTimeUtil.resetWithClockStep ( 1 , java.util.concurrent.TimeUnit.SECONDS ) ; setNotesMigration ( false , false ) ; }
Source:
public void extend ( org.commonmark.parser.Parser.Builder builder ) { builder.customBlockParserFactory ( new com.google.gitiles.doc.MultiColumnExtension.DivParserFactory ( ) ) ; }

Target:
public void extend ( org.commonmark.parser.Parser.Builder builder ) { builder.customBlockParserFactory ( new com.google.gitiles.doc.MultiColumnExtension.MultiColumnParserFactory ( ) ) ; }
Source:
private static java.lang.StringBuilder buildRefsPrefix ( java.lang.String prefix , int id ) { java.lang.StringBuilder r = new java.lang.StringBuilder ( ) ; r.append ( prefix ) ; r.append ( com.google.gerrit.reviewdb.client.RefNames.shard ( id ) ) ; r.append ( '/' ) ; return r ; }

Target:
private static java.lang.StringBuilder buildRefsPrefix ( java.lang.String prefix , int id ) { java.lang.StringBuilder r = com.google.gerrit.reviewdb.client.RefNames.newStringBuilder ( ) . append ( prefix ) ; return com.google.gerrit.reviewdb.client.RefNames.shard ( id , r ) . append ( '/' ) ; }
Source:
public void testGcNotAllowed_Forbidden ( ) throws com.google.gwtorm.server.OrmException , com.jcraft.jsch.JSchException , java.io.IOException { org.junit.Assert.assertEquals ( HttpStatus.SC_FORBIDDEN , new com.google.gerrit.acceptance.RestSession ( server , accounts.create ( "user" , "user@example.com" , "User" ) ) . post ( ( ( "/projects/" + ( allProjects.get ( ) ) ) + "/gc" ) ) . getStatusCode ( ) ) ; }

Target:
public void testGcNotAllowed_Forbidden ( ) throws com.google.gwtorm.server.OrmException , com.jcraft.jsch.JSchException , java.io.IOException { org.junit.Assert.assertEquals ( HttpStatus.SC_FORBIDDEN , userSession.post ( ( ( "/projects/" + ( allProjects.get ( ) ) ) + "/gc" ) ) . getStatusCode ( ) ) ; }
Source:
public com.google.gerrit.common.data.GerritConfig get ( ) { return create ( ) ; }

Target:
public com.google.gerrit.common.data.GerritConfig get ( ) { try { return create ( ) ; } catch ( java.net.MalformedURLException e ) { throw new com.google.inject.ProvisionException ( "Cannot create GerritConfig instance" , e ) ; } }
Source:
public java.lang.Void call ( ) throws java.lang.Exception { try ( com.google.gerrit.reviewdb.server.ReviewDb db = schemaFactory.open ( ) ) { rebuild ( db , id ) ; } return null ; }

Target:
public com.google.gerrit.server.notedb.NoteDbChangeState call ( ) throws java.lang.Exception { try ( com.google.gerrit.reviewdb.server.ReviewDb db = schemaFactory.open ( ) ) { return rebuild ( db , id ) ; } }
Source:
public void testEvictGroupsByIncludeOK ( ) throws java.lang.Exception { setupMocks ( Constants.GROUPS_BYINCLUDE , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.EMPTY_JSON , true , false ) ; com.google.common.truth.Truth.assertThat ( restClient.evict ( com.ericsson.gerrit.plugins.evictcache.RestSessionTest.SOURCE_NAME , Constants.GROUPS_BYINCLUDE , createMock ( AccountGroup.UUID.class ) ) ) . isTrue ( ) ; }

Target:
public void testEvictProjectListOK ( ) throws java.lang.Exception { setupMocks ( Constants.PROJECT_LIST , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.EMPTY_JSON , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.OK_RESPONSE , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.DO_NOT_THROW_EXCEPTION ) ; com.google.common.truth.Truth.assertThat ( restClient.evict ( com.ericsson.gerrit.plugins.evictcache.RestSessionTest.SOURCE_NAME , Constants.PROJECT_LIST , new java.lang.Object ( ) ) ) . isTrue ( ) ; }
Source:
private void abandon ( java.lang.String changeId , com.google.gerrit.acceptance.TestAccount by , @ com.google.gerrit.common.Nullable com.google.gerrit.extensions.api.changes.NotifyHandling notify ) throws java.lang.Exception { abandon ( changeId , by , EmailStrategy.ENABLED , notify ) ; }

Target:
private void abandon ( java.lang.String changeId , com.google.gerrit.acceptance.TestAccount by , @ com.google.gerrit.common.Nullable com.google.gerrit.extensions.api.changes.NotifyHandling.NotifyHandling notify ) throws java.lang.Exception { abandon ( changeId , by , EmailStrategy.ENABLED , notify ) ; }
Source:
void onReplyDone ( com.google.gwt.event.dom.client.ClickEvent e ) { if ( ( replyBox ) == null ) { com.google.gerrit.client.diff.DraftBox box = getDiffView ( ) . addReply ( getOriginal ( ) , "Done" , true ) ; registerReplyBox ( box ) ; } else { openReplyBox ( ) ; } }

Target:
public void onSuccess ( com.google.gerrit.client.changes.CommentInfo result ) { done.setEnabled ( true ) ; setOpen ( false ) ; registerReplyBox ( parent.addDraftBox ( result ) ) ; }
Source:
protected void createProject ( java.lang.String name , com.google.gerrit.reviewdb.client.Project.NameKey parent ) throws com.google.gerrit.extensions.restapi.RestApiException { createProject ( name , parent , true ) ; }

Target:
protected Project.NameKey createProject ( java.lang.String nameSuffix , com.google.gerrit.reviewdb.client.Project.NameKey parent ) throws com.google.gerrit.extensions.restapi.RestApiException { return createProject ( nameSuffix , parent , true ) ; }
Source:
public static void display ( final java.lang.String historyToken , final boolean go ) { com.google.gwt.user.client.History.newItem ( historyToken , go ) ; if ( ( ! go ) && ( ( com.google.gerrit.client.Gerrit.historyHooks ) != null ) ) { com.google.gerrit.client.Gerrit.dispatchHistoryHooks ( historyToken ) ; } }

Target:
public static void updateImpl ( final java.lang.String token ) { com.google.gwt.user.client.History.newItem ( token , false ) ; if ( ( com.google.gerrit.client.Gerrit.historyHooks ) != null ) { com.google.gerrit.client.Gerrit.dispatchHistoryHooks ( token ) ; } }
Source:
protected com.google.gerrit.server.update.Context newContext ( ) { return new com.google.gerrit.server.update.NoteDbBatchUpdate.ContextImpl ( ) ; }

Target:
protected com.google.gerrit.server.update.Context newContext ( ) { return new com.google.gerrit.server.update.FusedNoteDbBatchUpdate.ContextImpl ( ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.VoidResult result ) { generation = g ; save.setEnabled ( ( ! ( cm.isClean ( g ) ) ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.VoidResult result ) { generation = g ; setClean ( cm.isClean ( g ) ) ; }
Source:
public static void comments ( com.google.gerrit.reviewdb.client.PatchSet.Id id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.rpc.NativeMap < com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.CommentInfo > > > cb ) { com.google.gerrit.client.changes.ChangeApi.revision ( id ) . view ( "comments" ) . get ( cb ) ; }

Target:
public static void comments ( com.google.gerrit.reviewdb.client.PatchSet.Id id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.rpc.NativeMap < com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.CommentInfo > > > cb ) { com.google.gerrit.client.changes.CommentApi.revision ( id , "comments" ) . get ( cb ) ; }
Source:
private com.google.gerrit.reviewdb.client.AccountSshKey getKey ( int seq ) { checkLoaded ( ) ; com.google.common.base.Optional < com.google.gerrit.reviewdb.client.AccountSshKey > key = keys.get ( ( seq - 1 ) ) ; return key.orNull ( ) ; }

Target:
private com.google.gerrit.reviewdb.client.AccountSshKey getKey ( int seq ) { checkLoaded ( ) ; return keys.get ( ( seq - 1 ) ) . orElse ( null ) ; }
Source:
com.google.gwtjsonrpc.client.CallbackHandle < com.google.gerrit.client.openid.DiscoveryResult > discover ( com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.openid.DiscoveryResult > callback ) ;

Target:
void discover ( java.lang.String openidIdentifier , com.google.gerrit.client.SignInDialog.Mode mode , boolean remember , java.lang.String returnToken , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.openid.DiscoveryResult > callback ) ;
Source:
public void delete ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Change change ) throws java.io.IOException { delete ( changeDataFactory.create ( db , change ) ) ; }

Target:
public java.lang.Void call ( ) throws java.io.IOException { for ( com.google.gerrit.server.index.ChangeIndex i : getWriteIndexes ( ) ) { i.delete ( id ) ; } return null ; }
Source:
public void run ( ) { runImp ( ) ; }

Target:
public void start ( final org.apache.sshd.server.Environment env ) { startThread ( this :: runImp ) ; }
Source:
public final boolean canEdit ( com.google.gerrit.reviewdb.client.Account.FieldName f ) { return editableAccountFields ( ) . contains ( f ) ; }

Target:
public final boolean canEdit ( com.google.gerrit.extensions.client.AccountFieldName f ) { return editableAccountFields ( ) . contains ( f ) ; }
Source:
public void save ( ) { lastUpdated = new java.util.Date ( ) ; com.googlesource.gerrit.plugins.repositoryuse.Ref.table.insertOrUpdate ( this ) ; com.googlesource.gerrit.plugins.repositoryuse.Ref.log.info ( java.lang.String.format ( "Saving Ref: %s, %s, %s" , project , ref , commit ) ) ; }

Target:
public void save ( ) { lastUpdated = new java.util.Date ( ) ; com.googlesource.gerrit.plugins.repositoryuse.Ref.log.debug ( java.lang.String.format ( "Saving Ref: %s, %s, %s" , project , ref , commit ) ) ; com.googlesource.gerrit.plugins.repositoryuse.Ref.table.insertOrUpdate ( this ) ; }
Source:
protected com.google.gerrit.server.change.ChangeInserter newChangeWithTopic ( org.eclipse.jgit.junit.TestRepository < com.google.gerrit.testutil.InMemoryRepositoryManager.Repo > repo , java.lang.String topic ) throws java.lang.Exception { return newChange ( repo , null , null , null , null , topic ) ; }

Target:
protected com.google.gerrit.reviewdb.client.Change insert ( org.eclipse.jgit.junit.TestRepository < com.google.gerrit.testutil.InMemoryRepositoryManager.Repo > repo , com.google.gerrit.server.change.ChangeInserter ins ) throws java.lang.Exception { return insert ( repo , ins , null ) ; }
Source:
com.google.gerrit.reviewdb.AccountProjectWatchAccess accountProjectWatches ( ) ;

Target:
com.google.gerrit.reviewdb.StarredChangeAccess starredChanges ( ) ;
Source:
public void testParse_NameEmail5 ( ) { final com.google.gerrit.server.mail.Address a = com.google.gerrit.server.mail.Address.parse ( "A U Thor <author@example.com>" ) ; assertEquals ( "A U Thor" , a.name ) ; assertEquals ( "author@example.com" , a.email ) ; }

Target:
public void testParse_NameEmail5 ( ) { final com.google.gerrit.server.mail.Address a = com.google.gerrit.server.mail.Address.parse ( "A U Thor <author@example.com>" ) ; org.junit.Assert.assertEquals ( "A U Thor" , a.name ) ; org.junit.Assert.assertEquals ( "author@example.com" , a.email ) ; }
Source:
public static void createEdit ( 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.call ( id , commit , "create_edit" ) . post ( com.google.gwt.core.client.JavaScriptObject.createObject ( ) , cb ) ; }

Target:
public static void publishEdit ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gwt.core.client.JavaScriptObject in = com.google.gwt.core.client.JavaScriptObject.createObject ( ) ; com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( "publish_edit" ) . post ( in , cb ) ; }
Source:
com.google.common.util.concurrent.ListenableFuture < ? > replace ( org.apache.lucene.index.Term term , org.apache.lucene.document.Document doc ) throws java.io.IOException { return new com.google.gerrit.lucene.SubIndex.NrtFuture ( writer.updateDocument ( term , doc ) ) ; }

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:
public static final javax.servlet.http.HttpServletResponse getCurrentResponse ( ) { return com.google.gwtjsonrpc.server.JsonServlet.perThreadResponse.get ( ) ; }

Target:
protected com.google.gwtjsonrpc.server.ActiveCall createActiveCall ( final javax.servlet.http.HttpServletRequest req , final javax.servlet.http.HttpServletResponse resp ) { return new com.google.gwtjsonrpc.server.ActiveCall ( req , resp ) ; }
Source:
private com.google.gerrit.client.ui.Screen select ( ) { java.lang.String p = "change,publish," ; if ( token.startsWith ( p ) ) return new com.google.gerrit.client.changes.PublishCommentScreen ( PatchSet.Id.parse ( com.google.gerrit.client.HistoryHandler.skip ( p , token ) ) ) ; return new com.google.gerrit.client.NotFoundScreen ( ) ; }

Target:
private com.google.gerrit.client.ui.Screen select ( ) { java.lang.String p = "change,publish," ; if ( token.startsWith ( p ) ) return new com.google.gerrit.client.changes.PublishCommentScreen ( PatchSet.Id.parse ( com.google.gerrit.client.Dispatcher.skip ( p , token ) ) ) ; return new com.google.gerrit.client.NotFoundScreen ( ) ; }
Source:
public void increasePushTaskCount ( ) { countingLock.lock ( ) ; try { ( totalPushTasksCount ) ++ ; } finally { countingLock.unlock ( ) ; } }

Target:
public void increasePushTaskCount ( java.lang.String project , java.lang.String ref ) { countingLock.lock ( ) ; try { ( getRefStatus ( project , ref ) . nodesToReplicateCount ) ++ ; ( totalPushTasksCount ) ++ ; } finally { countingLock.unlock ( ) ; } }
Source:
public java.sql.Connection getConnection ( java.lang.String username , java.lang.String password ) throws java.sql.SQLException { return java.sql.DriverManager.getConnection ( url , username , password ) ; }

Target:
public java.sql.Connection getConnection ( ) throws java.sql.SQLException { if ( ( driver ) != null ) { return driver.connect ( url , connectionInfo ) ; } return java.sql.DriverManager.getConnection ( url , connectionInfo ) ; }
Source:
public void shouldDispatchEvent ( ) { listenerMock.onEvent ( event ) ; replayAll ( ) ; broker.fireEventForUnrestrictedListeners ( event ) ; verifyAll ( ) ; }

Target:
public void shouldDispatchEvent ( ) { broker.fireEventForUnrestrictedListeners ( event ) ; org.mockito.Mockito.verify ( listenerMock ) . onEvent ( event ) ; }
Source:
public void putReviewer ( com.google.gerrit.reviewdb.client.Account.Id reviewer , com.google.gerrit.server.notedb.ReviewerState type ) { com.google.common.base.Preconditions.checkArgument ( ( type != ( ReviewerState.REMOVED ) ) , "invalid ReviewerType" ) ; reviewers.put ( reviewer , type ) ; }

Target:
public void removeReviewer ( com.google.gerrit.reviewdb.client.Account.Id reviewer ) { reviewers.put ( reviewer , ReviewerStateInternal.REMOVED ) ; }
Source:
public java.lang.String getHostName ( javax.servlet.http.HttpServletRequest req ) { return "test-host" ; }

Target:
public java.lang.String getBaseGerritUrl ( javax.servlet.http.HttpServletRequest req ) { return ( "http://" + ( com.google.gitiles.TestGitilesUrls.HOST_NAME ) ) + "-review/foo/" ; }
Source:
public void want ( final java.lang.Iterable < com.google.gerrit.reviewdb.Account.Id > ids ) { for ( final com.google.gerrit.reviewdb.Account.Id id : ids ) { want ( id ) ; } }

Target:
public void want ( final java.util.Collection < com.google.gerrit.reviewdb.Account.Id > ids ) { wants.addAll ( ids ) ; }
Source:
public static < T > void setOf ( com.google.inject.Binder binder , java.lang.Class < T > member ) { com.google.gerrit.extensions.registration.DynamicSet.setOf ( binder , com.google.inject.TypeLiteral.get ( member ) ) ; }

Target:
public static < T > void setOf ( com.google.inject.Binder binder , java.lang.Class < T > member ) { binder.disableCircularProxies ( ) ; com.google.gerrit.extensions.registration.DynamicSet.setOf ( binder , com.google.inject.TypeLiteral.get ( member ) ) ; }
Source:
public boolean accept ( java.io.File dir , java.lang.String name ) { return name.matches ( ( ( "^" + ( remove ) ) + "$" ) ) ; }

Target:
public boolean accept ( java.nio.file.Path entry ) { return entry.getFileName ( ) . toString ( ) . matches ( ( ( "^" + ( remove ) ) + "$" ) ) ; }
Source:
boolean isReviewed ( ) { return reviewed.getValue ( ) ; }

Target:
void autoReview ( ) { if ( ( ( reviewedState ) == ( com.google.gerrit.client.diff.Header.ReviewedState.LOADED ) ) && ( ! ( reviewed.getValue ( ) ) ) ) { postAutoReviewed ( ) ; } else { reviewedState = com.google.gerrit.client.diff.Header.ReviewedState.AUTO_REVIEW ; } }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { l.setVisible ( false ) ; edit.setVisible ( false ) ; input.setVisible ( true ) ; save.setVisible ( true ) ; cancel.setVisible ( true ) ; }

Target:
public void onOk ( ) { deleteTags ( refs ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { admins = groupCache.get ( new com.google.gerrit.reviewdb.client.AccountGroup.NameKey ( "Administrators" ) ) . getGroupUUID ( ) ; setUpPermissions ( ) ; setUpChanges ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { admins = groupCache.get ( new com.google.gerrit.reviewdb.client.AccountGroup.NameKey ( "Administrators" ) ) . getGroupUUID ( ) ; setUpPermissions ( ) ; setUpChanges ( ) ; atrScope.disableDb ( ) ; }
Source:
public final native void showWhitespaceErrors ( boolean s ) ;

Target:
public final native void showLineEndings ( java.lang.Boolean s ) ;
Source:
void reload ( ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange2 ( changeId ) ) ; }

Target:
void reload ( ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( changeId ) ) ; }
Source:
public java.util.List < com.google.gerrit.extensions.common.AccountInfo > getPastAssignees ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getPastAssignees.apply ( change ) . value ( ) ; } catch ( java.lang.Exception e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot get past assignees" , e ) ; } }

Target:
public void delete ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteChange.apply ( change , null ) ; } catch ( com.google.gerrit.server.update.UpdateException | com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot delete change" , e ) ; } }
Source:
public com.google.gerrit.server.project.ProjectState get ( final com.google.gerrit.client.reviewdb.Project.Id projectId ) { return get0 ( projectId ) ; }

Target:
public java.util.Collection < com.google.gerrit.client.reviewdb.ProjectRight > getWildcardRights ( ) { return get ( wildProject ) . getRights ( ) ; }
Source:
public void assertNoChangeRef ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id changeId ) throws java.lang.Exception { try ( org.eclipse.jgit.lib.Repository repo = repoManager.openRepository ( project ) ) { com.google.common.truth.Truth.assertThat ( repo.exactRef ( com.google.gerrit.server.notedb.ChangeNoteUtil.changeRefName ( changeId ) ) ) . isNull ( ) ; } }

Target:
public void assertNoChangeRef ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id changeId ) throws java.lang.Exception { try ( org.eclipse.jgit.lib.Repository repo = repoManager.openRepository ( project ) ) { com.google.common.truth.Truth.assertThat ( repo.exactRef ( com.google.gerrit.reviewdb.client.RefNames.changeMetaRef ( changeId ) ) ) . isNull ( ) ; } }
Source:
private java.lang.String getRevision ( ) { return ( ( getRevisionA ( ) ) + "<->" ) + ( getRevisionB ( ) ) ; }

Target:
private java.lang.String getRevision ( ) { return ( ( ( getRevisionA ( ) ) != null ? getRevisionA ( ) : "" ) + "<->" ) + ( getRevisionB ( ) ) ; }
Source:
private static boolean isVisible ( com.google.gerrit.server.change.RelatedChangesSorter.PatchSetData psd , com.google.gerrit.server.project.ProjectControl ctl ) throws com.google.gwtorm.server.OrmException { return ctl.controlFor ( psd.data ( ) . notes ( ) ) . isPatchVisible ( psd.patchSet ( ) , psd.data ( ) ) ; }

Target:
private static boolean isVisible ( com.google.gerrit.server.change.RelatedChangesSorter.PatchSetData psd , com.google.gerrit.server.permissions.PermissionBackend.WithUser perm ) throws com.google.gerrit.server.permissions.PermissionBackendException { try { perm.change ( psd.data ( ) ) . check ( ChangePermission.READ ) ; return true ; } catch ( com.google.gerrit.extensions.restapi.AuthException e ) { return false ; } }
Source:
public com.google.gerrit.server.change.ChangeJson addOption ( com.google.gerrit.common.changes.ListChangesOption o ) { options.add ( o ) ; return this ; }

Target:
public com.google.gerrit.server.change.ChangeJson addOption ( com.google.gerrit.extensions.common.ListChangesOption o ) { options.add ( o ) ; return this ; }
Source:
public synchronized com.google.gerrit.server.account.AccountState get ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { com.google.gerrit.server.account.AccountState state = byId.get ( accountId ) ; if ( state != null ) { return state ; } return com.google.gerrit.testing.FakeAccountCache.newState ( new com.google.gerrit.reviewdb.client.Account ( accountId , com.google.gerrit.common.TimeUtil.nowTs ( ) ) ) ; }

Target:
public synchronized com.google.gerrit.server.account.AccountState getEvenIfMissing ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { com.google.gerrit.server.account.AccountState state = byId.get ( accountId ) ; if ( state != null ) { return state ; } return com.google.gerrit.testing.FakeAccountCache.newState ( new com.google.gerrit.reviewdb.client.Account ( accountId , com.google.gerrit.common.TimeUtil.nowTs ( ) ) ) ; }
Source:
void addApproval ( com.google.gerrit.server.change.ChangeJson.ApprovalInfo ai ) { if ( ( all ) == null ) { all = com.google.common.collect.Lists.newArrayList ( ) ; } all.add ( ai ) ; }

Target:
void addApproval ( com.google.gerrit.extensions.common.ApprovalInfo ai ) { if ( ( all ) == null ) { all = com.google.common.collect.Lists.newArrayList ( ) ; } all.add ( ai ) ; }
Source:
public int compare ( final com.google.gerrit.client.reviewdb.Project a , final com.google.gerrit.client.reviewdb.Project b ) { return a.getName ( ) . compareTo ( b.getName ( ) ) ; }

Target:
public void ownedProjects ( final com.google.gwt.user.client.rpc.AsyncCallback < java.util.List < com.google.gerrit.client.reviewdb.Project > > callback ) { ownedProjectsFactory.create ( ) . to ( callback ) ; }
Source:
public void testFindInDeleteGap ( ) { com.google.gerrit.client.diff.LineMapper mapper = new com.google.gerrit.client.diff.LineMapper ( ) ; mapper.appendDelete ( 10 ) ; org.junit.Assert.assertEquals ( ( - 1 ) , mapper.lineOnOther ( Side.PARENT , 9 ) ) ; }

Target:
public void testFindInInsertGap ( ) { com.google.gerrit.client.diff.LineMapper mapper = new com.google.gerrit.client.diff.LineMapper ( ) ; mapper.appendInsert ( 10 ) ; org.junit.Assert.assertEquals ( new com.google.gerrit.client.diff.LineMapper.LineOnOtherInfo ( ( - 1 ) , false ) , mapper.lineOnOther ( Side.REVISION , 9 ) ) ; }
Source:
public com.googlecode.prolog_cafe.lang.NumberTerm sqrt ( ) { if ( ( this . val ) < 0 ) throw new com.googlecode.prolog_cafe.lang.EvaluationException ( "undefined" ) ; return new com.googlecode.prolog_cafe.lang.DoubleTerm ( java.lang.Math.sqrt ( this . doubleValue ( ) ) ) ; }

Target:
public com.googlecode.prolog_cafe.lang.NumberTerm sqrt ( ) { if ( ( this . val ) < 0 ) throw new com.googlecode.prolog_cafe.exceptions.EvaluationException ( "undefined" ) ; return new com.googlecode.prolog_cafe.lang.DoubleTerm ( java.lang.Math.sqrt ( this . doubleValue ( ) ) ) ; }
Source:
private static java.lang.String last ( java.nio.file.Path dir ) { return dir.getName ( ( ( dir.getNameCount ( ) ) - 1 ) ) . toString ( ) ; }

Target:
private static java.lang.String name ( java.nio.file.Path dir ) { return dir.getFileName ( ) . toString ( ) ; }
Source:
private void openRepository ( ) throws com.google.gerrit.git.InvalidRepositoryException , com.google.gwtjsonrpc.server.XsrfException , com.google.gwtorm.client.OrmException { db = com.google.gerrit.server.GerritServer.getInstance ( ) . getRepositoryCache ( ) . get ( projectName ) ; }

Target:
private void openRepository ( ) throws com.google.gwtjsonrpc.server.XsrfException , com.google.gwtorm.client.OrmException , org.spearce.jgit.errors.RepositoryNotFoundException { db = com.google.gerrit.server.GerritServer.getInstance ( ) . openRepository ( projectName ) ; }
Source:
public java.lang.String toString ( ) { return ( ( ( "GitHubLogin [token=" + ( token ) ) + ", myself=" ) + ( myself ) ) + "]" ; }

Target:
public java.lang.String toString ( ) { return ( ( ( ( ( "GitHubLogin [token=" + ( token ) ) + ", myself=" ) + ( myself ) ) + ", scopes=" ) + ( loginScopes ) ) + "]" ; }
Source:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { doLinkIdentity ( ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { new com.google.gerrit.client.auth.openid.OpenIdSignInDialog ( SignInDialog.Mode.LINK_IDENTIY , null ) . center ( ) ; }
Source:
private com.google.gerrit.extensions.common.ChangeInfo getChange ( java.lang.String triplet , java.util.EnumSet < com.google.gerrit.extensions.common.ListChangesOption > s ) throws com.google.gerrit.extensions.restapi.RestApiException { return gApi.changes ( ) . id ( triplet ) . get ( s ) ; }

Target:
private com.google.gerrit.extensions.common.ChangeInfo getChangeAll ( java.lang.String triplet ) throws com.google.gerrit.extensions.restapi.RestApiException { return gApi.changes ( ) . id ( triplet ) . get ( ) ; }
Source:
protected void configure ( ) { listener ( ) . to ( JettyServer.Lifecycle.class ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.pgm.http.jetty.JettyEnv.class ) . toInstance ( env ) ; bind ( com.google.gerrit.pgm.http.jetty.JettyServer.class ) ; listener ( ) . to ( JettyServer.Lifecycle.class ) ; }
Source:
private void edit ( ) { text.setText ( comment.getMessage ( ) ) ; stateEdit ( true ) ; text.setFocus ( true ) ; }

Target:
private void edit ( ) { text.setText ( comment.getMessage ( ) ) ; expandText ( ) ; stateEdit ( true ) ; text.setFocus ( true ) ; }
Source:
protected java.nio.file.attribute.FileTime getLastModifiedTime ( java.nio.file.Path p ) { return com.google.gerrit.httpd.raw.DirectoryGwtUiServlet.NOW ; }

Target:
protected java.nio.file.attribute.FileTime getLastModifiedTime ( java.nio.file.Path p ) { return com.google.gerrit.httpd.raw.DeveloperGwtUiServlet.NOW ; }
Source:
public com.google.common.collect.Table < com.google.gerrit.reviewdb.client.PatchSet.Id , java.lang.String , com.google.gerrit.reviewdb.client.PatchLineComment > getDraftPsComments ( com.google.gerrit.reviewdb.client.Account.Id author ) throws com.google.gwtorm.server.OrmException { loadDraftComments ( author ) ; return draftCommentNotes.getDraftPsComments ( ) ; }

Target:
com.google.gerrit.server.notedb.DraftCommentNotes getDraftCommentNotes ( ) { return draftCommentNotes ; }
Source:
public java.lang.String toString ( ) { return "Replicate All Projects" ; }

Target:
public java.lang.String toString ( ) { java.lang.String s = "Replicate All Projects" ; if ( ( urlMatch ) != null ) { s = ( s + " to " ) + ( urlMatch ) ; } return s ; }