auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void onSuccess ( com.google.gerrit.common.data.PatchSetDetail result ) { commitMessageBlock.display ( result.getInfo ( ) . getMessage ( ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.common.data.PatchSetDetail result ) { commitMessageBlock.setVisible ( true ) ; commitMessageBlock.display ( result.getInfo ( ) . getMessage ( ) ) ; }
Source:
public static void grant ( com.google.gerrit.server.git.ProjectConfig config , com.google.gerrit.common.data.AccessSection section , java.lang.String permission , boolean force , com.google.gerrit.common.data.GroupReference ... groupList ) { com.google.gerrit.server.schema.AclUtil.grant ( config , section , permission , force , null , groupList ) ; }

Target:
public static void grant ( com.google.gerrit.server.project.ProjectConfig config , com.google.gerrit.common.data.AccessSection section , java.lang.String permission , boolean force , com.google.gerrit.common.data.GroupReference ... groupList ) { com.google.gerrit.server.schema.AclUtil.grant ( config , section , permission , force , null , groupList ) ; }
Source:
public void onFailure ( java.lang.Throwable caught ) { if ( ! ( failed ) ) { failed = true ; failedThrowable = caught ; } remaining.remove ( this ) ; this . applyAllFailed ( ) ; }

Target:
private < T > void failure ( com.google.gerrit.client.rpc.CallbackGroup.CallbackGlue w , java.lang.Throwable caught ) { if ( ! ( failed ) ) { failed = true ; failedThrowable = caught ; } remaining.remove ( w ) ; apply ( ) ; }
Source:
private void infoRow ( final int row , final java.lang.String name ) { info.setText ( row , 0 , name ) ; info.getCellFormatter ( ) . addStyleName ( row , 0 , "header" ) ; }

Target:
private void infoRow ( final int row , final java.lang.String name ) { info.setText ( row , labelIdx , name ) ; info.getCellFormatter ( ) . addStyleName ( row , 0 , "header" ) ; }
Source:
public byte [ ] readFile ( java.lang.String repoName , java.lang.String ref , java.lang.String path ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { org.eclipse.jgit.lib.Repository repo ; repo = openRepository ( repoName ) ; return com.googlesource.gerrit.plugins.supermanifest.SuperManifestRefUpdatedListener.readBlob ( repo , ( ( ref + ":" ) + path ) ) ; }

Target:
public byte [ ] readFile ( java.lang.String repoName , java.lang.String ref , java.lang.String path ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { org.eclipse.jgit.lib.Repository repo ; repo = openRepository ( repoName ) ; return com.googlesource.gerrit.plugins.supermanifest.Utils.readBlob ( repo , ( ( ref + ":" ) + path ) ) ; }
Source:
public int hashCode ( ) { return ( ( getOperator ( ) . hashCode ( ) ) * 31 ) + ( id.hashCode ( ) ) ; }

Target:
public int hashCode ( ) { return ( ( com.google.gerrit.server.query.ObjectIdPredicate.getOperator ( ) . hashCode ( ) ) * 31 ) + ( id.hashCode ( ) ) ; }
Source:
private com.google.gerrit.server.git.SubmitStrategy createStrategy ( ) throws com.google.gerrit.server.git.MergeException { return submitStrategyFactory.create ( destProject.getSubmitType ( ) , db , repo , rw , inserter , canMergeFlag , getAlreadyAccepted ( branchTip ) , destBranch , destProject.isUseContentMerge ( ) ) ; }

Target:
private com.google.gerrit.server.git.SubmitStrategy createStrategy ( final com.google.gerrit.reviewdb.client.Project.SubmitType submitType ) throws com.google.gerrit.server.git.MergeException { return submitStrategyFactory.create ( submitType , db , repo , rw , inserter , canMergeFlag , getAlreadyAccepted ( branchTip ) , destBranch , destProject.isUseContentMerge ( ) ) ; }
Source:
protected void configure ( ) { bind ( java.io.File.class ) . annotatedWith ( com.google.gerrit.server.config.SitePath.class ) . toInstance ( sitePath ) ; bind ( com.google.gerrit.server.securestore.SecureStore.class ) . toProvider ( com.google.gerrit.server.securestore.SecureStoreProvider.class ) ; }

Target:
protected void configure ( ) { bind ( java.io.File.class ) . annotatedWith ( com.google.gerrit.server.config.SitePath.class ) . toInstance ( sitePath ) ; bind ( java.lang.String.class ) . annotatedWith ( com.google.gerrit.server.securestore.SecureStoreClassName.class ) . toProvider ( com.google.inject.util.Providers.of ( getConfiguredSecureStoreClass ( ) ) ) ; }
Source:
public void indexChange ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; adminSession.post ( ( ( "/changes/" + changeId ) + "/index/" ) ) . assertNoContent ( ) ; }

Target:
public void indexChange ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; adminRestSession.post ( ( ( "/changes/" + changeId ) + "/index/" ) ) . assertNoContent ( ) ; }
Source:
public void index ( com.google.gerrit.server.query.change.ChangeData cd ) throws java.io.IOException { for ( com.google.gerrit.server.index.ChangeIndex i : getWriteIndexes ( ) ) { i.replace ( cd ) ; } }

Target:
public void index ( com.google.gerrit.server.query.change.ChangeData cd ) throws java.io.IOException { for ( com.google.gerrit.server.index.ChangeIndex i : getWriteIndexes ( ) ) { i.replace ( cd ) ; } fireChangeIndexedEvent ( cd ) ; }
Source:
public void patchSetDetail2 ( com.google.gerrit.reviewdb.client.PatchSet.Id baseId , com.google.gerrit.reviewdb.client.PatchSet.Id id , com.google.gerrit.reviewdb.client.AccountDiffPreference diffPrefs , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.PatchSetDetail > callback ) { patchSetDetail.create ( baseId , id , diffPrefs ) . to ( callback ) ; }

Target:
public void patchSetDetail2 ( com.google.gerrit.reviewdb.client.PatchSet.Id baseId , com.google.gerrit.reviewdb.client.PatchSet.Id id , com.google.gerrit.reviewdb.client.AccountDiffPreference diffPrefs , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.PatchSetDetail > callback ) { patchSetDetail.create ( baseId , id , diffPrefs ) . to ( callback ) ; }
Source:
private void assertKeys ( com.google.gerrit.server.git.gpg.TestKey ... expectedKeys ) throws java.lang.Exception { assertKeys ( java.util.Arrays.asList ( expectedKeys ) ) ; }

Target:
private void assertKeys ( com.google.gerrit.gpg.testutil.TestKey ... expectedKeys ) throws java.lang.Exception { assertKeys ( java.util.Arrays.asList ( expectedKeys ) ) ; }
Source:
public void delete ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteChangeEdit.apply ( changeResource , new com.google.gerrit.server.change.DeleteChangeEdit.Input ( ) ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot delete change edit" , e ) ; } }

Target:
public void delete ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteChangeEdit.apply ( changeResource , new com.google.gerrit.extensions.common.Input ( ) ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot delete change edit" , e ) ; } }
Source:
public static java.lang.String toAccountDashboard ( final com.google.gerrit.reviewdb.client.Account.Id acct ) { return "/dashboard/" + ( acct.toString ( ) ) ; }

Target:
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 ) ; }
Source:
public org.eclipse.jgit.revwalk.RevCommit commitAt ( org.eclipse.jgit.lib.ObjectId expected ) throws java.io.IOException { if ( com.google.common.base.Objects.equal ( src , expected ) ) { return revision ; } return updateRef ( com.google.common.base.MoreObjects.firstNonNull ( expected , org.eclipse.jgit.lib.ObjectId.zeroId ( ) ) , src , getRefName ( ) ) ; }

Target:
public org.eclipse.jgit.revwalk.RevCommit commitAt ( org.eclipse.jgit.lib.ObjectId expected ) throws java.io.IOException { if ( java.util.Objects.equals ( src , expected ) ) { return revision ; } return updateRef ( com.google.common.base.MoreObjects.firstNonNull ( expected , org.eclipse.jgit.lib.ObjectId.zeroId ( ) ) , src , getRefName ( ) ) ; }
Source:
void setWidget ( net.codemirror.lib.LineWidget widget ) { this . widget = widget ; addStyleName ( style.isLineWidget ( ) ) ; }

Target:
public void execute ( ) { getElement ( ) . getStyle ( ) . setPaddingLeft ( cm.getGutterElement ( ) . getOffsetWidth ( ) , Unit.PX ) ; }
Source:
public com.google.gerrit.extensions.api.projects.ConfigInfo apply ( com.google.gerrit.server.project.ProjectResource rsrc , com.google.gerrit.extensions.api.projects.ConfigInput input ) throws com.google.gerrit.extensions.restapi.RestApiException { if ( ! ( rsrc.getControl ( ) . isOwner ( ) ) ) { throw new com.google.gerrit.extensions.restapi.AuthException ( "restricted to project owner" ) ; } return apply ( rsrc.getControl ( ) , input ) ; }

Target:
public com.google.gerrit.extensions.api.projects.ConfigInfo apply ( com.google.gerrit.server.project.ProjectResource rsrc , com.google.gerrit.extensions.api.projects.ConfigInput input ) throws com.google.gerrit.extensions.restapi.RestApiException { if ( ! ( rsrc.getControl ( ) . isOwner ( ) ) ) { throw new com.google.gerrit.extensions.restapi.AuthException ( "restricted to project owner" ) ; } return apply ( rsrc.getProjectState ( ) , input ) ; }
Source:
public void removeAll ( ) { self.removeAll ( ) ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > removeAllAsync ( ) { self.removeAll ( ) ; return com.google.common.util.concurrent.Futures.immediateFuture ( null ) ; }
Source:
private java.util.Set < com.google.gerrit.reviewdb.client.AccountGroup.UUID > groupsOf ( com.google.gerrit.reviewdb.client.Account.Id account ) { return userFactory.create ( account ) . getEffectiveGroups ( ) . getKnownGroups ( ) ; }

Target:
public boolean apply ( com.google.gerrit.reviewdb.client.AccountGroup.UUID in ) { return ! ( com.google.gerrit.server.group.SystemGroupBackend.isSystemGroup ( in ) ) ; }
Source:
public static com.google.gerrit.client.ui.AccountLinkPanel link ( com.google.gerrit.common.data.AccountInfoCache cache , com.google.gerrit.reviewdb.client.Account.Id id ) { com.google.gerrit.client.account.AccountInfo ai = cache.get ( id ) ; return ai != null ? new com.google.gerrit.client.ui.AccountLinkPanel ( ai ) : null ; }

Target:
public static com.google.gerrit.client.ui.AccountLinkPanel link ( com.google.gerrit.common.data.AccountInfoCache cache , com.google.gerrit.reviewdb.client.Account.Id id ) { com.google.gerrit.client.info.AccountInfo ai = cache.get ( id ) ; return ai != null ? new com.google.gerrit.client.ui.AccountLinkPanel ( ai ) : null ; }
Source:
public void testGetComment ( ) throws java.lang.Exception { com.google.gerrit.server.change.CommentsTest.assertGetComment ( injector , revRes1 , plc1 , plc1.getKey ( ) . get ( ) ) ; com.google.gerrit.server.change.CommentsTest.assertGetComment ( injector , revRes1 , null , "BadComment" ) ; }

Target:
private com.google.gerrit.server.notedb.ChangeUpdate newUpdate ( com.google.gerrit.reviewdb.client.Change c , final com.google.gerrit.server.IdentifiedUser user ) throws java.lang.Exception { return com.google.gerrit.testutil.TestChanges.newUpdate ( injector , repoManager , migration , c , allUsers , user ) ; }
Source:
public boolean isOwnerOf ( com.google.gerrit.common.data.AccessSection section ) { return getOwnerOf ( ) . contains ( section.getRefPattern ( ) ) ; }

Target:
public com.google.gerrit.common.data.AccessSection getLocal ( java.lang.String name ) { for ( com.google.gerrit.common.data.AccessSection s : local ) { if ( s.getName ( ) . equals ( name ) ) { return s ; } } return null ; }
Source:
public org.eclipse.jgit.revwalk.RevCommit commitAt ( org.eclipse.jgit.lib.ObjectId revision ) { return null ; }

Target:
private static org.eclipse.jgit.lib.ObjectId emptyTree ( org.eclipse.jgit.lib.ObjectInserter ins ) throws java.io.IOException { return ins.insert ( Constants.OBJ_TREE , new byte [ ] { } ) ; }
Source:
public java.lang.String getLocalUser ( ) { if ( externalId.isScheme ( com.google.gerrit.server.account.ExternalId.SCHEME_GERRIT ) ) { return externalId.id ( ) ; } return null ; }

Target:
public java.lang.String getLocalUser ( ) { if ( externalId.isScheme ( com.google.gerrit.server.account.externalids.ExternalId.SCHEME_GERRIT ) ) { return externalId.id ( ) ; } return null ; }
Source:
private static java.lang.String key ( java.lang.String type , java.lang.String project , java.lang.String ref ) { return java.lang.String.format ( "%s-%s-%s" , type , project , ref ) ; }

Target:
private static java.lang.String refEventKey ( java.lang.String type , java.lang.String project , java.lang.String ref ) { return java.lang.String.format ( "%s-%s-%s" , type , project , ref ) ; }
Source:
java.lang.String changesUploadedBy ( java.lang.String fullName ) ;

Target:
java.lang.String changesStartedBy ( java.lang.String fullName ) ;
Source:
private com.google.gerrit.common.data.SubmitTypeRecord typeError ( java.lang.String err ) { if ( logErrors ) { com.google.gerrit.server.project.SubmitRuleEvaluator.log.error ( err ) ; return com.google.gerrit.server.project.SubmitRuleEvaluator.defaultTypeError ( ) ; } else { return com.google.gerrit.server.project.SubmitRuleEvaluator.createTypeError ( err ) ; } }

Target:
private void initPatchSet ( ) throws com.google.gwtorm.server.OrmException { if ( ( patchSet ) == null ) { patchSet = cd.currentPatchSet ( ) ; } }
Source:
public com.google.gerrit.client.admin.AccessSectionEditor create ( int index ) { com.google.gerrit.client.admin.AccessSectionEditor subEditor = new com.google.gerrit.client.admin.AccessSectionEditor ( value ) ; container.insert ( subEditor , index ) ; return subEditor ; }

Target:
public com.google.gerrit.client.admin.AccessSectionEditor create ( int index ) { com.google.gerrit.client.admin.AccessSectionEditor subEditor = new com.google.gerrit.client.admin.AccessSectionEditor ( value ) ; subEditor.setEditing ( editing ) ; container.insert ( subEditor , index ) ; return subEditor ; }
Source:
public void testChangeOwner_OwnerACLNotGranted ( ) throws com.google.gwtorm.server.OrmException , java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException , org.eclipse.jgit.errors.ConfigInvalidException { approve ( sessionOwner , createChange ( ) , HttpStatus.SC_FORBIDDEN ) ; }

Target:
public void testChangeOwner_OwnerACLNotGranted ( ) throws com.google.gwtorm.server.OrmException , java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException , org.eclipse.jgit.errors.ConfigInvalidException { approve ( sessionOwner , createMyChange ( ) , HttpStatus.SC_FORBIDDEN ) ; }
Source:
private static com.google.gerrit.extensions.api.changes.ReviewInput makeReview ( ) { com.google.gerrit.extensions.api.changes.ReviewInput in = new com.google.gerrit.extensions.api.changes.ReviewInput ( ) ; in.message = "Looks good!" ; in.labels = com.google.common.collect.Maps.newHashMap ( ) ; in.labels.put ( "Code-Review" , ( ( short ) ( 2 ) ) ) ; return in ; }

Target:
private static com.google.gerrit.extensions.api.changes.ReviewInput approve ( ) { return new com.google.gerrit.extensions.api.changes.ReviewInput ( ) . message ( "Looks good!" ) . label ( "Code-Review" , 2 ) ; }
Source:
public void destroy ( ) { if ( ( ( task ) != null ) && ( ! ( task.isDone ( ) ) ) ) { task.cancel ( true ) ; } }

Target:
public void destroy ( ) { java.util.concurrent.Future < ? > future = task.getAndSet ( null ) ; if ( ( future != null ) && ( ! ( future.isDone ( ) ) ) ) { future.cancel ( true ) ; } }
Source:
com.google.gerrit.server.change.PatchSetInserter create ( org.eclipse.jgit.lib.Repository git , org.eclipse.jgit.revwalk.RevWalk revWalk , com.google.gerrit.server.project.ChangeControl ctl , org.eclipse.jgit.revwalk.RevCommit commit ) ;

Target:
com.google.gerrit.server.change.PatchSetInserter create ( com.google.gerrit.server.project.RefControl refControl , com.google.gerrit.reviewdb.client.PatchSet.Id psId , org.eclipse.jgit.revwalk.RevCommit commit ) ;
Source:
public void index ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { index.apply ( change , new com.google.gerrit.server.change.Index.Input ( ) ) ; } catch ( java.io.IOException | com.google.gwtorm.server.OrmException | com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot index change" , e ) ; } }

Target:
public void index ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { index.apply ( change , new com.google.gerrit.server.change.Index.Input ( ) ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot index change" , e ) ; } }
Source:
public void start ( ) { for ( com.google.gerrit.server.index.IndexDefinition < ? , ? , ? > def : defs ) { start ( def ) ; } }

Target:
public void start ( ) { for ( com.google.gerrit.index.IndexDefinition < ? , ? , ? > def : defs ) { start ( def ) ; } }
Source:
public com.google.gerrit.server.git.CodeReviewCommit run ( com.google.gerrit.server.git.CodeReviewCommit mergeTip , java.util.List < com.google.gerrit.server.git.CodeReviewCommit > toMerge ) throws com.google.gerrit.server.git.MergeException { refLogIdent = null ; return _run ( mergeTip , toMerge ) ; }

Target:
public com.google.gerrit.server.git.CodeReviewCommit run ( com.google.gerrit.server.git.CodeReviewCommit mergeTip , java.util.Collection < com.google.gerrit.server.git.CodeReviewCommit > toMerge ) throws com.google.gerrit.server.git.MergeException { refLogIdent = null ; return _run ( mergeTip , toMerge ) ; }
Source:
public final native java.lang.String set_name ( java.lang.String n ) ;

Target:
public final native java.lang.String setName ( java.lang.String n ) ;
Source:
public final boolean submittable ( ) { init ( ) ; return _submittable ( ) ; }

Target:
public final boolean submittable ( ) { init ( ) ; getMissingLabelIndex ( ) ; return _submittable ( ) ; }
Source:
private void doVerify ( ) { org.easymock.EasyMock.verify ( schemaFactory , schema , subscriptions , urlProvider , repoManager , gitRefUpdated ) ; }

Target:
private void doReplay ( ) { mockMaker.replay ( ) ; }
Source:
public static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > create ( ) { return com.google.gerrit.server.query.Predicate.not ( new com.google.gerrit.server.query.change.IsReviewedPredicate ( com.google.gerrit.server.query.change.IsReviewedPredicate.NOT_REVIEWED ) ) ; }

Target:
public static com.google.gerrit.index.query.Predicate < com.google.gerrit.server.query.change.ChangeData > create ( ) { return com.google.gerrit.index.query.Predicate.not ( new com.google.gerrit.server.query.change.IsReviewedPredicate ( com.google.gerrit.server.query.change.IsReviewedPredicate.NOT_REVIEWED ) ) ; }
Source:
private void on ( final com.google.gwt.user.client.ui.Widget sender ) { descAction.setEnabled ( ( ( com.google.gwt.user.client.ui.TextBoxBase ) ( sender ) ) . isEnabled ( ) ) ; }

Target:
private void on ( final com.google.gwt.event.dom.client.KeyPressEvent e ) { descAction.setEnabled ( ( ( com.google.gwt.user.client.ui.TextBoxBase ) ( e.getSource ( ) ) ) . isEnabled ( ) ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { upToChange ( true ) . run ( ) ; }

Target:
public void onResize ( com.google.gwt.event.logical.shared.ResizeEvent event ) { resizeCodeMirror ( ) ; }
Source:
public final boolean isHttpPasswordSettingsEnabled ( ) { if ( ( isLdap ( ) ) && ( isGitBasicAuth ( ) ) ) { return false ; } return true ; }

Target:
public final boolean isHttpPasswordSettingsEnabled ( ) { if ( ( isGitBasicAuth ( ) ) && ( ( gitBasicAuthPolicy ( ) ) == ( com.google.gerrit.extensions.client.GitBasicAuthPolicy.LDAP ) ) ) { return false ; } return true ; }
Source:
public com.google.gerrit.common.data.GroupDetail call ( ) throws com.google.gerrit.common.errors.NoSuchGroupException , com.google.gwtorm.server.OrmException { control = groupControl.validateFor ( groupId ) ; com.google.gerrit.common.data.GroupDetail detail = new com.google.gerrit.common.data.GroupDetail ( ) ; detail.setMembers ( loadMembers ( ) ) ; detail.setIncludes ( loadIncludes ( ) ) ; return detail ; }

Target:
public com.google.gerrit.common.data.GroupDetail call ( ) throws com.google.gerrit.common.errors.NoSuchGroupException , com.google.gwtorm.server.OrmException { control = groupControl.validateFor ( groupId ) ; java.util.List < com.google.gerrit.reviewdb.client.AccountGroupMember > members = loadMembers ( ) ; java.util.List < com.google.gerrit.reviewdb.client.AccountGroupById > includes = loadIncludes ( ) ; return new com.google.gerrit.common.data.GroupDetail ( members , includes ) ; }
Source:
protected final boolean in ( int line , org.eclipse.jgit.diff.Edit e ) { return ( ( getBegin ( e ) ) <= line ) && ( line < ( getEnd ( e ) ) ) ; }

Target:
final java.lang.String get ( com.google.gerrit.prettify.common.SparseFileContent src , com.google.gerrit.prettify.common.EditList.Hunk hunk ) { return src.get ( getCur ( hunk ) ) ; }
Source:
public void testPushForMaster ( ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit.Result r = pushTo ( "refs/for/master" ) ; r.assertOkStatus ( ) ; r.assertChange ( Change.Status.NEW , null ) ; }

Target:
public void pushForMaster ( ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit.Result r = pushTo ( "refs/for/master" ) ; r.assertOkStatus ( ) ; r.assertChange ( Change.Status.NEW , null ) ; }
Source:
default void onCreate ( org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.server.account.externalids.ExternalId extId ) throws java.io.IOException { onCreate ( newNotesRev , java.util.Collections.singleton ( extId ) ) ; }

Target:
void onRemoveByKeys ( org.eclipse.jgit.lib.ObjectId oldNotesRev , org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.reviewdb.client.Account.Id accountId , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId.Key > extIdKeys ) throws java.io.IOException ;
Source:
public void onFocus ( com.google.gwt.user.client.ui.Widget sender ) { if ( Util.C.defaultProjectName ( ) . equals ( box.getText ( ) ) ) { box.setText ( "" ) ; box.removeStyleName ( "gerrit-InputFieldTypeHint" ) ; } }

Target:
public void onFocus ( com.google.gwt.event.dom.client.FocusEvent event ) { if ( Util.C.defaultProjectName ( ) . equals ( box.getText ( ) ) ) { box.setText ( "" ) ; box.removeStyleName ( "gerrit-InputFieldTypeHint" ) ; } }
Source:
public java.lang.String getDisplayString ( ) { return ( ( java.lang.String.valueOf ( change.legacyId ( ) . get ( ) ) ) + ": " ) + ( change.subject ( ) ) ; }

Target:
public java.lang.String getReplacementString ( ) { return java.lang.String.valueOf ( change.legacyId ( ) . get ( ) ) ; }
Source:
private void enableForm ( ) { branchTable.updateDeleteButton ( ) ; addBranch.setEnabled ( true ) ; nameTxtBox.setEnabled ( true ) ; irevTxtBox.setEnabled ( true ) ; }

Target:
private void updateForm ( ) { branchTable.updateDeleteButton ( ) ; addBranch.setEnabled ( true ) ; nameTxtBox.setEnabled ( true ) ; irevTxtBox.setEnabled ( true ) ; }
Source:
private static java.net.URL toURL ( java.io.File jarFile ) throws com.googlecode.prolog_cafe.compiler.CompileException { try { return jarFile.toURI ( ) . toURL ( ) ; } catch ( java.net.MalformedURLException e ) { throw new com.googlecode.prolog_cafe.compiler.CompileException ( ( "Cannot create URL for " + jarFile ) , e ) ; } }

Target:
private static java.net.URL toURL ( java.nio.file.Path jarPath ) throws com.googlecode.prolog_cafe.compiler.CompileException { try { return jarPath.toUri ( ) . toURL ( ) ; } catch ( java.net.MalformedURLException e ) { throw new com.googlecode.prolog_cafe.compiler.CompileException ( ( "Cannot create URL for " + jarPath ) , e ) ; } }
Source:
public void zeroStartCharacterResultsInValidRange ( ) { com.google.gerrit.extensions.client.Comment.Range range = createRange ( 13 , 0 , 19 , 10 ) ; com.google.gerrit.extensions.client.testing.RangeSubject.assertThat ( range ) . isValid ( ) ; }

Target:
public void zeroStartCharacterResultsInValidRange ( ) { com.google.gerrit.extensions.client.Comment.Range range = createRange ( 13 , 0 , 19 , 10 ) ; com.google.gerrit.extensions.common.testing.RangeSubject.assertThat ( range ) . isValid ( ) ; }
Source:
public static java.lang.String name ( final com.google.gerrit.reviewdb.client.Account acct ) { return com.google.gerrit.client.FormatUtil.name ( new com.google.gerrit.common.data.AccountInfo ( acct ) ) ; }

Target:
public static java.lang.String name ( com.google.gerrit.reviewdb.client.Account acct ) { return com.google.gerrit.client.FormatUtil.name ( com.google.gerrit.client.FormatUtil.asInfo ( acct ) ) ; }
Source:
com.google.gerrit.server.project.SubmitRuleEvaluator create ( com.google.gerrit.server.query.change.ChangeData cd ) ;

Target:
com.google.gerrit.server.project.SubmitRuleEvaluator create ( com.google.gerrit.server.project.SubmitRuleOptions options ) ;
Source:
protected java.lang.String xsrfUser ( final com.google.gwtjsonrpc.server.ActiveCall call ) { final java.lang.String idstr = com.google.gwtjsonrpc.client.CookieAccess.getTokenText ( Gerrit.ACCOUNT_COOKIE ) ; return idstr != null ? "account" + idstr : "anonymous" ; }

Target:
protected com.google.gwtjsonrpc.server.ActiveCall createActiveCall ( final javax.servlet.http.HttpServletRequest req , final javax.servlet.http.HttpServletResponse resp ) { return new com.google.gerrit.server.GerritCall ( server , req , resp ) ; }
Source:
protected void configure ( ) { bind ( java.io.File.class ) . annotatedWith ( com.google.gerrit.server.config.SitePath.class ) . toInstance ( getSitePath ( ) ) ; bind ( com.google.gerrit.pgm.init.Browser.class ) ; }

Target:
protected void configure ( ) { bind ( java.io.File.class ) . annotatedWith ( com.google.gerrit.server.config.SitePath.class ) . toInstance ( getSitePath ( ) ) ; bind ( com.google.gerrit.pgm.init.Browser.class ) ; bind ( com.google.gerrit.server.securestore.SecureStore.class ) . toProvider ( com.google.gerrit.pgm.util.SecureStoreProvider.class ) ; }
Source:
public < T extends com.google.gwt.core.client.JavaScriptObject > void delete ( com.google.gwt.core.client.JavaScriptObject content , com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { sendJSON ( com.google.gwt.http.client.RequestBuilder.DELETE , content , cb ) ; }

Target:
public < T extends com.google.gwt.core.client.JavaScriptObject > void put ( com.google.gwt.core.client.JavaScriptObject content , com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { put ( content , com.google.gerrit.client.rpc.RestApi.wrap ( cb ) ) ; }
Source:
public void onSuccess ( final com.google.gerrit.client.data.SingleListChangeInfo result ) { display ( result ) ; }

Target:
protected void loadPrev ( ) { Util.LIST_SVC.allOpenPrev ( pos , pageSize , loadCallback ( ) ) ; }
Source:
public java.lang.String getHeader ( java.lang.String name ) { return com.google.common.collect.Iterables.getFirst ( headers.get ( com.google.common.base.Preconditions.checkNotNull ( name ) ) , null ) ; }

Target:
public java.lang.String getHeader ( java.lang.String name ) { return com.google.common.collect.Iterables.getFirst ( headers.get ( com.google.common.base.Preconditions.checkNotNull ( name.toLowerCase ( ) ) ) , null ) ; }
Source:
protected java.lang.String readStringImpl ( java.lang.String def , java.lang.String fmt , java.lang.Object ... args ) { return def ; }

Target:
public boolean yesno ( java.lang.Boolean def , java.lang.String fmt , java.lang.Object ... args ) { return def != null ? def : true ; }
Source:
protected void onInitUI ( ) { super . onInitUI ( ) ; setHeaderVisible ( false ) ; setWindowTitle ( com.google.gerrit.client.diff.FileInfo.getFileName ( path ) ) ; }

Target:
protected void onInitUI ( ) { super . onInitUI ( ) ; setHeaderVisible ( false ) ; setWindowTitle ( com.google.gerrit.client.info.FileInfo.getFileName ( path ) ) ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.pgm.http.jetty.JettyEnv.class ) . toInstance ( env ) ; bind ( com.google.gerrit.pgm.http.jetty.JettyServer.class ) ; listener ( ) . to ( JettyServer.Lifecycle.class ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.pgm.http.jetty.JettyEnv.class ) . toInstance ( env ) ; bind ( com.google.gerrit.pgm.http.jetty.JettyServer.class ) ; listener ( ) . to ( JettyServer.Lifecycle.class ) ; install ( new com.google.inject.assistedinject.FactoryModuleBuilder ( ) . build ( com.google.gerrit.pgm.http.jetty.HttpLog.HttpLogFactory.class ) ) ; }
Source:
public void nonExistentNotesRefIsEquivalentToNotAnyExistingGroups ( ) throws java.lang.Exception { com.google.common.collect.ImmutableSet < com.google.gerrit.common.data.GroupReference > allGroups = com.google.gerrit.server.group.db.GroupNameNotes.loadAllGroupReferences ( repo ) ; com.google.common.truth.Truth.assertThat ( allGroups ) . isEmpty ( ) ; }

Target:
public void nonExistentNotesRefIsEquivalentToNotAnyExistingGroups ( ) throws java.lang.Exception { com.google.common.collect.ImmutableList < com.google.gerrit.common.data.GroupReference > allGroups = com.google.gerrit.server.group.db.GroupNameNotes.loadAllGroups ( repo ) ; com.google.common.truth.Truth.assertThat ( allGroups ) . isEmpty ( ) ; }
Source:
public T decode ( byte [ ] data ) { return decode ( data , 0 , data.length ) ; }

Target:
public void mergeFrom ( byte [ ] data , T obj ) { mergeFrom ( data , 0 , data.length , obj ) ; }
Source:
public java.lang.String getTarget ( ) { return Target.BLANK ; }

Target:
public com.google.gerrit.extensions.common.WebLinkInfo getFileWebLink ( java.lang.String projectName , java.lang.String revision , java.lang.String fileName ) { return new com.google.gerrit.extensions.common.WebLinkInfo ( com.googlesource.gerrit.plugins.xdocs.XDocWebLink.PREVIEW , getImageUrl ( ) , getFileUrl ( projectName , revision , fileName ) , com.google.gerrit.extensions.webui.WebLinkTarget.BLANK ) ; }
Source:
public void run ( ) { SshScopes.current.set ( ctx ) ; try { synchronized ( list ) { list.add ( cmd ) ; } runImp ( ) ; } finally { synchronized ( list ) { list.remove ( cmd ) ; } } }

Target:
public void run ( ) throws java.lang.Exception { try { preRun ( ) ; parseArguments ( ) ; this . run ( ) ; } finally { postRun ( ) ; } }
Source:
public void run ( ) { com.google.gerrit.client.Gerrit.doSignIn ( getToken ( ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.diff.DiffInfo info ) { new net.codemirror.lib.ModeInjector ( ) . add ( getContentType ( info.meta_a ( ) ) ) . add ( getContentType ( info.meta_b ( ) ) ) . inject ( com.google.gerrit.client.rpc.CallbackGroup.< java.lang.Void > emptyCallback ( ) ) ; }
Source:
public static void all ( com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.client.plugins.PluginMap > callback ) { new com.google.gerrit.client.rpc.RestApi ( "/plugins/" ) . send ( com.google.gerrit.client.rpc.NativeMap.copyKeysIntoChildren ( callback ) ) ; }

Target:
public static void all ( com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.client.plugins.PluginMap > callback ) { new com.google.gerrit.client.rpc.RestApi ( "/plugins/" ) . addParameterTrue ( "all" ) . send ( com.google.gerrit.client.rpc.NativeMap.copyKeysIntoChildren ( callback ) ) ; }
Source:
final native void set_id ( java.lang.String i ) ;

Target:
final native void setId ( java.lang.String i ) ;
Source:
public com.google.gerrit.reviewdb.AccountDiffPreference getAccountDiffPreference ( ) { com.google.gerrit.reviewdb.AccountDiffPreference diffPref = accountDiffPreferencesCache.get ( getAccountId ( ) ) ; if ( diffPref == null ) { diffPref = com.google.gerrit.reviewdb.AccountDiffPreference.createDefault ( getAccountId ( ) ) ; } return diffPref ; }

Target:
public com.google.gerrit.reviewdb.AccountDiffPreference getAccountDiffPreference ( ) { return com.google.gerrit.server.util.FutureUtil.get ( accountDiffPreferencesCache.get ( getAccountId ( ) ) ) ; }
Source:
void onRemoveByKeys ( org.eclipse.jgit.lib.ObjectId newNotesRev , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId.Key > extIdKeys ) throws java.io.IOException ;

Target:
default void onRemove ( org.eclipse.jgit.lib.ObjectId oldNotesRev , org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.server.account.externalids.ExternalId extId ) throws java.io.IOException { onRemove ( oldNotesRev , newNotesRev , java.util.Collections.singleton ( extId ) ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { toggleReviewed ( ) . run ( ) ; }

Target:
public void run ( ) { fixScroll ( cmB ) ; }
Source:
public com.googlesource.gerrit.plugins.lfs.fs.LfsFsRequestAuthorizer.AuthInfo generateAuthInfo ( java.lang.String operation , org.eclipse.jgit.lfs.lib.AnyLongObjectId id , int expirationSeconds ) { com.googlesource.gerrit.plugins.lfs.fs.LfsFsRequestAuthorizer.LfsFsAuthToken token = new com.googlesource.gerrit.plugins.lfs.fs.LfsFsRequestAuthorizer.LfsFsAuthToken ( operation , id , expirationSeconds ) ; return new com.googlesource.gerrit.plugins.lfs.fs.LfsFsRequestAuthorizer.AuthInfo ( processor.serialize ( token ) , token.expiresAt ) ; }

Target:
public com.googlesource.gerrit.plugins.lfs.AuthInfo generateAuthInfo ( java.lang.String operation , org.eclipse.jgit.lfs.lib.AnyLongObjectId id , int expirationSeconds ) { com.googlesource.gerrit.plugins.lfs.fs.LfsFsRequestAuthorizer.LfsFsAuthToken token = new com.googlesource.gerrit.plugins.lfs.fs.LfsFsRequestAuthorizer.LfsFsAuthToken ( operation , id , expirationSeconds ) ; return new com.googlesource.gerrit.plugins.lfs.AuthInfo ( processor.serialize ( token ) , token.expiresAt ) ; }
Source:
public com.google.gerrit.server.cache.NamedCacheBinding timeToIdle ( long duration , java.util.concurrent.TimeUnit durationUnits ) ;

Target:
public com.google.gerrit.server.cache.NamedCacheBinding maxAge ( long duration , java.util.concurrent.TimeUnit durationUnits ) ;
Source:
public void uuidOfNewGroupMustNotBeNull ( ) throws java.lang.Exception { expectedException.expect ( java.lang.NullPointerException.class ) ; com.google.gerrit.server.group.db.GroupNameNotes.loadForNewGroup ( repo , null , groupName ) ; }

Target:
public void uuidOfNewGroupMustNotBeNull ( ) throws java.lang.Exception { expectedException.expect ( java.lang.NullPointerException.class ) ; com.google.gerrit.server.group.db.GroupNameNotes.forNewGroup ( repo , null , groupName ) ; }
Source:
void set ( com.google.gerrit.client.changes.ChangeInfo info ) { project.setInnerText ( info.project ( ) ) ; }

Target:
void setChangeInfo ( com.google.gerrit.client.changes.ChangeInfo info ) { project.setInnerText ( info.project ( ) ) ; }
Source:
protected void onInitUI ( ) { super . onInitUI ( ) ; setTitleText ( Util.C.accountSettingsHeading ( ) ) ; }

Target:
protected void onInitUI ( ) { super . onInitUI ( ) ; setPageTitle ( Util.C.accountSettingsHeading ( ) ) ; }
Source:
public void includedInDetail ( final com.google.gerrit.reviewdb.client.Change.Id id , final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.IncludedInDetail > callback ) { includedInDetail.create ( id ) . to ( callback ) ; }

Target:
public void includedInDetail ( final com.google.gerrit.reviewdb.client.Change.Id id , final com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.IncludedInDetail > callback ) { includedInDetail.create ( id ) . to ( callback ) ; }
Source:
public void start ( ) { startThread ( new com.google.gerrit.sshd.commands.CommandRunnable ( ) { @ java.lang.Override public void run ( ) throws java.lang.Exception { parseCommandLine ( ) ; com.google.gerrit.sshd.commands.AdminReplicate.this . schedule ( ) ; } } ) ; }

Target:
public void start ( final org.apache.sshd.server.Environment env ) { startThread ( new com.google.gerrit.sshd.commands.CommandRunnable ( ) { @ java.lang.Override public void run ( ) throws java.lang.Exception { parseCommandLine ( ) ; com.google.gerrit.sshd.commands.AdminReplicate.this . schedule ( ) ; } } ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { setReviewedByCurrentUser ( true ) ; }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { final boolean isReviewed = ! ( reviewedPanels.getValue ( ) ) ; reviewedPanels.setValue ( isReviewed ) ; reviewedPanels.setReviewedByCurrentUser ( isReviewed ) ; }
Source:
public void onSuccess ( com.google.gwtjsonrpc.client.VoidResult result ) { actionsPanel.remove ( b ) ; fireOnSuggestRefresh ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.data.ChangeDetail result ) { onSubmitResult ( result ) ; }
Source:
public static com.google.gerrit.lucene.LuceneIndexModule singleVersionWithExplicitVersions ( java.util.Map < java.lang.String , java.lang.Integer > versions , int threads ) { return new com.google.gerrit.lucene.LuceneIndexModule ( versions , threads , false ) ; }

Target:
public static com.google.gerrit.lucene.LuceneIndexModule singleVersionWithExplicitVersions ( java.util.Map < java.lang.String , java.lang.Integer > versions , int threads , boolean slave ) { return new com.google.gerrit.lucene.LuceneIndexModule ( versions , threads , false , slave ) ; }
Source:
public void onReplace ( org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.reviewdb.client.Account.Id accountId , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toRemove , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toAdd ) { }

Target:
public void onUpdate ( org.eclipse.jgit.lib.ObjectId oldNotesRev , org.eclipse.jgit.lib.ObjectId newNotesRev , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > extId ) { }
Source:
public static com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ( java.lang.String orgName ) { return new com.google.gerrit.reviewdb.client.AccountGroup.UUID ( ( ( com.googlesource.gerrit.plugins.github.group.GitHubOrganisationGroup.UUID_PREFIX ) + orgName ) ) ; }

Target:
public static com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ( java.lang.String orgName ) { return new com.google.gerrit.reviewdb.client.AccountGroup.UUID ( ( ( UUID_PREFIX ) + orgName ) ) ; }
Source:
public static void all ( com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.client.projects.ProjectMap > callback ) { new com.google.gerrit.client.rpc.RestApi ( "/projects/" ) . addParameterRaw ( "type" , "ALL" ) . addParameterTrue ( "all" ) . addParameterTrue ( "d" ) . send ( com.google.gerrit.client.rpc.NativeMap.copyKeysIntoChildren ( callback ) ) ; }

Target:
public static void all ( com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.projects.ProjectMap > callback ) { new com.google.gerrit.client.rpc.RestApi ( "/projects/" ) . addParameterRaw ( "type" , "ALL" ) . addParameterTrue ( "all" ) . addParameterTrue ( "d" ) . get ( com.google.gerrit.client.rpc.NativeMap.copyKeysIntoChildren ( callback ) ) ; }
Source:
static final boolean isTrashFolderName ( java.lang.String fName ) { return com.googlesource.gerrit.plugins.deleteproject.fs.DeleteTrashFolders.TRASH.matcher ( fName ) . matches ( ) ; }

Target:
static final boolean isTrashFolderName ( java.lang.String fName ) { return ( com.googlesource.gerrit.plugins.deleteproject.fs.DeleteTrashFolders.TRASH_1.matcher ( fName ) . matches ( ) ) || ( com.googlesource.gerrit.plugins.deleteproject.fs.DeleteTrashFolders.TRASH_2.matcher ( fName ) . matches ( ) ) ; }
Source:
protected com.google.inject.Injector getInjector ( ) { return webInjector ; }

Target:
protected com.google.inject.Injector getInjector ( ) { init ( ) ; return webInjector ; }
Source:
public void onFailure ( java.lang.Throwable arg0 ) { }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { reviewedPanels.go ( ) ; }
Source:
private void checkLoaded ( ) { com.google.common.base.Preconditions.checkNotNull ( keys , "SSH keys not loaded yet" ) ; }

Target:
private void checkLoaded ( ) { com.google.common.base.Preconditions.checkState ( ( ( keys ) != null ) , "SSH keys not loaded yet" ) ; }
Source:
abstract void clearLine ( com.google.gerrit.client.diff.DisplaySide side , int line , com.google.gerrit.client.diff.CommentGroup group ) ;

Target:
void clearLine ( com.google.gerrit.client.diff.DisplaySide side , int line , com.google.gerrit.client.diff.CommentGroup group ) { java.util.SortedMap < java.lang.Integer , com.google.gerrit.client.diff.CommentGroup > map = map ( side ) ; if ( ( map.get ( line ) ) == group ) { map.remove ( line ) ; } }
Source:
private static int nullToZero ( java.lang.Integer i ) { return i != null ? i : 0 ; }

Target:
private static int nullToZero ( java.lang.Integer i ) { return i != null ? i.intValue ( ) : 0 ; }
Source:
private void assertBlocked ( java.lang.String p , java.lang.String ref , com.google.gerrit.server.permissions.ProjectControl u ) { com.google.common.truth.Truth.assertThat ( u.controlForRef ( ref ) . isBlocked ( p ) ) . named ( ( ( p + " is blocked for " ) + ref ) ) . isTrue ( ) ; }

Target:
private void assertNotBlocked ( java.lang.String p , java.lang.String ref , com.google.gerrit.server.permissions.ProjectControl u ) { com.google.common.truth.Truth.assertThat ( u.controlForRef ( ref ) . canPerform ( p ) ) . named ( ( ( p + " is blocked for " ) + ref ) ) . isTrue ( ) ; }
Source:
public static < V > com.google.gerrit.server.index.Schema < V > schema ( java.util.Collection < com.google.gerrit.server.index.FieldDef < V , ? > > fields ) { return new com.google.gerrit.server.index.Schema ( com.google.common.collect.ImmutableList.copyOf ( fields ) ) ; }

Target:
public static < V > com.google.gerrit.index.Schema < V > schema ( java.util.Collection < com.google.gerrit.index.FieldDef < V , ? > > fields ) { return new com.google.gerrit.index.Schema ( com.google.common.collect.ImmutableList.copyOf ( fields ) ) ; }
Source:
public java.lang.Void call ( ) { return null ; }

Target:
protected java.util.concurrent.Callable < ? > deleteTask ( com.google.gerrit.server.query.change.ChangeData cd ) { return com.google.common.util.concurrent.Callables.returning ( null ) ; }
Source:
void update ( final com.google.gerrit.common.data.ChangeDetail detail ) { display ( detail ) ; patchSetsBlock.setRegisterKeys ( true ) ; }

Target:
void update ( final com.google.gerrit.common.data.ChangeDetail detail ) { detailCache.set ( detail ) ; }
Source:
public java.lang.String createLinkForWebui ( java.lang.String url , java.lang.String text ) { return ( ( ( "[" + text ) + "|" ) + url ) + "]" ; }

Target:
public java.lang.String createLinkForWebui ( java.lang.String url , java.lang.String text ) { return ( ( url + " (" ) + text ) + ")" ; }
Source:
public void onFailure ( java.lang.Throwable caught ) { }

Target:
public void onFailure ( java.lang.Throwable caught ) { files.showError ( caught ) ; }
Source:
com.google.gerrit.server.git.strategy.SubmitStrategy.Arguments create ( com.google.gerrit.reviewdb.client.Branch.NameKey destBranch , com.google.gerrit.server.git.MergeOp.CommitStatus commits , com.google.gerrit.server.git.CodeReviewCommit.CodeReviewRevWalk rw , com.google.gerrit.server.IdentifiedUser caller , com.google.gerrit.server.git.MergeTip mergeTip , org.eclipse.jgit.lib.ObjectInserter inserter , org.eclipse.jgit.lib.Repository repo , org.eclipse.jgit.revwalk.RevFlag canMergeFlag , com.google.gerrit.reviewdb.server.ReviewDb db , java.util.Set < org.eclipse.jgit.revwalk.RevCommit > alreadyAccepted , java.lang.String submissionId ) ;

Target:
com.google.gerrit.server.git.strategy.SubmitStrategy.Arguments create ( com.google.gerrit.extensions.client.SubmitType submitType , com.google.gerrit.reviewdb.client.Branch.NameKey destBranch , com.google.gerrit.server.git.MergeOp.CommitStatus commits , com.google.gerrit.server.git.CodeReviewCommit.CodeReviewRevWalk rw , com.google.gerrit.server.IdentifiedUser caller , com.google.gerrit.server.git.MergeTip mergeTip , org.eclipse.jgit.lib.ObjectInserter inserter , org.eclipse.jgit.lib.Repository repo , org.eclipse.jgit.revwalk.RevFlag canMergeFlag , com.google.gerrit.reviewdb.server.ReviewDb db , java.util.Set < org.eclipse.jgit.revwalk.RevCommit > alreadyAccepted , java.lang.String submissionId ) ;
Source:
private static byte [ ] decodeBase64 ( final java.lang.String s ) { return org.apache.commons.codec.binary.Base64.decodeBase64 ( com.google.gwtjsonrpc.server.XsrfUtil.toBytes ( s ) ) ; }

Target:
private static byte [ ] decodeBase64 ( final java.lang.String s ) { return org.apache.commons.codec.binary.Base64.decodeBase64 ( com.google.gwtjsonrpc.server.SignedToken.toBytes ( s ) ) ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.extensions.api.projects.Projects.class ) . to ( com.google.gerrit.server.api.projects.ProjectsImpl.class ) ; factory ( BranchApiImpl.Factory.class ) ; factory ( ProjectApiImpl.Factory.class ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.extensions.api.projects.Projects.class ) . to ( com.google.gerrit.server.api.projects.ProjectsImpl.class ) ; factory ( BranchApiImpl.Factory.class ) ; factory ( ProjectApiImpl.Factory.class ) ; factory ( ChildProjectApiImpl.Factory.class ) ; }
Source:
public void show ( ) { super . show ( ) ; com.google.gwt.user.client.DeferredCommand.addCommand ( new com.google.gwt.user.client.Command ( ) { @ java.lang.Override public void execute ( ) { username.setFocus ( true ) ; } } ) ; }

Target:
public void show ( ) { super . show ( ) ; com.google.gwt.core.client.Scheduler.get ( ) . scheduleDeferred ( new com.google.gwt.core.client.Scheduler.ScheduledCommand ( ) { @ java.lang.Override public void execute ( ) { username.setFocus ( true ) ; } } ) ; }
Source:
public static com.google.gerrit.server.workflow.CategoryFunction forCategory ( final com.google.gerrit.reviewdb.ApprovalCategory category ) { final com.google.gerrit.server.workflow.CategoryFunction r = com.google.gerrit.server.workflow.CategoryFunction.forName ( category.getFunctionName ( ) ) ; return r != null ? r : new com.google.gerrit.server.workflow.NoOpFunction ( ) ; }

Target:
public static com.google.gerrit.server.workflow.CategoryFunction forCategory ( final com.google.gerrit.reviewdb.ApprovalCategory category ) { final com.google.gerrit.server.workflow.CategoryFunction r = com.google.gerrit.server.workflow.CategoryFunction.all.get ( category.getFunctionName ( ) ) ; return r != null ? r : new com.google.gerrit.server.workflow.NoOpFunction ( ) ; }
Source:
public java.util.Collection < com.google.gerrit.reviewdb.AccountProjectWatch > getNotificationFilters ( ) { if ( ( notificationFilters ) == null ) { notificationFilters = accountProjectWatchCache.byAccount ( getAccountId ( ) ) ; } return notificationFilters ; }

Target:
public java.util.Collection < com.google.gerrit.reviewdb.AccountProjectWatch > getNotificationFilters ( ) { if ( ( notificationFilters ) == null ) { notificationFilters = com.google.gerrit.server.util.FutureUtil.get ( accountProjectWatchCache.byAccount ( getAccountId ( ) ) ) ; } return notificationFilters ; }
Source:
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 ) ; }

Target:
public static java.lang.String toPatch ( com.google.gerrit.client.DiffObject 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 com.google.common.util.concurrent.CheckedFuture < java.lang.Boolean , java.io.IOException > updateAsync ( com.google.gerrit.reviewdb.client.Change change , boolean force ) { return com.google.common.util.concurrent.Futures.makeChecked ( executor.submit ( new com.google.gerrit.server.change.MergeabilityChecker.ChangeUpdateTask ( schemaFactory , change , force ) ) , com.google.gerrit.server.change.MergeabilityChecker.MAPPER ) ; }

Target:
public com.google.gerrit.server.change.MergeabilityChecker.Check addBranch ( com.google.gerrit.reviewdb.client.Branch.NameKey branch ) { branches.add ( branch ) ; return this ; }