auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { doClearPassword ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.rpc.NativeString user ) { com.google.gerrit.client.Gerrit.getUserAccount ( ) . username ( user.asString ( ) ) ; enableUI ( true ) ; display ( ) ; }
Source:
private static native java.lang.String userAgent ( ) ;

Target:
private static native boolean hasFlash ( ) ;
Source:
private void abandon ( java.lang.String changeId , com.google.gerrit.acceptance.TestAccount by , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy emailStrategy ) throws java.lang.Exception { abandon ( changeId , by , emailStrategy , null ) ; }

Target:
private void abandon ( java.lang.String changeId , com.google.gerrit.acceptance.TestAccount by , @ com.google.gerrit.common.Nullable com.google.gerrit.extensions.api.changes.NotifyHandling.NotifyHandling notify ) throws java.lang.Exception { abandon ( changeId , by , EmailStrategy.ENABLED , notify ) ; }
Source:
public void onTabSelected ( com.google.gwt.user.client.ui.SourcesTabEvents sender , int tabIndex ) { com.google.gwt.user.client.History.newItem ( tabTokens.get ( tabIndex ) , false ) ; }

Target:
public void onTabSelected ( com.google.gwt.user.client.ui.SourcesTabEvents sender , int tabIndex ) { com.google.gerrit.client.Gerrit.display ( tabTokens.get ( tabIndex ) , false ) ; }
Source:
public void onSuccess ( com.google.gwtjsonrpc.client.VoidResult result ) { com.google.gwt.user.client.History.newItem ( com.google.gerrit.client.Dispatcher.toProjectAdmin ( new com.google.gerrit.reviewdb.Project.NameKey ( projectName ) , ProjectScreen.INFO ) ) ; }

Target:
public void onSuccess ( com.google.gwtjsonrpc.common.VoidResult result ) { com.google.gwt.user.client.History.newItem ( com.google.gerrit.client.Dispatcher.toProjectAdmin ( new com.google.gerrit.reviewdb.client.Project.NameKey ( projectName ) , ProjectScreen.INFO ) ) ; }
Source:
public void deleteComment ( com.google.gerrit.reviewdb.client.PatchLineComment c ) { verifyComment ( c ) ; com.google.common.base.Preconditions.checkArgument ( draftNotes.containsComment ( c ) , ( "Cannot delete this comment " + "because it didn't previously exist as a draft" ) ) ; deleteComments.add ( c ) ; }

Target:
public void deleteComment ( com.google.gerrit.reviewdb.client.PatchLineComment c ) { verifyComment ( c ) ; com.google.common.base.Preconditions.checkArgument ( draftNotes.containsComment ( c ) , ( "Cannot delete this comment" + " because it didn't previously exist as a draft" ) ) ; deleteComments.add ( c ) ; }
Source:
public java.lang.Object apply ( com.google.gerrit.server.account.AccountResource.Email rsrc , com.google.gerrit.server.account.CreateEmail.Input input ) throws com.google.gerrit.extensions.restapi.ResourceConflictException { throw new com.google.gerrit.extensions.restapi.ResourceConflictException ( ( ( "Email \"" + ( rsrc.getEmail ( ) ) ) + "\" already exists" ) ) ; }

Target:
public java.lang.Object apply ( com.google.gerrit.server.account.AccountResource.Email rsrc , com.google.gerrit.server.account.CreateEmail.Input input ) throws com.google.gerrit.extensions.restapi.ResourceConflictException { throw new com.google.gerrit.extensions.restapi.ResourceConflictException ( "email exists" ) ; }
Source:
public void doRefUpdatedHook ( com.google.gerrit.reviewdb.Branch.NameKey refName , org.eclipse.jgit.lib.ObjectId oldId , org.eclipse.jgit.lib.ObjectId newId , com.google.gerrit.reviewdb.Account account ) { }

Target:
public void doRefUpdatedHook ( com.google.gerrit.reviewdb.client.Branch.NameKey refName , org.eclipse.jgit.lib.ObjectId oldId , org.eclipse.jgit.lib.ObjectId newId , com.google.gerrit.reviewdb.client.Account account ) { }
Source:
protected java.io.File getSitePath ( ) { java.io.File path = sitePath.getAbsoluteFile ( ) ; if ( "." . equals ( path.getName ( ) ) ) { path = path.getParentFile ( ) ; } return path ; }

Target:
protected java.nio.file.Path getSitePath ( ) { return sitePath ; }
Source:
public static org.apache.lucene.index.Term idTerm ( com.google.gerrit.server.index.Schema < com.google.gerrit.server.query.change.ChangeData > schema , com.google.gerrit.reviewdb.client.Change.Id id ) { return com.google.gerrit.lucene.QueryBuilder.intTerm ( com.google.gerrit.server.query.change.LegacyChangeIdPredicate.idField ( schema ) . getName ( ) , id.get ( ) ) ; }

Target:
public static org.apache.lucene.index.Term idTerm ( com.google.gerrit.reviewdb.client.Change.Id id ) { return com.google.gerrit.lucene.QueryBuilder.intTerm ( com.google.gerrit.server.index.ChangeField.LEGACY_ID2.getName ( ) , id.get ( ) ) ; }
Source:
public void operationComplete ( org.apache.sshd.common.future.CloseFuture future ) { if ( sd.isAuthenticationError ( ) ) { sshLog.onAuthFail ( sd ) ; } }

Target:
public void operationComplete ( org.apache.sshd.common.future.CloseFuture future ) { connected.decrementAndGet ( ) ; if ( sd.isAuthenticationError ( ) ) { authFailures.increment ( ) ; sshLog.onAuthFail ( sd ) ; } }
Source:
private static com.google.gerrit.reviewdb.client.AccountPatchReview getExisting ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.change.PatchResource resource ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.reviewdb.client.AccountPatchReview.Key key = new com.google.gerrit.reviewdb.client.AccountPatchReview.Key ( resource.getPatchKey ( ) , resource.getAccountId ( ) ) ; return db.accountPatchReviews ( ) . get ( key ) ; }

Target:
private static com.google.gerrit.reviewdb.client.AccountPatchReview getExisting ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.change.FileResource resource ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.reviewdb.client.AccountPatchReview.Key key = new com.google.gerrit.reviewdb.client.AccountPatchReview.Key ( resource.getPatchKey ( ) , resource.getAccountId ( ) ) ; return db.accountPatchReviews ( ) . get ( key ) ; }
Source:
public void createAssignee ( ) throws java.lang.Exception { assignee = accounts.create ( "assignee" , "assignee@example.com" , "assignee" ) ; }

Target:
public void createAssignee ( ) throws java.lang.Exception { assignee = accountCreator.create ( "assignee" , "assignee@example.com" , "assignee" ) ; }
Source:
private void maybeFlush ( ) throws com.google.gwtorm.client.OrmException { if ( db.isAutoFlush ( ) ) { db.flush ( ) ; } }

Target:
public void insert ( java.lang.Iterable < T > instances ) throws com.google.gwtorm.client.OrmException { for ( T obj : instances ) { insertOne ( obj ) ; } db.flush ( ) ; }
Source:
public void onUpdate ( org.eclipse.jgit.lib.ObjectId newNotesRev , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > extId ) { }

Target:
public void onUpdate ( org.eclipse.jgit.lib.ObjectId oldNotesRev , org.eclipse.jgit.lib.ObjectId newNotesRev , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > extId ) { }
Source:
private static void assertNotRef ( java.lang.String refName ) { com.google.common.truth.Truth.assertThat ( com.google.gerrit.reviewdb.client.PatchSet.isRef ( refName ) ) . isFalse ( ) ; com.google.common.truth.Truth.assertThat ( PatchSet.Id.fromRef ( refName ) ) . isNull ( ) ; }

Target:
private static void assertNotRef ( java.lang.String refName ) { com.google.common.truth.Truth.assertThat ( com.google.gerrit.reviewdb.client.PatchSet.isChangeRef ( refName ) ) . isFalse ( ) ; com.google.common.truth.Truth.assertThat ( PatchSet.Id.fromRef ( refName ) ) . isNull ( ) ; }
Source:
protected void onUnload ( ) { expandTimer.cancel ( ) ; super . onUnload ( ) ; }

Target:
protected void onUnload ( ) { expandTimer.cancel ( ) ; resizeTimer.cancel ( ) ; super . onUnload ( ) ; }
Source:
com.google.gerrit.server.query.Predicate create ( java.lang.String value ) throws com.google.gerrit.server.query.QueryParseException ;

Target:
com.google.gerrit.server.query.Predicate < T > create ( Q builder , java.lang.String value ) throws com.google.gerrit.server.query.QueryParseException ;
Source:
public void writeTo ( java.io.OutputStream out ) throws java.io.IOException { java.io.OutputStream e = com.google.common.io.BaseEncoding.base64 ( ) . encodingStream ( new java.io.OutputStreamWriter ( out , com.google.common.base.Charsets.ISO_8859_1 ) ) ; src.writeTo ( e ) ; e.flush ( ) ; }

Target:
public void writeTo ( java.io.OutputStream out ) throws java.io.IOException { java.io.OutputStream e = com.google.common.io.BaseEncoding.base64 ( ) . encodingStream ( new java.io.OutputStreamWriter ( out , java.nio.charset.StandardCharsets.ISO_8859_1 ) ) ; src.writeTo ( e ) ; e.flush ( ) ; }
Source:
public void onFocus ( com.google.gwt.event.dom.client.FocusEvent event ) { focusHint ( ) ; }

Target:
public void onFocus ( com.google.gwt.event.dom.client.FocusEvent event ) { setFocus ( true ) ; }
Source:
public void listTagsOfNonVisibleProject_NotFound ( ) throws java.lang.Exception { blockRead ( project , "refs/*" ) ; com.google.common.truth.Truth.assertThat ( userSession.get ( ( ( "/projects/" + ( project.get ( ) ) ) + "/tags" ) ) . getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_NOT_FOUND ) ; }

Target:
public void listTagsOfNonVisibleProject ( ) throws java.lang.Exception { blockRead ( project , "refs/*" ) ; com.google.common.truth.Truth.assertThat ( userSession.get ( ( ( "/projects/" + ( project.get ( ) ) ) + "/tags" ) ) . getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_NOT_FOUND ) ; }
Source:
static void deleteEdit ( com.google.gerrit.reviewdb.client.Change.Id id ) { com.google.gerrit.client.changes.ChangeApi.deleteEdit ( id.get ( ) , com.google.gerrit.client.change.EditActions.cs ( id ) ) ; }

Target:
static void deleteEdit ( com.google.gerrit.reviewdb.client.Change.Id id , com.google.gwt.user.client.ui.Button ... editButtons ) { com.google.gerrit.client.changes.ChangeApi.deleteEdit ( id.get ( ) , com.google.gerrit.client.change.EditActions.cs ( id , editButtons ) ) ; }
Source:
public com.google.common.util.concurrent.CheckedFuture < com.google.gerrit.reviewdb.client.PatchLineComment , com.google.gwtorm.server.OrmException > getAsync ( com.google.gerrit.reviewdb.client.PatchLineComment.Key key ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.server.schema.DisabledChangesReviewDbWrapper.MSG ) ; }

Target:
public com.google.common.util.concurrent.CheckedFuture < com.google.gerrit.reviewdb.client.PatchLineComment , com.google.gwtorm.server.OrmException > getAsync ( com.google.gerrit.reviewdb.client.PatchLineComment.Key key ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.reviewdb.server.DisabledChangesReviewDbWrapper.MSG ) ; }
Source:
public void run ( ) { boolean s = prefs.showWhitespaceErrors ( ) ; view.getCmFromSide ( DisplaySide.A ) . setOption ( "showTrailingSpace" , s ) ; view.getCmFromSide ( DisplaySide.B ) . setOption ( "showTrailingSpace" , s ) ; }

Target:
public void run ( ) { view.getCmFromSide ( DisplaySide.A ) . setOption ( "mode" , mode ) ; view.getCmFromSide ( DisplaySide.B ) . setOption ( "mode" , mode ) ; }
Source:
void setShowTabs ( boolean b ) { if ( b ) { diffTable.addStyleName ( DiffTable.style.showTabs ( ) ) ; } else { diffTable.removeStyleName ( DiffTable.style.showTabs ( ) ) ; } }

Target:
void setShowTabs ( boolean show ) { cmA.extras ( ) . showTabs ( show ) ; cmB.extras ( ) . showTabs ( show ) ; }
Source:
private int getPermittedLimit ( ) { if ( enforceVisibility ) { return userProvider.get ( ) . getCapabilities ( ) . getRange ( GlobalCapability.QUERY_LIMIT ) . getMax ( ) ; } return java.lang.Integer.MAX_VALUE ; }

Target:
private int getPermittedLimit ( ) { if ( enforceVisibility ) { return capabilityFactory.create ( userProvider.get ( ) ) . getRange ( GlobalCapability.QUERY_LIMIT ) . getMax ( ) ; } return java.lang.Integer.MAX_VALUE ; }
Source:
public void testSubscriptionWildcardACLForMissingBranch ( ) throws java.lang.Exception { createProjectWithPush ( "super-project" ) ; org.eclipse.jgit.junit.TestRepository < ? > subRepo = createProjectWithPush ( "subscribed-to-project" ) ; allowSubmoduleSubscription ( "subscribed-to-project" , "refs/heads/*" , "super-project" , "refs/heads/*" ) ; pushChangeTo ( subRepo , "foo" ) ; }

Target:
public void testSubscriptionWildcardACLForMissingBranch ( ) throws java.lang.Exception { createProjectWithPush ( "super-project" ) ; org.eclipse.jgit.junit.TestRepository < ? > subRepo = createProjectWithPush ( "subscribed-to-project" ) ; allowMatchingSubmoduleSubscription ( "subscribed-to-project" , "refs/heads/*" , "super-project" , "refs/heads/*" ) ; pushChangeTo ( subRepo , "foo" ) ; }
Source:
protected com.google.gerrit.pgm.init.ConsoleUI getConsoleUI ( ) { return com.google.gerrit.pgm.init.ConsoleUI.getInstance ( false ) ; }

Target:
protected com.google.gerrit.pgm.init.api.ConsoleUI getConsoleUI ( ) { return com.google.gerrit.pgm.init.api.ConsoleUI.getInstance ( false ) ; }
Source:
public com.google.gerrit.reviewdb.client.PatchSet getPatchSet ( ) { return patchSet ; }

Target:
public com.google.gerrit.reviewdb.client.PatchSet getPatchSet ( ) { com.google.common.base.Preconditions.checkState ( ( ( patchSet ) != null ) , "getPatchSet() only valid after creating change" ) ; return patchSet ; }
Source:
public void run ( ) { progress.setValue ( ( ( ( 100 * ( ++ ( cycle ) ) ) * 250 ) / ( com.google.gerrit.client.api.PluginLoader.MAX_LOAD_TIME_MILLIS ) ) ) ; }

Target:
public void run ( ) { progress.setValue ( ( ( ( 100 * ( ++ ( cycle ) ) ) * 250 ) / ( loadTimeout ) ) ) ; }
Source:
public java.lang.String format ( ) { final java.lang.StringBuilder m = new java.lang.StringBuilder ( ) ; m.append ( formatValue ( ) ) ; m.append ( ' ' ) ; m.append ( getName ( ) ) ; return m.toString ( ) ; }

Target:
public java.lang.String format ( ) { return com.google.gerrit.reviewdb.client.ApprovalCategoryValue.format ( getName ( ) , getValue ( ) ) ; }
Source:
protected void configure ( ) { bind ( java.io.File.class ) . annotatedWith ( com.google.gerrit.server.config.SitePath.class ) . toProvider ( com.google.gerrit.server.config.SitePathFromSystemConfigProvider.class ) . in ( com.google.inject.Scopes.SINGLETON ) ; }

Target:
protected void configure ( ) { bind ( java.io.File.class ) . annotatedWith ( com.google.gerrit.server.config.SitePath.class ) . toProvider ( com.google.gerrit.httpd.SitePathFromSystemConfigProvider.class ) . in ( com.google.inject.Scopes.SINGLETON ) ; }
Source:
public void onSuccess ( com.googlesource.gerrit.plugins.xdocs.client.ChangeInfo change ) { setRevisions ( change , patchSet ) ; addHeader ( change ) ; init ( ) ; display ( change ) ; }

Target:
private void show ( com.googlesource.gerrit.plugins.xdocs.client.ChangeInfo change ) { addHeader ( change ) ; init ( ) ; display ( change ) ; }
Source:
public com.google.gerrit.reviewdb.Project getProject ( ) { return getConfig ( ) . getProject ( ) ; }

Target:
public com.google.gerrit.server.account.CapabilityCollection getCapabilityCollection ( ) { return capabilities ; }
Source:
private boolean isAllowedOpenID ( final java.lang.String id ) { for ( final com.google.gerrit.common.auth.openid.OpenIdProviderPattern pattern : allowedOpenIDs ) { if ( pattern.matches ( id ) ) { return true ; } } return false ; }

Target:
boolean isAllowedOpenID ( final java.lang.String id ) { for ( final com.google.gerrit.server.auth.openid.OpenIdProviderPattern pattern : allowedOpenIDs ) { if ( pattern.matches ( id ) ) { return true ; } } return false ; }
Source:
public com.google.gerrit.server.IdentifiedUser create ( com.google.gerrit.reviewdb.client.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , anonymousCowardName , canonicalUrl , accountCache , groupBackend , remotePeerProvider , dbProvider , id , null ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( com.google.gerrit.reviewdb.client.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , remotePeerProvider , dbProvider , id , null ) ; }
Source:
public void removeReviewer ( final com.google.gerrit.reviewdb.client.Change.Id id , final com.google.gerrit.reviewdb.client.Account.Id reviewerId , final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ReviewerResult > callback ) { removeReviewerHandlerFactory.create ( id , reviewerId ) . to ( callback ) ; }

Target:
public void removeReviewer ( final com.google.gerrit.reviewdb.client.Change.Id id , final com.google.gerrit.reviewdb.client.Account.Id reviewerId , final com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ReviewerResult > callback ) { removeReviewerHandlerFactory.create ( id , reviewerId ) . to ( callback ) ; }
Source:
private void removeProjectEvents ( java.lang.String project ) { try { eventsDb.removeProjectEvents ( project ) ; } catch ( java.sql.SQLException e ) { com.ericsson.gerrit.plugins.eventslog.sql.SQLStore.log.warn ( ( ( "Cannot remove project " + project ) + " from database" ) , e ) ; } }

Target:
private void cancelCheckConnectionTaskIfScheduled ( boolean mayInterrupt ) { if ( ( checkConnTask ) != null ) { checkConnTask.cancel ( mayInterrupt ) ; } }
Source:
void deleteBranch ( com.google.gerrit.reviewdb.Project.NameKey projectName , java.util.Set < com.google.gerrit.reviewdb.Branch.NameKey > ids , com.google.gwt.user.client.rpc.AsyncCallback < java.util.Set < com.google.gerrit.reviewdb.Branch.NameKey > > callback ) ;

Target:
void deleteBranch ( com.google.gerrit.reviewdb.client.Project.NameKey projectName , java.util.Set < com.google.gerrit.reviewdb.client.Branch.NameKey > ids , com.google.gwtjsonrpc.common.AsyncCallback < java.util.Set < com.google.gerrit.reviewdb.client.Branch.NameKey > > callback ) ;
Source:
public java.lang.String me ( ) { return ( "" + ( hashCode ( ) ) ) + ( com.googlesource.gerrit.plugins.github.oauth.OAuthProtocol.ME_SEPARATOR ) ; }

Target:
public java.lang.String newRandomState ( java.lang.String redirectUrl ) { byte [ ] stateBin = new byte [ 20 ] ; com.googlesource.gerrit.plugins.github.oauth.OAuthProtocol.randomState.nextBytes ( stateBin ) ; return ( ( com.google.common.io.BaseEncoding.base64Url ( ) . encode ( stateBin ) ) + ( com.googlesource.gerrit.plugins.github.oauth.OAuthProtocol.ME_SEPARATOR ) ) + redirectUrl ; }
Source:
public java.lang.String [ ] getParameterValues ( java.lang.String name ) { return com.google.gitiles.FakeHttpServletRequest.STRING_COLLECTION_TO_ARRAY.apply ( parameters.get ( name ) ) ; }

Target:
public java.lang.String [ ] getParameterValues ( java.lang.String name ) { return com.google.gitiles.FakeHttpServletRequest.stringCollectionToArray ( parameters.get ( name ) ) ; }
Source:
protected final com.google.gerrit.pgm.CmdLineParser newCmdLineParser ( ) { final com.google.gerrit.pgm.CmdLineParser parser = super . newCmdLineParser ( ) ; for ( com.google.gerrit.server.ssh.commands.CmdOption c : optionList ) { parser.addOption ( c , c ) ; } return parser ; }

Target:
protected final com.google.gerrit.pgm.CmdLineParser newCmdLineParser ( ) { final com.google.gerrit.pgm.CmdLineParser parser = super . newCmdLineParser ( ) ; for ( com.google.gerrit.server.ssh.commands.ApproveOption c : optionList ) { parser.addOption ( c , c ) ; } return parser ; }
Source:
protected void configure ( ) { bind ( org.apache.sshd.common.KeyPairProvider.class ) . toProvider ( com.google.gerrit.sshd.HostKeyProvider.class ) . in ( com.google.inject.Scopes.SINGLETON ) ; }

Target:
protected void configure ( ) { bind ( org.apache.sshd.common.keyprovider.KeyPairProvider.class ) . toProvider ( com.google.gerrit.sshd.HostKeyProvider.class ) . in ( com.google.inject.Scopes.SINGLETON ) ; }
Source:
public org.parboiled.Rule [ ] blockPluginRules ( ) { return new org.parboiled.Rule [ ] { toc ( ) } ; }

Target:
public org.parboiled.Rule [ ] blockPluginRules ( ) { return new org.parboiled.Rule [ ] { note ( ) , toc ( ) } ; }
Source:
private void readObject ( final java.io.ObjectInputStream in ) throws java.io.IOException { oldId = org.eclipse.jgit.lib.ObjectIdSerialization.readCanBeNull ( in ) ; newId = org.eclipse.jgit.lib.ObjectIdSerialization.readNotNull ( in ) ; whitespace = com.google.gerrit.server.ioutil.BasicSerialization.readEnum ( in , com.google.gerrit.common.data.PatchScriptSettings.Whitespace.values ( ) ) ; }

Target:
private void readObject ( final java.io.ObjectInputStream in ) throws java.io.IOException { oldId = org.eclipse.jgit.lib.ObjectIdSerialization.readCanBeNull ( in ) ; newId = org.eclipse.jgit.lib.ObjectIdSerialization.readNotNull ( in ) ; whitespace = com.google.gerrit.server.ioutil.BasicSerialization.readEnum ( in , com.google.gerrit.reviewdb.AccountDiffPreference.Whitespace.values ( ) ) ; }
Source:
public com.googlesrouce.gerrit.plugins.github.git.GHCommit getCommit ( java.lang.String sha1 ) throws java.io.IOException { return ghRepository.getCommit ( sha1 ) ; }

Target:
public com.googlesource.gerrit.plugins.github.git.GHCommit getCommit ( java.lang.String sha1 ) throws java.io.IOException { return ghRepository.getCommit ( sha1 ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { db = com.google.gerrit.testutil.InMemoryDatabase.newDatabase ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { lifecycle = new com.google.gerrit.lifecycle.LifecycleManager ( ) ; db = com.google.gerrit.testutil.InMemoryDatabase.newDatabase ( lifecycle ) ; lifecycle.start ( ) ; }
Source:
public static void submit ( int id , java.lang.String commit , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.changes.SubmitInfo > cb ) { com.google.gwt.core.client.JavaScriptObject in = com.google.gwt.core.client.JavaScriptObject.createObject ( ) ; com.google.gerrit.client.changes.ChangeApi.call ( id , commit , "submit" ) . post ( in , cb ) ; }

Target:
public static com.google.gerrit.client.rpc.RestApi reviewer ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , int reviewer ) { return com.google.gerrit.client.changes.ChangeApi.change ( project , id ) . view ( "reviewers" ) . id ( reviewer ) ; }
Source:
public Project.Id getProjectId ( ) { return key.projectId ; }

Target:
public Project.NameKey getProjectNameKey ( ) { return key.projectName ; }
Source:
public com.google.gerrit.extensions.restapi.Response < ? > apply ( com.google.gerrit.server.change.ChangeEditResource rsrc , com.google.gerrit.server.change.ChangeEdits.DeleteContent.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 ( ) ) ; }

Target:
public com.google.gerrit.extensions.restapi.Response < ? > apply ( com.google.gerrit.server.change.ChangeEditResource rsrc , com.google.gerrit.server.change.ChangeEdits.DeleteContent.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 ( ) ) ; }
Source:
private static org.pegdown.PegDownProcessor newParser ( ) { org.pegdown.plugins.PegDownPlugins plugins = new org.pegdown.plugins.PegDownPlugins.Builder ( ) . withPlugin ( com.google.gitiles.doc.GitilesMarkdown.class ) . build ( ) ; return new org.pegdown.PegDownProcessor ( com.google.gitiles.doc.GitilesMarkdown.MD_OPTIONS , plugins ) ; }

Target:
private static org.pegdown.PegDownProcessor newParser ( org.joda.time.Duration parseDeadline ) { org.pegdown.plugins.PegDownPlugins plugins = new org.pegdown.plugins.PegDownPlugins.Builder ( ) . withPlugin ( com.google.gitiles.doc.GitilesMarkdown.class , parseDeadline ) . build ( ) ; return new org.pegdown.PegDownProcessor ( com.google.gitiles.doc.GitilesMarkdown.MD_OPTIONS , parseDeadline.getMillis ( ) , plugins ) ; }
Source:
protected org.eclipse.jgit.junit.TestRepository < ? > createProjectWithPush ( java.lang.String name ) throws java.lang.Exception { return createProjectWithPush ( name , null ) ; }

Target:
protected org.eclipse.jgit.junit.TestRepository < ? > createProjectWithPush ( java.lang.String name , boolean createEmptyCommit ) throws java.lang.Exception { return createProjectWithPush ( name , null , createEmptyCommit , getSubmitType ( ) ) ; }
Source:
protected void appendGetField ( final com.google.gwtorm.schema.ColumnModel c ) { if ( ( c.getParent ( ) ) == null ) { mv.visitVarInsn ( com.google.gwtorm.jdbc.gen.ALOAD , keyvar ) ; } else { super . appendGetField ( c ) ; } }

Target:
protected void appendGetField ( final com.google.gwtorm.schema.ColumnModel c ) { if ( ( c.getParent ( ) ) == null ) { mv.visitVarInsn ( com.google.gwtorm.jdbc.ALOAD , keyvar ) ; } else { super . appendGetField ( c ) ; } }
Source:
public void execute ( ) { new com.google.gerrit.client.SignInDialog ( SignInDialog.Mode.REGISTER ) . center ( ) ; }

Target:
public void execute ( ) { new com.google.gerrit.client.auth.openid.OpenIdSignInDialog ( SignInDialog.Mode.REGISTER , null ) . center ( ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent arg0 ) { if ( cb.getValue ( ) ) { scriptSettings.setWhitespace ( Whitespace.IGNORE_SPACE_CHANGE ) ; } else { scriptSettings.setWhitespace ( Whitespace.IGNORE_NONE ) ; } refresh ( false ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent arg0 ) { if ( cb.getValue ( ) ) { scriptSettings.setWhitespace ( com.google.gerrit.client.data.PatchScriptSettings.Whitespace.IGNORE_SPACE_CHANGE ) ; } else { scriptSettings.setWhitespace ( com.google.gerrit.client.data.PatchScriptSettings.Whitespace.IGNORE_NONE ) ; } refresh ( false ) ; }
Source:
private boolean match ( java.lang.String refName , java.lang.String refPattern ) { return com.google.gerrit.server.project.RefPatternMatcher.getMatcher ( refPattern ) . match ( refName , null ) ; }

Target:
private static boolean match ( java.lang.String value , java.lang.String pattern ) { return com.google.gerrit.server.project.RefPatternMatcher.getMatcher ( pattern ) . match ( value , null ) ; }
Source:
public boolean apply ( com.google.gerrit.reviewdb.client.ChangeMessage in ) { com.google.gerrit.reviewdb.client.PatchSet.Id psId = in.getPatchSetId ( ) ; return ( psId == null ) || ( patchSets.containsKey ( psId ) ) ; }

Target:
public boolean apply ( com.google.gerrit.reviewdb.client.ChangeMessage in ) { com.google.gerrit.reviewdb.client.PatchSet.Id psId = in.getPatchSetId ( ) ; if ( psId == null ) { return true ; } return ( upToCurrent.apply ( psId ) ) && ( patchSets.containsKey ( psId ) ) ; }
Source:
public boolean apply ( com.google.gerrit.common.data.SubmitRecord input ) { return ( input.status ) == ( com.google.gerrit.common.data.SubmitRecord.Status.OK ) ; }

Target:
public boolean submittable ( com.google.gerrit.server.query.change.ChangeData cd ) { try { com.google.gerrit.server.git.MergeOp.checkSubmitRule ( cd ) ; return true ; } catch ( com.google.gerrit.extensions.restapi.ResourceConflictException | com.google.gwtorm.server.OrmException e ) { return false ; } }
Source:
public com.google.gerrit.server.CurrentUser getCurrentUser ( ) { return identifiedUserFactory.create ( change.getOwner ( ) ) ; }

Target:
public com.google.gerrit.server.CurrentUser getUser ( ) { return identifiedUserFactory.create ( change.getOwner ( ) ) ; }
Source:
public com.google.gerrit.extensions.api.projects.Projects.ListParameter withDescription ( boolean description ) { this . description = description ; return this ; }

Target:
public com.google.gerrit.extensions.api.projects.Projects.ListRequest withDescription ( boolean description ) { this . description = description ; return this ; }
Source:
public void registerCacheUsageListener ( net.sf.ehcache.statistics.CacheUsageListener cacheUsageListener ) throws java.lang.IllegalStateException { self ( ) . registerCacheUsageListener ( cacheUsageListener ) ; }

Target:
public void removeCacheUsageListener ( net.sf.ehcache.statistics.CacheUsageListener cacheUsageListener ) throws java.lang.IllegalStateException { self.removeCacheUsageListener ( cacheUsageListener ) ; }
Source:
public boolean isInGroup ( final com.google.gerrit.client.reviewdb.Account.Id accountId , final com.google.gerrit.client.reviewdb.AccountGroup.Id groupId ) { final java.util.Set < com.google.gerrit.client.reviewdb.AccountGroup.Id > m = getGroups ( accountId ) ; return m.contains ( groupId ) ; }

Target:
public boolean isInGroup ( final com.google.gerrit.client.reviewdb.Account.Id accountId , final com.google.gerrit.client.reviewdb.AccountGroup.Id groupId ) { if ( ( isAnonymousUsers ( groupId ) ) || ( isRegisteredUsers ( groupId ) ) ) { return true ; } return getGroups ( accountId ) . contains ( groupId ) ; }
Source:
protected boolean canPerform ( final com.google.gerrit.client.reviewdb.ApprovalCategory.Id actionId , final short val ) { return currentUser.canPerform ( cachedProj , actionId , val ) ; }

Target:
protected boolean canPerform ( final com.google.gerrit.client.reviewdb.ApprovalCategory.Id actionId , final short val ) { return cachedProj.controlFor ( currentUser ) . canPerform ( actionId , val ) ; }
Source:
void onRemoveDraftBox ( com.google.gerrit.client.diff.DraftBox box ) { boxes.remove ( box ) ; table.updateFileCommentVisibility ( false ) ; }

Target:
void onRemoveDraftBox ( com.google.gerrit.client.diff.DraftBox box ) { boxes.remove ( box ) ; table.setHeaderVisible ( true ) ; }
Source:
public void start ( ) { }

Target:
public void run ( ) { closedIndex.close ( ) ; }
Source:
protected abstract boolean writeChanges ( ) ;

Target:
public abstract boolean rawWriteChangesSetting ( ) ;
Source:
public void onSuccess ( com.google.gerrit.client.projects.BranchInfo branch ) { addBranch.setEnabled ( true ) ; nameTxtBox.setText ( "" ) ; irevTxtBox.setText ( "" ) ; branchTable.insert ( branch ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.projects.BranchInfo branch ) { addBranch.setEnabled ( true ) ; nameTxtBox.setText ( "" ) ; irevTxtBox.setText ( "" ) ; branchTable.insert ( branch ) ; delBranch.setVisible ( branchTable.hasBranchCanDelete ( ) ) ; }
Source:
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.server.IdentifiedUser user , com.google.gerrit.reviewdb.client.Change change , org.eclipse.jgit.revwalk.RevCommit commit ) ;

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.ChangeControl ctl , org.eclipse.jgit.revwalk.RevCommit commit ) ;
Source:
void showTable ( ) { myBody.clear ( ) ; myBody.add ( table ) ; table.finishDisplay ( ) ; }

Target:
public void notifyDraftDelta ( final com.google.gerrit.client.reviewdb.Patch.Key k , final int delta ) { if ( ( myTable ) != null ) { myTable.notifyDraftDelta ( k , delta ) ; } }
Source:
public void nameInConfigMustBeDefined ( ) throws java.lang.Exception { populateGroupConfig ( groupUuid , "[group]\n\tid = 42\n\townerGroupUuid = owners\n" ) ; expectedException.expect ( org.eclipse.jgit.errors.ConfigInvalidException.class ) ; expectedException.expectMessage ( "Name of the group users-XYZ" ) ; com.google.gerrit.server.group.db.GroupConfig.loadForGroup ( repository , groupUuid ) ; }

Target:
public void nameInConfigMayBeUndefined ( ) throws java.lang.Exception { populateGroupConfig ( groupUuid , "[group]\n\tid = 42\n\townerGroupUuid = owners\n" ) ; com.google.gerrit.server.group.db.GroupConfig groupConfig = com.google.gerrit.server.group.db.GroupConfig.loadForGroup ( repository , groupUuid ) ; com.google.common.truth.Truth.assertThat ( groupConfig.getLoadedGroup ( ) . get ( ) . getName ( ) ) . isEmpty ( ) ; }
Source:
static com.google.gerrit.server.project.SectionMatcher wrap ( com.google.gerrit.common.data.AccessSection section ) { java.lang.String ref = section.getName ( ) ; if ( com.google.gerrit.common.data.AccessSection.isAccessSection ( ref ) ) { return com.google.gerrit.server.project.SectionMatcher.wrap ( ref , section ) ; } else { return null ; } }

Target:
static com.google.gerrit.server.project.SectionMatcher wrap ( com.google.gerrit.common.data.AccessSection section ) { java.lang.String ref = section.getName ( ) ; if ( com.google.gerrit.common.data.AccessSection.isValid ( ref ) ) { return com.google.gerrit.server.project.SectionMatcher.wrap ( ref , section ) ; } else { return null ; } }
Source:
public java.util.List < java.lang.String > currentFilePaths ( ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.reviewdb.client.PatchSet ps = currentPatchSet ( ) ; if ( ps == null ) { return null ; } return filePaths ( currentPatchSet ) ; }

Target:
public com.google.gerrit.server.query.change.ChangeData setLazyLoad ( boolean load ) { lazyLoad = load ; return this ; }
Source:
public java.util.jar.JarFile getJarFile ( ) { return null ; }

Target:
public com.google.gerrit.server.plugins.PluginContentScanner getContentScanner ( ) { return PluginContentScanner.EMPTY ; }
Source:
public com.google.gerrit.server.project.ProjectResource parse ( com.google.gerrit.extensions.restapi.TopLevelResource parent , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { return parse ( id.get ( ) ) ; }

Target:
public com.google.gerrit.server.project.ProjectResource parse ( com.google.gerrit.extensions.restapi.TopLevelResource parent , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { com.google.gerrit.server.project.ProjectResource rsrc = _parse ( id.get ( ) ) ; if ( rsrc == null ) { throw new com.google.gerrit.extensions.restapi.ResourceNotFoundException ( id ) ; } return rsrc ; }
Source:
public Account.Id getAssignee ( ) { return state.assignee ( ) ; }

Target:
public com.google.common.base.Optional < com.google.gerrit.reviewdb.client.Account.Id > getAssignee ( ) { return com.google.common.base.Optional.fromNullable ( state.assignee ( ) ) ; }
Source:
public int hashCode ( ) { return com.google.common.base.Objects.hashCode ( unchanged , updated , deleted ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( unchanged , updated , deleted ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; db = new com.google.gerrit.testutil.InMemoryDatabase ( ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; new com.google.gerrit.testutil.InMemoryModule ( ) . inject ( this ) ; }
Source:
private static void assertNotRef ( java.lang.String refName ) { org.junit.Assert.assertFalse ( com.google.gerrit.reviewdb.client.PatchSet.isRef ( refName ) ) ; org.junit.Assert.assertNull ( PatchSet.Id.fromRef ( refName ) ) ; }

Target:
private static void assertNotRef ( java.lang.String refName ) { com.google.common.truth.Truth.assertThat ( com.google.gerrit.reviewdb.client.PatchSet.isRef ( refName ) ) . isFalse ( ) ; com.google.common.truth.Truth.assertThat ( PatchSet.Id.fromRef ( refName ) ) . isNull ( ) ; }
Source:
public static void publishEdit ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gwt.core.client.JavaScriptObject in = com.google.gwt.core.client.JavaScriptObject.createObject ( ) ; com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( "publish_edit" ) . post ( in , cb ) ; }

Target:
public static void publishEdit ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gwt.core.client.JavaScriptObject in = com.google.gwt.core.client.JavaScriptObject.createObject ( ) ; com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( "edit:publish" ) . post ( in , cb ) ; }
Source:
protected void preDisplay ( com.google.gerrit.common.data.GroupList result ) { addPanel.setVisible ( result.isCanCreateGroup ( ) ) ; groups.display ( result.getGroups ( ) ) ; groups.finishDisplay ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.account.AccountCapabilities ac ) { addPanel.setVisible ( ac.canPerform ( com.google.gerrit.common.data.GlobalCapability.CREATE_GROUP ) ) ; }
Source:
static void invoke ( com.google.gerrit.client.info.ChangeInfo change , com.google.gerrit.client.info.ActionInfo action , com.google.gerrit.client.rpc.RestApi api ) { com.google.gerrit.client.api.DefaultActions.invoke ( action , api , com.google.gerrit.client.api.DefaultActions.callback ( com.google.gerrit.common.PageLinks.toChange ( change.legacyId ( ) ) ) ) ; }

Target:
static void invoke ( com.google.gerrit.client.info.ChangeInfo change , com.google.gerrit.client.info.ActionInfo action , com.google.gerrit.client.rpc.RestApi api ) { com.google.gerrit.client.api.DefaultActions.invoke ( action , api , com.google.gerrit.client.api.DefaultActions.callback ( com.google.gerrit.common.PageLinks.toChange ( change.projectNameKey ( ) , change.legacyId ( ) ) ) ) ; }
Source:
public java.util.Set < com.google.gerrit.client.reviewdb.Change.Id > run ( final com.google.gerrit.client.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException { return com.google.gerrit.client.changes.ChangeListServiceImpl.starredBy ( db , com.google.gerrit.client.rpc.RpcUtil.getAccountId ( ) ) ; }

Target:
public java.util.Set < com.google.gerrit.client.reviewdb.Change.Id > run ( final com.google.gerrit.client.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException { return com.google.gerrit.client.changes.ChangeListServiceImpl.starredBy ( db , com.google.gerrit.client.rpc.Common.getAccountId ( ) ) ; }
Source:
public void emptyStringTest ( ) throws java.lang.Exception { queryBuilder.addParameter ( "status" , "open" ) ; queryBuilder.addParameter ( "topic" , "" ) ; com.google.common.truth.Truth.assertThat ( queryBuilder.get ( ) ) . isEqualTo ( "topic:\"\" status:\"open\"" ) ; }

Target:
public void emptyStringTest ( ) throws java.lang.Exception { queryBuilder.addParameter ( "topic" , "" ) ; com.google.common.truth.Truth.assertThat ( queryBuilder.get ( ) ) . isEqualTo ( "topic:\"\"" ) ; }
Source:
BRANCH ( ) { }

Target:
int getEnd ( com.google.gerrit.prettify.common.BaseEdit edit ) { return edit.getEndB ( ) ; }
Source:
public com.google.gerrit.extensions.common.RevisionInfo addRevisionActions ( com.google.gerrit.extensions.common.RevisionInfo to , com.google.gerrit.server.change.RevisionResource rsrc ) { to.actions = toActionMap ( rsrc ) ; return to ; }

Target:
public com.google.gerrit.extensions.common.ChangeInfo addChangeActions ( com.google.gerrit.extensions.common.ChangeInfo to , com.google.gerrit.server.project.ChangeControl ctl ) { java.util.List < com.google.gerrit.extensions.api.changes.ActionVisitor > visitors = visitors ( ) ; to.actions = toActionMap ( ctl , visitors , copy ( visitors , to ) ) ; return to ; }
Source:
private org.eclipse.jgit.revwalk.RevCommit patchSetCommit ( com.google.gerrit.reviewdb.client.PatchSet.Id psId ) throws java.lang.Exception { org.eclipse.jgit.revwalk.RevCommit c = testRepo.commit ( ) . parent ( tip ) . message ( ( "Change " + psId ) ) . create ( ) ; return testRepo.parseBody ( c ) ; }

Target:
private org.eclipse.jgit.revwalk.RevCommit patchSetCommit ( com.google.gerrit.reviewdb.client.PatchSet.Id psId ) throws java.lang.Exception { org.eclipse.jgit.revwalk.RevCommit c = serverSideTestRepo.commit ( ) . parent ( tip ) . message ( ( "Change " + psId ) ) . create ( ) ; return serverSideTestRepo.parseBody ( c ) ; }
Source:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > byCommit ( org.eclipse.jgit.lib.ObjectId id ) throws com.google.gwtorm.server.OrmException { return query ( com.google.gerrit.server.query.change.InternalChangeQuery.commit ( com.google.gerrit.server.query.change.InternalChangeQuery.schema ( indexes ) , id.name ( ) ) ) ; }

Target:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > byCommit ( java.lang.String hash ) throws com.google.gwtorm.server.OrmException { return query ( com.google.gerrit.server.query.change.InternalChangeQuery.commit ( com.google.gerrit.server.query.change.InternalChangeQuery.schema ( indexes ) , hash ) ) ; }
Source:
private void checkRevision ( ) { com.google.common.base.Preconditions.checkState ( ( ( revision ) != ( Revision.NULL ) ) , "missing revision on %s view" , type ) ; checkRepositoryIndex ( ) ; }

Target:
private void checkRevision ( ) { checkView ( ( ( revision ) != ( Revision.NULL ) ) , "missing revision on %s view" , type ) ; checkRepositoryIndex ( ) ; }
Source:
final native void isVisibleToAll ( boolean v ) ;

Target:
final native void visibleToAll ( boolean v ) ;
Source:
private java.util.Collection < com.google.gerrit.reviewdb.RefRight > getWildProjectRights ( ) { final com.google.gerrit.server.project.ProjectState s = projectCache.get ( wildProject ) ; return s != null ? s.getLocalRights ( ) : java.util.Collections.< com.google.gerrit.reviewdb.RefRight > emptyList ( ) ; }

Target:
private java.util.Collection < com.google.gerrit.reviewdb.RefRight > getWildProjectRights ( ) { com.google.gerrit.server.project.ProjectState s = com.google.gerrit.server.util.FutureUtil.get ( projectCache.get ( wildProject ) ) ; return s != null ? s.getLocalRights ( ) : java.util.Collections.< com.google.gerrit.reviewdb.RefRight > emptyList ( ) ; }
Source:
public org.eclipse.jgit.lib.RefUpdate.Result renameFile ( com.google.gerrit.server.edit.ChangeEdit edit , java.lang.String file , java.lang.String newFile ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.project.InvalidChangeOperationException , java.io.IOException { return modify ( com.google.gerrit.server.edit.ChangeEditModifier.TreeOperation.RENAME_ENTRY , edit , file , newFile , null ) ; }

Target:
public org.eclipse.jgit.lib.RefUpdate.Result restoreFile ( com.google.gerrit.server.edit.ChangeEdit edit , java.lang.String file ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.project.InvalidChangeOperationException , java.io.IOException { org.eclipse.jgit.revwalk.RevCommit editCommit = edit.getEditCommit ( ) ; return modify ( edit , new com.google.gerrit.server.edit.tree.RestoreFileModification ( editCommit , file ) ) ; }
Source:
private void resizeBoxPaddings ( ) { for ( com.google.gerrit.client.diff.CommentBox box : allBoxes ) { box.resizePaddingWidget ( ) ; } }

Target:
public void execute ( ) { for ( com.google.gerrit.client.diff.CommentBox box : allBoxes ) { box.resizePaddingWidget ( ) ; } }
Source:
public com.google.gerrit.server.change.MergeabilityChecker.Check addProject ( com.google.gerrit.reviewdb.client.Project.NameKey project ) { projects.add ( project ) ; return this ; }

Target:
public com.google.gerrit.server.change.MergeabilityChecker.Check addProject ( com.google.gerrit.reviewdb.client.Project.NameKey project ) { projects.add ( project ) ; interactive = false ; return this ; }
Source:
public com.google.gerrit.server.project.ChangeControl forUser ( final com.google.gerrit.server.CurrentUser who ) { if ( getCurrentUser ( ) . equals ( who ) ) { return this ; } return new com.google.gerrit.server.project.ChangeControl ( changeDataFactory , getRefControl ( ) . forUser ( who ) , notes ) ; }

Target:
public com.google.gerrit.server.project.ChangeControl forUser ( final com.google.gerrit.server.CurrentUser who ) { if ( getUser ( ) . equals ( who ) ) { return this ; } return new com.google.gerrit.server.project.ChangeControl ( changeDataFactory , getRefControl ( ) . forUser ( who ) , notes ) ; }
Source:
public com.google.gerrit.extensions.common.WebLinkInfo getBranchWebLink ( java.lang.String projectName , java.lang.String branchName ) { return new com.google.gerrit.extensions.common.WebLinkInfo ( com.googlesource.gerrit.plugins.xdocs.XDocWebLink.README , getImageUrl ( ) , getBranchUrl ( projectName , branchName ) , com.google.gerrit.extensions.webui.WebLinkTarget.BLANK ) ; }

Target:
public com.google.gerrit.extensions.common.WebLinkInfo getProjectWeblink ( java.lang.String projectName ) { java.lang.String url = getBranchUrl ( projectName , Constants.HEAD ) ; return url == null ? null : new com.google.gerrit.extensions.common.WebLinkInfo ( com.googlesource.gerrit.plugins.xdocs.XDocWebLink.README , getImageUrl ( ) , url , Target.SELF ) ; }
Source:
public void removeReviewer ( com.google.gerrit.reviewdb.client.Account.Id reviewer ) { reviewers.put ( reviewer , ReviewerState.REMOVED ) ; }

Target:
public void putReviewer ( com.google.gerrit.reviewdb.client.Account.Id reviewer , com.google.gerrit.server.notedb.ReviewerStateInternal type ) { com.google.common.base.Preconditions.checkArgument ( ( type != ( ReviewerStateInternal.REMOVED ) ) , "invalid ReviewerType" ) ; reviewers.put ( reviewer , type ) ; }
Source:
protected java.lang.String soyFile ( java.lang.String name ) { return args.soyTofu.newRenderer ( ( "com.google.gerrit.server.mail.template." + name ) ) . setData ( soyContext ) . render ( ) ; }

Target:
protected java.lang.String soyTextTemplate ( java.lang.String name ) { return args.soyTofu.newRenderer ( ( "com.google.gerrit.server.mail.template." + name ) ) . setContentKind ( SanitizedContent.ContentKind.TEXT ) . setData ( soyContext ) . render ( ) ; }
Source:
public com.google.gerrit.reviewdb.client.Change atomicUpdate ( com.google.gerrit.reviewdb.client.Change.Id key , com.google.gwtorm.server.AtomicUpdate < com.google.gerrit.reviewdb.client.Change > update ) { throw new java.lang.UnsupportedOperationException ( ( "do not call atomicUpdate; updateChange is always called within a" + " transaction" ) ) ; }

Target:
public com.google.gerrit.reviewdb.client.Change atomicUpdate ( com.google.gerrit.reviewdb.client.Change.Id key , com.google.gwtorm.server.AtomicUpdate < com.google.gerrit.reviewdb.client.Change > update ) { throw new java.lang.UnsupportedOperationException ( "do not call atomicUpdate; updateChange is always called within a transaction" ) ; }
Source:
public void center ( ) { super . center ( ) ; com.google.gwtexpui.globalkey.client.GlobalKey.dialog ( this ) ; sendButton.setFocus ( true ) ; }

Target:
public void center ( ) { super . center ( ) ; com.google.gwtexpui.globalkey.client.GlobalKey.dialog ( this ) ; updateControls ( false ) ; }
Source:
public void run ( ) { if ( cm.hasVimSearchHighlight ( ) ) { net.codemirror.lib.CodeMirror.handleVimKey ( cm , "N" ) ; } else { commentManager.commentNav ( cm , Direction.NEXT ) . run ( ) ; } }

Target:
public void run ( ) { if ( cm.vim ( ) . hasSearchHighlight ( ) ) { cm.vim ( ) . handleKey ( "N" ) ; } else { commentManager.commentNav ( cm , Direction.NEXT ) . run ( ) ; } }
Source:
public com.google.gerrit.server.git.ReplaceOp setUpdateRef ( boolean updateRef ) { this . updateRef = updateRef ; return this ; }

Target:
public org.eclipse.jgit.transport.ReceiveCommand getCommand ( ) { return cmd ; }
Source:
public final java.lang.String descrName ( ) { return descrName ; }

Target:
ApprovalCategory.Id getCategoryId ( ) { return type.getCategory ( ) . getId ( ) ; }
Source:
public boolean isOwnerAnyRef ( ) { return ( canPerformOnAnyRef ( Permission.OWNER ) ) || ( getCurrentUser ( ) . isAdministrator ( ) ) ; }

Target:
public boolean isOwnerAnyRef ( ) { return ( canPerformOnAnyRef ( Permission.OWNER ) ) || ( getCurrentUser ( ) . getCapabilities ( ) . canAdministrateServer ( ) ) ; }
Source:
public void stop ( ) { com.ericsson.gerrit.plugins.highavailability.peers.jgroups.JGroupsPeerInfoProvider.log.info ( "closing jgroups channel {}" , jgroupsConfig.clusterName ( ) ) ; channel.close ( ) ; peerInfo = com.google.common.base.Optional.absent ( ) ; peerAddress = null ; }

Target:
public void stop ( ) { com.ericsson.gerrit.plugins.highavailability.peers.jgroups.JGroupsPeerInfoProvider.log.info ( "closing jgroups channel {}" , jgroupsConfig.clusterName ( ) ) ; channel.close ( ) ; peerInfo = java.util.Optional.empty ( ) ; peerAddress = null ; }
Source:
public java.lang.String getChangeAvatarUrl ( com.google.gerrit.server.IdentifiedUser forUser ) { return "http://www.gravatar.com" ; }

Target:
public java.lang.String getChangeAvatarUrl ( com.google.gerrit.server.IdentifiedUser forUser ) { return changeAvatarUrl ; }