auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void onSuccess ( com.google.gerrit.client.VoidResult result ) { upToChange ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.VoidResult result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChangeInEditMode ( revision.getParentKey ( ) ) ) ; }
Source:
public void onSend ( ) { Util.MANAGE_SVC.revertChange ( patchSet.getId ( ) , getMessageText ( ) , createCallback ( ) ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { enableButtons ( true ) ; super . onFailure ( caught ) ; }
Source:
public org.eclipse.jgit.lib.ObjectId getCommitId ( ) { return commit ; }

Target:
public java.lang.String getMessage ( ) { org.eclipse.jgit.transport.RemoteRefUpdate refUpdate = result.getRemoteUpdate ( ref ) ; return message ( refUpdate ) ; }
Source:
protected boolean hasDifferences ( final com.google.gerrit.common.data.PatchScript script ) { boolean hasEdits = ! ( script.getEdits ( ) . isEmpty ( ) ) ; boolean hasMeta = ! ( script.getPatchHeader ( ) . isEmpty ( ) ) ; return hasEdits || hasMeta ; }

Target:
protected boolean hasDifferences ( com.google.gerrit.common.data.PatchScript script ) { return ( hasEdits ( script ) ) || ( hasMeta ( script ) ) ; }
Source:
protected void preDisplay ( final java.util.List < com.google.gerrit.reviewdb.Project > result ) { projects.display ( result ) ; projects.finishDisplay ( ) ; }

Target:
protected void preDisplay ( final com.google.gerrit.common.data.ProjectList result ) { createProjectLinkPanel.setVisible ( result.canCreateProject ( ) ) ; projects.display ( result.getProjects ( ) ) ; projects.finishDisplay ( ) ; }
Source:
public void renameGroup ( final com.google.gerrit.reviewdb.client.AccountGroup.Id groupId , final java.lang.String newName , final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.GroupDetail > callback ) { renameGroupFactory.create ( groupId , newName ) . to ( callback ) ; }

Target:
public void renameGroup ( final com.google.gerrit.reviewdb.client.AccountGroup.Id groupId , final java.lang.String newName , final com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.GroupDetail > callback ) { renameGroupFactory.create ( groupId , newName ) . to ( callback ) ; }
Source:
public com.googlecode.prolog_cafe.lang.Term getMessageTerm ( ) { com.googlecode.prolog_cafe.lang.Term [ ] args = new com.googlecode.prolog_cafe.lang.Term [ ] { new com.googlecode.prolog_cafe.lang.JavaObjectTerm ( goal ) , new com.googlecode.prolog_cafe.lang.IntegerTerm ( argNo ) , new com.googlecode.prolog_cafe.lang.JavaObjectTerm ( e ) } ; return new com.googlecode.prolog_cafe.lang.StructureTerm ( com.googlecode.prolog_cafe.lang.JavaException.JAVA_ERROR , args ) ; }

Target:
public com.googlecode.prolog_cafe.lang.Term getMessageTerm ( ) { com.googlecode.prolog_cafe.lang.Term [ ] args = new com.googlecode.prolog_cafe.lang.Term [ ] { new com.googlecode.prolog_cafe.lang.JavaObjectTerm ( goal ) , new com.googlecode.prolog_cafe.lang.IntegerTerm ( argNo ) , new com.googlecode.prolog_cafe.lang.JavaObjectTerm ( e ) } ; return new com.googlecode.prolog_cafe.lang.StructureTerm ( com.googlecode.prolog_cafe.exceptions.JavaException.JAVA_ERROR , args ) ; }
Source:
public void onSuccess ( final com.google.gerrit.common.data.ProjectDetail result ) { enableForm ( result.canModifyAgreements , result.canModifyDescription , result.canModifyMergeType ) ; display ( result ) ; }

Target:
public void onSuccess ( final com.google.gerrit.common.data.ProjectDetail result ) { enableForm ( result.canModifyAgreements , result.canModifyDescription , result.canModifyMergeType , result.canModifyState ) ; display ( result ) ; }
Source:
public void previous ( ) { com.google.common.truth.TruthJUnit.assume ( ) . that ( com.google.gerrit.testutil.IndexVersionsTest.SCHEMA_DEF.getPrevious ( ) ) . isNotNull ( ) ; com.google.common.truth.Truth.assertThat ( com.google.gerrit.testutil.IndexVersionsTest.get ( com.google.gerrit.testutil.IndexVersions.PREVIOUS ) ) . containsExactly ( com.google.gerrit.testutil.IndexVersionsTest.SCHEMA_DEF.getPrevious ( ) . getVersion ( ) ) ; }

Target:
public void previous ( ) { com.google.common.truth.TruthJUnit.assume ( ) . that ( com.google.gerrit.testutil.IndexVersionsTest.SCHEMA_DEF.getPrevious ( ) ) . isNotNull ( ) ; com.google.common.truth.Truth.assertThat ( com.google.gerrit.testutil.IndexVersionsTest.get ( com.google.gerrit.testing.IndexVersions.PREVIOUS ) ) . containsExactly ( com.google.gerrit.testutil.IndexVersionsTest.SCHEMA_DEF.getPrevious ( ) . getVersion ( ) ) ; }
Source:
public com.google.gerrit.server.query.InternalQuery < T > noFields ( ) { queryProcessor.setRequestedFields ( com.google.common.collect.ImmutableSet.< java.lang.String > of ( ) ) ; return this ; }

Target:
public com.google.gerrit.index.query.InternalQuery < T > noFields ( ) { queryProcessor.setRequestedFields ( com.google.common.collect.ImmutableSet.< java.lang.String > of ( ) ) ; return this ; }
Source:
public void onSuccess ( com.google.gerrit.client.rpc.NativeString user ) { com.google.gerrit.client.Gerrit.getUserAccount ( ) . setUserName ( user.asString ( ) ) ; refreshHttpPassword ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.rpc.NativeString user ) { com.google.gerrit.client.Gerrit.getUserAccount ( ) . username ( user.asString ( ) ) ; refreshHttpPassword ( ) ; }
Source:
public void updateRepo ( com.google.gerrit.server.update.BatchUpdate.RepoContext ctx ) throws java.io.IOException { ctx.addRefUpdate ( new org.eclipse.jgit.transport.ReceiveCommand ( oldId , newId , dest ) ) ; }

Target:
public void updateRepo ( com.google.gerrit.server.update.RepoContext ctx ) throws java.io.IOException { ctx.addRefUpdate ( new org.eclipse.jgit.transport.ReceiveCommand ( oldId , newId , dest ) ) ; }
Source:
protected void updateMessageID ( ) throws javax.mail.MessagingException { if ( ( messageID ) != null ) { setHeader ( "Message-ID" , messageID ) ; } else { super . updateMessageID ( ) ; } }

Target:
public void setHeader ( java.lang.String name , java.lang.String value ) throws javax.mail.MessagingException { if ( com.google.gerrit.server.mail.MimeMessage.MESSAGE_ID.equalsIgnoreCase ( name ) ) { messageID = value ; } else { super . setHeader ( name , value ) ; } }
Source:
public void evictGroupsMembers ( ) throws java.io.IOException , javax.servlet.ServletException { configureMocksFor ( Constants.GROUPS_MEMBERS ) ; servlet.doPost ( request , response ) ; verifyAll ( ) ; }

Target:
public void evictProjectList ( ) throws java.lang.Exception { configureMocksFor ( Constants.PROJECT_LIST ) ; verifyResponseIsOK ( ) ; }
Source:
public void suggestReviewersMaxNbrSuggestions ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; java.util.List < com.google.gerrit.server.change.SuggestReviewers.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , "user" , 5 ) ; org.junit.Assert.assertEquals ( 2 , reviewers.size ( ) ) ; }

Target:
public void suggestReviewersMaxNbrSuggestions ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; java.util.List < com.google.gerrit.extensions.common.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , "user" , 5 ) ; com.google.common.truth.Truth.assertThat ( reviewers ) . hasSize ( 2 ) ; }
Source:
private com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > submit ( java.util.concurrent.Callable < ? > task ) { return com.google.common.util.concurrent.Futures.makeChecked ( com.google.common.util.concurrent.Futures.nonCancellationPropagating ( executor.submit ( task ) ) , com.google.gerrit.server.index.change.ChangeIndexer.MAPPER ) ; }

Target:
private static < T > com.google.common.util.concurrent.CheckedFuture < T , java.io.IOException > submit ( java.util.concurrent.Callable < T > task , com.google.common.util.concurrent.ListeningExecutorService executor ) { return com.google.common.util.concurrent.Futures.makeChecked ( com.google.common.util.concurrent.Futures.nonCancellationPropagating ( executor.submit ( task ) ) , com.google.gerrit.server.index.change.ChangeIndexer.MAPPER ) ; }
Source:
public boolean isVisible ( ) { return ( ( ( user ) instanceof com.google.gerrit.server.InternalUser ) || ( canPerformOnAnyRef ( Permission.READ ) ) ) && ( ! ( isHidden ( ) ) ) ; }

Target:
public boolean isVisible ( ) { return ( ( user.isInternalUser ( ) ) || ( canPerformOnAnyRef ( Permission.READ ) ) ) && ( ! ( isHidden ( ) ) ) ; }
Source:
public final native void set_edit ( com.google.gerrit.client.changes.ChangeInfo.EditInfo edit ) ;

Target:
public final native void setEdit ( com.google.gerrit.client.changes.ChangeInfo.EditInfo edit ) ;
Source:
public void addReviewerToWipChange ( ) throws java.lang.Exception { forAll ( ( adder ) -> { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageWipChange ( ) ; com.google.gerrit.acceptance.TestAccount reviewer = accounts.create ( "added" , "added@example.com" , "added" ) ; addReviewer ( adder , sc.changeId , sc.owner , reviewer.email ) ; assertThat ( sender ) . notSent ( ) ; } ) ; }

Target:
public void addReviewerToWipChangeSingly ( ) throws java.lang.Exception { addReviewerToWipChange ( singly ( ) ) ; }
Source:
private static java.lang.String readCSS ( ) { if ( ( com.googlesource.gerrit.plugins.xdocs.formatter.AsciidoctorFormatter.css ) != null ) { return com.googlesource.gerrit.plugins.xdocs.formatter.AsciidoctorFormatter.css ; } try { return com.googlesource.gerrit.plugins.xdocs.formatter.AsciidoctorFormatter.readCss ( new java.util.concurrent.atomic.AtomicBoolean ( ) ) ; } catch ( java.io.IOException err ) { return "" ; } }

Target:
private static java.util.Properties readAttributes ( ) throws java.io.IOException { java.util.Properties attributes = new java.util.Properties ( ) ; try ( java.io.InputStream in = com.googlesource.gerrit.plugins.xdocs.formatter.AsciidoctorFormatter.class . getResourceAsStream ( "asciidoctor.properties" ) ) { attributes.load ( in ) ; } return attributes ; }
Source:
com.google.gerrit.server.IdentifiedUser getUser ( ) { return getControl ( ) . getUser ( ) . asIdentifiedUser ( ) ; }

Target:
com.google.gerrit.server.CurrentUser getUser ( ) { return getControl ( ) . getUser ( ) ; }
Source:
private void review ( java.lang.String changeId , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy strategy ) throws java.lang.Exception { review ( changeId , strategy , null ) ; }

Target:
private void review ( com.google.gerrit.acceptance.TestAccount account , java.lang.String changeId , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy strategy ) throws java.lang.Exception { review ( account , changeId , strategy , null ) ; }
Source:
public void testLinkify_Parens1 ( ) { final com.google.gwtexpui.safehtml.client.SafeHtml o = com.google.gwtexpui.safehtml.client.SafeHtml_WikifyTest.html ( "A (http://go.here/) B" ) ; final com.google.gwtexpui.safehtml.client.SafeHtml n = o.wikify ( ) ; org.junit.Assert.assertNotSame ( o , n ) ; org.junit.Assert.assertEquals ( "<p>A (<a href=\"http://go.here/\" target=\"_blank\">http://go.here/</a>) B</p>" , n.asString ( ) ) ; }

Target:
public void testLinkify_AngleBrackets1 ( ) { final com.google.gwtexpui.safehtml.client.SafeHtml o = com.google.gwtexpui.safehtml.client.SafeHtml_WikifyTest.html ( "A <http://go.here/> B" ) ; final com.google.gwtexpui.safehtml.client.SafeHtml n = o.wikify ( ) ; com.google.common.truth.Truth.assertThat ( o ) . isNotSameAs ( n ) ; com.google.common.truth.Truth.assertThat ( n.asString ( ) ) . isEqualTo ( "<p>A &lt;<a href=\"http://go.here/\" target=\"_blank\">http://go.here/</a>&gt; B</p>" ) ; }
Source:
public static void markPrivate ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( "private" ) . put ( cb ) ; }

Target:
public static void markPrivate ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( "private" ) . post ( com.google.gerrit.client.changes.ChangeApi.PrivateInput.create ( ) , cb ) ; }
Source:
public static void editWithFiles ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.changes.ChangeInfo.EditInfo > cb ) { com.google.gerrit.client.changes.ChangeApi.edit ( id ) . addParameter ( "list" , true ) . get ( cb ) ; }

Target:
public static com.google.gerrit.client.rpc.RestApi editWithCommands ( int id ) { return com.google.gerrit.client.changes.ChangeApi.edit ( id ) . addParameterTrue ( "download-commands" ) ; }
Source:
public static com.google.gerrit.testutil.InMemoryDatabase newDatabase ( com.google.gerrit.lifecycle.LifecycleManager lifecycle ) { return com.google.gerrit.testutil.InMemoryModule.createInjector ( lifecycle ) . getInstance ( com.google.gerrit.testutil.InMemoryDatabase.class ) ; }

Target:
public static com.google.gerrit.testutil.InMemoryDatabase newDatabase ( com.google.gerrit.lifecycle.LifecycleManager lifecycle ) { com.google.inject.Injector injector = com.google.inject.Guice.createInjector ( new com.google.gerrit.testutil.InMemoryModule ( ) ) ; lifecycle.add ( injector ) ; return injector.getInstance ( com.google.gerrit.testutil.InMemoryDatabase.class ) ; }
Source:
private com.cisco.gerrit.plugins.slack.config.ProjectConfig getConfig ( boolean publishOnPatchSetCreated ) throws java.lang.Exception { return getConfig ( "^WIP.*" , publishOnPatchSetCreated , true ) ; }

Target:
private com.cisco.gerrit.plugins.slack.config.ProjectConfig getConfig ( boolean publishOnPatchSetCreated , boolean ignoreUnchangedPatchSet ) throws java.lang.Exception { return getConfig ( "^WIP.*" , publishOnPatchSetCreated , ignoreUnchangedPatchSet , true , true ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.access.ProjectAccessInfo result ) { if ( result.isOwner ( ) ) { table.setWidget ( row , column , getHeadRevisionWidget ( rev ) ) ; } else { table.setText ( row , 3 , rev ) ; } }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { updateDeleteButton ( ) ; }
Source:
public void run ( ) { cmB.operation ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { apply.run ( ) ; } } ) ; }

Target:
public void run ( ) { cmB.operation ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { for ( java.lang.Runnable thunk : list ) { thunk.run ( ) ; } } } ) ; }
Source:
public com.google.gerrit.server.change.PatchSetInserter setRefControl ( com.google.gerrit.server.project.RefControl refControl ) { this . refControl = refControl ; return this ; }

Target:
com.google.gerrit.server.change.PatchSetInserter create ( org.eclipse.jgit.lib.Repository git , org.eclipse.jgit.revwalk.RevWalk revWalk , com.google.gerrit.server.project.RefControl refControl , com.google.gerrit.reviewdb.client.Change change , org.eclipse.jgit.revwalk.RevCommit commit ) ;
Source:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { closePopup ( ) ; }

Target:
protected void movePointerTo ( final int row , final boolean scroll ) { super . movePointerTo ( row , scroll ) ; onMovePointerTo ( getRowItem ( row ) . name ( ) ) ; }
Source:
public void testDeleteOneExisting ( ) throws com.google.gwtorm.client.OrmException , java.sql.SQLException { stubExecuteBatchOK ( com.google.gwtorm.jdbc.TestJdbcAccess.DELETE , 1 ) ; createClassUnderTest ( ) . delete ( com.google.gwtorm.jdbc.TestJdbcAccess.ONE_ROW ) ; }

Target:
public void testDeleteOneExisting ( ) throws com.google.gwtorm.server.OrmException , java.sql.SQLException { java.sql.PreparedStatement delete = stubStatementWithUpdateCounts ( com.google.gwtorm.jdbc.TestJdbcAccess.DELETE , 1 ) ; createClassUnderTest ( ) . delete ( oneRow ) ; com.google.gwtorm.jdbc.TestJdbcAccess.assertUsedBatchingOnly ( delete ) ; }
Source:
private PatchSet.Id nextPatchSetId ( com.google.gerrit.server.project.ChangeControl ctl ) { return com.google.gerrit.server.ChangeUtil.nextPatchSetId ( ctl.getChange ( ) . currentPatchSetId ( ) ) ; }

Target:
private PatchSet.Id nextPatchSetId ( com.google.gerrit.server.project.ChangeControl ctl ) throws java.lang.Exception { return com.google.gerrit.server.ChangeUtil.nextPatchSetId ( testRepo.getRepository ( ) , ctl.getChange ( ) . currentPatchSetId ( ) ) ; }
Source:
protected < T > T buildJson ( java.lang.String path , java.lang.reflect.Type typeOfT , java.lang.String additionalQueryString ) throws java.lang.Exception { return com.google.gitiles.ServletTest.newGson ( ) . fromJson ( buildJsonRaw ( path , additionalQueryString ) , typeOfT ) ; }

Target:
protected < T > T buildJson ( java.lang.String path , com.google.gson.reflect.TypeToken < T > typeOfT , java.lang.String additionalQueryString ) throws java.lang.Exception { return com.google.gitiles.ServletTest.newGson ( ) . fromJson ( buildJsonRaw ( path , additionalQueryString ) , typeOfT.getType ( ) ) ; }
Source:
public java.util.List < com.google.gerrit.common.data.PermissionRule > getPermission ( java.lang.String permissionName ) { java.util.List < com.google.gerrit.common.data.PermissionRule > r = permissions.get ( permissionName ) ; return r != null ? r : java.util.Collections.< com.google.gerrit.common.data.PermissionRule > emptyList ( ) ; }

Target:
public com.google.common.collect.ImmutableList < com.google.gerrit.common.data.PermissionRule > getPermission ( java.lang.String permissionName ) { com.google.common.collect.ImmutableList < com.google.gerrit.common.data.PermissionRule > r = permissions.get ( permissionName ) ; return r != null ? r : com.google.common.collect.ImmutableList.< com.google.gerrit.common.data.PermissionRule > of ( ) ; }
Source:
private int getInt ( final org.spearce.jgit.transport.RemoteConfig rc , final org.spearce.jgit.lib.RepositoryConfig cfg , final java.lang.String name , final int defValue ) { return cfg.getInt ( "remote" , rc.getName ( ) , name , defValue ) ; }

Target:
private int getInt ( final org.spearce.jgit.transport.RemoteConfig rc , final org.spearce.jgit.lib.Config cfg , final java.lang.String name , final int defValue ) { return cfg.getInt ( "remote" , rc.getName ( ) , name , defValue ) ; }
Source:
public final native int context ( ) ;

Target:
public final int context ( ) { return get ( "context" , 10 ) ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.server.securestore.SecureStore.class ) . toProvider ( com.google.gerrit.server.securestore.SecureStoreProvider.class ) ; }

Target:
com.google.gerrit.server.securestore.SecureStore getSecureStore ( ) { return secureStore ; }
Source:
static org.apache.lucene.index.Term intTerm ( java.lang.String name , int value ) { org.apache.lucene.util.BytesRefBuilder builder = new org.apache.lucene.util.BytesRefBuilder ( ) ; org.apache.lucene.util.NumericUtils.intToPrefixCodedBytes ( value , 0 , builder ) ; return new org.apache.lucene.index.Term ( name , builder.get ( ) ) ; }

Target:
static org.apache.lucene.index.Term intTerm ( java.lang.String name , int value ) { org.apache.lucene.util.BytesRefBuilder builder = new org.apache.lucene.util.BytesRefBuilder ( ) ; org.apache.lucene.util.NumericUtils.intToPrefixCoded ( value , 0 , builder ) ; return new org.apache.lucene.index.Term ( name , builder.get ( ) ) ; }
Source:
final void setSubmitType ( com.google.gerrit.extensions.common.SubmitType t ) { setSubmitTypeRaw ( t.name ( ) ) ; }

Target:
final void setCreateNewChangeForAllNotInTarget ( com.google.gerrit.extensions.client.InheritableBoolean v ) { setCreateNewChangeForAllNotInTargetRaw ( v.name ( ) ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( result.legacy_id ( ) ) ) ; hide ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( result.legacyId ( ) ) ) ; hide ( ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { header.reviewedAndNext ( ) . run ( ) ; }

Target:
public void run ( ) { header.setReviewed ( ( ! ( header.isReviewed ( ) ) ) ) ; }
Source:
private boolean failAuthentication ( com.google.gerrit.httpd.ProjectBasicAuthFilter.Response rsp , java.lang.String username ) throws java.io.IOException { com.google.gerrit.httpd.ProjectBasicAuthFilter.log.warn ( "Authentication failed for {}: password does not match the one stored in Gerrit" , username ) ; rsp.sendError ( javax.servlet.http.HttpServletResponse.SC_UNAUTHORIZED ) ; return false ; }

Target:
private boolean failAuthentication ( com.google.gerrit.httpd.ProjectBasicAuthFilter.Response rsp , java.lang.String username , javax.servlet.http.HttpServletRequest req ) throws java.io.IOException { com.google.gerrit.httpd.ProjectBasicAuthFilter.log.warn ( ( ( com.google.gerrit.httpd.ProjectBasicAuthFilter.authenticationFailedMsg ( username , req ) ) + ": password does not match the one stored in Gerrit" ) , username ) ; rsp.sendError ( javax.servlet.http.HttpServletResponse.SC_UNAUTHORIZED ) ; return false ; }
Source:
public com.google.gerrit.reviewdb.server.ChangeAccess changes ( ) { throw new com.google.gerrit.testutil.DisabledReviewDb.Disabled ( ) ; }

Target:
public com.google.gerrit.reviewdb.server.ChangeAccess changes ( ) { throw new com.google.gerrit.testing.DisabledReviewDb.Disabled ( ) ; }
Source:
public java.lang.String getCommand ( java.lang.String url ) { return ( "git fetch " + url ) + " ${ref} && git format-patch -1 --stdout FETCH_HEAD" ; }

Target:
public java.lang.String getCommand ( java.lang.String url , java.lang.String ref ) { return ( ( ( "git fetch " + url ) + " " ) + ref ) + " && git format-patch -1 --stdout FETCH_HEAD" ; }
Source:
public static < T > com.google.gwt.user.client.rpc.AsyncCallback < T > emptyCallback ( ) { return new com.google.gwt.user.client.rpc.AsyncCallback < T > ( ) { @ java.lang.Override public void onSuccess ( T result ) { } @ java.lang.Override public void onFailure ( java.lang.Throwable err ) { } } ; }

Target:
public static < T > com.google.gerrit.client.rpc.CallbackGroup.Callback < T > emptyCallback ( ) { return new com.google.gerrit.client.rpc.CallbackGroup.Callback < T > ( ) { @ java.lang.Override public void onSuccess ( T result ) { } @ java.lang.Override public void onFailure ( java.lang.Throwable err ) { } } ; }
Source:
public void updateRepoImpl ( com.google.gerrit.server.git.BatchUpdate.RepoContext ctx ) { toMerge.setStatusCode ( CommitMergeStatus.CLEAN_MERGE ) ; args.mergeTip.moveTipTo ( toMerge , toMerge ) ; acceptMergeTip ( args.mergeTip ) ; }

Target:
public void updateRepoImpl ( com.google.gerrit.server.git.BatchUpdate.RepoContext ctx ) throws com.google.gerrit.server.git.IntegrationException { toMerge.setStatusCode ( CommitMergeStatus.CLEAN_MERGE ) ; com.google.gerrit.server.git.CodeReviewCommit newCommit = amendGitlink ( toMerge ) ; args.mergeTip.moveTipTo ( newCommit , toMerge ) ; acceptMergeTip ( args.mergeTip ) ; }
Source:
private static org.eclipse.jgit.lib.Config updateConfig ( org.eclipse.jgit.lib.Config cfg ) { cfg.setInt ( "index" , null , "maxPages" , 10 ) ; return cfg ; }

Target:
public static org.eclipse.jgit.lib.Config defaultConfig ( ) { org.eclipse.jgit.lib.Config cfg = new org.eclipse.jgit.lib.Config ( ) ; cfg.setInt ( "index" , null , "maxPages" , 10 ) ; return cfg ; }
Source:
public void testInsertOne ( ) throws com.google.gwtorm.server.OrmException , java.sql.SQLException { java.sql.PreparedStatement insert = stubStatementWithUpdateCounts ( com.google.gwtorm.jdbc.TestJdbcAccess.INSERT , 1 ) ; createClassUnderTest ( ) . insert ( oneRow ) ; com.google.gwtorm.jdbc.TestJdbcAccess.assertUsedBatchingOnly ( insert ) ; }

Target:
public void testInsertOne ( ) throws com.google.gwtorm.server.OrmException , java.sql.SQLException { java.sql.PreparedStatement insert = stubStatementWithUpdateCounts ( com.google.gwtorm.jdbc.AbstractTestJdbcAccess.INSERT , 1 ) ; classUnderTest.insert ( oneRow ) ; assertCorrectUpdating ( insert , 1 ) ; }
Source:
private static boolean isGerritServer ( com.google.gerrit.client.account.AccountInfo account ) { return ( ( account._account_id ( ) ) == 0 ) && ( Util.C.messageNoAuthor ( ) . equals ( account.name ( ) ) ) ; }

Target:
private static boolean isGerritServer ( com.google.gerrit.client.account.AccountInfo account ) { return ( ( account._accountId ( ) ) == 0 ) && ( Util.C.messageNoAuthor ( ) . equals ( account.name ( ) ) ) ; }
Source:
public void add ( com.google.gerrit.reviewdb.client.Project.NameKey project , java.lang.String command ) { commands.put ( project , command ) ; }

Target:
public void add ( com.google.gerrit.reviewdb.client.Project.NameKey project , java.lang.String command ) { commands.put ( project , com.google.common.base.Strings.nullToEmpty ( command ) ) ; }
Source:
public void upsert ( java.lang.Iterable < com.google.gerrit.reviewdb.client.Change > instances ) { throw new java.lang.UnsupportedOperationException ( ( "do not call upsert; either use InsertChangeOp for insertion, or" + " ChangeContext#saveChange() for update" ) ) ; }

Target:
public void upsert ( java.lang.Iterable < com.google.gerrit.reviewdb.client.Change > instances ) { throw new java.lang.UnsupportedOperationException ( ( "do not call upsert; existing changes are updated automatically," + " or use InsertChangeOp for insertion" ) ) ; }
Source:
public void onFailure ( final java.lang.Throwable caught ) { cbox.setEnabled ( true ) ; info.getWatch ( ) . setNotify ( type , oldVal ) ; cbox.setValue ( oldVal ) ; super . onFailure ( caught ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { cbox.setEnabled ( true ) ; info.notify ( type , oldVal ) ; cbox.setValue ( oldVal ) ; super . onFailure ( caught ) ; }
Source:
private boolean isProjectStatePermittingWrite ( ) { return getProjectControl ( ) . getProject ( ) . getState ( ) . permitsWrite ( ) ; }

Target:
private boolean canUpload ( ) { return ( projectControl.controlForRef ( ( "refs/for/" + ( refName ) ) ) . canPerform ( Permission.PUSH ) ) && ( getProjectControl ( ) . getProject ( ) . getState ( ) . permitsWrite ( ) ) ; }
Source:
void restore ( com.googlecode.prolog_cafe.lang.Prolog engine ) { engine.cont = this . cont ; engine.areg1 = this . areg1 ; engine.areg2 = this . areg2 ; }

Target:
void restore ( com.googlecode.prolog_cafe.lang.Prolog engine ) { engine.r1 = this . r1 ; engine.r2 = this . r2 ; }
Source:
public void onSuccess ( com.google.gerrit.common.data.ChangeDetail result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( changeId ) ) ; hide ( ) ; }

Target:
public void onSuccess ( com.google.gwt.core.client.JavaScriptObject msg ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( changeId ) ) ; hide ( ) ; }
Source:
void suggestProjectNameKey ( java.lang.String query , int limit , com.google.gwt.user.client.rpc.AsyncCallback < java.util.List < com.google.gerrit.reviewdb.client.Project.NameKey > > callback ) ;

Target:
void suggestChangeReviewer ( com.google.gerrit.reviewdb.client.Change.Id changeId , java.lang.String query , int limit , com.google.gwtjsonrpc.common.AsyncCallback < java.util.List < com.google.gerrit.common.data.ReviewerInfo > > callback ) ;
Source:
public com.google.common.collect.ImmutableMap < com.google.gerrit.reviewdb.client.PatchSet.Id , com.google.gerrit.reviewdb.client.PatchSet > getPatchSets ( ) { return state.patchSets ( ) ; }

Target:
public com.google.common.collect.ImmutableMap < com.google.gerrit.reviewdb.client.PatchSet.Id , com.google.gerrit.reviewdb.client.PatchSet > getPatchSets ( ) { if ( ( patchSets ) == null ) { patchSets = com.google.common.collect.ImmutableMap.copyOf ( com.google.common.collect.Maps.transformValues ( state.patchSets ( ) , PatchSet :: new ) ) ; } return patchSets ; }
Source:
private com.google.inject.Key < com.googlesource.gerrit.plugins.quota.UsageDataEventCreator > creatorKey ( java.lang.String kind ) { com.google.inject.Key < com.googlesource.gerrit.plugins.quota.UsageDataEventCreator > pushCreatorKey = com.google.inject.Key.get ( new com.google.inject.TypeLiteral < com.googlesource.gerrit.plugins.quota.UsageDataEventCreator > ( ) { } , com.google.inject.name.Names.named ( kind ) ) ; return pushCreatorKey ; }

Target:
static com.google.inject.Module module ( ) { return new com.google.gerrit.server.cache.CacheModule ( ) { protected void configure ( ) { com.google.gerrit.extensions.registration.DynamicSet.bind ( binder ( ) , com.googlesource.gerrit.plugins.quota.UsageDataEventCreator.class ) . to ( com.googlesource.gerrit.plugins.quota.RepoSizeEventCreator.class ) ; } } ; }
Source:
public void parseReviewer ( ) throws java.lang.Exception { assertParseSucceeds ( ( "Update change\n" + ( ( ( ( ( ( "\n" + "Branch: refs/heads/master\n" ) + "Change-id: I577fb248e474018276351785930358ec0450e9f7\n" ) + "Patch-set: 1\n" ) + "Reviewer: Change Owner <1@gerrit>\n" ) + "CC: Other Account <2@gerrit>\n" ) + "Subject: This is a test change\n" ) ) ) ; assertParseFails ( ( "Update change\n" + ( ( "\n" + "Patch-set: 1\n" ) + "Reviewer: 1@gerrit\n" ) ) ) ; }

Target:
public void parseReviewer ( ) throws java.lang.Exception { assertParseSucceeds ( ( "Update change\n" + ( ( ( ( ( ( "\n" + "Branch: refs/heads/master\n" ) + "Change-id: I577fb248e474018276351785930358ec0450e9f7\n" ) + "Patch-set: 1\n" ) + "Reviewer: Change Owner <1@gerrit>\n" ) + "CC: Other Account <2@gerrit>\n" ) + "Subject: This is a test change\n" ) ) ) ; assertParseFails ( "Update change\n\nPatch-set: 1\nReviewer: 1@gerrit\n" ) ; }
Source:
private static void checkRequiredMenuItemField ( java.lang.String value , java.lang.String name ) throws com.google.gerrit.extensions.restapi.BadRequestException { if ( com.google.common.base.Strings.isNullOrEmpty ( value ) ) { throw new com.google.gerrit.extensions.restapi.BadRequestException ( ( name + " for menu item is required" ) ) ; } }

Target:
private static void checkRequiredMenuItemField ( java.lang.String value , java.lang.String name ) throws com.google.gerrit.extensions.restapi.BadRequestException { if ( ( value == null ) || ( value.trim ( ) . isEmpty ( ) ) ) { throw new com.google.gerrit.extensions.restapi.BadRequestException ( ( name + " for menu item is required" ) ) ; } }
Source:
void sideBySidePatchDetail ( com.google.gerrit.client.reviewdb.Patch.Key key , java.util.List < com.google.gerrit.client.reviewdb.PatchSet.Id > versions , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.data.SideBySidePatchDetail > callback ) ;

Target:
void patchScript ( com.google.gerrit.client.reviewdb.Patch.Key key , com.google.gerrit.client.reviewdb.PatchSet.Id a , com.google.gerrit.client.reviewdb.PatchSet.Id b , int context , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.data.PatchScript > callback ) ;
Source:
public void onEvent ( com.google.gerrit.server.events.Event event ) { if ( ( available ) && ( session.isOpen ( ) ) ) { session.publish ( gson.toJson ( event ) ) ; } }

Target:
private void publishEvent ( com.google.gerrit.server.events.Event event ) { session.publish ( gson.toJson ( event ) ) ; }
Source:
public void onExit ( int rc ) { exit.onExit ( translateExit ( rc ) ) ; log ( rc ) ; }

Target:
public void onExit ( int rc , java.lang.String exitMessage ) { exit.onExit ( translateExit ( rc ) , exitMessage ) ; log ( rc ) ; }
Source:
public void branchAlreadyExists_Conflict ( ) throws java.lang.Exception { assertCreateSucceeds ( ) ; assertCreateFails ( com.google.gerrit.extensions.restapi.ResourceConflictException.class ) ; }

Target:
public void branchAlreadyExists_Conflict ( ) throws java.lang.Exception { assertCreateSucceeds ( testBranch ) ; assertCreateFails ( testBranch , com.google.gerrit.extensions.restapi.ResourceConflictException.class ) ; }
Source:
protected void configure ( ) { bind ( java.io.File.class ) . annotatedWith ( com.google.gerrit.server.config.SitePath.class ) . toInstance ( sitePath ) ; bind ( com.google.gerrit.server.config.SitePaths.class ) ; }

Target:
protected void configure ( ) { bind ( java.nio.file.Path.class ) . annotatedWith ( com.google.gerrit.server.config.SitePath.class ) . toInstance ( sitePath ) ; bind ( com.google.gerrit.server.config.SitePaths.class ) ; }
Source:
public void onHistoryChanged ( final java.lang.String historyToken ) { com.google.gerrit.client.Gerrit.dispatchHistoryHooks ( historyToken ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.String > event ) { com.google.gerrit.client.Gerrit.dispatchHistoryHooks ( event.getValue ( ) ) ; }
Source:
public void batchAbandon ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.server.CurrentUser user , java.util.Collection < com.google.gerrit.server.project.ChangeControl > controls ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.git.UpdateException { batchAbandon ( project , user , controls , "" , NotifyHandling.ALL ) ; }

Target:
public void batchAbandon ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.server.CurrentUser user , java.util.Collection < com.google.gerrit.server.project.ChangeControl > controls , java.lang.String msgTxt ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.git.UpdateException { batchAbandon ( project , user , controls , msgTxt , NotifyHandling.ALL , com.google.common.collect.ImmutableListMultimap.of ( ) ) ; }
Source:
java.util.Collection < com.google.gerrit.common.data.GroupReference > suggest ( java.lang.String name ) ;

Target:
java.util.Collection < com.google.gerrit.common.data.GroupReference > suggest ( java.lang.String name , @ javax.annotation.Nullable com.google.gerrit.server.project.ProjectControl project ) ;
Source:
private static org.eclipse.jgit.revwalk.RevCommit lookupCommit ( org.eclipse.jgit.lib.Repository repository , com.google.gerrit.reviewdb.client.PatchSet patchSet ) throws java.io.IOException { org.eclipse.jgit.lib.ObjectId patchSetCommitId = com.google.gerrit.server.edit.ChangeEditModifier.getPatchSetCommitId ( patchSet ) ; return com.google.gerrit.server.edit.ChangeEditModifier.lookup ( repository , patchSetCommitId ) ; }

Target:
private static org.eclipse.jgit.revwalk.RevCommit lookupCommit ( org.eclipse.jgit.lib.Repository repository , com.google.gerrit.reviewdb.client.PatchSet patchSet ) throws java.io.IOException { org.eclipse.jgit.lib.ObjectId patchSetCommitId = com.google.gerrit.server.edit.ChangeEditModifier.getPatchSetCommitId ( patchSet ) ; try ( org.eclipse.jgit.revwalk.RevWalk revWalk = new org.eclipse.jgit.revwalk.RevWalk ( repository ) ) { return revWalk.parseCommit ( patchSetCommitId ) ; } }
Source:
protected void set ( int newValue ) { checkSequenceValue ( newValue ) ; seq = newValue ; }

Target:
public boolean isValid ( ) { return ( seq ) > 0 ; }
Source:
private static com.google.common.base.Optional < org.eclipse.jgit.lib.ObjectId > metaId ( org.eclipse.jgit.lib.ObjectId id ) { return com.google.common.base.Optional.of ( id ) ; }

Target:
private static java.util.Optional < org.eclipse.jgit.lib.ObjectId > metaId ( org.eclipse.jgit.lib.ObjectId id ) { return java.util.Optional.of ( id ) ; }
Source:
public void createDraftChangeNotAllowed ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( isAllowDrafts ( ) ) . isFalse ( ) ; com.google.gerrit.extensions.common.ChangeInput ci = newChangeInput ( ChangeStatus.DRAFT ) ; assertCreateFails ( ci , com.google.gerrit.extensions.restapi.MethodNotAllowedException.class , "draft workflow is disabled" ) ; }

Target:
public void createNewDraftChangeNotAllowed ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( isAllowDrafts ( ) ) . isFalse ( ) ; com.google.gerrit.extensions.common.ChangeInput ci = newChangeInput ( ChangeStatus.DRAFT ) ; assertCreateFails ( ci , com.google.gerrit.extensions.restapi.MethodNotAllowedException.class , "draft workflow is disabled" ) ; }
Source:
public com.google.gerrit.server.change.ChangeJson.ChangeInfo format ( com.google.gerrit.reviewdb.client.Change.Id id ) throws com.google.gwtorm.server.OrmException { return format ( new com.google.gerrit.server.query.change.ChangeData ( id ) ) ; }

Target:
public com.google.gerrit.server.change.ChangeJson.ChangeInfo format ( com.google.gerrit.reviewdb.client.Change.Id id ) throws com.google.gwtorm.server.OrmException { return format ( changeDataFactory.create ( db.get ( ) , id ) ) ; }
Source:
static com.google.gerrit.client.projects.ProjectApi.StringMap create ( ) { return ( ( com.google.gerrit.client.projects.ProjectApi.StringMap ) ( createObject ( ) ) ) ; }

Target:
static com.google.gerrit.client.projects.ProjectApi.ConfigParameterValueMap create ( ) { return createObject ( ) . cast ( ) ; }
Source:
public com.google.gerrit.extensions.restapi.Response < ? > apply ( com.google.gerrit.server.change.ChangeEditResource rsrc , com.google.gerrit.server.change.ChangeEdits.Put.Input input ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.extensions.restapi.ResourceConflictException , com.google.gerrit.server.permissions.PermissionBackendException , com.google.gwtorm.server.OrmException , java.io.IOException { return apply ( rsrc.getControl ( ) , rsrc.getPath ( ) , input.content ) ; }

Target:
public com.google.gerrit.extensions.restapi.Response < ? > apply ( com.google.gerrit.server.change.ChangeEditResource rsrc , com.google.gerrit.server.change.ChangeEdits.Put.Input input ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.extensions.restapi.ResourceConflictException , com.google.gerrit.server.permissions.PermissionBackendException , com.google.gwtorm.server.OrmException , java.io.IOException { return apply ( rsrc.getChangeResource ( ) , rsrc.getPath ( ) , input.content ) ; }
Source:
public void validKey ( ) throws java.lang.Exception { assertProblems ( com.google.gerrit.gpg.testutil.TestKeys.validKeyWithoutExpiration ( ) ) ; }

Target:
public void validKey ( ) throws java.lang.Exception { assertNoProblems ( com.google.gerrit.gpg.testutil.TestKeys.validKeyWithoutExpiration ( ) ) ; }
Source:
private java.util.List < com.google.gerrit.common.data.SubmitRecord > ruleError ( java.lang.String err , java.lang.Exception e ) { if ( logErrors ) { com.google.gerrit.server.project.SubmitRuleEvaluator.log.error ( err , e ) ; return com.google.gerrit.server.project.SubmitRuleEvaluator.defaultRuleError ( ) ; } else { return com.google.gerrit.server.project.SubmitRuleEvaluator.createRuleError ( err ) ; } }

Target:
private com.google.gerrit.common.data.SubmitTypeRecord typeError ( java.lang.String err ) { return typeError ( err , null ) ; }
Source:
public boolean allowsEdit ( final com.google.gerrit.reviewdb.Account.FieldName field ) { switch ( field ) { case FULL_NAME : return ( accountFullName ) == null ; case SSH_USER_NAME : return ( accountSshUserName ) == null ; default : return true ; } }

Target:
public boolean allowsEdit ( final com.google.gerrit.reviewdb.Account.FieldName field ) { switch ( field ) { case FULL_NAME : return ( accountFullName ) == null ; case USER_NAME : return ( accountSshUserName ) == null ; default : return true ; } }
Source:
private static com.google.common.base.Optional < org.eclipse.jgit.lib.ObjectId > noMetaId ( ) { return com.google.common.base.Optional.absent ( ) ; }

Target:
private static java.util.Optional < org.eclipse.jgit.lib.ObjectId > noMetaId ( ) { return java.util.Optional.empty ( ) ; }
Source:
private void setDefaultFields ( javax.servlet.FilterConfig filterConfig ) throws javax.servlet.ServletException { setDefaultConfig ( filterConfig ) ; setDefaultRenderer ( filterConfig ) ; setDefaultUrls ( ) ; setDefaultAccess ( ) ; setDefaultVisibilityCache ( ) ; setDefaultTimeCache ( ) ; setDefaultBlameCache ( ) ; setDefaultGitwebRedirect ( ) ; }

Target:
private void setDefaultFields ( javax.servlet.FilterConfig filterConfig ) throws javax.servlet.ServletException { setDefaultConfig ( filterConfig ) ; setDefaultRenderer ( filterConfig ) ; setDefaultUrls ( ) ; setDefaultAccess ( ) ; setDefaultVisibilityCache ( ) ; setDefaultTimeCache ( ) ; setDefaultBlameCache ( ) ; setDefaultGitwebRedirect ( ) ; setDefaultDateFormatterBuilder ( ) ; }
Source:
public void removeFromNonExistingGroup_NotFound ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( DELETE ( "/groups/non-existing/members/admin" ) ) . isEqualTo ( HttpStatus.SC_NOT_FOUND ) ; }

Target:
public void removeFromNonExistingGroup_NotFound ( ) throws java.lang.Exception { try { gApi.groups ( ) . id ( "non-existing" ) . removeMembers ( "admin" ) ; } catch ( com.google.gerrit.extensions.restapi.ResourceNotFoundException expected ) { } }
Source:
com.google.gwtorm.client.ResultSet < com.google.gerrit.reviewdb.PatchLineComment > published ( com.google.gerrit.reviewdb.PatchSet.Id patchset ) throws com.google.gwtorm.client.OrmException ;

Target:
com.google.gwtorm.client.ResultSet < com.google.gerrit.reviewdb.PatchLineComment > publishedByPatchSet ( com.google.gerrit.reviewdb.PatchSet.Id patchset ) throws com.google.gwtorm.client.OrmException ;
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( event.getCharCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { addMember.fireEvent ( new com.google.gwt.event.dom.client.ClickEvent ( ) { } ) ; } }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { submitOnSelection = false ; if ( ( event.getCharCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { if ( nameTxt.isSuggestionListShowing ( ) ) { submitOnSelection = true ; } else { doAdd ( ) ; } } }
Source:
public java.util.List < com.google.gerrit.extensions.common.GroupInfo > includedGroups ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return listGroups.apply ( rsrc ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot list included groups" , e ) ; } }

Target:
public java.util.List < com.google.gerrit.extensions.common.GroupInfo > includedGroups ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return listGroups.apply ( rsrc ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot list included groups" , e ) ; } }
Source:
public com.google.gerrit.server.project.ChangeControl forUser ( final com.google.gerrit.server.CurrentUser who ) { return new com.google.gerrit.server.project.ChangeControl ( getRefControl ( ) . forUser ( who ) , getChange ( ) ) ; }

Target:
public com.google.gerrit.server.project.ChangeControl forUser ( final com.google.gerrit.server.CurrentUser who ) { return new com.google.gerrit.server.project.ChangeControl ( approvalsUtil , getRefControl ( ) . forUser ( who ) , getChange ( ) ) ; }
Source:
protected void setDownloadHeaders ( javax.servlet.http.HttpServletResponse res , java.lang.String filename , java.lang.String contentType ) { res.setContentType ( contentType ) ; res.setHeader ( com.google.common.net.HttpHeaders.CONTENT_DISPOSITION , ( "attachment; filename=" + filename ) ) ; setCacheHeaders ( res ) ; }

Target:
protected void setDownloadHeaders ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res , java.lang.String filename , java.lang.String contentType ) { res.setContentType ( contentType ) ; res.setHeader ( com.google.common.net.HttpHeaders.CONTENT_DISPOSITION , ( "attachment; filename=" + filename ) ) ; setCacheHeaders ( req , res ) ; }
Source:
final native void add_member ( java.lang.String n ) ;

Target:
final native void addMember ( java.lang.String n ) ;
Source:
public void evict ( com.google.gerrit.reviewdb.client.AccountGroup group ) throws java.io.IOException { }

Target:
public void evict ( com.google.gerrit.reviewdb.client.AccountGroup.UUID groupUuid , com.google.gerrit.reviewdb.client.AccountGroup.Id groupId , com.google.gerrit.reviewdb.client.AccountGroup.NameKey groupName ) { }
Source:
protected void configure ( ) { bind ( com.google.gerrit.httpd.GerritUiOptions.class ) . toInstance ( new com.google.gerrit.httpd.GerritUiOptions ( headless ) ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.httpd.GerritOptions.class ) . toInstance ( new com.google.gerrit.httpd.GerritOptions ( headless ) ) ; if ( test ) { bind ( com.google.gerrit.server.securestore.SecureStore.class ) . toProvider ( com.google.gerrit.server.securestore.SecureStoreProvider.class ) ; } }
Source:
public void invalidateAll ( ) { java.io.File [ ] files = dir.listFiles ( ) ; if ( files != null ) { for ( java.io.File f : files ) { deleteFile ( f ) ; } } }

Target:
public void invalidateAll ( ) { for ( java.nio.file.Path path : listFiles ( ) ) { deleteFile ( path ) ; } }
Source:
public boolean handles ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) { return com.google.gerrit.reviewdb.client.AccountGroup.isInternalGroup ( uuid ) ; }

Target:
public boolean handles ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) { return org.eclipse.jgit.lib.ObjectId.isId ( uuid.get ( ) ) ; }
Source:
public com.google.gerrit.server.change.ChangeEdits.Create post ( com.google.gerrit.server.change.ChangeResource parent ) throws com.google.gerrit.extensions.restapi.RestApiException { return createFactory.create ( parent.getChange ( ) , null ) ; }

Target:
public com.google.gerrit.server.change.ChangeEdits.Post post ( com.google.gerrit.server.change.ChangeResource parent ) throws com.google.gerrit.extensions.restapi.RestApiException { return post ; }
Source:
public com.google.gerrit.server.account.AccountInfo apply ( com.google.gerrit.server.account.AccountResource rsrc ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.server.account.AccountInfo.Loader loader = infoFactory.create ( true ) ; com.google.gerrit.server.account.AccountInfo info = loader.get ( rsrc.getUser ( ) . getAccountId ( ) ) ; loader.fill ( ) ; return info ; }

Target:
public com.google.gerrit.extensions.common.AccountInfo apply ( com.google.gerrit.server.account.AccountResource rsrc ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.server.account.AccountLoader loader = infoFactory.create ( true ) ; com.google.gerrit.extensions.common.AccountInfo info = loader.get ( rsrc.getUser ( ) . getAccountId ( ) ) ; loader.fill ( ) ; return info ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { topic.onEdit ( ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( topic.canEdit ( ) ) { topic.onEdit ( ) ; } }
Source:
public final boolean isRepeatable ( ) { return true ; }

Target:
public < I > com.google.gerrit.server.index.FieldDef < I , java.lang.Iterable < T > > buildRepeatable ( com.google.gerrit.server.index.FieldDef.GetterWithArgs < I , java.lang.Iterable < T > > getter ) { return new com.google.gerrit.server.index.FieldDef ( name , type , stored , true , getter ) ; }
Source:
private static com.google.gerrit.extensions.auth.oauth.OAuthUserInfo getAsOAuthUserInfo ( java.lang.String username ) { return new com.google.gerrit.extensions.auth.oauth.OAuthUserInfo ( ( ( com.google.gerrit.reviewdb.client.AccountExternalId.SCHEME_EXTERNAL ) + username ) , username , null , null , null ) ; }

Target:
private static com.google.gerrit.extensions.auth.oauth.OAuthUserInfo getAsOAuthUserInfo ( java.lang.String username ) { return new com.google.gerrit.extensions.auth.oauth.OAuthUserInfo ( ( ( com.google.gerrit.server.account.externalids.ExternalId.SCHEME_EXTERNAL ) + username ) , username , null , null , null ) ; }
Source:
public void noDate ( ) throws java.lang.Exception { java.util.Map < java.lang.String , java.lang.String > params = new java.util.HashMap < > ( ) ; com.ericsson.gerrit.plugins.eventslog.sql.QueryMakerTest.queryMaker.formQueryFromRequestParameters ( params ) ; }

Target:
public void noDate ( ) throws java.lang.Exception { queryMaker.formQueryFromRequestParameters ( com.google.common.collect.ImmutableMap.< java.lang.String , java.lang.String > of ( ) ) ; }