auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected java.lang.String getGerritUrl ( ) { return args.urlProvider.get ( ) ; }

Target:
public java.lang.String getGerritUrl ( ) { return args.urlProvider.get ( ) ; }
Source:
private GitilesView.Builder parseRefsCommand ( javax.servlet.http.HttpServletRequest req , java.lang.String repoName , java.lang.String path ) { return com.google.gitiles.GitilesView.refs ( ) . setRepositoryName ( repoName ) . setPathPart ( path ) ; }

Target:
private GitilesView.Builder parseRefsCommand ( java.lang.String repoName , java.lang.String path ) { return com.google.gitiles.GitilesView.refs ( ) . setRepositoryName ( repoName ) . setPathPart ( path ) ; }
Source:
private org.eclipse.jgit.errors.ConfigInvalidException parseException ( java.lang.String fmt , java.lang.Object ... args ) { return new org.eclipse.jgit.errors.ConfigInvalidException ( ( ( ( "Change " + ( change.getId ( ) ) ) + ": " ) + ( java.lang.String.format ( fmt , args ) ) ) ) ; }

Target:
private org.eclipse.jgit.errors.ConfigInvalidException parseException ( java.lang.String fmt , java.lang.Object ... args ) { return new org.eclipse.jgit.errors.ConfigInvalidException ( ( ( ( "Change " + ( changeId ) ) + ": " ) + ( java.lang.String.format ( fmt , args ) ) ) ) ; }
Source:
private com.google.gerrit.extensions.client.Comment.Range toRange ( com.google.gerrit.reviewdb.client.Comment.Range commentRange ) { com.google.gerrit.extensions.client.Comment.Range range = null ; if ( commentRange != null ) { range = new com.google.gerrit.extensions.client.Comment.Range ( ) ; range.startLine = commentRange.startLine ; range.startCharacter = commentRange.startChar ; range.endLine = commentRange.endLine ; range.endCharacter = commentRange.endChar ; } return range ; }

Target:
protected com.google.gerrit.extensions.client.Comment.Range toRange ( com.google.gerrit.reviewdb.client.Comment.Range commentRange ) { com.google.gerrit.extensions.client.Comment.Range range = null ; if ( commentRange != null ) { range = new com.google.gerrit.extensions.client.Comment.Range ( ) ; range.startLine = commentRange.startLine ; range.startCharacter = commentRange.startChar ; range.endLine = commentRange.endLine ; range.endCharacter = commentRange.endChar ; } return range ; }
Source:
private java.lang.Class < ? > loadClass ( ) throws com.google.gwtorm.client.OrmException { try { return java.lang.Class.forName ( implClassName , false , classLoader ) ; } catch ( java.lang.ClassNotFoundException err ) { throw new com.google.gwtorm.client.OrmException ( "Cannot load generated class" , err ) ; } }

Target:
private java.lang.Class < ? > loadClass ( ) throws com.google.gwtorm.server.OrmException { try { return java.lang.Class.forName ( implClassName , false , classLoader ) ; } catch ( java.lang.ClassNotFoundException err ) { throw new com.google.gwtorm.server.OrmException ( "Cannot load generated class" , err ) ; } }
Source:
PatchSet.Id getPatchSetIdFromSide ( com.google.gerrit.client.diff.DisplaySide side ) { return ( side == ( DisplaySide.A ) ) && ( ( base ) != null ) ? base : revision ; }

Target:
PatchSet.Id getPatchSetIdFromSide ( com.google.gerrit.client.diff.DisplaySide side ) { if ( ( ( side == ( DisplaySide.A ) ) && ( ( base ) != null ) ) && ( ( base.get ( ) ) >= 0 ) ) { return base ; } return revision ; }
Source:
public java.lang.String apply ( com.google.gerrit.server.git.CodeReviewCommit in ) { return in.getChange ( ) . getKey ( ) . abbreviate ( ) ; }

Target:
public java.lang.String apply ( com.google.gerrit.server.git.CodeReviewCommit in ) { return in.change ( ) . getKey ( ) . abbreviate ( ) ; }
Source:
private boolean error ( java.lang.String msg , java.lang.Throwable t ) { problem ( msg ) ; com.google.gerrit.server.change.ConsistencyChecker.log.warn ( ( "Error in consistency check of change " + ( change.getId ( ) ) ) , t ) ; return false ; }

Target:
private void warn ( java.lang.Throwable t ) { com.google.gerrit.server.change.ConsistencyChecker.log.warn ( ( "Error in consistency check of change " + ( change.getId ( ) ) ) , t ) ; }
Source:
private void saveProjectConfig ( com.google.gerrit.server.git.ProjectConfig cfg ) throws java.lang.Exception { com.google.gerrit.server.git.MetaDataUpdate md = metaDataUpdateFactory.create ( allProjects ) ; try { cfg.commit ( md ) ; } finally { md.close ( ) ; } }

Target:
private void saveProjectConfig ( com.google.gerrit.server.git.ProjectConfig cfg ) throws java.lang.Exception { com.google.gerrit.server.git.MetaDataUpdate md = metaDataUpdateFactory.create ( project ) ; try { cfg.commit ( md ) ; } finally { md.close ( ) ; } }
Source:
public java.lang.String getHeader ( java.lang.String name ) { java.lang.String headerValue = headers.get ( name ) ; if ( headerValue != null ) { return headerValue ; } else { return super . getHeader ( name ) ; } }

Target:
public java.lang.String getHeader ( java.lang.String name ) { java.lang.String headerValue = headers.get ( name ) ; if ( headerValue != null ) { return headerValue ; } return super . getHeader ( name ) ; }
Source:
protected com.google.gerrit.server.change.ChangeInserter newChange ( org.eclipse.jgit.junit.TestRepository < com.google.gerrit.testutil.InMemoryRepositoryManager.Repo > repo ) throws java.lang.Exception { return newChange ( repo , null , null , null , null , null ) ; }

Target:
protected com.google.gerrit.server.change.ChangeInserter newChange ( org.eclipse.jgit.junit.TestRepository < com.google.gerrit.testutil.InMemoryRepositoryManager.Repo > repo ) throws java.lang.Exception { return newChange ( repo , null , null , null , null ) ; }
Source:
public static void ensureAllPatchSetsLoaded ( com.google.inject.Provider < com.google.gerrit.reviewdb.server.ReviewDb > db , java.lang.Iterable < com.google.gerrit.server.query.change.ChangeData > changes ) throws com.google.gwtorm.server.OrmException { for ( com.google.gerrit.server.query.change.ChangeData cd : changes ) { cd.patches ( db ) ; } }

Target:
public static void ensureAllPatchSetsLoaded ( java.lang.Iterable < com.google.gerrit.server.query.change.ChangeData > changes ) throws com.google.gwtorm.server.OrmException { for ( com.google.gerrit.server.query.change.ChangeData cd : changes ) { cd.patches ( ) ; } }
Source:
private boolean canSkipValidation ( com.google.gerrit.server.config.PluginConfig config , java.lang.String validatorOp ) { return matchCriteria ( config , "skipValidation" , validatorOp , false ) ; }

Target:
private boolean canSkipValidation ( com.google.gerrit.server.config.PluginConfig config , java.lang.String validatorOp ) { return matchCriteria ( config , "skipValidation" , validatorOp , false , false ) ; }
Source:
protected void onOpenItem ( final com.google.gerrit.client.data.ChangeInfo c ) { com.google.gwt.user.client.History.newItem ( com.google.gerrit.client.Link.toChange ( c ) , false ) ; com.google.gerrit.client.Gerrit.display ( new com.google.gerrit.client.changes.ChangeScreen ( c ) ) ; }

Target:
protected void onOpenItem ( final com.google.gerrit.client.data.ChangeInfo c ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.client.Link.toChange ( c ) , new com.google.gerrit.client.changes.ChangeScreen ( c ) ) ; }
Source:
public boolean match ( final com.google.gerrit.server.query.change.ChangeData object ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.reviewdb.client.Change change = object.change ( dbProvider ) ; return ( change != null ) && ( ( change.getLastUpdatedOn ( ) . getTime ( ) ) < ( cut ) ) ; }

Target:
public boolean match ( final com.google.gerrit.server.query.change.ChangeData object ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.reviewdb.client.Change change = object.change ( dbProvider ) ; return ( change != null ) && ( ( change.getLastUpdatedOn ( ) . getTime ( ) ) <= ( cut ) ) ; }
Source:
public void onFailure ( java.lang.Throwable caught ) { super . onFailure ( caught ) ; enableForm ( ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { enableForm ( ) ; super . onFailure ( caught ) ; }
Source:
public static void testMerge ( com.google.gerrit.server.git.MergeOp.Factory opFactory , com.google.gerrit.reviewdb.Change change ) { opFactory.create ( change.getDest ( ) ) . verifyMergeability ( change ) ; }

Target:
public static void testMerge ( com.google.gerrit.server.git.MergeOp.Factory opFactory , com.google.gerrit.reviewdb.client.Change change ) { opFactory.create ( change.getDest ( ) ) . verifyMergeability ( change ) ; }
Source:
public boolean isConnectivityRequested ( com.google.gerrit.pgm.util.ConsoleUI ui , java.lang.String url ) { return ui.yesno ( false , "Test connectivity to %s" , url ) ; }

Target:
public boolean isConnectivityRequested ( java.lang.String url ) { return ui.yesno ( false , "Test connectivity to %s" , url ) ; }
Source:
protected java.lang.Iterable < com.google.gerrit.sshd.SshKeyCacheEntry > missing ( final java.lang.String username ) { return java.util.Collections.emptyList ( ) ; }

Target:
public java.lang.Iterable < com.google.gerrit.sshd.SshKeyCacheEntry > missing ( java.lang.String username ) { return java.util.Collections.emptyList ( ) ; }
Source:
private static void addFooter ( java.lang.StringBuilder sb , org.eclipse.jgit.revwalk.FooterKey footer , java.lang.Object value ) { sb.append ( footer.getName ( ) ) . append ( ": " ) . append ( value ) . append ( '\n' ) ; }

Target:
private static java.lang.StringBuilder addFooter ( java.lang.StringBuilder sb , org.eclipse.jgit.revwalk.FooterKey footer ) { return sb.append ( footer.getName ( ) ) . append ( ": " ) ; }
Source:
public void basePathWhenNotConfigured ( ) { com.google.common.truth.Truth.assertThat ( ( ( java.lang.Object ) ( repoCfg.getBasePath ( new com.google.gerrit.reviewdb.client.Project.NameKey ( "someProject" ) ) ) ) ) . isNull ( ) ; }

Target:
public void basePathWhenNotConfigured ( ) { com.google.common.truth.Truth.assertThat ( repoCfg.getBasePath ( new com.google.gerrit.reviewdb.client.Project.NameKey ( "someProject" ) ) ) . isNull ( ) ; }
Source:
public static com.google.gerrit.client.rpc.RestApi reviewers ( int id ) { return com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( "reviewers" ) ; }

Target:
public static com.google.gerrit.client.rpc.RestApi reviewers ( @ com.google.gerrit.common.Nullable java.lang.String project , int id ) { return com.google.gerrit.client.changes.ChangeApi.change ( project , id ) . view ( "reviewers" ) ; }
Source:
private com.cisco.gerrit.plugins.slack.config.ProjectConfig getConfig ( boolean publishOnPatchSetCreated , boolean ignoreUnchangedPatchSet ) throws java.lang.Exception { return getConfig ( "^WIP.*" , publishOnPatchSetCreated , ignoreUnchangedPatchSet ) ; }

Target:
private com.cisco.gerrit.plugins.slack.config.ProjectConfig getConfig ( boolean publishOnPatchSetCreated , boolean ignoreUnchangedPatchSet ) throws java.lang.Exception { return getConfig ( "^WIP.*" , publishOnPatchSetCreated , ignoreUnchangedPatchSet , true , true ) ; }
Source:
public void initFs ( ) throws java.io.IOException { uuid.initFs ( ) ; head.initFs ( ( ( long ) ( 0 ) ) ) ; tail.initFs ( ( ( long ) ( 1 ) ) ) ; }

Target:
public void initFs ( ) throws java.io.IOException { uuid.initFs ( ) ; head.initFs ( ) ; tail.initFs ( ( ( long ) ( 1 ) ) ) ; }
Source:
protected void display ( final com.google.gerrit.client.projects.ProjectMap result ) { projects.display ( result ) ; projects.finishDisplay ( ) ; }

Target:
private void display ( final com.google.gerrit.client.projects.ProjectMap result ) { projects.display ( result ) ; projects.finishDisplay ( ) ; }
Source:
public java.lang.String toString ( ) { try { return toHeaderString ( ) ; } catch ( java.io.UnsupportedEncodingException e ) { throw new java.lang.RuntimeException ( "Cannot encode address" , e ) ; } }

Target:
public java.lang.String toString ( ) { return toHeaderString ( ) ; }
Source:
public void setProject ( final java.lang.String pattern ) { if ( ( pattern != null ) && ( ! ( pattern.isEmpty ( ) ) ) ) { project = pattern ; } }

Target:
public void setProject ( final java.lang.String pattern ) { project = pattern ; }
Source:
public void onActivityCreated ( android.os.Bundle savedInstanceState ) { super . onActivityCreated ( savedInstanceState ) ; com.google.reviewit.app.Change change = getApp ( ) . getSortActionHandler ( ) . getCurrentChange ( ) ; setTitle ( getString ( R.string.abandon_change_title , change.info._number ) ) ; init ( change ) ; }

Target:
public void onActivityCreated ( android.os.Bundle savedInstanceState ) { super . onActivityCreated ( savedInstanceState ) ; com.google.reviewit.app.Change change = getApp ( ) . getCurrentChange ( ) ; setTitle ( getString ( R.string.abandon_change_title , change.info._number ) ) ; init ( change ) ; }
Source:
private PatchSet.Id getPatchSetId ( com.google.gerrit.acceptance.GitUtil.Commit c ) throws com.google.gwtorm.server.OrmException { return com.google.common.collect.Iterables.getOnlyElement ( db.changes ( ) . byKey ( new com.google.gerrit.reviewdb.client.Change.Key ( c.getChangeId ( ) ) ) ) . currentPatchSetId ( ) ; }

Target:
private com.google.gerrit.reviewdb.client.Change getChange ( com.google.gerrit.acceptance.GitUtil.Commit c ) throws com.google.gwtorm.server.OrmException { return com.google.common.collect.Iterables.getOnlyElement ( db.changes ( ) . byKey ( new com.google.gerrit.reviewdb.client.Change.Key ( c.getChangeId ( ) ) ) ) ; }
Source:
static com.google.gerrit.server.project.SectionMatcher wrap ( com.google.gerrit.common.data.AccessSection section ) { java.lang.String ref = section.getName ( ) ; if ( com.google.gerrit.common.data.AccessSection.isValid ( ref ) ) { return com.google.gerrit.server.project.SectionMatcher.wrap ( ref , section ) ; } else { return null ; } }

Target:
static com.google.gerrit.server.project.SectionMatcher wrap ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.common.data.AccessSection section ) { java.lang.String ref = section.getName ( ) ; if ( com.google.gerrit.common.data.AccessSection.isValid ( ref ) ) { return com.google.gerrit.server.project.SectionMatcher.wrap ( project , ref , section ) ; } else { return null ; } }
Source:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > apply ( java.util.List < ? > input ) throws java.lang.Exception { com.google.gerrit.pgm.RebuildNotedb.execute ( bru , repo ) ; com.google.gerrit.pgm.RebuildNotedb.execute ( bruAllUsers , allUsersRepo ) ; mpm.end ( ) ; return com.google.common.util.concurrent.Futures.immediateFuture ( null ) ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > apply ( java.util.List < ? > input ) { mpm.end ( ) ; return com.google.common.util.concurrent.Futures.immediateFuture ( null ) ; }
Source:
public void stop ( ) { openIndex.close ( ) ; closedIndex.close ( ) ; }

Target:
public void run ( ) { closedIndex.close ( ) ; }
Source:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { event.stopPropagation ( ) ; if ( ( event.getCharCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { doSearch ( ) ; } }

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 ) ) { doSearch ( ) ; } }
Source:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > replace ( com.google.gerrit.server.query.change.ChangeData cd ) throws java.io.IOException { return com.google.common.util.concurrent.Futures.immediateFuture ( null ) ; }

Target:
public void replace ( com.google.gerrit.server.query.change.ChangeData cd ) throws java.io.IOException { }
Source:
void maybeRegisterRenderEntireFileKeyMap ( net.codemirror.lib.CodeMirror cm ) { if ( prefs.renderEntireFile ( ) ) { cm.addKeyMap ( com.google.gerrit.client.diff.DiffScreen.RENDER_ENTIRE_FILE_KEYMAP ) ; } }

Target:
void maybeRegisterRenderEntireFileKeyMap ( net.codemirror.lib.CodeMirror cm ) { if ( renderEntireFile ( ) ) { cm.addKeyMap ( com.google.gerrit.client.diff.DiffScreen.RENDER_ENTIRE_FILE_KEYMAP ) ; } }
Source:
public void shouldThrowAnExceptionIfAnErrorOccurCreatingSharedDirectory ( ) throws java.lang.Exception { java.io.File configuredDirectory = tempFolder.newFile ( ) ; org.mockito.Mockito.when ( configMock.main ( ) . sharedDirectory ( ) ) . thenReturn ( configuredDirectory.getAbsolutePath ( ) ) ; module.getSharedDirectory ( configMock ) ; }

Target:
public void shouldThrowAnExceptionIfAnErrorOccurCreatingSharedDirectory ( ) throws java.lang.Exception { java.io.File configuredDirectory = tempFolder.newFile ( ) ; org.mockito.Mockito.when ( configMock.main ( ) . sharedDirectory ( ) ) . thenReturn ( configuredDirectory.getAbsolutePath ( ) ) ; module.getSharedDirectory ( ) ; }
Source:
private void setupDefaultOperations ( ) { new org.eclipse.example.calc.internal.operations.Equals ( ) ; new org.eclipse.example.calc.internal.operations.Minus ( ) ; new org.eclipse.example.calc.internal.operations.Plus ( ) ; new org.eclipse.example.calc.internal.Divide ( ) ; new org.eclipse.example.calc.internal.operations.Square ( ) ; }

Target:
private void setupDefaultOperations ( ) { new org.eclipse.example.calc.internal.operations.Equals ( ) ; new org.eclipse.example.calc.internal.operations.Minus ( ) ; new org.eclipse.example.calc.internal.operations.Plus ( ) ; new org.eclipse.example.calc.internal.operations.Square ( ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { gotoSibling ( 1 ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { gotoSibling ( ( - 1 ) ) ; }
Source:
private static com.google.gerrit.common.data.PermissionRule deny ( com.google.gerrit.common.data.GroupReference group ) { com.google.gerrit.common.data.PermissionRule rule = com.google.gerrit.server.schema.Schema_53.rule ( group ) ; rule.setDeny ( true ) ; return rule ; }

Target:
private static com.google.gerrit.common.data.PermissionRule deny ( com.google.gerrit.common.data.GroupReference group ) { com.google.gerrit.common.data.PermissionRule rule = com.google.gerrit.server.schema.Schema_53.rule ( group ) ; rule.setDeny ( ) ; return rule ; }
Source:
public void putApproval ( java.lang.String label , short value ) { approvals.put ( label.toLowerCase ( ) , value ) ; }

Target:
public void putApproval ( java.lang.String label , short value ) { approvals.put ( label , value ) ; }
Source:
public static void query ( java.lang.String query , java.util.EnumSet < com.google.gerrit.extensions.client.ListChangesOption > options , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.changes.ChangeList > callback ) { com.google.gerrit.client.rpc.RestApi call = com.google.gerrit.client.changes.ChangeList.newQuery ( query ) ; com.google.gerrit.client.changes.ChangeList.addOptions ( call , options ) ; call.get ( callback ) ; }

Target:
public static void query ( java.lang.String query , java.util.Set < com.google.gerrit.extensions.client.ListChangesOption > options , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.changes.ChangeList > callback ) { com.google.gerrit.client.rpc.RestApi call = com.google.gerrit.client.changes.ChangeList.newQuery ( query ) ; com.google.gerrit.client.changes.ChangeList.addOptions ( call , options ) ; call.get ( callback ) ; }
Source:
void abandonChange ( com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId , java.lang.String message , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ChangeDetail > callback ) ;

Target:
void submit ( com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ChangeDetail > callback ) ;
Source:
public boolean canPublish ( final com.google.gerrit.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException { return ( ( ( change.getStatus ( ) ) == ( Change.Status.DRAFT ) ) && ( isOwner ( ) ) ) && ( isVisible ( db ) ) ; }

Target:
public boolean canPublish ( final com.google.gerrit.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException { return ( isOwner ( ) ) && ( isVisible ( db ) ) ; }
Source:
public void run ( ) { if ( ! ( prefs.renderEntireFile ( ) ) ) { cmA.setHeight ( height ) ; cmB.setHeight ( height ) ; } cmA.refresh ( ) ; cmB.refresh ( ) ; }

Target:
public void run ( ) { cmA.setHeight ( height ) ; cmB.setHeight ( height ) ; cmA.refresh ( ) ; cmB.refresh ( ) ; }
Source:
protected Project.NameKey getProjectName ( ) { return com.google.gerrit.server.notedb.ChangeNotes.getProjectName ( getChange ( ) ) ; }

Target:
protected Project.NameKey getProjectName ( ) { return getChange ( ) . getProject ( ) ; }
Source:
default com.google.common.collect.ImmutableSet < com.google.gerrit.server.account.externalids.ExternalId > byEmail ( java.lang.String email ) throws java.io.IOException { return byEmails ( email ) . get ( email ) ; }

Target:
default java.util.Set < com.google.gerrit.server.account.externalids.ExternalId > byEmail ( java.lang.String email ) throws java.io.IOException { return byEmails ( email ) . get ( email ) ; }
Source:
public boolean canPerform ( java.lang.String permissionName ) { if ( GlobalCapability.ADMINISTRATE_SERVER.equals ( permissionName ) ) { return canAdministrateServer ( ) ; } else { return ! ( access ( permissionName ) . isEmpty ( ) ) ; } }

Target:
public boolean canPerform ( java.lang.String permissionName ) { if ( GlobalCapability.ADMINISTRATE_SERVER.equals ( permissionName ) ) { return canAdministrateServer ( ) ; } return ! ( access ( permissionName ) . isEmpty ( ) ) ; }
Source:
< I > com.google.gerrit.extensions.restapi.RestModifyView < P , I > create ( P parent , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.RestApiException ;

Target:
com.google.gerrit.extensions.restapi.RestModifyView < P , ? > create ( P parent , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.RestApiException ;
Source:
public com.google.gerrit.server.CurrentUser getUser ( ) { return user ; }

Target:
private com.google.gerrit.server.CurrentUser getUser ( ) { return user ; }
Source:
public java.util.List < com.google.gerrit.extensions.api.projects.TagInfo > get ( ) throws com.google.gerrit.extensions.restapi.RestApiException { return listTags ( ) ; }

Target:
public java.util.List < com.google.gerrit.extensions.api.projects.TagInfo > get ( ) throws com.google.gerrit.extensions.restapi.RestApiException { return listTags ( this ) ; }
Source:
public boolean match ( com.google.gerrit.server.query.change.ChangeData cd ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.reviewdb.client.Change change = cd.change ( dbProvider ) ; return ( change != null ) && ( ( change.getSortKey ( ) . compareTo ( getValue ( ) ) ) < 0 ) ; }

Target:
public boolean match ( com.google.gerrit.server.query.change.ChangeData cd ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.reviewdb.client.Change change = cd.change ( ) ; return ( change != null ) && ( ( change.getSortKey ( ) . compareTo ( getValue ( ) ) ) < 0 ) ; }
Source:
private static boolean isInvalidXSRF ( final java.lang.Throwable caught ) { return ( caught instanceof com.google.gwt.user.client.rpc.InvocationException ) && ( caught.getMessage ( ) . equals ( JsonConstants.ERROR_INVALID_XSRF ) ) ; }

Target:
protected static boolean isInvalidXSRF ( final java.lang.Throwable caught ) { return ( caught instanceof com.google.gwt.user.client.rpc.InvocationException ) && ( caught.getMessage ( ) . equals ( JsonConstants.ERROR_INVALID_XSRF ) ) ; }
Source:
public com.google.gerrit.pgm.init.api.AllProjectsConfig load ( ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { java.io.File path = getPath ( ) ; if ( path != null ) { try ( org.eclipse.jgit.lib.Repository repo = new org.eclipse.jgit.internal.storage.file.FileRepository ( path ) ) { load ( repo ) ; } } return this ; }

Target:
public com.google.gerrit.pgm.init.api.AllProjectsConfig load ( ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { super . load ( ) ; return this ; }
Source:
private static java.lang.StackTraceElement [ ] getTrace ( com.google.gwt.core.client.JavaScriptException err ) { com.google.gwt.core.client.impl.StackTraceCreator.fillInStackTrace ( err ) ; return err.getStackTrace ( ) ; }

Target:
private static java.lang.StackTraceElement [ ] getTrace ( com.google.gwt.core.client.JavaScriptException err ) { if ( ( err.getStackTrace ( ) . length ) == 0 ) { err.fillInStackTrace ( ) ; } return err.getStackTrace ( ) ; }
Source:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > deleteAsync ( com.google.gerrit.reviewdb.client.Change.Id id ) { return ( executor ) != null ? submit ( new com.google.gerrit.server.index.change.ChangeIndexer.DeleteTask ( id ) ) : com.google.common.util.concurrent.Futures.< java.lang.Object , java.io.IOException > immediateCheckedFuture ( null ) ; }

Target:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > deleteAsync ( com.google.gerrit.reviewdb.client.Change.Id id ) { return submit ( new com.google.gerrit.server.index.change.ChangeIndexer.DeleteTask ( id ) ) ; }
Source:
protected void approve ( java.lang.String id ) throws java.lang.Exception { gApi.changes ( ) . id ( id ) . revision ( "current" ) . review ( new com.google.gerrit.extensions.api.changes.ReviewInput ( ) . label ( "Code-Review" , 2 ) ) ; }

Target:
protected void approve ( java.lang.String id ) throws java.lang.Exception { gApi.changes ( ) . id ( id ) . revision ( "current" ) . review ( com.google.gerrit.extensions.api.changes.ReviewInput.approve ( ) ) ; }
Source:
public static java.lang.String toPatchSideBySide ( final com.google.gerrit.client.reviewdb.Patch.Id id ) { return com.google.gerrit.client.Link.toPatch ( "sidebyside" , id ) ; }

Target:
public static java.lang.String toPatchSideBySide ( final com.google.gerrit.client.reviewdb.Patch.Key id ) { return com.google.gerrit.client.Link.toPatch ( "sidebyside" , id ) ; }
Source:
public void setPatchSetId ( com.google.gerrit.reviewdb.client.PatchSet.Id psId ) { com.google.common.base.Preconditions.checkArgument ( ( ( psId == null ) || ( psId.getParentKey ( ) . equals ( getChange ( ) . getKey ( ) ) ) ) ) ; this . psId = psId ; }

Target:
public void setPatchSetId ( com.google.gerrit.reviewdb.client.PatchSet.Id psId ) { com.google.common.base.Preconditions.checkArgument ( ( ( psId == null ) || ( psId.getParentKey ( ) . equals ( getChange ( ) . getId ( ) ) ) ) ) ; this . psId = psId ; }
Source:
public void stop ( ) { openIndex.close ( ) ; closedIndex.close ( ) ; }

Target:
public void run ( ) { openIndex.close ( ) ; }
Source:
protected java.io.PrintWriter startRenderText ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res ) throws java.io.IOException { setApiHeaders ( req , res , com.google.gitiles.FormatType.TEXT ) ; return res.getWriter ( ) ; }

Target:
protected java.io.PrintWriter startRenderText ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res ) throws java.io.IOException { setApiHeaders ( res , com.google.gitiles.FormatType.TEXT ) ; return res.getWriter ( ) ; }
Source:
public java.util.List < com.google.gerrit.server.git.validators.CommitValidationMessage > onCommitReceived ( com.google.gerrit.server.events.CommitReceivedEvent receiveEvent ) throws com.google.gerrit.server.git.validators.CommitValidationException { throw new com.google.gerrit.server.git.validators.CommitValidationException ( com.googlesource.gerrit.plugins.readonly.ReadOnly.READ_ONLY_MSG ) ; }

Target:
public java.util.List < com.google.gerrit.server.git.validators.CommitValidationMessage > onCommitReceived ( com.google.gerrit.server.events.CommitReceivedEvent receiveEvent ) throws com.google.gerrit.server.git.validators.CommitValidationException { throw new com.google.gerrit.server.git.validators.CommitValidationException ( message ) ; }
Source:
public void onSuccess ( com.google.gerrit.common.data.ChangeDetail detail ) { com.google.gerrit.client.changes.ChangeDetailCache.setChangeDetail ( detail ) ; }

Target:
public void onSuccess ( com.google.gerrit.common.data.ChangeDetail info ) { com.google.gerrit.client.changes.ChangeDetailCache.setChangeDetail ( info ) ; }
Source:
public boolean isOwnerAnyRef ( ) { return ( canPerformOnAnyRef ( Permission.OWNER ) ) || ( getCurrentUser ( ) . getCapabilities ( ) . canAdministrateServer ( ) ) ; }

Target:
public boolean isOwnerAnyRef ( ) { return ( canPerformOnAnyRef ( Permission.OWNER ) ) || ( user.getCapabilities ( ) . canAdministrateServer ( ) ) ; }
Source:
com.google.gerrit.server.project.ChangeControl create ( com.google.gerrit.server.project.RefControl refControl , com.google.gerrit.reviewdb.client.Change change ) { return create ( refControl , notesFactory.create ( db , change ) ) ; }

Target:
com.google.gerrit.server.project.ChangeControl create ( com.google.gerrit.server.project.RefControl refControl , com.google.gerrit.reviewdb.client.Change change ) throws com.google.gwtorm.server.OrmException { return create ( refControl , notesFactory.create ( db , change ) ) ; }
Source:
public boolean hasTrailingEdit ( int idx ) ;

Target:
boolean contains ( int idx ) ;
Source:
public void onFailure ( java.lang.Throwable caught ) { loadSubmitType ( canSubmit ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { loadSubmitType ( status , canSubmit ) ; }
Source:
public com.google.gerrit.reviewdb.client.Change change ( com.google.inject.Provider < com.google.gerrit.reviewdb.server.ReviewDb > db ) throws com.google.gwtorm.server.OrmException { if ( ( change ) == null ) { change = db.get ( ) . changes ( ) . get ( legacyId ) ; } return change ; }

Target:
public com.google.gerrit.reviewdb.client.Change change ( ) throws com.google.gwtorm.server.OrmException { if ( ( change ) == null ) { change = db.changes ( ) . get ( legacyId ) ; } return change ; }
Source:
public void onSuccess ( final com.google.gerrit.common.data.HostPageData result ) { com.google.gerrit.client.Gerrit.myConfig = result.config ; if ( ( result.account ) != null ) { com.google.gerrit.client.Gerrit.myAccount = result.account ; com.google.gerrit.client.Gerrit.applyUserPreferences ( ) ; } onModuleLoad2 ( gStarting ) ; }

Target:
public void onSuccess ( final com.google.gerrit.common.data.HostPageData result ) { com.google.gerrit.client.Gerrit.myConfig = result.config ; if ( ( result.account ) != null ) { com.google.gerrit.client.Gerrit.myAccount = result.account ; com.google.gerrit.client.Gerrit.applyUserPreferences ( ) ; } onModuleLoad2 ( ) ; }
Source:
public com.google.gerrit.pgm.util.LibraryDownloader setJarUrl ( final java.lang.String url ) { this . jarUrl = url ; return this ; }

Target:
public void setJarUrl ( final java.lang.String url ) { this . jarUrl = url ; }
Source:
com.google.gerrit.server.query.change.ChangeData convert ( com.google.gerrit.reviewdb.client.PatchSet t ) { return new com.google.gerrit.server.query.change.ChangeData ( t.getId ( ) . getParentKey ( ) ) ; }

Target:
com.google.gerrit.server.query.change.ChangeData convert ( com.google.gerrit.reviewdb.client.PatchSet t ) { return factory.create ( db.get ( ) , t.getId ( ) . getParentKey ( ) ) ; }
Source:
public void panel ( com.google.gerrit.client.GerritUiExtensionPoint extensionPoint , com.google.gerrit.plugin.client.extension.Panel.EntryPoint entry ) { panel ( extensionPoint.name ( ) , com.google.gerrit.plugin.client.Plugin.wrap ( entry ) ) ; }

Target:
public final void panel ( com.google.gerrit.client.GerritUiExtensionPoint extensionPoint , com.google.gerrit.plugin.client.extension.Panel.EntryPoint entry , java.lang.String name ) { panel ( extensionPoint.name ( ) , com.google.gerrit.plugin.client.Plugin.wrap ( entry ) , name ) ; }
Source:
com.google.gerrit.gpg.GerritPushCertificateChecker create ( com.google.gerrit.server.IdentifiedUser expectedUser , boolean checkNonce ) ;

Target:
com.google.gerrit.gpg.GerritPushCertificateChecker create ( com.google.gerrit.server.IdentifiedUser expectedUser ) ;
Source:
public void onUnload ( ) { super . onUnload ( ) ; if ( ( headerClick ) != null ) { headerClick.removeHandler ( ) ; headerClick = null ; } }

Target:
protected void onUnload ( ) { super . onUnload ( ) ; if ( ( headerClick ) != null ) { headerClick.removeHandler ( ) ; headerClick = null ; } }
Source:
static com.google.gerrit.server.account.externalids.ExternalId create ( com.google.gerrit.server.account.externalids.ExternalId.Key key , com.google.gerrit.reviewdb.client.Account.Id accountId , @ com.google.gerrit.common.Nullable java.lang.String email , @ com.google.gerrit.common.Nullable java.lang.String hashedPassword , @ com.google.gerrit.common.Nullable org.eclipse.jgit.lib.ObjectId blobId ) { return new com.google.gerrit.server.account.externalids.AutoValue_ExternalId ( key , accountId , com.google.common.base.Strings.emptyToNull ( email ) , com.google.common.base.Strings.emptyToNull ( hashedPassword ) , blobId ) ; }

Target:
public static com.google.gerrit.server.account.externalids.ExternalId create ( com.google.gerrit.server.account.externalids.ExternalId.Key key , com.google.gerrit.reviewdb.client.Account.Id accountId , @ com.google.gerrit.common.Nullable java.lang.String email , @ com.google.gerrit.common.Nullable java.lang.String hashedPassword , @ com.google.gerrit.common.Nullable org.eclipse.jgit.lib.ObjectId blobId ) { return new com.google.gerrit.server.account.externalids.AutoValue_ExternalId ( key , accountId , com.google.common.base.Strings.emptyToNull ( email ) , com.google.common.base.Strings.emptyToNull ( hashedPassword ) , blobId ) ; }
Source:
private java.util.List < com.google.gerrit.server.patch.PatchListEntry > getCurrentPatches ( java.lang.String changeId ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.patch.PatchListNotAvailableException { return patchListCache.get ( getKey ( null , getCurrentRevisionId ( changeId ) ) ) . getPatches ( ) ; }

Target:
private java.util.List < com.google.gerrit.server.patch.PatchListEntry > getCurrentPatches ( java.lang.String changeId ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.patch.PatchListNotAvailableException { return patchListCache.get ( getKey ( null , getCurrentRevisionId ( changeId ) ) , project ) . getPatches ( ) ; }
Source:
private static javax.net.ssl.SSLSocketFactory sslFactory ( final boolean verify ) { if ( verify ) { return ( ( javax.net.ssl.SSLSocketFactory ) ( javax.net.ssl.SSLSocketFactory.getDefault ( ) ) ) ; } else { return ( ( javax.net.ssl.SSLSocketFactory ) ( com.google.gerrit.util.ssl.BlindSSLSocketFactory.getDefault ( ) ) ) ; } }

Target:
private static javax.net.ssl.SSLSocketFactory sslFactory ( final boolean verify ) { if ( verify ) { return ( ( javax.net.ssl.SSLSocketFactory ) ( javax.net.ssl.SSLSocketFactory.getDefault ( ) ) ) ; } return ( ( javax.net.ssl.SSLSocketFactory ) ( com.google.gerrit.util.ssl.BlindSSLSocketFactory.getDefault ( ) ) ) ; }
Source:
protected final com.google.gerrit.server.mail.ProjectWatch.Watchers getWatchers ( com.google.gerrit.reviewdb.client.AccountProjectWatch.NotifyType type ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.server.mail.ProjectWatch watch = new com.google.gerrit.server.mail.ProjectWatch ( args , project , projectState , changeData ) ; return watch.getWatchers ( type ) ; }

Target:
protected final com.google.gerrit.server.mail.ProjectWatch.Watchers getWatchers ( com.google.gerrit.reviewdb.client.AccountProjectWatch.NotifyType type ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.server.mail.ProjectWatch watch = new com.google.gerrit.server.mail.ProjectWatch ( args , branch.getParentKey ( ) , projectState , changeData ) ; return watch.getWatchers ( type ) ; }
Source:
private void assertCanSubmit ( java.lang.String ref , com.google.gerrit.server.project.ProjectControl u ) { com.google.common.truth.Truth.assertThat ( u.controlForRef ( ref ) . canSubmit ( ) ) . named ( ( "can submit " + ref ) ) . isTrue ( ) ; }

Target:
private void assertCanSubmit ( java.lang.String ref , com.google.gerrit.server.project.ProjectControl u ) { com.google.common.truth.Truth.assertThat ( u.controlForRef ( ref ) . canSubmit ( false ) ) . named ( ( "can submit " + ref ) ) . isTrue ( ) ; }
Source:
public static net.codemirror.lib.LineCharacter create ( int line , int ch ) { net.codemirror.lib.LineCharacter lineCh = createObject ( ) . cast ( ) ; return lineCh.setLine ( line ) . setCh ( ch ) ; }

Target:
public static net.codemirror.lib.LineCharacter create ( int line , int ch ) { net.codemirror.lib.LineCharacter lineCh = createObject ( ) . cast ( ) ; lineCh.setLine ( line ) ; lineCh.setCh ( ch ) ; return lineCh ; }
Source:
void select ( com.google.gerrit.client.change.ReplyBox.LabelRadioButton b ) { selected = b ; labelsTable.setText ( row , labelHelpColumn , ( ( b.value ) != 0 ? b.text : "" ) ) ; }

Target:
void select ( com.google.gerrit.client.change.ReplyBox.LabelRadioButton b ) { selected = b ; labelsTable.setText ( row , labelHelpColumn , b.text ) ; }
Source:
public void setFocus ( boolean focused ) { focusy.setFocus ( focused ) ; }

Target:
public void setFocus ( boolean focused ) { if ( ( focusy ) != null ) { focusy.setFocus ( focused ) ; } }
Source:
void registerKeys ( ) { register = true ; if ( ( table ) != null ) { table.setRegisterKeys ( true ) ; } }

Target:
void registerKeys ( boolean on ) { register = on ; if ( ( table ) != null ) { table.setRegisterKeys ( on ) ; } }
Source:
public com.google.gerrit.server.query.Predicate < T > copy ( final java.util.Collection < ? extends com.google.gerrit.server.query.Predicate < T > > children ) { return new com.google.gerrit.server.query.AndPredicate < T > ( children ) ; }

Target:
public com.google.gerrit.server.query.Predicate < T > copy ( final java.util.Collection < ? extends com.google.gerrit.server.query.Predicate < T > > children ) { return new com.google.gerrit.server.query.AndPredicate ( children ) ; }
Source:
public static org.eclipse.jgit.lib.PersonIdent newIdent ( com.google.gerrit.reviewdb.client.Account author , java.util.Date when , org.eclipse.jgit.lib.PersonIdent serverIdent , java.lang.String anonymousCowardName ) { return new org.eclipse.jgit.lib.PersonIdent ( new com.google.gerrit.common.data.AccountInfo ( author ) . getName ( anonymousCowardName ) , ( ( ( author.getId ( ) . get ( ) ) + "@" ) + ( com.google.gerrit.server.notedb.ChangeNoteUtil.GERRIT_PLACEHOLDER_HOST ) ) , when , serverIdent.getTimeZone ( ) ) ; }

Target:
public static org.eclipse.jgit.lib.PersonIdent newIdent ( com.google.gerrit.reviewdb.client.Account author , java.util.Date when , org.eclipse.jgit.lib.PersonIdent serverIdent , java.lang.String anonymousCowardName ) { return new org.eclipse.jgit.lib.PersonIdent ( author.getName ( anonymousCowardName ) , ( ( ( author.getId ( ) . get ( ) ) + "@" ) + ( com.google.gerrit.server.notedb.ChangeNoteUtil.GERRIT_PLACEHOLDER_HOST ) ) , when , serverIdent.getTimeZone ( ) ) ; }
Source:
void replace ( org.apache.lucene.index.Term term , org.apache.lucene.document.Document doc ) throws java.io.IOException { writer.updateDocument ( term , doc ) ; commit ( ) ; }

Target:
void replace ( org.apache.lucene.index.Term term , org.apache.lucene.document.Document doc ) throws java.io.IOException { writer.updateDocument ( term , doc ) ; }
Source:
protected com.google.gerrit.server.notedb.AbstractChangeNotes.LoadHandle openHandle ( org.eclipse.jgit.lib.Repository repo ) throws java.io.IOException { return com.google.gerrit.server.notedb.AbstractChangeNotes.LoadHandle.create ( com.google.gerrit.server.notedb.ChangeNotesCommit.newRevWalk ( repo ) , readRef ( repo ) ) ; }

Target:
protected com.google.gerrit.server.notedb.AbstractChangeNotes.LoadHandle openHandle ( org.eclipse.jgit.lib.Repository repo ) throws java.io.IOException { return openHandle ( repo , readRef ( repo ) ) ; }
Source:
public java.lang.String id ( ) { return java.lang.Integer.toString ( change.getChange ( ) . getId ( ) . get ( ) ) ; }

Target:
public java.lang.String id ( ) { return java.lang.Integer.toString ( change.getId ( ) . get ( ) ) ; }
Source:
private void logWarn ( java.lang.String msg , java.lang.Throwable t ) { if ( com.google.gerrit.server.git.MergeOp.log.isWarnEnabled ( ) ) { com.google.gerrit.server.git.MergeOp.log.warn ( ( ( ( "[" + ( submissionId ) ) + "]" ) + msg ) , t ) ; } }

Target:
private void logWarn ( java.lang.String msg ) { if ( com.google.gerrit.server.git.MergeOp.log.isWarnEnabled ( ) ) { com.google.gerrit.server.git.MergeOp.log.warn ( ( ( submissionId ) + msg ) ) ; } }
Source:
private void assertBadRequest ( com.google.gerrit.extensions.api.projects.ProjectApi.ListRefsRequest < com.google.gerrit.extensions.api.projects.TagInfo > req ) throws java.lang.Exception { try { req.get ( ) ; org.junit.Assert.fail ( "Expected BadRequestException" ) ; } catch ( com.google.gerrit.extensions.restapi.BadRequestException e ) { } }

Target:
private void assertBadRequest ( com.google.gerrit.extensions.api.projects.ProjectApi.ListRefsRequest < com.google.gerrit.extensions.api.projects.TagInfo > req ) throws java.lang.Exception { try { req.get ( ) ; fail ( "Expected BadRequestException" ) ; } catch ( com.google.gerrit.extensions.restapi.BadRequestException e ) { } }
Source:
public void noVerificationTest ( ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit.Result c = createChange ( ) ; java.util.Map < java.lang.String , com.googlesource.gerrit.plugins.verifystatus.common.VerificationInfo > infos = getVerifications ( c ) ; com.google.common.truth.Truth.assertThat ( infos ) . hasSize ( 0 ) ; }

Target:
public void noVerificationTest ( ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit.Result c = createChange ( ) ; java.util.Map < java.lang.String , com.googlesource.gerrit.plugins.verifystatus.common.VerificationInfo > infos = getVerifications ( c , null ) ; com.google.common.truth.Truth.assertThat ( infos ) . hasSize ( 0 ) ; }
Source:
private void asScript ( final org.w3c.dom.Element scriptNode ) { scriptNode.removeAttribute ( "id" ) ; scriptNode.setAttribute ( "type" , "text/javascript" ) ; scriptNode.setAttribute ( "language" , "javascript" ) ; }

Target:
private static void asScript ( final org.w3c.dom.Element scriptNode ) { scriptNode.removeAttribute ( "id" ) ; scriptNode.setAttribute ( "type" , "text/javascript" ) ; scriptNode.setAttribute ( "language" , "javascript" ) ; }
Source:
private void setNew ( com.google.gerrit.reviewdb.Change c , com.google.gerrit.reviewdb.ChangeMessage msg ) { sendMergeFail ( c , msg , true ) ; }

Target:
private void setNew ( com.google.gerrit.reviewdb.Change c , com.google.gerrit.reviewdb.ChangeMessage msg ) { sendMergeFail ( c , msg , true , true ) ; }
Source:
public void configure ( ) { install ( dbInjector.getInstance ( com.google.gerrit.pgm.util.BatchProgramModule.class ) ) ; install ( new com.google.gerrit.pgm.util.BatchGitModule ( ) ) ; install ( new com.google.gerrit.server.notedb.NoteDbModule ( ) ) ; bind ( com.google.gerrit.server.notedb.NotesMigration.class ) . toInstance ( com.google.gerrit.server.notedb.NotesMigration.allEnabled ( ) ) ; }

Target:
public void configure ( ) { install ( dbInjector.getInstance ( com.google.gerrit.pgm.util.BatchProgramModule.class ) ) ; install ( new com.google.gerrit.pgm.util.BatchGitModule ( ) ) ; install ( new com.google.gerrit.server.notedb.NoteDbModule ( ) ) ; }
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.client.Patch.ChangeType.MODIFIED , com.google.gerrit.reviewdb.client.Patch.PatchType.UNIFIED , null , fileName , com.google.gerrit.server.patch.PatchListEntry.EMPTY_HEADER , java.util.Collections.< org.eclipse.jgit.diff.Edit > emptyList ( ) , 0 , 0 , 0 ) ; }

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.client.Patch.ChangeType.MODIFIED , com.google.gerrit.reviewdb.client.Patch.PatchType.UNIFIED , null , fileName , com.google.gerrit.server.patch.PatchListEntry.EMPTY_HEADER , java.util.Collections.< org.eclipse.jgit.diff.Edit > emptyList ( ) , 0 , 0 , 0 , 0 ) ; }
Source:
private java.lang.String createMyChange ( ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , user.getIdent ( ) ) ; return push.to ( git , "refs/for/master" ) . getChangeId ( ) ; }

Target:
private java.lang.String createMyChange ( ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , user.getIdent ( ) , git ) ; return push.to ( "refs/for/master" ) . getChangeId ( ) ; }
Source:
private void onPatchSetCreated ( final com.google.gerrit.server.events.PatchSetCreatedEvent event ) { com.google.gerrit.server.data.ChangeAttribute change = event.change.get ( ) ; if ( ! ( atomicityHelper.isAtomicReview ( change ) ) ) { return ; } processNewAtomicPatchSet ( change ) ; }

Target:
private void onPatchSetCreated ( final com.google.gerrit.server.events.PatchSetCreatedEvent event ) { com.google.gerrit.server.data.ChangeAttribute change = event.change.get ( ) ; if ( atomicityHelper.isAtomicReview ( change ) ) { processNewAtomicPatchSet ( change ) ; } }
Source:
private static java.lang.String getPrefixedName ( java.lang.String prefix , java.lang.String name ) { return ( "--" + prefix ) + name ; }

Target:
private static java.lang.String getPrefixedName ( java.lang.String prefix , java.lang.String name ) { return prefix + name ; }
Source:
public org.eclipse.jgit.lib.Config getProjectPluginConfigWithInheritance ( com.google.gerrit.server.project.ProjectState projectState , java.lang.String pluginName ) { return projectState.getConfig ( ( pluginName + ( com.google.gerrit.server.config.PluginConfigFactory.EXTENSION ) ) ) . getWithInheritance ( ) ; }

Target:
public org.eclipse.jgit.lib.Config getProjectPluginConfigWithInheritance ( com.google.gerrit.server.project.ProjectState projectState , java.lang.String pluginName ) { return projectState.getConfig ( ( pluginName + ( com.google.gerrit.server.config.PluginConfigFactory.EXTENSION ) ) ) . getWithInheritance ( false ) ; }
Source:
boolean isVisible ( ) { if ( ( isVisible ) == null ) { isVisible = ( ( getUser ( ) . isInternalUser ( ) ) || ( canPerform ( Permission.READ ) ) ) && ( isProjectStatePermittingRead ( ) ) ; } return isVisible ; }

Target:
boolean isVisible ( ) { if ( ( isVisible ) == null ) { isVisible = ( getUser ( ) . isInternalUser ( ) ) || ( canPerform ( Permission.READ ) ) ; } return isVisible ; }
Source:
public com.google.gerrit.server.project.ChangeControl getControl ( ) { return getChangeResource ( ) . getControl ( ) ; }

Target:
public com.google.gerrit.reviewdb.client.Change getChange ( ) { return getChangeResource ( ) . getChange ( ) ; }
Source:
protected PushOneCommit.Result createChange ( ) 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 , "refs/for/master" ) ; }

Target:
protected PushOneCommit.Result createChange ( ) 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 ( "refs/for/master" ) ; }
Source:
public void listBranchesOfEmptyProject ( ) throws java.lang.Exception { com.google.gerrit.acceptance.rest.project.BranchAssert.assertBranches ( com.google.common.collect.ImmutableList.of ( com.google.gerrit.acceptance.rest.project.ListBranchesIT.branch ( "HEAD" , null , false ) , com.google.gerrit.acceptance.rest.project.ListBranchesIT.branch ( "refs/meta/config" , null , false ) ) , list ( ) . get ( ) ) ; }

Target:
public void listBranchesOfEmptyProject ( ) throws java.lang.Exception { com.google.gerrit.acceptance.rest.project.BranchAssert.assertBranches ( com.google.common.collect.ImmutableList.of ( com.google.gerrit.acceptance.rest.project.ListBranchesIT.branch ( "refs/meta/config" , null , false ) ) , list ( ) . get ( ) ) ; }