auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public com.google.gerrit.acceptance.RestResponse delete ( java.lang.String endPoint ) throws java.io.IOException { return execute ( org.apache.http.client.fluent.Request.Delete ( ( ( ( url ) + "/a" ) + endPoint ) ) ) ; HEAD ( 49 [ Merge ] ) ; }

Target:
public com.google.gerrit.acceptance.RestResponse delete ( java.lang.String endPoint ) throws java.io.IOException { return execute ( org.apache.http.client.fluent.Request.Delete ( ( ( ( url ) + "/a" ) + endPoint ) ) ) ; }
Source:
private java.lang.String indent ( int spaces ) { if ( spaces == 0 ) { return "" ; } else { return java.lang.String.format ( ( ( "%" + spaces ) + "s" ) , " " ) ; } }

Target:
private java.lang.String indent ( int spaces ) { if ( spaces == 0 ) { return "" ; } return java.lang.String.format ( ( ( "%" + spaces ) + "s" ) , " " ) ; }
Source:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > byCommit ( org.eclipse.jgit.lib.ObjectId id ) throws com.google.gwtorm.server.OrmException { return query ( com.google.gerrit.server.query.change.InternalChangeQuery.commit ( id ) ) ; }

Target:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > byCommit ( org.eclipse.jgit.lib.ObjectId id ) throws com.google.gwtorm.server.OrmException { return query ( com.google.gerrit.server.query.change.InternalChangeQuery.commit ( id.name ( ) ) ) ; }
Source:
protected void createProject ( com.google.gerrit.extensions.api.projects.ProjectInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { gApi.projects ( ) . create ( in ) ; }

Target:
private Project.NameKey createProject ( com.google.gerrit.extensions.api.projects.ProjectInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { gApi.projects ( ) . create ( in ) ; return new com.google.gerrit.reviewdb.client.Project.NameKey ( in.name ) ; }
Source:
public static boolean canRead ( final com.google.gerrit.client.reviewdb.Account.Id who , final com.google.gerrit.client.reviewdb.Project.NameKey projectKey ) { final com.google.gerrit.client.data.ProjectCache.Entry e = com.google.gerrit.client.rpc.Common.getProjectCache ( ) . get ( projectKey ) ; return com.google.gerrit.client.rpc.BaseServiceImplementation.canRead ( who , e ) ; }

Target:
public static boolean canRead ( final com.google.gerrit.client.reviewdb.Account.Id who , final com.google.gerrit.client.reviewdb.Project.NameKey projectKey ) { return com.google.gerrit.client.rpc.BaseServiceImplementation.canRead ( who , com.google.gerrit.client.rpc.Common.getProjectCache ( ) . get ( projectKey ) ) ; }
Source:
private static java.lang.String resolveHttpUrl ( java.lang.String remoteUrl ) { return com.google.gitiles.PathServlet.VERBATIM_SUBMODULE_URL_PATTERN.matcher ( remoteUrl ) . matches ( ) ? remoteUrl : null ; }

Target:
private static java.lang.String resolveHttpUrl ( java.lang.String remoteUrl ) { if ( remoteUrl == null ) { return null ; } return com.google.gitiles.PathServlet.VERBATIM_SUBMODULE_URL_PATTERN.matcher ( remoteUrl ) . matches ( ) ? remoteUrl : null ; }
Source:
public void setJarUrl ( final java.lang.String url ) { this . jarUrl = url ; }

Target:
void setJarUrl ( final java.lang.String url ) { this . jarUrl = url ; }
Source:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { com.google.gerrit.client.Gerrit.display ( nextToken , true ) ; }

Target:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { com.google.gerrit.client.Gerrit.display ( nextToken ) ; }
Source:
public void setName ( final java.lang.String name ) { this . name = name ; }

Target:
void setName ( final java.lang.String name ) { this . name = name ; }
Source:
public void stop ( ) { if ( ( threadPool ) != null ) { threadPool.unregisterWorkQueue ( ) ; threadPool = null ; } }

Target:
public void stop ( ) { threadPool = null ; }
Source:
private static void mainImpl ( final java.lang.String [ ] argv ) throws com.google.gwtjsonrpc.server.XsrfException , com.google.gwtorm.client.OrmException { com.google.gerrit.server.GerritServer.getInstance ( ) ; com.google.gerrit.client.rpc.Common.getSchemaFactory ( ) . open ( ) . close ( ) ; java.lang.System.out.println ( "Gerrit2 schema initialized" ) ; }

Target:
private static void mainImpl ( final java.lang.String [ ] argv ) throws com.google.gwtjsonrpc.server.XsrfException , com.google.gwtorm.client.OrmException { com.google.gerrit.server.GerritServer.getInstance ( false ) ; com.google.gerrit.client.rpc.Common.getSchemaFactory ( ) . open ( ) . close ( ) ; java.lang.System.out.println ( "Gerrit2 schema initialized" ) ; }
Source:
public static com.google.gerrit.client.rpc.RestApi reviewer ( int id , java.lang.String reviewer ) { return com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( "reviewers" ) . id ( reviewer ) ; }

Target:
public static com.google.gerrit.client.rpc.RestApi reviewer ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , java.lang.String reviewer ) { return com.google.gerrit.client.changes.ChangeApi.change ( project , id ) . view ( "reviewers" ) . id ( reviewer ) ; }
Source:
private static native java.lang.String go ( com.google.gwt.core.client.JavaScriptObject ctx , java.lang.String srcText , java.lang.String srcType , int tabSize ) ;

Target:
private static native java.lang.String go ( com.google.gwt.core.client.JavaScriptObject ctx , java.lang.String srcText , java.lang.String srcType ) ;
Source:
public com.google.gerrit.extensions.restapi.BinaryResult apply ( com.google.gerrit.server.project.FileResource rsrc ) throws com.google.gerrit.extensions.restapi.BadRequestException , com.google.gerrit.extensions.restapi.ResourceNotFoundException , java.io.IOException { return fileContentUtil.getContent ( rsrc.getProject ( ) . getProjectState ( ) , rsrc.getRev ( ) , rsrc.getPath ( ) , null ) ; }

Target:
public com.google.gerrit.extensions.restapi.BinaryResult apply ( com.google.gerrit.server.project.FileResource rsrc ) throws com.google.gerrit.extensions.restapi.BadRequestException , com.google.gerrit.extensions.restapi.ResourceNotFoundException , java.io.IOException { return fileContentUtil.getContent ( rsrc.getProjectState ( ) , rsrc.getRev ( ) , rsrc.getPath ( ) , null ) ; }
Source:
public static void get ( com.google.gerrit.reviewdb.client.PatchSet.Id id , java.lang.String path , com.google.gerrit.client.rpc.HttpCallback < com.google.gerrit.client.rpc.NativeString > cb ) { com.google.gerrit.client.changes.ChangeEditApi.get ( id , path , false , cb ) ; }

Target:
public static void get ( @ com.google.gerrit.common.Nullable com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.PatchSet.Id id , java.lang.String path , com.google.gerrit.client.rpc.HttpCallback < com.google.gerrit.client.rpc.NativeString > cb ) { com.google.gerrit.client.changes.ChangeEditApi.get ( project , id , path , false , cb ) ; }
Source:
public void setMessage ( final java.lang.String message ) { this . message = message ; }

Target:
public void setMessage ( final java.lang.String message ) { }
Source:
public void checkCustom ( org.bouncycastle.openpgp.PGPPublicKey key , long expectedKeyId , java.util.List < java.lang.String > problems ) { }

Target:
public void checkCustom ( org.bouncycastle.openpgp.PGPPublicKey key , java.util.List < java.lang.String > problems ) { }
Source:
public com.google.gerrit.reviewdb.Change update ( com.google.gerrit.reviewdb.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 ( ) ) { c.setStatus ( Change.Status.NEW ) ; com.google.gerrit.server.ChangeUtil.updated ( c ) ; } return c ; }
Source:
private static boolean eq ( final java.lang.String a , final java.lang.String b ) { if ( ( a == null ) && ( b == null ) ) { return true ; } return a != null ? a.equals ( b ) : false ; }

Target:
private static boolean eq ( final java.lang.String a , final java.lang.String b ) { if ( ( a == null ) && ( b == null ) ) { return true ; } return ( a != null ) && ( a.equals ( b ) ) ; }
Source:
public void setMaxDatabaseSize ( int size ) { if ( ( engine.aregs ) != null ) throw new java.lang.IllegalStateException ( "Prolog already initialized" ) ; if ( ( engine.internalDB ) != null ) engine.internalDB.maxContents = size ; else engine.internalDB = new com.googlecode.prolog_cafe.lang.InternalDatabase ( size ) ; }

Target:
public void setMaxDatabaseSize ( int size ) { if ( ( engine.internalDB ) != null ) engine.internalDB.maxContents = size ; else engine.internalDB = new com.googlecode.prolog_cafe.lang.InternalDatabase ( size ) ; }
Source:
protected void onInitUI ( ) { super . onInitUI ( ) ; groups = new com.google.gerrit.client.admin.GroupTable ( false ) ; add ( groups ) ; }

Target:
protected void onInitUI ( ) { super . onInitUI ( ) ; groups = new com.google.gerrit.client.admin.GroupTable ( true ) ; add ( groups ) ; }
Source:
public com.google.gerrit.extensions.common.ChangeInfo check ( com.google.gerrit.extensions.api.changes.FixInput fix ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return check.apply ( change , fix ) . value ( ) ; } catch ( com.google.gwtorm.server.OrmException | com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot check change" , e ) ; } }

Target:
public com.google.gerrit.extensions.common.ChangeInfo check ( com.google.gerrit.extensions.api.changes.FixInput fix ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return check.apply ( change , fix ) . value ( ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot check change" , e ) ; } }
Source:
public com.google.gerrit.server.notedb.NoteDbUpdateManager.Result rebuildEvenIfReadOnly ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Change.Id changeId ) throws com.google.gerrit.server.project.NoSuchChangeException , com.google.gwtorm.server.OrmException , java.io.IOException { return rebuild ( db , changeId , false ) ; }

Target:
public com.google.gerrit.server.notedb.NoteDbUpdateManager.Result rebuildEvenIfReadOnly ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Change.Id changeId ) throws com.google.gwtorm.server.OrmException , java.io.IOException { return rebuild ( db , changeId , false ) ; }
Source:
public void getOpenChange_NotFound ( ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit.Result r = pushFactory.create ( db , admin.getIdent ( ) ) . to ( git , "refs/for/master" ) ; r.assertOkStatus ( ) ; assertNotFound ( r.getCommitId ( ) ) ; }

Target:
public void getOpenChange_NotFound ( ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit.Result r = pushFactory.create ( db , admin.getIdent ( ) , git ) . to ( "refs/for/master" ) ; r.assertOkStatus ( ) ; assertNotFound ( r.getCommitId ( ) ) ; }
Source:
public void evict ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { if ( accountId != null ) { byId.invalidate ( accountId ) ; } }

Target:
public void evict ( com.google.gerrit.reviewdb.client.Account.Id accountId ) throws java.io.IOException { if ( accountId != null ) { byId.invalidate ( accountId ) ; index ( accountId ) ; } }
Source:
public final native boolean syntaxHighlighting ( ) ;

Target:
private final native boolean get ( java.lang.String n , boolean d ) ;
Source:
void init ( com.google.gerrit.client.change.ChangeScreen2.Style style , com.google.gwt.dom.client.Element statusText ) { this . style = style ; this . statusText = statusText ; }

Target:
void init ( com.google.gerrit.client.change.ChangeScreen2.Style style ) { this . style = style ; }
Source:
public void testHashCodeWhenNull ( ) { final com.google.gwtorm.client.StringKeyTestCase.Parent p = new com.google.gwtorm.client.StringKeyTestCase.Parent ( null ) ; assertEquals ( 0 , p.hashCode ( ) ) ; }

Target:
public void testHashCodeWhenNull ( ) { final com.google.gwtorm.client.StringKeyTestCase.Parent p = new com.google.gwtorm.client.StringKeyTestCase.Parent ( null ) ; org.junit.Assert.assertEquals ( 0 , p.hashCode ( ) ) ; }
Source:
protected abstract com.google.gerrit.server.git.MergeTip _run ( com.google.gerrit.server.git.CodeReviewCommit currentTip , java.util.Collection < com.google.gerrit.server.git.CodeReviewCommit > toMerge ) throws com.google.gerrit.server.git.IntegrationException ;

Target:
public abstract com.google.gerrit.server.git.MergeTip run ( com.google.gerrit.server.git.CodeReviewCommit currentTip , java.util.Collection < com.google.gerrit.server.git.CodeReviewCommit > toMerge ) throws com.google.gerrit.server.git.IntegrationException ;
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { setOpen ( ( ! ( isOpen ( ) ) ) ) ; resizePaddingWidget ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { setOpen ( ( ! ( isOpen ( ) ) ) ) ; }
Source:
public void run ( ) throws java.lang.Exception { parseCommandLine ( impl ) ; final java.io.PrintWriter stdout = toPrintWriter ( out ) ; try { impl.display ( stdout ) ; } finally { stdout.flush ( ) ; } }

Target:
public void run ( ) throws java.lang.Exception { impl.display ( stdout ) ; }
Source:
protected com.google.gwtorm.schema.SchemaModel getSchemaModel ( ) { return schemaModel ; }

Target:
public com.google.gwtorm.schema.SchemaModel getSchemaModel ( ) { return schemaModel ; }
Source:
protected void configure ( ) { listener ( ) . to ( LocalDiskRepositoryManager.Lifecycle.class ) ; listener ( ) . to ( CachePool.Lifecycle.class ) ; listener ( ) . to ( WorkQueue.Lifecycle.class ) ; listener ( ) . to ( com.google.gerrit.server.config.GerritGlobalModule.VelocityLifecycle.class ) ; }

Target:
protected void configure ( ) { listener ( ) . to ( CachePool.Lifecycle.class ) ; listener ( ) . to ( WorkQueue.Lifecycle.class ) ; listener ( ) . to ( com.google.gerrit.server.config.GerritGlobalModule.VelocityLifecycle.class ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; new com.google.gerrit.testutil.InMemoryModule ( ) . inject ( this ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { new com.google.gerrit.testutil.InMemoryModule ( ) . inject ( this ) ; }
Source:
void addFileCommentBox ( com.google.gerrit.client.diff.CommentBox box , com.google.gerrit.common.changes.Side side ) { diffTable.addFileCommentBox ( box , side ) ; }

Target:
void addFileCommentBox ( com.google.gerrit.client.diff.CommentBox box ) { diffTable.addFileCommentBox ( box ) ; }
Source:
public void onPreReceive ( final org.spearce.jgit.transport.ReceivePack arg0 , final java.util.Collection < org.spearce.jgit.transport.ReceiveCommand > commands ) { parseCommands ( commands ) ; createNewChanges ( rp ) ; appendPatchSets ( rp.getRevWalk ( ) ) ; }

Target:
public void onPreReceive ( final org.spearce.jgit.transport.ReceivePack arg0 , final java.util.Collection < org.spearce.jgit.transport.ReceiveCommand > commands ) { parseCommands ( commands ) ; createNewChanges ( ) ; appendPatchSets ( ) ; }
Source:
public final void addLineClass ( int line , net.codemirror.lib.CodeMirror.LineClassWhere where , java.lang.String className ) { addLineClassNative ( line , where.name ( ) . toLowerCase ( ) , className ) ; }

Target:
public final void addLineClass ( int line , net.codemirror.lib.CodeMirror.LineClassWhere where , java.lang.String className ) { addLineClassNative ( line , where.value ( ) , className ) ; }
Source:
public void onSuccess ( final java.util.List < com.google.gerrit.client.reviewdb.Branch > result ) { enableForm ( true ) ; branches.display ( result ) ; branches.finishDisplay ( true ) ; }

Target:
public void onSuccess ( final java.util.List < com.google.gerrit.client.reviewdb.Branch > result ) { enableForm ( true ) ; branches.display ( result ) ; }
Source:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( event.getCharCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { event.stopPropagation ( ) ; event.preventDefault ( ) ; form.submit ( ) ; } }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( event.getCharCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { event.preventDefault ( ) ; form.submit ( ) ; } }
Source:
private static com.google.gerrit.client.rpc.RestApi editMessage ( int id ) { return com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( "edit:message" ) ; }

Target:
private static com.google.gerrit.client.rpc.RestApi editMessage ( @ com.google.gerrit.common.Nullable java.lang.String project , int id ) { return com.google.gerrit.client.changes.ChangeApi.change ( project , id ) . view ( "edit:message" ) ; }
Source:
public com.google.gerrit.server.account.GroupControl controlFor ( final com.google.gerrit.reviewdb.client.AccountGroup group ) { return new com.google.gerrit.server.account.GroupControl ( groupCache , user.get ( ) , group ) ; }

Target:
public com.google.gerrit.server.account.GroupControl controlFor ( final com.google.gerrit.reviewdb.client.AccountGroup group ) { return new com.google.gerrit.server.account.GroupControl ( user.get ( ) , group ) ; }
Source:
public void projectDetail ( final com.google.gerrit.client.reviewdb.Project.Id projectId , final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.admin.ProjectDetail > callback ) { projectDetailFactory.create ( projectId ) . to ( callback ) ; }

Target:
public void projectDetail ( final com.google.gerrit.client.reviewdb.Project.NameKey projectName , final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.admin.ProjectDetail > callback ) { projectDetailFactory.create ( projectName ) . to ( callback ) ; }
Source:
private java.lang.String pushTagForNewCommit ( com.google.gerrit.acceptance.rest.project.PushTagIT.TagType tagType , org.eclipse.jgit.transport.RemoteRefUpdate.Status expectedStatus ) throws java.lang.Exception { return pushTag ( tagType , true , expectedStatus ) ; }

Target:
private java.lang.String pushTagForNewCommit ( com.google.gerrit.acceptance.rest.project.PushTagIT.TagType tagType , org.eclipse.jgit.transport.RemoteRefUpdate.Status expectedStatus ) throws java.lang.Exception { return pushTag ( tagType , null , true , expectedStatus ) ; }
Source:
public com.google.gerrit.extensions.common.ChangeInfo format ( com.google.gerrit.server.query.change.ChangeData cd ) throws com.google.gwtorm.server.OrmException { return format ( cd , com.google.common.base.Optional.< com.google.gerrit.reviewdb.client.PatchSet.Id > absent ( ) ) ; }

Target:
public com.google.gerrit.extensions.common.ChangeInfo format ( com.google.gerrit.server.query.change.ChangeData cd ) throws com.google.gwtorm.server.OrmException { return format ( cd , com.google.common.base.Optional.< com.google.gerrit.reviewdb.client.PatchSet.Id > absent ( ) , true ) ; }
Source:
void addBranch ( com.google.gerrit.client.reviewdb.Project.Id project , java.lang.String branchName , java.lang.String startingRevision , com.google.gwt.user.client.rpc.AsyncCallback < java.util.List < com.google.gerrit.client.reviewdb.Branch > > callback ) ;

Target:
void addBranch ( com.google.gerrit.client.reviewdb.Project.NameKey projectName , java.lang.String branchName , java.lang.String startingRevision , com.google.gwt.user.client.rpc.AsyncCallback < java.util.List < com.google.gerrit.client.reviewdb.Branch > > callback ) ;
Source:
public final native java.lang.String uuid ( ) ;

Target:
public final native java.lang.String id ( ) ;
Source:
public static java.lang.String toChangeQuery ( java.lang.String query , java.lang.String page ) { query = com.google.gwtorm.client.KeyUtil.encode ( query ) . replaceAll ( "%3[Aa]" , ":" ) ; return ( ( "/q/" + query ) + "," ) + page ; }

Target:
public static java.lang.String toChangeQuery ( java.lang.String query , java.lang.String page ) { return ( ( "/q/" + ( com.google.gwtorm.client.KeyUtil.encode ( query ) ) ) + "," ) + page ; }
Source:
void clearRange ( ) { if ( ( rangeMarker ) != null ) { rangeMarker.clear ( ) ; } }

Target:
void clearRange ( ) { if ( ( rangeMarker ) != null ) { rangeMarker.clear ( ) ; rangeMarker = null ; } }
Source:
< I > com.google.gerrit.extensions.restapi.RestModifyView < P , I > delete ( P parent , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.RestApiException ;

Target:
com.google.gerrit.extensions.restapi.RestModifyView < P , ? > delete ( P parent , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.RestApiException ;
Source:
void removeAll ( ) { if ( ( skipBars ) != null ) { for ( com.google.gerrit.client.diff.SkipBar bar : skipBars ) { bar.expandSideAll ( ) ; } getOverviewBar ( ) . refresh ( ) ; skipBars = null ; line0 = null ; } }

Target:
void removeAll ( ) { if ( ( skipBars ) != null ) { for ( com.google.gerrit.client.diff.SkipBar bar : skipBars ) { bar.expandSideAll ( ) ; } skipBars = null ; line0 = null ; } }
Source:
public com.google.gerrit.server.IdentifiedUser create ( final com.google.gerrit.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( AccessPath.UNKNOWN , authConfig , canonicalUrl , realm , accountCache , null , null , id ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( final com.google.gerrit.reviewdb.Account.Id id ) { return create ( AccessPath.UNKNOWN , null , id ) ; }
Source:
static com.google.gerrit.server.patch.PatchListEntry empty ( final java.lang.String fileName ) { return new com.google.gerrit.server.patch.PatchListEntry ( com.google.gerrit.reviewdb.Patch.ChangeType.MODIFIED , com.google.gerrit.reviewdb.Patch.PatchType.UNIFIED , null , fileName , com.google.gerrit.server.patch.PatchListEntry.EMPTY_HEADER , java.util.Collections.< org.eclipse.jgit.diff.Edit > emptyList ( ) ) ; }

Target:
static com.google.gerrit.server.patch.PatchListEntry empty ( final java.lang.String fileName ) { return new com.google.gerrit.server.patch.PatchListEntry ( com.google.gerrit.reviewdb.Patch.ChangeType.MODIFIED , com.google.gerrit.reviewdb.Patch.PatchType.UNIFIED , null , fileName , com.google.gerrit.server.patch.PatchListEntry.EMPTY_HEADER , java.util.Collections.< org.eclipse.jgit.diff.Edit > emptyList ( ) , 0 , 0 ) ; }
Source:
public void testCreateProjectWhenProjectAlreadyExists_Conflict ( ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = adminSession.put ( "/projects/All-Projects" ) ; org.junit.Assert.assertEquals ( HttpStatus.SC_CONFLICT , r.getStatusCode ( ) ) ; }

Target:
public void testCreateProjectWhenProjectAlreadyExists_Conflict ( ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = adminSession.put ( "/projects/All-Projects" ) ; com.google.common.truth.Truth.assertThat ( r.getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_CONFLICT ) ; }
Source:
synchronized com.google.gerrit.sshd.SshScope.Context subContext ( com.google.gerrit.sshd.SshSession newSession , java.lang.String newCommandLine ) { com.google.gerrit.sshd.SshScope.Context ctx = new com.google.gerrit.sshd.SshScope.Context ( this , newSession , newCommandLine ) ; cleanup.add ( ctx.cleanup ) ; return ctx ; }

Target:
synchronized com.google.gerrit.sshd.SshScope.Context subContext ( com.google.gerrit.sshd.SshSession newSession , java.lang.String newCommandLine ) { com.google.gerrit.sshd.SshScope.Context ctx = new com.google.gerrit.sshd.SshScope.Context ( this , newSession , newCommandLine ) ; ctx.cleanup.add ( cleanup ) ; return ctx ; }
Source:
protected void onOpenRow ( final int row ) { if ( row > 0 ) { movePointerTo ( row ) ; } com.google.gwt.user.client.History.newItem ( link ( getRowItem ( row ) ) ) ; }

Target:
protected void onOpenRow ( final int row ) { if ( row > 0 ) { movePointerTo ( row ) ; } com.google.gwt.user.client.History.newItem ( getRowItem ( row ) . url ( ) ) ; }
Source:
private static final native void init ( java.lang.String d , java.lang.String e , java.lang.String m , java.lang.String t , java.lang.String r , java.lang.String o ) ;

Target:
private static final native void init ( java.lang.String d , java.lang.String t , java.lang.String r , java.lang.String o ) ;
Source:
private void insertEmptyLines ( net.codemirror.lib.CodeMirror cm , int nextLine , int cnt ) { addPaddingWidget ( cm , diffTable.style.padding ( ) , ( nextLine - 1 ) , cnt , Unit.EM ) ; }

Target:
private void insertEmptyLines ( net.codemirror.lib.CodeMirror cm , int nextLine , int cnt ) { addPaddingWidget ( cm , diffTable.style.padding ( ) , ( nextLine - 1 ) , cnt , Unit.EM , null ) ; }
Source:
private java.lang.String newChange ( org.eclipse.jgit.api.Git git , org.eclipse.jgit.lib.PersonIdent ident ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , ident , PushOneCommit.SUBJECT , com.google.gerrit.acceptance.edit.ChangeEditIT.FILE_NAME , com.google.gerrit.acceptance.edit.ChangeEditIT.CONTENT_OLD ) ; return push.to ( git , "refs/for/master" ) . getChangeId ( ) ; }

Target:
private java.lang.String newChange ( org.eclipse.jgit.api.Git git , org.eclipse.jgit.lib.PersonIdent ident ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , ident , PushOneCommit.SUBJECT , com.google.gerrit.acceptance.edit.ChangeEditIT.FILE_NAME , new java.lang.String ( com.google.gerrit.acceptance.edit.ChangeEditIT.CONTENT_OLD ) ) ; return push.to ( git , "refs/for/master" ) . getChangeId ( ) ; }
Source:
protected org.eclipse.jgit.lib.ObjectId pushChangeTo ( org.eclipse.jgit.junit.TestRepository < ? > repo , java.lang.String branch ) throws java.lang.Exception { return pushChangeTo ( repo , branch , "some change" ) ; }

Target:
private org.eclipse.jgit.lib.ObjectId pushChangeTo ( org.eclipse.jgit.junit.TestRepository < ? > repo , java.lang.String branch ) throws java.lang.Exception { return pushChangeTo ( repo , branch , "some change" ) ; }
Source:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > byTopicOpen ( java.lang.String topic ) throws com.google.gwtorm.server.OrmException { return query ( com.google.gerrit.server.query.Predicate.and ( com.google.gerrit.server.query.change.InternalChangeQuery.topic ( topic ) , com.google.gerrit.server.query.change.ChangeStatusPredicate.open ( ) ) ) ; }

Target:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > byTopicOpen ( java.lang.String topic ) throws com.google.gwtorm.server.OrmException { return query ( com.google.gerrit.server.query.Predicate.and ( topic ( topic ) , com.google.gerrit.server.query.change.ChangeStatusPredicate.open ( ) ) ) ; }
Source:
public static native net.codemirror.lib.CodeMirror create ( com.google.gerrit.client.diff.DisplaySide side , com.google.gwt.dom.client.Element parent , net.codemirror.lib.Configuration cfg ) ;

Target:
public static native net.codemirror.lib.CodeMirror create ( com.google.gwt.dom.client.Element p , net.codemirror.lib.Configuration cfg ) ;
Source:
public synchronized com.google.gerrit.metrics.Counter0 newCounter ( java.lang.String name , com.google.gerrit.metrics.Description desc ) { com.google.gerrit.metrics.dropwizard.DropWizardMetricMaker.checkCounterDescription ( desc ) ; define ( name , desc ) ; return newCounterImpl ( name , desc.isRate ( ) ) ; }

Target:
public synchronized com.google.gerrit.metrics.Counter0 newCounter ( java.lang.String name , com.google.gerrit.metrics.Description desc ) { com.google.gerrit.metrics.dropwizard.DropWizardMetricMaker.checkCounterDescription ( name , desc ) ; define ( name , desc ) ; return newCounterImpl ( name , desc.isRate ( ) ) ; }
Source:
private static boolean autoReindexIfStale ( org.eclipse.jgit.lib.Config cfg ) { return cfg.getBoolean ( "index" , null , "autoReindexIfStale" , true ) ; }

Target:
private static boolean autoReindexIfStale ( org.eclipse.jgit.lib.Config cfg ) { return cfg.getBoolean ( "index" , null , "autoReindexIfStale" , false ) ; }
Source:
public com.google.gerrit.reviewdb.client.PatchSetApproval.LabelId getLabelId ( ) { return new com.google.gerrit.reviewdb.client.PatchSetApproval.LabelId ( ( ( id ) != null ? id : name ) ) ; }

Target:
public com.google.gerrit.reviewdb.client.PatchSetApproval.LabelId getLabelId ( ) { return new com.google.gerrit.reviewdb.client.PatchSetApproval.LabelId ( name ) ; }
Source:
private void redisplay ( ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( id ) ) ; }

Target:
private void redisplay ( ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( changeId ) ) ; }
Source:
private static com.google.gerrit.client.rpc.RestApi revision ( com.google.gerrit.reviewdb.client.PatchSet.Id id , java.lang.String type ) { return com.google.gerrit.client.changes.ChangeApi.revision ( id ) . view ( type ) ; }

Target:
private static com.google.gerrit.client.rpc.RestApi revision ( @ com.google.gerrit.common.Nullable java.lang.String project , com.google.gerrit.reviewdb.client.PatchSet.Id id , java.lang.String type ) { return com.google.gerrit.client.changes.ChangeApi.revision ( project , id ) . view ( type ) ; }
Source:
public void run ( ) { for ( ; ; ) { try { if ( done.await ( checkFrequencyMillis , java.util.concurrent.TimeUnit.MILLISECONDS ) ) { return ; } } catch ( java.lang.InterruptedException e ) { } loader.rescan ( false ) ; } }

Target:
public void run ( ) { for ( ; ; ) { try { if ( done.await ( checkFrequencyMillis , java.util.concurrent.TimeUnit.MILLISECONDS ) ) { return ; } } catch ( java.lang.InterruptedException e ) { } loader.rescan ( ) ; } }
Source:
protected abstract java.lang.String prettify ( java.lang.String html ) ;

Target:
protected abstract java.lang.String prettify ( java.lang.String html , java.lang.String type ) ;
Source:
protected void configure ( ) { bind ( com.google.gerrit.server.query.change.ChangeQueryRewriter.class ) . to ( com.google.gerrit.server.index.IndexRewriteImpl.class ) ; bind ( com.google.gerrit.server.query.change.BasicChangeRewrites.class ) ; bind ( com.google.gerrit.server.index.IndexCollection.class ) ; listener ( ) . to ( com.google.gerrit.server.index.IndexCollection.class ) ; factory ( ChangeIndexer.Factory.class ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.server.query.change.ChangeQueryRewriter.class ) . to ( com.google.gerrit.server.index.IndexRewriteImpl.class ) ; bind ( com.google.gerrit.server.index.IndexCollection.class ) ; listener ( ) . to ( com.google.gerrit.server.index.IndexCollection.class ) ; factory ( ChangeIndexer.Factory.class ) ; }
Source:
public java.lang.String call ( ) throws java.lang.Exception { log.debug ( "Adding comment to issue {}" , comment , issueKey ) ; client ( ) . addComment ( issueKey , com.atlassian.jira.rest.client.api.domain.Comment.valueOf ( comment ) ) ; log.debug ( "Added comment to issue {}" , comment , issueKey ) ; return issueKey ; }

Target:
public java.lang.String call ( ) throws java.lang.Exception { log.debug ( "Adding comment to issue {}" , comment , issueKey ) ; client ( ) . addComment ( issueKey , comment ) ; log.debug ( "Added comment to issue {}" , comment , issueKey ) ; return issueKey ; }
Source:
protected < P extends com.google.gerrit.extensions.restapi.RestResource > com.google.gerrit.extensions.restapi.RestApiModule.ChildCollectionBinder < P > child ( com.google.inject.TypeLiteral < com.google.gerrit.extensions.restapi.RestView < P > > type , java.lang.String name ) { return new com.google.gerrit.extensions.restapi.RestApiModule.ChildCollectionBinder < P > ( view ( type , com.google.gerrit.extensions.restapi.RestApiModule.GET , name ) ) ; }

Target:
protected < P extends com.google.gerrit.extensions.restapi.RestResource > com.google.gerrit.extensions.restapi.RestApiModule.ChildCollectionBinder < P > child ( com.google.inject.TypeLiteral < com.google.gerrit.extensions.restapi.RestView < P > > type , java.lang.String name ) { return new com.google.gerrit.extensions.restapi.RestApiModule.ChildCollectionBinder ( view ( type , com.google.gerrit.extensions.restapi.RestApiModule.GET , name ) ) ; }
Source:
public boolean getIfPresent ( org.eclipse.jgit.lib.ObjectId commit , org.eclipse.jgit.lib.Ref intoRef , com.google.gerrit.extensions.common.SubmitType submitType , java.lang.String mergeStrategy ) { return cache.getIfPresent ( new com.google.gerrit.server.change.MergeabilityCacheImpl.EntryKey ( commit , com.google.gerrit.server.change.MergeabilityCacheImpl.toId ( intoRef ) , submitType , mergeStrategy , null , null , null ) ) ; }

Target:
public boolean getIfPresent ( org.eclipse.jgit.lib.ObjectId commit , org.eclipse.jgit.lib.Ref intoRef , com.google.gerrit.extensions.common.SubmitType submitType , java.lang.String mergeStrategy ) { return cache.getIfPresent ( new com.google.gerrit.server.change.MergeabilityCacheImpl.EntryKey ( commit , com.google.gerrit.server.change.MergeabilityCacheImpl.toId ( intoRef ) , submitType , mergeStrategy ) ) ; }
Source:
protected void resetHtml ( com.google.gwtexpui.safehtml.client.SafeHtml body ) { currentRow = - 1 ; super . resetHtml ( body ) ; }

Target:
public void resetHtml ( com.google.gwtexpui.safehtml.client.SafeHtml body ) { currentRow = - 1 ; super . resetHtml ( body ) ; }
Source:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Object > apply ( java.lang.Boolean indexUpdated ) throws java.lang.Exception { if ( ! indexUpdated ) { return ( ( com.google.common.util.concurrent.ListenableFuture < java.lang.Object > ) ( indexer.indexAsync ( change ) ) ) ; } return com.google.common.util.concurrent.Futures.immediateFuture ( null ) ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Object > apply ( java.lang.Boolean indexUpdated ) throws java.lang.Exception { if ( ! indexUpdated ) { return ( ( com.google.common.util.concurrent.ListenableFuture < java.lang.Object > ) ( indexer.indexAsync ( id ) ) ) ; } return com.google.common.util.concurrent.Futures.immediateFuture ( null ) ; }
Source:
protected java.lang.Object createServiceHandle ( ) throws java.lang.Exception { return new com.google.gerrit.server.SystemInfoServiceImpl ( com.google.gerrit.server.GerritServer.getInstance ( ) ) ; }

Target:
protected java.lang.Object createServiceHandle ( ) throws java.lang.Exception { return new com.google.gerrit.server.SystemInfoServiceImpl ( ) ; }
Source:
public void nullCommitMessage ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( ( ( java.lang.Iterable < ? > ) ( com.google.gerrit.server.change.HashtagsUtil.extractTags ( null ) ) ) ) . isEmpty ( ) ; }

Target:
public void nullCommitMessage ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( com.google.gerrit.server.change.HashtagsUtil.extractTags ( null ) ) . isEmpty ( ) ; }
Source:
public com.google.gerrit.reviewdb.client.PatchSetApproval apply ( com.google.gerrit.reviewdb.client.PatchSetApproval in ) { if ( in.getPatchSetId ( ) . equals ( psId ) ) { return in ; } else { return new com.google.gerrit.reviewdb.client.PatchSetApproval ( psId , in ) ; } }

Target:
public com.google.gerrit.reviewdb.client.PatchSetApproval apply ( com.google.gerrit.reviewdb.client.PatchSetApproval in ) { if ( in.getPatchSetId ( ) . equals ( psId ) ) { return in ; } return new com.google.gerrit.reviewdb.client.PatchSetApproval ( psId , in ) ; }
Source:
char charAt ( int idx ) { return content.charAt ( idx ) ; }

Target:
public char charAt ( int idx ) { return content.charAt ( idx ) ; }
Source:
public boolean exists ( final java.lang.String issueKey ) throws java.io.IOException { return execute ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) throws java.lang.Exception { return client ( ) . issueExists ( issueKey ) ; } } ) ; }

Target:
public boolean exists ( final java.lang.String issueKey ) throws java.io.IOException { return execute ( ( ) -> client ( ) . issueExists ( issueKey ) ) ; }
Source:
void onFollowUp ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( ( followUpAction ) == null ) { followUpAction = new com.google.gerrit.client.change.FollowUpAction ( followUp , project , branch , topic , key ) ; } followUpAction.show ( ) ; }

Target:
void onFollowUp ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( ( followUpAction ) == null ) { followUpAction = new com.google.gerrit.client.change.FollowUpAction ( followUp , project.get ( ) , branch , topic , key ) ; } followUpAction.show ( ) ; }
Source:
private org.eclipse.jgit.lib.Repository getRepository ( ) throws java.io.IOException { initRepository ( ) ; return repo ; }

Target:
protected org.eclipse.jgit.lib.Repository getRepository ( ) throws java.io.IOException { initRepository ( ) ; return repo ; }
Source:
public org.eclipse.jgit.revwalk.RevWalk getRevWalk ( ) throws java.io.IOException { initRepository ( ) ; return revWalk ; }

Target:
private org.eclipse.jgit.revwalk.RevWalk getRevWalk ( ) throws java.io.IOException { initRepository ( ) ; return revWalk ; }
Source:
public void testOne ( ) { org.junit.Assert.assertEquals ( "z" , serverConfig.getString ( "x" , null , "y" ) ) ; }

Target:
public void testOne ( ) { com.google.common.truth.Truth.assertThat ( serverConfig.getString ( "x" , null , "y" ) ) . isEqualTo ( "z" ) ; }
Source:
public com.google.gerrit.server.query.change.ChangeData apply ( com.google.gerrit.server.notedb.ChangeNotes notes ) { return changeDataFactory.create ( db , notes.getChange ( ) ) ; }

Target:
public com.google.gerrit.server.query.change.ChangeData apply ( com.google.gerrit.server.notedb.ChangeNotes notes ) { return changeDataFactory.create ( db , notes ) ; }
Source:
private com.google.gerrit.acceptance.AcceptanceTestRequestScope.Context newRequestContext ( com.google.gerrit.acceptance.TestAccount account ) { return atrScope.newContext ( reviewDbProvider , new com.google.gerrit.acceptance.SshSession ( server , account ) , identifiedUserFactory.create ( com.google.inject.util.Providers.of ( db ) , account.getId ( ) ) ) ; }

Target:
private com.google.gerrit.acceptance.AcceptanceTestRequestScope.Context newRequestContext ( com.google.gerrit.acceptance.TestAccount account ) { return atrScope.newContext ( reviewDbProvider , new com.google.gerrit.acceptance.SshSession ( server , account ) , identifiedUserFactory.create ( account.getId ( ) ) ) ; }
Source:
public void testCreateProjectWithoutCapability_Forbidden ( ) throws java.lang.Exception { setApiUser ( user ) ; com.google.gerrit.extensions.api.projects.ProjectInput in = new com.google.gerrit.extensions.api.projects.ProjectInput ( ) ; in.name = "newProject" ; assertCreateFails ( in , com.google.gerrit.extensions.restapi.AuthException.class ) ; }

Target:
public void testCreateProjectWithoutCapability_Forbidden ( ) throws java.lang.Exception { setApiUser ( user ) ; com.google.gerrit.extensions.api.projects.ProjectInput in = new com.google.gerrit.extensions.api.projects.ProjectInput ( ) ; in.name = name ( "newProject" ) ; assertCreateFails ( in , com.google.gerrit.extensions.restapi.AuthException.class ) ; }
Source:
static void delete ( com.google.gerrit.reviewdb.client.Change.Id id , com.google.gwt.user.client.ui.Button ... draftButtons ) { com.google.gerrit.client.changes.ChangeApi.deleteChange ( id.get ( ) , com.google.gerrit.client.change.ChangeActions.mine ( draftButtons ) ) ; }

Target:
static void delete ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id id , com.google.gwt.user.client.ui.Button ... draftButtons ) { com.google.gerrit.client.changes.ChangeApi.deleteChange ( project.get ( ) , id.get ( ) , com.google.gerrit.client.change.ChangeActions.mine ( draftButtons ) ) ; }
Source:
public void onChangeIndexed ( com.google.gerrit.server.query.change.ChangeData cd ) { executeIndexTask ( cd.getId ( ) , false ) ; }

Target:
public void onChangeIndexed ( int id ) { executeIndexTask ( id , false ) ; }
Source:
public void postEvent ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.server.events.Event event , com.google.gerrit.reviewdb.server.ReviewDb db ) { }

Target:
public void postEvent ( com.google.gerrit.server.events.Event event , com.google.gerrit.reviewdb.server.ReviewDb db ) { }
Source:
public int getCardinality ( ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public int getCardinality ( ) { return 1 ; }
Source:
abstract com.google.gerrit.server.mail.receive.MailMessage.Builder from ( java.lang.String val ) ;

Target:
public abstract com.google.gerrit.server.mail.receive.MailMessage.Builder id ( java.lang.String val ) ;
Source:
public void setPatchSet ( final com.google.gerrit.reviewdb.PatchSet ps ) { patchSet = ps ; }

Target:
public void setPatchSet ( final com.google.gerrit.reviewdb.client.PatchSet ps ) { patchSet = ps ; }
Source:
protected void configure ( ) { listener ( ) . to ( CachePool.Lifecycle.class ) ; listener ( ) . to ( WorkQueue.Lifecycle.class ) ; listener ( ) . to ( com.google.gerrit.server.config.GerritGlobalModule.VelocityLifecycle.class ) ; }

Target:
protected void configure ( ) { listener ( ) . to ( CachePool.Lifecycle.class ) ; listener ( ) . to ( com.google.gerrit.server.config.GerritGlobalModule.VelocityLifecycle.class ) ; }
Source:
private boolean checkAndUpdateArrows ( ) { if ( ( numSkipLines ) <= ( com.google.gerrit.client.diff.SkipBar.UP_DOWN_THRESHOLD ) ) { upArrow.addStyleName ( style.noExpand ( ) ) ; downArrow.addStyleName ( style.noExpand ( ) ) ; return false ; } return true ; }

Target:
private boolean checkAndUpdateArrows ( ) { if ( ( numSkipLines ) <= ( com.google.gerrit.client.diff.SkipBar.UP_DOWN_THRESHOLD ) ) { addStyleName ( style.noExpand ( ) ) ; return false ; } return true ; }
Source:
void onExpandAfter ( com.google.gwt.event.dom.client.ClickEvent e ) { otherBar.expandAfter ( ) ; expandAfter ( ) ; cm.focus ( ) ; }

Target:
void onExpandAfter ( com.google.gwt.event.dom.client.ClickEvent e ) { expandAfter ( ) ; otherBar.expandAfter ( ) ; cm.focus ( ) ; }
Source:
public static java.lang.String toChange ( final com.google.gerrit.reviewdb.client.PatchSet.Id ps ) { return ( ( "/c/" + ( ps.getParentKey ( ) ) ) + "/" ) + ( ps.get ( ) ) ; }

Target:
public static java.lang.String toChange ( final com.google.gerrit.reviewdb.client.PatchSet.Id ps ) { return ( ( "/c/" + ( ps.getParentKey ( ) ) ) + "/" ) + ( ps.getId ( ) ) ; }
Source:
public com.google.gwtorm.jdbc.Database < com.google.gerrit.reviewdb.server.ReviewDb > get ( ) { try { return new com.google.gwtorm.jdbc.Database < com.google.gerrit.reviewdb.server.ReviewDb > ( datasource , com.google.gerrit.reviewdb.server.ReviewDb.class ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.inject.ProvisionException ( "Cannot create ReviewDb" , e ) ; } }

Target:
public com.google.gwtorm.jdbc.Database < com.google.gerrit.reviewdb.server.ReviewDb > get ( ) { try { return new com.google.gwtorm.jdbc.Database ( datasource , com.google.gerrit.reviewdb.server.ReviewDb.class ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.inject.ProvisionException ( "Cannot create ReviewDb" , e ) ; } }
Source:
protected void enableButtons ( final boolean on ) { for ( com.google.gwt.user.client.ui.Widget w : getButtonPanel ( ) ) { if ( w instanceof com.google.gwt.user.client.ui.Button ) { ( ( com.google.gwt.user.client.ui.Button ) ( w ) ) . setEnabled ( on ) ; } } }

Target:
public void enableButtons ( final boolean on ) { for ( com.google.gwt.user.client.ui.Widget w : getButtonPanel ( ) ) { if ( w instanceof com.google.gwt.user.client.ui.Button ) { ( ( com.google.gwt.user.client.ui.Button ) ( w ) ) . setEnabled ( on ) ; } } }
Source:
private static void assertChildren ( java.lang.String o , com.google.gerrit.server.query.Predicate < java.lang.String > p , final java.util.List < com.google.gerrit.server.query.Predicate < java.lang.String > > l ) { org.junit.Assert.assertEquals ( ( o + " did not affect child" ) , l , p.getChildren ( ) ) ; }

Target:
private static void assertChildren ( java.lang.String o , com.google.gerrit.server.query.Predicate < java.lang.String > p , java.util.List < ? extends com.google.gerrit.server.query.Predicate < java.lang.String > > l ) { org.junit.Assert.assertEquals ( ( o + " did not affect child" ) , l , p.getChildren ( ) ) ; }
Source:
public com.google.gerrit.server.project.FileResource parse ( com.google.gerrit.server.project.CommitResource parent , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { return new com.google.gerrit.server.project.FileResource ( parent.getProject ( ) , parent.getCommit ( ) . getName ( ) , id.get ( ) ) ; }

Target:
public com.google.gerrit.server.project.FileResource parse ( com.google.gerrit.server.project.CommitResource parent , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { return new com.google.gerrit.server.project.FileResource ( parent.getProject ( ) , parent.getCommit ( ) , id.get ( ) ) ; }
Source:
public void updateChange ( com.google.gerrit.server.git.BatchUpdate.ChangeContext ctx ) throws java.lang.Exception { }

Target:
public boolean updateChange ( com.google.gerrit.server.git.BatchUpdate.ChangeContext ctx ) throws java.lang.Exception { return false ; }
Source:
public final native java.lang.String link_name ( ) ;

Target:
public final native java.lang.String name ( ) ;
Source:
default com.google.gerrit.server.notedb.ChangeNotes getNotes ( ) { return com.google.common.base.Preconditions.checkNotNull ( getControl ( ) . getNotes ( ) ) ; }

Target:
default com.google.gerrit.reviewdb.client.Change getChange ( ) { return com.google.common.base.Preconditions.checkNotNull ( getNotes ( ) . getChange ( ) ) ; }
Source:
private com.google.common.util.concurrent.ListeningExecutorService newExecutor ( ) { if ( ( threads ) > 0 ) { return com.google.common.util.concurrent.MoreExecutors.listeningDecorator ( workQueue.createQueue ( threads , "RebuildChange" ) ) ; } else { return com.google.common.util.concurrent.MoreExecutors.newDirectExecutorService ( ) ; } }

Target:
private com.google.common.util.concurrent.ListeningExecutorService newExecutor ( ) { if ( ( threads ) > 0 ) { return com.google.common.util.concurrent.MoreExecutors.listeningDecorator ( workQueue.createQueue ( threads , "RebuildChange" ) ) ; } return com.google.common.util.concurrent.MoreExecutors.newDirectExecutorService ( ) ; }
Source:
public void byId ( ) throws java.lang.Exception { com.google.gerrit.extensions.common.AccountInfo user = newAccount ( "user" ) ; assertQuery ( "9999999" ) ; assertQuery ( currentUserInfo._accountId , currentUserInfo ) ; assertQuery ( user._accountId , user ) ; setAnonymous ( ) ; assertQuery ( "9999999" ) ; }

Target:
public void byId ( ) throws java.lang.Exception { com.google.gerrit.extensions.common.AccountInfo user = newAccount ( "user" ) ; assertQuery ( "9999999" ) ; assertQuery ( currentUserInfo._accountId , currentUserInfo ) ; assertQuery ( user._accountId , user ) ; }
Source:
protected PushOneCommit.Result pushTo ( java.lang.String ref ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , admin.getIdent ( ) ) ; return push.to ( git , ref ) ; }

Target:
protected PushOneCommit.Result pushTo ( java.lang.String ref ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , admin.getIdent ( ) , git ) ; return push.to ( ref ) ; }
Source:
public void execute ( ) { if ( message.getValue ( ) . startsWith ( "LGTM" ) ) { for ( java.lang.Runnable r : lgtm ) { r.run ( ) ; } } }

Target:
public void execute ( ) { lgtm.run ( ) ; }
Source:
public com.google.gerrit.server.project.SubmitRuleOptions.Builder toBuilder ( ) { return com.google.gerrit.server.project.SubmitRuleOptions.builder ( ) . fastEvalLabels ( fastEvalLabels ( ) ) . allowClosed ( allowClosed ( ) ) . skipFilters ( skipFilters ( ) ) . rule ( rule ( ) ) ; }

Target:
public com.google.gerrit.server.project.SubmitRuleOptions.Builder toBuilder ( ) { return com.google.gerrit.server.project.SubmitRuleOptions.builder ( ) . allowClosed ( allowClosed ( ) ) . skipFilters ( skipFilters ( ) ) . rule ( rule ( ) ) ; }