auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void execute ( ) { message.setFocus ( true ) ; }

Target:
public void execute ( ) { com.google.gwt.user.client.Window.scrollTo ( 0 , 0 ) ; message.setFocus ( true ) ; }
Source:
private void addPermission ( java.lang.String refSpec , java.lang.String action , com.google.gerrit.common.data.PermissionRule rule ) { config.getAccessSection ( refSpec , true ) . getPermission ( action , true ) . add ( rule ) ; }

Target:
private void addPermission ( java.lang.String refSpec , java.lang.String action , com.google.gerrit.common.data.PermissionRule rule ) { projectConfig.getAccessSection ( refSpec , true ) . getPermission ( action , true ) . add ( rule ) ; }
Source:
com.google.gwtorm.client.ResultSet < com.google.gerrit.reviewdb.PatchLineComment > draft ( com.google.gerrit.reviewdb.Patch.Key patch , com.google.gerrit.reviewdb.Account.Id author ) throws com.google.gwtorm.client.OrmException ;

Target:
com.google.gwtorm.client.ResultSet < com.google.gerrit.reviewdb.PatchLineComment > byPatchSet ( com.google.gerrit.reviewdb.PatchSet.Id id ) throws com.google.gwtorm.client.OrmException ;
Source:
private void reindexAfterIndexUpdate ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id id ) { if ( reindexAfterIndexUpdate ) { reindexIfStale ( project , id ) ; } }

Target:
private void reindexAfterIndexUpdate ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id id ) { if ( reindexAfterIndexUpdate ) { @ java.lang.SuppressWarnings ( value = "unused" ) java.util.concurrent.Future < ? > possiblyIgnoredError = reindexIfStale ( project , id ) ; } }
Source:
public java.lang.String getName ( ) { return "Anonymous HTTP" ; }

Target:
public boolean isAuthRequired ( ) { return false ; }
Source:
synchronized void updatingMergeabilityFlag ( com.google.gerrit.reviewdb.client.Change change ) { pending.remove ( change.getId ( ) ) ; }

Target:
synchronized void updatingMergeabilityFlag ( com.google.gerrit.reviewdb.client.Change change , boolean force ) { if ( force ) { forcePending.remove ( change.getId ( ) ) ; } pending.remove ( change.getId ( ) ) ; }
Source:
public boolean match ( int psValue , int expValue ) { return psValue == expValue ; }

Target:
boolean isGtEq ( ) { return com.google.gerrit.server.query.change.LabelPredicate.Test.GT_EQ.equals ( this ) ; }
Source:
public final native java.lang.String getName ( ) ;

Target:
public final native java.lang.String description ( ) ;
Source:
protected void configure ( ) { bind ( com.google.gerrit.common.ChangeHookRunner.class ) ; bind ( com.google.gerrit.common.ChangeHooks.class ) . to ( com.google.gerrit.common.ChangeHookRunner.class ) ; listener ( ) . to ( com.google.gerrit.common.ChangeHookRunner.class ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.common.ChangeHookRunner.class ) ; bind ( com.google.gerrit.common.ChangeHooks.class ) . to ( com.google.gerrit.common.ChangeHookRunner.class ) ; bind ( com.google.gerrit.common.EventSource.class ) . to ( com.google.gerrit.common.ChangeHookRunner.class ) ; listener ( ) . to ( com.google.gerrit.common.ChangeHookRunner.class ) ; }
Source:
public void onSuccess ( final com.google.gwtjsonrpc.common.VoidResult result ) { cbox.setEnabled ( true ) ; }

Target:
public void onSuccess ( com.google.gwt.core.client.JsArray < com.google.gerrit.client.account.ProjectWatchInfo > watchedProjects ) { cbox.setEnabled ( true ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( event.getCharCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { update ( ) ; } }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( event.getNativeEvent ( ) . getKeyCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { update ( ) ; } }
Source:
public static boolean readWrite ( ) { return ( com.google.gerrit.testutil.NoteDbMode.get ( ) ) == ( com.google.gerrit.testutil.NoteDbMode.READ_WRITE ) ; }

Target:
public static boolean readWrite ( ) { return ( ( com.google.gerrit.testutil.NoteDbMode.get ( ) ) == ( com.google.gerrit.testutil.NoteDbMode.READ_WRITE ) ) || ( ( com.google.gerrit.testutil.NoteDbMode.get ( ) ) == ( com.google.gerrit.testutil.NoteDbMode.PRIMARY ) ) ; }
Source:
public com.google.gerrit.server.query.InternalQuery < T > setLimit ( int n ) { queryProcessor.setUserProvidedLimit ( n ) ; return this ; }

Target:
public com.google.gerrit.index.query.InternalQuery < T > setLimit ( int n ) { queryProcessor.setUserProvidedLimit ( n ) ; return this ; }
Source:
private boolean isEdit ( ) { return getStyleName ( ) . contains ( draftStyle.edit ( ) ) ; }

Target:
void onCancel ( com.google.gwt.event.dom.client.ClickEvent e ) { setEdit ( false ) ; resizePaddingWidget ( ) ; }
Source:
public void onOpen ( com.google.gwt.event.logical.shared.OpenEvent < com.google.gwt.user.client.ui.DisclosurePanel > event ) { activate ( patchSetId ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { activate ( patchSetId ) ; }
Source:
public void delete_MethodNotAllowed ( ) throws java.lang.Exception { adminSession.put ( ( ( "/accounts/" + ( admin.username ) ) + "/username" ) ) . assertMethodNotAllowed ( ) ; }

Target:
public void delete_MethodNotAllowed ( ) throws java.lang.Exception { adminRestSession.put ( ( ( "/accounts/" + ( admin.username ) ) + "/username" ) ) . assertMethodNotAllowed ( ) ; }
Source:
public void init ( javax.servlet.FilterConfig config ) throws javax.servlet.ServletException { for ( com.google.gerrit.httpd.AllRequestFilter f : filters ) { f.init ( config ) ; } }

Target:
public void init ( javax.servlet.FilterConfig config ) throws javax.servlet.ServletException { filterConfig = config ; for ( com.google.gerrit.httpd.AllRequestFilter f : filters ) { initFilterIfNeeded ( f ) ; } }
Source:
public com.googlesource.gerrit.plugins.hooks.validation.ItsAssociationPolicy getItsAssociationPolicy ( ) { return gerritConfig.getEnum ( "commentlink" , pluginName , "association" , ItsAssociationPolicy.OPTIONAL ) ; }

Target:
public com.googlesource.gerrit.plugins.hooks.validation.ItsAssociationPolicy getItsAssociationPolicy ( ) { return gerritConfig.getEnum ( "commentlink" , getCommentLinkName ( ) , "association" , ItsAssociationPolicy.OPTIONAL ) ; }
Source:
public final native void setFrom ( net.codemirror.lib.LineCharacter from ) ;

Target:
public final native net.codemirror.lib.Pos to ( ) ;
Source:
public com.google.gerrit.server.IdentifiedUser create ( final com.google.gerrit.client.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( authConfig , accountCache , realm , remotePeerProvider , dbProvider , id ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( final com.google.gerrit.server.AccessPath accessPath , final com.google.gerrit.client.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( accessPath , authConfig , accountCache , realm , remotePeerProvider , dbProvider , id ) ; }
Source:
void sendMessages ( ) { for ( com.google.gerrit.server.git.validators.CommitValidationMessage m : messages ) { if ( m.isError ( ) ) { messageSender.sendError ( m.getMessage ( ) ) ; } else { messageSender.sendMessage ( m.getMessage ( ) ) ; } } }

Target:
void sendMessages ( ) { for ( com.google.gerrit.server.git.validators.ValidationMessage m : messages ) { if ( m.isError ( ) ) { messageSender.sendError ( m.getMessage ( ) ) ; } else { messageSender.sendMessage ( m.getMessage ( ) ) ; } } }
Source:
com.google.gerrit.server.change.PatchSetInserter create ( com.google.gerrit.server.project.ChangeControl ctl , com.google.gerrit.reviewdb.client.PatchSet.Id psId , org.eclipse.jgit.revwalk.RevCommit commit ) ;

Target:
com.google.gerrit.server.change.PatchSetInserter create ( com.google.gerrit.server.project.ChangeControl ctl , com.google.gerrit.reviewdb.client.PatchSet.Id psId , org.eclipse.jgit.lib.ObjectId commitId ) ;
Source:
private com.google.gwtexpui.globalkey.client.KeyCommand setupNav ( com.google.gerrit.client.ui.InlineHyperlink link , int key , java.lang.String help , com.google.gerrit.client.diff.FileInfo info ) { }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { com.google.gerrit.client.Gerrit.display ( url ) ; }
Source:
protected void onCellSingleClick ( int row , int column ) { movePointerTo ( row ) ; }

Target:
protected void onCellSingleClick ( com.google.gwt.user.client.Event event , int row , int column ) { movePointerTo ( row ) ; }
Source:
public void testEvictCacheFailed ( ) throws java.lang.Exception { setupMocks ( Constants.DEFAULT , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.EMPTY_JSON2 , false , false ) ; com.google.common.truth.Truth.assertThat ( restClient.evict ( com.ericsson.gerrit.plugins.evictcache.RestSessionTest.SOURCE_NAME , Constants.DEFAULT , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.EMPTY_JSON ) ) . isFalse ( ) ; }

Target:
public void testEvictProjectListOK ( ) throws java.lang.Exception { setupMocks ( Constants.PROJECT_LIST , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.EMPTY_JSON , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.OK_RESPONSE , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.DO_NOT_THROW_EXCEPTION ) ; com.google.common.truth.Truth.assertThat ( restClient.evict ( com.ericsson.gerrit.plugins.evictcache.RestSessionTest.SOURCE_NAME , Constants.PROJECT_LIST , new java.lang.Object ( ) ) ) . isTrue ( ) ; }
Source:
public java.io.PrintWriter getWriter ( ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public synchronized java.io.PrintWriter getWriter ( ) { com.google.common.base.Preconditions.checkState ( ( ( outputStream ) == null ) , "getOutputStream() already called" ) ; if ( ( writer ) == null ) { writer = new java.io.PrintWriter ( actualBody ) ; } return writer ; }
Source:
public static com.google.gerrit.reviewdb.client.Account.Id parse ( java.lang.String str ) { com.google.gerrit.reviewdb.client.Account.Id r = new com.google.gerrit.reviewdb.client.Account.Id ( ) ; r.fromString ( str ) ; return r ; }

Target:
public static java.util.Optional < com.google.gerrit.reviewdb.client.Account.Id > tryParse ( java.lang.String str ) { try { return java.util.Optional.of ( new com.google.gerrit.reviewdb.client.Account.Id ( java.lang.Integer.parseInt ( str ) ) ) ; } catch ( java.lang.NumberFormatException e ) { return java.util.Optional.empty ( ) ; } }
Source:
void onSave ( ) { }

Target:
public void onSuccess ( final com.google.gerrit.client.reviewdb.PatchLineComment result ) { comment = result ; text.setReadOnly ( false ) ; discard.setEnabled ( true ) ; updateSavedAt ( ) ; }
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.ImmutableList < com.google.gerrit.server.ReviewerStatusUpdate > getReviewerUpdates ( ) { return state.reviewerUpdates ( ) ; }
Source:
public boolean canSubmit ( ) { return getRefControl ( ) . canSubmit ( ) ; }

Target:
public boolean canSubmit ( ) { return getRefControl ( ) . canSubmit ( isOwner ( ) ) ; }
Source:
public void end ( ) { if ( ( ( total ) == ( com.google.gerrit.server.git.MultiProgressMonitor.UNKNOWN ) ) && ( ( count ) > 0 ) ) { wakeUp ( ) ; } }

Target:
public synchronized int getCount ( ) { return count ; }
Source:
public void setUp ( ) throws java.lang.Exception { admin = accounts.admin ( ) ; session = new com.google.gerrit.acceptance.RestSession ( server , admin ) ; com.google.gerrit.acceptance.git.GitUtil.initSsh ( admin ) ; project = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p" ) ; db = reviewDbProvider.open ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { admin = accounts.admin ( ) ; session = new com.google.gerrit.acceptance.RestSession ( server , admin ) ; com.google.gerrit.acceptance.GitUtil.initSsh ( admin ) ; project = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p" ) ; db = reviewDbProvider.open ( ) ; }
Source:
public com.googlesource.gerrit.plugins.its.phabricator.conduit.results.ManiphestUpdate maniphestUpdate ( int taskId , java.lang.String comment ) throws com.googlesource.gerrit.plugins.its.phabricator.conduit.ConduitException { return maniphestUpdate ( taskId , comment , null ) ; }

Target:
public com.googlesource.gerrit.plugins.its.phabricator.conduit.results.ManiphestEdit maniphestEdit ( int taskId , java.lang.String comment ) throws com.googlesource.gerrit.plugins.its.phabricator.conduit.ConduitException { return maniphestEdit ( taskId , comment , null , com.googlesource.gerrit.plugins.its.phabricator.conduit.Conduit.ACTION_COMMENT ) ; }
Source:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { hide ( ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { if ( callback != null ) { callback.onFailure ( null ) ; } hide ( ) ; }
Source:
void removeAll ( ) { if ( ( skipBars ) != null ) { for ( com.google.gerrit.client.diff.SkipBar bar : skipBars ) { bar.expandAll ( ) ; } skipBars = null ; line0 = null ; } }

Target:
void removeAll ( ) { if ( ( skipBars ) != null ) { for ( com.google.gerrit.client.diff.SkipBar bar : skipBars ) { bar.expandSideAll ( ) ; } skipBars = null ; line0 = null ; } }
Source:
private static native java.lang.String go ( java.lang.String srcText , java.lang.String srcType , int tabSize ) ;

Target:
private static native java.lang.String go ( com.google.gwt.core.client.JavaScriptObject ctx , java.lang.String srcText , java.lang.String srcType , int tabSize ) ;
Source:
public int compare ( com.google.gerrit.server.patch.PatchListEntry a , com.google.gerrit.server.patch.PatchListEntry b ) { return com.google.gerrit.server.patch.PatchList.comparePaths ( a.getNewName ( ) , b.getNewName ( ) ) ; }

Target:
public int compare ( com.google.gerrit.server.diff.PatchListEntry a , com.google.gerrit.server.diff.PatchListEntry b ) { return com.google.gerrit.server.diff.PatchList.comparePaths ( a.getNewName ( ) , b.getNewName ( ) ) ; }
Source:
public com.google.gerrit.extensions.restapi.BinaryResult apply ( com.google.gerrit.server.project.FileResource rsrc ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException , java.io.IOException { return fileContentUtil.getContent ( rsrc.getProject ( ) , rsrc.getRev ( ) , rsrc.getPath ( ) ) ; }

Target:
public com.google.gerrit.extensions.restapi.BinaryResult apply ( com.google.gerrit.server.project.FileResource rsrc ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException , java.io.IOException { return fileContentUtil.getContent ( rsrc.getProject ( ) . getProjectState ( ) , rsrc.getRev ( ) , rsrc.getPath ( ) ) ; }
Source:
public static void drafts ( com.google.gerrit.reviewdb.client.PatchSet.Id id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.rpc.NativeMap < com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.CommentInfo > > > cb ) { com.google.gerrit.client.changes.CommentApi.revision ( id , "drafts" ) . get ( cb ) ; }

Target:
public static void draft ( @ 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.gerrit.client.changes.CommentInfo > cb ) { com.google.gerrit.client.changes.CommentApi.revision ( project , id , "drafts" ) . id ( draftId ) . get ( cb ) ; }
Source:
public com.google.gerrit.acceptance.RestResponse delete ( java.lang.String endPoint ) throws java.io.IOException { return execute ( org.apache.http.client.fluent.Request.Delete ( ( ( ( url ) + "/a" ) + endPoint ) ) ) ; }

Target:
private java.lang.String getUrl ( java.lang.String endPoint ) { return ( ( url ) + ( ( account ) != null ? "/a" : "" ) ) + endPoint ; }
Source:
public com.google.gerrit.server.project.FileResource parse ( com.google.gerrit.server.project.BranchResource parent , com.google.gerrit.extensions.restapi.IdString id ) { return new com.google.gerrit.server.project.FileResource ( parent.getControl ( ) , org.eclipse.jgit.lib.ObjectId.fromString ( parent.getRevision ( ) ) , id.get ( ) ) ; }

Target:
public com.google.gerrit.server.project.FileResource parse ( com.google.gerrit.server.project.BranchResource parent , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException , java.io.IOException { return com.google.gerrit.server.project.FileResource.create ( repoManager , parent.getControl ( ) , org.eclipse.jgit.lib.ObjectId.fromString ( parent.getRevision ( ) ) , id.get ( ) ) ; }
Source:
private com.google.gerrit.server.config.GetServerInfo.ContactStoreInfo getContactStoreInfo ( ) { java.lang.String url = config.getString ( "contactstore" , null , "url" ) ; if ( url == null ) { return null ; } com.google.gerrit.server.config.GetServerInfo.ContactStoreInfo contactStore = new com.google.gerrit.server.config.GetServerInfo.ContactStoreInfo ( ) ; contactStore.url = url ; return contactStore ; }

Target:
private com.google.gerrit.server.config.GetServerInfo.ReceiveInfo getReceiveInfo ( ) { com.google.gerrit.server.config.GetServerInfo.ReceiveInfo info = new com.google.gerrit.server.config.GetServerInfo.ReceiveInfo ( ) ; info.enableSignedPush = enableSignedPush ; return info ; }
Source:
private void wrapText ( java.lang.String tag , org.pegdown.ast.TextNode node ) { html.open ( tag ) . appendAndEscape ( node.getText ( ) ) . close ( tag ) ; }

Target:
private void wrapChildren ( java.lang.String tag , org.commonmark.node.Node node ) { html.open ( tag ) ; visitChildren ( node ) ; html.close ( tag ) ; }
Source:
protected void saveProjectConfig ( com.google.gerrit.server.git.ProjectConfig cfg ) throws java.lang.Exception { try ( com.google.gerrit.server.git.meta.MetaDataUpdate md = metaDataUpdateFactory.create ( cfg.getName ( ) ) ) { cfg.commit ( md ) ; } projectCache.evict ( cfg.getProject ( ) ) ; }

Target:
protected void saveProjectConfig ( com.google.gerrit.server.project.ProjectConfig cfg ) throws java.lang.Exception { try ( com.google.gerrit.server.git.meta.MetaDataUpdate md = metaDataUpdateFactory.create ( cfg.getName ( ) ) ) { cfg.commit ( md ) ; } projectCache.evict ( cfg.getProject ( ) ) ; }
Source:
static boolean skip ( org.eclipse.jgit.lib.Ref ref ) { return ( ( ref.isSymbolic ( ) ) || ( ( ref.getObjectId ( ) ) == null ) ) || ( com.google.gerrit.reviewdb.client.PatchSet.isRef ( ref.getName ( ) ) ) ; }

Target:
static boolean skip ( org.eclipse.jgit.lib.Ref ref ) { return ( ( ref.isSymbolic ( ) ) || ( ( ref.getObjectId ( ) ) == null ) ) || ( com.google.gerrit.reviewdb.client.PatchSet.isChangeRef ( ref.getName ( ) ) ) ; }
Source:
protected java.io.PrintWriter startRenderText ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res ) throws java.io.IOException { setApiHeaders ( res , com.google.gitiles.FormatType.TEXT ) ; return res.getWriter ( ) ; }

Target:
private java.io.Writer getWriter ( javax.servlet.http.HttpServletResponse res ) throws java.io.IOException { return new java.io.OutputStreamWriter ( res.getOutputStream ( ) , res.getCharacterEncoding ( ) ) ; }
Source:
abstract void initPatchSetListForTableHeader ( ) ;

Target:
abstract PatchScreen.Type getPatchScreenType ( ) ;
Source:
public java.lang.String get ( com.google.gerrit.server.account.AccountState input , com.google.gerrit.server.index.account.FillArgs args ) { return input.getUserName ( ) . toLowerCase ( ) ; }

Target:
public java.lang.String get ( com.google.gerrit.server.account.AccountState input , com.google.gerrit.server.index.account.FillArgs args ) { return com.google.common.base.Strings.nullToEmpty ( input.getUserName ( ) ) . toLowerCase ( ) ; }
Source:
public boolean canWrite ( ) { return getProjectControl ( ) . getProject ( ) . getState ( ) . equals ( Project.State.ACTIVE ) ; }

Target:
public boolean canRead ( ) { return ( getProjectControl ( ) . getProject ( ) . getState ( ) . equals ( ProjectState.READ_ONLY ) ) || ( canWrite ( ) ) ; }
Source:
public void onUpdate ( org.eclipse.jgit.lib.ObjectId newNotesRev , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > extId ) { }

Target:
public void onRemoveByKeys ( org.eclipse.jgit.lib.ObjectId oldNotesRev , org.eclipse.jgit.lib.ObjectId newNotesRev , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId.Key > extIdKeys ) { }
Source:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > deleteAsync ( com.google.gerrit.server.query.change.ChangeData cd ) { return ( executor ) != null ? submit ( new com.google.gerrit.server.index.ChangeIndexer.Task ( cd , true ) ) : com.google.common.util.concurrent.Futures.< java.lang.Object , java.io.IOException > immediateCheckedFuture ( null ) ; }

Target:
public void delete ( com.google.gerrit.server.query.change.ChangeData cd ) throws java.io.IOException { for ( com.google.gerrit.server.index.ChangeIndex i : getWriteIndexes ( ) ) { i.delete ( cd ) ; } }
Source:
public void addReviewerToReviewableWipChange ( ) throws java.lang.Exception { forAll ( ( adder ) -> { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableWipChange ( ) ; 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 addReviewerToWipChangeBatch ( ) throws java.lang.Exception { addReviewerToWipChange ( batch ( ) ) ; }
Source:
public void shouldHavePushTask ( ) { replicationState.increasePushTaskCount ( "someProject" , "someRef" ) ; org.junit.Assert.assertTrue ( replicationState.hasPushTask ( ) ) ; }

Target:
public void shouldHavePushTask ( ) { replicationState.increasePushTaskCount ( "someProject" , "someRef" ) ; com.google.common.truth.Truth.assertThat ( replicationState.hasPushTask ( ) ) . isTrue ( ) ; }
Source:
private static boolean isTextBody ( com.google.gwt.http.client.Response res ) { return com.google.gerrit.client.rpc.RestApi.isContentType ( res , "text/plain" ) ; }

Target:
private static boolean isJsonBody ( com.google.gwt.http.client.Response res ) { return com.google.gerrit.client.rpc.RestApi.isContentType ( res , com.google.gerrit.client.rpc.RestApi.JSON_TYPE ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { upToChange ( ) . run ( ) ; }

Target:
public void onResize ( com.google.gwt.event.logical.shared.ResizeEvent event ) { resizeCodeMirror ( ) ; }
Source:
public void index ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { index.apply ( change , new com.google.gerrit.server.change.Index.Input ( ) ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot index change" , e ) ; } }

Target:
public void index ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { index.apply ( change , new com.google.gerrit.extensions.common.Input ( ) ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot index change" , e ) ; } }
Source:
public void onSignOut ( ) { if ( isRequiresSignIn ( ) ) { com.google.gwt.user.client.History.newItem ( Link.ALL ) ; } }

Target:
public void onSignOut ( ) { if ( isRequiresSignIn ( ) ) { com.google.gwt.user.client.History.newItem ( Link.ALL_OPEN ) ; } }
Source:
private com.google.inject.Module createIndexModule ( ) { switch ( indexType ) { case LUCENE : return new com.google.gerrit.lucene.LuceneIndexModule ( ) ; default : throw new java.lang.IllegalStateException ( ( "unsupported index.type = " + ( indexType ) ) ) ; } }

Target:
private com.google.inject.Module createIndexModule ( ) { switch ( indexType ) { case LUCENE : return com.google.gerrit.lucene.LuceneIndexModule.latestVersionWithOnlineUpgrade ( ) ; default : throw new java.lang.IllegalStateException ( ( "unsupported index.type = " + ( indexType ) ) ) ; } }
Source:
protected java.io.File newSitePath ( ) throws java.io.IOException { return new java.io.File ( createWorkRepository ( ) . getWorkTree ( ) , "test_site" ) ; }

Target:
protected java.nio.file.Path newSitePath ( ) throws java.io.IOException { return createWorkRepository ( ) . getWorkTree ( ) . toPath ( ) . resolve ( "test_site" ) ; }
Source:
protected com.google.gerrit.server.change.ChangeInserter newChange ( org.eclipse.jgit.junit.TestRepository < com.google.gerrit.testutil.InMemoryRepositoryManager.Repo > repo ) throws java.lang.Exception { return newChange ( repo , null , null , null , null , null ) ; }

Target:
protected com.google.gerrit.reviewdb.client.Change insert ( org.eclipse.jgit.junit.TestRepository < com.google.gerrit.testutil.InMemoryRepositoryManager.Repo > repo , com.google.gerrit.server.change.ChangeInserter ins ) throws java.lang.Exception { return insert ( repo , ins , null ) ; }
Source:
public void banCommit_Forbidden ( ) throws java.lang.Exception { userSession.put ( ( ( "/projects/" + ( project.get ( ) ) ) + "/ban/" ) , BanCommit.Input.fromCommits ( "a8a477efffbbf3b44169bb9a1d3a334cbbd9aa96" ) ) . assertForbidden ( ) ; }

Target:
public void banCommit_Forbidden ( ) throws java.lang.Exception { userRestSession.put ( ( ( "/projects/" + ( project.get ( ) ) ) + "/ban/" ) , BanCommit.Input.fromCommits ( "a8a477efffbbf3b44169bb9a1d3a334cbbd9aa96" ) ) . assertForbidden ( ) ; }
Source:
private com.googlesource.gerrit.plugins.uploadvalidator.ValidatorConfig getConfig ( java.lang.String defaultConfig ) throws org.eclipse.jgit.errors.ConfigInvalidException { com.googlesource.gerrit.plugins.uploadvalidator.ValidatorConfig config = new com.googlesource.gerrit.plugins.uploadvalidator.ValidatorConfig ( new com.googlesource.gerrit.plugins.uploadvalidator.FakeConfigFactory ( projectName , defaultConfig ) ) ; return config ; }

Target:
private com.googlesource.gerrit.plugins.uploadvalidator.ValidatorConfig getConfig ( java.lang.String defaultConfig ) throws org.eclipse.jgit.errors.ConfigInvalidException { com.googlesource.gerrit.plugins.uploadvalidator.ValidatorConfig config = new com.googlesource.gerrit.plugins.uploadvalidator.ValidatorConfig ( new com.googlesource.gerrit.plugins.uploadvalidator.FakeConfigFactory ( projectName , defaultConfig ) , new com.googlesource.gerrit.plugins.uploadvalidator.FakeUserProvider ( ) , new com.googlesource.gerrit.plugins.uploadvalidator.FakeGroupCacheUUIDByName ( ) ) ; return config ; }
Source:
public synchronized com.google.gerrit.testutil.FakeEmailSender.Message peekMessage ( ) { if ( ( messagesRead ) >= ( messages.size ( ) ) ) { return null ; } return messages.get ( messagesRead ) ; }

Target:
public synchronized com.google.gerrit.testing.FakeEmailSender.Message peekMessage ( ) { if ( ( messagesRead ) >= ( messages.size ( ) ) ) { return null ; } return messages.get ( messagesRead ) ; }
Source:
private void afterTest ( ) throws java.lang.Exception { db.close ( ) ; sshSession.close ( ) ; server.stop ( ) ; com.google.gerrit.testutil.TempFileUtil.cleanup ( ) ; }

Target:
public static void stopCommonServer ( ) throws java.lang.Exception { if ( ( com.google.gerrit.acceptance.AbstractDaemonTest.commonServer ) != null ) { com.google.gerrit.acceptance.AbstractDaemonTest.commonServer.stop ( ) ; com.google.gerrit.acceptance.AbstractDaemonTest.commonServer = null ; } com.google.gerrit.testutil.TempFileUtil.cleanup ( ) ; }
Source:
public java.lang.String required ( java.lang.String name ) { return com.google.gerrit.server.config.ConfigUtil.getRequired ( cfg , null , name ) ; }

Target:
public java.lang.String required ( java.lang.String name ) { return com.google.gerrit.server.config.ConfigUtil.getRequired ( cfg , section , name ) ; }
Source:
public com.google.gerrit.server.project.ConfigInfo apply ( com.google.gerrit.server.project.ProjectResource resource ) { return new com.google.gerrit.server.project.ConfigInfo ( resource.getControl ( ) . getProjectState ( ) , config ) ; }

Target:
public com.google.gerrit.server.project.ConfigInfo apply ( com.google.gerrit.server.project.ProjectResource resource ) { return new com.google.gerrit.server.project.ConfigInfo ( resource.getControl ( ) , resource.getControl ( ) . getProjectState ( ) , config , views , currentUser ) ; }
Source:
public void invalidate ( final com.google.gerrit.client.reviewdb.Project p ) { if ( p != null ) { auto.remove ( p.getNameKey ( ) ) ; } }

Target:
public void evict ( final com.google.gerrit.client.reviewdb.Project p ) { if ( p != null ) { auto.remove ( p.getNameKey ( ) ) ; } }
Source:
public com.google.gerrit.server.account.GetSshKeys.SshKeyInfo apply ( com.google.gerrit.server.account.AccountResource.SshKey rsrc ) { return new com.google.gerrit.server.account.GetSshKeys.SshKeyInfo ( rsrc.getSshKey ( ) ) ; }

Target:
public com.google.gerrit.extensions.common.SshKeyInfo apply ( com.google.gerrit.server.account.AccountResource.SshKey rsrc ) { return com.google.gerrit.server.account.GetSshKeys.newSshKeyInfo ( rsrc.getSshKey ( ) ) ; }
Source:
public void setPreviewText ( final java.lang.String text ) { if ( ( textLabel ) != null ) { textLabel.setText ( text ) ; } }

Target:
public void setPreviewText ( final java.lang.String text ) { if ( ( textLabel ) != null ) { textLabel.setText ( text ) ; visibleLen = text.length ( ) ; } }
Source:
void onSaveSuccess ( final com.google.gerrit.reviewdb.client.Account userAccount ) { super . onSaveSuccess ( userAccount ) ; displayHasContact ( userAccount ) ; }

Target:
void onSaveSuccess ( com.google.gerrit.client.info.AccountInfo account ) { super . onSaveSuccess ( account ) ; displayHasContact ( account ) ; }
Source:
public void onSuccess ( final com.google.gwtjsonrpc.common.VoidResult result ) { com.google.gerrit.client.Gerrit.getUserAccount ( ) . setGeneralPreferences ( p ) ; com.google.gerrit.client.Gerrit.applyUserPreferences ( ) ; com.google.gerrit.client.Dispatcher.changeScreen2 = false ; enable ( true ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.account.Preferences prefs ) { com.google.gerrit.client.Gerrit.getUserAccount ( ) . setGeneralPreferences ( p ) ; com.google.gerrit.client.Gerrit.applyUserPreferences ( ) ; enable ( true ) ; display ( prefs ) ; com.google.gerrit.client.Gerrit.refreshMenuBar ( ) ; }
Source:
public void pruneSchema ( com.google.gwtorm.server.StatementExecutor e ) { throw new java.lang.AssertionError ( com.google.gerrit.testutil.DisabledReviewDb.MESSAGE ) ; }

Target:
public void pruneSchema ( com.google.gwtorm.server.StatementExecutor e ) { throw new com.google.gerrit.testutil.DisabledReviewDb.Disabled ( ) ; }
Source:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { doSave ( ) ; }

Target:
public void onSuccess ( final com.google.gwtjsonrpc.common.VoidResult result ) { com.google.gerrit.client.Gerrit.getUserAccount ( ) . setGeneralPreferences ( p ) ; com.google.gerrit.client.Gerrit.applyUserPreferences ( ) ; enable ( true ) ; }
Source:
void setRepository ( final org.eclipse.jgit.lib.Repository r ) { db = r ; }

Target:
void setRepository ( org.eclipse.jgit.lib.Repository r , com.google.gerrit.reviewdb.Project.NameKey projectKey ) { this . db = r ; this . projectKey = projectKey ; }
Source:
public java.util.List < com.google.gerrit.extensions.common.ChangeInfo > submittedTogether ( ) throws com.google.gerrit.extensions.restapi.RestApiException { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }

Target:
public java.util.List < com.google.gerrit.extensions.common.ChangeInfo > submittedTogether ( java.util.EnumSet < com.google.gerrit.extensions.client.SubmittedTogetherOption > o ) throws com.google.gerrit.extensions.restapi.RestApiException { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }
Source:
private static java.lang.String format ( final java.lang.String name , final java.lang.String email ) { return new com.google.gerrit.server.mail.Address ( name , email ) . toHeaderString ( ) ; }

Target:
private static java.lang.String format ( final java.lang.String name , final java.lang.String email ) { try { return new com.google.gerrit.server.mail.Address ( name , email ) . toHeaderString ( ) ; } catch ( java.io.UnsupportedEncodingException e ) { throw new java.lang.RuntimeException ( "Cannot encode address" , e ) ; } }
Source:
java.lang.String getPatchSetUrl ( final java.lang.String projectName , final java.lang.String commit ) ;

Target:
com.google.gerrit.extensions.common.WebLinkInfo getPathSetWebLink ( final java.lang.String projectName , final java.lang.String commit ) ;
Source:
protected void configureServlets ( ) { install ( new com.ericsson.gerrit.plugins.highavailability.forwarder.rest.EventForwarderServletModule ( ) ) ; }

Target:
protected void configureServlets ( ) { install ( new com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestForwarderServletModule ( ) ) ; }
Source:
public static void display ( final com.google.gerrit.client.ui.Screen view ) { if ( ( com.google.gerrit.client.Gerrit.currentScreen ) != null ) { com.google.gerrit.client.Gerrit.body.remove ( com.google.gerrit.client.Gerrit.currentScreen ) ; } com.google.gerrit.client.Gerrit.currentScreen = view ; com.google.gerrit.client.Gerrit.body.add ( com.google.gerrit.client.Gerrit.currentScreen ) ; }

Target:
public void onSuccess ( final java.lang.Object result ) { com.google.gerrit.client.Gerrit.display ( view ) ; }
Source:
public com.google.common.collect.Table < com.google.gerrit.reviewdb.client.PatchSet.Id , java.lang.String , com.google.gerrit.reviewdb.client.PatchLineComment > getDraftBaseComments ( com.google.gerrit.reviewdb.client.Account.Id author ) throws com.google.gwtorm.server.OrmException { loadDraftComments ( author ) ; return draftCommentNotes.getDraftBaseComments ( ) ; }

Target:
public com.google.common.collect.ImmutableListMultimap < com.google.gerrit.reviewdb.client.RevId , com.google.gerrit.reviewdb.client.PatchLineComment > getDraftComments ( com.google.gerrit.reviewdb.client.Account.Id author ) throws com.google.gwtorm.server.OrmException { loadDraftComments ( author ) ; return draftCommentNotes.getComments ( ) ; }
Source:
protected void assertIsAdministrator ( ) throws com.google.gerrit.server.ssh.AbstractCommand.Failure { if ( ! ( com.google.gerrit.client.rpc.Common.getGroupCache ( ) . isAdministrator ( getAccountId ( ) ) ) ) { throw new com.google.gerrit.server.ssh.AbstractCommand.Failure ( 1 , "fatal: Not a Gerrit administrator" ) ; } }

Target:
protected void assertIsAdministrator ( ) throws com.google.gerrit.server.ssh.Failure { if ( ! ( com.google.gerrit.client.rpc.Common.getGroupCache ( ) . isAdministrator ( getAccountId ( ) ) ) ) { throw new com.google.gerrit.server.ssh.Failure ( 1 , "fatal: Not a Gerrit administrator" ) ; } }
Source:
public void onSuccess ( final com.google.gerrit.common.data.PatchSetDetail result ) { ensureLoaded ( result ) ; patchTable.setRegisterKeys ( true ) ; }

Target:
public void onSuccess ( final com.google.gerrit.common.data.PatchSetDetail result ) { loadInfoTable ( result ) ; loadActionPanel ( result ) ; }
Source:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { rights.deleteChecked ( ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { final java.util.HashSet < com.google.gerrit.reviewdb.RefRight.Key > refRightIds = rights.getRefRightIdsChecked ( ) ; doDeleteRefRights ( refRightIds ) ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.server.restapi.access.AccessCollection.class ) ; com.google.gerrit.extensions.registration.DynamicMap.mapOf ( binder ( ) , com.google.gerrit.server.access.AccessResource.ACCESS_KIND ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.server.restapi.access.AccessCollection.class ) ; com.google.gerrit.extensions.registration.DynamicMap.mapOf ( binder ( ) , com.google.gerrit.server.restapi.access.AccessResource.ACCESS_KIND ) ; }
Source:
public java.lang.String intercept ( java.lang.String in ) { if ( in.startsWith ( "gerrit plugin" ) ) { return in ; } com.googlesource.gerrit.plugins.readonly.DisableCommandInterceptor.log.warn ( ( "Disabling command: " + in ) ) ; return ( pluginName ) + " disable" ; }

Target:
public java.lang.String intercept ( java.lang.String in ) { if ( pattern.matcher ( in ) . matches ( ) ) { return in ; } com.googlesource.gerrit.plugins.readonly.DisableCommandInterceptor.log.warn ( ( "Disabling command: " + in ) ) ; return ( pluginName ) + " disable" ; }
Source:
public java.lang.String getStatus ( ) { return status ; }

Target:
public com.google.gerrit.client.reviewdb.AccountAgreement.Status getStatus ( ) { return com.google.gerrit.client.reviewdb.AccountAgreement.Status.forCode ( status ) ; }
Source:
public void setRecursive ( boolean recursive ) { this . recursive = recursive ; }

Target:
public com.google.gerrit.server.group.ListMembers setRecursive ( boolean recursive ) { this . recursive = recursive ; return this ; }
Source:
public com.google.gerrit.client.diff.DiffApi intraline ( ) { call.addParameterTrue ( "intraline" ) ; return this ; }

Target:
public com.google.gerrit.client.diff.DiffApi intraline ( boolean intraline ) { if ( intraline ) { call.addParameterTrue ( "intraline" ) ; } return this ; }
Source:
void setToRetry ( ) { retrying = true ; ( retryCount ) ++ ; }

Target:
boolean setToRetry ( ) { retrying = true ; ( retryCount ) ++ ; return ( retryCount ) <= ( maxRetries ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { toggleReviewed ( ) . run ( ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { toggleShowIntraline ( ) ; }
Source:
void initMeter ( ) { if ( ( meter ) == null ) { meter = new com.google.gwtexpui.progress.client.ProgressBar ( Util.M.loadingPatchSet ( psid.get ( ) ) ) ; myBody.clear ( ) ; myBody.add ( meter ) ; } updateMeter ( ) ; }

Target:
public void movePointerTo ( final com.google.gerrit.client.reviewdb.Patch.Key k ) { myTable.movePointerTo ( k ) ; }
Source:
public static com.google.gitiles.GitilesView getView ( javax.servlet.http.HttpServletRequest req ) { return ( ( com.google.gitiles.GitilesView ) ( req.getAttribute ( com.google.gitiles.ViewFilter.VIEW_ATTIRBUTE ) ) ) ; }

Target:
public static com.google.gitiles.GitilesView getView ( javax.servlet.http.HttpServletRequest req ) { return ( ( com.google.gitiles.GitilesView ) ( req.getAttribute ( com.google.gitiles.ViewFilter.VIEW_ATTRIBUTE ) ) ) ; }
Source:
private org.eclipse.jgit.lib.ObjectId getDestRef ( com.google.gerrit.server.notedb.ChangeNotes notes ) throws java.lang.Exception { return testRepo.getRepository ( ) . exactRef ( notes.getChange ( ) . getDest ( ) . get ( ) ) . getObjectId ( ) ; }

Target:
private org.eclipse.jgit.lib.ObjectId getDestRef ( com.google.gerrit.server.notedb.ChangeNotes notes ) throws java.lang.Exception { return serverSideTestRepo.getRepository ( ) . exactRef ( notes.getChange ( ) . getDest ( ) . get ( ) ) . getObjectId ( ) ; }
Source:
public com.google.gerrit.server.account.AccountInfo apply ( com.google.gerrit.server.group.MemberResource resource ) { return com.google.gerrit.server.account.AccountInfo.parse ( resource.getMember ( ) . getAccount ( ) , true ) ; }

Target:
public com.google.gerrit.server.account.AccountInfo apply ( com.google.gerrit.server.group.MemberResource 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.getMember ( ) . getAccountId ( ) ) ; loader.fill ( ) ; return info ; }
Source:
public com.google.common.collect.SetMultimap < com.google.gerrit.server.notedb.ReviewerState , com.google.gerrit.reviewdb.client.Account.Id > reviewers ( ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.server.ApprovalsUtil.getReviewers ( approvals ( ) ) ; }

Target:
public com.google.common.collect.SetMultimap < com.google.gerrit.server.notedb.ReviewerState , com.google.gerrit.reviewdb.client.Account.Id > reviewers ( ) throws com.google.gwtorm.server.OrmException { return approvalsUtil.getReviewers ( notes ( ) , approvals ( ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent arg0 ) { if ( cb.getValue ( ) ) { scriptSettings.setContext ( com.google.gerrit.client.reviewdb.AccountGeneralPreferences.WHOLE_FILE_CONTEXT ) ; } else { initContextLines ( ) ; } refresh ( false ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { if ( event.getValue ( ) ) { scriptSettings.setContext ( com.google.gerrit.client.reviewdb.AccountGeneralPreferences.WHOLE_FILE_CONTEXT ) ; } else { initContextLines ( ) ; } refresh ( false ) ; }
Source:
protected void configureServlets ( ) { serve ( "/become" ) . with ( com.google.gerrit.server.http.BecomeAnyAccountLoginServlet.class ) ; }

Target:
protected void configureServlets ( ) { filter ( "/*" ) . through ( com.google.gerrit.server.http.RequestCleanupFilter.class ) ; filter ( "/*" ) . through ( com.google.gerrit.server.http.UrlRewriteFilter.class ) ; }
Source:
boolean isTokenValid ( final java.lang.String keyIn ) { return ( isSignedIn ( ) ) && ( key ( ) . token.equals ( keyIn ) ) ; }

Target:
boolean isTokenValid ( final java.lang.String keyIn ) { return ( isSignedIn ( ) ) && ( key.token.equals ( keyIn ) ) ; }
Source:
protected abstract void onCellDoubleClick ( int row , int column ) ;

Target:
public void onDoubleClick ( com.google.gwt.event.dom.client.DoubleClickEvent event ) { if ( headerSideB.isFile ( ) ) { createFileCommentEditorOnSideB ( ) ; } }
Source:
public void onSelection ( final com.google.gwt.event.logical.shared.SelectionEvent < java.lang.Integer > event ) { com.google.gerrit.client.Gerrit.display ( tabTokens.get ( event.getSelectedItem ( ) ) , false ) ; }

Target:
public void onSelection ( final com.google.gwt.event.logical.shared.SelectionEvent < java.lang.Integer > event ) { setToken ( tabTokens.get ( event.getSelectedItem ( ) ) ) ; }
Source:
private static java.lang.String newName ( com.google.gerrit.server.diff.PatchListEntry entry ) { switch ( entry.getChangeType ( ) ) { case DELETED : return null ; case ADDED : case MODIFIED : case COPIED : case RENAMED : case REWRITE : default : return entry.getNewName ( ) ; } }

Target:
private static java.lang.String newName ( com.google.gerrit.server.patch.PatchListEntry entry ) { switch ( entry.getChangeType ( ) ) { case DELETED : return null ; case ADDED : case MODIFIED : case COPIED : case RENAMED : case REWRITE : default : return entry.getNewName ( ) ; } }
Source:
public void invalidate ( java.lang.Object key ) { if ( key instanceof java.lang.String ) { deleteFile ( new java.io.File ( dir , ( ( java.lang.String ) ( key ) ) ) ) ; } }

Target:
public void invalidate ( java.lang.Object key ) { if ( key instanceof java.lang.String ) { deleteFile ( dir.resolve ( ( ( java.lang.String ) ( key ) ) ) ) ; } }
Source:
public com.googlecode.prolog_cafe.builtin.Operation exec ( com.googlecode.prolog_cafe.builtin.Prolog engine ) { engine.setB0 ( ) ; com.googlecode.prolog_cafe.builtin.Term a1 ; a1 = arg1 ; if ( ! ( a1.unify ( engine.getException ( ) , engine.trail ) ) ) return engine.fail ( ) ; return cont ; }

Target:
public com.googlecode.prolog_cafe.lang.Operation exec ( com.googlecode.prolog_cafe.lang.Prolog engine ) { engine.setB0 ( ) ; com.googlecode.prolog_cafe.lang.Term a1 ; a1 = arg1 ; if ( ! ( a1.unify ( engine.getException ( ) , engine.trail ) ) ) return engine.fail ( ) ; return cont ; }
Source:
public void doChangeRestoreHook ( com.google.gerrit.reviewdb.Change change , com.google.gerrit.reviewdb.Account account , java.lang.String reason , com.google.gerrit.reviewdb.ReviewDb db ) { }

Target:
public void doChangeRestoredHook ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.Account account , java.lang.String reason , com.google.gerrit.reviewdb.server.ReviewDb db ) { }
Source:
public void deleteBranchByUserWithDeletePermission ( ) throws java.lang.Exception { grantDelete ( ) ; setApiUser ( user ) ; assertDeleteSucceeds ( ) ; }

Target:
public void deleteBranchByUserWithForcePushPermission ( ) throws java.lang.Exception { grantForcePush ( ) ; setApiUser ( user ) ; assertDeleteSucceeds ( testBranch ) ; }
Source:
boolean isNeedUpgrade ( ) { for ( java.lang.String name : com.google.gerrit.pgm.init.UpgradeFrom2_0_x.etcFiles ) { if ( new java.io.File ( site_path , name ) . exists ( ) ) { return true ; } } return false ; }

Target:
boolean isNeedUpgrade ( ) { for ( java.lang.String name : com.google.gerrit.pgm.init.UpgradeFrom2_0_x.etcFiles ) { if ( java.nio.file.Files.exists ( site_path.resolve ( name ) ) ) { return true ; } } return false ; }
Source:
protected void doGet ( javax.servlet.http.HttpServletRequest request , javax.servlet.http.HttpServletResponse response ) throws java.io.IOException , javax.servlet.ServletException { handleRequest ( request.getPathInfo ( ) , request , response ) ; }

Target:
protected void doGet ( javax.servlet.http.HttpServletRequest request , javax.servlet.http.HttpServletResponse response ) throws java.io.IOException , javax.servlet.ServletException { handleRequest ( request.getPathInfo ( ) , request , response , logger ) ; }
Source:
protected abstract void display ( final com.google.gerrit.common.data.GroupDetail groupDetail ) ;

Target:
protected abstract void display ( final com.google.gerrit.client.groups.GroupInfo group , final boolean canModify ) ;
Source:
public int compare ( com.google.gerrit.reviewdb.AccountGroup a , com.google.gerrit.reviewdb.AccountGroup b ) { return a.getName ( ) . compareTo ( b.getName ( ) ) ; }

Target:
public java.util.List < com.google.gerrit.common.data.GroupDetail > call ( ) throws com.google.gerrit.common.errors.NoSuchGroupException , com.google.gwtorm.client.OrmException { final com.google.gerrit.server.account.VisibleGroups visibleGroups = visibleGroupsFactory.create ( ) ; return visibleGroups.get ( user ) . getGroups ( ) ; }
Source:
public void copy ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.project.ChangeControl ctl , com.google.gerrit.reviewdb.client.PatchSet ps ) throws com.google.gwtorm.server.OrmException { copy ( db , ctl , ps , java.util.Collections.< com.google.gerrit.reviewdb.client.PatchSetApproval > emptyList ( ) ) ; }

Target:
public void copyInReviewDb ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.project.ChangeControl ctl , com.google.gerrit.reviewdb.client.PatchSet ps , @ com.google.gerrit.common.Nullable org.eclipse.jgit.revwalk.RevWalk rw , @ com.google.gerrit.common.Nullable org.eclipse.jgit.lib.Config repoConfig ) throws com.google.gwtorm.server.OrmException { copyInReviewDb ( db , ctl , ps , rw , repoConfig , java.util.Collections.emptyList ( ) ) ; }
Source:
void onLogin ( ) { async.append ( log ( ( "LOGIN FROM " + ( session.get ( ) . getRemoteAddressAsString ( ) ) ) ) ) ; }

Target:
void onLogin ( ) { async.append ( log ( ( "LOGIN FROM " + ( session.get ( ) . getRemoteAddressAsString ( ) ) ) ) ) ; audit ( "0" , "LOGIN" , new java.lang.String [ ] { } ) ; }
Source:
public com.google.gerrit.common.data.ReviewerResult call ( ) throws java.lang.Exception { com.google.gerrit.common.data.ReviewerResult result = addReviewerFactory.create ( changeId , reviewers ) . call ( ) ; result.setChange ( changeDetailFactory.create ( changeId ) . call ( ) ) ; return result ; }

Target:
public com.google.gerrit.common.data.ReviewerResult call ( ) throws java.lang.Exception { com.google.gerrit.common.data.ReviewerResult result = addReviewerFactory.create ( changeId , reviewers , confirmed ) . call ( ) ; result.setChange ( changeDetailFactory.create ( changeId ) . call ( ) ) ; return result ; }
Source:
public void onSuccess ( com.google.gerrit.common.data.ChangeDetail result ) { changeScreen.update ( result ) ; }

Target:
public void onSuccess ( com.google.gerrit.common.data.ChangeDetail result ) { if ( redirect ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( result.getChange ( ) . getId ( ) ) ) ; } else { changeScreen.update ( result ) ; } }