auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public com.google.gerrit.extensions.api.changes.Changes.QueryParameter withQuery ( java.lang.String query ) { this . query = query ; return this ; }

Target:
public com.google.gerrit.extensions.api.changes.Changes.QueryRequest withQuery ( java.lang.String query ) { this . query = query ; return this ; }
Source:
public com.google.gerrit.httpd.WebSessionManager.Val getIfPresent ( java.lang.Object key ) { if ( key instanceof java.lang.String ) { java.io.File f = new java.io.File ( dir , ( ( java.lang.String ) ( key ) ) ) ; return readFile ( f ) ; } return null ; }

Target:
public com.google.gerrit.httpd.WebSessionManager.Val getIfPresent ( java.lang.Object key ) { if ( key instanceof java.lang.String ) { java.nio.file.Path path = dir.resolve ( ( ( java.lang.String ) ( key ) ) ) ; return readFile ( path ) ; } return null ; }
Source:
public com.google.gerrit.server.CurrentUser getUser ( ) { throw new com.google.inject.OutOfScopeException ( "No user on email thread" ) ; }

Target:
public com.google.gerrit.server.CurrentUser getUser ( ) { if ( ( submitter ) != null ) { return identifiedUserFactory.create ( getReviewDbProvider ( ) , submitter ) . getRealUser ( ) ; } throw new com.google.inject.OutOfScopeException ( "No user on email thread" ) ; }
Source:
private boolean has ( com.google.gerrit.extensions.common.ListChangesOption option ) { return options.contains ( option ) ; }

Target:
private boolean has ( com.google.gerrit.extensions.client.ListChangesOption option ) { return options.contains ( option ) ; }
Source:
public static java.lang.String toAccountQuery ( final java.lang.String fullname ) { java.lang.String query = ( com.google.gerrit.common.PageLinks.op ( "owner" , fullname ) ) + " status:open" ; return com.google.gerrit.common.PageLinks.toChangeQuery ( query , com.google.gerrit.common.PageLinks.TOP ) ; }

Target:
public static java.lang.String toAccountQuery ( java.lang.String fullname , com.google.gerrit.reviewdb.client.Change.Status status ) { return com.google.gerrit.common.PageLinks.toChangeQuery ( ( ( ( com.google.gerrit.common.PageLinks.op ( "owner" , fullname ) ) + " " ) + ( com.google.gerrit.common.PageLinks.status ( status ) ) ) , com.google.gerrit.common.PageLinks.TOP ) ; }
Source:
public static java.lang.String toPatchUnified ( final com.google.gerrit.reviewdb.client.Patch.Key id ) { return com.google.gerrit.client.Dispatcher.toPatch ( "unified" , null , id ) ; }

Target:
public static java.lang.String toUnified ( com.google.gerrit.reviewdb.client.PatchSet.Id diffBase , com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName ) { return com.google.gerrit.client.Dispatcher.toPatch ( "unified" , diffBase , revision , fileName , null , 0 ) ; }
Source:
public void listBranchesOfEmptyProject ( ) throws java.lang.Exception { com.google.gerrit.acceptance.rest.project.BranchAssert.assertBranches ( com.google.common.collect.ImmutableList.of ( com.google.gerrit.acceptance.rest.project.ListBranchesIT.branch ( "refs/meta/config" , null , false ) ) , list ( ) . get ( ) ) ; }

Target:
public void listBranchesOfEmptyProject ( ) throws java.lang.Exception { com.google.gerrit.acceptance.rest.project.BranchAssert.assertBranches ( com.google.common.collect.ImmutableList.of ( com.google.gerrit.acceptance.rest.project.ListBranchesIT.branch ( "HEAD" , null , false ) , com.google.gerrit.acceptance.rest.project.ListBranchesIT.branch ( "refs/meta/config" , null , false ) ) , list ( ) . get ( ) ) ; }
Source:
public void saveDraft ( final com.google.gerrit.reviewdb.client.PatchLineComment comment , final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.reviewdb.client.PatchLineComment > callback ) { saveDraftFactory.create ( comment ) . to ( callback ) ; }

Target:
public void saveDraft ( final com.google.gerrit.reviewdb.client.PatchLineComment comment , final com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.reviewdb.client.PatchLineComment > callback ) { saveDraftFactory.create ( comment ) . to ( callback ) ; }
Source:
int getRawId ( ) { return accountId.get ( ) ; }

Target:
public com.google.gerrit.client.reviewdb.Account.Id getId ( ) { return oldAccountId ; }
Source:
public int getSizeBasedOnAccuracy ( int statisticsAccuracy ) throws java.lang.IllegalArgumentException , java.lang.IllegalStateException , net.sf.ehcache.CacheException { return self ( ) . getSizeBasedOnAccuracy ( statisticsAccuracy ) ; }

Target:
public void setStatisticsEnabled ( boolean enableStatistics ) { self.setStatisticsEnabled ( enableStatistics ) ; }
Source:
protected void onExit ( final int rc ) { eventListenerRegistration.remove ( ) ; synchronized ( taskLock ) { done = true ; } super . onExit ( rc ) ; }

Target:
protected void onExit ( final int rc ) { removeEventListenerRegistration ( ) ; synchronized ( taskLock ) { done = true ; } super . onExit ( rc ) ; }
Source:
public void deleteComment ( com.google.gerrit.reviewdb.client.PatchLineComment c ) { verifyComment ( c ) ; delete.add ( com.google.gerrit.server.notedb.ChangeDraftUpdate.key ( c ) ) ; }

Target:
public void deleteComment ( com.google.gerrit.reviewdb.client.Comment c ) { verifyComment ( c ) ; delete.add ( com.google.gerrit.server.notedb.ChangeDraftUpdate.key ( c ) ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.VoidResult result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChangeInEditMode ( revision.getParentKey ( ) ) ) ; }

Target:
void onSave ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { save ( ) . run ( ) ; }
Source:
void index ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid , com.ericsson.gerrit.plugins.highavailability.forwarder.rest.Operation operation ) throws java.io.IOException { indexer.index ( uuid ) ; com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexGroupRestApiServlet.logger.debug ( "Group successfully indexed" , uuid ) ; }

Target:
void index ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid , com.ericsson.gerrit.plugins.highavailability.forwarder.rest.Operation operation ) throws java.io.IOException { indexer.index ( uuid ) ; logger.debug ( "Group successfully indexed" , uuid ) ; }
Source:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { if ( ! ( discovering ) ) { providerId.setText ( identUrl ) ; form.submit ( ) ; } }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { event.preventDefault ( ) ; if ( ! ( discovering ) ) { providerId.setText ( identUrl ) ; form.submit ( ) ; } }
Source:
PatchSet.Id getBase ( ) { return base ; }

Target:
void resizeCodeMirror ( ) { int height = ( header.getOffsetHeight ( ) ) + ( getDiffTable ( ) . getHeaderHeight ( ) ) ; for ( net.codemirror.lib.CodeMirror cm : getCms ( ) ) { cm.adjustHeight ( height ) ; } }
Source:
void setEnabled ( boolean on ) { com.google.gwt.user.client.DOM.setElementPropertyBoolean ( list.getElement ( ) , "disabled" , ( ! on ) ) ; }

Target:
void setEnabled ( boolean on ) { list.getElement ( ) . setPropertyBoolean ( "disabled" , ( ! on ) ) ; }
Source:
protected void configure ( ) { }

Target:
protected void configure ( ) { factory ( AgreementInfoFactory.Factory.class ) ; }
Source:
public void delete ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteChange.apply ( change , null ) ; } catch ( com.google.gerrit.server.update.UpdateException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot delete change" , e ) ; } }

Target:
public void delete ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteChange.apply ( change , null ) ; } catch ( com.google.gerrit.server.update.UpdateException | com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot delete change" , e ) ; } }
Source:
protected com.google.gwtjsonrpc.server.XsrfUtil xsrfInit ( ) throws com.google.gwtjsonrpc.server.XsrfException { return new com.google.gwtjsonrpc.server.XsrfUtil ( ) ; }

Target:
protected com.google.gwtjsonrpc.server.SignedToken xsrfInit ( ) throws com.google.gwtjsonrpc.server.XsrfException { return new com.google.gwtjsonrpc.server.SignedToken ( ( ( 4 * 60 ) * 60 ) ) ; }
Source:
public net.sf.ehcache.statistics.LiveCacheStatistics getLiveCacheStatistics ( ) throws java.lang.IllegalStateException { return self.getLiveCacheStatistics ( ) ; }

Target:
public void setSampledStatisticsEnabled ( boolean enableStatistics ) { self ( ) . setSampledStatisticsEnabled ( enableStatistics ) ; }
Source:
private void checkNotDefined ( java.lang.String name ) { if ( registry.getNames ( ) . contains ( name ) ) { throw new java.lang.IllegalStateException ( java.lang.String.format ( "metric %s already defined" , name ) ) ; } }

Target:
private synchronized void define ( java.lang.String name , com.google.gerrit.metrics.Description desc ) { if ( descriptions.containsKey ( name ) ) { throw new java.lang.IllegalStateException ( java.lang.String.format ( "metric %s already defined" , name ) ) ; } descriptions.put ( name , desc.getAnnotations ( ) ) ; }
Source:
protected abstract T updateProjectConfig ( com.google.gerrit.server.CurrentUser user , com.google.gerrit.server.git.ProjectConfig config , com.google.gerrit.server.git.MetaDataUpdate md , boolean parentProjectUpdate ) throws com.google.gerrit.server.project.NoSuchProjectException , com.google.gwtorm.server.OrmException , java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException ;

Target:
protected abstract T updateProjectConfig ( com.google.gerrit.server.project.ProjectControl projectControl , com.google.gerrit.server.git.ProjectConfig config , com.google.gerrit.server.git.MetaDataUpdate md , boolean parentProjectUpdate ) throws com.google.gerrit.common.errors.PermissionDeniedException , com.google.gerrit.server.project.NoSuchProjectException , com.google.gwtorm.server.OrmException , java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException ;
Source:
public synchronized void evictAll ( ) { byId.clear ( ) ; byUsername.clear ( ) ; }

Target:
public synchronized void evictAllNoReindex ( ) { byId.clear ( ) ; byUsername.clear ( ) ; }
Source:
private static java.lang.String path ( java.io.File file ) { try { return file.getCanonicalPath ( ) ; } catch ( java.io.IOException err ) { return file.getAbsolutePath ( ) ; } }

Target:
private static java.lang.String path ( java.nio.file.Path path ) { try { return path.toRealPath ( ) . normalize ( ) . toString ( ) ; } catch ( java.io.IOException err ) { return path.toAbsolutePath ( ) . normalize ( ) . toString ( ) ; } }
Source:
protected void tearDown ( ) throws java.lang.Exception { com.google.gerrit.testutil.TestDatabase.drop ( db ) ; super . tearDown ( ) ; }

Target:
protected void tearDown ( ) throws java.lang.Exception { com.google.gerrit.testutil.InMemoryDatabase.drop ( db ) ; super . tearDown ( ) ; }
Source:
public boolean isAllowRegisterNewEmail ( ) { return allowRegisterNewEmail ; }

Target:
public java.util.Set < com.google.gerrit.client.reviewdb.Account.FieldName > getEditableAccountFields ( ) { return editableAccountFields ; }
Source:
public static void createDraft ( com.google.gerrit.reviewdb.client.PatchSet.Id id , com.google.gerrit.client.changes.CommentInfo content , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.changes.CommentInfo > cb ) { com.google.gerrit.client.changes.CommentApi.revision ( id , "drafts" ) . put ( content , cb ) ; }

Target:
public static void comments ( @ com.google.gerrit.common.Nullable java.lang.String project , com.google.gerrit.reviewdb.client.PatchSet.Id id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.rpc.NativeMap < com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.CommentInfo > > > cb ) { com.google.gerrit.client.changes.CommentApi.revision ( project , id , "comments" ) . get ( cb ) ; }
Source:
public final void side ( com.google.gerrit.extensions.common.Side side ) { sideRaw ( side.toString ( ) ) ; }

Target:
public final void side ( com.google.gerrit.extensions.client.Side side ) { sideRaw ( side.toString ( ) ) ; }
Source:
private static org.spearce.jgit.transport.URIish expandURI ( org.spearce.jgit.transport.URIish uri , final com.google.gerrit.client.reviewdb.Project.NameKey project ) { uri = uri.setPath ( com.google.gerrit.git.PushQueue.replace ( uri.getPath ( ) , "name" , project.get ( ) ) ) ; return uri ; }

Target:
private static int posInt ( final org.spearce.jgit.transport.RemoteConfig rc , final org.spearce.jgit.lib.RepositoryConfig cfg , final java.lang.String name , final int defValue ) { return java.lang.Math.max ( 0 , cfg.getInt ( "remote" , rc.getName ( ) , name , defValue ) ) ; }
Source:
protected < T > T buildJson ( java.lang.String path , java.lang.Class < T > classOfT ) throws java.lang.Exception { return new com.google.gson.Gson ( ) . fromJson ( buildJsonRaw ( path ) , classOfT ) ; }

Target:
protected < T > T buildJson ( java.lang.String path , java.lang.Class < T > classOfT ) throws java.lang.Exception { return new com.google.gson.Gson ( ) . fromJson ( buildJsonRaw ( path , "" ) , classOfT ) ; }
Source:
public com.google.gerrit.server.ParamertizedString.Builder replace ( ) { return new com.google.gerrit.server.ParamertizedString.Builder ( ) ; }

Target:
java.lang.String apply ( java.lang.String a ) { return a.toUpperCase ( ) ; }
Source:
void onRemove ( org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.reviewdb.client.Account.Id accountId , java.lang.Iterable < com.google.gerrit.server.account.externalids.ExternalId.Key > extIdKeys ) throws java.io.IOException ;

Target:
void onRemoveByKeys ( org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.reviewdb.client.Account.Id accountId , java.lang.Iterable < com.google.gerrit.server.account.externalids.ExternalId.Key > extIdKeys ) throws java.io.IOException ;
Source:
com.googlesource.gerrit.plugins.findowners.OwnersDb get ( com.google.gerrit.server.account.AccountCache accountCache , com.google.gerrit.server.account.Accounts accounts , org.eclipse.jgit.lib.Repository repo , com.google.gerrit.server.query.change.ChangeData changeData ) throws com.google.gwtorm.server.OrmException { return get ( accountCache , accounts , repo , changeData , changeData.currentPatchSet ( ) . getId ( ) . get ( ) ) ; }

Target:
com.googlesource.gerrit.plugins.findowners.OwnersDb get ( com.google.gerrit.server.account.AccountCache accountCache , com.google.gerrit.server.account.Emails emails , org.eclipse.jgit.lib.Repository repo , com.google.gerrit.server.query.change.ChangeData changeData ) throws com.google.gwtorm.server.OrmException { return get ( accountCache , emails , repo , changeData , changeData.currentPatchSet ( ) . getId ( ) . get ( ) ) ; }
Source:
public void execute ( com.google.gerrit.server.git.BatchUpdate.Listener listener ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.git.UpdateException { com.google.gerrit.server.git.BatchUpdate.execute ( com.google.common.collect.ImmutableList.of ( this ) , listener ) ; }

Target:
public void execute ( com.google.gerrit.server.git.BatchUpdate.Listener listener ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.git.UpdateException { com.google.gerrit.server.git.BatchUpdate.execute ( com.google.common.collect.ImmutableList.of ( this ) , listener , requestId , false ) ; }
Source:
protected void configure ( ) { bindConstant ( ) . annotatedWith ( com.google.inject.name.Names.named ( "HEADLESS" ) ) . to ( headless ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.httpd.GerritUiOptions.class ) . toInstance ( new com.google.gerrit.httpd.GerritUiOptions ( headless ) ) ; }
Source:
public com.google.gerrit.server.group.GroupInfo apply ( com.google.gerrit.server.group.IncludedGroupResource rsrc ) { return new com.google.gerrit.server.group.GroupInfo ( rsrc.getMemberDescription ( ) ) ; }

Target:
public com.google.gerrit.server.group.GroupJson.GroupInfo apply ( com.google.gerrit.server.group.IncludedGroupResource rsrc ) { return json.format ( rsrc.getMemberDescription ( ) ) ; }
Source:
public static com.google.gerrit.reviewdb.client.Change.Status changeStatus2Status ( com.google.gerrit.extensions.common.ChangeStatus status ) { if ( status != null ) { return com.google.gerrit.server.api.changes.ChangeInfoMapper.MAP.inverse ( ) . get ( status ) ; } return com.google.gerrit.reviewdb.client.Change.Status.NEW ; }

Target:
public static com.google.gerrit.reviewdb.client.Change.Status changeStatus2Status ( com.google.gerrit.extensions.common.ChangeStatus status ) { if ( status != null ) { return com.google.gerrit.server.api.changes.ChangeInfoMapper.STATUS_MAP.inverse ( ) . get ( status ) ; } return com.google.gerrit.reviewdb.client.Change.Status.NEW ; }
Source:
public com.googlesrouce.gerrit.plugins.github.git.PagedIterable < com.googlesrouce.gerrit.plugins.github.git.GHCommitStatus > listCommitStatuses ( java.lang.String sha1 ) throws java.io.IOException { return ghRepository.listCommitStatuses ( sha1 ) ; }

Target:
public com.googlesource.gerrit.plugins.github.git.PagedIterable < com.googlesource.gerrit.plugins.github.git.GHCommitStatus > listCommitStatuses ( java.lang.String sha1 ) throws java.io.IOException { return ghRepository.listCommitStatuses ( sha1 ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.change.RelatedChanges.RelatedInfo result ) { render ( revision , result.changes ( ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.change.RelatedChanges.RelatedInfo result ) { tabPanel.getTabBar ( ) . setTabText ( 0 , Resources.M.relatedChanges ( result.changes ( ) . length ( ) ) ) ; render ( revision , result.changes ( ) ) ; }
Source:
public void onSuccess ( java.lang.Void result ) { net.codemirror.lib.Loader.initDisableUnwantedKeys ( ) ; cb.onSuccess ( null ) ; }

Target:
public void onSuccess ( java.lang.Void result ) { net.codemirror.lib.Loader.initVimKeys ( ) ; cb.onSuccess ( null ) ; }
Source:
protected java.util.Set < com.google.gerrit.reviewdb.Account.Id > createEntry ( final java.lang.String key ) throws java.lang.Exception { return lookup ( key ) ; }

Target:
public void evict ( final java.lang.String email ) { cache.remove ( email ) ; }
Source:
void setAutoFlush ( boolean autoFlush ) throws com.google.gwtorm.client.OrmException ;

Target:
public void rollback ( ) throws com.google.gwtorm.client.OrmException ;
Source:
private void initUI ( ) { groups = new com.google.gerrit.client.admin.GroupListScreen.GroupTable ( ) ; groups.setSavePointerId ( Link.ADMIN_GROUPS ) ; add ( groups ) ; }

Target:
public void onClick ( final com.google.gwt.user.client.ui.Widget sender ) { doCreateGroup ( ) ; }
Source:
public com.google.gerrit.server.IdentifiedUser create ( com.google.inject.Provider < com.google.gerrit.reviewdb.server.ReviewDb > db , com.google.gerrit.reviewdb.client.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , realm , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , null , db , id , null ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( com.google.inject.Provider < com.google.gerrit.reviewdb.server.ReviewDb > db , com.google.gerrit.reviewdb.client.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , starredChangesUtil , authConfig , realm , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , null , db , id , null ) ; }
Source:
public void getTask_NotFound ( ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = userSession.get ( ( "/config/server/tasks/" + ( getLogFileCompressorTaskId ( ) ) ) ) ; com.google.common.truth.Truth.assertThat ( r.getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_NOT_FOUND ) ; }

Target:
public void getTask_NotFound ( ) throws java.lang.Exception { userSession.get ( ( "/config/server/tasks/" + ( getLogFileCompressorTaskId ( ) ) ) ) . assertNotFound ( ) ; }
Source:
public void unstarChange ( java.lang.String id ) throws com.google.gerrit.extensions.restapi.RestApiException { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }

Target:
public java.util.List < com.google.gerrit.extensions.client.ProjectWatchInfo > setWatchedProjects ( java.util.List < com.google.gerrit.extensions.client.ProjectWatchInfo > in ) throws com.google.gerrit.extensions.restapi.RestApiException { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }
Source:
protected com.google.gerrit.reviewdb.client.Change newChange ( ) { return com.google.gerrit.testutil.TestChanges.newChange ( project , changeOwner.getAccountId ( ) ) ; }

Target:
protected com.google.gerrit.reviewdb.client.Change newChange ( ) throws com.google.gwtorm.server.OrmException , java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { com.google.gerrit.reviewdb.client.Change c = com.google.gerrit.testutil.TestChanges.newChange ( project , changeOwner.getAccountId ( ) ) ; newUpdate ( c , changeOwner ) . commit ( ) ; return c ; }
Source:
public void onSend ( ) { java.lang.String topic = newTopic.getText ( ) ; Util.DETAIL_SVC.alterTopic ( change.getId ( ) , topic , getMessageText ( ) , createCallback ( ) ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { enableButtons ( true ) ; }
Source:
public void pushWithPrivateByDefaultEnabled ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( createChange ( ) . getChange ( ) . change ( ) . isPrivate ( ) ) . isEqualTo ( true ) ; }

Target:
public void pushWithPrivateByDefaultEnabled ( ) throws java.lang.Exception { setPrivateByDefault ( project2 , InheritableBoolean.TRUE ) ; com.google.common.truth.Truth.assertThat ( createChange ( project2 ) . getChange ( ) . change ( ) . isPrivate ( ) ) . isEqualTo ( true ) ; }
Source:
public java.lang.String getSchemeRest ( ) { java.lang.String id = getExternalId ( ) ; int c = id.indexOf ( ':' ) ; return 0 < c ? id.substring ( ( c + 1 ) ) : null ; }

Target:
public java.lang.String getSchemeRest ( ) { java.lang.String scheme = key.getScheme ( ) ; return null != scheme ? getExternalId ( ) . substring ( ( ( scheme.length ( ) ) + 1 ) ) : null ; }
Source:
private static final java.lang.String getPluginName ( ) { return ( com.google.gerrit.client.api.ApiGlue.pluginName ) != null ? com.google.gerrit.client.api.ApiGlue.pluginName : com.google.gerrit.client.api.PluginName.get ( ) ; }

Target:
private static final java.lang.String getPluginName ( ) { if ( ( com.google.gerrit.client.api.ApiGlue.pluginName ) != null ) { return com.google.gerrit.client.api.ApiGlue.pluginName ; } return com.google.gerrit.client.api.PluginName.fromUrl ( com.google.gerrit.client.api.PluginName.getCallerUrl ( ) ) ; }
Source:
public void check ( com.google.gerrit.server.permissions.GlobalOrPluginPermission perm ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.permissions.PermissionBackendException { if ( ! ( can ( perm ) ) ) { throw new com.google.gerrit.extensions.restapi.AuthException ( ( ( perm.describeForException ( ) ) + " not permitted" ) ) ; } }

Target:
public void check ( com.google.gerrit.extensions.api.access.GlobalOrPluginPermission perm ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.permissions.PermissionBackendException { if ( ! ( can ( perm ) ) ) { throw new com.google.gerrit.extensions.restapi.AuthException ( ( ( perm.describeForException ( ) ) + " not permitted" ) ) ; } }
Source:
public com.googlesource.gerrit.plugins.its.base.validation.ItsAssociationPolicy getItsAssociationPolicy ( ) { return gerritConfig.getEnum ( "commentlink" , getCommentLinkName ( ) , "association" , ItsAssociationPolicy.OPTIONAL ) ; }

Target:
public com.googlesource.gerrit.plugins.its.base.validation.ItsAssociationPolicy getItsAssociationPolicy ( ) { com.googlesource.gerrit.plugins.its.base.validation.ItsAssociationPolicy legacyAssociatonPolicy = gerritConfig.getEnum ( "commentlink" , getCommentLinkName ( ) , "association" , ItsAssociationPolicy.OPTIONAL ) ; return gerritConfig.getEnum ( "plugin" , pluginName , "association" , legacyAssociatonPolicy ) ; }
Source:
public void execute ( ) { try { onResult ( lastScript , false ) ; } finally { RpcStatus.INSTANCE.onRpcComplete ( null ) ; } }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { setReviewedByCurrentUser ( true ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { hide ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { com.google.gerrit.client.Gerrit.deleteSessionCookie ( ) ; hide ( ) ; }
Source:
com.google.gwtorm.client.ResultSet < com.google.gwtorm.data.TestPerson > notPerson ( com.google.gwtorm.data.TestPerson.Key key , int age ) throws com.google.gwtorm.client.OrmException ;

Target:
com.google.gwtorm.server.ResultSet < com.google.gwtorm.data.Person > olderThanDescByName ( int age ) throws com.google.gwtorm.server.OrmException ;
Source:
protected boolean useHtml ( ) { return false ; }

Target:
protected boolean supportsHtml ( ) { return false ; }
Source:
public static com.google.gerrit.index.query.Predicate < com.google.gerrit.server.project.ProjectData > description ( java.lang.String description ) { return new com.google.gerrit.server.query.project.ProjectPredicates.ProjectPredicate ( com.google.gerrit.server.index.project.ProjectField.DESCRIPTION , description ) ; }

Target:
public static com.google.gerrit.index.query.Predicate < com.google.gerrit.index.project.ProjectData > description ( java.lang.String description ) { return new com.google.gerrit.index.project.ProjectPredicate ( com.google.gerrit.index.project.ProjectField.DESCRIPTION , description ) ; }
Source:
public static java.lang.String toSideBySide ( com.google.gerrit.reviewdb.client.PatchSet.Id diffBase , com.google.gerrit.reviewdb.client.Patch.Key id ) { return com.google.gerrit.client.Dispatcher.toPatch ( "" , diffBase , id ) ; }

Target:
public static java.lang.String toPatch ( com.google.gerrit.reviewdb.client.PatchSet.Id diffBase , com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName ) { return com.google.gerrit.client.Dispatcher.toPatch ( "" , diffBase , revision , fileName , null , 0 ) ; }
Source:
private static void assertErrorStatus ( org.eclipse.jgit.transport.PushResult result , java.lang.String expectedMessage , java.lang.String ref ) { com.google.gerrit.acceptance.git.ssh.PushForReviewIT.assertStatus ( Status.REJECTED_OTHER_REASON , expectedMessage , result , ref ) ; }

Target:
private static void assertErrorStatus ( org.eclipse.jgit.transport.PushResult result , java.lang.String expectedMessage , java.lang.String ref ) { com.google.gerrit.acceptance.git.PushForReviewIT.assertStatus ( Status.REJECTED_OTHER_REASON , expectedMessage , result , ref ) ; }
Source:
public com.google.gerrit.extensions.api.changes.Changes.QueryRequest withOption ( com.google.gerrit.extensions.common.ListChangesOption options ) { this . options.add ( options ) ; return this ; }

Target:
public com.google.gerrit.extensions.api.changes.Changes.QueryRequest withOption ( com.google.gerrit.extensions.client.ListChangesOption options ) { this . options.add ( options ) ; return this ; }
Source:
public com.google.gerrit.reviewdb.client.PatchSet getCurrentPatchSet ( ) { com.google.gerrit.reviewdb.client.PatchSet.Id psId = change.currentPatchSetId ( ) ; return com.google.common.base.Preconditions.checkNotNull ( state.patchSets ( ) . get ( psId ) , "missing current patch set %s" , psId.get ( ) ) ; }

Target:
public com.google.gerrit.reviewdb.client.PatchSet getCurrentPatchSet ( ) { com.google.gerrit.reviewdb.client.PatchSet.Id psId = change.currentPatchSetId ( ) ; return com.google.common.base.Preconditions.checkNotNull ( getPatchSets ( ) . get ( psId ) , "missing current patch set %s" , psId.get ( ) ) ; }
Source:
public java.lang.String call ( ) throws java.lang.Exception { doPerformAction ( issueKey , actionName ) ; return issueKey ; }

Target:
public java.lang.String call ( ) throws java.lang.Exception { log.debug ( "Performing action on issue {}" , actionName , issueKey ) ; doPerformAction ( issueKey , actionName ) ; return issueKey ; }
Source:
public void run ( ) { renderSkips ( context ) ; }

Target:
public boolean execute ( ) { if ( ( prefs.syntaxHighlighting ( ) ) && ( isAttached ( ) ) ) { setSyntaxHighlighting ( prefs.syntaxHighlighting ( ) ) ; } return false ; }
Source:
public void doGet ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res ) throws java.io.IOException { if ( ! ( isAllowed ( req ) ) ) { res.setStatus ( HttpServletResponse.SC_FORBIDDEN ) ; return ; } streamFile ( req , res ) ; }

Target:
public void doGet ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res ) throws java.io.IOException { if ( ! ( isValidFile ( req ) ) ) { res.setStatus ( HttpServletResponse.SC_FORBIDDEN ) ; return ; } streamFile ( req , res ) ; }
Source:
public < I > com.google.gerrit.server.index.FieldDef < I , T > build ( com.google.gerrit.server.index.FieldDef.Getter < I , T > getter ) { return new com.google.gerrit.server.index.FieldDef ( name , type , stored , false , getter ) ; }

Target:
public < I > com.google.gerrit.index.FieldDef < I , T > build ( com.google.gerrit.index.FieldDef.Getter < I , T > getter ) { return new com.google.gerrit.index.FieldDef ( name , type , stored , false , getter ) ; }
Source:
private static java.lang.String getContentPath ( java.lang.String url ) { return ( url + ( url.endsWith ( "/" ) ? com.googlesource.gerrit.plugins.lfs.fs.LocalLargeFileRepository.CONTENT_PATH : "/" + ( com.googlesource.gerrit.plugins.lfs.fs.LocalLargeFileRepository.CONTENT_PATH ) ) ) + "/" ; }

Target:
private static java.lang.String getContentPath ( com.googlesource.gerrit.plugins.lfs.LfsBackend backend ) { return ( ( ( com.googlesource.gerrit.plugins.lfs.fs.LocalLargeFileRepository.CONTENT_PATH ) + "/" ) + ( com.google.common.base.Strings.isNullOrEmpty ( backend.name ) ? com.googlesource.gerrit.plugins.lfs.LfsBackend.DEFAULT : backend.name ) ) + "/" ; }
Source:
public java.lang.Object getScreenCacheToken ( ) { return anchor ; }

Target:
protected com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.data.SingleListChangeInfo > loadCallback ( ) { return new com.google.gerrit.client.rpc.ScreenLoadCallback < com.google.gerrit.client.data.SingleListChangeInfo > ( this ) { @ java.lang.Override protected void preDisplay ( final com.google.gerrit.client.data.SingleListChangeInfo result ) { display ( result ) ; } } ; }
Source:
public void pushColumnIndex ( ) { mv.visitVarInsn ( com.google.gwtorm.jdbc.gen.ILOAD , colvar ) ; }

Target:
public void pushColumnIndex ( ) { mv.visitVarInsn ( com.google.gwtorm.jdbc.ILOAD , colvar ) ; }
Source:
public void dashboardDoesNotExist ( ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.ResourceNotFoundException.class ) ; gApi.projects ( ) . name ( project.get ( ) ) . dashboard ( "dashboard" ) . get ( ) ; }

Target:
public void dashboardDoesNotExist ( ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.ResourceNotFoundException.class ) ; gApi.projects ( ) . name ( project.get ( ) ) . dashboard ( "my:dashboard" ) . get ( ) ; }
Source:
com.codahale.metrics.Gauge < V > gauge ( final java.lang.Runnable trigger ) { return new com.codahale.metrics.Gauge < V > ( ) { @ java.lang.Override public com.google.gerrit.metrics.dropwizard.V getValue ( ) { trigger.run ( ) ; return value ; } } ; }

Target:
public void register ( final java.lang.Runnable trigger ) { registry.register ( name , new com.codahale.metrics.Gauge < V > ( ) { @ java.lang.Override public com.google.gerrit.metrics.dropwizard.V getValue ( ) { trigger.run ( ) ; return value ; } } ) ; }
Source:
private com.google.gerrit.server.index.change.IndexedChangeQuery query ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p , int limit ) throws com.google.gerrit.server.query.QueryParseException { return new com.google.gerrit.server.index.change.IndexedChangeQuery ( index , p , com.google.gerrit.server.index.change.IndexRewriterTest.options ( 0 , limit ) ) ; }

Target:
private com.google.gerrit.server.index.change.IndexedChangeQuery query ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p , int limit ) throws com.google.gerrit.server.query.QueryParseException { return new com.google.gerrit.server.index.change.IndexedChangeQuery ( index , p , com.google.gerrit.server.index.change.ChangeIndexRewriterTest.options ( 0 , limit ) ) ; }
Source:
public com.google.gerrit.extensions.api.changes.Changes.QueryParameter withOptions ( java.util.EnumSet < com.google.gerrit.extensions.common.ListChangesOption > options ) { this . options = options ; return this ; }

Target:
public com.google.gerrit.extensions.api.changes.Changes.QueryRequest withOptions ( java.util.EnumSet < com.google.gerrit.extensions.common.ListChangesOption > options ) { this . options = options ; return this ; }
Source:
public static void createProject ( com.google.gerrit.acceptance.SshSession s , java.lang.String name ) throws com.jcraft.jsch.JSchException , java.io.IOException { s.exec ( ( ( "gerrit create-project --empty-commit --name \"" + name ) + "\"" ) ) ; }

Target:
public static void createProject ( com.google.gerrit.acceptance.SshSession s , java.lang.String name ) throws com.jcraft.jsch.JSchException , java.io.IOException { com.google.gerrit.acceptance.git.GitUtil.createProject ( s , name , null ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { dialogBox.center ( ) ; dialogBox.show ( ) ; usernameTxt.setFocus ( true ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { dialogBox.center ( ) ; dialogBox.show ( ) ; usernameTxt.setFocus ( true ) ; createButton.setEnabled ( false ) ; }
Source:
public com.google.gerrit.common.data.PermissionRange getRange ( java.lang.String permission ) { if ( com.google.gerrit.common.data.Permission.isLabel ( permission ) ) { return toRange ( permission , access ( permission ) ) ; } return null ; }

Target:
public com.google.gerrit.common.data.PermissionRange getRange ( java.lang.String permission ) { if ( com.google.gerrit.common.data.Permission.hasRange ( permission ) ) { return toRange ( permission , access ( permission ) ) ; } return null ; }
Source:
com.googlesource.gerrit.plugins.replication.PushAll create ( java.lang.String urlMatch ) ;

Target:
com.googlesource.gerrit.plugins.replication.PushAll create ( java.lang.String urlMatch , com.googlesource.gerrit.plugins.replication.ReplicationState state ) ;
Source:
public static void all ( com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.groups.GroupMap > callback ) { new com.google.gerrit.client.rpc.RestApi ( "/groups/" ) . 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.groups.GroupMap > callback ) { com.google.gerrit.client.groups.GroupMap.groups ( ) . get ( com.google.gerrit.client.rpc.NativeMap.copyKeysIntoChildren ( callback ) ) ; }
Source:
private static IdentifiedUser.GenericFactory userFactory ( com.googlecode.prolog_cafe.lang.Prolog engine ) { com.google.gerrit.rules.PrologEnvironment env = ( ( com.google.gerrit.rules.PrologEnvironment ) ( engine.control ) ) ; return env.getInjector ( ) . getInstance ( IdentifiedUser.GenericFactory.class ) ; }

Target:
private static IdentifiedUser.GenericFactory userFactory ( com.googlecode.prolog_cafe.lang.Prolog engine ) { return ( ( com.google.gerrit.rules.PrologEnvironment ) ( engine.control ) ) . getArgs ( ) . getUserFactory ( ) ; }
Source:
public static com.google.gerrit.client.rpc.RestApi editWithCommands ( int id ) { return com.google.gerrit.client.changes.ChangeApi.edit ( id ) . addParameter ( "download-commands" , true ) ; }

Target:
public static void editWithFiles ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.info.ChangeInfo.EditInfo > cb ) { com.google.gerrit.client.changes.ChangeApi.edit ( id ) . addParameterTrue ( "list" ) . get ( cb ) ; }
Source:
public static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.account.AccountState > equalsName ( java.lang.String name ) { return new com.google.gerrit.server.query.account.AccountPredicates.AccountPredicate ( com.google.gerrit.server.index.account.AccountField.NAME_PART , AccountQueryBuilder.FIELD_NAME , name.toLowerCase ( ) ) ; }

Target:
public static com.google.gerrit.index.query.Predicate < com.google.gerrit.server.account.AccountState > equalsName ( java.lang.String name ) { return new com.google.gerrit.server.query.account.AccountPredicates.AccountPredicate ( com.google.gerrit.server.index.account.AccountField.NAME_PART , AccountQueryBuilder.FIELD_NAME , name.toLowerCase ( ) ) ; }
Source:
com.google.gerrit.httpd.raw.FontsServlet getFontsServlet ( @ com.google.inject.name.Named ( value = com.google.gerrit.httpd.raw.StaticModule.CACHE ) com.google.common.cache.Cache < java.nio.file.Path , com.google.gerrit.httpd.raw.ResourceServlet.Resource > cache ) throws java.io.IOException { return new com.google.gerrit.httpd.raw.FontsServlet ( cache , getPaths ( ) . buckOut ) ; }

Target:
com.google.gerrit.httpd.raw.FontsDevServlet getFontsServlet ( @ com.google.inject.name.Named ( value = com.google.gerrit.httpd.raw.StaticModule.CACHE ) com.google.common.cache.Cache < java.nio.file.Path , com.google.gerrit.httpd.raw.ResourceServlet.Resource > cache ) throws java.io.IOException { return getPaths ( ) . isDev ( ) ? new com.google.gerrit.httpd.raw.FontsDevServlet ( cache , getPaths ( ) . buckOut ) : null ; }
Source:
public Account.Id lookup ( final java.lang.String accountName ) { return usernameCache.get ( accountName ) ; }

Target:
public Account.Id lookup ( final java.lang.String accountName ) { return com.google.gerrit.server.util.FutureUtil.get ( usernameCache.get ( accountName ) ) ; }
Source:
public java.lang.String getTrackingId ( ) { return key.trackingId.get ( ) ; }

Target:
public java.lang.String getTrackingId ( ) { return key.trackingKey.get ( ) ; }
Source:
public long getTimeToIdle ( java.util.concurrent.TimeUnit unit ) ;

Target:
public long getTimeToLive ( java.util.concurrent.TimeUnit unit ) ;
Source:
org.eclipse.jgit.lib.ObjectId getObjectId ( java.lang.String refName ) throws java.io.IOException { return cmds.getObjectId ( repo , refName ) ; }

Target:
com.google.common.base.Optional < org.eclipse.jgit.lib.ObjectId > getObjectId ( java.lang.String refName ) throws java.io.IOException { return cmds.get ( refName ) ; }
Source:
void addQuery ( java.lang.String name ) { if ( ( query ) == null ) { query = com.google.common.collect.Sets.newHashSet ( ) ; } com.google.common.collect.Iterables.addAll ( query , com.google.gerrit.server.OptionUtil.splitOptionValue ( name ) ) ; }

Target:
void addQuery ( java.lang.String name ) { if ( ( query ) == null ) { query = new java.util.HashSet < > ( ) ; } com.google.common.collect.Iterables.addAll ( query , com.google.gerrit.server.OptionUtil.splitOptionValue ( name ) ) ; }
Source:
public java.util.Set < java.lang.String > getEmailAddresses ( ) { if ( ! ( loadedAllEmails ) ) { validEmails.addAll ( realm.getEmailAddresses ( this ) ) ; loadedAllEmails = true ; } return validEmails ; }

Target:
public com.google.common.collect.ImmutableSet < java.lang.String > getEmailAddresses ( ) { if ( ! ( loadedAllEmails ) ) { validEmails.addAll ( realm.getEmailAddresses ( this ) ) ; loadedAllEmails = true ; } return com.google.common.collect.ImmutableSet.copyOf ( validEmails ) ; }
Source:
protected com.google.gerrit.server.query.Predicate < com.google.gerrit.server.account.AccountState > enforceVisibility ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.account.AccountState > pred ) { return new com.google.gerrit.server.query.AndSource ( pred , new com.google.gerrit.server.query.account.AccountIsVisibleToPredicate ( accountControlFactory.get ( ) ) ) ; }

Target:
protected com.google.gerrit.server.query.Predicate < com.google.gerrit.server.account.AccountState > enforceVisibility ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.account.AccountState > pred ) { return new com.google.gerrit.server.query.AndSource ( pred , new com.google.gerrit.server.query.account.AccountIsVisibleToPredicate ( accountControlFactory.get ( ) ) , start ) ; }
Source:
public java.util.List < com.google.gerrit.server.git.validators.CommitValidationMessage > onCommitReceived ( com.google.gerrit.server.events.CommitReceivedEvent receiveEvent ) throws com.google.gerrit.server.git.validators.CommitValidationException { return validCommit ( receiveEvent.command , receiveEvent.commit ) ; }

Target:
public java.util.List < com.google.gerrit.server.git.validators.CommitValidationMessage > onCommitReceived ( com.google.gerrit.server.events.CommitReceivedEvent receiveEvent ) throws com.google.gerrit.server.git.validators.CommitValidationException { if ( itsConfig.isEnabled ( receiveEvent.project.getName ( ) ) ) { return validCommit ( receiveEvent.command , receiveEvent.commit ) ; } else { return java.util.Collections.emptyList ( ) ; } }
Source:
java.lang.String getMessage ( ) { return ( replyBox ) != null ? replyBox.getMessage ( ) : null ; }

Target:
void quickApprove ( com.google.gerrit.client.changes.ReviewInput input ) { replyBox.quickApprove ( input ) ; }
Source:
public com.google.gerrit.extensions.api.changes.AddReviewerResult addReviewer ( java.lang.String in ) { }

Target:
public com.google.gerrit.extensions.api.changes.AddReviewerResult addReviewer ( java.lang.String in ) throws com.google.gerrit.extensions.restapi.RestApiException { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }
Source:
protected void onLoad ( ) { super . onLoad ( ) ; query = new com.google.gerrit.client.admin.ProjectTagsScreen.Query ( match ) . start ( start ) . run ( ) ; savedPanel = TAGS ; }

Target:
public void onOk ( ) { }
Source:
public void testDeleteOneExisting ( ) throws com.google.gwtorm.server.OrmException , java.sql.SQLException { java.sql.PreparedStatement delete = stubStatementWithUpdateCounts ( com.google.gwtorm.jdbc.TestJdbcAccess.DELETE , 1 ) ; createClassUnderTest ( ) . delete ( oneRow ) ; com.google.gwtorm.jdbc.TestJdbcAccess.assertUsedBatchingOnly ( delete ) ; }

Target:
public void deleteOneExisting ( ) throws com.google.gwtorm.server.OrmException , java.sql.SQLException { java.sql.PreparedStatement delete = stubStatementWithUpdateCounts ( com.google.gwtorm.jdbc.AbstractTestJdbcAccess.DELETE , 1 ) ; classUnderTest.delete ( oneRow ) ; assertCorrectUpdating ( delete , 1 ) ; }
Source:
public void center ( ) { super . center ( ) ; com.google.gwtexpui.globalkey.client.GlobalKey.dialog ( this ) ; signin.setFocus ( true ) ; }

Target:
public void center ( ) { show ( ) ; com.google.gwtexpui.globalkey.client.GlobalKey.dialog ( this ) ; signin.setFocus ( true ) ; }
Source:
boolean isStale ( ) { return ( lastModified ) != ( src.lastModified ( ) ) ; }

Target:
boolean isStale ( ) { return ( lastModified ) != ( com.google.gerrit.common.FileUtil.lastModified ( src ) ) ; }
Source:
protected final java.lang.String getConfiguredSecureStoreClass ( ) { HEAD ( bf3756 ) ; com.google.gerrit.pgm.util.Merge changes ; }

Target:
protected final java.lang.String getConfiguredSecureStoreClass ( ) { return com.google.gerrit.server.config.GerritServerConfigModule.getSecureStoreClassName ( sitePath ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.info.AccountPreferencesInfo p ) { this . display ( p.my ( ) ) ; widget.setEnabled ( true ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.info.GeneralPreferences p ) { this . display ( p.my ( ) ) ; widget.setEnabled ( true ) ; }
Source:
public void suggestReviewersNoResult3 ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; java.util.List < com.google.gerrit.extensions.common.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , "u" , 6 ) ; com.google.common.truth.Truth.assertThat ( reviewers ) . isEmpty ( ) ; }

Target:
, @ com.google.gerrit.acceptance.GerritConfig ( name = "suggest.from" , value = "1" ) , @ com.google.gerrit.acceptance.GerritConfig ( name = "accounts.visibility" , value = "NONE" ) } ) public void suggestReviewersNoResult2 ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; java.util.List < com.google.gerrit.extensions.common.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , name ( "u" ) , 6 ) ; com.google.common.truth.Truth.assertThat ( reviewers ) . isEmpty ( ) ; }
Source:
public org.apache.sshd.server.FileSystemView createFileSystemView ( java.lang.String userName ) { return new org.apache.sshd.server.FileSystemView ( ) { @ java.lang.Override public org.apache.sshd.server.SshFile getFile ( java.lang.String file ) { return null ; } } ; }

Target:
public org.apache.sshd.server.SshFile getFile ( org.apache.sshd.server.SshFile baseDir , java.lang.String file ) { return null ; }
Source:
void setPluginName ( @ com.google.gerrit.extensions.annotations.PluginName java.lang.String name ) { this . command = com.google.gerrit.sshd.Commands.named ( name ) ; }

Target:
void setPluginName ( @ com.google.gerrit.extensions.annotations.PluginName java.lang.String name , final java.lang.String descr ) { this . command = com.google.gerrit.sshd.Commands.named ( name ) ; }
Source:
private static void reject ( final org.eclipse.jgit.transport.ReceiveCommand cmd , final java.lang.String why ) { cmd.setResult ( ReceiveCommand.Result.REJECTED_OTHER_REASON , why ) ; }

Target:
private void reject ( final org.eclipse.jgit.transport.ReceiveCommand cmd , final java.lang.String why ) { cmd.setResult ( ReceiveCommand.Result.REJECTED_OTHER_REASON , why ) ; commandProgress.update ( 1 ) ; }
Source:
public com.googlecode.prolog_cafe.lang.NumberTerm log ( ) { if ( ( this . val ) == 0 ) throw new com.googlecode.prolog_cafe.lang.EvaluationException ( "undefined" ) ; return new com.googlecode.prolog_cafe.lang.DoubleTerm ( java.lang.Math.log ( this . val ) ) ; }

Target:
public com.googlecode.prolog_cafe.lang.NumberTerm log ( ) { if ( ( this . val ) == 0 ) throw new com.googlecode.prolog_cafe.exceptions.EvaluationException ( "undefined" ) ; return new com.googlecode.prolog_cafe.lang.DoubleTerm ( java.lang.Math.log ( this . val ) ) ; }
Source:
public void testCreatePermissionOnlyProject ( ) throws java.io.IOException { final java.lang.String newProjectName = "newProject" ; com.google.gerrit.server.project.CreateProject.Input in = new com.google.gerrit.server.project.CreateProject.Input ( ) ; in.permissionsOnly = true ; adminSession.put ( ( "/projects/" + newProjectName ) , in ) ; assertHead ( newProjectName , RefNames.REFS_CONFIG ) ; }

Target:
public void testCreatePermissionOnlyProject ( ) throws java.io.IOException { final java.lang.String newProjectName = "newProject" ; com.google.gerrit.extensions.api.projects.ProjectInput in = new com.google.gerrit.extensions.api.projects.ProjectInput ( ) ; in.permissionsOnly = true ; adminSession.put ( ( "/projects/" + newProjectName ) , in ) ; assertHead ( newProjectName , RefNames.REFS_CONFIG ) ; }
Source:
void onExpandAll ( com.google.gwt.event.dom.client.ClickEvent e ) { manager.remove ( this , otherBar ) ; otherBar.expandAll ( ) ; expandAll ( ) ; cm.focus ( ) ; }

Target:
void expandAll ( ) { expandSideAll ( ) ; otherBar.expandSideAll ( ) ; }
Source:
private static boolean isGetOrHead ( javax.servlet.http.HttpServletRequest req ) { return ( "GET" . equals ( req.getMethod ( ) ) ) || ( "HEAD" . equals ( req.getMethod ( ) ) ) ; }

Target:
private static boolean isRead ( javax.servlet.http.HttpServletRequest req ) { return ( "GET" . equals ( req.getMethod ( ) ) ) || ( "HEAD" . equals ( req.getMethod ( ) ) ) ; }
Source:
com.google.gerrit.client.reviewdb.Account byOpenidIdentity ( com.google.gerrit.client.reviewdb.Account.OpenId key ) throws com.google.gwtorm.client.OrmException ;

Target:
com.google.gerrit.client.reviewdb.Account byOpenId ( com.google.gerrit.client.reviewdb.Account.OpenId key ) throws com.google.gwtorm.client.OrmException ;