auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testUndefinedFunctionName ( ) { com.google.gerrit.server.ParamertizedString p = new com.google.gerrit.server.ParamertizedString ( "${a.anUndefinedMethod}" ) ; assertEquals ( 1 , p.getParameterNames ( ) . size ( ) ) ; assertTrue ( p.getParameterNames ( ) . contains ( "a.anUndefinedMethod" ) ) ; }

Target:
public void testUndefinedFunctionName ( ) { com.google.gerrit.common.data.ParamertizedString p = new com.google.gerrit.common.data.ParamertizedString ( "${a.anUndefinedMethod}" ) ; assertEquals ( 1 , p.getParameterNames ( ) . size ( ) ) ; assertTrue ( p.getParameterNames ( ) . contains ( "a.anUndefinedMethod" ) ) ; }
Source:
public static void clearHttpPassword ( java.lang.String account , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.VoidResult > cb ) { com.google.gerrit.client.account.AccountApi.accounts ( ) . id ( account ) . view ( "password.http" ) . delete ( cb ) ; }

Target:
public static void clearHttpPassword ( java.lang.String account , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.VoidResult > cb ) { new com.google.gerrit.client.rpc.RestApi ( "/accounts/" ) . id ( account ) . view ( "password.http" ) . delete ( cb ) ; }
Source:
public org.eclipse.jgit.lib.PersonIdent getIdent ( ) { return new org.eclipse.jgit.lib.PersonIdent ( username , email ) ; }

Target:
public org.eclipse.jgit.lib.PersonIdent getIdent ( ) { return new org.eclipse.jgit.lib.PersonIdent ( fullName , email ) ; }
Source:
private void showError ( ) { errorLine.setVisible ( true ) ; }

Target:
private void showError ( final java.lang.String msgText ) { errorMsg.setText ( msgText ) ; errorLine.setVisible ( true ) ; }
Source:
public void load ( org.eclipse.jgit.lib.Repository db ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { org.eclipse.jgit.lib.Ref ref = db.getRef ( getRefName ( ) ) ; load ( db , ( ref != null ? ref.getObjectId ( ) : null ) ) ; }

Target:
public void load ( org.eclipse.jgit.lib.Repository db ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { org.eclipse.jgit.lib.Ref ref = db.getRefDatabase ( ) . exactRef ( getRefName ( ) ) ; load ( db , ( ref != null ? ref.getObjectId ( ) : null ) ) ; }
Source:
private void superWindowResolution ( ) { com.google.gerrit.testutil.TestTimeUtil.setClockStep ( ( ( ChangeRebuilder.MAX_WINDOW_MS ) * 2 ) , java.util.concurrent.TimeUnit.MILLISECONDS ) ; com.google.gerrit.common.TimeUtil.nowTs ( ) ; }

Target:
private void superWindowResolution ( ) { com.google.gerrit.testutil.TestTimeUtil.setClockStep ( ( ( ChangeRebuilderImpl.MAX_WINDOW_MS ) * 2 ) , java.util.concurrent.TimeUnit.MILLISECONDS ) ; com.google.gerrit.common.TimeUtil.nowTs ( ) ; }
Source:
public static boolean isInternalGroup ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) { return ( uuid.get ( ) . startsWith ( "global:" ) ) || ( uuid.get ( ) . matches ( "[0-9a-f]{40}" ) ) ; }

Target:
public static boolean isInternalGroup ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) { return ( uuid.get ( ) . startsWith ( "global:" ) ) || ( uuid.get ( ) . matches ( "^[0-9a-f]{40}$" ) ) ; }
Source:
public void listTagsOfNonExistingProject_NotFound ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( adminSession.get ( "/projects/non-existing/tags" ) . getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_NOT_FOUND ) ; }

Target:
public void listTagsOfNonExistingProject ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( adminSession.get ( "/projects/non-existing/tags" ) . getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_NOT_FOUND ) ; }
Source:
public static void getUsername ( java.lang.String account , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.rpc.NativeString > cb ) { com.google.gerrit.client.account.AccountApi.accounts ( ) . id ( account ) . view ( "username" ) . get ( cb ) ; }

Target:
public static void getUsername ( java.lang.String account , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.rpc.NativeString > cb ) { new com.google.gerrit.client.rpc.RestApi ( "/accounts/" ) . id ( account ) . view ( "username" ) . get ( cb ) ; }
Source:
private void readObject ( final java.io.ObjectInputStream in ) throws java.io.IOException { aId = org.eclipse.jgit.lib.ObjectIdSerialization.readNotNull ( in ) ; bId = org.eclipse.jgit.lib.ObjectIdSerialization.readNotNull ( in ) ; }

Target:
private void readObject ( final java.io.ObjectInputStream in ) throws java.io.IOException { aId = org.eclipse.jgit.lib.ObjectIdSerialization.readNotNull ( in ) ; bId = org.eclipse.jgit.lib.ObjectIdSerialization.readNotNull ( in ) ; ignoreWhitespace = in.readBoolean ( ) ; }
Source:
public void invalidNonceNotChecked ( ) throws java.lang.Exception { checker = newChecker ( false ) ; org.eclipse.jgit.transport.PushCertificate cert = newSignedCert ( "invalid-nonce" , com.google.gerrit.gpg.testutil.TestKeys.key1 ( ) ) ; assertProblems ( cert ) ; }

Target:
public void invalidNonceNotChecked ( ) throws java.lang.Exception { checker = newChecker ( false ) ; org.eclipse.jgit.transport.PushCertificate cert = newSignedCert ( "invalid-nonce" , com.google.gerrit.gpg.testutil.TestKeys.validKeyWithoutExpiration ( ) ) ; assertProblems ( cert ) ; }
Source:
private int getVote ( com.google.gerrit.extensions.api.changes.ChangeApi change , java.lang.String label ) throws com.google.gerrit.extensions.restapi.RestApiException { return change.get ( java.util.EnumSet.of ( ListChangesOption.DETAILED_LABELS ) ) . labels.get ( label ) . all.get ( 0 ) . value ; }

Target:
private com.google.gerrit.extensions.common.ApprovalInfo getVote ( com.google.gerrit.extensions.api.changes.ChangeApi change , java.lang.String label ) throws com.google.gerrit.extensions.restapi.RestApiException { return change.get ( java.util.EnumSet.of ( ListChangesOption.DETAILED_LABELS ) ) . labels.get ( label ) . all.get ( 0 ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo result ) { fetch = result.revision ( revision ) . fetch ( ) ; renderScheme ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo.EditInfo result ) { fetch = result.fetch ( ) ; renderScheme ( ) ; }
Source:
com.google.gerrit.server.index.ChangeIndexer getChangeIndexer ( com.google.gerrit.server.index.ChangeIndexer.Factory factory , com.google.gerrit.server.index.IndexCollection indexes ) { return factory.create ( indexes ) ; }

Target:
com.google.gerrit.server.index.ChangeIndexer getChangeIndexer ( @ com.google.gerrit.server.index.IndexExecutor ( value = com.google.gerrit.server.git.QueueProvider.QueueType.INTERACTIVE ) com.google.common.util.concurrent.ListeningExecutorService executor , com.google.gerrit.server.index.ChangeIndexer.Factory factory , com.google.gerrit.server.index.IndexCollection indexes ) { return factory.create ( executor , indexes ) ; }
Source:
public com.google.gerrit.extensions.common.AccountInfo setAssignee ( com.google.gerrit.extensions.api.changes.AssigneeInput input ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return putAssignee.apply ( change , input ) ; } catch ( com.google.gerrit.server.update.UpdateException | java.io.IOException | com.google.gwtorm.server.OrmException | com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot set assignee" , e ) ; } }

Target:
public com.google.gerrit.extensions.common.AccountInfo setAssignee ( com.google.gerrit.extensions.api.changes.AssigneeInput input ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return putAssignee.apply ( change , input ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot set assignee" , e ) ; } }
Source:
public com.google.gerrit.client.reviewdb.Account run ( com.google.gerrit.client.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException { return db.accounts ( ) . get ( com.google.gerrit.client.rpc.RpcUtil.getAccountId ( ) ) ; }

Target:
public com.google.gerrit.client.reviewdb.Account run ( com.google.gerrit.client.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException { return db.accounts ( ) . get ( com.google.gerrit.client.rpc.Common.getAccountId ( ) ) ; }
Source:
void addStates ( com.google.common.collect.Multimap < java.lang.String , com.googlesource.gerrit.plugins.replication.ReplicationState > states ) { stateMap.putAll ( states ) ; }

Target:
void addStates ( com.google.common.collect.ListMultimap < java.lang.String , com.googlesource.gerrit.plugins.replication.ReplicationState > states ) { stateMap.putAll ( states ) ; }
Source:
public void onFailure ( java.lang.Throwable caught ) { sendButton.setEnabled ( true ) ; cancelButton.setEnabled ( true ) ; super . onFailure ( caught ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { sendButton.setEnabled ( false ) ; cancelButton.setEnabled ( false ) ; onSend ( ) ; }
Source:
private Change.Id getIdFromRequest ( java.lang.String path ) { java.lang.String changeId = path.substring ( ( ( path.lastIndexOf ( '/' ) ) + 1 ) ) ; return Change.Id.parse ( changeId ) ; }

Target:
private void removeChangeIdLock ( com.google.gerrit.reviewdb.client.Change.Id id ) { synchronized ( com.ericsson.gerrit.plugins.syncindex.SyncIndexRestApiServlet.changeIdLocks ) { com.ericsson.gerrit.plugins.syncindex.SyncIndexRestApiServlet.changeIdLocks.remove ( id ) ; } }
Source:
private final native void setEndLine ( int el ) ;

Target:
private final native void set ( int sl , int sc , int el , int ec ) ;
Source:
public void run ( ) { if ( cm.vim ( ) . hasSearchHighlight ( ) ) { cm.vim ( ) . handleKey ( "n" ) ; } else { getCommentManager ( ) . commentNav ( cm , Direction.NEXT ) . run ( ) ; } }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { toggleShowIntraline ( ) ; }
Source:
public final java.lang.String getShortName ( ) { return ref ( ) . startsWith ( Branch.R_HEADS ) ? ref ( ) . substring ( Branch.R_HEADS.length ( ) ) : ref ( ) ; }

Target:
public final java.lang.String getShortName ( ) { return com.google.gerrit.reviewdb.client.RefNames.shortName ( ref ( ) ) ; }
Source:
com.google.gerrit.server.change.ChangeInserter create ( org.eclipse.jgit.lib.Repository git , org.eclipse.jgit.revwalk.RevWalk revWalk , com.google.gerrit.server.project.ProjectControl ctl , com.google.gerrit.reviewdb.client.Change c , org.eclipse.jgit.revwalk.RevCommit rc ) ;

Target:
com.google.gerrit.server.change.ChangeInserter create ( com.google.gerrit.server.project.RefControl ctl , com.google.gerrit.reviewdb.client.Change c , org.eclipse.jgit.revwalk.RevCommit rc ) ;
Source:
public < I > com.google.gerrit.server.index.FieldDef < I , T > build ( com.google.gerrit.server.index.FieldDef.GetterWithArgs < I , T > getter ) { return new com.google.gerrit.server.index.FieldDef ( name , type , stored , false , getter ) ; }

Target:
public < I > com.google.gerrit.server.index.FieldDef < I , T > build ( com.google.gerrit.server.index.FieldDef.Getter < I , T > getter ) { return new com.google.gerrit.server.index.FieldDef ( name , type , stored , false , getter ) ; }
Source:
private boolean isRepo ( java.nio.file.Path p ) { java.lang.String name = p.getFileName ( ) . toString ( ) ; return ( ! ( name.equals ( Constants.DOT_GIT ) ) ) && ( name.endsWith ( Constants.DOT_GIT ) ) ; }

Target:
private boolean isRepo ( java.nio.file.Path p ) { java.lang.String name = p.getFileName ( ) . toString ( ) ; return ( ! ( name.equals ( Constants.DOT_GIT ) ) ) && ( name.endsWith ( Constants.DOT_GIT_EXT ) ) ; }
Source:
private com.google.gerrit.server.notedb.ChangeNotesParser newParser ( org.eclipse.jgit.lib.ObjectId tip ) throws java.lang.Exception { walk.reset ( ) ; return new com.google.gerrit.server.notedb.ChangeNotesParser ( newChange ( ) . getId ( ) , tip , walk , noteUtil , args.metrics ) ; }

Target:
private com.google.gerrit.server.notedb.ChangeNotesParser newParser ( org.eclipse.jgit.lib.ObjectId tip ) throws java.lang.Exception { walk.reset ( ) ; com.google.gerrit.server.notedb.ChangeNoteUtil noteUtil = injector.getInstance ( com.google.gerrit.server.notedb.ChangeNoteUtil.class ) ; return new com.google.gerrit.server.notedb.ChangeNotesParser ( newChange ( ) . getId ( ) , tip , walk , noteUtil , args.metrics ) ; }
Source:
public static boolean isMagic ( java.lang.String path ) { return com.google.gerrit.reviewdb.client.Patch.COMMIT_MSG.equals ( path ) ; }

Target:
public static boolean isMagic ( java.lang.String path ) { return ( com.google.gerrit.reviewdb.client.Patch.COMMIT_MSG.equals ( path ) ) || ( com.google.gerrit.reviewdb.client.Patch.MERGE_LIST.equals ( path ) ) ; }
Source:
public org.eclipse.jgit.lib.ObjectInserter getInserter ( ) throws java.io.IOException { return this . getObjectInserter ( ) ; }

Target:
public org.eclipse.jgit.lib.ObjectInserter getInserter ( ) throws java.io.IOException { return getRepoView ( ) . getInserter ( ) ; }
Source:
public com.google.gerrit.server.project.SubmitRuleEvaluator setRule ( @ com.google.gerrit.common.Nullable java.lang.String rule ) { this . rule = rule ; return this ; }

Target:
public com.google.gerrit.server.project.SubmitRuleEvaluator setFastEvalLabels ( boolean fast ) { checkNotStarted ( ) ; optsBuilder.fastEvalLabels ( fast ) ; return this ; }
Source:
public com.google.gerrit.server.change.ChangeInserter setMessage ( com.google.gerrit.reviewdb.client.ChangeMessage changeMessage ) { this . changeMessage = changeMessage ; return this ; }

Target:
private static com.google.gerrit.server.IdentifiedUser checkUser ( com.google.gerrit.server.project.RefControl ctl ) { com.google.common.base.Preconditions.checkArgument ( ctl.getCurrentUser ( ) . isIdentifiedUser ( ) , "only IdentifiedUser may create change" ) ; return ( ( com.google.gerrit.server.IdentifiedUser ) ( ctl.getCurrentUser ( ) ) ) ; }
Source:
private java.lang.Iterable < com.google.gerrit.extensions.common.AccountInfo > getReviewers ( com.google.gerrit.acceptance.PushOneCommit.Result r , com.google.gerrit.extensions.client.ReviewerState state ) throws java.lang.Exception { return get ( r.getChangeId ( ) ) . reviewers.get ( state ) ; }

Target:
private java.lang.Iterable < com.google.gerrit.extensions.common.AccountInfo > getReviewers ( com.google.gerrit.acceptance.PushOneCommit.Result r , com.google.gerrit.extensions.client.ReviewerState state ) throws java.lang.Exception { return get ( r.getChangeId ( ) , com.google.gerrit.extensions.client.ListChangesOption.DETAILED_LABELS ) . reviewers.get ( state ) ; }
Source:
public void test ( ) throws java.lang.Exception { java.lang.String [ ] invalidFilenamePattern = new java.lang.String [ ] { "\\[|\\]|\\*|#" , "[%:@]" } ; org.eclipse.jgit.revwalk.RevCommit c = makeCommit ( ) ; java.util.List < com.google.gerrit.server.git.validators.CommitValidationMessage > m = com.googlesource.gerrit.plugins.uploadvalidator.InvalidFilenameValidator.performValidation ( repo , c , invalidFilenamePattern ) ; java.util.Set < java.lang.String > expected = new java.util.HashSet < > ( ) ; for ( java.lang.String filenames : getInvalidFilenames ( ) ) { expected.add ( ( "ERROR: invalid characters found in filename: " + filenames ) ) ; } com.google.common.truth.Truth.assertThat ( com.googlesource.gerrit.plugins.uploadvalidator.TestUtils.transformMessages ( m ) ) . containsExactlyElementsIn ( expected ) ; }

Target:
public void test ( ) throws java.lang.Exception { java.lang.String [ ] invalidFilenamePattern = new java.lang.String [ ] { "\\[|\\]|\\*|#" , "[%:@]" } ; org.eclipse.jgit.revwalk.RevCommit c = makeCommit ( ) ; java.util.List < com.google.gerrit.server.git.validators.CommitValidationMessage > m = com.googlesource.gerrit.plugins.uploadvalidator.InvalidFilenameValidator.performValidation ( repo , c , invalidFilenamePattern ) ; java.util.Set < java.lang.String > expected = new java.util.HashSet < > ( ) ; for ( java.lang.String filenames : com.googlesource.gerrit.plugins.uploadvalidator.InvalidFilenameValidatorTest.getInvalidFilenames ( ) ) { expected.add ( ( "ERROR: invalid characters found in filename: " + filenames ) ) ; } com.google.common.truth.Truth.assertThat ( com.googlesource.gerrit.plugins.uploadvalidator.TestUtils.transformMessages ( m ) ) . containsExactlyElementsIn ( expected ) ; }
Source:
protected com.google.gerrit.index.query.Predicate < com.google.gerrit.server.query.change.ChangeData > enforceVisibility ( com.google.gerrit.index.query.Predicate < com.google.gerrit.server.query.change.ChangeData > pred ) { return new com.google.gerrit.server.query.change.AndChangeSource ( pred , new com.google.gerrit.server.query.change.ChangeIsVisibleToPredicate ( db , notesFactory , userProvider.get ( ) , permissionBackend ) , start ) ; }

Target:
protected com.google.gerrit.index.query.Predicate < com.google.gerrit.server.query.change.ChangeData > enforceVisibility ( com.google.gerrit.index.query.Predicate < com.google.gerrit.server.query.change.ChangeData > pred ) { return new com.google.gerrit.server.query.change.AndChangeSource ( pred , new com.google.gerrit.server.query.change.ChangeIsVisibleToPredicate ( db , notesFactory , userProvider.get ( ) , permissionBackend , projectCache ) , start ) ; }
Source:
private org.eclipse.jgit.lib.PersonIdent getCommitterIdent ( com.google.gerrit.server.IdentifiedUser user ) { return user.newCommitterIdent ( com.google.gerrit.common.TimeUtil.nowTs ( ) , tz ) ; }

Target:
private org.eclipse.jgit.lib.PersonIdent getRefLogIdent ( com.google.gerrit.server.IdentifiedUser user , java.sql.Timestamp when ) { return user.newRefLogIdent ( when , tz ) ; }
Source:
public void deleteBranchByProjectOwnerForcePushBlocked_Forbidden ( ) throws java.lang.Exception { grantOwner ( ) ; blockForcePush ( ) ; setApiUser ( user ) ; assertDeleteForbidden ( ) ; }

Target:
public void deleteBranchByAdminForcePushBlocked ( ) throws java.lang.Exception { blockForcePush ( ) ; assertDeleteSucceeds ( testBranch ) ; }
Source:
private com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > rewrite ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in ) throws com.google.gerrit.server.query.QueryParseException { return rewrite.rewrite ( in , 0 , com.google.gerrit.common.data.GlobalCapability.DEFAULT_MAX_QUERY_LIMIT ) ; }

Target:
private com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > rewrite ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in , com.google.gerrit.server.query.change.QueryOptions opts ) throws com.google.gerrit.server.query.QueryParseException { return rewrite.rewrite ( in , opts ) ; }
Source:
public static void publishEdit ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gwt.core.client.JavaScriptObject in = com.google.gwt.core.client.JavaScriptObject.createObject ( ) ; com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( "edit:publish" ) . post ( in , cb ) ; }

Target:
public static void rebaseEdit ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gwt.core.client.JavaScriptObject in = com.google.gwt.core.client.JavaScriptObject.createObject ( ) ; com.google.gerrit.client.changes.ChangeApi.change ( project , id ) . view ( "edit:rebase" ) . post ( in , cb ) ; }
Source:
public void pushEntity ( ) { mv.visitVarInsn ( com.google.gwtorm.protobuf.ALOAD , 1 ) ; }

Target:
void pushCodedOutputStream ( ) { mv.visitVarInsn ( com.google.gwtorm.protobuf.ALOAD , 2 ) ; }
Source:
private static com.google.common.collect.Table < java.lang.String , com.google.gerrit.reviewdb.client.Account.Id , com.google.common.base.Optional < java.lang.Short > > approvals ( java.util.Comparator < java.lang.String > nameComparator ) { return com.google.common.collect.TreeBasedTable.create ( nameComparator , com.google.gerrit.reviewdb.server.ReviewDbUtil.intKeyOrdering ( ) ) ; }

Target:
private static com.google.common.collect.Table < java.lang.String , com.google.gerrit.reviewdb.client.Account.Id , com.google.common.base.Optional < java.lang.Short > > approvals ( java.util.Comparator < java.lang.String > nameComparator ) { return com.google.common.collect.TreeBasedTable.create ( nameComparator , java.util.Comparator.comparing ( IntKey :: get ) ) ; }
Source:
private PushOneCommit.Result createChangeWithTopic ( ) throws java.lang.Exception { return pushFactory.create ( db , admin.getIdent ( ) , testRepo , "a message" , "a.txt" , "content\n" ) . to ( ( "refs/for/master/" + ( name ( "topic" ) ) ) ) ; }

Target:
private PushOneCommit.Result createANewChangeWithTopic ( ) throws java.lang.Exception { return pushFactory.create ( db , admin.getIdent ( ) , testRepo , "a message" , "a.txt" , "content\n" ) . to ( ( "refs/for/master/" + ( name ( "topic" ) ) ) ) ; }
Source:
void add ( org.pegdown.ast.RootNode node ) { for ( org.pegdown.ast.ReferenceNode ref : node.getReferences ( ) ) { java.lang.String id = com.google.gitiles.doc.MarkdownHelper.getInnerText ( ref ) ; references.put ( com.google.gitiles.doc.ReferenceMap.key ( id ) , ref ) ; } }

Target:
void add ( org.pegdown.ast.RootNode node ) { for ( org.pegdown.ast.ReferenceNode ref : node.getReferences ( ) ) { java.lang.String id = com.google.gitiles.doc.MarkdownUtil.getInnerText ( ref ) ; references.put ( com.google.gitiles.doc.ReferenceMap.key ( id ) , ref ) ; } }
Source:
private static void setCompression ( final org.apache.sshd.SshServer daemon ) { daemon.setCompressionFactories ( java.util.Arrays.< org.apache.sshd.common.NamedFactory < org.apache.sshd.common.Compression > > asList ( new org.apache.sshd.common.compression.CompressionNone.Factory ( ) ) ) ; }

Target:
private void initCompression ( ) { setCompressionFactories ( java.util.Arrays.< org.apache.sshd.common.NamedFactory < org.apache.sshd.common.Compression > > asList ( new org.apache.sshd.common.compression.CompressionNone.Factory ( ) ) ) ; }
Source:
public void invalidNonce ( ) throws java.lang.Exception { org.eclipse.jgit.transport.PushCertificate cert = newSignedCert ( "invalid-nonce" , com.google.gerrit.gpg.testutil.TestKeys.validKeyWithoutExpiration ( ) ) ; assertProblems ( cert , "Invalid nonce" ) ; }

Target:
public void invalidNonce ( ) throws java.lang.Exception { org.eclipse.jgit.transport.PushCertificate cert = newSignedCert ( "invalid-nonce" , com.google.gerrit.gpg.testing.TestKeys.validKeyWithoutExpiration ( ) ) ; assertProblems ( cert , "Invalid nonce" ) ; }
Source:
public void run ( ) { cm.getInputField ( ) . blur ( ) ; clearActiveLine ( cm ) ; clearActiveLine ( otherCm ( cm ) ) ; }

Target:
public void run ( ) { switch ( getIntraLineStatus ( ) ) { case OFF : case OK : toggleShowIntraline ( ) ; break ; default : break ; } }
Source:
public void onClick ( com.google.gwt.user.client.ui.Widget sender ) { com.google.gerrit.client.Gerrit.display ( ( "change,publish," + ( patchSet.getId ( ) . toString ( ) ) ) , new com.google.gerrit.client.changes.PublishCommentScreen ( patchSet.getId ( ) ) ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { com.google.gerrit.client.Gerrit.display ( ( "change,publish," + ( patchSet.getId ( ) . toString ( ) ) ) , new com.google.gerrit.client.changes.PublishCommentScreen ( patchSet.getId ( ) ) ) ; }
Source:
protected com.google.inject.Injector createInjector ( com.google.gerrit.lifecycle.LifecycleManager lifecycle ) { org.eclipse.jgit.lib.Config luceneConfig = new org.eclipse.jgit.lib.Config ( config ) ; com.google.gerrit.testutil.InMemoryModule.setDefaults ( luceneConfig ) ; return com.google.gerrit.testutil.InMemoryModule.createInjector ( lifecycle , luceneConfig ) ; }

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:
static com.google.gerrit.server.notedb.InsertedObject create ( int type , byte [ ] src , int off , int len ) { return com.google.gerrit.server.notedb.InsertedObject.create ( type , com.google.protobuf.ByteString.copyFrom ( src , off , len ) ) ; }

Target:
static com.google.gerrit.server.git.InsertedObject create ( int type , byte [ ] src , int off , int len ) { return com.google.gerrit.server.git.InsertedObject.create ( type , com.google.protobuf.ByteString.copyFrom ( src , off , len ) ) ; }
Source:
private static java.lang.String base ( com.google.gerrit.reviewdb.client.Project.NameKey project ) { java.lang.String name = com.google.gwt.http.client.URL.encodePathSegment ( project.get ( ) ) ; return ( "/projects/" + name ) + "/dashboards/" ; }

Target:
private static com.google.gerrit.client.rpc.RestApi base ( com.google.gerrit.reviewdb.client.Project.NameKey project ) { return new com.google.gerrit.client.rpc.RestApi ( "/projects/" ) . id ( project.get ( ) ) . view ( "dashboards" ) ; }
Source:
public void update ( com.googlesource.gerrit.plugins.github.git.GitJobStatus.Code code , java.lang.String shortDescription , java.lang.String description ) { this . status = code ; this . shortDescription = shortDescription ; this . value = description ; }

Target:
public void update ( com.googlesource.gerrit.plugins.github.git.GitJobStatus.Code code , java.lang.String sDescription , java.lang.String description ) { this . status = code ; this . shortDescription = sDescription ; this . value = description ; }
Source:
public void run ( ) { net.codemirror.lib.CodeMirror.handleVimKey ( cm , "<C-u>" ) ; }

Target:
void updateUnsaved ( com.google.gerrit.client.diff.DraftBox box , boolean isUnsaved ) { if ( isUnsaved ) { unsaved.add ( box ) ; } else { unsaved.remove ( box ) ; } }
Source:
public boolean isVisibleTo ( com.google.gerrit.reviewdb.client.Account.Id account ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.server.IdentifiedUser who = identifiedUserFactory.create ( dbProvider , account ) ; return rsrc.getControl ( ) . forUser ( who ) . isRefVisible ( ) ; }

Target:
public boolean getSuggestAccounts ( ) { return suggestAccounts ; }
Source:
public void zipFormatDisabled ( ) throws java.lang.Exception { archiveNotPermitted ( ) ; }

Target:
public void zipFormatDisabled ( ) throws java.lang.Exception { assertArchiveNotPermitted ( ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { gotoSibling ( 1 ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { onCollapseAll ( null ) ; }
Source:
public void remove ( ) { descriptions.remove ( name ) ; registry.remove ( name ) ; }

Target:
synchronized void remove ( java.lang.String name ) { bucketed.remove ( name ) ; descriptions.remove ( name ) ; }
Source:
private com.google.gerrit.server.query.change.InternalChangeQuery query ( ) { java.util.Set < java.lang.String > fields = com.google.common.collect.ImmutableSet.of ( ChangeField.CHANGE.getName ( ) , ChangeField.PATCH_SET.getName ( ) , ChangeField.MERGEABLE.getName ( ) ) ; return queryProvider.get ( ) . setRequestedFields ( fields ) ; }

Target:
public static com.google.gerrit.server.query.change.InternalChangeQuery query ( com.google.gerrit.server.query.change.InternalChangeQuery q ) { java.util.Set < java.lang.String > fields = com.google.common.collect.ImmutableSet.of ( ChangeField.CHANGE.getName ( ) , ChangeField.PATCH_SET.getName ( ) , ChangeField.MERGEABLE.getName ( ) ) ; return q.setRequestedFields ( fields ) ; }
Source:
public java.util.Optional < java.lang.String > getUserName ( ) { return java.util.Optional.of ( username ) ; }

Target:
public java.util.Optional < java.lang.String > getUserName ( ) { return java.util.Optional.ofNullable ( username ) ; }
Source:
java.lang.String process ( ) ;

Target:
java.util.Optional < com.googlesource.gerrit.plugins.webhooks.EventProcessor.Request > process ( com.google.gerrit.server.events.ProjectEvent event , com.googlesource.gerrit.plugins.webhooks.RemoteConfig remote ) ;
Source:
protected com.google.gerrit.server.notedb.ChangeUpdate newUpdate ( com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.server.CurrentUser user ) throws java.lang.Exception { return com.google.gerrit.testutil.TestChanges.newUpdate ( injector , c , user ) ; }

Target:
protected com.google.gerrit.server.notedb.ChangeUpdate newUpdate ( com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.server.CurrentUser user ) throws java.lang.Exception { com.google.gerrit.server.notedb.ChangeUpdate update = com.google.gerrit.testutil.TestChanges.newUpdate ( injector , c , user ) ; update.setAllowWriteToNewRef ( true ) ; return update ; }
Source:
static com.google.gerrit.server.git.CodeReviewCommit noPatchSet ( ) { return com.google.gerrit.server.git.CodeReviewCommit.error ( CommitMergeStatus.NO_PATCH_SET ) ; }

Target:
static com.google.gerrit.server.git.CodeReviewCommit noPatchSet ( com.google.gerrit.server.project.ChangeControl ctl ) { return com.google.gerrit.server.git.CodeReviewCommit.error ( ctl , CommitMergeStatus.NO_PATCH_SET ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { try { new Main ( ) . invoke ( args ) ; } catch ( java.io.IOException e ) { java.lang.System.err.println ( e.getMessage ( ) ) ; java.lang.System.exit ( 1 ) ; } }

Target:
public static void main ( java.lang.String [ ] args ) { try { new AsciiDoctor ( ) . invoke ( args ) ; } catch ( java.io.IOException e ) { java.lang.System.err.println ( e.getMessage ( ) ) ; java.lang.System.exit ( 1 ) ; } }
Source:
public < T extends com.google.gwt.core.client.JavaScriptObject > void get ( com.google.gwtjsonrpc.common.AsyncCallback < T > cb ) { send ( com.google.gwt.http.client.RequestBuilder.GET , cb ) ; }

Target:
public < T extends com.google.gwt.core.client.JavaScriptObject > void post ( com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { send ( com.google.gwt.http.client.RequestBuilder.POST , cb ) ; }
Source:
public com.google.gerrit.acceptance.PushOneCommit.Result rm ( org.eclipse.jgit.api.Git git , java.lang.String ref ) throws org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.GitUtil.rm ( git , fileName ) ; return execute ( git , ref ) ; }

Target:
com.google.gerrit.acceptance.PushOneCommit create ( com.google.gerrit.reviewdb.server.ReviewDb db , org.eclipse.jgit.lib.PersonIdent i , org.eclipse.jgit.api.Git git , @ com.google.inject.assistedinject.Assisted ( value = "subject" ) java.lang.String subject , @ com.google.inject.assistedinject.Assisted ( value = "fileName" ) java.lang.String fileName , @ com.google.inject.assistedinject.Assisted ( value = "content" ) java.lang.String content ) ;
Source:
static com.google.gerrit.server.notedb.NotesMigration allEnabled ( ) { org.eclipse.jgit.lib.Config cfg = new org.eclipse.jgit.lib.Config ( ) ; cfg.setBoolean ( "notedb" , null , "write" , true ) ; return new com.google.gerrit.server.notedb.NotesMigration ( cfg ) ; }

Target:
static com.google.gerrit.server.notedb.NotesMigration allEnabled ( ) { org.eclipse.jgit.lib.Config cfg = new org.eclipse.jgit.lib.Config ( ) ; cfg.setBoolean ( "notedb" , null , "write" , true ) ; cfg.setBoolean ( "notedb" , "patchSetApprovals" , "read" , true ) ; return new com.google.gerrit.server.notedb.NotesMigration ( cfg ) ; }
Source:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > indexAsync ( 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 ) , false ) ) : com.google.common.util.concurrent.Futures.< java.lang.Object , java.io.IOException > immediateCheckedFuture ( null ) ; }

Target:
public void index ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Change change ) throws java.io.IOException { index ( changeDataFactory.create ( db , change ) ) ; }
Source:
public final native void setActiveLine ( int line ) ;

Target:
public final native boolean somethingSelected ( ) ;
Source:
protected void configureServlets ( ) { serve ( "/become" ) . with ( com.google.gerrit.server.http.BecomeAnyAccountLoginServlet.class ) ; }

Target:
private com.google.inject.Injector createWebInjector ( ) { final java.util.List < com.google.inject.Module > modules = new java.util.ArrayList < com.google.inject.Module > ( ) ; modules.add ( sshInjector.getInstance ( com.google.gerrit.server.http.WebModule.class ) ) ; return sysInjector.createChildInjector ( modules ) ; }
Source:
public void onFailure ( java.lang.Throwable caught ) { }

Target:
public void onFailure ( java.lang.Throwable caught ) { b.setEnabled ( true ) ; }
Source:
void setContext ( final int context ) { operation ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { getSkipManager ( ) . removeAll ( ) ; getSkipManager ( ) . render ( context , diff ) ; updateRenderEntireFile ( ) ; } } ) ; }

Target:
void maybeRegisterRenderEntireFileKeyMap ( net.codemirror.lib.CodeMirror cm ) { if ( renderEntireFile ( ) ) { cm.addKeyMap ( com.google.gerrit.client.diff.DiffScreen.RENDER_ENTIRE_FILE_KEYMAP ) ; } }
Source:
public void onSuccess ( com.google.gerrit.client.changes.ReviewInput result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange2 ( changeId ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.ReviewInput result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( changeId ) ) ; }
Source:
public void publish ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { publish.apply ( revision , new com.google.gerrit.server.change.PublishDraftPatchSet.Input ( ) ) ; } catch ( com.google.gwtorm.server.OrmException | java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot publish draft patch set" , e ) ; } }

Target:
public void publish ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { publish.apply ( revision , new com.google.gerrit.server.change.PublishDraftPatchSet.Input ( ) ) ; } catch ( com.google.gerrit.server.git.UpdateException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot publish draft patch set" , e ) ; } }
Source:
public final native void intralineDifference ( boolean i ) ;

Target:
public final native void skipDeleted ( java.lang.Boolean s ) ;
Source:
public static void updateDraft ( com.google.gerrit.reviewdb.client.PatchSet.Id id , java.lang.String draftId , com.google.gerrit.client.changes.CommentInfo content , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.changes.CommentInfo > cb ) { com.google.gerrit.client.changes.CommentApi.revision ( id , "drafts" ) . id ( draftId ) . put ( content , cb ) ; }

Target:
public static void deleteDraft ( @ com.google.gerrit.common.Nullable java.lang.String project , com.google.gerrit.reviewdb.client.PatchSet.Id id , java.lang.String draftId , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gerrit.client.changes.CommentApi.revision ( project , id , "drafts" ) . id ( draftId ) . delete ( cb ) ; }
Source:
public boolean equals ( java.lang.Object other ) { if ( other instanceof com.google.gerrit.server.query.change.ChangeStatusPredicate ) { final com.google.gerrit.server.query.change.ChangeStatusPredicate p = ( ( com.google.gerrit.server.query.change.ChangeStatusPredicate ) ( other ) ) ; return status.equals ( p.status ) ; } return false ; }

Target:
public boolean equals ( java.lang.Object other ) { return ( other instanceof com.google.gerrit.server.query.change.ChangeStatusPredicate ) && ( java.util.Objects.equals ( status , ( ( com.google.gerrit.server.query.change.ChangeStatusPredicate ) ( other ) ) . status ) ) ; }
Source:
public com.google.reviewit.app.Preferences build ( ) { return new com.google.reviewit.app.Preferences ( showIntro , colorBackground , showPatchSets , showPositiveCodeReviewVotes , showNegativeCodeReviewVotes , showComments , showReviewers , commitMessageFontSize ) ; }

Target:
public com.google.reviewit.app.Preferences build ( ) { return new com.google.reviewit.app.Preferences ( showIntro , startScreen , colorBackground , showPatchSets , showPositiveCodeReviewVotes , showNegativeCodeReviewVotes , showComments , showReviewers , commitMessageFontSize ) ; }
Source:
private void doReplay ( ) { org.easymock.classextension.EasyMock.replay ( mockDb , pc , pcf , grm ) ; }

Target:
private void doReplay ( ) { org.easymock.classextension.EasyMock.replay ( mockDb , pc , pcf , grm ) ; org.easymock.classextension.EasyMock.replay ( refMocks.toArray ( ) ) ; }
Source:
private static boolean correctUser ( java.lang.String user , com.google.gerrit.httpd.WebSession session ) { com.google.gerrit.reviewdb.client.AccountExternalId.Key id = session.getLastLoginExternalId ( ) ; return ( id != null ) && ( id.equals ( new com.google.gerrit.reviewdb.client.AccountExternalId.Key ( com.google.gerrit.reviewdb.client.AccountExternalId.SCHEME_GERRIT , user ) ) ) ; }

Target:
private static boolean correctUser ( java.lang.String user , com.google.gerrit.httpd.WebSession session ) { com.google.gerrit.server.account.ExternalId.Key id = session.getLastLoginExternalId ( ) ; return ( id != null ) && ( id.equals ( ExternalId.Key.create ( com.google.gerrit.server.account.ExternalId.SCHEME_GERRIT , user ) ) ) ; }
Source:
private void ensureOptionsInitialized ( ) { if ( ( options ) == null ) { help = new com.google.gerrit.util.cli.CmdLineParser.HelpOption ( ) ; options = new java.util.ArrayList < org.kohsuke.args4j.spi.OptionHandler > ( ) ; addOption ( help , help ) ; } }

Target:
private void ensureOptionsInitialized ( ) { if ( ( options ) == null ) { help = new com.google.gerrit.util.cli.CmdLineParser.HelpOption ( ) ; options = com.google.common.collect.Lists.newArrayList ( ) ; addOption ( help , help ) ; } }
Source:
protected boolean isVisibleTo ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.server.CurrentUser user ) { com.google.gerrit.server.project.ProjectState pe = projectCache.get ( project ) ; if ( pe == null ) { return false ; } return pe.controlFor ( user ) . isVisible ( ) ; }

Target:
protected boolean isVisibleTo ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.server.CurrentUser user ) { try { permissionBackend.user ( user ) . project ( project ) . check ( ProjectPermission.ACCESS ) ; return true ; } catch ( com.google.gerrit.extensions.restapi.AuthException | com.google.gerrit.server.permissions.PermissionBackendException e ) { return false ; } }
Source:
public void entity ( java.lang.String entity ) { com.google.common.base.Preconditions.checkArgument ( com.google.gitiles.doc.html.HtmlBuilder.HTML_ENTITY.matcher ( entity ) . matches ( ) , "invalid entity %s" , entity ) ; finishActiveTag ( ) ; htmlBuf.append ( entity ) ; }

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:
public void evict ( com.google.gerrit.reviewdb.Project p ) ;

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > evictAsync ( com.google.gerrit.reviewdb.Project p ) ;
Source:
public static void addOptions ( com.google.gerrit.plugin.client.rpc.RestApi call , java.util.EnumSet < com.googlesource.gerrit.plugins.xdocs.client.ListChangesOption > s ) { call.addParameterRaw ( "O" , java.lang.Integer.toHexString ( com.googlesource.gerrit.plugins.xdocs.client.ListChangesOption.toBits ( s ) ) ) ; }

Target:
public static void addOptions ( com.google.gerrit.plugin.client.rpc.RestApi call , java.util.EnumSet < com.google.gerrit.extensions.client.ListChangesOption > s ) { call.addParameterRaw ( "O" , java.lang.Integer.toHexString ( com.google.gerrit.extensions.client.ListChangesOption.toBits ( s ) ) ) ; }
Source:
public void addGlue ( ) { addSeparator ( ) . setStyleName ( "gerrit-FillMenuCenter" ) ; }

Target:
public void clear ( ) { body.clear ( ) ; }
Source:
public com.google.gerrit.server.query.InternalQuery < T > setRequestedFields ( java.util.Set < java.lang.String > fields ) { queryProcessor.setRequestedFields ( fields ) ; return this ; }

Target:
public com.google.gerrit.index.query.InternalQuery < T > setRequestedFields ( java.util.Set < java.lang.String > fields ) { queryProcessor.setRequestedFields ( fields ) ; return this ; }
Source:
public void onClick ( android.view.View v ) { disableButtons ( ) ; getSortActionHandler ( ) . skip ( ) ; animate ( changeBox , SortActionHandler.Action.SKIP ) ; }

Target:
public void onClick ( android.view.View v ) { disableButtons ( ) ; getSortActionHandler ( ) . skip ( ) ; animate ( changeBox , SortActionHandler.Action.SKIP ) ; widgetUtil.toast ( R.string.change_skipped ) ; }
Source:
com.google.gwtorm.client.ResultSet < com.google.gerrit.reviewdb.AccountGroup > ownedByGroup ( com.google.gerrit.reviewdb.AccountGroup.Id groupId ) throws com.google.gwtorm.client.OrmException ;

Target:
com.google.gwtorm.client.ResultSet < com.google.gerrit.reviewdb.AccountGroup > byUUID ( com.google.gerrit.reviewdb.AccountGroup.UUID uuid ) throws com.google.gwtorm.client.OrmException ;
Source:
public com.google.gerrit.acceptance.AcceptanceTestRequestScope.Context newContext ( com.google.gwtorm.server.SchemaFactory < com.google.gerrit.reviewdb.server.ReviewDb > sf , com.google.gerrit.acceptance.SshSession s , com.google.gerrit.server.CurrentUser user ) { return new com.google.gerrit.acceptance.AcceptanceTestRequestScope.Context ( sf , s , user , com.google.gerrit.server.util.TimeUtil.nowMs ( ) ) ; }

Target:
public com.google.gerrit.acceptance.AcceptanceTestRequestScope.Context newContext ( com.google.gwtorm.server.SchemaFactory < com.google.gerrit.reviewdb.server.ReviewDb > sf , com.google.gerrit.acceptance.SshSession s , com.google.gerrit.server.CurrentUser user ) { return new com.google.gerrit.acceptance.AcceptanceTestRequestScope.Context ( sf , s , user , com.google.gerrit.common.TimeUtil.nowMs ( ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { testEnv.getInjector ( ) . injectMembers ( this ) ; db = testEnv.getDb ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { testEnv.getInjector ( ) . injectMembers ( this ) ; db = testEnv.getDb ( ) ; com.google.common.truth.TruthJUnit.assume ( ) . that ( ( ( db ) instanceof com.google.gwtorm.jdbc.JdbcSchema ) ) . isTrue ( ) ; }
Source:
public void confirmInvalidToken_UnprocessableEntity ( ) throws java.lang.Exception { com.google.gerrit.server.config.ConfirmEmail.Input in = new com.google.gerrit.server.config.ConfirmEmail.Input ( ) ; in.token = "invalidToken" ; adminSession.put ( "/config/server/email.confirm" , in ) . assertUnprocessableEntity ( ) ; }

Target:
public void confirmInvalidToken_UnprocessableEntity ( ) throws java.lang.Exception { com.google.gerrit.server.config.ConfirmEmail.Input in = new com.google.gerrit.server.config.ConfirmEmail.Input ( ) ; in.token = "invalidToken" ; adminRestSession.put ( "/config/server/email.confirm" , in ) . assertUnprocessableEntity ( ) ; }
Source:
private com.google.gerrit.server.git.strategy.SubmitStrategy createStrategy ( com.google.gerrit.extensions.common.SubmitType submitType ) throws com.google.gerrit.server.git.MergeException , com.google.gerrit.server.project.NoSuchProjectException { return submitStrategyFactory.create ( submitType , db , repo , rw , inserter , canMergeFlag , getAlreadyAccepted ( branchTip ) , destBranch ) ; }

Target:
private com.google.gerrit.server.git.strategy.SubmitStrategy createStrategy ( com.google.gerrit.extensions.client.SubmitType submitType , org.eclipse.jgit.lib.BatchRefUpdate branchUpdate ) throws com.google.gerrit.server.git.MergeException , com.google.gerrit.server.project.NoSuchProjectException { return submitStrategyFactory.create ( submitType , db , repo , rw , inserter , canMergeFlag , branchUpdate , getAlreadyAccepted ( branchTip ) , destBranch ) ; }
Source:
public abstract com.google.gerrit.server.git.MergeTip run ( com.google.gerrit.server.git.CodeReviewCommit currentTip , java.util.Collection < com.google.gerrit.server.git.CodeReviewCommit > toMerge ) throws com.google.gerrit.server.git.IntegrationException ;

Target:
protected abstract java.util.List < com.google.gerrit.server.git.strategy.SubmitStrategyOp > buildOps ( java.util.Collection < com.google.gerrit.server.git.CodeReviewCommit > toMerge ) throws com.google.gerrit.server.git.IntegrationException ;
Source:
com.googlesource.gerrit.plugins.replication.ReplicationState [ ] getStatesByRef ( java.lang.String ref ) { java.util.Collection < com.googlesource.gerrit.plugins.replication.ReplicationState > states = stateMap.get ( ref ) ; return states.toArray ( new com.googlesource.gerrit.plugins.replication.ReplicationState [ states.size ( ) ] ) ; }

Target:
void removeStates ( ) { stateMap.clear ( ) ; }
Source:
public void defaultGpgCertificationMatchesEmail ( ) throws java.lang.Exception { com.google.gerrit.gpg.testutil.TestKey key = com.google.gerrit.gpg.testutil.TestKey.key5 ( ) ; assertProblems ( com.google.gerrit.gpg.testutil.TestKey.key5 ( ) , ( "Key must contain a valid certification for one of the following " + ( ( "identities:\n" + " gerrit:user\n" ) + " username:user" ) ) ) ; addExternalId ( "test" , "test" , "test5@example.com" ) ; assertNoProblems ( key ) ; }

Target:
private com.google.gerrit.server.IdentifiedUser addUser ( java.lang.String name ) throws java.lang.Exception { com.google.gerrit.server.account.AuthRequest req = com.google.gerrit.server.account.AuthRequest.forUser ( name ) ; com.google.gerrit.reviewdb.client.Account.Id id = accountManager.authenticate ( req ) . getAccountId ( ) ; return userFactory.create ( com.google.inject.util.Providers.of ( db ) , id ) ; }
Source:
public com.google.gerrit.reviewdb.client.Change getChange ( ) { return ctl.getChange ( ) ; }

Target:
public com.google.gerrit.reviewdb.client.Change getChange ( ) { com.google.gerrit.reviewdb.client.Change c = ctl.getChange ( ) ; com.google.common.base.Preconditions.checkNotNull ( c ) ; return c ; }
Source:
private boolean canEditAssignee ( ) { return ( ( ( isOwner ( ) ) || ( getProjectControl ( ) . isOwner ( ) ) ) || ( getRefControl ( ) . canEditAssignee ( ) ) ) || ( isAssignee ( ) ) ; }

Target:
private boolean canEditAssignee ( ) { return ( ( ( isOwner ( ) ) || ( getProjectControl ( ) . isOwner ( ) ) ) || ( refControl.canEditAssignee ( ) ) ) || ( isAssignee ( ) ) ; }
Source:
public static void unregisterAll ( ) { for ( com.google.gitiles.ArchiveFormat fmt : com.google.gitiles.ArchiveFormat.values ( ) ) { org.eclipse.jgit.api.ArchiveCommand.unregisterFormat ( fmt.getShortName ( ) ) ; } }

Target:
public static void unregisterAll ( ) { for ( com.google.gitiles.ArchiveFormat fmt : com.google.gitiles.ArchiveFormat.values ( ) ) { org.eclipse.jgit.api.ArchiveCommand.unregisterFormat ( fmt.getRegisteredName ( ) ) ; } }
Source:
int getCookieAge ( final com.google.gerrit.httpd.WebSessionManager.Val val ) { if ( val.isPersistentCookie ( ) ) { return ( ( int ) ( self.getTimeToLive ( java.util.concurrent.TimeUnit.SECONDS ) ) ) ; } else { return - 1 ; } }

Target:
int getCookieAge ( final com.google.gerrit.httpd.WebSessionManager.Val val ) { if ( val.isPersistentCookie ( ) ) { return ( ( int ) ( java.util.concurrent.TimeUnit.MILLISECONDS.toSeconds ( sessionMaxAgeMillis ) ) ) ; } else { return - 1 ; } }
Source:
public void onSuccess ( ) { com.google.gerrit.client.Gerrit.display ( token , new com.google.gerrit.client.diff.Unified ( base , id.getParentKey ( ) , id.get ( ) , side , line ) ) ; }

Target:
public void onSuccess ( ) { com.google.gerrit.client.Gerrit.display ( token , new com.google.gerrit.client.diff.Unified ( base , com.google.gerrit.client.DiffObject.patchSet ( id.getParentKey ( ) ) , id.get ( ) , side , line ) ) ; }