auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void negativeEndCharacterResultsInInvalidRange ( ) { com.google.gerrit.extensions.client.Comment.Range range = createRange ( 13 , 2 , 19 , ( - 1 ) ) ; com.google.gerrit.extensions.client.RangeSubject.assertThat ( range ) . isInvalid ( ) ; }

Target:
public void negativeEndCharacterResultsInInvalidRange ( ) { com.google.gerrit.extensions.client.Comment.Range range = createRange ( 13 , 2 , 19 , ( - 1 ) ) ; com.google.gerrit.extensions.client.testing.RangeSubject.assertThat ( range ) . isInvalid ( ) ; }
Source:
public void printJson ( final java.lang.StringBuilder sb , final java.lang.String o ) { sb.append ( escapeString ( o ) ) ; }

Target:
public void printJson ( final java.lang.StringBuilder sb , final java.lang.String o ) { sb.append ( com.google.gwt.core.client.JsonUtils.escapeValue ( o ) ) ; }
Source:
public com.google.inject.Provider < com.google.gerrit.reviewdb.server.ReviewDb > getReviewDbProvider ( ) { return com.google.inject.util.Providers.of ( db ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { project = new com.google.gerrit.reviewdb.client.Project.NameKey ( "test" ) ; org.eclipse.jgit.lib.Repository inMemoryRepo = repoManager.createRepository ( project ) ; repo = new org.eclipse.jgit.junit.TestRepository ( inMemoryRepo ) ; }
Source:
public abstract void stop ( ) ;

Target:
abstract void stop ( com.google.gerrit.server.plugins.PluginGuiceEnvironment env ) ;
Source:
public static com.google.gerrit.server.account.ExternalId.Key create ( @ com.google.gerrit.common.Nullable java.lang.String scheme , java.lang.String id ) { return new com.google.gerrit.server.account.AutoValue_ExternalId_Key ( scheme , id ) ; }

Target:
public static com.google.gerrit.server.account.ExternalId.Key create ( @ com.google.gerrit.common.Nullable java.lang.String scheme , java.lang.String id ) { return new com.google.gerrit.server.account.AutoValue_ExternalId_Key ( com.google.common.base.Strings.emptyToNull ( scheme ) , id ) ; }
Source:
public boolean canSubmit ( ) { if ( GitRepositoryManager.REF_CONFIG.equals ( refName ) ) { return getProjectControl ( ) . isOwner ( ) ; } return canPerform ( Permission.SUBMIT ) ; }

Target:
public boolean canUpdate ( ) { if ( ( GitRepositoryManager.REF_CONFIG.equals ( refName ) ) && ( ! ( projectControl.isOwner ( ) ) ) ) { return false ; } return canPerform ( Permission.PUSH ) ; }
Source:
private void injectMode ( com.google.gerrit.client.diff.DiffInfo diffInfo , com.google.gwt.user.client.rpc.AsyncCallback < java.lang.Void > cb ) { new net.codemirror.lib.ModeInjector ( ) . add ( getContentType ( diffInfo.meta_a ( ) ) ) . add ( getContentType ( diffInfo.meta_b ( ) ) ) . inject ( cb ) ; }

Target:
private void injectMode ( com.google.gerrit.client.diff.DiffInfo diffInfo , com.google.gwt.user.client.rpc.AsyncCallback < java.lang.Void > cb ) { new net.codemirror.mode.ModeInjector ( ) . add ( getContentType ( diffInfo.meta_a ( ) ) ) . add ( getContentType ( diffInfo.meta_b ( ) ) ) . inject ( cb ) ; }
Source:
public com.google.gerrit.extensions.common.AccountInfo apply ( com.google.gerrit.reviewdb.client.Account.Id id ) { return accountLoader.get ( id ) ; }

Target:
private java.util.Collection < com.google.gerrit.extensions.common.AccountInfo > toAccountInfo ( java.util.Collection < com.google.gerrit.reviewdb.client.Account.Id > accounts ) { return accounts.stream ( ) . map ( accountLoader :: get ) . sorted ( AccountInfoComparator.ORDER_NULLS_FIRST ) . collect ( java.util.stream.Collectors.toList ( ) ) ; }
Source:
public void resetToDefaults ( ) { maximumPageSize = com.google.gerrit.reviewdb.AccountGeneralPreferences.DEFAULT_PAGESIZE ; showSiteHeader = true ; useFlashClipboard = true ; copySelfOnEmail = false ; displayPatchSetsInReverseOrder = false ; downloadUrl = null ; downloadCommand = null ; dateFormat = null ; timeFormat = null ; }

Target:
public void resetToDefaults ( ) { maximumPageSize = com.google.gerrit.reviewdb.AccountGeneralPreferences.DEFAULT_PAGESIZE ; showSiteHeader = true ; useFlashClipboard = true ; copySelfOnEmail = false ; displayPatchSetsInReverseOrder = false ; displayPersonNameInReviewCategory = false ; downloadUrl = null ; downloadCommand = null ; dateFormat = null ; timeFormat = null ; }
Source:
public void testTagBr ( ) { final com.google.gwtexpui.safehtml.client.SafeHtmlBuilder b = new com.google.gwtexpui.safehtml.client.SafeHtmlBuilder ( ) ; org.junit.Assert.assertSame ( b , b.br ( ) ) ; org.junit.Assert.assertEquals ( "<br />" , b.asString ( ) ) ; }

Target:
public void testEntityNbsp ( ) { final com.google.gwtexpui.safehtml.client.SafeHtmlBuilder b = new com.google.gwtexpui.safehtml.client.SafeHtmlBuilder ( ) ; com.google.common.truth.Truth.assertThat ( b ) . isSameAs ( b.nbsp ( ) ) ; com.google.common.truth.Truth.assertThat ( b.asString ( ) ) . isEqualTo ( "&nbsp;" ) ; }
Source:
public void onSuccess ( final com.google.gwtjsonrpc.common.VoidResult result ) { com.google.gerrit.client.Gerrit.getUserAccount ( ) . setUserName ( newUserName ) ; userNameLbl.setText ( newUserName ) ; userNameLbl.setVisible ( true ) ; userNameTxt.setVisible ( false ) ; setUserName.setVisible ( false ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.rpc.NativeString result ) { com.google.gerrit.client.Gerrit.getUserAccount ( ) . username ( newUserName ) ; userNameLbl.setText ( newUserName ) ; userNameLbl.setVisible ( true ) ; userNameTxt.setVisible ( false ) ; setUserName.setVisible ( false ) ; }
Source:
public static com.google.gerrit.common.data.PermissionRule newRule ( com.google.gerrit.server.git.ProjectConfig project , com.google.gerrit.reviewdb.client.AccountGroup.UUID groupUUID ) { com.google.gerrit.common.data.GroupReference group = new com.google.gerrit.common.data.GroupReference ( groupUUID , groupUUID.get ( ) ) ; group = project.resolve ( group ) ; return new com.google.gerrit.common.data.PermissionRule ( group ) ; }

Target:
public static com.google.gerrit.common.data.PermissionRule newRule ( com.google.gerrit.server.project.ProjectConfig project , com.google.gerrit.reviewdb.client.AccountGroup.UUID groupUUID ) { com.google.gerrit.common.data.GroupReference group = new com.google.gerrit.common.data.GroupReference ( groupUUID , groupUUID.get ( ) ) ; group = project.resolve ( group ) ; return new com.google.gerrit.common.data.PermissionRule ( group ) ; }
Source:
public void onSend ( ) { Util.MANAGE_SVC.abandonChange ( patchSet.getId ( ) , getMessageText ( ) , createCallback ( ) ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { enableButtons ( true ) ; }
Source:
void audit ( com.google.gerrit.sshd.SshScope.Context ctx , java.lang.Object result , com.google.gerrit.sshd.DispatchCommand cmd ) { audit ( ctx , result , extractWhat ( cmd ) , extractParameters ( cmd ) ) ; }

Target:
private java.lang.String extractWhat ( com.google.gerrit.sshd.DispatchCommand dcmd , boolean hideSensitive ) { if ( dcmd == null ) { return "Command was already destroyed" ; } return hideSensitive ? dcmd.getFormattedMaskedArguments ( "." ) : extractWhat ( dcmd ) ; }
Source:
protected void configure ( ) { factory ( AbandonedSender.Factory.class ) ; factory ( CommentSender.Factory.class ) ; }

Target:
protected void configure ( ) { factory ( AbandonedSender.Factory.class ) ; factory ( CommentSender.Factory.class ) ; factory ( RevertedSender.Factory.class ) ; }
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.lib.ObjectId commitId ) ;

Target:
com.google.gerrit.server.change.PatchSetInserter create ( com.google.gerrit.server.notedb.ChangeNotes notes , com.google.gerrit.reviewdb.client.PatchSet.Id psId , org.eclipse.jgit.lib.ObjectId commitId ) ;
Source:
final native void add_value ( java.lang.String v ) ;

Target:
final native void addValue ( java.lang.String v ) ;
Source:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange2 ( id ) ) ; hide ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( id ) ) ; hide ( ) ; }
Source:
public void insert ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Account account ) throws com.google.gwtorm.server.OrmException , java.io.IOException { db.accounts ( ) . insert ( com.google.common.collect.ImmutableSet.of ( account ) ) ; createUserBranchIfNeeded ( account ) ; }

Target:
public void insert ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Account account ) throws com.google.gwtorm.server.OrmException , java.io.IOException { db.accounts ( ) . insert ( com.google.common.collect.ImmutableSet.of ( account ) ) ; createUserBranch ( account ) ; }
Source:
synchronized void clean ( int expect ) { if ( ( ( self ) == null ) && ( ( pending ) == 0 ) ) { start = com.google.gerrit.server.util.TimeUtil.nowMs ( ) ; } pending = expect ; ensureScheduled ( ) ; }

Target:
synchronized void clean ( int expect ) { if ( ( ( self ) == null ) && ( ( pending ) == 0 ) ) { start = com.google.gerrit.common.TimeUtil.nowMs ( ) ; } pending = expect ; ensureScheduled ( ) ; }
Source:
public java.util.Set < com.google.gerrit.reviewdb.Account > call ( ) throws com.google.gerrit.common.errors.NoSuchGroupException , com.google.gerrit.server.project.NoSuchProjectException , com.google.gwtorm.client.OrmException { return listAccounts ( groupUUID , new java.util.HashSet < com.google.gerrit.reviewdb.AccountGroup.UUID > ( ) ) ; }

Target:
public java.util.Set < com.google.gerrit.reviewdb.Account > listAccounts ( final com.google.gerrit.reviewdb.AccountGroup.UUID groupUUID , final com.google.gerrit.reviewdb.Project.NameKey project ) throws com.google.gerrit.common.errors.NoSuchGroupException , com.google.gerrit.server.project.NoSuchProjectException , com.google.gwtorm.client.OrmException { return listAccounts ( groupUUID , project , new java.util.HashSet < com.google.gerrit.reviewdb.AccountGroup.UUID > ( ) ) ; }
Source:
public synchronized com.google.gerrit.server.account.AccountState getIfPresent ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { return byId.get ( accountId ) ; }

Target:
public synchronized com.google.gerrit.server.account.AccountState get ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { com.google.gerrit.server.account.AccountState state = byId.get ( accountId ) ; if ( state != null ) { return state ; } return com.google.gerrit.testutil.FakeAccountCache.newState ( new com.google.gerrit.reviewdb.client.Account ( accountId , com.google.gerrit.common.TimeUtil.nowTs ( ) ) ) ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.server.cache.h2.DefaultCacheFactory.class ) ; bind ( com.google.gerrit.server.cache.MemoryCacheFactory.class ) . to ( com.google.gerrit.server.cache.h2.DefaultCacheFactory.class ) ; bind ( com.google.gerrit.server.cache.PersistentCacheFactory.class ) . to ( com.google.gerrit.server.cache.h2.H2CacheFactory.class ) ; listener ( ) . to ( com.google.gerrit.server.cache.h2.H2CacheFactory.class ) ; }

Target:
protected void configure ( ) { factory ( ForwardingRemovalListener.Factory.class ) ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { setReviewedByCurrentUser ( event.getValue ( ) ) ; }

Target:
public void execute ( ) { try { onResult ( lastScript , false ) ; } finally { RpcStatus.INSTANCE.onRpcComplete ( null ) ; } }
Source:
private static void assertToNotifyValue ( java.lang.String filter , java.util.Set < com.google.gerrit.server.account.WatchConfig.NotifyType > notifyTypes , java.lang.String expectedNotifyValue ) { com.google.gerrit.server.account.WatchConfig.NotifyValue nv = com.google.gerrit.server.account.WatchConfig.NotifyValue.create ( filter , notifyTypes ) ; com.google.common.truth.Truth.assertThat ( nv.toString ( ) ) . isEqualTo ( expectedNotifyValue ) ; }

Target:
private static void assertToNotifyValue ( java.lang.String filter , java.util.Set < com.google.gerrit.server.account.ProjectWatches.NotifyType > notifyTypes , java.lang.String expectedNotifyValue ) { com.google.gerrit.server.account.ProjectWatches.NotifyValue nv = com.google.gerrit.server.account.ProjectWatches.NotifyValue.create ( filter , notifyTypes ) ; com.google.common.truth.Truth.assertThat ( nv.toString ( ) ) . isEqualTo ( expectedNotifyValue ) ; }
Source:
public com.google.gerrit.extensions.restapi.RestView < com.google.gerrit.server.change.RevisionResource > list ( ) throws com.google.gerrit.extensions.restapi.AuthException { return new com.google.gerrit.server.change.Files.List ( ) ; }

Target:
public com.google.gerrit.extensions.restapi.RestView < com.google.gerrit.server.change.RevisionResource > list ( ) throws com.google.gerrit.extensions.restapi.AuthException { return list.get ( ) ; }
Source:
private int getBackendSupportedLimit ( ) { return indexConfig.getMaxLimit ( ) ; }

Target:
private int getBackendSupportedLimit ( ) { return indexConfig.maxLimit ( ) ; }
Source:
public com.google.gerrit.server.WebLinks get ( ) { com.google.gerrit.server.WebLinks webLinks = new com.google.gerrit.server.WebLinks ( patchSetLinks ) ; return webLinks ; }

Target:
public com.google.gerrit.server.WebLinks get ( ) { com.google.gerrit.server.WebLinks webLinks = new com.google.gerrit.server.WebLinks ( patchSetLinks , projectLinks ) ; return webLinks ; }
Source:
private void parse ( java.lang.String markdown ) { node = com.google.gitiles.doc.GitilesMarkdown.parse ( markdown ) ; extractSiteTitle ( ) ; extractRefLinks ( markdown ) ; }

Target:
private void parse ( com.google.gitiles.doc.MarkdownConfig cfg , java.lang.String markdown ) { node = com.google.gitiles.doc.GitilesMarkdown.parse ( cfg , markdown ) ; extractSiteTitle ( ) ; extractRefLinks ( markdown ) ; }
Source:
public org.eclipse.jgit.lib.PersonIdent newPersonIdent ( ) { return newPersonIdent ( new java.util.Date ( ) , java.util.TimeZone.getDefault ( ) ) ; }

Target:
public org.eclipse.jgit.lib.PersonIdent newRefLogIdent ( ) { return newRefLogIdent ( new java.util.Date ( ) , java.util.TimeZone.getDefault ( ) ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.projects.ConfigInfoCache.Entry result ) { commentLinkProcessor = result.getCommentLinkProcessor ( ) ; setTheme ( result.getTheme ( ) ) ; }

Target:
protected void preDisplay ( com.google.gerrit.client.projects.ConfigInfoCache.Entry result ) { commentLinkProcessor = result.getCommentLinkProcessor ( ) ; setTheme ( result.getTheme ( ) ) ; com.google.gerrit.client.diff.DiffInfo diffInfo = diff ; diff = null ; display ( diffInfo ) ; }
Source:
java.util.Set < com.google.gerrit.server.account.externalids.ExternalId > all ( org.eclipse.jgit.lib.ObjectId rev ) throws java.io.IOException { checkReadEnabled ( ) ; try ( org.eclipse.jgit.lib.Repository repo = repoManager.openRepository ( allUsersName ) ) { return all ( repo , rev ) ; } }

Target:
com.google.gerrit.server.account.externalids.ExternalId get ( com.google.gerrit.server.account.externalids.ExternalId.Key key ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { checkReadEnabled ( ) ; try ( org.eclipse.jgit.lib.Repository repo = repoManager.openRepository ( allUsersName ) ) { return com.google.gerrit.server.account.externalids.ExternalIdNotes.loadReadOnly ( repo ) . get ( key ) . orElse ( null ) ; } }
Source:
public org.eclipse.jgit.lib.ObjectReader newReader ( ) { return new com.google.gerrit.server.notedb.InMemoryInserter.Reader ( ) ; }

Target:
public org.eclipse.jgit.lib.ObjectReader newReader ( ) { return new com.google.gerrit.server.git.InMemoryInserter.Reader ( ) ; }
Source:
public void execute ( ) { resizePaddingWidget ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.CommentInfo result ) { enableEdit ( true ) ; set ( result ) ; setEdit ( false ) ; if ( autoClosed ) { setOpen ( false ) ; } }
Source:
public void evict ( final com.google.gerrit.client.reviewdb.AccountGroup group ) { byId.remove ( group.getId ( ) ) ; byName.remove ( group.getNameKey ( ) ) ; }

Target:
public void evict ( final com.google.gerrit.client.reviewdb.AccountGroup group ) { byId.remove ( group.getId ( ) ) ; byName.remove ( group.getNameKey ( ) ) ; byExternalName.remove ( group.getExternalNameKey ( ) ) ; }
Source:
public void index ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id changeId ) throws java.io.IOException { index ( changeDataFactory.create ( db , project , changeId ) ) ; }

Target:
public void index ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Change change ) throws com.google.gwtorm.server.OrmException , java.io.IOException { index ( newChangeData ( db , change ) ) ; }
Source:
protected void formatChange ( ) { appendText ( getNameFor ( fromId ) ) ; appendText ( ( ( " has abandoned change " + ( change.getKey ( ) . abbreviate ( ) ) ) + ":\n" ) ) ; appendText ( "\n" ) ; formatCoverLetter ( ) ; }

Target:
protected void formatChange ( ) throws com.google.gerrit.server.mail.EmailException { appendText ( velocifyFile ( "Abandoned.vm" ) ) ; }
Source:
public void onSuccess ( final com.google.gerrit.client.reviewdb.Account result ) { if ( result != null ) { com.google.gerrit.client.Gerrit.postSignIn ( result ) ; } else { com.google.gwt.user.client.Cookies.removeCookie ( com.google.gerrit.client.Gerrit.ACCOUNT_COOKIE ) ; com.google.gerrit.client.Gerrit.refreshMenuBar ( ) ; } finishModuleLoad ( ) ; }

Target:
public void onSuccess ( final com.google.gerrit.client.reviewdb.Account result ) { if ( result != null ) { com.google.gerrit.client.Gerrit.postSignIn ( result ) ; } else { com.google.gwt.user.client.Cookies.removeCookie ( com.google.gerrit.client.Gerrit.ACCOUNT_COOKIE ) ; com.google.gerrit.client.Gerrit.refreshMenuBar ( ) ; } showInitialScreen ( ) ; }
Source:
public com.google.gerrit.server.git.MergeSuperSet setMergeOpRepoManager ( com.google.gerrit.server.git.MergeOpRepoManager orm ) { com.google.common.base.Preconditions.checkState ( ( ( this . orm ) == null ) ) ; this . orm = com.google.common.base.Preconditions.checkNotNull ( orm ) ; return this ; }

Target:
public com.google.gerrit.server.git.MergeSuperSet setMergeOpRepoManager ( com.google.gerrit.server.git.MergeOpRepoManager orm ) { com.google.common.base.Preconditions.checkState ( ( ( this . orm ) == null ) ) ; this . orm = com.google.common.base.Preconditions.checkNotNull ( orm ) ; closeOrm = false ; return this ; }
Source:
public void visit ( org.pegdown.ast.AutoLinkNode node ) { java.lang.String url = node.getText ( ) ; html.open ( "a" ) . attribute ( "href" , href ( url ) ) . appendAndEscape ( url ) . close ( "a" ) ; }

Target:
public void visit ( org.commonmark.node.IndentedCodeBlock node ) { codeInPre ( null , node.getLiteral ( ) ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.account.EditPreferences r ) { prefs = r ; com.google.gerrit.extensions.client.EditPreferencesInfo global = new com.google.gerrit.extensions.client.EditPreferencesInfo ( ) ; r.copyTo ( global ) ; com.google.gerrit.client.Gerrit.setEditPreferences ( global ) ; onLoad2 ( ) ; }

Target:
public void onSuccess ( java.lang.Void result ) { net.codemirror.theme.ThemeLoader.loadTheme ( prefs.theme ( ) , themeCallback ) ; group2.done ( ) ; group3.done ( ) ; }
Source:
static void setForwardedEvent ( java.lang.Boolean b ) { com.ericsson.gerrit.plugins.syncindex.Context.FORWARDED_EVENT.set ( b ) ; }

Target:
static void setForwardedEvent ( java.lang.Boolean b ) { com.ericsson.gerrit.plugins.highavailability.Context.FORWARDED_EVENT.set ( b ) ; }
Source:
public void listNonExistingGroupMembers_NotFound ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( adminSession.get ( ( ( "/groups/" + ( name ( "non-existing" ) ) ) + "/members/" ) ) . getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_NOT_FOUND ) ; }

Target:
public void listNonExistingGroupMembers_NotFound ( ) throws java.lang.Exception { try { gApi.groups ( ) . id ( "non-existing" ) . members ( ) ; } catch ( com.google.gerrit.extensions.restapi.ResourceNotFoundException expected ) { } }
Source:
abstract java.lang.Runnable openCloseAll ( final net.codemirror.lib.CodeMirror cm ) ;

Target:
java.lang.Runnable openCloseAll ( final net.codemirror.lib.CodeMirror cm ) { return new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { com.google.gerrit.client.diff.CommentGroup group = getCommentGroupOnActiveLine ( cm ) ; if ( group != null ) { group.openCloseAll ( ) ; } } } ; }
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 ; a1 = a1.dereference ( ) ; engine.setException ( a1 ) ; 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 ; a1 = a1.dereference ( ) ; engine.setException ( a1 ) ; return cont ; }
Source:
public static com.google.gerrit.client.rpc.RestApi reviewer ( int id , int reviewer ) { return com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( "reviewers" ) . id ( reviewer ) ; }

Target:
public static com.google.gerrit.client.rpc.RestApi revision ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , java.lang.String revision ) { return com.google.gerrit.client.changes.ChangeApi.change ( project , id ) . view ( "revisions" ) . id ( revision ) ; }
Source:
boolean needsCookieRefresh ( ) { return ( refreshCookieAt ) <= ( com.google.gerrit.server.util.TimeUtil.nowMs ( ) ) ; }

Target:
boolean needsCookieRefresh ( ) { return ( refreshCookieAt ) <= ( com.google.gerrit.common.TimeUtil.nowMs ( ) ) ; }
Source:
public void deleteBranch_Forbidden ( ) throws java.lang.Exception { setApiUser ( user ) ; assertDeleteForbidden ( ) ; }

Target:
public void deleteBranch_Forbidden ( ) throws java.lang.Exception { setApiUser ( user ) ; assertDeleteForbidden ( testBranch ) ; }
Source:
private void appendLineText ( final com.google.gwtexpui.safehtml.client.SafeHtmlBuilder m , final int lineNumberMinusOne , final com.google.gerrit.client.patches.PatchLine.Type type , final com.google.gerrit.common.data.SparseFileContent src , final int i ) { appendLineText ( m , lineNumberMinusOne , type , src.get ( i ) ) ; }

Target:
private void appendLineText ( final com.google.gwtexpui.safehtml.client.SafeHtmlBuilder m , final int lineNumberMinusOne , final com.google.gerrit.client.patches.PatchLine.Type type , final com.google.gerrit.prettify.common.SparseHtmlFile src , final int i ) { appendLineText ( m , lineNumberMinusOne , type , src.getSafeHtmlLine ( i ) ) ; }
Source:
public void setGroupReference ( java.lang.String name , com.google.gerrit.common.data.GroupReference value ) { setString ( name , value.toConfigValue ( ) ) ; }

Target:
public void setGroupReference ( java.lang.String name , com.google.gerrit.common.data.GroupReference value ) { com.google.gerrit.common.data.GroupReference groupRef = projectConfig.resolve ( value ) ; setString ( name , groupRef.toConfigValue ( ) ) ; }
Source:
void onPublish ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.DraftActions.publish ( changeId , revision ) ; }

Target:
void onDeleteRevision ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( com.google.gwt.user.client.Window.confirm ( Resources.C.deleteDraftRevision ( ) ) ) { com.google.gerrit.client.change.DraftActions.delete ( changeId , revision , publish , deleteRevision , deleteChange ) ; } }
Source:
public void setSpellCheck ( boolean spell ) { com.google.gwt.user.client.DOM.setElementPropertyBoolean ( getElement ( ) , "spellcheck" , spell ) ; }

Target:
public void setSpellCheck ( boolean spell ) { getElement ( ) . setPropertyBoolean ( "spellcheck" , spell ) ; }
Source:
protected void configure ( ) { factory ( AddReviewer.Factory.class ) ; factory ( PatchScriptFactory.Factory.class ) ; factory ( SaveDraft.Factory.class ) ; }

Target:
protected void configure ( ) { factory ( AddReviewer.Factory.class ) ; factory ( RemoveReviewer.Factory.class ) ; factory ( PatchScriptFactory.Factory.class ) ; factory ( SaveDraft.Factory.class ) ; }
Source:
private static java.lang.String getJsPluginPath ( com.google.gerrit.server.plugins.Plugin plugin ) { return java.lang.String.format ( "%s/static/%s" , plugin.getName ( ) , plugin.getSrcFile ( ) . getName ( ) ) ; }

Target:
private static java.lang.String getJsPluginPath ( com.google.gerrit.server.plugins.Plugin plugin ) { return java.lang.String.format ( "/plugins/%s/static/%s" , plugin.getName ( ) , plugin.getSrcFile ( ) . getName ( ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { setUpChanges ( ) ; setUpPermissions ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { admins = groupCache.get ( new com.google.gerrit.reviewdb.client.AccountGroup.NameKey ( "Administrators" ) ) . getGroupUUID ( ) ; setUpChanges ( ) ; setUpPermissions ( ) ; }
Source:
public void index ( com.google.gerrit.server.query.change.ChangeData cd ) throws java.io.IOException { indexAsync ( cd ) . checkedGet ( ) ; }

Target:
public void index ( com.google.gerrit.server.query.change.ChangeData cd ) throws java.io.IOException { try { indexTask ( cd ) . call ( ) ; } catch ( java.lang.RuntimeException e ) { throw e ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.index.ChangeIndexer.MAPPER.apply ( e ) ; } }
Source:
public void execute ( java.lang.Runnable command ) { command.run ( ) ; }

Target:
public void execute ( java.lang.Runnable command ) { com.google.common.truth.Truth.assertThat ( command.toString ( ) ) . isEqualTo ( "(Events-log) Insert Event" ) ; command.run ( ) ; }
Source:
public java.util.List < com.google.gerrit.reviewdb.client.PatchSetApproval > approvals ( com.google.inject.Provider < com.google.gerrit.reviewdb.server.ReviewDb > db ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.server.query.change.ChangeData.sortApprovals ( approvalsMap ( db ) . values ( ) ) ; }

Target:
public java.util.List < com.google.gerrit.reviewdb.client.PatchSetApproval > approvals ( com.google.inject.Provider < com.google.gerrit.reviewdb.server.ReviewDb > db ) throws com.google.gwtorm.server.OrmException { return com.google.common.collect.ImmutableList.copyOf ( approvalsMap ( db ) . values ( ) ) ; }
Source:
public com.google.gerrit.server.query.Predicate < T > copy ( java.util.Collection < ? extends com.google.gerrit.server.query.Predicate < T > > children ) { return new com.google.gerrit.server.query.OrPredicate ( children ) ; }

Target:
public com.google.gerrit.index.query.Predicate < T > copy ( java.util.Collection < ? extends com.google.gerrit.index.query.Predicate < T > > children ) { return new com.google.gerrit.index.query.OrPredicate ( children ) ; }
Source:
void onRebaseEdit ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.EditActions.rebaseEdit ( changeId ) ; }

Target:
void onRebaseEdit ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.EditActions.rebaseEdit ( changeId , publishEdit , rebaseEdit , deleteEdit ) ; }
Source:
protected void preDisplay ( final com.google.gerrit.client.data.ChangeDetail r ) { setStarred ( r.isStarred ( ) ) ; display ( r ) ; }

Target:
protected void preDisplay ( final com.google.gerrit.client.data.ChangeDetail r ) { if ( ( starChange ) != null ) { setStarred ( r.isStarred ( ) ) ; } display ( r ) ; }
Source:
public void newPatchSetOnWipChange ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageWipChange ( com.google.gerrit.server.account.WatchConfig.NotifyType.NEW_PATCHSETS ) ; pushTo ( sc , "refs/for/master%wip" , sc.owner ) ; assertThat ( sender ) . notSent ( ) ; }

Target:
public void newPatchSetByOwnerOnReviewableChangeToWip ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; pushTo ( sc , "refs/for/master%wip" , sc.owner ) ; assertThat ( sender ) . notSent ( ) ; }
Source:
public void onUnload ( ) { com.google.gerrit.client.Gerrit.removeSignedInListener ( signedInListener ) ; super . onUnload ( ) ; }

Target:
public void onLoad ( ) { super . onLoad ( ) ; com.google.gerrit.client.Gerrit.addSignOutHandler ( signedInListener ) ; }
Source:
public void onSignOut ( ) { actionsPanel.clear ( ) ; actionsPanel.setVisible ( false ) ; }

Target:
public void onSignOut ( final com.google.gerrit.client.SignOutEvent event ) { actionsPanel.clear ( ) ; actionsPanel.setVisible ( false ) ; regSignOut.removeHandler ( ) ; regSignOut = null ; }
Source:
public void onSend ( ) { Util.MANAGE_SVC.abandonChange ( getPatchSetId ( ) , getMessageText ( ) , createCallback ( ) ) ; }

Target:
public void onSend ( ) { Util.MANAGE_SVC.revertChange ( getPatchSetId ( ) , getMessageText ( ) , createCallback ( ) ) ; }
Source:
public boolean hasGroup ( com.google.gerrit.reviewdb.AccountGroup.UUID uuid ) { return groupsByUUID.containsKey ( uuid ) ; }

Target:
public java.util.Collection < com.google.gerrit.common.data.AccessSection > getAccessSections ( ) { return com.google.gerrit.server.git.ProjectConfig.sort ( accessSections.values ( ) ) ; }
Source:
public org.eclipse.jgit.lib.Config getConfig ( ) { return config ; }

Target:
public org.eclipse.jgit.lib.Config getEffective ( ) { return config ; }
Source:
public void cleanup ( ) { org.joda.time.DateTimeUtils.setCurrentMillisSystem ( ) ; db.close ( ) ; }

Target:
public static void restoreTime ( ) { org.joda.time.DateTimeUtils.setCurrentMillisSystem ( ) ; }
Source:
public int next ( ) throws com.google.gwtorm.server.OrmException { counterLock.lock ( ) ; try { if ( ( counter ) >= ( limit ) ) { acquire ( ) ; } return ( counter ) ++ ; } finally { counterLock.unlock ( ) ; } }

Target:
public int next ( ) throws com.google.gwtorm.server.OrmException { counterLock.lock ( ) ; try { if ( ( counter ) >= ( limit ) ) { acquire ( batchSize ) ; } return ( counter ) ++ ; } finally { counterLock.unlock ( ) ; } }
Source:
public boolean canForwardX11 ( org.apache.sshd.server.session.ServerSession session ) { return false ; }

Target:
public boolean canForwardAgent ( org.apache.sshd.common.Session session ) { return false ; }
Source:
public void onSignIn ( ) { }

Target:
public void registerKeys ( ) { }
Source:
void addRight ( com.google.gerrit.reviewdb.Project.NameKey projectName , com.google.gerrit.reviewdb.ApprovalCategory.Id categoryId , java.lang.String groupName , java.lang.String refName , short min , short max , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ProjectDetail > callback ) ;

Target:
void changeProjectAccess ( com.google.gerrit.reviewdb.client.Project.NameKey projectName , java.lang.String baseRevision , java.lang.String message , java.util.List < com.google.gerrit.common.data.AccessSection > sections , com.google.gerrit.reviewdb.client.Project.NameKey parentProjectName , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ProjectAccess > callback ) ;
Source:
public long getId ( ) { return org.eclipse.jgit.util.NB.decodeInt64 ( fp , 12 ) ; }

Target:
public long getId ( ) { return com.google.gerrit.gpg.Fingerprint.getId ( fp ) ; }
Source:
protected java.io.File getSitePath ( ) { java.io.File path = sitePath.getAbsoluteFile ( ) ; if ( "." . equals ( path.getName ( ) ) ) { path = path.getParentFile ( ) ; } return path ; }

Target:
private void setSitePath ( java.lang.String path ) { sitePath = java.nio.file.Paths.get ( path ) ; }
Source:
public T call ( ) throws java.lang.Exception { com.google.gerrit.server.util.RequestContext old = local.setContext ( context ) ; try { return callable.call ( ) ; } finally { local.setContext ( old ) ; } }

Target:
public com.google.gerrit.server.CurrentUser getCurrentUser ( ) { return user ; }
Source:
private boolean list ( ) { for ( com.google.gerrit.server.index.IndexDefinition < ? , ? , ? > def : indexDefs ) { java.lang.System.out.format ( "%s\n" , def.getName ( ) ) ; } return true ; }

Target:
private boolean list ( ) { for ( com.google.gerrit.index.IndexDefinition < ? , ? , ? > def : indexDefs ) { java.lang.System.out.format ( "%s\n" , def.getName ( ) ) ; } return true ; }
Source:
public boolean canSubmit ( ) { return canPerform ( ApprovalCategory.SUBMIT , ( ( short ) ( 1 ) ) ) ; }

Target:
public boolean canSubmit ( ) { return canPerform ( Permission.SUBMIT ) ; }
Source:
public void incrementBy ( long delta ) { com.google.common.base.Preconditions.checkArgument ( ( delta >= 0 ) , "counter delta must be >= 0" ) ; metric.mark ( delta ) ; }

Target:
public void incrementBy ( long delta ) { com.google.common.base.Preconditions.checkArgument ( ( delta >= 0 ) , "counter delta must be >= 0" ) ; m.inc ( delta ) ; }
Source:
public static void all ( com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.account.AccountCapabilities > cb , java.lang.String ... filter ) { new com.google.gerrit.client.rpc.RestApi ( "/accounts/self/capabilities" ) . addParameter ( "q" , filter ) . get ( cb ) ; }

Target:
public static void all ( com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.account.AccountCapabilities > cb , java.lang.String ... filter ) { new com.google.gerrit.client.rpc.RestApi ( "accounts/self/capabilities" ) . addParameter ( "q" , filter ) . get ( cb ) ; }
Source:
public java.util.List < org.eclipse.jgit.revwalk.FooterLine > commitFooters ( ) throws com.google.gerrit.server.project.NoSuchChangeException , com.google.gwtorm.server.OrmException , java.io.IOException { if ( ( commitFooters ) == null ) { loadCommitData ( ) ; } return commitFooters ; }

Target:
public java.lang.String commitMessage ( ) throws com.google.gwtorm.server.OrmException , java.io.IOException { if ( ( commitMessage ) == null ) { if ( ! ( loadCommitData ( ) ) ) { return null ; } } return commitMessage ; }
Source:
private void add ( com.google.gerrit.client.change.ActionButton b ) { ( ( com.google.gwt.user.client.ui.FlowPanel ) ( getWidget ( ) ) ) . add ( b ) ; }

Target:
private void add ( com.google.gerrit.client.actions.ActionButton b ) { ( ( com.google.gwt.user.client.ui.FlowPanel ) ( getWidget ( ) ) ) . add ( b ) ; }
Source:
public void batchAbandon ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.server.CurrentUser user , java.util.Collection < com.google.gerrit.server.project.ChangeControl > controls , java.lang.String msgTxt ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.git.UpdateException { batchAbandon ( project , user , controls , msgTxt , NotifyHandling.ALL ) ; }

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

Target:
public void onClick ( final com.google.gwt.user.client.ui.Widget sender ) { doLinkIdentity ( ) ; }
Source:
protected void onExit ( final int rc ) { hooks.removeChangeListener ( listener ) ; synchronized ( taskLock ) { done = true ; } super . onExit ( rc ) ; }

Target:
protected void onExit ( final int rc ) { hooks.removeEventListener ( listener ) ; synchronized ( taskLock ) { done = true ; } super . onExit ( rc ) ; }
Source:
private static java.util.List < com.google.gerrit.common.auth.openid.OpenIdProviderPattern > toPatterns ( org.eclipse.jgit.lib.Config cfg , java.lang.String name ) { java.lang.String [ ] s = cfg.getStringList ( "auth" , null , name ) ; if ( ( s.length ) == 0 ) { s = new java.lang.String [ ] { "http://" , "https://" } ; } java.util.List < com.google.gerrit.common.auth.openid.OpenIdProviderPattern > r = new java.util.ArrayList < com.google.gerrit.common.auth.openid.OpenIdProviderPattern > ( ) ; for ( java.lang.String pattern : s ) { r.add ( com.google.gerrit.common.auth.openid.OpenIdProviderPattern.create ( pattern ) ) ; } return java.util.Collections.unmodifiableList ( r ) ; }

Target:
private static java.util.List < com.google.gerrit.server.auth.openid.OpenIdProviderPattern > toPatterns ( org.eclipse.jgit.lib.Config cfg , java.lang.String name ) { java.lang.String [ ] s = cfg.getStringList ( "auth" , null , name ) ; if ( ( s.length ) == 0 ) { s = new java.lang.String [ ] { "http://" , "https://" } ; } java.util.List < com.google.gerrit.server.auth.openid.OpenIdProviderPattern > r = new java.util.ArrayList < com.google.gerrit.server.auth.openid.OpenIdProviderPattern > ( ) ; for ( java.lang.String pattern : s ) { r.add ( com.google.gerrit.server.auth.openid.OpenIdProviderPattern.create ( pattern ) ) ; } return java.util.Collections.unmodifiableList ( r ) ; }
Source:
protected void onMovePointerTo ( java.lang.String projectName ) { if ( ( ! ( projectsPopup.isPopingUp ( ) ) ) || ( "" . equals ( sugestParent.getText ( ) ) ) ) { sugestParent.setText ( projectName ) ; } }

Target:
protected void onMovePointerTo ( java.lang.String projectName ) { if ( ( ! ( projectsPopup.isPoppingUp ( ) ) ) || ( "" . equals ( sugestParent.getText ( ) ) ) ) { sugestParent.setText ( projectName ) ; } }
Source:
public void onSuccess ( com.google.gerrit.client.groups.GroupList result ) { cb.onSuccess ( ( ! ( result.asList ( ) . isEmpty ( ) ) ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.groups.GroupMap result ) { cb.onSuccess ( ( ! ( result.isEmpty ( ) ) ) ) ; }
Source:
void populateDownloadCommandLinks ( com.google.gerrit.client.config.DownloadInfo.DownloadSchemeInfo schemeInfo ) { commands.clear ( ) ; for ( com.google.gerrit.client.config.DownloadInfo.DownloadCommandInfo cmd : getCommands ( schemeInfo ) ) { commands.add ( new com.google.gerrit.client.download.DownloadCommandLink ( copyLabel , cmd ) ) ; } commands.select ( ) ; }

Target:
void populateDownloadCommandLinks ( com.google.gerrit.client.info.DownloadInfo.DownloadSchemeInfo schemeInfo ) { commands.clear ( ) ; for ( com.google.gerrit.client.info.DownloadInfo.DownloadCommandInfo cmd : getCommands ( schemeInfo ) ) { commands.add ( new com.google.gerrit.client.download.DownloadCommandLink ( copyLabel , cmd ) ) ; } commands.select ( ) ; }
Source:
public void run ( ) { int v = prefs.tabSize ( ) ; view.getCmFromSide ( DisplaySide.A ) . setOption ( "tabSize" , v ) ; view.getCmFromSide ( DisplaySide.B ) . setOption ( "tabSize" , v ) ; }

Target:
public void run ( ) { int v = prefs.tabSize ( ) ; for ( net.codemirror.lib.CodeMirror cm : view.getCms ( ) ) { cm.setOption ( "tabSize" , v ) ; } }
Source:
private void createHeaderLogo ( ) { final com.google.gwt.user.client.ui.FlowPanel headerLogo = new com.google.gwt.user.client.ui.FlowPanel ( ) ; headerLogo.setStyleName ( "gerrit-OpenID-logobox" ) ; headerLogo.add ( icons.openidLogo ( ) . createImage ( ) ) ; formBody.add ( headerLogo ) ; }

Target:
private void createHeaderLogo ( ) { final com.google.gwt.user.client.ui.FlowPanel headerLogo = new com.google.gwt.user.client.ui.FlowPanel ( ) ; headerLogo.setStyleName ( "gerrit-OpenID-logobox" ) ; headerLogo.add ( new com.google.gwt.user.client.ui.Image ( icons.openidLogo ( ) ) ) ; formBody.add ( headerLogo ) ; }
Source:
public void onFailure ( final java.lang.Throwable caught ) { enableUI ( true ) ; if ( InvalidUserNameException.MESSAGE.equals ( caught.getMessage ( ) ) ) { invalidUserName ( ) ; } else { super . onFailure ( caught ) ; } }

Target:
public void onFailure ( final java.lang.Throwable caught ) { enableUI ( true ) ; if ( caught instanceof com.google.gerrit.common.errors.InvalidUserNameException ) { new com.google.gerrit.client.ErrorDialog ( Util.C.invalidUserName ( ) ) . center ( ) ; } else { super . onFailure ( caught ) ; } }
Source:
public void completeRewriteIncludesNewline ( ) throws java.lang.Exception { java.lang.String a = "abc1\n" ; java.lang.String b = "def2\n" ; com.google.common.truth.Truth.assertThat ( com.google.gerrit.server.patch.IntraLineLoaderTest.intraline ( a , b ) ) . isEqualTo ( com.google.gerrit.server.patch.IntraLineLoaderTest.wordEdit ( 0 , 5 , 0 , 5 ) ) ; }

Target:
public void completeRewriteIncludesNewline ( ) throws java.lang.Exception { java.lang.String a = "abc1\n" ; java.lang.String b = "def2\n" ; com.google.common.truth.Truth.assertThat ( com.google.gerrit.server.patch.IntraLineLoaderTest.intraline ( a , b ) ) . isEqualTo ( com.google.gerrit.server.patch.IntraLineLoaderTest.ref ( ) . replace ( "abc1\n" , "def2\n" ) . edits ) ; }
Source:
public java.lang.String toString ( ) { return ( ( state ( ) ) + "," ) + ( account ( ) ) ; }

Target:
private static void diffReviewers ( java.util.List < java.lang.String > diffs , com.google.gerrit.server.notedb.ChangeBundle bundleA , com.google.gerrit.server.notedb.ChangeBundle bundleB ) { com.google.gerrit.server.notedb.ChangeBundle.diffSets ( diffs , bundleA.reviewers.all ( ) , bundleB.reviewers.all ( ) , "reviewer" ) ; }
Source:
public java.util.List < java.lang.String > getTeamNamesForRepositoryRole ( java.lang.String role ) { return null ; }

Target:
public boolean setUsernamesForRepositoryRole ( java.lang.String role , java.util.List < java.lang.String > usernames ) { return false ; }
Source:
public void listNonEmptyGroupIncludes ( ) throws java.lang.Exception { group ( "gx" , "Administrators" ) ; group ( "gy" , "Administrators" ) ; PUT ( "/groups/Administrators/groups/gx" ) ; PUT ( "/groups/Administrators/groups/gy" ) ; assertIncludes ( GET ( "/groups/Administrators/groups/" ) , "gx" , "gy" ) ; }

Target:
public void listNonExistingGroupIncludes_NotFound ( ) throws java.lang.Exception { java.lang.String name = name ( "non-existing" ) ; com.google.common.truth.Truth.assertThat ( adminSession.get ( ( ( "/groups/" + name ) + "/groups/" ) ) . getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_NOT_FOUND ) ; }
Source:
public static java.lang.String toPublish ( com.google.gerrit.reviewdb.client.PatchSet.Id ps ) { com.google.gerrit.reviewdb.client.Change.Id c = ps.getParentKey ( ) ; return ( ( ( "/c/" + c ) + "/" ) + ( ps.get ( ) ) ) + ",publish" ; }

Target:
public static java.lang.String toEditScreen ( com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName ) { return com.google.gerrit.client.Dispatcher.toPatch ( "edit" , null , revision , fileName , null , 0 ) ; }
Source:
public final native net.codemirror.lib.CodeMirror.LineHandle activeLine ( ) ;

Target:
public static net.codemirror.lib.CodeMirror create ( com.google.gwt.dom.client.Element p , net.codemirror.lib.Configuration cfg ) { net.codemirror.lib.CodeMirror cm = net.codemirror.lib.CodeMirror.newCM ( p , cfg ) ; net.codemirror.lib.Extras.attach ( cm ) ; return cm ; }
Source:
public void setAccessKey ( char key ) { suggestBox.setAccessKey ( key ) ; }

Target:
public void setVisibleLength ( int len ) { suggestBox.setVisibleLength ( len ) ; }
Source:
private static com.google.gerrit.server.account.AccountState newState ( com.google.gerrit.reviewdb.client.Account account ) { return new com.google.gerrit.server.account.AccountState ( new com.google.gerrit.server.config.AllUsersName ( com.google.gerrit.server.config.AllUsersNameProvider.DEFAULT ) , account , com.google.common.collect.ImmutableSet.of ( ) , new java.util.HashMap < > ( ) , com.google.gerrit.extensions.client.GeneralPreferencesInfo.defaults ( ) ) ; }

Target:
private static com.google.gerrit.server.account.AccountState newState ( com.google.gerrit.reviewdb.client.Account account ) { return new com.google.gerrit.server.account.AccountState ( new com.google.gerrit.server.config.AllUsersName ( com.google.gerrit.server.config.AllUsersNameProvider.DEFAULT ) , account , com.google.common.collect.ImmutableSet.of ( ) , com.google.common.collect.ImmutableMap.of ( ) , com.google.gerrit.extensions.client.GeneralPreferencesInfo.defaults ( ) ) ; }
Source:
com.google.gerrit.server.project.ChangeControl controlFor ( com.google.gerrit.server.notedb.ChangeNotes notes ) { return changeControlFactory.create ( controlForRef ( notes.getChange ( ) . getDest ( ) ) , notes ) ; }

Target:
com.google.gerrit.server.permissions.ChangeControl controlFor ( com.google.gerrit.server.notedb.ChangeNotes notes ) { return changeControlFactory.create ( controlForRef ( notes.getChange ( ) . getDest ( ) ) , notes ) ; }
Source:
public com.google.gerrit.extensions.common.ChangeInfo get ( ) throws com.google.gerrit.extensions.restapi.RestApiException { return get ( java.util.EnumSet.allOf ( com.google.gerrit.extensions.common.ListChangesOption.class ) ) ; }

Target:
public com.google.gerrit.server.api.changes.SuggestedReviewersRequest suggestReviewers ( java.lang.String query ) throws com.google.gerrit.extensions.restapi.RestApiException { return suggestReviewers ( ) . withQuery ( query ) ; }
Source:
public com.google.gerrit.server.util.ManualRequestContext openAs ( com.google.gerrit.reviewdb.client.Account.Id userId ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.server.util.ManualRequestContext ( identifiedUserFactory.create ( userId ) , schemaFactory , requestContext ) ; }

Target:
public com.vmware.gerrit.owners.common.Gerrit214ManualRequestContext openAs ( com.google.gerrit.reviewdb.client.Account.Id userId ) throws com.google.gwtorm.server.OrmException { return new com.vmware.gerrit.owners.common.Gerrit214ManualRequestContext ( identifiedUserFactory.create ( userId ) , schemaFactory , requestContext ) ; }
Source:
com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > rewrite ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in ) throws com.google.gerrit.server.query.QueryParseException ;

Target:
com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > rewrite ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in , int start ) throws com.google.gerrit.server.query.QueryParseException ;
Source:
public com.google.gerrit.server.notedb.ChangeNotes create ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Change change ) { return new com.google.gerrit.server.notedb.ChangeNotes ( db , repoManager , migration , allUsersProvider , change ) ; }

Target:
public com.google.gerrit.server.notedb.ChangeNotes createForNew ( com.google.gerrit.reviewdb.client.Change change ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.server.notedb.ChangeNotes ( repoManager , migration , allUsersProvider , change.getProject ( ) , change ) . load ( ) ; }
Source:
private final native com.google.gwt.core.client.JavaScriptObject detailed_labels0 ( ) ;

Target:
private final native com.google.gerrit.client.rpc.NativeMap < com.google.gwt.core.client.JavaScriptObject > _permitted_labels ( ) ;
Source:
private static java.lang.String findId ( final java.util.Collection < com.google.gerrit.reviewdb.client.AccountExternalId > ids ) { for ( final com.google.gerrit.reviewdb.client.AccountExternalId i : ids ) { if ( i.isScheme ( AccountExternalId.SCHEME_GERRIT ) ) { return i.getSchemeRest ( ) ; } } return null ; }

Target:
private static java.lang.String findId ( java.util.Collection < com.google.gerrit.server.account.ExternalId > extIds ) { for ( com.google.gerrit.server.account.ExternalId extId : extIds ) { if ( extId.isScheme ( com.google.gerrit.server.account.ExternalId.SCHEME_GERRIT ) ) { return extId.key ( ) . id ( ) ; } } return null ; }
Source:
public static void clearHttpPassword ( java.lang.String account , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.VoidResult > cb ) { new com.google.gerrit.client.rpc.RestApi ( "/accounts/" ) . id ( account ) . view ( "password.http" ) . delete ( cb ) ; }

Target:
public static void clearHttpPassword ( java.lang.String account , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.VoidResult > cb ) { com.google.gerrit.client.account.AccountApi.accounts ( ) . id ( account ) . view ( "password.http" ) . delete ( cb ) ; }