auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected boolean onSave ( org.eclipse.jgit.lib.CommitBuilder commit ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { if ( com.google.common.base.Strings.isNullOrEmpty ( commit.getMessage ( ) ) ) { commit.setMessage ( "Update default preferences\n" ) ; } saveConfig ( com.google.gerrit.server.account.PreferencesConfig.PREFERENCES_CONFIG , cfg ) ; return true ; }

Target:
protected boolean onSave ( org.eclipse.jgit.lib.CommitBuilder commit ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { if ( com.google.common.base.Strings.isNullOrEmpty ( commit.getMessage ( ) ) ) { commit.setMessage ( "Update default preferences\n" ) ; } saveConfig ( com.google.gerrit.server.account.Preferences.PREFERENCES_CONFIG , cfg ) ; return true ; }
Source:
protected com.google.gerrit.extensions.api.changes.RevisionApi revision ( com.google.gerrit.acceptance.PushOneCommit.Result r ) throws java.lang.Exception { return gApi.changes ( ) . id ( r.getChangeId ( ) ) . current ( ) ; }

Target:
public boolean apply ( java.lang.String file ) { return file.matches ( ( ( ( com.google.gerrit.acceptance.PushOneCommit.FILE_NAME ) + '|' ) + ( com.google.gerrit.reviewdb.client.Patch.COMMIT_MSG ) ) ) ; }
Source:
public com.google.gwtorm.server.ResultSet < com.google.gerrit.reviewdb.client.ChangeMessage > byPatchSet ( com.google.gerrit.reviewdb.client.PatchSet.Id id ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.server.schema.DisabledChangesReviewDbWrapper.MSG ) ; }

Target:
public com.google.gwtorm.server.ResultSet < com.google.gerrit.reviewdb.client.ChangeMessage > byPatchSet ( com.google.gerrit.reviewdb.client.PatchSet.Id id ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.reviewdb.server.DisabledChangesReviewDbWrapper.MSG ) ; }
Source:
public void testContinueFromAfterNewline ( ) { com.google.gerrit.client.diff.CodeMirrorDemo.EditIterator iter = new com.google.gerrit.client.diff.CodeMirrorDemo.EditIterator ( lines , 0 ) ; iter.advance ( 4 ) ; assertLineChsEqual ( net.codemirror.lib.LineCharacter.create ( 2 , 2 ) , iter.advance ( 6 ) ) ; }

Target:
public void testContinueFromAfterNewline ( ) { com.google.gerrit.client.diff.SideBySide2.EditIterator iter = new com.google.gerrit.client.diff.SideBySide2.EditIterator ( lines , 0 ) ; iter.advance ( 4 ) ; assertLineChsEqual ( net.codemirror.lib.LineCharacter.create ( 2 , 2 ) , iter.advance ( 6 ) ) ; }
Source:
public static synchronized org.apache.mina.core.service.IoAcceptor getIoAcceptor ( ) { return ( com.google.gerrit.server.ssh.GerritSshDaemon.sshd ) != null ? com.google.gerrit.server.ssh.GerritSshDaemon.sshd.acceptor : null ; }

Target:
public java.util.Collection < java.security.PublicKey > getHostKeys ( ) { return hostKeys ; }
Source:
public void onSuccess ( final java.util.List < com.google.gerrit.reviewdb.AccountExternalId > result ) { identites.display ( result ) ; display ( ) ; }

Target:
public void preDisplay ( final java.util.List < com.google.gerrit.reviewdb.AccountExternalId > result ) { identites.display ( result ) ; }
Source:
private static java.lang.String keyIdToString ( long keyId ) { return java.lang.Integer.toHexString ( ( ( int ) ( keyId ) ) ) . toUpperCase ( ) ; }

Target:
static java.lang.String keyIdToString ( long keyId ) { return java.lang.String.format ( "%08X" , ( ( int ) ( keyId ) ) ) ; }
Source:
public void onProjectDeleted ( com.google.gerrit.extensions.events.ProjectDeletedListener.Event event ) { for ( org.eclipse.jgit.transport.URIish uri : getURIs ( new com.google.gerrit.reviewdb.client.Project.NameKey ( event.getProjectName ( ) ) , true ) ) { deleteProject ( uri ) ; } }

Target:
public void onProjectDeleted ( com.google.gerrit.extensions.events.ProjectDeletedListener.Event event ) { for ( org.eclipse.jgit.transport.URIish uri : getURIs ( new com.google.gerrit.reviewdb.client.Project.NameKey ( event.getProjectName ( ) ) , FilterType.PROJECT_DELETION ) ) { deleteProject ( uri ) ; } }
Source:
com.google.gerrit.extensions.client.ChangeKind getChangeKind ( com.google.gerrit.reviewdb.client.Project.NameKey project , @ com.google.gerrit.common.Nullable org.eclipse.jgit.lib.Repository repo , @ com.google.gerrit.common.Nullable org.eclipse.jgit.revwalk.RevWalk rw , org.eclipse.jgit.lib.ObjectId prior , org.eclipse.jgit.lib.ObjectId next ) ;

Target:
com.google.gerrit.extensions.client.ChangeKind getChangeKind ( com.google.gerrit.reviewdb.client.Project.NameKey project , @ com.google.gerrit.common.Nullable org.eclipse.jgit.revwalk.RevWalk rw , @ com.google.gerrit.common.Nullable org.eclipse.jgit.lib.Config repoConfig , org.eclipse.jgit.lib.ObjectId prior , org.eclipse.jgit.lib.ObjectId next ) ;
Source:
public void onSuccess ( com.google.gerrit.client.groups.GroupInfo result ) { cb.onSuccess ( com.google.gerrit.client.rpc.NativeList.of ( result ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.groups.GroupInfo result ) { cb.onSuccess ( com.google.gerrit.client.rpc.Natives.arrayOf ( result ) ) ; }
Source:
public static void all ( com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.plugins.PluginMap > callback ) { new com.google.gerrit.client.rpc.RestApi ( "plugins" ) . addParameterTrue ( "all" ) . get ( com.google.gerrit.client.rpc.NativeMap.copyKeysIntoChildren ( callback ) ) ; }

Target:
public static void all ( com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.plugins.PluginMap > callback ) { new com.google.gerrit.client.rpc.RestApi ( "/plugins/" ) . addParameterTrue ( "all" ) . get ( com.google.gerrit.client.rpc.NativeMap.copyKeysIntoChildren ( callback ) ) ; }
Source:
public void load ( org.eclipse.jgit.lib.Repository git ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { com.google.common.base.Preconditions.checkState ( ( ( this . git ) == null ) ) ; this . git = git ; super . load ( git ) ; }

Target:
protected void onLoad ( ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { org.eclipse.jgit.lib.Config cfg = readConfig ( com.google.gerrit.server.account.WatchConfig.WATCH_CONFIG ) ; projectWatches = com.google.gerrit.server.account.WatchConfig.parse ( accountId , cfg , this ) ; }
Source:
public List < com.googlesource.gerrit.plugins.manager.MenuEntry > getEntries ( ) { if ( ( com.googlesource.gerrit.plugins.manager.loader.isRemoteAdminEnabled ( ) ) && ( com.googlesource.gerrit.plugins.manager.config.canAdministerPlugins ( ) ) ) { return com.googlesource.gerrit.plugins.manager.menuEntries ; } return java.util.Collections.emptyList ( ) ; }

Target:
public java.util.List < com.googlesource.gerrit.plugins.manager.MenuEntry > getEntries ( ) { if ( ( loader.isRemoteAdminEnabled ( ) ) && ( config.canAdministerPlugins ( ) ) ) { return menuEntries ; } return java.util.Collections.emptyList ( ) ; }
Source:
public boolean canConnect ( org.apache.sshd.common.SshdSocketAddress address , org.apache.sshd.common.Session session ) { return false ; }

Target:
public boolean canConnect ( com.google.gerrit.sshd.Type type , org.apache.sshd.common.SshdSocketAddress address , org.apache.sshd.common.session.Session session ) { return false ; }
Source:
void groupDetail ( com.google.gerrit.reviewdb.AccountGroup.Id groupId , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.GroupDetail > callback ) ;

Target:
void groupDetail ( com.google.gerrit.reviewdb.AccountGroup.Id groupId , com.google.gerrit.reviewdb.AccountGroup.UUID uuid , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.GroupDetail > callback ) ;
Source:
public java.lang.String getName ( ) { return null ; }

Target:
public java.lang.String getText ( ) { return null ; }
Source:
public < T extends com.google.gwt.core.client.JavaScriptObject > void put ( com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { send ( com.google.gwt.http.client.RequestBuilder.PUT , cb ) ; }

Target:
public < T extends com.google.gwt.core.client.JavaScriptObject > void post ( java.lang.String content , com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { post ( content , com.google.gerrit.client.rpc.RestApi.wrap ( cb ) ) ; }
Source:
private void assertCanAccess ( com.google.gerrit.server.project.ProjectControl u ) { boolean access = u.asForProject ( ) . testOrFalse ( ProjectPermission.ACCESS ) ; com.google.common.truth.Truth.assertThat ( access ) . named ( "can access" ) . isTrue ( ) ; }

Target:
private void assertCanAccess ( com.google.gerrit.server.permissions.ProjectControl u ) { boolean access = u.asForProject ( ) . testOrFalse ( ProjectPermission.ACCESS ) ; com.google.common.truth.Truth.assertThat ( access ) . named ( "can access" ) . isTrue ( ) ; }
Source:
protected java.net.SocketAddress getRemoteAddress ( ) { return session.getAttribute ( SshUtil.REMOTE_PEER ) ; }

Target:
protected java.net.SocketAddress getRemoteAddress ( ) { return remoteAddress ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) { onReply ( null ) ; } else { com.google.gerrit.client.Gerrit.doSignIn ( getToken ( ) ) ; } }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { gotoSibling ( 1 ) ; }
Source:
public void execute ( ) { if ( ( cmA ) != null ) { cmA.setOption ( "viewportMargin" , 10 ) ; } if ( ( cmB ) != null ) { cmB.setOption ( "viewportMargin" , 10 ) ; } }

Target:
public void run ( ) { fixScroll ( cmB ) ; }
Source:
public java.lang.String getLocalUser ( ) { if ( getExternalId ( ) . startsWith ( com.google.gerrit.client.reviewdb.AccountExternalId.SCHEME_GERRIT ) ) { return getExternalId ( ) . substring ( com.google.gerrit.client.reviewdb.AccountExternalId.SCHEME_GERRIT.length ( ) ) ; } return null ; }

Target:
public java.lang.String getLocalUser ( ) { if ( isScheme ( com.google.gerrit.client.reviewdb.AccountExternalId.SCHEME_GERRIT ) ) { return getExternalId ( ) . substring ( com.google.gerrit.client.reviewdb.AccountExternalId.SCHEME_GERRIT.length ( ) ) ; } return null ; }
Source:
public static java.lang.String refsDraftComments ( com.google.gerrit.reviewdb.client.Account.Id accountId , com.google.gerrit.reviewdb.client.Change.Id changeId ) { java.lang.StringBuilder r = com.google.gerrit.reviewdb.client.RefNames.buildRefsPrefix ( com.google.gerrit.reviewdb.client.RefNames.REFS_DRAFT_COMMENTS , accountId.get ( ) ) ; r.append ( changeId.get ( ) ) ; return r.toString ( ) ; }

Target:
public static java.lang.String refsDraftCommentsPrefix ( com.google.gerrit.reviewdb.client.Change.Id changeId ) { return com.google.gerrit.reviewdb.client.RefNames.buildRefsPrefix ( com.google.gerrit.reviewdb.client.RefNames.REFS_DRAFT_COMMENTS , changeId.get ( ) ) . toString ( ) ; }
Source:
private AccountGroup.UUID toUUID ( com.google.gerrit.reviewdb.AccountGroup.Id id ) { return groupMap.get ( id ) . getGroupUUID ( ) ; }

Target:
private AccountGroup.UUID toUUID ( com.google.gerrit.reviewdb.AccountGroup.Id id ) { return groupMap.get ( id ) . getUUID ( ) ; }
Source:
core ( ) { }

Target:
protected < K , V > com.google.gerrit.server.cache.UnnamedCacheBinding < K , V > core ( final com.google.inject.TypeLiteral < com.google.gerrit.server.cache.Cache < K , V > > type ) { return core ( com.google.inject.Key.get ( type ) , type ) ; }
Source:
public void updateComment ( com.google.gerrit.reviewdb.client.PatchLineComment comment ) throws com.google.gwtorm.server.OrmException { if ( ( comment.getStatus ( ) ) == ( com.google.gerrit.reviewdb.client.PatchLineComment.Status.DRAFT ) ) { updateDraftComment ( comment ) ; } else { deleteDraftCommentIfPresent ( comment ) ; updatePublishedComment ( comment ) ; } }

Target:
public void upsertComment ( com.google.gerrit.reviewdb.client.PatchLineComment comment ) throws com.google.gwtorm.server.OrmException { if ( ( comment.getStatus ( ) ) == ( PatchLineComment.Status.DRAFT ) ) { upsertDraftComment ( comment ) ; } else { deleteDraftCommentIfPresent ( comment ) ; upsertPublishedComment ( comment ) ; } }
Source:
com.google.gwtorm.client.ResultSet < com.google.gerrit.reviewdb.PatchLineComment > published ( com.google.gerrit.reviewdb.Change.Id id , java.lang.String file ) throws com.google.gwtorm.client.OrmException ;

Target:
com.google.gwtorm.client.ResultSet < com.google.gerrit.reviewdb.PatchLineComment > publishedByChangeFile ( com.google.gerrit.reviewdb.Change.Id id , java.lang.String file ) throws com.google.gwtorm.client.OrmException ;
Source:
public void printTree ( final com.google.gerrit.sshd.commands.TreeFormatter.TreeNode rootNode ) { printTree ( rootNode , 0 , true ) ; }

Target:
public void printTree ( final com.google.gerrit.server.util.TreeFormatter.TreeNode rootNode ) { printTree ( rootNode , 0 , true ) ; }
Source:
public boolean supportsRoleChanges ( com.gitblit.models.TeamModel team , com.gitblit.Constants.Role role ) { return false ; }

Target:
public boolean setTeamnamesForRepositoryRole ( java.lang.String role , java.util.List < java.lang.String > teamnames ) { return false ; }
Source:
com.google.gerrit.extensions.restapi.Response < com.google.gerrit.extensions.common.ChangeInfo > apply ( com.google.gerrit.server.change.RevisionResource rsrc ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.extensions.restapi.Response.withMustRevalidate ( json.format ( rsrc ) ) ; }

Target:
public com.google.gerrit.extensions.restapi.Response < com.google.gerrit.extensions.common.ChangeInfo > apply ( com.google.gerrit.server.change.ChangeResource rsrc ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.extensions.restapi.Response.withMustRevalidate ( json.create ( options ) . format ( rsrc ) ) ; }
Source:
protected void configure ( ) { com.google.gerrit.extensions.registration.DynamicSet.bind ( binder ( ) , com.google.gerrit.extensions.events.GitReferenceUpdatedListener.class ) . to ( com.googlesource.gerrit.plugins.reviewersbyblame.RefUpdateListener.class ) ; factory ( ReviewersByBlame.Factory.class ) ; }

Target:
protected void configure ( ) { com.google.gerrit.extensions.registration.DynamicSet.bind ( binder ( ) , com.google.gerrit.common.ChangeListener.class ) . to ( com.googlesource.gerrit.plugins.reviewersbyblame.ChangeUpdatedListener.class ) ; factory ( ReviewersByBlame.Factory.class ) ; }
Source:
public void evictAfterRename ( final com.google.gerrit.reviewdb.AccountGroup.NameKey oldName ) { byName.remove ( oldName ) ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > evictAfterRenameAsync ( com.google.gerrit.reviewdb.AccountGroup.NameKey name ) { return byName.removeAsync ( name ) ; }
Source:
public void checkPassword ( java.lang.String pwd ) throws com.google.gerrit.server.auth.AuthException { if ( ! ( com.google.common.base.Objects.equal ( getPassword ( ) , pwd ) ) ) { throw new com.google.gerrit.server.auth.InvalidCredentialsException ( ) ; } }

Target:
public void checkPassword ( java.lang.String pwd ) throws com.google.gerrit.server.auth.AuthException { if ( ! ( java.util.Objects.equals ( getPassword ( ) , pwd ) ) ) { throw new com.google.gerrit.server.auth.InvalidCredentialsException ( ) ; } }
Source:
public void onSuccess ( com.google.gerrit.client.diff.DiffInfo diffInfo ) { diffLinks = diffInfo.web_links ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.diff.DiffInfo diffInfo ) { diffLinks = diffInfo.webLinks ( ) ; }
Source:
public void run ( ) { fixScroll ( cmA ) ; }

Target:
public void run ( ) { fixScroll ( cmB ) ; }
Source:
public void setTopic ( final java.lang.String topic ) { this . topic = topic ; }

Target:
public void setTopic ( final java.lang.String topic ) { this . topic = topic.trim ( ) ; }
Source:
protected void configure ( ) { post ( com.google.gerrit.server.change.RevisionResource.REVISION_KIND , Config.PLUGIN_NAME ) . to ( com.googlesource.gerrit.plugins.findowners.Action.class ) ; }

Target:
protected void configure ( ) { get ( com.google.gerrit.server.change.ChangeResource.CHANGE_KIND , "owners" ) . to ( com.googlesource.gerrit.plugins.findowners.GetOwners.class ) ; get ( com.google.gerrit.server.change.RevisionResource.REVISION_KIND , Config.PLUGIN_NAME ) . to ( com.googlesource.gerrit.plugins.findowners.Action.class ) ; }
Source:
public static java.util.Map < java.lang.String , org.eclipse.jgit.lib.Config > againstPreviousIndexVersion ( ) { java.util.List < java.lang.Integer > schemaVersions = com.google.gerrit.testing.IndexVersions.getWithoutLatest ( ChangeSchemaDefinitions.INSTANCE ) ; return com.google.gerrit.testing.IndexVersions.asConfigMap ( ChangeSchemaDefinitions.INSTANCE , schemaVersions , "againstIndexVersion" , defaultConfig ( ) ) ; }

Target:
public static java.util.Map < java.lang.String , org.eclipse.jgit.lib.Config > againstPreviousIndexVersion ( ) { java.util.List < java.lang.Integer > schemaVersions = com.google.gerrit.testing.IndexVersions.getWithoutLatest ( ChangeSchemaDefinitions.INSTANCE ) ; return com.google.gerrit.testing.IndexVersions.asConfigMap ( ChangeSchemaDefinitions.INSTANCE , schemaVersions , "againstIndexVersion" , com.google.gerrit.server.query.change.LuceneQueryChangesTest.defaultConfig ( ) ) ; }
Source:
public boolean isOwnerAnyRef ( ) { return ( canPerformOnAnyRef ( ApprovalCategory.OWN , ( ( short ) ( 1 ) ) ) ) || ( getCurrentUser ( ) . isAdministrator ( ) ) ; }

Target:
public boolean isOwnerAnyRef ( ) { return ( canPerformOnAnyRef ( Permission.OWNER ) ) || ( getCurrentUser ( ) . isAdministrator ( ) ) ; }
Source:
java.lang.String getMessage ( ) { return message.getText ( ) . trim ( ) ; }

Target:
void quickApprove ( com.google.gerrit.client.changes.ReviewInput quickApproveInput ) { in.mergeLabels ( quickApproveInput ) ; postReview ( ) ; }
Source:
public void run ( ) { if ( cm.vim ( ) . hasSearchHighlight ( ) ) { cm.vim ( ) . handleKey ( "n" ) ; } else { getCommentManager ( ) . commentNav ( cm , Direction.NEXT ) . run ( ) ; } }

Target:
public void run ( ) { if ( cm.vim ( ) . hasSearchHighlight ( ) ) { cm.vim ( ) . handleKey ( "n" ) ; } else { getChunkManager ( ) . diffChunkNav ( cm , Direction.NEXT ) . run ( ) ; } }
Source:
public void zeroStartLineResultsInInvalidRange ( ) { com.google.gerrit.extensions.client.Comment.Range range = createRange ( 0 , 2 , 19 , 10 ) ; com.google.gerrit.extensions.client.testing.RangeSubject.assertThat ( range ) . isInvalid ( ) ; }

Target:
public void zeroStartLineResultsInInvalidRange ( ) { com.google.gerrit.extensions.client.Comment.Range range = createRange ( 0 , 2 , 19 , 10 ) ; com.google.gerrit.extensions.common.testing.RangeSubject.assertThat ( range ) . isInvalid ( ) ; }
Source:
public WorkQueue.Executor createMergeabilityChecksExecutor ( @ com.google.gerrit.server.config.GerritServerConfig org.eclipse.jgit.lib.Config config , com.google.gerrit.server.git.WorkQueue queues ) { int poolSize = config.getInt ( "changeMerge" , null , "threadPoolSize" , 1 ) ; return queues.createQueue ( poolSize , "MergeabilityChecks" ) ; }

Target:
public WorkQueue.Executor createMergeabilityChecksExecutor ( @ com.google.gerrit.server.config.GerritServerConfig org.eclipse.jgit.lib.Config config , com.google.gerrit.server.git.WorkQueue queues ) { int poolSize = config.getInt ( "changeMerge" , null , "threadPoolSize" , 1 ) ; return queues.createQueue ( poolSize , "MergeabilityChecks-Background" ) ; }
Source:
void downloadOptional ( ) { this . required = false ; download ( ) ; }

Target:
void downloadRequired ( ) { setRequired ( true ) ; download ( ) ; }
Source:
private static < K , V > com.github.benmanes.caffeine.cache.Caffeine < K , V > newCacheBuilder ( ) { return ( ( com.github.benmanes.caffeine.cache.Caffeine < K , V > ) ( com.github.benmanes.caffeine.cache.Caffeine.newBuilder ( ) ) ) ; }

Target:
private static < K , V > com.google.common.cache.CacheBuilder < K , V > newCacheBuilder ( ) { return ( ( com.google.common.cache.CacheBuilder < K , V > ) ( com.google.common.cache.CacheBuilder.newBuilder ( ) ) ) ; }
Source:
protected void setDateText ( java.lang.String dateText ) { header.setDateText ( dateText ) ; }

Target:
protected void setDate ( java.sql.Timestamp when ) { header.setDate ( when ) ; }
Source:
public static com.google.gerrit.server.account.VersionedAccountPreferences forDefault ( ) { return new com.google.gerrit.server.account.VersionedAccountPreferences ( com.google.gerrit.server.account.VersionedAccountPreferences.REFS_USER_DEFAULT ) ; }

Target:
public static com.google.gerrit.server.account.VersionedAccountPreferences forDefault ( ) { return new com.google.gerrit.server.account.VersionedAccountPreferences ( com.google.gerrit.reviewdb.client.RefNames.REFS_USER_DEFAULT ) ; }
Source:
public boolean apply ( java.io.File file ) { return ! ( file.getName ( ) . endsWith ( ".disabled" ) ) ; }

Target:
public boolean apply ( java.nio.file.Path p ) { return ! ( p.getFileName ( ) . toString ( ) . endsWith ( ".disabled" ) ) ; }
Source:
void onReplaceByKeys ( org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.reviewdb.client.Account.Id accountId , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId.Key > toRemove , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toAdd ) throws java.io.IOException ;

Target:
void onReplace ( org.eclipse.jgit.lib.ObjectId oldNotesRev , org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.reviewdb.client.Account.Id accountId , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toRemove , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toAdd ) throws java.io.IOException ;
Source:
void addLabel ( final java.lang.String token ) { com.google.gerrit.server.util.LabelVote v = com.google.gerrit.server.util.LabelVote.parse ( token ) ; com.google.gerrit.common.data.LabelType.checkName ( v.getLabel ( ) ) ; customLabels.put ( v.getLabel ( ) , v.getValue ( ) ) ; }

Target:
void addLabel ( final java.lang.String token ) { com.google.gerrit.server.util.LabelVote v = com.google.gerrit.server.util.LabelVote.parseWithEquals ( token ) ; com.google.gerrit.common.data.LabelType.checkName ( v.getLabel ( ) ) ; customLabels.put ( v.getLabel ( ) , v.getValue ( ) ) ; }
Source:
public void markReady ( boolean ready ) throws java.io.IOException { com.google.gerrit.lucene.AbstractLuceneIndex.setReady ( sitePaths , indexName , schema.getVersion ( ) , ready ) ; }

Target:
public void markReady ( boolean ready ) throws java.io.IOException { com.google.gerrit.index.IndexUtils.setReady ( sitePaths , indexName , schema.getVersion ( ) , ready ) ; }
Source:
public static com.google.gerrit.server.patch.ComparisonType againstParent ( int parentNum ) { return new com.google.gerrit.server.patch.ComparisonType ( parentNum , false ) ; }

Target:
public static com.google.gerrit.server.diff.ComparisonType againstParent ( int parentNum ) { return new com.google.gerrit.server.diff.ComparisonType ( parentNum , false ) ; }
Source:
public void addChangeListener ( com.google.gerrit.common.ChangeListener listener , com.google.gerrit.server.CurrentUser user ) { listeners.put ( listener , new com.google.gerrit.common.ChangeHookRunner.ChangeListenerHolder ( listener , user ) ) ; }

Target:
public void addEventListener ( com.google.gerrit.common.EventListener listener , com.google.gerrit.server.CurrentUser user ) { listeners.put ( listener , new com.google.gerrit.common.ChangeHookRunner.EventListenerHolder ( listener , user ) ) ; }
Source:
public java.lang.Object getParameter ( java.lang.String name ) { java.lang.String value = config.getString ( RTCItsFacade.ITS_NAME_RTC , null , getParamName ( name ) ) ; return getParameterParser ( name ) . parse ( value ) ; }

Target:
public java.lang.Object getParameter ( java.lang.String name ) { java.lang.String value = config.getString ( pluginName , null , getParamName ( name ) ) ; return getParameterParser ( name ) . parse ( value ) ; }
Source:
public com.google.gerrit.server.index.FieldDef.Builder < T > stored ( ) { this . stored = true ; return this ; }

Target:
public com.google.gerrit.index.FieldDef.Builder < T > stored ( ) { this . stored = true ; return this ; }
Source:
public void backupTimestampRefNameForBranch ( ) throws java.lang.Exception { java.lang.String name = com.googlesource.gerrit.plugins.refprotection.BackupRef.get ( null , "refs/heads/master" ) ; java.lang.String expected_prefix = ( BackupRef.R_BACKUPS ) + "heads/master-" ; com.google.common.truth.Truth.assertThat ( name ) . startsWith ( expected_prefix ) ; }

Target:
public void backupTimestampRefNameForBranch ( ) throws java.lang.Exception { java.lang.String name = com.googlesource.gerrit.plugins.refprotection.BackupRef.getTimestampBranch ( "refs/heads/master" ) ; java.lang.String expected_prefix = ( BackupRef.R_BACKUPS ) + "heads/master-" ; com.google.common.truth.Truth.assertThat ( name ) . startsWith ( expected_prefix ) ; }
Source:
public synchronized com.google.gerrit.server.account.AccountState getOrNull ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { }

Target:
public synchronized com.google.gerrit.server.account.AccountState getOrNull ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { return byId.get ( accountId ) ; }
Source:
private static void configureDefaults ( java.util.Map < java.lang.String , java.util.List < com.google.gerrit.common.data.PermissionRule > > out , com.google.gerrit.common.data.AccessSection section ) { com.google.gerrit.server.account.CapabilityCollection.configureDefault ( out , section , GlobalCapability.QUERY_LIMIT , com.google.gerrit.server.account.CapabilityCollection.anonymous ) ; }

Target:
private void configureDefaults ( java.util.Map < java.lang.String , java.util.List < com.google.gerrit.common.data.PermissionRule > > out , com.google.gerrit.common.data.AccessSection section ) { com.google.gerrit.server.account.CapabilityCollection.configureDefault ( out , section , GlobalCapability.QUERY_LIMIT , systemGroupBackend.getGroup ( SystemGroupBackend.ANONYMOUS_USERS ) ) ; }
Source:
protected void configureServlets ( ) { filter ( "/" ) . through ( com.google.gerrit.httpd.auth.container.HttpsClientSslCertAuthFilter.class ) ; }

Target:
protected void configureServlets ( ) { filter ( "/" ) . through ( com.google.gerrit.httpd.auth.container.HttpsClientSslCertAuthFilter.class ) ; serve ( "/login/*" ) . with ( com.google.gerrit.httpd.auth.container.HttpsClientSslCertLoginServlet.class ) ; }
Source:
public java.util.List < com.googlesource.gerrit.plugins.manager.repository.PluginInfo > availablePlugins ( ) throws java.io.IOException { return repository.list ( com.google.gerrit.common.Version.getVersion ( ) ) ; }

Target:
public java.util.Collection < com.googlesource.gerrit.plugins.manager.repository.PluginInfo > load ( com.googlesource.gerrit.plugins.manager.PluginsCentralLoader.ListKey all ) throws java.lang.Exception { return repository.list ( com.googlesource.gerrit.plugins.manager.PluginsCentralLoader.GERRIT_VERSION ) ; }
Source:
private boolean isNewRef ( com.google.gerrit.server.events.RefUpdatedEvent event ) { return event.refUpdate.oldRev.equals ( org.eclipse.jgit.lib.ObjectId.zeroId ( ) . getName ( ) ) ; }

Target:
private boolean isNewRef ( com.google.gerrit.server.events.RefUpdatedEvent event ) { return event.refUpdate.get ( ) . oldRev.equals ( org.eclipse.jgit.lib.ObjectId.zeroId ( ) . getName ( ) ) ; }
Source:
protected void createCommentEditor ( final int suggestRow , final int column , final int line , final short file ) { createCommentEditor ( suggestRow , column , line , file , null ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { enable ( true ) ; super . onFailure ( caught ) ; }
Source:
private boolean activeForRef ( com.google.gerrit.server.config.PluginConfig config , java.lang.String ref ) { return matchCriteria ( config , "ref" , ref , true ) ; }

Target:
private boolean canSkipRef ( com.google.gerrit.server.config.PluginConfig config , java.lang.String ref ) { return matchCriteria ( config , "skipRef" , ref , true , true ) ; }
Source:
public com.googlesrouce.gerrit.plugins.github.git.GHHook createWebHook ( java.net.URL url ) throws java.io.IOException { return ghRepository.createWebHook ( url ) ; }

Target:
public com.googlesource.gerrit.plugins.github.git.GHHook createWebHook ( java.net.URL url ) throws java.io.IOException { return ghRepository.createWebHook ( url ) ; }
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 ( account , com.google.common.collect.ImmutableSet.< com.google.gerrit.reviewdb.client.AccountGroup.UUID > of ( ) , com.google.common.collect.ImmutableSet.< com.google.gerrit.reviewdb.client.AccountExternalId > of ( ) ) ; }

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 ( account , com.google.common.collect.ImmutableSet.< com.google.gerrit.reviewdb.client.AccountGroup.UUID > of ( ) , com.google.common.collect.ImmutableSet.< com.google.gerrit.reviewdb.client.AccountExternalId > of ( ) , new java.util.HashMap < com.google.gerrit.server.account.WatchConfig.ProjectWatchKey , java.util.Set < com.google.gerrit.reviewdb.client.AccountProjectWatch.NotifyType > > ( ) ) ; }
Source:
public void onError ( com.google.gwt.resources.client.ResourceException e ) { net.codemirror.lib.CodeMirror.error ( e ) ; }

Target:
public static void initLibrary ( com.google.gwt.user.client.rpc.AsyncCallback < java.lang.Void > cb ) { net.codemirror.lib.Loader.initLibrary ( cb ) ; }
Source:
public void rangeOverMultipleLinesWithSmallerEndCharacterIsValid ( ) { com.google.gerrit.extensions.client.Comment.Range range = createRange ( 13 , 31 , 19 , 10 ) ; com.google.gerrit.extensions.client.RangeSubject.assertThat ( range ) . isValid ( ) ; }

Target:
public void rangeOverMultipleLinesWithSmallerEndCharacterIsValid ( ) { com.google.gerrit.extensions.client.Comment.Range range = createRange ( 13 , 31 , 19 , 10 ) ; com.google.gerrit.extensions.client.testing.RangeSubject.assertThat ( range ) . isValid ( ) ; }
Source:
public boolean canExpand ( final java.lang.String user ) { return ( user.indexOf ( ' ' ) ) < 0 ; }

Target:
public boolean canExpand ( final java.lang.String user ) { return ! ( user.contains ( " " ) ) ; }
Source:
private static java.lang.String textFooterForChange ( java.lang.String changeId , java.lang.String timestamp ) { return ( ( ( ( ( ( "Gerrit-Change-Id: " + changeId ) + "\n" ) + "Gerrit-PatchSet: 1\n" ) + "Gerrit-MessageType: comment\n" ) + "Gerrit-Comment-Date: " ) + timestamp ) + "\n" ; }

Target:
private static java.lang.String textFooterForChange ( java.lang.String changeId , java.lang.String timestamp ) { return ( ( ( ( ( ( "Gerrit-Change-Id: " + changeId ) + "\n" ) + "Gerrit-PatchSet: 1\n" ) + "Gerrit-MessageType: comment\n" ) + "Gerrit-Comment-Date: " ) + timestamp ) + " \n" ; }
Source:
public java.lang.String resourcePath ( ) { return "/projects/" + ( getProjectState ( ) . getName ( ) ) ; }

Target:
public java.lang.String resourcePath ( ) { if ( ( resourcePath ) == null ) { resourcePath = "/projects/" + ( getProjectState ( ) . getName ( ) ) ; } return resourcePath ; }
Source:
protected void onClick ( final com.google.gwt.user.client.Event event ) { com.google.gerrit.client.Gerrit.display ( getTargetHistoryToken ( ) , createScreen ( ) ) ; com.google.gwt.user.client.DOM.eventPreventDefault ( event ) ; }

Target:
public void onBrowserEvent ( final com.google.gwt.user.client.Event event ) { if ( ( ( com.google.gwt.user.client.DOM.eventGetType ( event ) ) == ( com.google.gwt.user.client.Event.ONCLICK ) ) && ( com.google.gerrit.client.ui.LinkMenuItem.impl.handleAsClick ( event ) ) ) { com.google.gwt.user.client.DOM.eventPreventDefault ( event ) ; go ( ) ; } }
Source:
static boolean needsTypeParameter ( final com.google.gwt.core.ext.typeinfo.JType ft ) { return ( ( ft.isArray ( ) ) != null ) || ( ( ft.isParameterized ( ) ) != null ) ; }

Target:
static boolean needsTypeParameter ( final com.google.gwt.core.ext.typeinfo.JType ft ) { return ( ( ft.isArray ( ) ) != null ) || ( ( ( ft.isParameterized ( ) ) != null ) && ( com.google.gwtjsonrpc.rebind.SerializerCreator.parameterizedSerializers.containsKey ( ft.getQualifiedSourceName ( ) ) ) ) ; }
Source:
public void addItem ( final com.google.gerrit.client.ui.LinkMenuItem i ) { add ( i ) ; }

Target:
public void addItem ( final com.google.gerrit.client.ui.LinkMenuItem i ) { i.setMenuBar ( this ) ; add ( i ) ; }
Source:
private static com.google.gerrit.server.change.ConsistencyChecker.Result create ( com.google.gerrit.reviewdb.client.Change c , java.util.List < com.google.gerrit.extensions.common.ProblemInfo > problems ) { return new com.google.gerrit.server.change.AutoValue_ConsistencyChecker_Result ( c.getId ( ) , c , problems ) ; }

Target:
private static com.google.gerrit.server.change.ConsistencyChecker.Result create ( com.google.gerrit.server.project.ChangeControl ctl , java.util.List < com.google.gerrit.extensions.common.ProblemInfo > problems ) { return new com.google.gerrit.server.change.AutoValue_ConsistencyChecker_Result ( ctl.getId ( ) , ctl.getChange ( ) , problems ) ; }
Source:
public void listBranches ( final com.google.gerrit.reviewdb.Project.NameKey projectName , final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ListBranchesResult > callback ) { listBranchesFactory.create ( projectName ) . to ( callback ) ; }

Target:
public void listBranches ( final com.google.gerrit.reviewdb.client.Project.NameKey projectName , final com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ListBranchesResult > callback ) { listBranchesFactory.create ( projectName ) . to ( callback ) ; }
Source:
public com.google.gerrit.server.events.TrackingIdAttribute asTrackingIdAttribute ( com.google.gerrit.reviewdb.client.TrackingId id ) { com.google.gerrit.server.events.TrackingIdAttribute a = new com.google.gerrit.server.events.TrackingIdAttribute ( ) ; a.system = id.getSystem ( ) ; a.id = id.getTrackingId ( ) ; return a ; }

Target:
public com.google.gerrit.server.data.TrackingIdAttribute asTrackingIdAttribute ( com.google.gerrit.reviewdb.client.TrackingId id ) { com.google.gerrit.server.data.TrackingIdAttribute a = new com.google.gerrit.server.data.TrackingIdAttribute ( ) ; a.system = id.getSystem ( ) ; a.id = id.getTrackingId ( ) ; return a ; }
Source:
private void execute ( final java.lang.String sql ) throws java.sql.SQLException { final java.sql.Statement stmt = db.createStatement ( ) ; try { stmt.execute ( sql ) ; } finally { stmt.close ( ) ; } }

Target:
private void execute ( final java.lang.String sql ) throws com.google.gwtorm.client.OrmException { executor.execute ( sql ) ; }
Source:
public void tearDown ( ) throws java.lang.Exception { com.google.gerrit.testutil.InMemoryDatabase.drop ( db ) ; }

Target:
public void tearDown ( ) throws java.lang.Exception { com.google.gerrit.testing.InMemoryDatabase.drop ( db ) ; }
Source:
public java.lang.String getBranch ( ) { return escape ( branch ) ; }

Target:
public java.lang.String getBranch ( ) { return clean ( branch ) ; }
Source:
public void onClick ( com.google.gwt.user.client.ui.Widget sender ) { hide ( ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { hide ( ) ; }
Source:
public void onClick ( com.google.gwt.user.client.ui.Widget sender ) { onSend ( ) ; }

Target:
public void onSuccess ( final com.google.gerrit.client.changes.PatchSetPublishDetail result ) { send.setEnabled ( true ) ; display ( result ) ; }
Source:
void deleteRight ( java.util.Set < com.google.gerrit.client.reviewdb.ProjectRight.Key > ids , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwtjsonrpc.client.VoidResult > callback ) ;

Target:
void deleteRight ( com.google.gerrit.client.reviewdb.Project.NameKey projectName , java.util.Set < com.google.gerrit.client.reviewdb.ProjectRight.Key > ids , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwtjsonrpc.client.VoidResult > callback ) ;
Source:
public com.google.gerrit.server.project.ProjectState get ( final com.google.gerrit.reviewdb.Project.NameKey projectName ) { return byName.get ( projectName ) ; }

Target:
public void evictAll ( ) { byName.removeAll ( ) ; }
Source:
private org.eclipse.jgit.lib.ObjectId getDestRef ( com.google.gerrit.server.project.ChangeControl ctl ) throws java.lang.Exception { return testRepo.getRepository ( ) . exactRef ( ctl.getChange ( ) . getDest ( ) . get ( ) ) . getObjectId ( ) ; }

Target:
private org.eclipse.jgit.lib.ObjectId getDestRef ( com.google.gerrit.server.notedb.ChangeNotes notes ) throws java.lang.Exception { return testRepo.getRepository ( ) . exactRef ( notes.getChange ( ) . getDest ( ) . get ( ) ) . getObjectId ( ) ; }
Source:
private com.google.gerrit.server.git.ProjectConfig loadAllProjects ( ) throws java.lang.Exception { try ( org.eclipse.jgit.lib.Repository repo = repoManager.openRepository ( allProjects ) ) { com.google.gerrit.server.git.ProjectConfig pc = new com.google.gerrit.server.git.ProjectConfig ( allProjects ) ; pc.load ( repo ) ; return pc ; } }

Target:
private com.google.gerrit.server.project.ProjectConfig loadAllProjects ( ) throws java.lang.Exception { try ( org.eclipse.jgit.lib.Repository repo = repoManager.openRepository ( allProjects ) ) { com.google.gerrit.server.project.ProjectConfig pc = new com.google.gerrit.server.project.ProjectConfig ( allProjects ) ; pc.load ( repo ) ; return pc ; } }
Source:
static void delete ( com.google.gerrit.reviewdb.client.Change.Id id , java.lang.String revision , com.google.gwt.user.client.ui.Button ... draftButtons ) { com.google.gerrit.client.changes.ChangeApi.deleteRevision ( id.get ( ) , revision , com.google.gerrit.client.change.ChangeActions.cs ( id , draftButtons ) ) ; }

Target:
static void markPrivate ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id id , com.google.gwt.user.client.ui.Button ... draftButtons ) { com.google.gerrit.client.changes.ChangeApi.markPrivate ( project.get ( ) , id.get ( ) , com.google.gerrit.client.change.ChangeActions.cs ( project , id , draftButtons ) ) ; }
Source:
void onDeleteChange ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( com.google.gwt.user.client.Window.confirm ( Resources.C.deleteDraftChange ( ) ) ) { com.google.gerrit.client.change.DraftActions.delete ( changeId ) ; } }

Target:
void onPublishEdit ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.EditActions.publishEdit ( changeId , publishEdit , rebaseEdit , deleteEdit ) ; }
Source:
public abstract boolean isRepeatable ( ) ;

Target:
public boolean isRepeatable ( ) { return repeatable ; }
Source:
public static boolean isOAuthLogin ( javax.servlet.http.HttpServletRequest request ) { return ( request.getRequestURI ( ) . indexOf ( GitHubOAuthConfig.GERRIT_LOGIN ) ) >= 0 ; }

Target:
public static boolean isOAuthLogin ( javax.servlet.http.HttpServletRequest request ) { java.lang.String requestUri = request.getRequestURI ( ) ; return ( ( requestUri.indexOf ( GitHubOAuthConfig.GERRIT_LOGIN ) ) >= 0 ) && ( ( request.getParameter ( com.googlesource.gerrit.plugins.github.oauth.OAuthProtocol.FINAL_URL_PARAM ) ) == null ) ; }
Source:
public java.lang.String toString ( ) { return com.google.common.base.Objects.toStringHelper ( this ) . add ( "user" , user ) . add ( "repositoryName" , repositoryName ) . add ( "objectId" , objectId ) . toString ( ) ; }

Target:
public java.lang.String toString ( ) { return com.google.common.base.MoreObjects.toStringHelper ( this ) . add ( "user" , user ) . add ( "repositoryName" , repositoryName ) . add ( "objectId" , objectId ) . toString ( ) ; }
Source:
public com.google.gerrit.reviewdb.PatchSetApproval getChangeApproval ( final com.google.gerrit.reviewdb.ApprovalCategory.Id id ) { return given.get ( id ) ; }

Target:
public com.google.gerrit.reviewdb.PatchSetApproval getChangeApproval ( com.google.gerrit.reviewdb.ApprovalCategory.Id id ) { for ( com.google.gerrit.reviewdb.PatchSetApproval a : given ) { if ( a.getCategoryId ( ) . equals ( id ) ) { return a ; } } return null ; }
Source:
public void fire ( com.google.gerrit.reviewdb.client.Project.NameKey project , org.eclipse.jgit.transport.ReceiveCommand cmd ) { fire ( project , cmd.getRefName ( ) , cmd.getOldId ( ) , cmd.getNewId ( ) , cmd.getType ( ) ) ; }

Target:
public void fire ( com.google.gerrit.reviewdb.client.Project.NameKey project , org.eclipse.jgit.lib.RefUpdate refUpdate , org.eclipse.jgit.transport.ReceiveCommand.Type type , com.google.gerrit.reviewdb.client.Account updater ) { fire ( project , refUpdate.getName ( ) , refUpdate.getOldObjectId ( ) , refUpdate.getNewObjectId ( ) , type , util.accountInfo ( updater ) ) ; }
Source:
public void blockOwnerProject ( ) { com.google.gerrit.server.project.Util.allow ( local , com.google.gerrit.common.data.Permission.OWNER , com.google.gerrit.server.project.Util.ADMIN , "refs/*" ) ; com.google.gerrit.server.project.Util.block ( local , com.google.gerrit.common.data.Permission.OWNER , com.google.gerrit.server.project.Util.DEVS , "refs/*" ) ; assertAdminsAreOwnersAndDevsAreNot ( ) ; }

Target:
public void blockOwnerProject ( ) { com.google.gerrit.server.project.testing.Util.allow ( local , com.google.gerrit.common.data.Permission.OWNER , com.google.gerrit.server.project.testing.Util.ADMIN , "refs/*" ) ; com.google.gerrit.server.project.testing.Util.block ( local , com.google.gerrit.common.data.Permission.OWNER , com.google.gerrit.server.project.testing.Util.DEVS , "refs/*" ) ; assertAdminsAreOwnersAndDevsAreNot ( ) ; }
Source:
private java.util.List < com.google.gerrit.reviewdb.PatchLineComment > drafts ( ) throws com.google.gwtorm.client.OrmException { return db.patchComments ( ) . draft ( patchSetId , user.getAccountId ( ) ) . toList ( ) ; }

Target:
private java.util.List < com.google.gerrit.reviewdb.PatchLineComment > drafts ( ) throws com.google.gwtorm.client.OrmException { return db.patchComments ( ) . draftByPatchSet ( patchSetId , user.getAccountId ( ) ) . toList ( ) ; }
Source:
public void onEvent ( com.google.gerrit.server.events.Event event ) { if ( event instanceof com.google.gerrit.server.events.CommentAddedEvent ) { lastCommentAddedEvent = ( ( com.google.gerrit.server.events.CommentAddedEvent ) ( event ) ) ; } }

Target:
public void onCommentAdded ( com.google.gerrit.acceptance.server.event.Event event ) { lastCommentAddedEvent = event ; }
Source:
protected com.google.gerrit.server.notedb.ChangeUpdate newUpdate ( com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.server.IdentifiedUser user ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.testutil.TestChanges.newUpdate ( injector , repoManager , c , allUsers , user ) ; }

Target:
protected com.google.gerrit.server.notedb.ChangeUpdate newUpdate ( com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.server.IdentifiedUser user ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.testutil.TestChanges.newUpdate ( injector , repoManager , com.google.gerrit.server.notedb.AbstractChangeNotesTest.MIGRATION , c , allUsers , user ) ; }
Source:
public void createDraftChangeWhenDraftsNotAllowed ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( isAllowDrafts ( ) ) . isFalse ( ) ; com.google.gerrit.acceptance.PushOneCommit.Result r = createDraftChange ( ) ; r.assertErrorStatus ( "draft workflow is disabled" ) ; }

Target:
public void createDraftChangeWhenDraftsNotAllowed ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( isAllowDrafts ( ) ) . isFalse ( ) ; com.google.gerrit.acceptance.PushOneCommit.Result r = pushTo ( "refs/drafts/master" ) ; r.assertErrorStatus ( ) ; }
Source:
private static com.google.gwtexpui.safehtml.client.SafeHtml expandTabs ( com.google.gwtexpui.safehtml.client.SafeHtml src ) { return src.replaceAll ( "\t" , "<span title=\"Visual Tab\" class=\"gerrit-visualtab\">&raquo;</span>\t" ) ; }

Target:
private static com.google.gwtexpui.safehtml.client.SafeHtml expandTabs ( com.google.gwtexpui.safehtml.client.SafeHtml src ) { return src.replaceAll ( "\t" , "<span title=\"Visual Tab\" class=\"gerrit-visualtab\"> </span>\t" ) ; }
Source:
private boolean isGenAvailableNowForCurrentSearcher ( ) { try { return reopenThread.waitForGeneration ( gen , 0 ) ; } catch ( java.lang.InterruptedException e ) { com.google.gerrit.lucene.SubIndex.log.warn ( "Interrupted waiting for searcher generation" , e ) ; return false ; } }

Target:
private boolean isGenAvailableNowForCurrentSearcher ( ) { try { return reopenThread.waitForGeneration ( gen , 0 ) ; } catch ( java.lang.InterruptedException e ) { com.google.gerrit.lucene.AbstractLuceneIndex.log.warn ( "Interrupted waiting for searcher generation" , e ) ; return false ; } }
Source:
private com.google.gerrit.extensions.common.ChangeInfo detailedChange ( java.lang.String changeId ) throws java.lang.Exception { return gApi.changes ( ) . id ( changeId ) . get ( java.util.EnumSet.of ( ListChangesOption.DETAILED_LABELS , ListChangesOption.CURRENT_REVISION , ListChangesOption.CURRENT_COMMIT ) ) ; }

Target:
private com.google.gerrit.extensions.common.ChangeInfo detailedChange ( java.lang.String changeId ) throws java.lang.Exception { return gApi.changes ( ) . id ( changeId ) . get ( com.google.gerrit.extensions.client.ListChangesOption.DETAILED_LABELS , com.google.gerrit.extensions.client.ListChangesOption.CURRENT_REVISION , com.google.gerrit.extensions.client.ListChangesOption.CURRENT_COMMIT ) ; }
Source:
public void setVisible ( final boolean show ) { impl.visible ( show ) ; super . setVisible ( show ) ; }

Target:
public void setVisible ( final boolean show ) { com.google.gwtexpui.user.client.UserAgent.fireDialogVisible ( show ) ; impl.visible ( show ) ; super . setVisible ( show ) ; }
Source:
private void initMacs ( final org.spearce.jgit.lib.RepositoryConfig cfg ) { setMacFactories ( com.google.gerrit.server.ssh.GerritSshDaemon.filter ( cfg , "mac" , new org.apache.sshd.common.mac.HMACMD5.Factory ( ) , new org.apache.sshd.common.mac.HMACSHA1.Factory ( ) , new org.apache.sshd.common.mac.HMACMD596.Factory ( ) , new org.apache.sshd.common.mac.HMACSHA196.Factory ( ) ) ) ; }

Target:
private void initMacs ( final org.spearce.jgit.lib.Config cfg ) { setMacFactories ( com.google.gerrit.server.ssh.GerritSshDaemon.filter ( cfg , "mac" , new org.apache.sshd.common.mac.HMACMD5.Factory ( ) , new org.apache.sshd.common.mac.HMACSHA1.Factory ( ) , new org.apache.sshd.common.mac.HMACMD596.Factory ( ) , new org.apache.sshd.common.mac.HMACSHA196.Factory ( ) ) ) ; }
Source:
public void createMergeChange_Conflicts ( ) throws java.lang.Exception { changeInTwoBranches ( "shared.txt" , "shared.txt" ) ; com.google.gerrit.extensions.common.ChangeInput in = newMergeChangeInput ( "master" , "branchA" , ChangeStatus.NEW ) ; assertCreateFails ( in , com.google.gerrit.extensions.restapi.RestApiException.class , "merge conflict" ) ; }

Target:
public void invalidStrategy ( ) throws java.lang.Exception { changeInTwoBranches ( "branchA" , "a.txt" , "branchB" , "b.txt" ) ; com.google.gerrit.extensions.common.ChangeInput in = newMergeChangeInput ( "branchA" , "branchB" , "octopus" ) ; assertCreateFails ( in , com.google.gerrit.extensions.restapi.BadRequestException.class , "invalid merge strategy: octopus" ) ; }
Source:
private void initSite ( ) throws java.lang.Exception { com.google.gerrit.acceptance.pgm.RebuildNoteDbIT.runGerrit ( "init" , "-d" , sitePath , "--batch" , "--no-auto-start" , "--skip-plugins" , "--show-stack-trace" ) ; }

Target:
private void initSite ( ) throws java.lang.Exception { com.google.gerrit.acceptance.pgm.MigrateToNoteDbIT.runGerrit ( "init" , "-d" , sitePath , "--batch" , "--no-auto-start" , "--skip-plugins" , "--show-stack-trace" ) ; }
Source:
private boolean groupsInNoteDb ( ) { return cfg.getBoolean ( NotesMigration.SECTION_NOTE_DB , com.google.gerrit.server.notedb.NoteDbTable.GROUPS.key ( ) , NotesMigration.WRITE , false ) ; }

Target:
private boolean groupsInNoteDb ( ) { return groupsMigration.writeToNoteDb ( ) ; }
Source:
public org.scribe.oauth.OAuthService createService ( com.googlesource.gerrit.plugins.oauth.OAuthConfig config ) { return new com.googlesource.gerrit.plugins.oauth.GitLabApi.GitLabOAuthService ( this , config ) ; }

Target:
public org.scribe.oauth.OAuthService createService ( org.scribe.model.OAuthConfig config ) { return new com.googlesource.gerrit.plugins.oauth.GitLabApi.GitLabOAuthService ( this , config ) ; }