auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.util.Collection < com.google.gerrit.reviewdb.client.PatchSet > patchSets ( ) throws com.google.gwtorm.server.OrmException { if ( ( patchSets ) == null ) { patchSets = db.patchSets ( ) . byChange ( legacyId ) . toList ( ) ; } return patchSets ; }

Target:
public java.util.Collection < com.google.gerrit.reviewdb.client.PatchSet > patchSets ( ) throws com.google.gwtorm.server.OrmException { if ( ( patchSets ) == null ) { patchSets = psUtil.byChange ( db , notes ( ) ) ; } return patchSets ; }
Source:
public com.google.gerrit.extensions.client.GeneralPreferencesInfo apply ( com.google.gerrit.server.config.ConfigResource rsrc ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { try ( org.eclipse.jgit.lib.Repository git = gitMgr.openRepository ( allUsersName ) ) { return com.google.gerrit.server.account.PreferencesConfig.readDefaultPreferences ( git ) ; } }

Target:
public com.google.gerrit.extensions.client.GeneralPreferencesInfo apply ( com.google.gerrit.server.config.ConfigResource rsrc ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { try ( org.eclipse.jgit.lib.Repository git = gitMgr.openRepository ( allUsersName ) ) { return com.google.gerrit.server.account.PreferencesConfig.readDefaultGeneralPreferences ( git ) ; } }
Source:
public void setUp ( ) throws java.lang.Exception { setApiUser ( user ) ; user2 = accounts.user2 ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { setApiUser ( user ) ; user2 = accountCreator.user2 ( ) ; }
Source:
public final int hashCode ( ) { return java.util.Objects.hash ( readChanges ( ) , rawWriteChangesSetting ( ) , readChangeSequence ( ) , changePrimaryStorage ( ) , disableChangeReviewDb ( ) , fuseUpdates ( ) , failOnLoad ( ) ) ; }

Target:
public boolean failOnLoadForTest ( ) { return snapshot.get ( ) . failOnLoadForTest ( ) ; }
Source:
private static java.lang.String id ( final java.lang.Integer id ) { return id != null ? com.google.gerrit.server.util.IdGenerator.format ( id ) : "" ; }

Target:
private static java.lang.String id ( final com.google.gerrit.sshd.SshSession sd ) { return sd != null ? com.google.gerrit.server.util.IdGenerator.format ( sd.getSessionId ( ) ) : "" ; }
Source:
public void setContentLength ( int length ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public void setContentLength ( int length ) { headers.removeAll ( com.google.common.net.HttpHeaders.CONTENT_LENGTH ) ; headers.put ( com.google.common.net.HttpHeaders.CONTENT_LENGTH , java.lang.Integer.toString ( length ) ) ; }
Source:
public int hashCode ( ) { return com.google.common.base.Objects.hashCode ( commit , otherCommit , submitType , contentMerge ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( commit , otherCommit , submitType , contentMerge ) ; }
Source:
public final java.lang.String id_abbreviated ( ) { return new com.google.gerrit.reviewdb.client.Change.Key ( change_id ( ) ) . abbreviate ( ) ; }

Target:
public final java.lang.String idAbbreviated ( ) { return new com.google.gerrit.reviewdb.client.Change.Key ( changeId ( ) ) . abbreviate ( ) ; }
Source:
public void listTagsWithoutOptions ( ) throws java.lang.Exception { createTags ( ) ; java.util.List < com.google.gerrit.extensions.api.projects.TagInfo > result = getTags ( ) . get ( ) ; assertTagList ( com.google.common.collect.FluentIterable.from ( com.google.gerrit.acceptance.rest.project.TagsIT.testTags ) , result ) ; }

Target:
private void grantTagPermissions ( ) throws java.lang.Exception { grant ( Permission.SUBMIT , project , "refs/for/refs/heads/master" ) ; grant ( Permission.CREATE , project , ( ( org.eclipse.jgit.lib.Constants.R_TAGS ) + "*" ) ) ; grant ( Permission.PUSH , project , ( ( org.eclipse.jgit.lib.Constants.R_TAGS ) + "*" ) ) ; }
Source:
public com.google.gerrit.server.CurrentUser getCurrentUser ( ) { return user ; }

Target:
public com.google.gerrit.server.CurrentUser getCurrentUser ( ) { return requestUser ; }
Source:
public void accountTest ( ) throws java.lang.Exception { java.lang.String [ ] myTestEmails = new java.lang.String [ ] { "abc@g.com" , "abc+xyz@g.com" , "xyz@g.com" } ; for ( java.lang.String email : myTestEmails ) { com.google.gerrit.reviewdb.client.Account.Id id = accounts.create ( ( "User" + email ) , email , ( "FullName" + email ) ) . getId ( ) ; com.google.common.truth.Truth.assertThat ( accountCache.get ( id ) . getAccount ( ) . getPreferredEmail ( ) ) . isEqualTo ( email ) ; com.google.common.truth.Truth.assertThat ( db.accounts ( ) . get ( id ) . getPreferredEmail ( ) ) . isEqualTo ( email ) ; } }

Target:
public void accountTest ( ) throws java.lang.Exception { java.lang.String [ ] myTestEmails = new java.lang.String [ ] { "abc@g.com" , "abc+xyz@g.com" , "xyz@g.com" } ; for ( java.lang.String email : myTestEmails ) { com.google.gerrit.reviewdb.client.Account.Id id = accountCreator.create ( ( "User" + email ) , email , ( "FullName" + email ) ) . getId ( ) ; com.google.common.truth.Truth.assertThat ( accountCache.get ( id ) . getAccount ( ) . getPreferredEmail ( ) ) . isEqualTo ( email ) ; com.google.common.truth.Truth.assertThat ( db.accounts ( ) . get ( id ) . getPreferredEmail ( ) ) . isEqualTo ( email ) ; } }
Source:
protected void configure ( ) { bind ( com.google.gerrit.server.change.ChangeKindCache.class ) . to ( com.google.gerrit.server.change.ChangeKindCacheImpl.class ) ; persist ( com.google.gerrit.server.change.ChangeKindCacheImpl.ID_CACHE , com.google.gerrit.server.change.ChangeKindCacheImpl.Key.class , com.google.gerrit.server.change.ChangeKind.class ) . maximumWeight ( ( 2 << 20 ) ) . weigher ( com.google.gerrit.server.change.ChangeKindCacheImpl.ChangeKindWeigher.class ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.server.change.ChangeKindCache.class ) . to ( com.google.gerrit.server.change.ChangeKindCacheImpl.class ) ; persist ( com.google.gerrit.server.change.ChangeKindCacheImpl.ID_CACHE , com.google.gerrit.server.change.ChangeKindCacheImpl.Key.class , com.google.gerrit.extensions.client.ChangeKind.class ) . maximumWeight ( ( 2 << 20 ) ) . weigher ( com.google.gerrit.server.change.ChangeKindCacheImpl.ChangeKindWeigher.class ) ; }
Source:
protected com.google.gerrit.pgm.init.ConsoleUI getConsoleUI ( ) { return com.google.gerrit.pgm.init.ConsoleUI.getInstance ( batchMode ) ; }

Target:
protected com.google.gerrit.pgm.init.api.ConsoleUI getConsoleUI ( ) { return com.google.gerrit.pgm.init.api.ConsoleUI.getInstance ( batchMode ) ; }
Source:
public void onFailure ( java.lang.Throwable caught ) { enableButtons ( true ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { enableButtons ( true ) ; new com.google.gerrit.client.ErrorDialog ( caught.getMessage ( ) ) . center ( ) ; }
Source:
public void run ( ) { doLog ( req , rsp ) ; }

Target:
public void log ( final org.eclipse.jetty.server.Request req , final org.eclipse.jetty.server.Response rsp ) { com.google.gerrit.server.CurrentUser user = ( ( com.google.gerrit.server.CurrentUser ) ( req.getAttribute ( GetUserFilter.REQ_ATTR_KEY ) ) ) ; doLog ( req , rsp , user ) ; }
Source:
public void rebase ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { rebaseChangeEdit.apply ( changeResource , null ) ; } catch ( java.io.IOException | com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot rebase change edit" , e ) ; } }

Target:
public void rebase ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { rebaseChangeEdit.apply ( changeResource , null ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot rebase change edit" , e ) ; } }
Source:
protected < T > T buildJson ( java.lang.String path , java.lang.reflect.Type typeOfT ) throws java.lang.Exception { return new com.google.gson.Gson ( ) . < T > fromJson ( buildJsonRaw ( path ) , typeOfT ) ; }

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 void onCreateAccount ( final com.google.gerrit.server.account.AuthRequest who , final com.google.gerrit.reviewdb.client.Account account ) { usernameCache.put ( who.getLocalUser ( ) , com.google.common.base.Optional.of ( account.getId ( ) ) ) ; }

Target:
public void onCreateAccount ( final com.google.gerrit.server.account.AuthRequest who , final com.google.gerrit.reviewdb.client.Account account ) { usernameCache.put ( who.getLocalUser ( ) , java.util.Optional.of ( account.getId ( ) ) ) ; }
Source:
public void doChangeRestoreHook ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.Account account , java.lang.String reason , com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException ;

Target:
public void doChangeRestoredHook ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.Account account , java.lang.String reason , com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException ;
Source:
public java.lang.String getAuthorization ( ) { return isSignedIn ( ) ? "Bearer " + ( key.getToken ( ) ) : null ; }

Target:
public java.lang.String getXGerritAuth ( ) { return isSignedIn ( ) ? val.getAuth ( ) : null ; }
Source:
public static com.google.gerrit.server.index.IndexConfig createDefault ( ) { return com.google.gerrit.server.index.IndexConfig.create ( 0 , 0 , com.google.gerrit.server.index.IndexConfig.DEFAULT_MAX_TERMS ) ; }

Target:
public static com.google.gerrit.server.index.IndexConfig createDefault ( ) { return com.google.gerrit.server.index.IndexConfig.builder ( ) . build ( ) ; }
Source:
org.eclipse.jgit.lib.ObjectId getCommit ( ) { return commit ; }

Target:
org.eclipse.jgit.lib.ObjectId getCommit ( ) { return org.eclipse.jgit.lib.ObjectId.fromString ( commit ) ; }
Source:
public void onSuccess ( com.google.gerrit.common.data.ChangeDetail result ) { onSubmitResult ( result ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.SubmitInfo result ) { redisplay ( ) ; }
Source:
private void enableForm ( final boolean on ) { ownerTxtBox.setEnabled ( on ) ; descTxt.setEnabled ( on ) ; }

Target:
private void enableForm ( final boolean on ) { submitType.setEnabled ( on ) ; ownerTxtBox.setEnabled ( on ) ; descTxt.setEnabled ( on ) ; }
Source:
public void create ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { changeEditsPost.apply ( changeResource , null ) ; } catch ( java.io.IOException | com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot create change edit" , e ) ; } }

Target:
public void create ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { changeEditsPost.apply ( changeResource , null ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot create change edit" , e ) ; } }
Source:
public void upsertComments ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.notedb.ChangeUpdate update , java.lang.Iterable < com.google.gerrit.reviewdb.client.PatchLineComment > comments ) throws com.google.gwtorm.server.OrmException { for ( com.google.gerrit.reviewdb.client.PatchLineComment c : comments ) { update.upsertComment ( c ) ; } db.patchComments ( ) . upsert ( comments ) ; }

Target:
public void putComments ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.notedb.ChangeUpdate update , java.lang.Iterable < com.google.gerrit.reviewdb.client.PatchLineComment > comments ) throws com.google.gwtorm.server.OrmException { for ( com.google.gerrit.reviewdb.client.PatchLineComment c : comments ) { update.putComment ( c ) ; } db.patchComments ( ) . upsert ( comments ) ; }
Source:
public void execute ( java.lang.String issue , java.lang.Iterable < com.googlesource.gerrit.plugins.hooks.workflow.ActionRequest > actions ) { throw new java.lang.RuntimeException ( "unimplemented" ) ; }

Target:
public void execute ( java.lang.String issue , java.lang.Iterable < com.googlesource.gerrit.plugins.hooks.workflow.ActionRequest > actions ) { for ( com.googlesource.gerrit.plugins.hooks.workflow.ActionRequest actionRequest : actions ) { execute ( issue , actionRequest ) ; } }
Source:
public final native boolean isScrollSetByOther ( ) ;

Target:
public final native net.codemirror.lib.CodeMirror.Viewport getViewport ( ) ;
Source:
private static com.google.gerrit.client.rpc.RestApi groups ( ) { return new com.google.gerrit.client.rpc.RestApi ( "/groups/" ) ; }

Target:
private static com.google.gerrit.client.rpc.RestApi groups ( ) { return new com.google.gerrit.client.rpc.RestApi ( "groups" ) ; }
Source:
public void reviewCurrent ( ) throws com.google.gerrit.extensions.restapi.RestApiException , java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.PushOneCommit.Result r = createChange ( ) ; gApi.changes ( ) . id ( r.getChangeId ( ) ) . current ( ) . review ( com.google.gerrit.acceptance.api.revision.RevisionIT.approve ( ) ) ; }

Target:
public void reviewCurrent ( ) throws com.google.gerrit.extensions.restapi.RestApiException , java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.PushOneCommit.Result r = createChange ( ) ; gApi.changes ( ) . id ( r.getChangeId ( ) ) . current ( ) . review ( com.google.gerrit.extensions.api.changes.ReviewInput.approve ( ) ) ; }
Source:
com.google.gerrit.sshd.SshScope.Context set ( com.google.gerrit.sshd.SshScope.Context ctx ) { com.google.gerrit.sshd.SshScope.Context old = com.google.gerrit.sshd.SshScope.current.get ( ) ; com.google.gerrit.sshd.SshScope.current.set ( ctx ) ; return old ; }

Target:
com.google.gerrit.sshd.SshScope.Context set ( com.google.gerrit.sshd.SshScope.Context ctx ) { com.google.gerrit.sshd.SshScope.Context old = com.google.gerrit.sshd.SshScope.current.get ( ) ; com.google.gerrit.sshd.SshScope.current.set ( ctx ) ; local.setContext ( ctx ) ; return old ; }
Source:
public java.lang.String getDisplayString ( ) { return info.getName ( ) ; }

Target:
public java.lang.String getReplacementString ( ) { return info.getName ( ) ; }
Source:
public void mine ( com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.data.MineResult > callback ) ;

Target:
void forAccount ( com.google.gerrit.client.reviewdb.Account.Id id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.data.AccountDashboardInfo > callback ) ;
Source:
public void allRefsVisibleWithRefsMetaConfig ( ) throws java.lang.Exception { allow ( Permission.READ , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS , "refs/*" ) ; allow ( Permission.READ , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS , "refs/meta/config" ) ; assertRefs ( "HEAD" , "refs/changes/01/1/1" , "refs/changes/01/1/meta" , "refs/changes/02/2/1" , "refs/changes/02/2/meta" , "refs/heads/branch" , "refs/heads/master" , "refs/meta/config" ) ; }

Target:
public void allRefsVisibleWithRefsMetaConfig ( ) throws java.lang.Exception { allow ( Permission.READ , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS , "refs/*" ) ; allow ( Permission.READ , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS , "refs/meta/config" ) ; assertRefs ( "HEAD" , "refs/changes/01/1/1" , "refs/changes/01/1/meta" , "refs/changes/02/2/1" , "refs/changes/02/2/meta" , "refs/heads/branch" , "refs/heads/master" , "refs/meta/config" , "refs/tags/branch-tag" , "refs/tags/master-tag" ) ; }
Source:
private boolean isRepo ( java.nio.file.Path p ) { return ( ! ( p.getFileName ( ) . toString ( ) . equals ( Constants.DOT_GIT ) ) ) && ( org.eclipse.jgit.lib.RepositoryCache.FileKey.isGitRepository ( p.toFile ( ) , FS.DETECTED ) ) ; }

Target:
private boolean isRepo ( java.nio.file.Path p ) { java.lang.String name = p.getFileName ( ) . toString ( ) ; return ( ! ( name.equals ( Constants.DOT_GIT ) ) ) && ( name.endsWith ( Constants.DOT_GIT ) ) ; }
Source:
public com.google.gwt.user.client.ui.MenuItem addItem ( final com.google.gwt.user.client.ui.MenuItem item ) { item.addStyleDependentName ( "NormalItem" ) ; return super . addItem ( item ) ; }

Target:
public void addItem ( final com.google.gerrit.client.ui.LinkMenuItem i ) { add ( i ) ; }
Source:
public java.lang.String src ( ) { return ( ( ( ( srcRepoKey ) + ":" ) + ( srcRef ) ) + ":" ) + ( xmlPath ) ; }

Target:
public java.lang.String src ( ) { java.lang.String src = srcRef ; if ( destBranch.equals ( "*" ) ) { src = "*" ; } return ( ( ( ( srcRepoKey ) + ":" ) + src ) + ":" ) + ( xmlPath ) ; }
Source:
public void execute ( ) { insertNewDraft ( cm ) . run ( ) ; }

Target:
public void execute ( ) { commentManager.insertNewDraft ( cm ) . run ( ) ; }
Source:
public < T > com.google.common.base.Optional < T > getResource ( java.lang.String resourcePath , java.lang.Class < ? extends T > resourceClass ) { return com.google.common.base.Optional.absent ( ) ; }

Target:
private java.io.File getResourceFile ( java.lang.String resourcePath ) { java.io.File resourceFile = new java.io.File ( staticResourcesPath , resourcePath ) ; return resourceFile ; }
Source:
public static com.google.gerrit.server.index.IndexConfig createDefault ( ) { return com.google.gerrit.server.index.IndexConfig.create ( 0 , 0 ) ; }

Target:
public static com.google.gerrit.server.index.IndexConfig createDefault ( ) { return com.google.gerrit.server.index.IndexConfig.create ( 0 , 0 , com.google.gerrit.server.index.IndexConfig.DEFAULT_MAX_PREFIX_TERMS ) ; }
Source:
public void onFocus ( com.google.gwt.event.dom.client.FocusEvent event ) { if ( Util.C.defaultAccountGroupName ( ) . equals ( nameTxtBox.getText ( ) ) ) { nameTxtBox.setText ( "" ) ; nameTxtBox.removeStyleName ( Gerrit.RESOURCES.css ( ) . inputFieldTypeHint ( ) ) ; } }

Target:
public void onBlur ( com.google.gwt.event.dom.client.BlurEvent event ) { if ( "" . equals ( nameTxtBox.getText ( ) ) ) { nameTxtBox.setText ( Util.C.defaultAccountGroupName ( ) ) ; nameTxtBox.addStyleName ( Gerrit.RESOURCES.css ( ) . inputFieldTypeHint ( ) ) ; } }
Source:
public < T extends com.google.gwt.core.client.JavaScriptObject > void post ( java.lang.String content , com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { sendRaw ( com.google.gwt.http.client.RequestBuilder.POST , content , cb ) ; }

Target:
public < T extends com.google.gwt.core.client.JavaScriptObject > void delete ( com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { delete ( com.google.gerrit.client.rpc.RestApi.wrap ( cb ) ) ; }
Source:
public void operationComplete ( org.apache.mina.core.future.IoFuture future ) { final com.google.gerrit.sshd.SshScope.Context ctx = new com.google.gerrit.sshd.SshScope.Context ( sd ) ; final com.google.gerrit.sshd.SshScope.Context old = com.google.gerrit.sshd.SshScope.set ( ctx ) ; try { log.onLogout ( ) ; } finally { com.google.gerrit.sshd.SshScope.set ( old ) ; } }

Target:
public void operationComplete ( org.apache.mina.core.future.IoFuture future ) { final com.google.gerrit.sshd.SshScope.Context ctx = new com.google.gerrit.sshd.SshScope.Context ( sd ) ; final com.google.gerrit.sshd.SshScope.Context old = com.google.gerrit.sshd.SshScope.set ( ctx ) ; try { sshLog.onLogout ( ) ; } finally { com.google.gerrit.sshd.SshScope.set ( old ) ; } }
Source:
protected Account ( ) { }

Target:
public static com.google.gerrit.reviewdb.client.Account.Id fromRefSuffix ( java.lang.String name ) { java.lang.Integer id = com.google.gerrit.reviewdb.client.RefNames.parseRefSuffix ( name ) ; return id != null ? new com.google.gerrit.reviewdb.client.Account.Id ( id ) : null ; }
Source:
com.google.gerrit.client.diff.DraftBox addReplyBox ( ) { com.google.gerrit.client.diff.DraftBox box = getDiffScreen ( ) . addDraftBox ( getDiffScreen ( ) . createReply ( comment ) , getSide ( ) ) ; registerReplyBox ( box ) ; return box ; }

Target:
com.google.gerrit.client.diff.DraftBox addReplyBox ( ) { com.google.gerrit.client.diff.DraftBox box = getCommentManager ( ) . addDraftBox ( getCommentManager ( ) . createReply ( comment ) , getCm ( ) . side ( ) ) ; registerReplyBox ( box ) ; return box ; }
Source:
public void configureCmds ( ) { command ( "print" ) . to ( com.google.gerrit.plugins.PrintHelloWorldCommand.class ) ; }

Target:
public void configureCommands ( ) { command ( "print" ) . to ( com.google.gerrit.plugins.PrintHelloWorldCommand.class ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.projects.ProjectMap map ) { callback.onSuggestionsReady ( req , new com.google.gerrit.client.ui.Response ( map.values ( ) . asList ( ) ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.projects.ProjectMap map ) { callback.onSuggestionsReady ( req , new com.google.gerrit.client.ui.Response ( com.google.gerrit.client.rpc.Natives.asList ( map.values ( ) ) ) ) ; }
Source:
protected void preDisplay ( final java.util.List < com.google.gerrit.reviewdb.AccountGroup > result ) { groups.display ( result ) ; groups.finishDisplay ( ) ; }

Target:
protected void preDisplay ( com.google.gerrit.common.data.GroupList result ) { addPanel.setVisible ( result.isCanCreateGroup ( ) ) ; groups.display ( result.getGroups ( ) ) ; groups.finishDisplay ( ) ; }
Source:
public void reload ( ) { execResource ( com.google.gerrit.pgm.shell.JythonShell.STARTUP_RESOURCE ) ; execFile ( com.google.gerrit.launcher.GerritLauncher.getHomeDirectory ( ) , com.google.gerrit.pgm.shell.JythonShell.STARTUP_FILE ) ; }

Target:
public void reload ( ) { execResource ( com.google.gerrit.pgm.JythonShell.STARTUP_RESOURCE ) ; execFile ( com.google.gerrit.launcher.GerritLauncher.getHomeDirectory ( ) , com.google.gerrit.pgm.JythonShell.STARTUP_FILE ) ; }
Source:
protected void setApiHeaders ( javax.servlet.http.HttpServletResponse res , com.google.gitiles.FormatType type ) { setApiHeaders ( res , type.getMimeType ( ) ) ; }

Target:
protected void setApiHeaders ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res , com.google.gitiles.FormatType type ) throws java.io.IOException { setApiHeaders ( req , res , type.getMimeType ( ) ) ; }
Source:
public final boolean isHttpPasswordSettingsEnabled ( ) { if ( ( isLdap ( ) ) && ( isGitBasicAuth ( ) ) ) { return false ; } return true ; }

Target:
public final boolean siteHasUsernames ( ) { if ( ( ( isCustomExtension ( ) ) && ( ( httpPasswordUrl ( ) ) != null ) ) && ( ! ( canEdit ( AccountFieldName.USER_NAME ) ) ) ) { return false ; } return true ; }
Source:
protected com.google.gerrit.reviewdb.AccountGroup missing ( final com.google.gerrit.reviewdb.AccountGroup.Id key ) { return missingGroup ( key ) ; }

Target:
public com.google.gerrit.reviewdb.AccountGroup get ( final com.google.gerrit.reviewdb.AccountGroup.NameKey name ) { return byName.get ( name ) ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.server.schema.SchemaVersion.class ) . annotatedWith ( com.google.gerrit.server.schema.Current.class ) . to ( info.C ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.server.schema.SchemaVersion.class ) . annotatedWith ( com.google.gerrit.server.schema.Current.class ) . to ( com.google.gerrit.server.schema.SchemaVersion.C ) ; }
Source:
public void setPatchSets ( java.util.Collection < com.google.gerrit.reviewdb.client.PatchSet > patchSets ) { BRANCH ( d57655 ) ; }

Target:
public void setPatchSets ( java.util.Collection < com.google.gerrit.reviewdb.client.PatchSet > patchSets ) { this . currentPatchSet = null ; this . patchSets = patchSets ; }
Source:
public final native void scrollToY ( int y ) ;

Target:
public final native void setOldViewportSize ( int lines ) ;
Source:
private static java.lang.String findId ( final java.util.Collection < com.google.gerrit.reviewdb.AccountExternalId.AccountExternalId > ids ) { for ( final com.google.gerrit.reviewdb.AccountExternalId.AccountExternalId i : ids ) { if ( i.isScheme ( AccountExternalId.SCHEME_GERRIT ) ) { return i.getSchemeRest ( ) ; } } return null ; }

Target:
private static java.lang.String findId ( final java.util.Collection < com.google.gerrit.reviewdb.AccountExternalId > ids ) { for ( final com.google.gerrit.reviewdb.AccountExternalId i : ids ) { if ( i.isScheme ( AccountExternalId.SCHEME_GERRIT ) ) { return i.getSchemeRest ( ) ; } } return null ; }
Source:
protected int findRow ( java.lang.Object id ) { com.google.gerrit.client.diff.FileInfo info = map.get ( ( ( java.lang.String ) ( id ) ) ) ; return info != null ? 1 + ( info._row ( ) ) : - 1 ; }

Target:
protected int findRow ( java.lang.Object id ) { com.google.gerrit.client.info.FileInfo info = map.get ( ( ( java.lang.String ) ( id ) ) ) ; return info != null ? 1 + ( info._row ( ) ) : - 1 ; }
Source:
protected void onInitUI ( ) { super . onInitUI ( ) ; initName ( ) ; initOwner ( ) ; initDescription ( ) ; initMemberList ( ) ; }

Target:
protected void onInitUI ( ) { super . onInitUI ( ) ; initName ( ) ; initOwner ( ) ; initDescription ( ) ; initRealmProperties ( ) ; initMemberList ( ) ; }
Source:
public void onSuccess ( final com.google.gerrit.client.VoidResult result ) { saveOwner.setEnabled ( false ) ; }

Target:
public void onSuccess ( final com.google.gerrit.client.groups.GroupInfo result ) { updateOwnerGroup ( result ) ; saveOwner.setEnabled ( false ) ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < com.google.gerrit.reviewdb.AccountDiffPreference > event ) { update ( event.getValue ( ) ) ; }

Target:
public void execute ( ) { try { onResult ( lastScript , false ) ; } finally { RpcStatus.INSTANCE.onRpcComplete ( null ) ; } }
Source:
public java.lang.String apply ( com.google.gerrit.server.plugins.ServerPluginProvider provider ) { return provider.getProviderPluginName ( ) ; }

Target:
private static java.lang.String providersListToString ( java.lang.Iterable < com.google.gerrit.server.plugins.ServerPluginProvider > providersHandlers ) { return java.util.stream.StreamSupport.stream ( providersHandlers.spliterator ( ) , false ) . map ( ServerPluginProvider :: getProviderPluginName ) . collect ( java.util.stream.Collectors.joining ( ", " ) ) ; }
Source:
public void defaultGpgCertificationMatchesEmail ( ) throws java.lang.Exception { com.google.gerrit.gpg.testutil.TestKey key = com.google.gerrit.gpg.testutil.TestKey.key5 ( ) ; assertProblems ( com.google.gerrit.gpg.testutil.TestKey.key5 ( ) , ( "Key must contain a valid certification for one of the following " + ( ( "identities:\n" + " gerrit:user\n" ) + " username:user" ) ) ) ; addExternalId ( "test" , "test" , "test5@example.com" ) ; assertNoProblems ( key ) ; }

Target:
public void defaultGpgCertificationMatchesEmail ( ) throws java.lang.Exception { com.google.gerrit.gpg.testutil.TestKey key = com.google.gerrit.gpg.testutil.TestKeys.key5 ( ) ; assertProblems ( com.google.gerrit.gpg.testutil.TestKeys.key5 ( ) , ( "Key must contain a valid certification for one of the following " + ( ( "identities:\n" + " gerrit:user\n" ) + " username:user" ) ) ) ; addExternalId ( "test" , "test" , "test5@example.com" ) ; assertNoProblems ( key ) ; }
Source:
void resizePaddingWidget ( ) { paddingWidgetEle.getStyle ( ) . setHeight ( getOffsetHeight ( ) , Unit.PX ) ; }

Target:
public void execute ( ) { paddingWidgetEle.getStyle ( ) . setHeight ( getOffsetHeight ( ) , Unit.PX ) ; paddingWidget.changed ( ) ; selfWidget.changed ( ) ; }
Source:
public void setAssignee ( com.google.common.base.Optional < com.google.gerrit.reviewdb.client.Account.Id > assignee ) { this . assignee = assignee ; }

Target:
public void setRefStates ( java.lang.Iterable < byte [ ] > refStates ) { this . refStates = com.google.common.collect.ImmutableList.copyOf ( refStates ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { upToChange ( true ) . run ( ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { header.reviewedAndNext ( ) . run ( ) ; }
Source:
protected java.lang.Object getRowItemKey ( final com.google.gerrit.reviewdb.client.AccountGroup item ) { return item.getId ( ) ; }

Target:
protected java.lang.Object getRowItemKey ( final com.google.gerrit.client.groups.GroupInfo item ) { return item.getGroupId ( ) ; }
Source:
public void testIndexChangeThrowsException ( ) throws java.lang.Exception { setUpMocks ( com.ericsson.gerrit.plugins.multimaster.RestSessionTest.INDEX_OP , com.ericsson.gerrit.plugins.multimaster.RestSessionTest.FAILED , com.ericsson.gerrit.plugins.multimaster.RestSessionTest.EXCEPTION_MSG , com.ericsson.gerrit.plugins.multimaster.RestSessionTest.THROW_EXCEPTION ) ; com.google.common.truth.Truth.assertThat ( restClient.index ( com.ericsson.gerrit.plugins.multimaster.RestSessionTest.CHANGE_NUMBER ) ) . isFalse ( ) ; }

Target:
public void testIndexChangeThrowsException ( ) throws java.lang.Exception { setUpMocks ( com.ericsson.gerrit.plugins.multimaster.RestEventForwarderTest.INDEX_OP , com.ericsson.gerrit.plugins.multimaster.RestEventForwarderTest.FAILED , com.ericsson.gerrit.plugins.multimaster.RestEventForwarderTest.EXCEPTION_MSG , com.ericsson.gerrit.plugins.multimaster.RestEventForwarderTest.THROW_EXCEPTION ) ; com.google.common.truth.Truth.assertThat ( eventForwarder.indexChange ( com.ericsson.gerrit.plugins.multimaster.RestEventForwarderTest.CHANGE_NUMBER ) ) . isFalse ( ) ; }
Source:
public org.eclipse.jgit.revwalk.RevWalk getRevWalk ( ) throws java.io.IOException { initRepository ( ) ; return revWalk ; }

Target:
public org.eclipse.jgit.lib.ObjectInserter getInserter ( ) throws java.io.IOException { return this . getObjectInserter ( ) ; }
Source:
public void afterTest ( ) { notesMigration.resetFromEnv ( ) ; }

Target:
public void afterTest ( ) { com.google.gerrit.testutil.NoteDbMode.resetFromEnv ( notesMigration ) ; }
Source:
public int run ( ) throws java.lang.Exception { com.google.inject.Injector sysInjector = com.google.gerrit.server.config.GerritGlobalModule.createInjector ( ) ; com.google.inject.Injector sshInjector = createSshInjector ( sysInjector ) ; com.google.gerrit.server.Lifecycle.start ( sysInjector , sshInjector ) ; return never ( ) ; }

Target:
private com.google.inject.Injector createHttpdInjector ( ) { final java.util.List < com.google.inject.Module > modules = new java.util.ArrayList < com.google.inject.Module > ( ) ; modules.add ( new com.google.gerrit.pgm.http.jetty.JettyModule ( new com.google.gerrit.pgm.http.jetty.JettyEnv ( webInjector ) ) ) ; return sysInjector.createChildInjector ( modules ) ; }
Source:
public void removed ( final com.google.gerrit.reviewdb.client.Account.Id deleter ) { removedBy = deleter ; removedOn = com.google.gerrit.reviewdb.client.AccountGroupMemberAudit.now ( ) ; }

Target:
public void removed ( final com.google.gerrit.reviewdb.client.Account.Id deleter , final java.sql.Timestamp when ) { removedBy = deleter ; removedOn = when ; }
Source:
public static java.lang.String toChange2 ( com.google.gerrit.reviewdb.client.Change.Id c , java.lang.String p ) { return ( ( "/c2/" + c ) + "/" ) + p ; }

Target:
public static java.lang.String toChange ( com.google.gerrit.reviewdb.client.Change.Id c , java.lang.String p ) { return ( ( "/c/" + c ) + "/" ) + p ; }
Source:
boolean handles ( java.io.File srcFile ) ;

Target:
boolean handles ( java.nio.file.Path srcPath ) ;
Source:
private static void addFooter ( java.lang.StringBuilder sb , org.eclipse.jgit.revwalk.FooterKey footer , java.lang.Object value ) { sb.append ( footer.getName ( ) ) . append ( ": " ) . append ( value ) . append ( '\n' ) ; }

Target:
private static void addFooter ( java.lang.StringBuilder sb , org.eclipse.jgit.revwalk.FooterKey footer , java.lang.Object value ) { com.google.gerrit.server.notedb.ChangeUpdate.addFooter ( sb , footer ) . append ( value ) . append ( '\n' ) ; }
Source:
public final com.google.gerrit.server.index.Schema < V > getPrevious ( ) { if ( ( schemas.size ( ) ) <= 1 ) { return null ; } return com.google.common.collect.Iterables.get ( schemas.descendingMap ( ) . values ( ) , 1 ) ; }

Target:
public final com.google.gerrit.index.Schema < V > getPrevious ( ) { if ( ( schemas.size ( ) ) <= 1 ) { return null ; } return com.google.common.collect.Iterables.get ( schemas.descendingMap ( ) . values ( ) , 1 ) ; }
Source:
public static void addSshKey ( java.lang.String account , java.lang.String sshPublicKey , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.account.SshKeyInfo > cb ) { com.google.gerrit.client.account.AccountApi.accounts ( ) . id ( account ) . view ( "sshkeys" ) . post ( sshPublicKey , cb ) ; }

Target:
public static void addSshKey ( java.lang.String account , java.lang.String sshPublicKey , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.account.SshKeyInfo > cb ) { new com.google.gerrit.client.rpc.RestApi ( "/accounts/" ) . id ( account ) . view ( "sshkeys" ) . post ( sshPublicKey , cb ) ; }
Source:
protected void assertSubmittedTogether ( java.lang.String chId , java.lang.String ... expected ) throws java.lang.Exception { java.util.EnumSet < com.google.gerrit.extensions.client.SubmittedTogetherOption > o = java.util.EnumSet.noneOf ( com.google.gerrit.extensions.client.SubmittedTogetherOption.class ) ; assertSubmittedTogether ( chId , o , expected ) ; }

Target:
public void startEventRecorder ( ) { eventRecorder = eventRecorderFactory.create ( user ) ; }
Source:
public boolean deleteChangeFromIndex ( final int changeId ) { return new com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestForwarder.Request ( ( ( "delete change " + changeId ) + " from index" ) ) { @ java.lang.Override com.ericsson.gerrit.plugins.highavailability.forwarder.rest.HttpResponseHandler.HttpResult send ( ) throws java.io.IOException { return httpSession.delete ( buildIndexEndpoint ( changeId ) ) ; } } . execute ( ) ; }

Target:
public boolean deleteChangeFromIndex ( final int changeId ) { return new com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestForwarder.Request ( "delete change" , changeId ) { @ java.lang.Override com.ericsson.gerrit.plugins.highavailability.forwarder.rest.HttpResponseHandler.HttpResult send ( ) throws java.io.IOException { return httpSession.delete ( buildIndexEndpoint ( changeId ) ) ; } } . execute ( ) ; }
Source:
public void voteOnBehalfOfWithCommentWritingJson ( ) throws java.lang.Exception { testVoteOnBehalfOfWithComment ( ) ; }

Target:
public void voteOnBehalfOfWithCommentWritingJson ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isTrue ( ) ; testVoteOnBehalfOfWithComment ( ) ; }
Source:
static java.lang.String encoding ( javax.servlet.http.HttpServletRequest req ) { return com.google.common.base.Objects.firstNonNull ( req.getCharacterEncoding ( ) , "UTF-8" ) ; }

Target:
static java.lang.String encoding ( javax.servlet.http.HttpServletRequest req ) { return com.google.common.base.MoreObjects.firstNonNull ( req.getCharacterEncoding ( ) , "UTF-8" ) ; }
Source:
void restore ( com.googlecode.prolog_cafe.lang.Prolog engine ) { engine.cont = this . cont ; engine.areg1 = this . areg1 ; engine.areg2 = this . areg2 ; engine.areg3 = this . areg3 ; engine.areg4 = this . areg4 ; }

Target:
void restore ( com.googlecode.prolog_cafe.lang.Prolog engine ) { engine.cont = this . cont ; engine.r1 = this . r1 ; engine.r2 = this . r2 ; engine.r3 = this . r3 ; engine.r4 = this . r4 ; }
Source:
protected java.lang.String getId ( com.google.gerrit.server.project.ProjectData projectState ) { return projectState.getProject ( ) . getName ( ) ; }

Target:
protected java.lang.String getId ( com.google.gerrit.index.project.ProjectData projectState ) { return projectState.getProject ( ) . getName ( ) ; }
Source:
java.lang.String getPluginName ( java.io.File srcFile ) ;

Target:
java.lang.String getPluginName ( java.nio.file.Path srcPath ) ;
Source:
final native void set_submittable ( boolean s ) ;

Target:
final native void setSubmittable ( boolean s ) ;
Source:
public com.google.gwtjsonrpc.client.VoidResult run ( com.google.gerrit.client.reviewdb.ReviewDb db , com.google.gwtorm.client.Transaction txn , boolean retry ) throws com.google.gwtorm.client.OrmException { return doAddReviewers ( reviewerIds , id , db , txn ) ; }

Target:
public java.lang.Boolean run ( com.google.gerrit.client.reviewdb.ReviewDb db , com.google.gwtorm.client.Transaction txn , boolean retry ) throws com.google.gwtorm.client.OrmException { return doAbandonChange ( message , change , patchSetId , cmsg , db , txn ) ; }
Source:
void addProjectWatch ( java.lang.String projectName , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.AccountProjectWatchInfo > callback ) ;

Target:
void addProjectWatch ( java.lang.String projectName , java.lang.String filter , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.AccountProjectWatchInfo > callback ) ;
Source:
public void init ( javax.servlet.FilterConfig cfg ) throws javax.servlet.ServletException { contextInitialized ( new javax.servlet.ServletContextEvent ( cfg.getServletContext ( ) ) ) ; init ( ) ; manager.start ( ) ; }

Target:
public void init ( javax.servlet.FilterConfig cfg ) throws javax.servlet.ServletException { servletContext = cfg.getServletContext ( ) ; contextInitialized ( new javax.servlet.ServletContextEvent ( servletContext ) ) ; init ( ) ; manager.start ( ) ; }
Source:
public void noCopyAllScoresIfNoChange ( ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit.Result patchSet = readyPatchSetForNoChangeRebase ( ) ; rebase ( patchSet ) ; assertApproval ( patchSet , 0 ) ; }

Target:
public void noCopyAllScoresIfNoChange ( ) throws java.lang.Exception { codeReview.setCopyAllScoresIfNoChange ( false ) ; saveLabelConfig ( ) ; com.google.gerrit.acceptance.PushOneCommit.Result patchSet = readyPatchSetForNoChangeRebase ( ) ; rebase ( patchSet ) ; assertApproval ( patchSet , 0 ) ; }
Source:
public void run ( ) { com.google.gerrit.client.diff.DraftBox draftBox = ( ( com.google.gerrit.client.diff.DraftBox ) ( box ) ) ; if ( draftBox.isEdit ( ) ) { draftBox.editArea.setFocus ( true ) ; } }

Target:
public void run ( ) { skipManager.removeAll ( ) ; skipManager.render ( context , diff ) ; diffTable.overview.refresh ( ) ; }
Source:
public com.google.gerrit.client.diff.DiffApi webLinksOnly ( ) { call.addParameter ( "weblinks-only" , true ) ; return this ; }

Target:
public com.google.gerrit.client.diff.DiffApi webLinksOnly ( ) { call.addParameterTrue ( "weblinks-only" ) ; return this ; }
Source:
public void onLoad ( com.google.gerrit.plugin.client.extension.Panel panel ) { panel.setWidget ( new com.googlesource.gerrit.plugins.cookbook.client.CookBookProfileExtension ( ) ) ; }

Target:
public void onLoad ( com.google.gerrit.plugin.client.extension.Panel panel ) { com.google.gerrit.client.info.AccountInfo accountInfo = panel.getObject ( GerritUiExtensionPoint.Key.ACCOUNT_INFO ) . cast ( ) ; panel.setWidget ( new com.googlesource.gerrit.plugins.cookbook.client.CookBookProfileExtension ( accountInfo ) ) ; }
Source:
private int getSepPos ( java.lang.String fromTo ) { int sepPos = fromTo.indexOf ( com.googlesource.gerrit.plugins.github.GitHubConfig.FROM_TO_SEPARATOR ) ; if ( sepPos < 0 ) { throw new com.googlesource.gerrit.plugins.github.InvalidGitHubConfigException ( fromTo ) ; } return sepPos ; }

Target:
private int getSepPos ( java.lang.String fromTo , boolean redirect ) { int sepPos = fromTo.indexOf ( getSeparator ( redirect ) ) ; if ( sepPos < 0 ) { throw new com.googlesource.gerrit.plugins.github.InvalidGitHubConfigException ( fromTo ) ; } return sepPos ; }
Source:
public com.google.common.util.concurrent.ListenableFuture < ? > index ( com.google.gerrit.server.query.change.ChangeData cd ) { return ( executor ) != null ? executor.submit ( indexTask ( cd ) ) : com.google.common.util.concurrent.Futures.immediateFuture ( null ) ; }

Target:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > indexAsync ( com.google.gerrit.server.query.change.ChangeData cd ) { return ( executor ) != null ? submit ( indexTask ( cd ) ) : com.google.common.util.concurrent.Futures.< java.lang.Object , java.io.IOException > immediateCheckedFuture ( null ) ; }
Source:
public java.lang.String getAccessToken ( ) ;

Target:
public java.lang.String getAuthorization ( ) ;
Source:
private void submit ( ) { Util.MANAGE_SVC.submit ( patchSetId , new com.google.gerrit.client.rpc.GerritCallback < com.google.gerrit.common.data.ChangeDetail > ( ) { public void onSuccess ( com.google.gerrit.common.data.ChangeDetail result ) { saveStateOnUnload = false ; goChange ( ) ; } } ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { super . onFailure ( caught ) ; enableForm ( true ) ; }
Source:
public double doubleValue ( ) { return ( ( double ) ( this . val ) ) ; }

Target:
public long longValue ( ) { return ( ( long ) ( this . val ) ) ; }
Source:
public void testUpdateNothing ( ) throws com.google.gwtorm.client.OrmException , java.sql.SQLException { createClassUnderTest ( ) . update ( com.google.gwtorm.jdbc.TestJdbcAccess.NO_DATA ) ; }

Target:
public void testUpdateNothing ( ) throws com.google.gwtorm.server.OrmException { createClassUnderTest ( ) . update ( noData ) ; }
Source:
public void deleteGpgKey ( ) throws java.lang.Exception { com.google.gerrit.gpg.testutil.TestKey key = com.google.gerrit.gpg.testutil.TestKey.key1 ( ) ; java.lang.String id = key.getKeyIdString ( ) ; addExternalIdEmail ( admin , "test1@example.com" ) ; addGpgKey ( key.getPublicKeyArmored ( ) ) ; assertKeys ( key ) ; gApi.accounts ( ) . self ( ) . gpgKey ( id ) . delete ( ) ; assertKeys ( ) ; exception.expect ( com.google.gerrit.extensions.restapi.ResourceNotFoundException.class ) ; exception.expectMessage ( id ) ; gApi.accounts ( ) . self ( ) . gpgKey ( id ) . get ( ) ; }

Target:
public void deleteGpgKey ( ) throws java.lang.Exception { com.google.gerrit.gpg.testutil.TestKey key = com.google.gerrit.gpg.testutil.TestKeys.key1 ( ) ; java.lang.String id = key.getKeyIdString ( ) ; addExternalIdEmail ( admin , "test1@example.com" ) ; addGpgKey ( key.getPublicKeyArmored ( ) ) ; assertKeys ( key ) ; gApi.accounts ( ) . self ( ) . gpgKey ( id ) . delete ( ) ; assertKeys ( ) ; exception.expect ( com.google.gerrit.extensions.restapi.ResourceNotFoundException.class ) ; exception.expectMessage ( id ) ; gApi.accounts ( ) . self ( ) . gpgKey ( id ) . get ( ) ; }
Source:
private com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > rewrite ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in , int limit ) throws com.google.gerrit.server.query.QueryParseException { return rewrite.rewrite ( in , 0 , limit ) ; }

Target:
private static com.google.gerrit.server.query.change.QueryOptions options ( int start , int limit ) { return com.google.gerrit.server.query.change.QueryOptions.create ( com.google.gerrit.server.index.IndexRewriteTest.CONFIG , start , limit ) ; }
Source:
private com.google.gerrit.httpd.raw.StaticModule.Paths getPaths ( ) { if ( ( paths ) == null ) { paths = new com.google.gerrit.httpd.raw.StaticModule.Paths ( ) ; } return paths ; }

Target:
private com.google.gerrit.httpd.raw.StaticModule.Paths getPaths ( ) { if ( ( paths ) == null ) { paths = new com.google.gerrit.httpd.raw.StaticModule.Paths ( options ) ; } return paths ; }
Source:
public void submit ( com.google.gerrit.extensions.api.changes.SubmitInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { submit.apply ( revision , in ) ; } catch ( com.google.gwtorm.server.OrmException | java.io.IOException | com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot submit change" , e ) ; } }

Target:
public void submit ( com.google.gerrit.extensions.api.changes.SubmitInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { submit.apply ( revision , in ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot submit change" , e ) ; } }
Source:
public void move ( com.google.gerrit.extensions.api.changes.MoveInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { move.apply ( change , in ) ; } catch ( com.google.gwtorm.server.OrmException | com.google.gerrit.server.update.UpdateException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot move change" , e ) ; } }

Target:
public void move ( com.google.gerrit.extensions.api.changes.MoveInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { move.apply ( change , in ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot move change" , e ) ; } }
Source:
private com.google.gerrit.pgm.Init.SiteRun createSiteRun ( final com.google.gerrit.pgm.Init.SiteInit init ) { return createSysInjector ( init ) . getInstance ( com.google.gerrit.pgm.Init.SiteRun.class ) ; }

Target:
public java.lang.String apply ( com.google.gerrit.pgm.init.InitPlugins.PluginData input ) { return input.name ; }
Source:
private java.lang.String comparePattern ( ) { if ( getName ( ) . startsWith ( com.google.gerrit.common.data.AccessSection.REGEX_PREFIX ) ) { return getName ( ) . substring ( com.google.gerrit.common.data.AccessSection.REGEX_PREFIX.length ( ) ) ; } return getName ( ) ; }

Target:
private java.lang.String comparePattern ( ) { if ( getName ( ) . startsWith ( com.google.gerrit.common.data.REGEX_PREFIX ) ) { return getName ( ) . substring ( com.google.gerrit.common.data.REGEX_PREFIX.length ( ) ) ; } return getName ( ) ; }
Source:
public com.google.gerrit.reviewdb.client.PatchSetApproval getSubmitter ( final com.google.gerrit.reviewdb.client.PatchSet.Id c ) { return approvalsUtil.getSubmitter ( db.get ( ) , c ) ; }

Target:
com.google.gerrit.reviewdb.client.PatchSetApproval getSubmitter ( com.google.gerrit.server.git.CodeReviewCommit c ) { return approvalsUtil.getSubmitter ( db.get ( ) , c.notes , c.patchsetId ) ; }
Source:
public void execute ( ) { for ( com.google.gerrit.client.diff.CommentBox box : allBoxes ) { box.resizePaddingWidget ( ) ; } }

Target:
private void resizeBoxPaddings ( ) { for ( com.google.gerrit.client.diff.CommentBox box : allBoxes ) { box.resizePaddingWidget ( ) ; } }
Source:
protected com.google.common.base.Optional < com.googlesource.gerrit.plugins.lfs.LfsAuthTokenTest.TestToken > createToken ( java.util.List < java.lang.String > values ) { return com.google.common.base.Optional.of ( new com.googlesource.gerrit.plugins.lfs.LfsAuthTokenTest.TestToken ( values.get ( 0 ) ) ) ; }

Target:
protected java.util.Optional < com.googlesource.gerrit.plugins.lfs.LfsAuthTokenTest.TestToken > createToken ( java.util.List < java.lang.String > values ) { return java.util.Optional.of ( new com.googlesource.gerrit.plugins.lfs.LfsAuthTokenTest.TestToken ( values.get ( 0 ) ) ) ; }
Source:
private org.eclipse.jgit.lib.PersonIdent createPersonIdent ( ) { return identifiedUser.get ( ) . newCommitterIdent ( serverIdent.getWhen ( ) , serverIdent.getTimeZone ( ) ) ; }

Target:
public org.eclipse.jgit.lib.PersonIdent getUserPersonIdent ( ) { return createPersonIdent ( identifiedUser.get ( ) ) ; }
Source:
public void setCookie ( javax.servlet.http.HttpServletRequest request , javax.servlet.http.HttpServletResponse response , com.gitblit.models.UserModel user ) { }

Target:
public void setup ( com.gitblit.IStoredSettings settings ) { }
Source:
public void addPublishedComments ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.notedb.ChangeUpdate update , java.lang.Iterable < com.google.gerrit.reviewdb.client.PatchLineComment > comments ) throws com.google.gwtorm.server.OrmException { for ( com.google.gerrit.reviewdb.client.PatchLineComment c : comments ) { update.putComment ( c ) ; } db.patchComments ( ) . upsert ( comments ) ; }

Target:
public void addPublishedComments ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.notedb.ChangeUpdate update , java.lang.Iterable < com.google.gerrit.reviewdb.client.PatchLineComment > comments ) throws com.google.gwtorm.server.OrmException { for ( com.google.gerrit.reviewdb.client.PatchLineComment c : comments ) { update.upsertComment ( c ) ; } db.patchComments ( ) . upsert ( comments ) ; }