auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public synchronized com.google.gerrit.server.account.AccountState getByUsername ( java.lang.String username ) { return byUsername.get ( username ) ; }

Target:
public synchronized java.util.Optional < com.google.gerrit.server.account.AccountState > getByUsername ( java.lang.String username ) { return java.util.Optional.ofNullable ( byUsername.get ( username ) ) ; }
Source:
private long getGerritSessionMaxAgeMillis ( ) { return com.google.gerrit.server.config.ConfigUtil.getTimeUnit ( config.gerritConfig , "cache" , com.googlesource.gerrit.plugins.github.oauth.OAuthCookieProvider.CACHE_NAME , "maxAge" , TokenCipher.MAX_COOKIE_TIMEOUT , java.util.concurrent.TimeUnit.SECONDS ) ; }

Target:
private long getGerritSessionMaxAgeMillis ( ) { return com.google.gerrit.server.config.ConfigUtil.getTimeUnit ( config.gerritConfig , "cache" , com.googlesource.gerrit.plugins.github.oauth.OAuthCookieProvider.CACHE_NAME , "maxAge" , TokenCipher.MAX_COOKIE_TIMEOUT_SECS , java.util.concurrent.TimeUnit.SECONDS ) ; }
Source:
public int hashCode ( ) { return get ( ) . hashCode ( ) ; }

Target:
public abstract java.lang.String uuid ( ) ;
Source:
java.lang.String getTitle ( java.lang.String count ) { }

Target:
java.lang.String getTitle ( java.lang.String count ) { return Resources.M.conflictingChanges ( count ) ; }
Source:
public < T > java.util.Enumeration < T > resources ( java.lang.Class < ? extends T > resourceClass ) { return java.util.Collections.emptyEnumeration ( ) ; }

Target:
public java.util.Enumeration < com.google.gerrit.server.plugins.PluginEntry > entries ( ) { return java.util.Collections.emptyEnumeration ( ) ; }
Source:
private void initChannels ( ) { setChannelFactories ( java.util.Arrays.< org.apache.sshd.common.NamedFactory < org.apache.sshd.server.ServerChannel > > asList ( new org.apache.sshd.server.channel.ChannelSession.Factory ( ) ) ) ; }

Target:
private void initChannels ( ) { setChannelFactories ( java.util.Arrays.< org.apache.sshd.common.NamedFactory < org.apache.sshd.common.Channel > > asList ( new org.apache.sshd.server.channel.ChannelSession.Factory ( ) , new org.apache.sshd.server.channel.ChannelDirectTcpip.Factory ( ) ) ) ; }
Source:
public java.lang.String intercept ( java.lang.String in ) { if ( pattern.matcher ( in ) . matches ( ) ) { return in ; } com.googlesource.gerrit.plugins.readonly.DisableCommandInterceptor.log.warn ( ( "Disabling command: " + in ) ) ; return ( pluginName ) + " disable" ; }

Target:
public java.lang.String intercept ( java.lang.String in ) { if ( pattern.matcher ( in ) . matches ( ) ) { return in ; } com.googlesource.gerrit.plugins.readonly.DisableCommandInterceptor.log.warn ( "Disabling command: {}" , in ) ; return ( pluginName ) + " disable" ; }
Source:
public GroupDescription.Basic parseInternal ( java.lang.String id ) throws com.google.gerrit.extensions.restapi.UnprocessableEntityException { com.google.gerrit.common.data.GroupDescription.Basic group = parse ( id ) ; if ( ( com.google.gerrit.common.data.GroupDescriptions.toAccountGroup ( group ) ) == null ) { throw new com.google.gerrit.extensions.restapi.UnprocessableEntityException ( java.lang.String.format ( "External Group Not Allowed: %s" , id ) ) ; } return group ; }

Target:
public GroupDescription.Internal parseInternal ( java.lang.String id ) throws com.google.gerrit.extensions.restapi.UnprocessableEntityException { com.google.gerrit.common.data.GroupDescription.Basic group = parse ( id ) ; if ( group instanceof com.google.gerrit.common.data.GroupDescription.Internal ) { return ( ( com.google.gerrit.common.data.GroupDescription.Internal ) ( group ) ) ; } throw new com.google.gerrit.extensions.restapi.UnprocessableEntityException ( java.lang.String.format ( "External Group Not Allowed: %s" , id ) ) ; }
Source:
public void testUserNotPresent2 ( ) throws java.lang.Exception { testUserNotPresent ( ) ; BRANCH ( 8 ) ; com.google.gerrit.acceptance.a4d86 Merge ; }

Target:
public void testUserNotPresent2 ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( gApi.accounts ( ) . query ( "sandboxuser" ) . get ( ) ) . isEmpty ( ) ; }
Source:
public void close ( ) { if ( ( conn ) != null ) { try { conn.close ( ) ; } catch ( java.sql.SQLException err ) { } conn = null ; } }

Target:
public void close ( ) { transactionException = null ; if ( ( conn ) != null ) { try { conn.close ( ) ; } catch ( java.sql.SQLException err ) { } conn = null ; } }
Source:
public java.lang.Object createEntry ( java.lang.Object key ) throws java.lang.Exception { return this . createEntry ( ( ( K ) ( key ) ) ) ; }

Target:
public java.lang.Object createEntry ( java.lang.Object key ) throws java.lang.Exception { return creator.createEntry ( ( ( K ) ( key ) ) ) ; }
Source:
public void changeDetail ( final com.google.gerrit.client.reviewdb.Change.Id id , final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.data.ChangeDetail > callback ) { run ( callback , new com.google.gerrit.server.rpc.ChangeDetailFactory ( id ) ) ; }

Target:
public void changeDetail ( final com.google.gerrit.client.reviewdb.Change.Id id , final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.data.ChangeDetail > callback ) { run ( callback , changeDetail.create ( id ) ) ; }
Source:
com.google.gerrit.server.account.AccountSshKey create ( com.google.gerrit.server.account.AccountSshKey.Id id , java.lang.String encoded ) throws com.google.gerrit.common.errors.InvalidSshKeyException ;

Target:
com.google.gerrit.server.account.AccountSshKey create ( com.google.gerrit.reviewdb.client.Account.Id accountId , int seq , java.lang.String encoded ) throws com.google.gerrit.common.errors.InvalidSshKeyException ;
Source:
public com.google.gerrit.extensions.client.SubmitType testSubmitType ( com.google.gerrit.extensions.common.TestSubmitRuleInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return testSubmitType.apply ( revision , in ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot test submit type" , e ) ; } }

Target:
public com.google.gerrit.extensions.client.SubmitType testSubmitType ( com.google.gerrit.extensions.common.TestSubmitRuleInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return testSubmitType.apply ( revision , in ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot test submit type" , e ) ; } }
Source:
public com.google.gerrit.server.project.ProjectControl validateFor ( final com.google.gerrit.client.reviewdb.Project.NameKey nameKey ) throws com.google.gerrit.server.project.NoSuchProjectException { final com.google.gerrit.server.project.ProjectControl c = controlFor ( nameKey ) ; if ( ! ( c.isVisible ( ) ) ) { throw new com.google.gerrit.server.project.NoSuchProjectException ( nameKey ) ; } return c ; }

Target:
public com.google.gerrit.server.project.ProjectControl ownerFor ( final com.google.gerrit.client.reviewdb.Project.NameKey nameKey ) throws com.google.gerrit.server.project.NoSuchProjectException { return validateFor ( nameKey , com.google.gerrit.server.project.ProjectControl.OWNER ) ; }
Source:
public void setMaxArity ( int max ) { if ( max < 8 ) throw new java.lang.IllegalStateException ( ( "invalid arity " + max ) ) ; if ( ( engine.aregs ) != null ) throw new java.lang.IllegalStateException ( "Prolog already initialized" ) ; engine.maxArity = max ; }

Target:
public void setReductionLimit ( long limit ) { reductionLimit = java.lang.Math.max ( 0 , limit ) ; }
Source:
public void manualCertificationMatchesExternalId ( ) throws java.lang.Exception { addExternalId ( "foo" , "myId" , null ) ; assertNoProblems ( com.google.gerrit.gpg.testutil.TestKey.key5 ( ) ) ; }

Target:
public void manualCertificationMatchesExternalId ( ) throws java.lang.Exception { addExternalId ( "foo" , "myId" , null ) ; com.google.gerrit.gpg.GerritPublicKeyChecker checker = checkerFactory.create ( user ) ; assertNoProblems ( checker.check ( com.google.gerrit.gpg.testutil.TestKeys.key5 ( ) . getPublicKey ( ) ) ) ; }
Source:
public static java.lang.String refsUsers ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { java.lang.StringBuilder r = new java.lang.StringBuilder ( ) ; r.append ( com.google.gerrit.reviewdb.client.RefNames.REFS_USERS ) ; r.append ( com.google.gerrit.reviewdb.client.RefNames.shard ( accountId.get ( ) ) ) ; return r.toString ( ) ; }

Target:
public static java.lang.String refsStarredChanges ( com.google.gerrit.reviewdb.client.Change.Id changeId , com.google.gerrit.reviewdb.client.Account.Id accountId ) { return com.google.gerrit.reviewdb.client.RefNames.buildRefsPrefix ( com.google.gerrit.reviewdb.client.RefNames.REFS_STARRED_CHANGES , changeId.get ( ) ) . append ( accountId.get ( ) ) . toString ( ) ; }
Source:
private void checkPermission ( ) throws com.google.gerrit.common.errors.PermissionDeniedException { if ( ! ( currentUser.getCapabilities ( ) . canAccessDatabase ( ) ) ) { throw new com.google.gerrit.common.errors.PermissionDeniedException ( java.lang.String.format ( "%s does not have \"Perform Raw Query\" capability." , currentUser.getUserName ( ) ) ) ; } }

Target:
private void checkPermission ( ) throws com.google.gerrit.common.errors.PermissionDeniedException { if ( ! ( currentUser.getCapabilities ( ) . canAccessDatabase ( ) ) ) { throw new com.google.gerrit.common.errors.PermissionDeniedException ( java.lang.String.format ( "%s does not have \"Access Database\" capability." , currentUser.getUserName ( ) ) ) ; } }
Source:
public void logout ( com.gitblit.models.UserModel user ) { }

Target:
public boolean updateUserModels ( java.util.Collection < com.gitblit.models.UserModel > models ) { return false ; }
Source:
public void setParents ( java.util.List < org.eclipse.jgit.revwalk.RevCommit > parents ) throws java.lang.Exception { commitBuilder.noParents ( ) ; for ( org.eclipse.jgit.revwalk.RevCommit p : parents ) { commitBuilder.parent ( p ) ; } }

Target:
public com.google.gerrit.acceptance.PushOneCommit setParents ( java.util.List < org.eclipse.jgit.revwalk.RevCommit > parents ) throws java.lang.Exception { commitBuilder.noParents ( ) ; for ( org.eclipse.jgit.revwalk.RevCommit p : parents ) { commitBuilder.parent ( p ) ; } return this ; }
Source:
public static com.google.gerrit.index.query.Predicate < com.google.gerrit.server.group.InternalGroup > member ( com.google.gerrit.reviewdb.client.Account.Id memberId ) { return new com.google.gerrit.server.query.group.GroupPredicates.GroupPredicate ( com.google.gerrit.server.index.group.GroupField.MEMBERS , memberId.toString ( ) ) ; }

Target:
public static com.google.gerrit.index.query.Predicate < com.google.gerrit.server.group.InternalGroup > member ( com.google.gerrit.reviewdb.client.Account.Id memberId ) { return new com.google.gerrit.server.query.group.GroupPredicates.GroupPredicate ( com.google.gerrit.server.index.group.GroupField.MEMBER , memberId.toString ( ) ) ; }
Source:
public com.google.gerrit.server.patch.PatchListEntry get ( final java.lang.String fileName ) { final int index = search ( fileName ) ; return 0 <= index ? patches [ index ] : com.google.gerrit.server.patch.PatchListEntry.empty ( fileName ) ; }

Target:
public com.google.gerrit.server.patch.PatchListEntry get ( java.lang.String fileName ) throws com.google.gerrit.server.project.NoSuchFileException { int index = search ( fileName ) ; if ( 0 <= index ) { return patches [ index ] ; } throw new com.google.gerrit.server.project.NoSuchFileException ( fileName ) ; }
Source:
private static org.apache.lucene.index.Term idTerm ( com.google.gerrit.reviewdb.client.AccountGroup group ) { return com.google.gerrit.lucene.LuceneGroupIndex.idTerm ( group.getGroupUUID ( ) ) ; }

Target:
private static org.apache.lucene.index.Term idTerm ( com.google.gerrit.server.group.InternalGroup group ) { return com.google.gerrit.lucene.LuceneGroupIndex.idTerm ( group.getGroupUUID ( ) ) ; }
Source:
public void testLinkify_SimpleHttp1 ( ) { final com.google.gwtexpui.safehtml.client.SafeHtml o = com.google.gwtexpui.safehtml.client.SafeHtml_WikifyTest.html ( "A http://go.here/ B" ) ; final com.google.gwtexpui.safehtml.client.SafeHtml n = o.wikify ( ) ; assertNotSame ( o , n ) ; assertEquals ( "<p>A <a href=\"http://go.here/\" target=\"_blank\">http://go.here/</a> B</p>" , n.asString ( ) ) ; }

Target:
public void testLinkify_SimpleHttp1 ( ) { final com.google.gwtexpui.safehtml.client.SafeHtml o = com.google.gwtexpui.safehtml.client.SafeHtml_WikifyTest.html ( "A http://go.here/ B" ) ; final com.google.gwtexpui.safehtml.client.SafeHtml n = o.wikify ( ) ; org.junit.Assert.assertNotSame ( o , n ) ; org.junit.Assert.assertEquals ( "<p>A <a href=\"http://go.here/\" target=\"_blank\">http://go.here/</a> B</p>" , n.asString ( ) ) ; }
Source:
public static com.google.gerrit.server.account.AuthRequest forExternalUser ( java.lang.String username ) { com.google.gerrit.reviewdb.client.AccountExternalId.Key i = new com.google.gerrit.reviewdb.client.AccountExternalId.Key ( com.google.gerrit.reviewdb.client.AccountExternalId.SCHEME_EXTERNAL , username ) ; com.google.gerrit.server.account.AuthRequest r = new com.google.gerrit.server.account.AuthRequest ( i.get ( ) ) ; r.setUserName ( username ) ; return r ; }

Target:
public static com.google.gerrit.server.account.AuthRequest forExternalUser ( java.lang.String username ) { com.google.gerrit.server.account.AuthRequest r = new com.google.gerrit.server.account.AuthRequest ( ExternalId.Key.create ( com.google.gerrit.server.account.ExternalId.SCHEME_EXTERNAL , username ) ) ; r.setUserName ( username ) ; return r ; }
Source:
void onDeleteEdit ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.EditActions.deleteEdit ( changeId ) ; }

Target:
void onDeleteEdit ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( com.google.gwt.user.client.Window.confirm ( Resources.C.deleteChangeEdit ( ) ) ) { com.google.gerrit.client.change.EditActions.deleteEdit ( changeId ) ; } }
Source:
public com.google.gerrit.reviewdb.client.Change update ( com.google.gerrit.reviewdb.client.Change change ) { if ( change.getStatus ( ) . isOpen ( ) ) { change.nextPatchSetId ( ) ; change.setLastSha1MergeTested ( null ) ; return change ; } else { return null ; } }

Target:
public com.google.gerrit.reviewdb.client.Change update ( com.google.gerrit.reviewdb.client.Change change ) { if ( change.getStatus ( ) . isClosed ( ) ) { return null ; } change.updateNumberOfPatchSets ( newPatchSet.getPatchSetId ( ) ) ; return change ; }
Source:
public void onSuccess ( com.google.gwtjsonrpc.common.VoidResult result ) { com.google.gerrit.client.Gerrit.setAccountDiffPreference ( get ( ) ) ; cb.onSuccess ( result ) ; }

Target:
public void onSuccess ( com.google.gwtjsonrpc.common.VoidResult result ) { com.google.gerrit.client.Gerrit.setDiffPreferences ( get ( ) ) ; cb.onSuccess ( result ) ; }
Source:
public void parse ( ) { generalPreferences = parse ( null ) ; }

Target:
public void parse ( ) { generalPreferences = parseGeneralPreferences ( null ) ; diffPreferences = parseDiffPreferences ( null ) ; }
Source:
public com.google.gerrit.extensions.common.WebLinkInfo getFileWebLink ( java.lang.String projectName , java.lang.String revision , java.lang.String fileName ) { return new com.google.gerrit.extensions.common.WebLinkInfo ( name , null , java.lang.String.format ( "%s/%s/+/%s/%s" , baseUrl , projectName , revision , fileName ) , Target.BLANK ) ; }

Target:
public com.google.gerrit.extensions.common.WebLinkInfo getFileWebLink ( java.lang.String projectName , java.lang.String revision , java.lang.String fileName ) { return new com.google.gerrit.extensions.common.WebLinkInfo ( name , null , java.lang.String.format ( "%s/%s/+/%s/%s" , baseUrl , projectName , revision , fileName ) , target ) ; }
Source:
public void createBranch_Forbidden ( ) throws java.lang.Exception { setApiUser ( user ) ; assertCreateFails ( com.google.gerrit.extensions.restapi.AuthException.class ) ; }

Target:
public void createBranch_Forbidden ( ) throws java.lang.Exception { setApiUser ( user ) ; assertCreateFails ( com.google.gerrit.extensions.restapi.AuthException.class , "create not permitted for refs/heads/test" ) ; }
Source:
private static java.lang.String queryOutgoing ( java.lang.String who ) { return "is:open owner:" + who ; }

Target:
private static java.lang.String queryOutgoing ( java.lang.String who ) { return "is:open -is:wip owner:" + who ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { com.google.gerrit.client.Gerrit.deleteSessionCookie ( ) ; hide ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { buttonClicked = true ; com.google.gerrit.client.Gerrit.deleteSessionCookie ( ) ; hide ( ) ; }
Source:
public void contextDestroyed ( final javax.servlet.ServletContextEvent event ) { com.google.gerrit.server.Lifecycle.stop ( dbInjector , sysInjector , sshInjector , webInjector ) ; super . contextDestroyed ( event ) ; }

Target:
public void contextDestroyed ( final javax.servlet.ServletContextEvent event ) { if ( ( manager ) != null ) { manager.stop ( ) ; manager = null ; } super . contextDestroyed ( event ) ; }
Source:
public void reviewersByEmailAreServedFromIndex ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.enabled ( ) ) . isTrue ( ) ; com.google.gerrit.extensions.common.AccountInfo acc = new com.google.gerrit.extensions.common.AccountInfo ( "Foo Bar" , "foo.bar@gerritcodereview.com" ) ; for ( com.google.gerrit.extensions.client.ReviewerState state : com.google.common.collect.ImmutableList.of ( ReviewerState.CC , ReviewerState.REVIEWER ) ) { com.google.gerrit.acceptance.PushOneCommit.Result r = createChange ( ) ; com.google.gerrit.extensions.api.changes.AddReviewerInput input = new com.google.gerrit.extensions.api.changes.AddReviewerInput ( ) ; input.reviewer = com.google.gerrit.acceptance.rest.change.ChangeReviewersByEmailIT.toRfcAddressString ( acc ) ; input.state = state ; gApi.changes ( ) . id ( r.getChangeId ( ) ) . addReviewer ( input ) ; notesMigration.setFailOnLoadForTest ( true ) ; try { com.google.gerrit.extensions.common.ChangeInfo info = com.google.common.collect.Iterables.getOnlyElement ( gApi.changes ( ) . query ( r.getChangeId ( ) ) . withOption ( ListChangesOption.DETAILED_LABELS ) . get ( ) ) ; com.google.common.truth.Truth.assertThat ( info.reviewers ) . isEqualTo ( com.google.common.collect.ImmutableMap.of ( state , com.google.common.collect.ImmutableList.of ( acc ) ) ) ; } finally { notesMigration.setFailOnLoadForTest ( false ) ; } } }

Target:
public void reviewersByEmailAreServedFromIndex ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isTrue ( ) ; com.google.gerrit.extensions.common.AccountInfo acc = new com.google.gerrit.extensions.common.AccountInfo ( "Foo Bar" , "foo.bar@gerritcodereview.com" ) ; for ( com.google.gerrit.extensions.client.ReviewerState state : com.google.common.collect.ImmutableList.of ( ReviewerState.CC , ReviewerState.REVIEWER ) ) { com.google.gerrit.acceptance.PushOneCommit.Result r = createChange ( ) ; com.google.gerrit.extensions.api.changes.AddReviewerInput input = new com.google.gerrit.extensions.api.changes.AddReviewerInput ( ) ; input.reviewer = com.google.gerrit.acceptance.rest.change.ChangeReviewersByEmailIT.toRfcAddressString ( acc ) ; input.state = state ; gApi.changes ( ) . id ( r.getChangeId ( ) ) . addReviewer ( input ) ; notesMigration.setFailOnLoadForTest ( true ) ; try { com.google.gerrit.extensions.common.ChangeInfo info = com.google.common.collect.Iterables.getOnlyElement ( gApi.changes ( ) . query ( r.getChangeId ( ) ) . withOption ( ListChangesOption.DETAILED_LABELS ) . get ( ) ) ; com.google.common.truth.Truth.assertThat ( info.reviewers ) . isEqualTo ( com.google.common.collect.ImmutableMap.of ( state , com.google.common.collect.ImmutableList.of ( acc ) ) ) ; } finally { notesMigration.setFailOnLoadForTest ( false ) ; } } }
Source:
public void run ( ) { restClient.send ( event ) ; }

Target:
public void run ( ) { eventForwarder.send ( event ) ; }
Source:
private void assertCanAccess ( com.google.gerrit.server.project.ProjectControl u ) { boolean access = u.asForProject ( ) . testOrFalse ( ProjectPermission.ACCESS ) ; com.google.common.truth.Truth.assertThat ( access ) . named ( "can access" ) . isTrue ( ) ; }

Target:
private void assertCannotUpdate ( java.lang.String ref , com.google.gerrit.server.project.ProjectControl u ) { boolean update = u.asForProject ( ) . ref ( ref ) . testOrFalse ( RefPermission.UPDATE ) ; com.google.common.truth.Truth.assertThat ( update ) . named ( ( "cannot update " + ref ) ) . isFalse ( ) ; }
Source:
public boolean canFlushCaches ( ) { return ( canPerform ( GlobalCapability.FLUSH_CACHES ) ) || ( canAdministrateServer ( ) ) ; }

Target:
public boolean canMaintainServer ( ) { return ( canPerform ( GlobalCapability.MAINTAIN_SERVER ) ) || ( canAdministrateServer ( ) ) ; }
Source:
public com.google.gerrit.server.CurrentUser getCurrentUser ( ) { return requestUser ; }

Target:
public com.google.gerrit.server.CurrentUser getUser ( ) { return requestUser ; }
Source:
protected io.searchbox.core.Bulk.Builder addActions ( io.searchbox.core.Bulk.Builder builder , com.google.gerrit.reviewdb.client.Change.Id c ) { return builder.addAction ( delete ( OPEN_CHANGES , c ) ) . addAction ( delete ( OPEN_CHANGES , c ) ) ; }

Target:
protected java.lang.String getMappings ( ) { return gson.toJson ( com.google.common.collect.ImmutableMap.of ( "mappings" , mapping ) ) ; }
Source:
public static com.google.gerrit.server.ParamertizedString asis ( final java.lang.String constant ) { return new com.google.gerrit.server.ParamertizedString ( new com.google.gerrit.server.ParamertizedString.Constant ( constant ) ) ; }

Target:
public static com.google.gerrit.common.data.ParamertizedString asis ( final java.lang.String constant ) { return new com.google.gerrit.common.data.ParamertizedString ( new com.google.gerrit.common.data.ParamertizedString.Constant ( constant ) ) ; }
Source:
public boolean allRefsAreVisible ( java.util.Set < java.lang.String > ignore ) { return ( ( user ) instanceof com.google.gerrit.server.InternalUser ) || ( canPerformOnAllRefs ( Permission.READ , ignore ) ) ; }

Target:
public boolean allRefsAreVisible ( java.util.Set < java.lang.String > ignore ) { return ( user.isInternalUser ( ) ) || ( canPerformOnAllRefs ( Permission.READ , ignore ) ) ; }
Source:
public com.google.gwtorm.server.ResultSet < com.google.gerrit.reviewdb.client.PatchLineComment > publishedByPatchSet ( com.google.gerrit.reviewdb.client.PatchSet.Id patchset ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.server.schema.DisabledChangesReviewDbWrapper.MSG ) ; }

Target:
public com.google.gwtorm.server.ResultSet < com.google.gerrit.reviewdb.client.PatchLineComment > publishedByPatchSet ( com.google.gerrit.reviewdb.client.PatchSet.Id patchset ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.reviewdb.server.DisabledChangesReviewDbWrapper.MSG ) ; }
Source:
com.google.gwtexpui.globalkey.client.KeyCommandSet getKeysComment ( ) { return keysComment ; }

Target:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo.CommitInfo info ) { parents = info.parents ( ) . length ( ) ; }
Source:
public synchronized void evictAllNoReindex ( ) { byId.clear ( ) ; }

Target:
public synchronized void evictAll ( ) { byId.clear ( ) ; }
Source:
public static void unsetForwardedEvent ( ) { com.ericsson.gerrit.plugins.highavailability.forwarder.Context.FORWARDED_EVENT.remove ( ) ; }

Target:
public static void unsetForwardedEvent ( ) { com.ericsson.gerrit.plugins.highavailability.forwarder.Context.forwardedEvent.remove ( ) ; }
Source:
public void replace ( com.google.gerrit.server.project.ProjectData projectState ) throws java.io.IOException { try { replace ( com.google.gerrit.lucene.LuceneProjectIndex.idTerm ( projectState ) , toDocument ( projectState ) ) . get ( ) ; } catch ( java.util.concurrent.ExecutionException | java.lang.InterruptedException e ) { throw new java.io.IOException ( e ) ; } }

Target:
public void replace ( com.google.gerrit.index.project.ProjectData projectState ) throws java.io.IOException { try { replace ( com.google.gerrit.lucene.LuceneProjectIndex.idTerm ( projectState ) , toDocument ( projectState ) ) . get ( ) ; } catch ( java.util.concurrent.ExecutionException | java.lang.InterruptedException e ) { throw new java.io.IOException ( e ) ; } }
Source:
com.google.gerrit.server.CurrentUser getCurrentUser ( com.google.gerrit.server.IdentifiedUser.GenericFactory userFactory ) { return userFactory.create ( ownerId ) ; }

Target:
com.google.gerrit.server.CurrentUser getUser ( com.google.gerrit.server.IdentifiedUser.GenericFactory userFactory ) { return userFactory.create ( ownerId ) ; }
Source:
public com.google.template.soy.data.SanitizedContent toSoy ( ) { finishActiveTag ( ) ; return com.google.template.soy.data.UnsafeSanitizedContentOrdainer.ordainAsSafe ( htmlBuf.toString ( ) , ContentKind.HTML ) ; }

Target:
public com.google.gitiles.doc.html.HtmlBuilder space ( ) { finishActiveTag ( ) ; try { htmlBuf.append ( ' ' ) ; } catch ( java.io.IOException e ) { throw new com.google.gitiles.doc.RuntimeIOException ( e ) ; } return this ; }
Source:
void createGroup ( java.lang.String newName , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.reviewdb.client.AccountGroup.Id > callback ) ;

Target:
void renameGroup ( com.google.gerrit.reviewdb.client.AccountGroup.Id groupId , java.lang.String newName , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.GroupDetail > callback ) ;
Source:
private java.lang.String getUsername ( ) { final java.lang.String user = gerritConfig.getString ( com.googlesource.gerrit.plugins.hooks.bz.BugzillaItsFacade.ITS_NAME_BUGZILLA , null , com.googlesource.gerrit.plugins.hooks.bz.BugzillaItsFacade.GERRIT_CONFIG_USERNAME ) ; return user ; }

Target:
private java.lang.String getUsername ( ) { final java.lang.String user = gerritConfig.getString ( pluginName , null , com.googlesource.gerrit.plugins.hooks.bz.BugzillaItsFacade.GERRIT_CONFIG_USERNAME ) ; return user ; }
Source:
public boolean containsComment ( com.google.gerrit.reviewdb.client.PatchLineComment c ) throws com.google.gwtorm.server.OrmException { if ( containsCommentPublished ( c ) ) { return true ; } loadDraftComments ( c.getAuthor ( ) ) ; return draftCommentNotes.containsComment ( c ) ; }

Target:
public boolean containsComment ( com.google.gerrit.reviewdb.client.Comment c ) throws com.google.gwtorm.server.OrmException { if ( containsCommentPublished ( c ) ) { return true ; } loadDraftComments ( c.author.getId ( ) ) ; return draftCommentNotes.containsComment ( c ) ; }
Source:
public void onSuccess ( com.googlesource.gerrit.plugins.serviceuser.client.MyNativeString newPassword ) { label.setText ( newPassword.asString ( ) ) ; label.setVisible ( true ) ; delete.setVisible ( true ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.rpc.NativeString newPassword ) { label.setText ( newPassword.asString ( ) ) ; label.setVisible ( true ) ; delete.setVisible ( true ) ; }
Source:
public com.google.gerrit.reviewdb.client.Change change ( ) throws com.google.gwtorm.server.OrmException { if ( ( change ) == null ) { change = db.changes ( ) . get ( legacyId ) ; } return change ; }

Target:
public com.google.gerrit.reviewdb.client.Change change ( ) throws com.google.gwtorm.server.OrmException { if ( ( change ) == null ) { reloadChange ( ) ; } return change ; }
Source:
private com.google.gerrit.extensions.restapi.Response < com.google.gerrit.server.change.ChangeJson.ChangeInfo > cache ( com.google.gerrit.server.change.ChangeJson.ChangeInfo res ) { return com.google.gerrit.extensions.restapi.Response.ok ( res ) . caching ( com.google.gerrit.extensions.restapi.CacheControl.PRIVATE ( 0 , java.util.concurrent.TimeUnit.SECONDS ) . setMustRevalidate ( ) ) ; }

Target:
private com.google.gerrit.extensions.restapi.Response < com.google.gerrit.extensions.common.ChangeInfo > cache ( com.google.gerrit.extensions.common.ChangeInfo res ) { return com.google.gerrit.extensions.restapi.Response.ok ( res ) . caching ( com.google.gerrit.extensions.restapi.CacheControl.PRIVATE ( 0 , java.util.concurrent.TimeUnit.SECONDS ) . setMustRevalidate ( ) ) ; }
Source:
protected final boolean in ( int line , org.eclipse.jgit.diff.Edit e ) { return ( ( getBegin ( e ) ) <= line ) && ( line < ( getEnd ( e ) ) ) ; }

Target:
abstract void incSelf ( com.google.gerrit.prettify.common.EditList.Hunk hunk ) ;
Source:
protected static com.google.gerrit.pgm.util.Die abort ( ) { return new com.google.gerrit.pgm.util.Die ( "aborted by user" ) ; }

Target:
protected static com.google.gerrit.common.Die abort ( ) { return new com.google.gerrit.common.Die ( "aborted by user" ) ; }
Source:
protected java.io.PrintWriter startRenderText ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res , java.lang.String contentType ) throws java.io.IOException { setApiHeaders ( res , contentType ) ; return res.getWriter ( ) ; }

Target:
protected java.io.Writer startRenderText ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res , java.lang.String contentType ) throws java.io.IOException { setApiHeaders ( res , contentType ) ; return getWriter ( res ) ; }
Source:
public java.lang.String toString ( ) { return ( "Stream Events (" + ( currentUser.getAccount ( ) . getUserName ( ) ) ) + ")" ; }

Target:
public java.lang.String toString ( ) { return ( "Stream Events (" + ( currentUser.state ( ) . getUserName ( ) ) ) + ")" ; }
Source:
private static java.lang.String fileName ( org.eclipse.jgit.revwalk.RevWalk rw , org.eclipse.jgit.revwalk.RevCommit commit ) throws java.io.IOException { org.eclipse.jgit.lib.AbbreviatedObjectId id = rw.getObjectReader ( ) . abbreviate ( commit , 8 ) ; return ( id.name ( ) ) + ".diff" ; }

Target:
private static java.lang.String fileName ( org.eclipse.jgit.revwalk.RevWalk rw , org.eclipse.jgit.revwalk.RevCommit commit ) throws java.io.IOException { org.eclipse.jgit.lib.AbbreviatedObjectId id = rw.getObjectReader ( ) . abbreviate ( commit , 7 ) ; return ( id.name ( ) ) + ".diff" ; }
Source:
public java.lang.Void call ( ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.git.UpdateException , com.google.gwtorm.server.OrmException , java.io.IOException , org.eclipse.jgit.errors.RepositoryNotFoundException { try ( com.google.gerrit.server.git.RequestState state = requestState ( caller ) ) { insertChange ( state ) ; } synchronizedIncrement ( newProgress ) ; return null ; }

Target:
public java.lang.Void call ( ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.git.UpdateException , com.google.gwtorm.server.OrmException , java.io.IOException , org.eclipse.jgit.errors.RepositoryNotFoundException { try ( com.google.gerrit.server.git.ReceiveCommits.RequestState state = requestState ( caller ) ) { insertChange ( state ) ; } com.google.gerrit.server.git.ReceiveCommits.synchronizedIncrement ( newProgress ) ; return null ; }
Source:
public int getDelimiterUse ( int openerCount , int closerCount ) { return 1 ; }

Target:
public int getDelimiterUse ( org.commonmark.parser.delimiter.DelimiterRun opener , org.commonmark.parser.delimiter.DelimiterRun closer ) { return 1 ; }
Source:
public ApprovalCategoryValue.Id getApprovalCategoryValueId ( short value ) { return new com.google.gerrit.reviewdb.client.ApprovalCategoryValue.Id ( getApprovalCategoryId ( ) , value ) ; }

Target:
public com.google.gerrit.reviewdb.client.PatchSetApproval.LabelId getLabelId ( ) { return new com.google.gerrit.reviewdb.client.PatchSetApproval.LabelId ( ( ( id ) != null ? id : name ) ) ; }
Source:
protected com.google.gerrit.client.account.AgreementPanel create ( ) { return new com.google.gerrit.client.account.AgreementPanel ( ) ; }

Target:
protected com.google.gerrit.client.account.AgreementPanel createWidget ( ) { return new com.google.gerrit.client.account.AgreementPanel ( ) ; }
Source:
public void onEvent ( com.google.gerrit.server.events.Event event ) { publisher.onEvent ( event ) ; }

Target:
public void onEvent ( com.google.gerrit.server.events.Event event ) { publisher.getEventListener ( ) . onEvent ( event ) ; }
Source:
public com.google.gerrit.server.CurrentUser getCurrentUser ( ) { BRANCH ( 7.0F ) ; }

Target:
public com.google.gerrit.server.CurrentUser getUser ( ) { return identifiedUserFactory.create ( change.getOwner ( ) ) ; }
Source:
static com.google.gerrit.client.changes.ChangeApi.Input create ( ) { return ( ( com.google.gerrit.client.changes.ChangeApi.Input ) ( createObject ( ) ) ) ; }

Target:
static com.google.gerrit.client.changes.ChangeApi.MessageInput create ( ) { return ( ( com.google.gerrit.client.changes.ChangeApi.MessageInput ) ( createObject ( ) ) ) ; }
Source:
private static java.util.List < com.google.gerrit.reviewdb.client.PatchLineComment > sort ( java.util.List < com.google.gerrit.reviewdb.client.PatchLineComment > comments ) { java.util.Collections.sort ( comments , ChangeNotes.PLC_ORDER ) ; return comments ; }

Target:
private static java.util.List < com.google.gerrit.reviewdb.client.PatchLineComment > sort ( java.util.List < com.google.gerrit.reviewdb.client.PatchLineComment > comments ) { java.util.Collections.sort ( comments , com.google.gerrit.server.PatchLineCommentsUtil.PLC_ORDER ) ; return comments ; }
Source:
public java.lang.String call ( ) throws java.lang.Exception { if ( check.equals ( Check.ACCESS ) ) return healthCheckAccess ( ) ; return healthCheckSysinfo ( ) ; }

Target:
public java.lang.String healthCheck ( final com.googlesource.gerrit.plugins.its.jira.Check check ) throws java.io.IOException { return execute ( ( ) -> { if ( check.equals ( Check.ACCESS ) ) return healthCheckAccess ( ) ; return healthCheckSysinfo ( ) ; } ) ; }
Source:
private static boolean isValidRevision ( java.lang.String revision ) { return ( ( ( revision.indexOf ( ':' ) ) < 0 ) && ( ( revision.indexOf ( "^{" ) ) < 0 ) ) && ( ( revision.indexOf ( '@' ) ) < 0 ) ; }

Target:
private static boolean isValidRevision ( java.lang.String revision ) { return ( ( ! ( revision.contains ( ":" ) ) ) && ( ! ( revision.contains ( "^{" ) ) ) ) && ( ! ( revision.contains ( "@" ) ) ) ; }
Source:
public java.lang.String getDisplayString ( ) { return com.google.gerrit.client.FormatUtil.nameEmail ( com.google.gerrit.client.FormatUtil.asInfo ( info ) ) ; }

Target:
public java.lang.String getReplacementString ( ) { return com.google.gerrit.client.FormatUtil.nameEmail ( info ) ; }
Source:
public void addPatchSets ( com.google.gerrit.server.events.ChangeAttribute a , java.util.Collection < com.google.gerrit.reviewdb.client.PatchSet > ps , com.google.gerrit.common.data.LabelTypes labelTypes ) { addPatchSets ( a , ps , null , false , null , labelTypes ) ; }

Target:
public void addPatchSets ( com.google.gerrit.server.data.ChangeAttribute a , java.util.Collection < com.google.gerrit.reviewdb.client.PatchSet > ps , com.google.gerrit.common.data.LabelTypes labelTypes ) { addPatchSets ( a , ps , null , false , null , labelTypes ) ; }
Source:
public void execute ( java.lang.Runnable command ) { com.google.common.truth.Truth.assertThat ( command.toString ( ) ) . isEqualTo ( java.lang.String.format ( "[%s] Send event '%s' to target instance" , com.ericsson.gerrit.plugins.highavailability.event.EventHandlerTest.PLUGIN_NAME , null ) ) ; command.run ( ) ; }

Target:
public void tesEventTaskToString ( ) throws java.lang.Exception { com.google.gerrit.server.events.Event event = new com.google.gerrit.server.events.RefUpdatedEvent ( ) ; com.ericsson.gerrit.plugins.highavailability.event.EventHandler.EventTask task = eventHandler.new com.ericsson.gerrit.plugins.highavailability.event.EventHandler.EventTask ( event ) ; com.google.common.truth.Truth.assertThat ( task.toString ( ) ) . isEqualTo ( java.lang.String.format ( "[%s] Send event '%s' to target instance" , com.ericsson.gerrit.plugins.highavailability.event.EventHandlerTest.PLUGIN_NAME , event.type ) ) ; }
Source:
public final native com.google.gerrit.client.diff.DisplaySide side ( ) ;

Target:
public final com.google.gerrit.client.diff.DisplaySide side ( ) { return extras ( ) . side ( ) ; }
Source:
public void addChild ( final com.google.gerrit.sshd.commands.ProjectNode child ) { children.add ( child ) ; }

Target:
public void addChild ( final com.google.gerrit.server.project.ProjectNode child ) { children.add ( child ) ; }
Source:
public void projectDetail ( final com.google.gerrit.reviewdb.client.Project.NameKey projectName , final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ProjectDetail > callback ) { projectDetailFactory.create ( projectName ) . to ( callback ) ; }

Target:
public void changeProjectSettings ( final com.google.gerrit.reviewdb.client.Project update , final com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ProjectDetail > callback ) { changeProjectSettingsFactory.create ( update ) . to ( callback ) ; }
Source:
public void remove ( ) { ref.compareAndSet ( item , null ) ; }

Target:
public void remove ( ) { ref.compareAndSet ( item , defaultItem ) ; }
Source:
public com.google.gerrit.server.query.Predicate < T > getChild ( int i ) { return getChildren ( ) . get ( i ) ; }

Target:
public com.google.gerrit.index.query.Predicate < T > getChild ( int i ) { return getChildren ( ) . get ( i ) ; }
Source:
public static com.google.gerrit.server.patch.PatchListKey againstDefaultBase ( org.eclipse.jgit.lib.AnyObjectId newId , com.google.gerrit.extensions.client.DiffPreferencesInfo.Whitespace ws ) { return new com.google.gerrit.server.patch.PatchListKey ( null , newId , ws , com.google.gerrit.server.patch.PatchListKey.Algorithm.OPTIMIZED_DIFF ) ; }

Target:
public static com.google.gerrit.server.diff.PatchListKey againstDefaultBase ( org.eclipse.jgit.lib.AnyObjectId newId , com.google.gerrit.extensions.client.DiffPreferencesInfo.Whitespace ws ) { return new com.google.gerrit.server.diff.PatchListKey ( null , newId , ws , com.google.gerrit.server.diff.PatchListKey.Algorithm.OPTIMIZED_DIFF ) ; }
Source:
public boolean getDeny ( ) { return ( action ) == ( com.google.gerrit.common.data.PermissionRule.Action.DENY ) ; }

Target:
public boolean isDeny ( ) { return ( action ) == ( com.google.gerrit.common.data.PermissionRule.Action.DENY ) ; }
Source:
private void init ( net.codemirror.lib.LineCharacter anchor ) { bubble = new com.google.gerrit.client.diff.InsertCommentBubble ( commentManager , cm ) ; add ( bubble ) ; cm.addWidget ( anchor , bubble.getElement ( ) , false ) ; }

Target:
private void init ( net.codemirror.lib.Pos anchor ) { bubble = new com.google.gerrit.client.diff.InsertCommentBubble ( commentManager , cm ) ; add ( bubble ) ; cm.addWidget ( anchor , bubble.getElement ( ) ) ; }
Source:
com.google.gerrit.reviewdb.client.PatchSetApproval getSubmitter ( com.google.gerrit.server.git.CodeReviewCommit c ) { return approvalsUtil.getSubmitter ( db.get ( ) , c.notes ( ) , c.patchsetId ) ; }

Target:
public com.google.gerrit.reviewdb.client.PatchSetApproval getSubmitter ( com.google.gerrit.server.git.CodeReviewCommit c ) { return approvalsUtil.getSubmitter ( db.get ( ) , c.notes ( ) , c.getPatchsetId ( ) ) ; }
Source:
public com.google.gerrit.reviewdb.Patch.PatchType getPatchType ( ) { return patchType ; }

Target:
public com.google.gerrit.reviewdb.Patch.PatchType getPatchType ( ) { if ( ( patchType ) == null ) { patchType = com.google.gerrit.reviewdb.Patch.PatchType.forCode ( patchTypeCode ) ; } return patchType ; }
Source:
private java.lang.String newChange ( org.eclipse.jgit.api.Git git , org.eclipse.jgit.lib.PersonIdent ident ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , ident , PushOneCommit.SUBJECT , com.google.gerrit.acceptance.edit.ChangeEditIT.FILE_NAME , com.google.gerrit.acceptance.edit.ChangeEditIT.CONTENT_OLD ) ; return push.to ( git , "refs/for/master" ) . getChangeId ( ) ; }

Target:
private java.lang.String newChange2 ( org.eclipse.jgit.api.Git git , org.eclipse.jgit.lib.PersonIdent ident ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , ident , PushOneCommit.SUBJECT , com.google.gerrit.acceptance.edit.ChangeEditIT.FILE_NAME , new java.lang.String ( com.google.gerrit.acceptance.edit.ChangeEditIT.CONTENT_OLD ) ) ; return push.rm ( git , "refs/for/master" ) . getChangeId ( ) ; }
Source:
public java.lang.String apply ( com.google.gerrit.extensions.common.GroupInfo in ) { return in.name ; }

Target:
private void assertNoMembers ( java.lang.String group ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( gApi.groups ( ) . id ( group ) . members ( ) . isEmpty ( ) ) ; }
Source:
public static com.google.gerrit.common.data.PermissionRule allow ( com.google.gerrit.server.git.ProjectConfig project , java.lang.String permissionName , com.google.gerrit.reviewdb.client.AccountGroup.UUID group , java.lang.String ref ) { return com.google.gerrit.server.project.testing.Util.grant ( project , permissionName , com.google.gerrit.server.project.testing.Util.newRule ( project , group ) , ref ) ; }

Target:
public static com.google.gerrit.common.data.PermissionRule allow ( com.google.gerrit.server.project.ProjectConfig project , java.lang.String permissionName , com.google.gerrit.reviewdb.client.AccountGroup.UUID group , java.lang.String ref ) { return com.google.gerrit.server.project.testing.Util.grant ( project , permissionName , com.google.gerrit.server.project.testing.Util.newRule ( project , group ) , ref ) ; }
Source:
public void onSuccess ( final com.google.gerrit.client.patches.CommentDetail result ) { if ( ( rpcSequence ) == rpcseq ) { comments = result ; onResult ( ) ; } }

Target:
public void onSuccess ( final com.google.gerrit.client.data.PatchScript result ) { if ( ( rpcSequence ) == rpcseq ) { script = result ; onResult ( ) ; } }
Source:
public com.google.gerrit.common.data.Capable canUpload ( ) { com.google.gerrit.common.data.Capable result = projectControl.canPushToAtLeastOneRef ( ) ; if ( result != ( com.google.gerrit.common.data.Capable.OK ) ) { return result ; } return com.google.gerrit.server.util.MagicBranch.checkMagicBranchRefs ( repo , project ) ; }

Target:
public com.google.gerrit.common.data.Capable canUpload ( ) { com.google.gerrit.common.data.Capable result = projectControl.canPushToAtLeastOneRef ( ) ; if ( result != ( com.google.gerrit.common.data.Capable.OK ) ) { return result ; } if ( receiveConfig.checkMagicRefs ) { result = com.google.gerrit.server.util.MagicBranch.checkMagicBranchRefs ( repo , project ) ; } return result ; }
Source:
static void fireOnCallStart ( ) { for ( final com.google.gwtjsonrpc.client.RpcStatusListener l : com.google.gwtjsonrpc.client.JsonUtil.listeners ) { l.onCallStart ( ) ; } }

Target:
static void fireEvent ( com.google.gwtjsonrpc.client.BaseRpcEvent < ? > event ) { com.google.gwtjsonrpc.client.JsonUtil.globalHandlers.fireEvent ( event ) ; event.call = null ; }
Source:
public void onShowView ( ) { if ( ( windowTitle ) != null ) { com.google.gerrit.client.Gerrit.setWindowTitle ( this , windowTitle ) ; } registerKeys ( ) ; }

Target:
public void onShowView ( ) { if ( ( windowTitle ) != null ) { com.google.gerrit.client.Gerrit.setWindowTitle ( this , windowTitle ) ; } com.google.gerrit.client.Gerrit.updateMenus ( this ) ; registerKeys ( ) ; }
Source:
public boolean equals ( java.lang.Object other ) { return ( other instanceof com.google.gerrit.server.permissions.LabelPermission.WithValue ) && ( label.equals ( ( ( com.google.gerrit.server.permissions.LabelPermission.WithValue ) ( other ) ) . label ) ) ; }

Target:
public java.lang.String describeForException ( ) { if ( ( forUser ) == ( com.google.gerrit.server.permissions.LabelPermission.ForUser.ON_BEHALF_OF ) ) { return "labelAs " + ( label.formatWithEquals ( ) ) ; } return "label " + ( label.formatWithEquals ( ) ) ; }
Source:
private void writeObject ( java.io.ObjectOutputStream out ) throws java.io.IOException { org.eclipse.jgit.lib.ObjectIdSerializer.write ( out , prior ) ; org.eclipse.jgit.lib.ObjectIdSerializer.write ( out , next ) ; out.writeUTF ( strategyName ) ; }

Target:
private void writeObject ( java.io.ObjectOutputStream out ) throws java.io.IOException { org.eclipse.jgit.lib.ObjectIdSerialization.writeNotNull ( out , prior ) ; org.eclipse.jgit.lib.ObjectIdSerialization.writeNotNull ( out , next ) ; out.writeUTF ( strategyName ) ; }
Source:
private long getFirstTime ( ) { return get ( 0 ) . when.getTime ( ) ; }

Target:
boolean isEmpty ( ) { return list.isEmpty ( ) ; }
Source:
protected void configureCommands ( ) { command ( com.amd.gerrit.plugins.manifestsubscription.ShowSubscription.class ) ; command ( com.amd.gerrit.plugins.manifestsubscription.BranchManifest.class ) ; command ( com.amd.gerrit.plugins.manifestsubscription.TagManifest.class ) ; }

Target:
protected void configureCommands ( ) { command ( com.amd.gerrit.plugins.manifestsubscription.ShowSubscriptionCommand.class ) ; command ( com.amd.gerrit.plugins.manifestsubscription.BranchManifestCommand.class ) ; command ( com.amd.gerrit.plugins.manifestsubscription.TagManifestCommand.class ) ; }
Source:
java.util.List < com.google.gerrit.extensions.common.ChangeInfo > submittedTogether ( ) throws com.google.gerrit.extensions.restapi.RestApiException ;

Target:
java.util.List < com.google.gerrit.extensions.common.ChangeInfo > submittedTogether ( java.util.EnumSet < com.google.gerrit.extensions.client.SubmittedTogetherOption > o ) throws com.google.gerrit.extensions.restapi.RestApiException ;
Source:
java.util.Set < java.lang.String > keySet ( ) { return java.util.Collections.unmodifiableSet ( atts.keySet ( ) ) ; }

Target:
java.util.Map < java.lang.String , java.lang.String > map ( ) { return java.util.Collections.unmodifiableMap ( attsSingle ) ; }
Source:
private com.google.gerrit.acceptance.git.PushOneCommit.Result createChange ( ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.git.PushOneCommit push = new com.google.gerrit.acceptance.git.PushOneCommit ( db , admin.getIdent ( ) ) ; return push.to ( git , "refs/for/master" ) ; }

Target:
private com.google.gerrit.acceptance.PushOneCommit.Result createChange ( ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , admin.getIdent ( ) ) ; return push.to ( git , "refs/for/master" ) ; }
Source:
public static com.google.gerrit.reviewdb.client.AccountDiffPreference getAccountDiffPreference ( ) { return com.google.gerrit.client.Gerrit.myAccountDiffPref ; }

Target:
public static com.google.gerrit.extensions.client.DiffPreferencesInfo getDiffPreferences ( ) { return com.google.gerrit.client.Gerrit.myAccountDiffPref ; }
Source:
public synchronized void stop ( ) { if ( ( ds ) instanceof org.apache.commons.dbcp.BasicDataSource ) { try { ( ( org.apache.commons.dbcp.BasicDataSource ) ( ds ) ) . close ( ) ; } catch ( java.sql.SQLException e ) { } } }

Target:
public synchronized void stop ( ) { if ( ( basicDataSource ) != null ) { try { basicDataSource.close ( ) ; } catch ( java.sql.SQLException e ) { } finally { basicDataSource = null ; } } }
Source:
private com.google.gerrit.extensions.api.changes.ReviewInput createComment ( final java.lang.String commentTemplate ) { return new com.google.gerrit.extensions.api.changes.ReviewInput ( ) . message ( ( ( com.criteo.gerrit.plugins.automerge.ReviewUpdater.commentsPrefix ) + ( getCommentFromFile ( commentTemplate ) ) ) ) ; }

Target:
private com.google.gerrit.extensions.api.changes.ReviewInput createComment ( java.lang.String comment ) { return new com.google.gerrit.extensions.api.changes.ReviewInput ( ) . message ( ( ( com.criteo.gerrit.plugins.automerge.ReviewUpdater.commentsPrefix ) + comment ) ) ; }
Source:
public static void edit ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.info.ChangeInfo.EditInfo > cb ) { com.google.gerrit.client.changes.ChangeApi.edit ( id ) . get ( cb ) ; }

Target:
public static void editWithFiles ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.info.ChangeInfo.EditInfo > cb ) { com.google.gerrit.client.changes.ChangeApi.edit ( project , id ) . addParameterTrue ( "list" ) . get ( cb ) ; }