auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public T decode ( com.google.protobuf.ByteString buf ) { try { return decode ( buf.newCodedInput ( ) ) ; } catch ( java.io.IOException err ) { throw new java.lang.RuntimeException ( "Cannot decode message" , err ) ; } }

Target:
public void mergeFrom ( com.google.protobuf.ByteString buf , T obj ) { try { mergeFrom ( buf.newCodedInput ( ) , obj ) ; } catch ( java.io.IOException err ) { throw new java.lang.RuntimeException ( "Cannot decode message" , err ) ; } }
Source:
private static void dispatchHistoryHooks ( final java.lang.String historyToken ) { final java.lang.String url = ( ( Window.Location.getPath ( ) ) + "#" ) + historyToken ; for ( final com.google.gwt.core.client.JavaScriptObject hook : com.google.gerrit.client.Gerrit.historyHooks ) { com.google.gerrit.client.Gerrit.callHistoryHook ( hook , url ) ; } }

Target:
private static void dispatchHistoryHooks ( final java.lang.String historyToken ) { final java.lang.String url = ( ( com.google.gwt.user.client.Window.Location.getPath ( ) ) + "#" ) + historyToken ; for ( final com.google.gwt.core.client.JavaScriptObject hook : com.google.gerrit.client.Gerrit.historyHooks ) { com.google.gerrit.client.Gerrit.callHistoryHook ( hook , url ) ; } }
Source:
public void setNonExistingParent_UnprocessibleEntity ( ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = adminSession.put ( ( ( "/projects/" + ( project.get ( ) ) ) + "/parent" ) , newParentInput ( "non-existing" ) ) ; r.assertUnprocessableEntity ( ) ; r.consume ( ) ; }

Target:
public void setNonExistingParent_UnprocessibleEntity ( ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = adminRestSession.put ( ( ( "/projects/" + ( project.get ( ) ) ) + "/parent" ) , newParentInput ( "non-existing" ) ) ; r.assertUnprocessableEntity ( ) ; r.consume ( ) ; }
Source:
public java.util.Collection < com.google.gerrit.client.reviewdb.ProjectRight > getRights ( ) { return rights ; }

Target:
public java.util.Collection < com.google.gerrit.client.reviewdb.ProjectRight > getLocalRights ( ) { return rights ; }
Source:
java.lang.String groupMemberPattern ( ) { return "(memberUid=${username})" ; }

Target:
java.lang.String groupMemberPattern ( ) { return "(|(memberUid=${username})(gidNumber=${gidNumber}))" ; }
Source:
private org.eclipse.jgit.revwalk.RevCommit getRemoteHead ( ) throws java.io.IOException { try ( org.eclipse.jgit.lib.Repository repo = repoManager.openRepository ( project ) ; org.eclipse.jgit.revwalk.RevWalk rw = new org.eclipse.jgit.revwalk.RevWalk ( repo ) ) { return rw.parseCommit ( repo.getRef ( "refs/heads/master" ) . getObjectId ( ) ) ; } }

Target:
private org.eclipse.jgit.revwalk.RevCommit getRemoteHead ( ) throws java.io.IOException { try ( org.eclipse.jgit.lib.Repository repo = repoManager.openRepository ( project ) ; org.eclipse.jgit.revwalk.RevWalk rw = new org.eclipse.jgit.revwalk.RevWalk ( repo ) ) { return rw.parseCommit ( repo.exactRef ( "refs/heads/master" ) . getObjectId ( ) ) ; } }
Source:
public void unblockMoreSpecificRefInLocal_Fails ( ) { com.google.gerrit.server.project.Util.block ( parent , com.google.gerrit.common.data.Permission.PUSH , com.google.gerrit.server.group.SystemGroupBackend.ANONYMOUS_USERS , "refs/heads/*" ) ; com.google.gerrit.server.project.Util.allow ( local , com.google.gerrit.common.data.Permission.PUSH , com.google.gerrit.server.project.Util.DEVS , "refs/heads/master" ) ; com.google.gerrit.server.project.ProjectControl u = user ( local , com.google.gerrit.server.project.Util.DEVS ) ; assertCannotUpdate ( "refs/heads/master" , u ) ; }

Target:
public void unblockMoreSpecificRefInLocal_Fails ( ) { com.google.gerrit.server.project.testing.Util.block ( parent , com.google.gerrit.common.data.Permission.PUSH , com.google.gerrit.server.group.SystemGroupBackend.ANONYMOUS_USERS , "refs/heads/*" ) ; com.google.gerrit.server.project.testing.Util.allow ( local , com.google.gerrit.common.data.Permission.PUSH , com.google.gerrit.server.project.testing.Util.DEVS , "refs/heads/master" ) ; com.google.gerrit.server.project.ProjectControl u = user ( local , com.google.gerrit.server.project.testing.Util.DEVS ) ; assertCannotUpdate ( "refs/heads/master" , u ) ; }
Source:
public void onFailure ( java.lang.Throwable caught ) { query = new com.google.gerrit.client.admin.ProjectBranchesScreen.Query ( ) . start ( start ) . run ( ) ; super . onFailure ( caught ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.VoidResult result ) { query = new com.google.gerrit.client.admin.ProjectBranchesScreen.Query ( match ) . start ( start ) . run ( ) ; }
Source:
public com.google.gerrit.server.project.ChangeControl getChangeControl ( ) { return ctl ; }

Target:
public com.google.gerrit.server.project.ChangeControl getControl ( ) { return ctl ; }
Source:
public java.util.List < java.lang.String > currentFilePaths ( ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.reviewdb.client.PatchSet ps = currentPatchSet ( ) ; if ( ps == null ) { return null ; } return filePaths ( currentPatchSet ) ; }

Target:
public void setCurrentFilePaths ( java.util.List < java.lang.String > filePaths ) { currentFiles = com.google.common.collect.ImmutableList.copyOf ( filePaths ) ; }
Source:
void addOption ( com.google.gerrit.extensions.api.changes.SubmittedTogetherOption o ) { options.add ( o ) ; }

Target:
public com.google.gerrit.server.change.SubmittedTogether addListChangesOption ( java.util.EnumSet < com.google.gerrit.extensions.client.ListChangesOption > o ) { jsonOpt.addAll ( o ) ; return this ; }
Source:
void onDeleteEdit ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( com.google.gwt.user.client.Window.confirm ( Resources.C.deleteChangeEdit ( ) ) ) { com.google.gerrit.client.change.EditActions.deleteEdit ( changeId ) ; } }

Target:
void onPublish ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.DraftActions.publish ( changeId , revision , publish , deleteRevision , deleteChange ) ; }
Source:
protected void init ( ) throws com.google.gerrit.common.errors.EmailException { super . init ( ) ; ccAllApprovals ( ) ; bccStarredBy ( ) ; ccExistingReviewers ( ) ; includeWatchers ( NotifyType.ALL_COMMENTS ) ; add ( RecipientType.TO , reviewers ) ; removeUsersThatIgnoredTheChange ( ) ; }

Target:
protected void init ( ) throws com.google.gerrit.common.errors.EmailException { super . init ( ) ; ccAllApprovals ( ) ; bccStarredBy ( ) ; ccExistingReviewers ( ) ; includeWatchers ( NotifyType.ALL_COMMENTS ) ; add ( RecipientType.TO , reviewers ) ; addByEmail ( RecipientType.TO , reviewersByEmail ) ; removeUsersThatIgnoredTheChange ( ) ; }
Source:
protected void configure ( ) { post ( com.google.gerrit.server.change.RevisionResource.REVISION_KIND , "automerge-change" ) . to ( com.googlesource.gerrit.plugins.automerger.AutomergeChangeAction.class ) ; post ( com.google.gerrit.server.change.RevisionResource.REVISION_KIND , "config-downstream" ) . to ( com.googlesource.gerrit.plugins.automerger.ConfigDownstreamAction.class ) ; }

Target:
protected void configure ( ) { post ( com.google.gerrit.server.change.RevisionResource.REVISION_KIND , "automerge-change" ) . to ( com.googlesource.gerrit.plugins.automerger.AutomergeChangeAction.class ) ; post ( com.google.gerrit.server.change.RevisionResource.REVISION_KIND , "config-downstream" ) . to ( com.googlesource.gerrit.plugins.automerger.ConfigDownstreamAction.class ) ; get ( com.google.gerrit.server.project.BranchResource.BRANCH_KIND , "all-config-downstream" ) . to ( com.googlesource.gerrit.plugins.automerger.AllConfigDownstreamAction.class ) ; }
Source:
public void evict ( final com.google.gerrit.client.reviewdb.AccountGroup.Id groupId ) { byId.remove ( groupId ) ; }

Target:
public void evict ( final com.google.gerrit.client.reviewdb.AccountGroup group ) { byId.remove ( group.getId ( ) ) ; byName.remove ( group.getNameKey ( ) ) ; }
Source:
public int compare ( com.google.gerrit.client.changes.CommentInfo o1 , com.google.gerrit.client.changes.CommentInfo o2 ) { return o1.updated ( ) . compareTo ( o2.updated ( ) ) ; }

Target:
com.google.gerrit.client.diff.LineMapper.LineOnOtherInfo lineOnOther ( com.google.gerrit.client.diff.DisplaySide side , int line ) { return chunkManager.getLineMapper ( ) . lineOnOther ( side , line ) ; }
Source:
public void setChangeMessage ( final com.google.gerrit.reviewdb.client.ChangeMessage cm ) { changeMessage = cm ; }

Target:
public void setChangeMessage ( java.lang.String cm , java.sql.Timestamp t ) { changeMessage = cm ; timestamp = t ; }
Source:
void init ( com.google.gerrit.client.change.ChangeScreen2.Style style ) { this . style = style ; openForm.setVisible ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) ; }

Target:
void init ( com.google.gerrit.client.change.ChangeScreen2.Style style , com.google.gwt.dom.client.Element reviewersText ) { this . style = style ; this . reviewersText = reviewersText ; }
Source:
public com.google.gerrit.extensions.common.MergeableInfo mergeableOtherBranches ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { mergeable.setOtherBranches ( true ) ; return mergeable.apply ( revision ) ; } catch ( com.google.gwtorm.server.OrmException | java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot check mergeability" , e ) ; } }

Target:
public com.google.gerrit.extensions.common.MergeableInfo mergeableOtherBranches ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { mergeable.setOtherBranches ( true ) ; return mergeable.apply ( revision ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot check mergeability" , e ) ; } }
Source:
public static void getSshKeys ( java.lang.String account , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JsArray < com.google.gerrit.client.account.SshKeyInfo > > cb ) { new com.google.gerrit.client.rpc.RestApi ( "/accounts/" ) . id ( account ) . view ( "sshkeys" ) . get ( cb ) ; }

Target:
public static void getSshKeys ( java.lang.String account , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JsArray < com.google.gerrit.client.account.SshKeyInfo > > cb ) { com.google.gerrit.client.account.AccountApi.accounts ( ) . id ( account ) . view ( "sshkeys" ) . get ( cb ) ; }
Source:
protected void configure ( ) { delete ( com.google.gerrit.server.project.ProjectResource.PROJECT_KIND ) . to ( com.googlesource.gerrit.plugins.deleteproject.DeleteProject.class ) ; }

Target:
protected void configure ( ) { delete ( com.google.gerrit.server.project.ProjectResource.PROJECT_KIND ) . to ( com.googlesource.gerrit.plugins.deleteproject.DeleteProject.class ) ; post ( com.google.gerrit.server.project.ProjectResource.PROJECT_KIND , "delete" ) . to ( com.googlesource.gerrit.plugins.deleteproject.DeleteAction.class ) ; }
Source:
protected void doDelete ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse rsp ) { if ( ! ( allowDelete ) ) { sendError ( rsp , javax.servlet.http.HttpServletResponse.SC_METHOD_NOT_ALLOWED , java.lang.String.format ( "cannot delete %s from index" , indexName ) ) ; } else { process ( req , rsp , com.ericsson.gerrit.plugins.highavailability.forwarder.rest.AbstractIndexRestApiServlet.Operation.DELETE ) ; } }

Target:
protected void doDelete ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse rsp ) { if ( ! ( allowDelete ) ) { sendError ( rsp , javax.servlet.http.HttpServletResponse.SC_METHOD_NOT_ALLOWED , java.lang.String.format ( "cannot delete %s from index" , indexName ) ) ; } else { process ( req , rsp , Operation.DELETE ) ; } }
Source:
public int getMinDelimiterCount ( ) { return 1 ; }

Target:
public int getMinLength ( ) { return 1 ; }
Source:
public void execute ( ) { for ( com.google.gerrit.client.diff.SidePanel.GutterWrapper info : gutters ) { adjustGutter ( info ) ; } }

Target:
public void execute ( ) { for ( com.google.gerrit.client.diff.OverviewBar.GutterWrapper info : gutters ) { adjustGutter ( info ) ; } }
Source:
public void testLinkify_AngleBrackets1 ( ) { final com.google.gwtexpui.safehtml.client.SafeHtml o = com.google.gwtexpui.safehtml.client.SafeHtml_LinkifyTest.html ( "A <http://go.here/> B" ) ; final com.google.gwtexpui.safehtml.client.SafeHtml n = o.linkify ( ) ; assertNotSame ( o , n ) ; assertEquals ( "A &lt;<a href=\"http://go.here/\" target=\"_blank\">http://go.here/</a>&gt; B" , n.asString ( ) ) ; }

Target:
public void testLinkify_AngleBrackets1 ( ) { final com.google.gwtexpui.safehtml.client.SafeHtml o = com.google.gwtexpui.safehtml.client.SafeHtml_LinkifyTest.html ( "A <http://go.here/> B" ) ; final com.google.gwtexpui.safehtml.client.SafeHtml n = o.linkify ( ) ; org.junit.Assert.assertNotSame ( o , n ) ; org.junit.Assert.assertEquals ( "A &lt;<a href=\"http://go.here/\" target=\"_blank\">http://go.here/</a>&gt; B" , n.asString ( ) ) ; }
Source:
public boolean isValidAuthorization ( java.lang.String keyIn ) ;

Target:
public boolean isValidXGerritAuth ( java.lang.String keyIn ) ;
Source:
private void initChangeRepo ( ) throws java.io.IOException { if ( ( changeRepo ) == null ) { changeRepo = openRepo ( projectName ) ; } }

Target:
private void initCodeRepo ( ) throws java.io.IOException { if ( ( codeRepo ) == null ) { codeRepo = openRepo ( projectName , false ) ; } }
Source:
public void add ( final java.lang.Runnable task ) { synchronized ( cleanup ) { cleanup.add ( task ) ; } }

Target:
public void add ( final java.lang.Runnable task ) { synchronized ( cleanup ) { if ( ran ) { throw new java.lang.IllegalStateException ( "Request has already been cleaned up" ) ; } cleanup.add ( task ) ; } }
Source:
public java.lang.String toString ( ) { return ( "index(" + ( pred ) ) + ")" ; }

Target:
public java.lang.String toString ( ) { return ( "index(" + ( source ) ) + ")" ; }
Source:
private Account.Id userNoLookup ( final java.lang.String name , final java.lang.String email ) { final com.google.gerrit.server.account.AccountState s = makeUser ( name , email ) ; return s.getAccount ( ) . getId ( ) ; }

Target:
private Account.Id userNoLookup ( final java.lang.String name , final java.lang.String email ) { final com.google.gerrit.reviewdb.Account s = makeUser ( name , email ) ; return s.getId ( ) ; }
Source:
com.google.gerrit.server.change.ChangeKind getChangeKind ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.PatchSet patch ) ;

Target:
com.google.gerrit.server.change.ChangeKind getChangeKind ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.notedb.ChangeNotes notes , com.google.gerrit.reviewdb.client.PatchSet patch ) ;
Source:
private java.util.List < com.google.gerrit.reviewdb.PatchLineComment > drafts ( ) throws com.google.gwtorm.client.OrmException { return db.patchComments ( ) . draftByPatchSetAuthor ( patchSetId , user.getAccountId ( ) ) . toList ( ) ; }

Target:
private java.util.List < com.google.gerrit.reviewdb.client.PatchLineComment > drafts ( ) throws com.google.gwtorm.server.OrmException { return db.patchComments ( ) . draftByPatchSetAuthor ( patchSetId , user.getAccountId ( ) ) . toList ( ) ; }
Source:
private static com.google.gerrit.server.account.AccountState newState ( com.google.gerrit.reviewdb.client.Account account ) { return new com.google.gerrit.server.account.AccountState ( account , com.google.common.collect.ImmutableSet.< com.google.gerrit.reviewdb.client.AccountGroup.UUID > of ( ) , com.google.common.collect.ImmutableSet.< com.google.gerrit.reviewdb.client.AccountExternalId > of ( ) , com.google.common.collect.ImmutableSet.< com.google.gerrit.reviewdb.client.AccountProjectWatch > of ( ) ) ; }

Target:
private static com.google.gerrit.server.account.AccountState newState ( com.google.gerrit.reviewdb.client.Account account ) { return new com.google.gerrit.server.account.AccountState ( account , com.google.common.collect.ImmutableSet.< com.google.gerrit.reviewdb.client.AccountGroup.UUID > of ( ) , com.google.common.collect.ImmutableSet.< com.google.gerrit.reviewdb.client.AccountExternalId > of ( ) , new java.util.HashMap < com.google.gerrit.server.account.WatchConfig.ProjectWatchKey , java.util.Set < com.google.gerrit.reviewdb.client.AccountProjectWatch.NotifyType > > ( ) ) ; }
Source:
public void visit ( org.pegdown.ast.MailLinkNode node ) { java.lang.String addr = node.getText ( ) ; html.open ( "a" ) . attribute ( "href" , ( "mailto:" + addr ) ) . appendAndEscape ( addr ) . close ( "a" ) ; }

Target:
public void visit ( org.commonmark.node.Code node ) { html.open ( "code" ) . appendAndEscape ( node.getLiteral ( ) ) . close ( "code" ) ; }
Source:
public void moveTipTo ( com.google.gerrit.server.git.CodeReviewCommit newTip , java.lang.String mergedFrom ) { branchTip = newTip ; mergeResults.put ( mergedFrom , newTip.getName ( ) ) ; }

Target:
public void moveTipTo ( com.google.gerrit.server.git.CodeReviewCommit newTip , java.lang.String mergedFrom ) { com.google.common.base.Preconditions.checkArgument ( ( newTip != null ) ) ; branchTip = newTip ; mergeResults.put ( mergedFrom , newTip.getName ( ) ) ; }
Source:
public void deleteAllowedWithDeletePermission ( ) throws java.lang.Exception { grant ( Permission.DELETE , project , "refs/*" , true ) ; assertDeleteRef ( org.eclipse.jgit.transport.RemoteRefUpdate.Status.OK ) ; }

Target:
public void deleteAllowedWithDeletePermission ( ) throws java.lang.Exception { grant ( project , "refs/*" , Permission.PUSH , true ) ; assertDeleteRef ( org.eclipse.jgit.transport.RemoteRefUpdate.Status.OK ) ; }
Source:
public void onSuccess ( final com.google.gerrit.common.data.ProjectDetail result ) { enableForm ( result.canModifyAgreements , result.canModifyDescription , result.canModifyMergeType , result.canModifyState , result.canModifyMaxObjectSizeLimit ) ; display ( result ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.projects.ConfigInfo result ) { enableForm ( ) ; display ( result ) ; }
Source:
abstract com.google.gerrit.client.diff.DiffScreen getDiffScreen ( ) ;

Target:
abstract java.lang.String getTokenSuffixForActiveLine ( net.codemirror.lib.CodeMirror cm ) ;
Source:
public static void setTimeForTesting ( ) { com.google.gerrit.testutil.TestTimeUtil.resetWithClockStep ( 1 , java.util.concurrent.TimeUnit.SECONDS ) ; }

Target:
public static void setTimeForTesting ( ) { com.google.gerrit.testing.TestTimeUtil.resetWithClockStep ( 1 , java.util.concurrent.TimeUnit.SECONDS ) ; }
Source:
public void onUpdate ( com.google.gerrit.server.git.ProjectConfig projectConfig , java.lang.String newValue ) { }

Target:
public java.lang.String apply ( java.lang.Enum < ? > e ) { return e.name ( ) ; }
Source:
public void preDisplay ( final com.google.gerrit.reviewdb.client.Account result ) { display ( result.getGeneralPreferences ( ) ) ; }

Target:
public void preDisplay ( com.google.gerrit.client.account.Preferences prefs ) { display ( prefs ) ; }
Source:
private void group ( java.lang.String name ) throws java.io.IOException { com.google.gerrit.acceptance.rest.group.GroupInput in = new com.google.gerrit.acceptance.rest.group.GroupInput ( ) ; session.put ( ( "/groups/" + name ) , in ) . consume ( ) ; }

Target:
private void group ( java.lang.String name ) throws java.io.IOException { com.google.gerrit.server.group.CreateGroup.Input in = new com.google.gerrit.server.group.CreateGroup.Input ( ) ; session.put ( ( "/groups/" + name ) , in ) . consume ( ) ; }
Source:
protected com.google.gerrit.server.project.ProjectData fromDocument ( org.apache.lucene.document.Document doc ) { com.google.gerrit.reviewdb.client.Project.NameKey nameKey = new com.google.gerrit.reviewdb.client.Project.NameKey ( doc.getField ( com.google.gerrit.server.index.project.ProjectField.NAME.getName ( ) ) . stringValue ( ) ) ; return projectCache.get ( ) . get ( nameKey ) . toProjectData ( ) ; }

Target:
protected com.google.gerrit.index.project.ProjectData fromDocument ( org.apache.lucene.document.Document doc ) { com.google.gerrit.reviewdb.client.Project.NameKey nameKey = new com.google.gerrit.reviewdb.client.Project.NameKey ( doc.getField ( com.google.gerrit.index.project.ProjectField.NAME.getName ( ) ) . stringValue ( ) ) ; return projectCache.get ( ) . get ( nameKey ) . toProjectData ( ) ; }
Source:
com.google.common.util.concurrent.ListenableFuture < ? > insert ( org.apache.lucene.document.Document doc ) throws java.io.IOException { return new com.google.gerrit.lucene.SubIndex.NrtFuture ( writer.addDocument ( doc ) ) ; }

Target:
com.google.common.util.concurrent.ListenableFuture < ? > insert ( org.apache.lucene.document.Document doc ) throws java.io.IOException { return new NrtFuture ( writer.addDocument ( doc ) ) ; }
Source:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { com.google.gerrit.client.Gerrit.getUserAccount ( ) . setShowSiteHeader ( val ) ; com.google.gerrit.client.Gerrit.applyUserPreferences ( ) ; }

Target:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { com.google.gerrit.client.Gerrit.getUserAccount ( ) . setGeneralPreferences ( p ) ; com.google.gerrit.client.Gerrit.applyUserPreferences ( ) ; enable ( true ) ; }
Source:
public com.googlecode.prolog_cafe.lang.NumberTerm floatIntPart ( ) { throw new com.googlecode.prolog_cafe.lang.IllegalTypeException ( "float" , this ) ; }

Target:
public com.googlecode.prolog_cafe.lang.NumberTerm floatIntPart ( ) { throw new com.googlecode.prolog_cafe.exceptions.IllegalTypeException ( "float" , this ) ; }
Source:
public java.lang.String toString ( ) { return "hook " + ( hook.getName ( ) ) ; }

Target:
public java.lang.String toString ( ) { return "hook " + ( hook.getFileName ( ) ) ; }
Source:
private static com.google.gerrit.server.IdentifiedUser checkUser ( com.google.gerrit.server.project.ProjectControl ctl ) { com.google.common.base.Preconditions.checkArgument ( ctl.getCurrentUser ( ) . isIdentifiedUser ( ) , "only IdentifiedUser may create change" ) ; return ( ( com.google.gerrit.server.IdentifiedUser ) ( ctl.getCurrentUser ( ) ) ) ; }

Target:
private static com.google.gerrit.server.IdentifiedUser checkUser ( com.google.gerrit.server.project.RefControl ctl ) { com.google.common.base.Preconditions.checkArgument ( ctl.getCurrentUser ( ) . isIdentifiedUser ( ) , "only IdentifiedUser may create change" ) ; return ( ( com.google.gerrit.server.IdentifiedUser ) ( ctl.getCurrentUser ( ) ) ) ; }
Source:
public void onEvent ( com.google.gerrit.server.events.Event event ) { if ( ( subscribedToEvents.isEmpty ( ) ) || ( subscribedToEvents.contains ( event.getType ( ) ) ) ) { offer ( event ) ; } }

Target:
public void cancel ( ) { onExit ( 0 ) ; }
Source:
boolean canEnableRenderEntireFile ( com.google.gerrit.client.account.DiffPreferences prefs ) { return ( ( fileSize.compareTo ( com.google.gerrit.client.diff.SideBySide.FileSize.HUGE ) ) < 0 ) || ( ( ( prefs.context ( ) ) != ( com.google.gerrit.reviewdb.client.AccountDiffPreference.WHOLE_FILE_CONTEXT ) ) && ( ( prefs.context ( ) ) < 100 ) ) ; }

Target:
boolean canRenderEntireFile ( com.google.gerrit.client.account.DiffPreferences prefs ) { return ( ( fileSize.compareTo ( com.google.gerrit.client.diff.SideBySide.FileSize.HUGE ) ) < 0 ) || ( ( ( prefs.context ( ) ) != ( com.google.gerrit.extensions.client.DiffPreferencesInfo.WHOLE_FILE_CONTEXT ) ) && ( ( prefs.context ( ) ) < 100 ) ) ; }
Source:
protected void configure ( ) { com.google.gerrit.extensions.registration.DynamicSet.bind ( binder ( ) , com.google.gerrit.server.validators.ProjectCreationValidationListener.class ) . to ( com.googlesource.gerrit.plugins.quota.MaxRepositoriesQuotaValidator.class ) ; }

Target:
protected void configure ( ) { com.google.gerrit.extensions.registration.DynamicSet.bind ( binder ( ) , com.google.gerrit.server.validators.ProjectCreationValidationListener.class ) . to ( com.googlesource.gerrit.plugins.quota.MaxRepositoriesQuotaValidator.class ) ; com.google.gerrit.extensions.registration.DynamicSet.bind ( binder ( ) , com.google.gerrit.server.git.ReceivePackInitializer.class ) . to ( com.googlesource.gerrit.plugins.quota.MaxRepositorySizeQuota.class ) ; }
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:
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 copySettingsFrom ( final com.google.gerrit.reviewdb.client.Project update ) { description = update.description ; useContributorAgreements = update.useContributorAgreements ; useSignedOffBy = update.useSignedOffBy ; useContentMerge = update.useContentMerge ; requireChangeID = update.requireChangeID ; submitType = update.submitType ; state = update.state ; }

Target:
public void copySettingsFrom ( final com.google.gerrit.reviewdb.client.Project update ) { description = update.description ; useContributorAgreements = update.useContributorAgreements ; useSignedOffBy = update.useSignedOffBy ; useContentMerge = update.useContentMerge ; requireChangeID = update.requireChangeID ; submitType = update.submitType ; state = update.state ; maxObjectSizeLimit = update.maxObjectSizeLimit ; }
Source:
public void onKeyUp ( com.google.gwt.event.dom.client.KeyUpEvent event ) { subname = filterTxt.getValue ( ) ; refresh ( ) ; }

Target:
public void onKeyUp ( com.google.gwt.event.dom.client.KeyUpEvent event ) { subname = filterTxt.getValue ( ) ; refresh ( ( ( event.getNativeEvent ( ) . getKeyCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) ) ; }
Source:
public boolean apply ( com.google.gerrit.server.project.ListBranches.BranchInfo info ) { return info.ref.equals ( b.ref ) ; }

Target:
public java.lang.String apply ( com.google.gerrit.extensions.api.projects.BranchInfo in ) { return in.ref ; }
Source:
public void run ( ) { onDestroy ( ) ; }

Target:
public void destroy ( ) { java.util.concurrent.Future < ? > future = task.getAndSet ( null ) ; if ( future != null ) { future.cancel ( true ) ; destroyExecutor.execute ( this :: onDestroy ) ; } }
Source:
public java.lang.String toString ( ) { return atts.get ( "dn" ) ; }

Target:
public java.lang.String toString ( ) { return getDN ( ) ; }
Source:
public static final com.google.gwtjsonrpc.server.ActiveCall getCurrentCall ( ) { return com.google.gwtjsonrpc.server.JsonServlet.perThreadCall.get ( ) ; }

Target:
public static < CallType extends com.google.gwtjsonrpc.server.ActiveCall > CallType getCurrentCall ( ) { return ( ( CallType ) ( com.google.gwtjsonrpc.server.JsonServlet.perThreadCall.get ( ) ) ) ; }
Source:
public java.util.Map < com.google.gerrit.reviewdb.Account.Id , com.google.gerrit.server.account.AccountState > getAll ( java.lang.Iterable < com.google.gerrit.reviewdb.Account.Id > accountIds ) ;

Target:
public com.google.common.util.concurrent.ListenableFuture < com.google.gerrit.reviewdb.Account > getAccount ( com.google.gerrit.reviewdb.Account.Id accountId ) ;
Source:
private static java.lang.String startTime ( final java.util.Date when ) { return com.google.gerrit.sshd.commands.ShowQueue.format ( when , ( ( com.google.gerrit.server.util.TimeUtil.nowMs ( ) ) - ( when.getTime ( ) ) ) ) ; }

Target:
private static java.lang.String startTime ( final java.util.Date when ) { return com.google.gerrit.sshd.commands.ShowQueue.format ( when , ( ( com.google.gerrit.common.TimeUtil.nowMs ( ) ) - ( when.getTime ( ) ) ) ) ; }
Source:
public void stop ( ) { org.apache.log4j.LogManager.getLogger ( ReplicationQueue.repLog.getName ( ) ) . removeAllAppenders ( ) ; }

Target:
public void stop ( ) { if ( ( serverInfo.getState ( ) ) == ( ServerInformation.State.SHUTDOWN ) ) { org.apache.log4j.LogManager.getLogger ( ReplicationQueue.repLog.getName ( ) ) . removeAllAppenders ( ) ; } }
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.gwtjsonrpc.common.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.extensions.client.DiffPreferencesInfo diffPrefs , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.PatchSetDetail > callback ) { patchSetDetail.create ( baseId , id , diffPrefs ) . to ( callback ) ; }
Source:
public void tearDown ( ) throws java.io.IOException { com.google.gerrit.testutil.TempFileUtil.cleanup ( ) ; }

Target:
public void tearDown ( ) throws java.io.IOException { com.google.gerrit.testing.TempFileUtil.cleanup ( ) ; }
Source:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { switch ( event.getCharCode ( ) ) { case com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER : doSearch ( ) ; break ; case com.google.gwt.event.dom.client.KeyCodes.KEY_ESCAPE : searchBox.setText ( "" ) ; searchBox.setFocus ( false ) ; break ; } }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { event.preventDefault ( ) ; searchBox.setFocus ( true ) ; searchBox.selectAll ( ) ; }
Source:
public void update ( com.googlesrouce.gerrit.plugins.github.git.GitJobStatus.Code status ) { this . status = status ; this . shortDescription = status.name ( ) ; this . value = status.name ( ) ; }

Target:
public void update ( com.googlesource.gerrit.plugins.github.git.GitJobStatus.Code status ) { this . status = status ; this . shortDescription = status.name ( ) ; this . value = status.name ( ) ; }
Source:
public static com.google.gerrit.common.data.GerritConfig getConfig ( ) { return com.google.gerrit.client.Gerrit.myConfig ; }

Target:
public static com.google.gerrit.client.info.ServerInfo info ( ) { return com.google.gerrit.client.Gerrit.myServerInfo ; }
Source:
public com.googlesource.gerrit.plugins.verifystatus.server.com.google.gwtorm [ ] members ( ) { return new com.google.gwtorm.client.Key < ? > [ ] { categoryId } ; }

Target:
public com.googlesource.gerrit.plugins.verifystatus.server.com.google.gwtorm [ ] members ( ) { return new com.google.gwtorm.client.Key < ? > [ ] { jobId } ; }
Source:
public java.util.regex.Pattern load ( java.lang.String regex ) throws java.lang.Exception { return java.util.regex.Pattern.compile ( regex ) ; }

Target:
static boolean isActive ( com.google.gerrit.server.config.PluginConfig cfg ) { return ( cfg.getStringList ( com.googlesource.gerrit.plugins.uploadvalidator.BlockedKeywordValidator.KEY_CHECK_BLOCKED_KEYWORD_PATTERN ) . length ) > 0 ; }
Source:
com.google.gerrit.server.project.ProjectControl forUser ( com.google.gerrit.server.CurrentUser who ) { com.google.gerrit.server.project.ProjectControl r = state.controlFor ( who ) ; r.allSections = allSections ; return r ; }

Target:
com.google.gerrit.server.project.ProjectControl forUser ( com.google.gerrit.server.CurrentUser who ) { com.google.gerrit.server.project.ProjectControl r = new com.google.gerrit.server.project.ProjectControl ( uploadGroups , receiveGroups , permissionFilter , changeControlFactory , permissionBackend , who , state ) ; r.allSections = allSections ; return r ; }
Source:
public static com.google.gerrit.server.query.Predicate < com.google.gerrit.reviewdb.client.AccountGroup > inname ( java.lang.String name ) { return new com.google.gerrit.server.query.group.GroupPredicates.GroupPredicate ( com.google.gerrit.server.index.group.GroupField.NAME_PART , GroupQueryBuilder.FIELD_INNAME , name.toLowerCase ( java.util.Locale.US ) ) ; }

Target:
public static com.google.gerrit.index.query.Predicate < com.google.gerrit.reviewdb.client.AccountGroup > inname ( java.lang.String name ) { return new com.google.gerrit.server.query.group.GroupPredicates.GroupPredicate ( com.google.gerrit.server.index.group.GroupField.NAME_PART , GroupQueryBuilder.FIELD_INNAME , name.toLowerCase ( java.util.Locale.US ) ) ; }
Source:
private boolean canSkipRef ( com.google.gerrit.server.config.PluginConfig config , java.lang.String ref ) { return matchCriteria ( config , "skipRef" , ref , true ) ; }

Target:
private boolean canSkipValidation ( com.google.gerrit.server.config.PluginConfig config , java.lang.String validatorOp ) { return matchCriteria ( config , "skipValidation" , validatorOp , false , false ) ; }
Source:
public void run ( ) { getSkipManager ( ) . removeAll ( ) ; getSkipManager ( ) . render ( context , diff ) ; updateRenderEntireFile ( ) ; }

Target:
public void run ( ) { switch ( getIntraLineStatus ( ) ) { case OFF : case OK : toggleShowIntraline ( ) ; break ; case FAILURE : case TIMEOUT : default : break ; } }
Source:
public abstract void handleEmails ( ) ;

Target:
public abstract void handleEmails ( boolean async ) ;
Source:
public java.util.List < com.google.gerrit.extensions.events.GitReferenceUpdatedListener.Update > getUpdates ( ) { com.google.gerrit.extensions.events.GitReferenceUpdatedListener.Update update = new com.google.gerrit.extensions.events.GitReferenceUpdatedListener.Update ( ) { public java.lang.String getRefName ( ) { return ref ; } } ; return com.google.common.collect.ImmutableList.of ( update ) ; }

Target:
public java.lang.String getNewObjectId ( ) { return newObjectId ; }
Source:
protected void rcptToAuthors ( final com.google.gerrit.server.mail.RecipientType rt ) { for ( final com.google.gerrit.reviewdb.client.Account.Id id : authors ) { add ( rt , id ) ; } }

Target:
public java.lang.String getListId ( ) throws com.google.gerrit.common.errors.EmailException { return velocify ( "gerrit-$projectName.replace('/', '-')@$email.gerritHost" ) ; }
Source:
public com.google.gerrit.extensions.client.DiffPreferencesInfo setDefaultDiffPreferences ( com.google.gerrit.extensions.client.DiffPreferencesInfo in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return setDiffPreferences.apply ( new com.google.gerrit.server.config.ConfigResource ( ) , in ) ; } catch ( java.io.IOException | org.eclipse.jgit.errors.ConfigInvalidException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot set default diff preferences" , e ) ; } }

Target:
public com.google.gerrit.extensions.client.DiffPreferencesInfo setDefaultDiffPreferences ( com.google.gerrit.extensions.client.DiffPreferencesInfo in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return setDiffPreferences.apply ( new com.google.gerrit.server.config.ConfigResource ( ) , in ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot set default diff preferences" , e ) ; } }
Source:
public com.google.gerrit.server.project.ConfigInfo apply ( com.google.gerrit.server.project.ProjectResource resource ) { return new com.google.gerrit.server.project.ConfigInfo ( resource.getControl ( ) , config , pluginConfigEntries , cfgFactory , allProjects , views ) ; }

Target:
public com.google.gerrit.server.project.ConfigInfo apply ( com.google.gerrit.server.project.ProjectResource resource ) { return new com.google.gerrit.server.project.ConfigInfo ( gerritConfig , resource.getControl ( ) , config , pluginConfigEntries , cfgFactory , allProjects , views ) ; }
Source:
public boolean isOwner ( ) { return ( canPerform ( ApprovalCategory.OWN , ( ( short ) ( 1 ) ) ) ) || ( getCurrentUser ( ) . isAdministrator ( ) ) ; }

Target:
public boolean isOwner ( ) { return ( canPerformOnAllRefs ( ApprovalCategory.OWN , ( ( short ) ( 1 ) ) ) ) || ( getCurrentUser ( ) . isAdministrator ( ) ) ; }
Source:
public java.text.DateFormat get ( ) { return new java.text.SimpleDateFormat ( "yyyy-MM-dd" ) ; }

Target:
protected java.text.DateFormat initialValue ( ) { return new java.text.SimpleDateFormat ( "yyyy-MM-dd" ) ; }
Source:
public static java.lang.String refsDraftCommentsPrefix ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { return com.google.gerrit.reviewdb.client.RefNames.buildRefsDraftCommentsPrefix ( accountId ) . toString ( ) ; }

Target:
public static java.lang.String refsDraftCommentsPrefix ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { return com.google.gerrit.reviewdb.client.RefNames.buildRefsPrefix ( com.google.gerrit.reviewdb.client.RefNames.REFS_DRAFT_COMMENTS , accountId ) . toString ( ) ; }
Source:
public void removeAssignee ( ) { this . assignee = com.google.common.base.Optional.absent ( ) ; }

Target:
public void removeAssignee ( ) { this . assignee = java.util.Optional.empty ( ) ; }
Source:
public static java.lang.String getUserName ( java.util.Collection < com.google.gerrit.server.account.ExternalId > ids ) { for ( com.google.gerrit.server.account.ExternalId extId : ids ) { if ( extId.isScheme ( com.google.gerrit.server.account.ExternalId.SCHEME_USERNAME ) ) { return extId.key ( ) . id ( ) ; } } return null ; }

Target:
public static java.lang.String getUserName ( java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > ids ) { for ( com.google.gerrit.server.account.externalids.ExternalId extId : ids ) { if ( extId.isScheme ( com.google.gerrit.server.account.externalids.ExternalId.SCHEME_USERNAME ) ) { return extId.key ( ) . id ( ) ; } } return null ; }
Source:
public java.lang.String getContentType ( ) { return response.getFirstHeader ( "X-FYI-Content-Type" ) . getValue ( ) ; }

Target:
public java.lang.String getContentType ( ) { return getHeader ( "X-FYI-Content-Type" ) ; }
Source:
public void onLoad ( ) { super . onLoad ( ) ; com.google.gerrit.client.Gerrit.addSignedInListener ( signedInListener ) ; }

Target:
public void onUnload ( ) { com.google.gerrit.client.Gerrit.removeSignOutHandler ( signedInListener ) ; super . onUnload ( ) ; }
Source:
public void run ( ) { java.lang.String rev = java.lang.String.valueOf ( revision.get ( ) ) ; com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange2 ( changeId , rev ) , new com.google.gerrit.client.change.ChangeScreen2 ( changeId , rev , openReplyBox ) ) ; }

Target:
public void run ( ) { java.lang.String rev = java.lang.String.valueOf ( revision.get ( ) ) ; com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( changeId , rev ) , new com.google.gerrit.client.change.ChangeScreen2 ( changeId , rev , openReplyBox ) ) ; }
Source:
private com.google.gerrit.client.change.RelatedChangesTab getTab ( ) { if ( ( conflictingChangesTab ) == null ) { conflictingChangesTab = createTab ( Resources.C.conflictingChanges ( ) , Resources.C.conflictingChangesTooltip ( ) ) ; conflictingChangesTab.registerKeys ( ) ; } return conflictingChangesTab ; }

Target:
public void onSuccess ( com.google.gerrit.client.change.RelatedChanges.RelatedInfo result ) { relatedChangesTab.setTitle ( Resources.M.relatedChanges ( result.changes ( ) . length ( ) ) ) ; relatedChangesTab.setChanges ( info.project ( ) , revision , result.changes ( ) ) ; }
Source:
public com.google.gerrit.server.IdentifiedUser create ( final com.google.gerrit.reviewdb.client.Account.Id id ) { return create ( AccessPath.UNKNOWN , null , id ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( final com.google.gerrit.reviewdb.client.Account.Id id ) { return create ( ( ( java.net.SocketAddress ) ( null ) ) , id ) ; }
Source:
public com.google.gerrit.server.project.ChangeControl getControl ( ) { return rev.getControl ( ) ; }

Target:
public com.google.gerrit.server.CurrentUser getUser ( ) { return rev.getUser ( ) ; }
Source:
public com.google.gerrit.reviewdb.client.Change update ( com.google.gerrit.reviewdb.client.Change c ) { if ( c.getStatus ( ) . isOpen ( ) ) { c.setStatus ( Change.Status.NEW ) ; com.google.gerrit.server.ChangeUtil.updated ( c ) ; } return c ; }

Target:
public com.google.gerrit.reviewdb.client.Change update ( com.google.gerrit.reviewdb.client.Change c ) { if ( c.getStatus ( ) . isOpen ( ) ) { if ( setStatusNew ) { c.setStatus ( Change.Status.NEW ) ; } com.google.gerrit.server.ChangeUtil.updated ( c ) ; } return c ; }
Source:
static void fireDialogVisible ( boolean visible ) { com.google.gwtexpui.user.client.UserAgent.bus.fireEvent ( new com.google.gwtexpui.user.client.DialogVisibleEvent ( visible ) ) ; }

Target:
static void fireDialogVisible ( com.google.gwt.user.client.ui.Widget w , boolean visible ) { com.google.gwtexpui.user.client.UserAgent.bus.fireEvent ( new com.google.gwtexpui.user.client.DialogVisibleEvent ( w , visible ) ) ; }
Source:
private java.lang.String link ( final com.google.gerrit.reviewdb.client.Project item ) { return com.google.gerrit.client.Dispatcher.toProjectAdmin ( item.getNameKey ( ) , ProjectScreen.INFO ) ; }

Target:
private java.lang.String link ( final com.google.gerrit.client.projects.ProjectInfo item ) { return com.google.gerrit.client.Dispatcher.toProjectAdmin ( item.name_key ( ) , ProjectScreen.INFO ) ; }
Source:
public void addEventListener ( com.google.gerrit.common.EventListener listener , com.google.gerrit.server.CurrentUser user ) { }

Target:
public void doClaSignupHook ( com.google.gerrit.reviewdb.client.Account account , java.lang.String claName ) { }
Source:
private java.util.Collection < com.google.gerrit.reviewdb.RefRight > getInheritedRights ( ) { return filter ( projectControl.getProjectState ( ) . getInheritedRights ( ) ) ; }

Target:
private java.util.List < com.google.gerrit.reviewdb.RefRight > getInheritedRights ( com.google.gerrit.reviewdb.ApprovalCategory.Id actionId ) { return filter ( projectControl.getProjectState ( ) . getInheritedRights ( ) , actionId ) ; }
Source:
public void onSuccess ( final com.google.gerrit.client.groups.MemberInfo memberInfo ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.client.Dispatcher.toGroup ( getGroupUUID ( ) , AccountGroupScreen.MEMBERS ) ) ; }

Target:
public void onSuccess ( final com.google.gerrit.client.groups.MemberInfo memberInfo ) { addMemberBox.setEnabled ( true ) ; addMemberBox.setText ( "" ) ; members.insert ( memberInfo ) ; }
Source:
protected void configure ( ) { listener ( ) . to ( LocalDiskRepositoryManager.Lifecycle.class ) ; }

Target:
protected void configure ( ) { install ( new com.google.gerrit.server.schema.SchemaVersion.Module ( ) ) ; bind ( org.eclipse.jgit.lib.PersonIdent.class ) . annotatedWith ( com.google.gerrit.server.GerritPersonIdent.class ) . toProvider ( com.google.gerrit.server.GerritPersonIdentProvider.class ) ; bind ( com.google.gerrit.server.config.AllProjectsName.class ) . toProvider ( com.google.gerrit.server.config.AllProjectsNameProvider.class ) . in ( com.google.inject.Scopes.SINGLETON ) ; }
Source:
public java.lang.String getUrl ( com.google.gerrit.reviewdb.client.Account account , int imageSize ) ;

Target:
public java.lang.String getUrl ( com.google.gerrit.server.IdentifiedUser forUser , int imageSize ) ;
Source:
private void setNew ( com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.reviewdb.client.ChangeMessage msg ) { sendMergeFail ( c , msg , true ) ; }

Target:
private void setNew ( com.google.gerrit.server.git.CodeReviewCommit c , com.google.gerrit.reviewdb.client.ChangeMessage msg ) { sendMergeFail ( c.notes , msg , true ) ; }
Source:
public < T extends com.google.gwt.core.client.JavaScriptObject > void put ( java.lang.String content , com.google.gerrit.client.rpc.HttpCallback < T > cb ) { sendRaw ( com.google.gwt.http.client.RequestBuilder.PUT , content , cb ) ; }

Target:
public < T extends com.google.gwt.core.client.JavaScriptObject > void put ( java.lang.String content , com.google.gerrit.client.rpc.HttpCallback < T > cb ) { sendText ( com.google.gwt.http.client.RequestBuilder.PUT , content , cb ) ; }
Source:
public void onCellClicked ( com.google.gwt.user.client.ui.SourcesTableEvents sender , int row , int cell ) { if ( ( cell != 1 ) && ( ( getRowItem ( row ) ) != null ) ) { movePointerTo ( row ) ; } }

Target:
public boolean onBeforeTabSelected ( com.google.gwt.user.client.ui.SourcesTabEvents sender , int tabIndex ) { return true ; }
Source:
public void add ( final com.google.gerrit.lifecycle.LifecycleListener listener ) { listeners.put ( listener , true ) ; }

Target:
public void add ( com.google.gerrit.lifecycle.LifecycleListener listener ) { listeners.add ( com.google.inject.util.Providers.of ( listener ) ) ; }
Source:
com.google.gerrit.server.util.RequestContext provideRequestContext ( @ com.google.inject.name.Named ( value = com.google.gerrit.server.util.ThreadLocalRequestContext.FALLBACK ) com.google.gerrit.server.util.RequestContext fallback ) { return com.google.common.base.Objects.firstNonNull ( com.google.gerrit.server.util.ThreadLocalRequestContext.local.get ( ) , fallback ) ; }

Target:
com.google.gerrit.server.util.RequestContext provideRequestContext ( @ com.google.inject.name.Named ( value = com.google.gerrit.server.util.ThreadLocalRequestContext.FALLBACK ) com.google.gerrit.server.util.RequestContext fallback ) { return com.google.common.base.MoreObjects.firstNonNull ( com.google.gerrit.server.util.ThreadLocalRequestContext.local.get ( ) , fallback ) ; }
Source:
private void checkRequestScope ( ) { if ( ( dbProvider ) == null ) { throw new com.google.inject.OutOfScopeException ( "Not in request scoped user" ) ; } }

Target:
public synchronized < T > T get ( com.google.gerrit.server.PropertyKey < T > key ) { if ( ( properties ) != null ) { @ java.lang.SuppressWarnings ( value = "unchecked" ) T value = ( ( T ) ( properties.get ( key ) ) ) ; return value ; } return null ; }
Source:
public java.util.Collection < com.google.gerrit.server.index.ChangeIndex > getWriteIndexes ( ) { return java.util.Collections.unmodifiableCollection ( writeIndexes.values ( ) ) ; }

Target:
public com.google.gerrit.server.index.ChangeIndex getWriteIndex ( int version ) { return writeIndexes.get ( version ) ; }
Source:
static com.google.gerrit.pgm.util.Die die ( java.lang.String why , java.lang.Throwable cause ) { return new com.google.gerrit.pgm.util.Die ( why , cause ) ; }

Target:
static com.google.gerrit.common.Die die ( java.lang.String why , java.lang.Throwable cause ) { return new com.google.gerrit.common.Die ( why , cause ) ; }
Source:
public void testDeleteOneNotExisting ( ) throws com.google.gwtorm.client.OrmException , java.sql.SQLException { stubExecuteBatchOK ( com.google.gwtorm.jdbc.TestJdbcAccess.DELETE , 0 ) ; try { createClassUnderTest ( ) . delete ( com.google.gwtorm.jdbc.TestJdbcAccess.ONE_ROW ) ; org.junit.Assert.fail ( "missing OrmConcurrencyException" ) ; } catch ( com.google.gwtorm.client.OrmConcurrencyException e ) { } }

Target:
public void testUpsertNothing ( ) throws com.google.gwtorm.server.OrmException , java.sql.SQLException { createClassUnderTest ( ) . upsert ( noData ) ; }
Source:
public void evict ( final java.lang.String email ) { cache.remove ( email ) ; }

Target:
public void evict ( final java.lang.String email ) { cache.remove ( new com.google.gerrit.reviewdb.Account.Email ( email ) ) ; }
Source:
private static boolean isGerritServer ( com.google.gerrit.client.account.AccountInfo account ) { return ( ( account._accountId ( ) ) == 0 ) && ( Util.C.messageNoAuthor ( ) . equals ( account.name ( ) ) ) ; }

Target:
private static boolean isGerritServer ( com.google.gerrit.client.info.AccountInfo account ) { return ( ( account._accountId ( ) ) == 0 ) && ( Util.C.messageNoAuthor ( ) . equals ( account.name ( ) ) ) ; }
Source:
private com.google.gerrit.server.project.ChangeControl reload ( com.google.gerrit.server.project.ChangeControl ctl ) throws java.lang.Exception { return changeControlFactory.controlFor ( db , ctl.getChange ( ) . getProject ( ) , ctl.getId ( ) , ctl.getUser ( ) ) ; }

Target:
private com.google.gerrit.server.project.ChangeControl controlForNotes ( com.google.gerrit.server.notedb.ChangeNotes notes ) throws java.lang.Exception { return changeControlFactory.controlFor ( notes , userFactory.create ( admin.id ) ) ; }
Source:
public static org.eclipse.jgit.lib.Config defaultConfig ( ) { return com.google.gerrit.server.query.IndexConfig.createForLucene ( ) ; }

Target:
public static org.eclipse.jgit.lib.Config defaultConfig ( ) { return com.google.gerrit.testing.IndexConfig.createForLucene ( ) ; }