auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void changeProjectSettings ( final com.google.gerrit.reviewdb.Project update , final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ProjectDetail > callback ) { changeProjectSettingsFactory.create ( update ) . to ( callback ) ; }

Target:
public void projectAccess ( final com.google.gerrit.reviewdb.client.Project.NameKey projectName , final com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ProjectAccess > callback ) { projectAccessFactory.create ( projectName ) . to ( callback ) ; }
Source:
public boolean isVisible ( ) { return ( ( ( getCurrentUser ( ) ) instanceof com.google.gerrit.server.InternalUser ) || ( canPerform ( Permission.READ ) ) ) && ( canRead ( ) ) ; }

Target:
public boolean isVisible ( ) { if ( ( isVisible ) == null ) { isVisible = ( ( ( getCurrentUser ( ) ) instanceof com.google.gerrit.server.InternalUser ) || ( canPerform ( Permission.READ ) ) ) && ( canRead ( ) ) ; } return isVisible ; }
Source:
public void remove ( ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public java.lang.Iterable < com.google.gerrit.client.data.EditList.Hunk > getHunks ( ) { return new com.google.gerrit.client.data.EditList ( edits , getContext ( ) , a.size ( ) , b.size ( ) ) . getHunks ( ) ; }
Source:
public long getMillis ( ) { return clockMs.getAndAdd ( clockStepMs ) ; }

Target:
public static void setTimeForTesting ( ) { com.google.gerrit.testutil.TestTimeUtil.resetWithClockStep ( 1 , java.util.concurrent.TimeUnit.SECONDS ) ; }
Source:
private static com.google.gerrit.server.index.Schema < com.google.gerrit.server.query.change.ChangeData > schema ( @ com.google.gerrit.common.Nullable com.google.gerrit.server.index.IndexCollection indexes ) { com.google.gerrit.server.index.ChangeIndex index = ( indexes != null ) ? indexes.getSearchIndex ( ) : null ; return index != null ? index.getSchema ( ) : null ; }

Target:
private static com.google.gerrit.server.index.Schema < com.google.gerrit.server.query.change.ChangeData > schema ( @ com.google.gerrit.common.Nullable com.google.gerrit.server.index.IndexCollection indexes ) { com.google.gerrit.server.index.change.ChangeIndex index = ( indexes != null ) ? indexes.getSearchIndex ( ) : null ; return index != null ? index.getSchema ( ) : null ; }
Source:
public boolean containsCommentPublished ( com.google.gerrit.reviewdb.client.PatchLineComment c ) { for ( com.google.gerrit.reviewdb.client.PatchLineComment l : getComments ( ) . values ( ) ) { if ( c.getKey ( ) . equals ( l.getKey ( ) ) ) { return true ; } } return false ; }

Target:
public boolean containsCommentPublished ( com.google.gerrit.reviewdb.client.Comment c ) { for ( com.google.gerrit.reviewdb.client.Comment l : getComments ( ) . values ( ) ) { if ( c.key.equals ( l.key ) ) { return true ; } } return false ; }
Source:
protected abstract void doInsert ( java.lang.Iterable < E > instances , T txn ) throws com.google.gwtorm.client.OrmException ;

Target:
protected abstract void doDelete ( java.lang.Iterable < E > instances ) throws com.google.gwtorm.client.OrmException ;
Source:
public void onHistoryChanged ( final java.lang.String token ) { final com.google.gerrit.client.Screen s = select ( token ) ; if ( s != null ) { com.google.gerrit.client.Gerrit.display ( s ) ; } else { } }

Target:
public void onHistoryChanged ( final java.lang.String token ) { final com.google.gerrit.client.ui.Screen s = select ( token ) ; if ( s != null ) { com.google.gerrit.client.Gerrit.display ( s ) ; } else { } }
Source:
public void notSticky ( ) throws java.lang.Exception { assertNotSticky ( java.util.EnumSet.of ( com.google.gerrit.extensions.client.ChangeKind.REWORK , com.google.gerrit.extensions.client.ChangeKind.TRIVIAL_REBASE , com.google.gerrit.extensions.client.ChangeKind.NO_CODE_CHANGE , com.google.gerrit.extensions.client.ChangeKind.MERGE_FIRST_PARENT_UPDATE ) ) ; }

Target:
public void notSticky ( ) throws java.lang.Exception { assertNotSticky ( java.util.EnumSet.of ( com.google.gerrit.extensions.client.ChangeKind.REWORK , com.google.gerrit.extensions.client.ChangeKind.TRIVIAL_REBASE , com.google.gerrit.extensions.client.ChangeKind.NO_CODE_CHANGE , com.google.gerrit.extensions.client.ChangeKind.MERGE_FIRST_PARENT_UPDATE , com.google.gerrit.extensions.client.ChangeKind.NO_CHANGE ) ) ; }
Source:
com.ericsson.gerrit.plugins.highavailability.forwarder.rest.HttpResponseHandler.HttpResult delete ( java.lang.String endpoint ) throws java.io.IOException { return httpClient.execute ( new org.apache.http.client.methods.HttpDelete ( ( ( peerInfo.get ( ) . getDirectUrl ( ) ) + endpoint ) ) , new com.ericsson.gerrit.plugins.highavailability.forwarder.rest.HttpResponseHandler ( ) ) ; }

Target:
private com.ericsson.gerrit.plugins.highavailability.peers.PeerInfo getPeerInfo ( ) throws com.ericsson.gerrit.plugins.highavailability.forwarder.rest.PeerInfoNotAvailableException { com.ericsson.gerrit.plugins.highavailability.peers.PeerInfo info = peerInfo.get ( ) . orNull ( ) ; if ( info == null ) { throw new com.ericsson.gerrit.plugins.highavailability.forwarder.rest.PeerInfoNotAvailableException ( ) ; } return info ; }
Source:
private void decodeApprovals ( org.apache.lucene.document.Document doc , com.google.gerrit.server.query.change.ChangeData cd ) { cd.setCurrentApprovals ( com.google.gerrit.lucene.LuceneChangeIndex.decodeProtos ( doc , com.google.gerrit.lucene.LuceneChangeIndex.APPROVAL_FIELD , PatchSetApprovalProtoField.CODEC ) ) ; }

Target:
private void decodeApprovals ( com.google.common.collect.Multimap < java.lang.String , org.apache.lucene.index.IndexableField > doc , com.google.gerrit.server.query.change.ChangeData cd ) { cd.setCurrentApprovals ( com.google.gerrit.lucene.LuceneChangeIndex.decodeProtos ( doc , com.google.gerrit.lucene.LuceneChangeIndex.APPROVAL_FIELD , PatchSetApprovalProtoField.CODEC ) ) ; }
Source:
public void removeHandler ( ) { com.google.gwtexpui.globalkey.client.GlobalKey.keys.remove ( key ) ; com.google.gwtexpui.globalkey.client.GlobalKey.keyApplication.remove ( key ) ; }

Target:
public void removeHandler ( ) { state.remove ( appKey ) ; }
Source:
public long getHead ( ) throws java.io.IOException { return stores.head.get ( ) ; }

Target:
public long getHead ( ) throws java.io.IOException { return stores.head.spinGet ( com.googlesource.gerrit.plugins.events.fsstore.FsStore.MAX_GET_SPINS ) ; }
Source:
protected void fireGitRefUpdatedEvent ( org.eclipse.jgit.lib.RefUpdate ru ) { gitRefUpdated.fire ( projectName , ru , ( ( author ) == null ? null : author.getAccount ( ) ) ) ; }

Target:
protected void fireGitRefUpdatedEvent ( org.eclipse.jgit.lib.RefUpdate ru ) { gitRefUpdated.fire ( projectName , ru , ( ( author ) == null ? null : author.state ( ) ) ) ; }
Source:
void removeGutter ( com.google.gerrit.client.diff.SidePanel.GutterWrapper wrapper ) { gutters.remove ( wrapper ) ; }

Target:
void removeGutter ( com.google.gerrit.client.diff.OverviewBar.GutterWrapper wrapper ) { gutters.remove ( wrapper ) ; }
Source:
public java.util.Collection < com.google.gerrit.reviewdb.client.PatchLineComment > comments ( ) throws com.google.gwtorm.server.OrmException { if ( ( comments ) == null ) { comments = db.patchComments ( ) . byChange ( legacyId ) . toList ( ) ; } return comments ; }

Target:
public java.util.Collection < com.google.gerrit.reviewdb.client.PatchLineComment > comments ( ) throws com.google.gwtorm.server.OrmException { if ( ( comments ) == null ) { comments = plcUtil.byChange ( db , notes ( ) ) ; } return comments ; }
Source:
public void setSideA ( com.google.gerrit.reviewdb.PatchSet.Id patchSetId ) { idSideA = patchSetId ; com.google.gerrit.client.patches.PatchScreen.diffSideA = patchSetId ; }

Target:
public void setSideA ( com.google.gerrit.reviewdb.PatchSet.Id patchSetId ) { idSideA = patchSetId ; com.google.gerrit.client.patches.PatchScreen.diffSideA = patchSetId ; if ( ( fileList ) != null ) { fileList.setPatchSetIdToCompareWith ( patchSetId ) ; } }
Source:
public java.net.SocketAddress get ( ) { return sd.getRemoteAddress ( ) ; }

Target:
private com.google.gerrit.server.IdentifiedUser createUser ( final com.google.gerrit.sshd.SshSession sd , final com.google.gerrit.sshd.SshKeyCacheEntry key ) { return userFactory.create ( sd.getRemoteAddress ( ) , key.getAccount ( ) ) ; }
Source:
boolean isSubmit ( ) { return submit ; }

Target:
void addMessage ( final java.lang.String token ) { message = token.replace ( "_" , " " ) ; }
Source:
public void afterRefUpdates ( ) throws com.google.gerrit.extensions.restapi.ResourceConflictException { if ( failAfterRefUpdates ) { throw new com.google.gerrit.extensions.restapi.ResourceConflictException ( "Failing after ref updates" ) ; } }

Target:
public void afterUpdateRefs ( ) throws com.google.gerrit.extensions.restapi.ResourceConflictException { if ( failAfterRefUpdates ) { throw new com.google.gerrit.extensions.restapi.ResourceConflictException ( "Failing after ref updates" ) ; } }
Source:
public com.google.gerrit.extensions.client.SubmitType submitType ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getSubmitType.apply ( revision ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot get submit type" , e ) ; } }

Target:
public com.google.gerrit.extensions.client.SubmitType submitType ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getSubmitType.apply ( revision ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot get submit type" , e ) ; } }
Source:
public void testInvalidSchemeInReplace ( ) { try { new com.google.gwtexpui.safehtml.client.LinkFindReplace ( "find" , "javascript:alert(1)" ) . replace ( "find" ) ; org.junit.Assert.fail ( "Expected IllegalStateException" ) ; } catch ( java.lang.IllegalArgumentException expected ) { } }

Target:
public void testInvalidSchemeInReplace ( ) { exception.expect ( java.lang.IllegalArgumentException.class ) ; new com.google.gwtexpui.safehtml.client.LinkFindReplace ( "find" , "javascript:alert(1)" ) . replace ( "find" ) ; }
Source:
private void assertDeleteSucceeds ( ) throws java.lang.Exception { branch ( ) . delete ( ) ; try { branch ( ) . get ( ) ; org.junit.Assert.fail ( "Expected ResourceNotFoundException" ) ; } catch ( com.google.gerrit.extensions.restapi.ResourceNotFoundException expected ) { } }

Target:
private void assertDeleteSucceeds ( ) throws java.lang.Exception { branch ( ) . delete ( ) ; exception.expect ( com.google.gerrit.extensions.restapi.ResourceNotFoundException.class ) ; branch ( ) . get ( ) ; }
Source:
protected java.lang.Object getRowItemKey ( final com.google.gerrit.client.dashboards.DashboardInfo item ) { return item.name ( ) ; }

Target:
public void display ( com.google.gerrit.client.dashboards.DashboardList dashes ) { display ( dashes.asList ( ) ) ; }
Source:
private void blockReviewDbUpdates ( boolean block ) { cfg.setBoolean ( "user" , null , "readGroupsFromNoteDb" , block ) ; }

Target:
private void assertMigratedCleanly ( com.google.gerrit.server.group.db.GroupBundle noteDbBundle , com.google.gerrit.server.group.db.GroupBundle expectedReviewDbBundle ) { com.google.common.truth.Truth.assertThat ( com.google.gerrit.server.group.db.GroupBundle.compareWithAudits ( expectedReviewDbBundle , noteDbBundle ) ) . isEmpty ( ) ; }
Source:
public java.lang.Iterable < com.google.gerrit.reviewdb.client.Project.NameKey > byName ( java.lang.String prefix ) { return java.util.Collections.emptySet ( ) ; }

Target:
public com.google.common.collect.ImmutableSortedSet < com.google.gerrit.reviewdb.client.Project.NameKey > byName ( java.lang.String prefix ) { return com.google.common.collect.ImmutableSortedSet.of ( ) ; }
Source:
public void deleteComment ( com.google.gerrit.reviewdb.client.Comment c ) { verifyComment ( c ) ; createDraftUpdateIfNull ( ) . deleteComment ( c ) ; }

Target:
public void putRobotComment ( com.google.gerrit.reviewdb.client.RobotComment c ) { verifyComment ( c ) ; createRobotCommentUpdateIfNull ( ) ; robotCommentUpdate.putComment ( c ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.client.Dispatcher.toEditScreen ( new com.google.gerrit.reviewdb.client.PatchSet.Id ( result.legacy_id ( ) , 1 ) , "project.config" ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.client.Dispatcher.toEditScreen ( new com.google.gerrit.reviewdb.client.PatchSet.Id ( result.legacyId ( ) , 1 ) , "project.config" ) ) ; }
Source:
private static java.lang.String getChangeId ( org.eclipse.jgit.revwalk.RevCommit c ) { return com.google.common.collect.Iterables.getOnlyElement ( c.getFooterLines ( com.google.gerrit.common.FooterConstants.CHANGE_ID ) ) ; }

Target:
private java.util.List < org.eclipse.jgit.revwalk.RevCommit > createChanges ( int n , java.lang.String refsFor ) throws java.lang.Exception { return createChanges ( n , refsFor , com.google.common.collect.ImmutableList.< java.lang.String > of ( ) ) ; }
Source:
private org.eclipse.jgit.revwalk.RevCommit writeCommit ( java.lang.String body ) throws java.lang.Exception { return writeCommit ( body , changeNoteUtil.newIdent ( changeOwner.getAccount ( ) , com.google.gerrit.common.TimeUtil.nowTs ( ) , serverIdent , "Anonymous Coward" ) ) ; }

Target:
private org.eclipse.jgit.revwalk.RevCommit writeCommit ( java.lang.String body ) throws java.lang.Exception { return writeCommit ( body , noteUtil.newIdent ( changeOwner.getAccount ( ) , com.google.gerrit.common.TimeUtil.nowTs ( ) , serverIdent , "Anonymous Coward" ) ) ; }
Source:
private boolean search ( java.util.Set < com.google.gerrit.reviewdb.client.AccountGroup.UUID > ids ) { return user.getEffectiveGroups ( ) . containsAnyOf ( ids ) ; }

Target:
private boolean search ( java.lang.Iterable < com.google.gerrit.reviewdb.client.AccountGroup.UUID > ids ) { return user.getEffectiveGroups ( ) . containsAnyOf ( ids ) ; }
Source:
protected long nextLong ( final java.lang.String query ) throws com.google.gwtorm.client.OrmException { return getDialect ( ) . nextLong ( getConnection ( ) , query ) ; }

Target:
protected long nextLong ( final java.lang.String poolName ) throws com.google.gwtorm.client.OrmException { return getDialect ( ) . nextLong ( getConnection ( ) , poolName ) ; }
Source:
public void selfRevokedKey ( ) throws java.lang.Exception { assertProblems ( com.google.gerrit.gpg.testutil.TestKeys.selfRevokedKey ( ) , "Key is revoked" ) ; }

Target:
public void selfRevokedKeyIsRevoked ( ) throws java.lang.Exception { assertProblems ( com.google.gerrit.gpg.testutil.TestKeys.selfRevokedKey ( ) , "Key is revoked" ) ; }
Source:
public void evict ( final com.google.gerrit.reviewdb.Account.Id accountId ) { byId.remove ( accountId ) ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > evictAsync ( com.google.gerrit.reviewdb.Account.Id accountId ) { return byId.removeAsync ( accountId ) ; }
Source:
public void visit ( org.pegdown.ast.ExpLinkNode node ) { html.open ( "a" ) . attribute ( "href" , href ( node.url ) ) . attribute ( "title" , node.title ) ; visitChildren ( node ) ; html.close ( "a" ) ; }

Target:
public void visit ( org.commonmark.node.StrongEmphasis node ) { wrapChildren ( "strong" , node ) ; }
Source:
public boolean isSampledStatisticsEnabled ( ) { return self.isSampledStatisticsEnabled ( ) ; }

Target:
public boolean isStatisticsEnabled ( ) { return self ( ) . isStatisticsEnabled ( ) ; }
Source:
public boolean isEnabled ( ) { return ( enabled ) && ( isVisible ( ) ) ; }

Target:
public boolean isEnabled ( ) { return getEnabledCondition ( ) . value ( ) ; }
Source:
public final native com.google.gwt.core.client.JavaScriptObject has_use_contributor_agreements ( ) ;

Target:
public final native boolean inherited_value ( ) ;
Source:
private AccountGroup.UUID groupUuid ( java.lang.String groupName ) { return groupCache.get ( new com.google.gerrit.reviewdb.client.AccountGroup.NameKey ( groupName ) ) . getGroupUUID ( ) ; }

Target:
private AccountGroup.UUID groupUuid ( java.lang.String groupName ) { return groupCache.get ( new com.google.gerrit.reviewdb.client.AccountGroup.NameKey ( groupName ) ) . orElse ( null ) . getGroupUUID ( ) ; }
Source:
com.google.gitiles.doc.Navbar setMarkdown ( com.google.gitiles.doc.MarkdownConfig cfg , byte [ ] md ) { if ( ( md != null ) && ( ( md.length ) > 0 ) ) { parse ( cfg , org.eclipse.jgit.util.RawParseUtils.decode ( md ) ) ; } return this ; }

Target:
com.google.gitiles.doc.Navbar setConfig ( com.google.gitiles.doc.MarkdownConfig cfg ) { this . cfg = cfg ; return this ; }
Source:
public int compare ( com.google.gerrit.client.groups.GroupInfo a , com.google.gerrit.client.groups.GroupInfo b ) { return a.name ( ) . compareTo ( b.name ( ) ) ; }

Target:
public int compare ( com.google.gerrit.client.info.GroupInfo a , com.google.gerrit.client.info.GroupInfo b ) { return a.name ( ) . compareTo ( b.name ( ) ) ; }
Source:
public void onSuccess ( com.google.gwt.core.client.JavaScriptObject result ) { removeUI ( ) ; }

Target:
public void run ( ) { getCommentGroup ( ) . resize ( ) ; }
Source:
void onReply ( com.google.gwt.event.dom.client.ClickEvent e ) { if ( ( replyBox ) == null ) { com.google.gerrit.client.diff.DraftBox box = getDiffView ( ) . addReply ( getOriginal ( ) , "" , false ) ; registerReplyBox ( box ) ; } else { openReplyBox ( ) ; } }

Target:
void onReply ( com.google.gwt.event.dom.client.ClickEvent e ) { e.stopPropagation ( ) ; doReply ( ) ; }
Source:
public java.nio.file.FileSystem createFileSystem ( org.apache.sshd.common.Session session ) throws java.io.IOException { return java.nio.file.FileSystems.getDefault ( ) ; }

Target:
public org.apache.sshd.common.file.SshFile getFile ( java.lang.String file ) { return null ; }
Source:
public void testEndsBeforeNewline ( ) { com.google.gerrit.client.diff.EditIterator iter = new com.google.gerrit.client.diff.EditIterator ( lines , 0 ) ; assertLineChsEqual ( net.codemirror.lib.LineCharacter.create ( 0 , 3 ) , iter.advance ( 3 ) ) ; }

Target:
public void testEndsBeforeNewline ( ) { com.google.gerrit.client.diff.EditIterator iter = new com.google.gerrit.client.diff.EditIterator ( lines , 0 ) ; assertLineChsEqual ( net.codemirror.lib.Pos.create ( 0 , 3 ) , iter.advance ( 3 ) ) ; }
Source:
public static final native void disableUnwantedKey ( java.lang.String category , java.lang.String name ) ;

Target:
public static final native net.codemirror.lib.KeyMap cloneKeyMap ( java.lang.String name ) ;
Source:
private void testUserNotPresent ( ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = adminSession.get ( "/accounts/sandboxuser" ) ; com.google.common.truth.Truth.assertThat ( r.getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_NOT_FOUND ) ; }

Target:
private void testUserNotPresent ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( gApi.accounts ( ) . query ( "sandboxuser" ) . get ( ) ) . isEmpty ( ) ; }
Source:
public java.sql.Timestamp apply ( com.google.gerrit.reviewdb.client.ChangeMessage input ) { return input.getWrittenOn ( ) ; }

Target:
public com.google.common.collect.ImmutableSet < com.google.gerrit.reviewdb.client.Account.Id > getPastAssignees ( ) { return state.pastAssignees ( ) ; }
Source:
public void listNonExistingGroupIncludes_NotFound ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( adminSession.get ( "/groups/non-existing/groups/" ) . getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_NOT_FOUND ) ; }

Target:
public void listNonExistingGroupIncludes_NotFound ( ) throws java.lang.Exception { java.lang.String name = name ( "non-existing" ) ; com.google.common.truth.Truth.assertThat ( adminSession.get ( ( ( "/groups/" + name ) + "/groups/" ) ) . getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_NOT_FOUND ) ; }
Source:
protected void configure ( ) { listener ( ) . to ( GitRepositoryManager.Lifecycle.class ) ; listener ( ) . to ( CachePool.Lifecycle.class ) ; listener ( ) . to ( WorkQueue.Lifecycle.class ) ; }

Target:
protected void configure ( ) { listener ( ) . to ( LocalDiskRepositoryManager.Lifecycle.class ) ; listener ( ) . to ( CachePool.Lifecycle.class ) ; listener ( ) . to ( WorkQueue.Lifecycle.class ) ; }
Source:
protected void configureServlets ( ) { filter ( "/*" ) . through ( com.googlesource.gerrit.plugins.serverconfig.HideFromNonAdmins.class ) ; serve ( "/*" ) . with ( com.googlesource.gerrit.plugins.serverconfig.ServerConfigServlet.class ) ; }

Target:
protected void configureServlets ( ) { filter ( "/*" ) . through ( com.googlesource.gerrit.plugins.serverconfig.HideFromNonAdmins.class ) ; serve ( "/etc/*" , "/static/*" ) . with ( com.googlesource.gerrit.plugins.serverconfig.ServerConfigServlet.class ) ; }
Source:
public final java.sql.Timestamp created ( ) { java.sql.Timestamp ts = _get_cts ( ) ; if ( ts == null ) { ts = com.google.gwtjsonrpc.client.impl.ser.JavaSqlTimestamp_JsonSerializer.parseTimestamp ( createdRaw ( ) ) ; _set_cts ( ts ) ; } return ts ; }

Target:
public final java.sql.Timestamp created ( ) { java.sql.Timestamp ts = _getCts ( ) ; if ( ts == null ) { ts = com.google.gwtjsonrpc.client.impl.ser.JavaSqlTimestamp_JsonSerializer.parseTimestamp ( createdRaw ( ) ) ; _setCts ( ts ) ; } return ts ; }
Source:
public com.google.gwtorm.server.ResultSet < com.google.gerrit.server.query.change.ChangeData > read ( ) throws com.google.gwtorm.server.OrmException { return source.read ( ) ; }

Target:
public com.google.gerrit.server.query.change.ChangeData apply ( com.google.gerrit.server.query.change.ChangeData input ) { input.cacheFromSource ( source ) ; return input ; }
Source:
private com.google.gerrit.reviewdb.client.AccountDiffPreference.Whitespace getIgnoreWhitespace ( ) { final int sel = ignoreWhitespace.getSelectedIndex ( ) ; if ( 0 <= sel ) { return com.google.gerrit.reviewdb.client.AccountDiffPreference.Whitespace.valueOf ( ignoreWhitespace.getValue ( sel ) ) ; } return getValue ( ) . getIgnoreWhitespace ( ) ; }

Target:
private com.google.gerrit.extensions.client.DiffPreferencesInfo.Whitespace getIgnoreWhitespace ( ) { final int sel = ignoreWhitespace.getSelectedIndex ( ) ; if ( 0 <= sel ) { return com.google.gerrit.extensions.client.DiffPreferencesInfo.Whitespace.valueOf ( ignoreWhitespace.getValue ( sel ) ) ; } return getValue ( ) . ignoreWhitespace ; }
Source:
public static long nowMs ( ) { return org.joda.time.DateTimeUtils.currentTimeMillis ( ) ; }

Target:
public static long nowMs ( ) { return com.google.gerrit.common.TimeUtil.currentMillisSupplier.getAsLong ( ) ; }
Source:
public java.lang.String name ( ) { return "Bugzilla" ; }

Target:
public java.lang.String name ( ) { return pluginName ; }
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>" ) ; org.junit.Assert.assertEquals ( "A U Thor" , a.name ) ; org.junit.Assert.assertEquals ( "author@example.com" , a.email ) ; }

Target:
public void testParse_NameEmail4 ( ) { final com.google.gerrit.server.mail.Address a = com.google.gerrit.server.mail.Address.parse ( "A U Thor<author@example.com>" ) ; com.google.common.truth.Truth.assertThat ( a.name ) . isEqualTo ( "A U Thor" ) ; com.google.common.truth.Truth.assertThat ( a.email ) . isEqualTo ( "author@example.com" ) ; }
Source:
public boolean dryRun ( com.google.gerrit.server.git.CodeReviewCommit mergeTip , com.google.gerrit.server.git.CodeReviewCommit toMerge ) { }

Target:
public boolean dryRun ( com.google.gerrit.server.git.CodeReviewCommit mergeTip , com.google.gerrit.server.git.CodeReviewCommit toMerge ) throws com.google.gerrit.server.git.IntegrationException { return ( ! ( args.mergeUtil.hasMissingDependencies ( args.mergeSorter , toMerge ) ) ) && ( args.mergeUtil.canMerge ( args.mergeSorter , args.repo , mergeTip , toMerge ) ) ; }
Source:
public com.google.gerrit.extensions.restapi.BinaryResult submitPreview ( java.lang.String format ) throws com.google.gerrit.extensions.restapi.RestApiException { try { submitPreview.setFormat ( format ) ; return submitPreview.apply ( revision ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot get submit preview" , e ) ; } }

Target:
public com.google.gerrit.extensions.restapi.BinaryResult submitPreview ( java.lang.String format ) throws com.google.gerrit.extensions.restapi.RestApiException { try { submitPreview.setFormat ( format ) ; return submitPreview.apply ( revision ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot get submit preview" , e ) ; } }
Source:
public void shouldFireEventsForReplicationOfOneRefToOneNode ( ) throws java.net.URISyntaxException { org.easymock.EasyMock.resetToDefault ( pushResultProcessingMock ) ; org.eclipse.jgit.transport.URIish uri = new org.eclipse.jgit.transport.URIish ( "git://someHost/someRepo.git" ) ; pushResultProcessingMock.onRefReplicatedToOneNode ( "someProject" , "someRef" , uri , RefPushResult.SUCCEEDED ) ; pushResultProcessingMock.onRefReplicatedToAllNodes ( "someProject" , "someRef" , 1 ) ; pushResultProcessingMock.onAllRefsReplicatedToAllNodes ( 1 ) ; org.easymock.EasyMock.replay ( pushResultProcessingMock ) ; replicationState.increasePushTaskCount ( "someProject" , "someRef" ) ; replicationState.markAllPushTasksScheduled ( ) ; replicationState.notifyRefReplicated ( "someProject" , "someRef" , uri , RefPushResult.SUCCEEDED ) ; org.easymock.EasyMock.verify ( pushResultProcessingMock ) ; }

Target:
public void shouldFireEventsForReplicationOfOneRefToOneNode ( ) throws java.net.URISyntaxException { org.easymock.EasyMock.resetToDefault ( pushResultProcessingMock ) ; org.eclipse.jgit.transport.URIish uri = new org.eclipse.jgit.transport.URIish ( "git://someHost/someRepo.git" ) ; pushResultProcessingMock.onRefReplicatedToOneNode ( "someProject" , "someRef" , uri , RefPushResult.SUCCEEDED , RemoteRefUpdate.Status.OK ) ; pushResultProcessingMock.onRefReplicatedToAllNodes ( "someProject" , "someRef" , 1 ) ; pushResultProcessingMock.onAllRefsReplicatedToAllNodes ( 1 ) ; org.easymock.EasyMock.replay ( pushResultProcessingMock ) ; replicationState.increasePushTaskCount ( "someProject" , "someRef" ) ; replicationState.markAllPushTasksScheduled ( ) ; replicationState.notifyRefReplicated ( "someProject" , "someRef" , uri , RefPushResult.SUCCEEDED , RemoteRefUpdate.Status.OK ) ; org.easymock.EasyMock.verify ( pushResultProcessingMock ) ; }
Source:
private static native void addHistoryHook ( ) ;

Target:
private static final com.google.gerrit.client.info.AccountPreferencesInfo getUserPreferences ( ) { return com.google.gerrit.client.Gerrit.getUserPreferences ( ) ; }
Source:
protected void configure ( ) { cache ( com.google.gerrit.server.project.SectionSortCache.CACHE_NAME , com.google.gerrit.server.project.SectionSortCache.EntryKey.class , com.google.gerrit.server.project.SectionSortCache.EntryVal.class ) ; bind ( com.google.gerrit.server.project.SectionSortCache.class ) ; }

Target:
protected void configure ( ) { cache ( com.google.gerrit.server.permissions.SectionSortCache.CACHE_NAME , com.google.gerrit.server.permissions.SectionSortCache.EntryKey.class , com.google.gerrit.server.permissions.SectionSortCache.EntryVal.class ) ; bind ( com.google.gerrit.server.permissions.SectionSortCache.class ) ; }
Source:
public void setUp ( ) { module = new com.ericsson.gerrit.plugins.highavailability.Module ( ) ; }

Target:
public void setUp ( ) { module = new com.ericsson.gerrit.plugins.highavailability.Module ( configMock ) ; }
Source:
public void run ( ) { apply.run ( ) ; }

Target:
public void run ( ) { for ( java.lang.Runnable thunk : list ) { thunk.run ( ) ; } }
Source:
public final native void skipUncommented ( boolean s ) ;

Target:
public final native void retainHeader ( java.lang.Boolean r ) ;
Source:
private org.apache.lucene.index.Term idTerm ( com.google.gerrit.server.query.change.ChangeData cd ) { return intTerm ( com.google.gerrit.server.query.change.ChangeQueryBuilder.FIELD_CHANGE , cd.getId ( ) . get ( ) ) ; }

Target:
private org.apache.lucene.index.Term idTerm ( com.google.gerrit.server.query.change.ChangeData cd ) { return intTerm ( com.google.gerrit.lucene.LuceneChangeIndex.ID_FIELD , cd.getId ( ) . get ( ) ) ; }
Source:
private javax.servlet.http.Cookie getGerritCookie ( javax.servlet.http.HttpServletRequest httpRequest ) { for ( javax.servlet.http.Cookie cookie : httpRequest.getCookies ( ) ) { if ( cookie.getName ( ) . equalsIgnoreCase ( com.googlesource.gerrit.plugins.github.oauth.OAuthFilter.GERRIT_COOKIE_NAME ) ) { return cookie ; } } return null ; }

Target:
private javax.servlet.http.Cookie [ ] getCookies ( javax.servlet.http.HttpServletRequest httpRequest ) { javax.servlet.http.Cookie [ ] cookies = httpRequest.getCookies ( ) ; return cookies == null ? new javax.servlet.http.Cookie [ 0 ] : cookies ; }
Source:
protected void configure ( ) { bind ( java.lang.String.class ) . annotatedWith ( com.google.gerrit.extensions.annotations.PluginName.class ) . toInstance ( name ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.extensions.systemstatus.ServerInformation.class ) . toInstance ( srvInfo ) ; }
Source:
public void reviewId ( ) throws com.google.gerrit.extensions.restapi.RestApiException , java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.PushOneCommit.Result r = createChange ( ) ; gApi.changes ( ) . id ( r.getChangeId ( ) ) . current ( ) . review ( com.google.gerrit.acceptance.api.revision.RevisionIT.approve ( ) ) ; }

Target:
public void reviewCurrent ( ) throws com.google.gerrit.extensions.restapi.RestApiException , java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.PushOneCommit.Result r = createChange ( ) ; gApi.changes ( ) . id ( r.getChangeId ( ) ) . current ( ) . review ( com.google.gerrit.acceptance.api.revision.RevisionIT.approve ( ) ) ; }
Source:
void setShowLineNumbers ( boolean b ) { }

Target:
void setShowLineNumbers ( boolean b ) { super . setShowLineNumbers ( b ) ; cm.refresh ( ) ; }
Source:
public int compare ( final com.google.gerrit.server.git.CodeReviewCommit a , final com.google.gerrit.server.git.CodeReviewCommit b ) { return ( a.originalOrder ) - ( b.originalOrder ) ; }

Target:
public static boolean useRecursiveMerge ( org.eclipse.jgit.lib.Config cfg ) { return cfg.getBoolean ( "core" , null , "useRecursiveMerge" , true ) ; }
Source:
void changeGroupOwner ( com.google.gerrit.client.reviewdb.AccountGroupMember.Key key , boolean owner , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwtjsonrpc.client.VoidResult > callback ) ;

Target:
void changeGroupOwner ( com.google.gerrit.client.reviewdb.AccountGroup.Id groupId , java.lang.String newOwnerName , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwtjsonrpc.client.VoidResult > callback ) ;
Source:
public void evictByUsername ( java.lang.String username ) ;

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > evictEmailAsync ( java.lang.String email ) ;
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { doExternalSearch ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { onSaveType ( ) ; }
Source:
protected void configure ( ) { bind ( org.eclipse.jgit.lib.Config.class ) . annotatedWith ( com.google.gerrit.server.config.GerritServerConfig.class ) . toProvider ( com.google.gerrit.server.config.GerritServerConfigProvider.class ) . in ( com.google.inject.Scopes.SINGLETON ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.server.config.SitePaths.class ) ; bind ( org.eclipse.jgit.lib.Config.class ) . annotatedWith ( com.google.gerrit.server.config.GerritServerConfig.class ) . toProvider ( com.google.gerrit.server.config.GerritServerConfigProvider.class ) . in ( com.google.inject.Scopes.SINGLETON ) ; }
Source:
public void onEvent ( com.google.gerrit.server.events.Event event ) { if ( ( ! ( com.ericsson.gerrit.plugins.syncevents.Context.isForwardedEvent ( ) ) ) && ( event instanceof com.google.gerrit.server.events.ProjectEvent ) ) { executor.execute ( new com.ericsson.gerrit.plugins.syncevents.EventHandler.SyncEventTask ( event ) ) ; } }

Target:
public void onEvent ( com.google.gerrit.server.events.Event event ) { if ( ( ! ( com.ericsson.gerrit.plugins.highavailability.forwarder.Context.isForwardedEvent ( ) ) ) && ( event instanceof com.google.gerrit.server.events.ProjectEvent ) ) { executor.execute ( new com.ericsson.gerrit.plugins.highavailability.event.EventHandler.EventTask ( event ) ) ; } }
Source:
private void checkIdentifiedUser ( ) throws com.google.gerrit.extensions.restapi.AuthException { if ( ! ( ( user.get ( ) ) instanceof com.google.gerrit.server.IdentifiedUser ) ) { throw new com.google.gerrit.extensions.restapi.AuthException ( "drafts only available to authenticated users" ) ; } }

Target:
private void checkIdentifiedUser ( ) throws com.google.gerrit.extensions.restapi.AuthException { if ( ! ( user.get ( ) . isIdentifiedUser ( ) ) ) { throw new com.google.gerrit.extensions.restapi.AuthException ( "drafts only available to authenticated users" ) ; } }
Source:
public com.google.common.base.Optional < java.io.InputStream > getResourceInputStream ( java.lang.String resourcePath ) throws java.io.IOException { return com.google.common.base.Optional.absent ( ) ; }

Target:
public java.io.InputStream getInputStream ( com.google.gerrit.server.plugins.PluginEntry entry ) throws java.io.IOException { return new java.io.FileInputStream ( getResourceFile ( entry.getName ( ) ) ) ; }
Source:
public int compare ( com.google.gerrit.server.plugins.Plugin a , com.google.gerrit.server.plugins.Plugin b ) { return a.getName ( ) . compareTo ( b.getName ( ) ) ; }

Target:
public void run ( ) throws java.lang.Exception { parseCommandLine ( impl ) ; impl.display ( out ) ; }
Source:
public com.google.gerrit.server.index.ChangeIndex getWriteIndex ( int version ) { for ( com.google.gerrit.server.index.ChangeIndex i : writeIndexes ) { if ( ( i.getSchema ( ) . getVersion ( ) ) == version ) { return i ; } } return null ; }

Target:
public com.google.gerrit.server.index.change.ChangeIndex getWriteIndex ( int version ) { for ( com.google.gerrit.server.index.change.ChangeIndex i : writeIndexes ) { if ( ( i.getSchema ( ) . getVersion ( ) ) == version ) { return i ; } } return null ; }
Source:
public void patchSetDetail ( com.google.gerrit.reviewdb.client.PatchSet.Id id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.PatchSetDetail > callback ) { patchSetDetail2 ( null , id , null , callback ) ; }

Target:
public void patchSetDetail ( com.google.gerrit.reviewdb.client.PatchSet.Id id , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.PatchSetDetail > callback ) { patchSetDetail2 ( null , id , null , callback ) ; }
Source:
void onAddMe ( com.google.gwt.event.dom.client.ClickEvent e ) { BRANCH ( 74.0F ) ; }

Target:
void onAddMe ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { java.lang.String accountId = java.lang.String.valueOf ( com.google.gerrit.client.Gerrit.getUserAccountInfo ( ) . _account_id ( ) ) ; addReviewer ( accountId , false ) ; }
Source:
public void onSuccess ( final com.google.gwtjsonrpc.common.VoidResult result ) { if ( submit ) { submit ( ) ; } else { saveStateOnUnload = false ; goChange ( ) ; } }

Target:
public void onSuccess ( com.google.gerrit.client.changes.PublishCommentScreen.ReviewInput result ) { if ( submit ) { submit ( ) ; } else { saveStateOnUnload = false ; goChange ( ) ; } }
Source:
public final native void expandAllComments ( boolean e ) ;

Target:
public final native void autoHideDiffTableHeader ( java.lang.Boolean s ) ;
Source:
protected abstract com.google.gwtorm.client.ResultSet < T > scan ( java.lang.String indexName , byte [ ] fromKey , byte [ ] toKey , int limit ) throws com.google.gwtorm.client.OrmException ;

Target:
protected abstract com.google.gwtorm.client.ResultSet < T > scanIndex ( com.google.gwtorm.nosql.IndexFunction < T > index , byte [ ] fromKey , byte [ ] toKey , int limit ) throws com.google.gwtorm.client.OrmException ;
Source:
public void uncache ( org.eclipse.jgit.lib.Config.SectionParser < ? > parser ) { secureConfig.uncache ( parser ) ; }

Target:
public void uncache ( com.googlesource.gerrit.plugins.github.oauth.SectionParser < ? > parser ) { secureConfig.uncache ( parser ) ; }
Source:
HEAD ( ) { com.google.gerrit.acceptance.rest.change.@ com.google.gerrit.acceptance.rest.change.Ensure reply dialog ; com.google.gerrit.acceptance.rest.change.@ com.google.gerrit.acceptance.rest.change.Ensure reply are ; }

Target:
public com.google.gerrit.server.CurrentUser getUser ( ) { return factory.create ( user.id ) ; }
Source:
protected void configure ( ) { factory ( AbandonedSender.Factory.class ) ; }

Target:
protected void configure ( ) { factory ( AbandonedSender.Factory.class ) ; factory ( CommentSender.Factory.class ) ; factory ( RevertedSender.Factory.class ) ; factory ( RestoredSender.Factory.class ) ; }
Source:
public void registerKeys ( ) { super . registerKeys ( ) ; regNavigation = com.google.gwtexpui.globalkey.client.GlobalKey.add ( this , keysNavigation ) ; regAction = com.google.gwtexpui.globalkey.client.GlobalKey.add ( this , keysAction ) ; }

Target:
public void registerKeys ( ) { super . registerKeys ( ) ; regNavigation = com.google.gwtexpui.globalkey.client.GlobalKey.add ( this , keysNavigation ) ; regAction = com.google.gwtexpui.globalkey.client.GlobalKey.add ( this , keysAction ) ; patchSetsBlock.setRegisterKeys ( true ) ; }
Source:
private void expandAll ( ) { hiddenSkipMap.remove ( cm.getLineHandle ( marker.find ( ) . getTo ( ) . getLine ( ) ) ) ; marker.clear ( ) ; widget.clear ( ) ; removeFromParent ( ) ; }

Target:
private void expandAll ( ) { hiddenSkipMap.remove ( cm.getLineHandle ( marker.find ( ) . getTo ( ) . getLine ( ) ) ) ; clearMarkerAndWidget ( ) ; removeFromParent ( ) ; }
Source:
void deleteMembers ( java.lang.String ... members ) throws com.google.gerrit.extensions.restapi.RestApiException ;

Target:
void removeMembers ( java.lang.String ... members ) throws com.google.gerrit.extensions.restapi.RestApiException ;
Source:
protected com.google.inject.Injector createInjector ( ) { return com.google.inject.Guice.createInjector ( new com.google.gerrit.testutil.InMemoryModule ( ) ) ; }

Target:
protected com.google.inject.Injector createInjector ( ) { org.eclipse.jgit.lib.Config luceneConfig = new org.eclipse.jgit.lib.Config ( config ) ; com.google.gerrit.testutil.InMemoryModule.setDefaults ( luceneConfig ) ; return com.google.inject.Guice.createInjector ( new com.google.gerrit.testutil.InMemoryModule ( luceneConfig ) ) ; }
Source:
private com.google.gerrit.server.config.GetServerInfo.ReceiveInfo getReceiveInfo ( org.eclipse.jgit.lib.Config cfg ) { com.google.gerrit.server.config.GetServerInfo.ReceiveInfo info = new com.google.gerrit.server.config.GetServerInfo.ReceiveInfo ( ) ; info.enableSignedPush = com.google.gerrit.server.git.gpg.SignedPushModule.isEnabled ( cfg ) ; return info ; }

Target:
private com.google.gerrit.server.config.GetServerInfo.ReceiveInfo getReceiveInfo ( ) { com.google.gerrit.server.config.GetServerInfo.ReceiveInfo info = new com.google.gerrit.server.config.GetServerInfo.ReceiveInfo ( ) ; info.enableSignedPush = enableSignedPush ; return info ; }
Source:
public static void addGpgKey ( java.lang.String account , java.lang.String armored , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.rpc.NativeMap < com.google.gerrit.client.info.GpgKeyInfo > > cb ) { new com.google.gerrit.client.rpc.RestApi ( "/accounts/" ) . id ( account ) . view ( "gpgkeys" ) . post ( com.google.gerrit.client.account.AccountApi.GpgKeysInput.add ( armored ) , cb ) ; }

Target:
public static void addGpgKey ( java.lang.String account , java.lang.String armored , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.rpc.NativeMap < com.google.gerrit.client.info.GpgKeyInfo > > cb ) { com.google.gerrit.client.account.AccountApi.accounts ( ) . id ( account ) . view ( "gpgkeys" ) . post ( com.google.gerrit.client.account.AccountApi.GpgKeysInput.add ( armored ) , cb ) ; }
Source:
public void run ( ) throws java.lang.Exception { parseCommandLine ( impl ) ; impl.display ( out ) ; }

Target:
public void run ( ) throws java.lang.Exception { impl.display ( stdout ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.projects.BranchInfo branch ) { addBranch.setEnabled ( true ) ; nameTxtBox.setText ( "" ) ; irevTxtBox.setText ( "" ) ; refreshBranches ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.projects.BranchInfo branch ) { addBranch.setEnabled ( true ) ; nameTxtBox.setText ( "" ) ; irevTxtBox.setText ( "" ) ; branchTable.insert ( branch ) ; }
Source:
final native java.lang.String message ( ) ;

Target:
private static java.lang.String trimJsonMagic ( java.lang.String json ) { if ( json.startsWith ( com.google.gerrit.client.rpc.RestApi.JSON_MAGIC ) ) { json = json.substring ( com.google.gerrit.client.rpc.RestApi.JSON_MAGIC.length ( ) ) ; } return json ; }
Source:
public void setOriginalSubject ( java.lang.String originalSubject ) { this . originalSubject = originalSubject ; }

Target:
public void clearCurrentPatchSet ( ) { currentPatchSetId = 0 ; subject = null ; originalSubject = null ; }
Source:
public void init ( javax.servlet.FilterConfig filterConfig ) throws javax.servlet.ServletException { }

Target:
public void init ( javax.servlet.FilterConfig filterConfig ) throws javax.servlet.ServletException { gitFilter.init ( filterConfig ) ; webFilter.init ( filterConfig ) ; }
Source:
protected void formatChange ( ) throws com.google.gerrit.common.errors.EmailException { appendText ( textTemplate ( "Reverted" ) ) ; }

Target:
protected void formatChange ( ) throws com.google.gerrit.common.errors.EmailException { appendText ( textTemplate ( "Reverted" ) ) ; appendHtml ( soyHtmlTemplate ( "RevertedHtml" ) ) ; }
Source:
public void parse ( ) { generalPreferences = parse ( null ) ; }

Target:
public com.google.gerrit.extensions.client.DiffPreferencesInfo getDiffPreferences ( ) { if ( ( diffPreferences ) == null ) { parse ( ) ; } return diffPreferences ; }
Source:
public void onFailure ( final java.lang.Throwable caught ) { addBranch.setEnabled ( true ) ; super . onFailure ( caught ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { addBranch.setEnabled ( true ) ; com.google.gerrit.client.admin.ProjectBranchesScreen.selectAllAndFocus ( nameTxtBox ) ; new com.google.gerrit.client.ErrorDialog ( caught.getMessage ( ) ) . center ( ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.rpc.NativeMap < com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.CommentInfo > > result ) { com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.CommentInfo > in = result.get ( path ) ; if ( in != null ) { addAllToCommentList ( in , toDrafts ) ; } }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { openReplyBox ( ) . run ( ) ; }
Source:
private java.lang.String newChange2 ( org.eclipse.jgit.api.Git git , org.eclipse.jgit.lib.PersonIdent ident ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , ident , git , 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 ( "refs/for/master" ) . getChangeId ( ) ; }

Target:
private java.lang.String newChange2 ( org.eclipse.jgit.lib.PersonIdent ident ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , ident , testRepo , 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 ( "refs/for/master" ) . getChangeId ( ) ; }
Source:
protected java.lang.Object createServiceHandle ( ) throws java.lang.Exception { return com.google.gerrit.server.OpenIdServiceImpl.getInstance ( ) ; }

Target:
protected java.lang.Object createServiceHandle ( ) throws java.lang.Exception { return impl ; }
Source:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { rights.deleteChecked ( ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { doAddNewRight ( ) ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < com.google.gerrit.common.data.ProjectDetail > event ) { display ( event.getValue ( ) ) ; }

Target:
public void preDisplay ( com.google.gerrit.common.data.ProjectAccess access ) { displayReadOnly ( access ) ; }
Source:
static com.google.gerrit.client.rpc.RestApi config ( com.google.gerrit.reviewdb.client.Project.NameKey name ) { return new com.google.gerrit.client.rpc.RestApi ( "/projects/" ) . id ( name.get ( ) ) . view ( "config" ) ; }

Target:
public static void getConfig ( com.google.gerrit.reviewdb.client.Project.NameKey name , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.projects.ConfigInfo > cb ) { new com.google.gerrit.client.rpc.RestApi ( "/projects/" ) . id ( name.get ( ) ) . view ( "config" ) . get ( cb ) ; }
Source:
private static boolean isInvalidXSRF ( final java.lang.Throwable caught ) { return ( caught instanceof com.google.gwt.user.client.rpc.InvocationException ) && ( caught.getMessage ( ) . equals ( JsonUtil.ERROR_INVALID_XSRF ) ) ; }

Target:
private static boolean isInvalidXSRF ( final java.lang.Throwable caught ) { return ( caught instanceof com.google.gwt.user.client.rpc.InvocationException ) && ( caught.getMessage ( ) . equals ( JsonConstants.ERROR_INVALID_XSRF ) ) ; }
Source:
public static org.eclipse.jgit.lib.Config noteDbWriteEnabled ( ) { org.eclipse.jgit.lib.Config cfg = new org.eclipse.jgit.lib.Config ( ) ; cfg.setBoolean ( "notedb" , null , "write" , true ) ; return cfg ; }

Target:
public static org.eclipse.jgit.lib.Config noteDbWriteEnabled ( ) { org.eclipse.jgit.lib.Config cfg = new org.eclipse.jgit.lib.Config ( ) ; cfg.setBoolean ( "notedb" , "changes" , "write" , true ) ; return cfg ; }
Source:
private java.lang.String group ( java.lang.String name ) throws java.lang.Exception { name = name ( name ) ; gApi.groups ( ) . create ( name ) ; return name ; }

Target:
private void assertIncludes ( java.lang.String group , java.lang.String ... expectedNames ) throws java.lang.Exception { assertIncludes ( gApi.groups ( ) . id ( group ) . includedGroups ( ) , expectedNames ) ; }
Source:
private static final native void nativeDelete ( java.lang.String name ) ;

Target:
private static final native void nativeDelete ( int funid ) ;
Source:
public boolean match ( com.google.gerrit.reviewdb.PatchSetApproval p , short value ) { return ( p.getValue ( ) ) >= value ; }

Target:
public boolean match ( short psValue , short expValue ) { return psValue >= expValue ; }
Source:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > deleteAsync ( com.google.gerrit.reviewdb.client.Change change ) { return deleteAsync ( new com.google.gerrit.server.query.change.ChangeData ( change ) ) ; }

Target:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > deleteAsync ( com.google.gerrit.reviewdb.client.Change change ) { return ( executor ) != null ? submit ( new com.google.gerrit.server.index.ChangeIndexer.Task ( new com.google.gerrit.server.query.change.ChangeData ( change ) , true ) ) : com.google.common.util.concurrent.Futures.< java.lang.Object , java.io.IOException > immediateCheckedFuture ( null ) ; }
Source:
public void addToNonExistingGroup_NotFound ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( PUT ( "/groups/non-existing/members/admin" ) . getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_NOT_FOUND ) ; }

Target:
public void addToNonExistingGroup_NotFound ( ) throws java.lang.Exception { try { gApi.groups ( ) . id ( "non-existing" ) . addMembers ( "admin" ) ; } catch ( com.google.gerrit.extensions.restapi.ResourceNotFoundException expected ) { } }