auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
com.google.gerrit.httpd.raw.BowerComponentsServlet getBowerComponentsServlet ( @ com.google.inject.name.Named ( value = com.google.gerrit.httpd.raw.StaticModule.CACHE ) com.google.common.cache.Cache < java.nio.file.Path , com.google.gerrit.httpd.raw.ResourceServlet.Resource > cache ) throws java.io.IOException { return new com.google.gerrit.httpd.raw.BowerComponentsServlet ( cache , getPaths ( ) . buckOut ) ; }

Target:
com.google.gerrit.httpd.raw.PolyGerritUiServlet getPolyGerritUiServlet ( @ com.google.inject.name.Named ( value = com.google.gerrit.httpd.raw.StaticModule.CACHE ) com.google.common.cache.Cache < java.nio.file.Path , com.google.gerrit.httpd.raw.ResourceServlet.Resource > cache ) { return new com.google.gerrit.httpd.raw.PolyGerritUiServlet ( cache , polyGerritBasePath ( ) ) ; }
Source:
private void configureWebsessiosSection ( ) { ui.header ( "Websession section" ) ; promptAndSetString ( "Cleanup interval" , com.ericsson.gerrit.plugins.highavailability.Configuration.WEBSESSION_SECTION , com.ericsson.gerrit.plugins.highavailability.Configuration.CLEANUP_INTERVAL_KEY , com.ericsson.gerrit.plugins.highavailability.Configuration.DEFAULT_CLEANUP_INTERVAL ) ; }

Target:
private void configureWebsessionsSection ( ) { ui.header ( "Websession section" ) ; promptAndSetString ( "Cleanup interval" , com.ericsson.gerrit.plugins.highavailability.Configuration.WEBSESSION_SECTION , com.ericsson.gerrit.plugins.highavailability.Configuration.CLEANUP_INTERVAL_KEY , com.ericsson.gerrit.plugins.highavailability.Configuration.DEFAULT_CLEANUP_INTERVAL ) ; }
Source:
public void postRun ( ) throws java.lang.Exception { for ( com.google.gerrit.pgm.init.api.InitStep step : steps ) { if ( ( step instanceof com.google.gerrit.pgm.init.InitPlugins ) && ( flags.skipPlugins ) ) { continue ; } step.postRun ( ) ; } }

Target:
public void postRun ( com.google.inject.Injector injector ) throws java.lang.Exception { for ( com.google.gerrit.pgm.init.api.InitStep step : steps ) { if ( ( step instanceof com.google.gerrit.pgm.init.InitPlugins ) && ( flags.skipPlugins ) ) { continue ; } injector.injectMembers ( step ) ; step.postRun ( ) ; } }
Source:
public void confirmForOtherUser_UnprocessableEntity ( ) throws java.lang.Exception { com.google.gerrit.server.config.ConfirmEmail.Input in = new com.google.gerrit.server.config.ConfirmEmail.Input ( ) ; in.token = emailTokenVerifier.encode ( user.getId ( ) , "new.mail@example.com" ) ; adminSession.put ( "/config/server/email.confirm" , in ) . assertUnprocessableEntity ( ) ; }

Target:
public void confirmForOtherUser_UnprocessableEntity ( ) throws java.lang.Exception { com.google.gerrit.server.config.ConfirmEmail.Input in = new com.google.gerrit.server.config.ConfirmEmail.Input ( ) ; in.token = emailTokenVerifier.encode ( user.getId ( ) , "new.mail@example.com" ) ; adminRestSession.put ( "/config/server/email.confirm" , in ) . assertUnprocessableEntity ( ) ; }
Source:
public java.util.Collection < com.google.gerrit.reviewdb.RefRight > getLocalRights ( com.google.gerrit.reviewdb.ApprovalCategory.Id action ) { return com.google.gerrit.server.project.ProjectState.filter ( getLocalRights ( ) , action ) ; }

Target:
public com.google.gerrit.server.git.ProjectConfig getConfig ( ) { return config ; }
Source:
public void onChange ( com.google.gwt.event.dom.client.ChangeEvent event ) { final int sel = ws.getSelectedIndex ( ) ; if ( 0 <= sel ) { scriptSettings.setWhitespace ( com.google.gerrit.client.data.PatchScriptSettings.Whitespace.valueOf ( ws.getValue ( sel ) ) ) ; refresh ( false ) ; } }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { if ( event.getValue ( ) ) { scriptSettings.setContext ( com.google.gerrit.client.reviewdb.AccountGeneralPreferences.WHOLE_FILE_CONTEXT ) ; } else { initContextLines ( ) ; } refresh ( false ) ; }
Source:
public void testCreateGroupWithoutCapability_Forbidden ( ) throws com.google.gwtorm.server.OrmException , com.jcraft.jsch.JSchException , java.io.IOException { com.google.gerrit.acceptance.TestAccount user = accounts.create ( "user" , "user@example.com" , "User" ) ; com.google.gerrit.acceptance.RestResponse r = new com.google.gerrit.acceptance.RestSession ( user ) . put ( "/groups/newGroup" ) ; org.junit.Assert.assertEquals ( HttpStatus.SC_FORBIDDEN , r.getStatusCode ( ) ) ; }

Target:
public void testCreateGroupWithoutCapability_Forbidden ( ) throws com.google.gwtorm.server.OrmException , com.jcraft.jsch.JSchException , java.io.IOException { com.google.gerrit.acceptance.TestAccount user = accounts.create ( "user" , "user@example.com" , "User" ) ; com.google.gerrit.acceptance.RestResponse r = new com.google.gerrit.acceptance.RestSession ( server , user ) . put ( "/groups/newGroup" ) ; org.junit.Assert.assertEquals ( HttpStatus.SC_FORBIDDEN , r.getStatusCode ( ) ) ; }
Source:
protected void doUpsert ( final java.lang.Iterable < T > instances , final com.google.gwtorm.jdbc.JdbcTransaction txn ) throws com.google.gwtorm.client.OrmException { java.util.Collection < T > inserts = attemptUpdate ( instances ) ; if ( inserts != null ) { doInsert ( inserts , txn ) ; } }

Target:
public void upsert ( final java.lang.Iterable < T > instances ) throws com.google.gwtorm.server.OrmException { java.util.Collection < T > inserts = attemptUpdate ( instances ) ; if ( inserts != null ) { insert ( inserts ) ; } }
Source:
com.google.gerrit.server.project.ChangeControl create ( com.google.gerrit.server.project.RefControl refControl , com.google.gerrit.server.notedb.ChangeNotes notes ) ;

Target:
com.google.gerrit.server.project.ChangeControl create ( com.google.gerrit.server.project.RefControl refControl , com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id changeId ) throws com.google.gwtorm.server.OrmException { return create ( refControl , notesFactory.create ( db , project , changeId ) ) ; }
Source:
public void onSuccess ( final java.util.List < com.google.gerrit.reviewdb.Branch > result ) { enableForm ( true ) ; branches.display ( result ) ; }

Target:
private void display ( final java.util.List < com.google.gerrit.reviewdb.Branch > listBranches ) { branches.display ( listBranches ) ; delBranch.setVisible ( branches.hasBranchCanDelete ( ) ) ; }
Source:
com.google.gerrit.server.notedb.ChangeDraftUpdate create ( com.google.gerrit.server.notedb.ChangeNotes notes , com.google.gerrit.reviewdb.client.Account.Id accountId , org.eclipse.jgit.lib.PersonIdent authorIdent , java.util.Date when ) ;

Target:
com.google.gerrit.server.notedb.ChangeDraftUpdate create ( com.google.gerrit.server.notedb.ChangeNotes notes , @ com.google.inject.assistedinject.Assisted ( value = "effective" ) com.google.gerrit.reviewdb.client.Account.Id accountId , @ com.google.inject.assistedinject.Assisted ( value = "real" ) com.google.gerrit.reviewdb.client.Account.Id realAccountId , org.eclipse.jgit.lib.PersonIdent authorIdent , java.util.Date when ) ;
Source:
protected java.io.File path ( java.io.File sitePath , com.google.gerrit.httpd.GitWebConfig gitWebConfig ) { return gitWebConfig.getGitwebCSS ( ) ; }

Target:
protected java.io.File path ( java.io.File etc , com.google.gerrit.httpd.GitWebConfig gitWebConfig ) { return gitWebConfig.getGitwebCSS ( ) ; }
Source:
public void setAssignee ( com.google.gerrit.reviewdb.client.Account.Id assignee ) { com.google.common.base.Preconditions.checkArgument ( ( assignee != null ) , "use removeAssignee" ) ; this . assignee = com.google.common.base.Optional.of ( assignee ) ; }

Target:
public void setAssignee ( com.google.gerrit.reviewdb.client.Account.Id assignee ) { com.google.common.base.Preconditions.checkArgument ( ( assignee != null ) , "use removeAssignee" ) ; this . assignee = java.util.Optional.of ( assignee ) ; }
Source:
private final native java.sql.Timestamp _get_cts ( ) ;

Target:
private final native java.sql.Timestamp _getCts ( ) ;
Source:
void onRebase ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.RebaseAction.call ( changeId , revision ) ; }

Target:
void onRebase ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.RebaseAction.call ( rebase , project , changeInfo.branch ( ) , changeId , revision ) ; }
Source:
public com.google.gerrit.client.ui.Screen recycleThis ( final com.google.gerrit.client.ui.Screen newScreen ) { final com.google.gerrit.client.changes.AllSingleListScreen o = ( ( com.google.gerrit.client.changes.AllSingleListScreen ) ( newScreen ) ) ; useLoadPrev = o.useLoadPrev ; pos = o.pos ; return this ; }

Target:
protected com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.data.SingleListChangeInfo > loadCallback ( ) { return new com.google.gerrit.client.rpc.ScreenLoadCallback < com.google.gerrit.client.data.SingleListChangeInfo > ( this ) { @ java.lang.Override protected void preDisplay ( final com.google.gerrit.client.data.SingleListChangeInfo result ) { display ( result ) ; } } ; }
Source:
public java.lang.String call ( ) throws java.lang.Exception { log.debug ( "Performing action on issue {}" , actionName , issueKey ) ; doPerformAction ( issueKey , actionName ) ; return issueKey ; }

Target:
public void performAction ( final java.lang.String issueKey , final java.lang.String actionName ) throws java.io.IOException { execute ( ( ) -> { log.debug ( "Performing action on issue {}" , actionName , issueKey ) ; doPerformAction ( issueKey , actionName ) ; return issueKey ; } ) ; }
Source:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > indexAsync ( com.google.gerrit.server.query.change.ChangeData cd ) { return ( executor ) != null ? submit ( new com.google.gerrit.server.index.ChangeIndexer.Task ( cd , false ) ) : com.google.common.util.concurrent.Futures.< java.lang.Object , java.io.IOException > immediateCheckedFuture ( null ) ; }

Target:
public void index ( com.google.gerrit.server.query.change.ChangeData cd ) throws java.io.IOException { for ( com.google.gerrit.server.index.ChangeIndex i : getWriteIndexes ( ) ) { i.replace ( cd ) ; } }
Source:
protected void onInitUI ( ) { super . onInitUI ( ) ; add ( new com.google.gerrit.client.ui.SmallHeading ( Util.C.headingAuditLog ( ) ) ) ; auditEventTable = new com.google.gerrit.client.admin.AccountGroupAuditLogScreen.AuditEventTable ( ) ; add ( auditEventTable ) ; }

Target:
protected void onInitUI ( ) { super . onInitUI ( ) ; add ( new com.google.gerrit.client.ui.SmallHeading ( AdminConstants.I.headingAuditLog ( ) ) ) ; auditEventTable = new com.google.gerrit.client.admin.AccountGroupAuditLogScreen.AuditEventTable ( ) ; add ( auditEventTable ) ; }
Source:
public void deletingNonExistingEditRest ( ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = adminSession.delete ( urlEdit ( ) ) ; com.google.common.truth.Truth.assertThat ( r.getStatusCode ( ) ) . isEqualTo ( org.apache.http.HttpStatus.SC_NOT_FOUND ) ; }

Target:
public void deletingNonExistingEditRest ( ) throws java.lang.Exception { adminSession.delete ( urlEdit ( ) ) . assertNotFound ( ) ; }
Source:
public com.google.gerrit.reviewdb.client.Change update ( com.google.gerrit.reviewdb.client.Change change ) { if ( change.getStatus ( ) . isOpen ( ) ) { change.nextPatchSetId ( ) ; return change ; } else { return null ; } }

Target:
public com.google.gerrit.reviewdb.client.Change update ( com.google.gerrit.reviewdb.client.Change change ) { if ( change.getStatus ( ) . isOpen ( ) ) { change.updateNumberOfPatchSets ( newPatchSet.getPatchSetId ( ) ) ; return change ; } else { return null ; } }
Source:
public static com.google.gerrit.server.config.ScheduleConfig.Builder builder ( org.eclipse.jgit.lib.Config config , java.lang.String section ) { return com.google.gerrit.server.config.ScheduleConfig.builder ( config , section , null ) ; }

Target:
public abstract long interval ( ) ;
Source:
private static Field.Store store ( com.google.gerrit.server.index.FieldDef < ? , ? > f ) { return f.isStored ( ) ? Field.Store.YES : Field.Store.NO ; }

Target:
private static org.apache.lucene.document.Field.Store store ( com.google.gerrit.server.index.FieldDef < ? , ? > f ) { return f.isStored ( ) ? org.apache.lucene.document.Field.Store.YES : org.apache.lucene.document.Field.Store.NO ; }
Source:
public void onSuccess ( ) { com.google.gerrit.client.patches.UnifiedPatchScreen.TopView top = com.google.gerrit.client.Gerrit.getPatchScreenTopView ( ) ; com.google.gerrit.client.Gerrit.display ( token , new com.google.gerrit.client.patches.UnifiedPatchScreen ( id , top , baseId ) ) ; }

Target:
public void onSuccess ( ) { com.google.gerrit.client.Gerrit.display ( token , ( edit ? new com.google.gerrit.client.editor.EditScreen ( baseId , id , line ) : new com.google.gerrit.client.diff.SideBySide ( baseId , id.getParentKey ( ) , id.get ( ) , side , line ) ) ) ; }
Source:
public static void drop ( com.google.gerrit.testutil.InMemoryDatabase db ) { if ( db != null ) { db.drop ( ) ; } }

Target:
public static void drop ( com.google.gerrit.testing.InMemoryDatabase db ) { if ( db != null ) { db.drop ( ) ; } }
Source:
public void testProjectNotFound ( ) throws java.lang.Exception { java.util.Map < java.lang.String , com.google.gerrit.server.util.SubmoduleSectionParserTest.SubmoduleSection > sectionsToReturn = new java.util.HashMap < > ( ) ; sectionsToReturn.put ( "a" , new com.google.gerrit.server.util.SubmoduleSectionParserTest.SubmoduleSection ( "ssh://localhost/a" , "a" , "." ) ) ; execute ( new com.google.gerrit.reviewdb.client.Branch.NameKey ( new com.google.gerrit.reviewdb.client.Project.NameKey ( "super-project" ) , "refs/heads/master" ) , sectionsToReturn , new java.util.HashMap < java.lang.String , java.lang.String > ( ) , new java.util.ArrayList < com.google.gerrit.reviewdb.client.SubmoduleSubscription > ( ) ) ; }

Target:
public void testProjectNotFound ( ) throws java.lang.Exception { java.util.Map < java.lang.String , com.google.gerrit.server.util.SubmoduleSectionParserTest.SubmoduleSection > sectionsToReturn = new java.util.HashMap < > ( ) ; sectionsToReturn.put ( "a" , new com.google.gerrit.server.util.SubmoduleSectionParserTest.SubmoduleSection ( "ssh://localhost/a" , "a" , "." ) ) ; java.util.Set < com.google.gerrit.reviewdb.client.SubmoduleSubscription > expectedSubscriptions = java.util.Collections.emptySet ( ) ; execute ( new com.google.gerrit.reviewdb.client.Branch.NameKey ( new com.google.gerrit.reviewdb.client.Project.NameKey ( "super-project" ) , "refs/heads/master" ) , sectionsToReturn , new java.util.HashMap < java.lang.String , java.lang.String > ( ) , expectedSubscriptions ) ; }
Source:
public com.google.gerrit.reviewdb.client.Change change ( ) throws com.google.gwtorm.server.OrmException { if ( ( change ) == null ) { reloadChange ( ) ; } return change ; }

Target:
public com.google.gerrit.reviewdb.client.Change change ( ) throws com.google.gwtorm.server.OrmException { if ( ( ( change ) == null ) && ( lazyLoad ) ) { reloadChange ( ) ; } return change ; }
Source:
public static void main ( final java.lang.String [ ] argv ) throws java.lang.Exception { com.google.gerrit.main.GerritLauncher.main ( argv ) ; }

Target:
public static void main ( final java.lang.String [ ] argv ) throws java.lang.Exception { if ( Main.onSupportedJavaVersion ( ) ) { com.google.gerrit.launcher.GerritLauncher.main ( argv ) ; } else { java.lang.System.exit ( 1 ) ; } }
Source:
public void add ( final com.google.gerrit.lifecycle.LifecycleListener listener ) { listeners.put ( listener , true ) ; }

Target:
public void add ( com.google.gerrit.extensions.events.LifecycleListener listener ) { listeners.add ( com.google.inject.util.Providers.of ( listener ) ) ; }
Source:
private void initChannels ( ) { setChannelFactories ( java.util.Arrays.< org.apache.sshd.common.NamedFactory < org.apache.sshd.common.Channel > > asList ( new org.apache.sshd.server.channel.ChannelSession.Factory ( ) , new org.apache.sshd.common.forward.TcpipServerChannel.DirectTcpipFactory ( ) ) ) ; }

Target:
private void initChannels ( ) { setChannelFactories ( ServerBuilder.DEFAULT_CHANNEL_FACTORIES ) ; }
Source:
public boolean canSubmit ( ) { if ( GitRepositoryManager.REF_CONFIG.equals ( refName ) ) { return projectControl.isOwner ( ) ; } return canPerform ( Permission.SUBMIT ) ; }

Target:
public boolean canSubmit ( ) { if ( GitRepositoryManager.REF_CONFIG.equals ( refName ) ) { return projectControl.isOwner ( ) ; } return ( canPerform ( Permission.SUBMIT ) ) && ( canWrite ( ) ) ; }
Source:
public void testCreateChildProjectUnderNonExistingParent_UnprocessableEntity ( ) throws java.lang.Exception { com.google.gerrit.extensions.api.projects.ProjectInput in = new com.google.gerrit.extensions.api.projects.ProjectInput ( ) ; in.parent = "non-existing-project" ; com.google.gerrit.acceptance.RestResponse r = adminSession.put ( "/projects/child" , in ) ; com.google.common.truth.Truth.assertThat ( r.getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_UNPROCESSABLE_ENTITY ) ; }

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 = "newProject" ; assertCreateFails ( in , com.google.gerrit.extensions.restapi.AuthException.class ) ; }
Source:
public void setId ( java.lang.String id ) { this . id = com.google.gerrit.common.data.LabelType.checkId ( id ) ; }

Target:
public void setCanOverride ( boolean canOverride ) { this . canOverride = canOverride ; }
Source:
static org.eclipse.jgit.lib.Config parse ( com.google.gerrit.acceptance.GerritConfig annotation ) { org.eclipse.jgit.lib.Config cfg = new org.eclipse.jgit.lib.Config ( ) ; com.google.gerrit.acceptance.ConfigAnnotationParser.parse ( cfg , annotation ) ; return cfg ; }

Target:
static org.eclipse.jgit.lib.Config parse ( org.eclipse.jgit.lib.Config base , com.google.gerrit.acceptance.GerritConfig annotation ) { org.eclipse.jgit.lib.Config cfg = new org.eclipse.jgit.lib.Config ( base ) ; com.google.gerrit.acceptance.ConfigAnnotationParser.parseAnnotation ( cfg , annotation ) ; return cfg ; }
Source:
com.google.gerrit.client.diff.DraftBox addReplyBox ( ) { com.google.gerrit.client.diff.DraftBox box = parent.addDraftBox ( parent.createReply ( comment ) ) ; registerReplyBox ( box ) ; return box ; }

Target:
com.google.gerrit.client.diff.DraftBox addReplyBox ( ) { com.google.gerrit.client.diff.DraftBox box = parent.addDraftBox ( parent.createReply ( comment ) , getSide ( ) ) ; registerReplyBox ( box ) ; return box ; }
Source:
private com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > rewrite ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in , com.google.gerrit.server.index.QueryOptions opts ) throws com.google.gerrit.index.query.QueryParseException { return rewrite.rewrite ( in , opts ) ; }

Target:
private com.google.gerrit.index.query.Predicate < com.google.gerrit.server.query.change.ChangeData > rewrite ( com.google.gerrit.index.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in , com.google.gerrit.index.QueryOptions opts ) throws com.google.gerrit.index.query.QueryParseException { return rewrite.rewrite ( in , opts ) ; }
Source:
public void onSuccess ( java.lang.String result ) { com.google.gwt.user.client.Window.alert ( result ) ; }

Target:
public void onSuccess ( java.lang.String result ) { com.google.gerrit.client.change.EditFileAction edit = new com.google.gerrit.client.change.EditFileAction ( curr , result , path , style , editButton , replyButton ) ; edit.onEdit ( ) ; }
Source:
public void run ( ) { skipManager.removeAll ( ) ; skipManager.render ( context , diff ) ; }

Target:
public void run ( ) { skipManager.removeAll ( ) ; skipManager.render ( context , diff ) ; diffTable.overview.refresh ( ) ; }
Source:
public void addEventHandler ( final com.google.gwt.user.client.ui.DisclosureHandler handler ) { main.addEventHandler ( handler ) ; }

Target:
public com.google.gwt.event.shared.HandlerRegistration addOpenHandler ( final com.google.gwt.event.logical.shared.OpenHandler < com.google.gwt.user.client.ui.DisclosurePanel > h ) { return main.addOpenHandler ( h ) ; }
Source:
public boolean allowsEdit ( com.google.gerrit.reviewdb.client.Account.FieldName field ) { return editableAccountFields.contains ( field ) ; }

Target:
public boolean allowsEdit ( com.google.gerrit.reviewdb.client.Account.FieldName field ) { return ( field == ( com.google.gerrit.reviewdb.client.Account.FieldName.USER_NAME ) ) || ( editableAccountFields.contains ( field ) ) ; }
Source:
public void encode ( T obj , final byte [ ] data , int offset , int length ) { encode ( obj , com.google.protobuf.CodedOutputStream.newInstance ( data , offset , length ) ) ; }

Target:
public T decode ( com.google.protobuf.CodedInputStream in ) { T obj = newInstance ( ) ; mergeFrom ( in , obj ) ; return obj ; }
Source:
private void fastForwardTagToNewCommit ( com.google.gerrit.acceptance.rest.project.PushTagIT.TagType tagType , java.lang.String tagName , org.eclipse.jgit.transport.RemoteRefUpdate.Status expectedStatus ) throws java.lang.Exception { pushTag ( tagType , tagName , true , expectedStatus ) ; }

Target:
private java.lang.String pushTagForExistingCommit ( com.google.gerrit.acceptance.rest.project.PushTagIT.TagType tagType , org.eclipse.jgit.transport.RemoteRefUpdate.Status expectedStatus ) throws java.lang.Exception { return pushTag ( tagType , null , false , false , expectedStatus ) ; }
Source:
public java.util.regex.Pattern getIssuePattern ( ) { java.util.regex.Pattern ret = null ; java.lang.String match = gerritConfig.getString ( "commentlink" , pluginName , "match" ) ; if ( match != null ) { ret = java.util.regex.Pattern.compile ( match ) ; } return ret ; }

Target:
public java.util.regex.Pattern getIssuePattern ( ) { java.util.regex.Pattern ret = null ; java.lang.String match = gerritConfig.getString ( "commentlink" , getCommentLinkName ( ) , "match" ) ; if ( match != null ) { ret = java.util.regex.Pattern.compile ( match ) ; } return ret ; }
Source:
public com.google.gerrit.server.notedb.ChangeNotes createWithAutoRebuildingDisabled ( com.google.gerrit.reviewdb.client.Change change ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.server.notedb.ChangeNotes ( args , change.getProject ( ) , change , false ) . load ( ) ; }

Target:
public com.google.gerrit.server.notedb.ChangeNotes createWithAutoRebuildingDisabled ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.server.git.ChainedReceiveCommands cmds ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.server.notedb.ChangeNotes ( args , change.getProject ( ) , change , false , cmds ) . load ( ) ; }
Source:
private static dk.brics.automaton.RegExp toRegExp ( java.lang.String refPattern ) { if ( com.google.gerrit.server.project.RefControl.isRE ( refPattern ) ) { refPattern = refPattern.substring ( 1 ) ; } return new dk.brics.automaton.RegExp ( refPattern ) ; }

Target:
private static dk.brics.automaton.RegExp toRegExp ( java.lang.String refPattern ) { if ( com.google.gerrit.server.project.RefControl.isRE ( refPattern ) ) { refPattern = refPattern.substring ( 1 ) ; } return new dk.brics.automaton.RegExp ( refPattern , dk.brics.automaton.RegExp.NONE ) ; }
Source:
private com.google.gerrit.server.project.ProjectState toProjectState ( org.apache.lucene.document.Document doc ) { com.google.gerrit.reviewdb.client.Project.NameKey nameKey = new com.google.gerrit.reviewdb.client.Project.NameKey ( doc.getField ( com.google.gerrit.server.index.project.ProjectField.NAME.getName ( ) ) . stringValue ( ) ) ; return projectCache.get ( ) . get ( nameKey ) ; }

Target:
private com.google.gerrit.server.project.ProjectData toProjectData ( org.apache.lucene.document.Document doc ) { com.google.gerrit.reviewdb.client.Project.NameKey nameKey = new com.google.gerrit.reviewdb.client.Project.NameKey ( doc.getField ( com.google.gerrit.server.index.project.ProjectField.NAME.getName ( ) ) . stringValue ( ) ) ; return projectCache.get ( ) . get ( nameKey ) . toProjectData ( ) ; }
Source:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { showCLA ( cla ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { doSign ( ) ; }
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 ) throws com.google.gwtorm.server.OrmException ;

Target:
void postEvent ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.server.events.ChangeEvent event , com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException ;
Source:
public void run ( ) { paddingOtherside.getStyle ( ) . setHeight ( box.getOffsetHeight ( ) , Unit.PX ) ; }

Target:
public int compare ( com.google.gerrit.client.changes.CommentInfo o1 , com.google.gerrit.client.changes.CommentInfo o2 ) { return o1.updated ( ) . compareTo ( o2.updated ( ) ) ; }
Source:
public com.google.gerrit.gpg.CheckResult checkCustom ( org.bouncycastle.openpgp.PGPPublicKey key ) { return com.google.gerrit.gpg.CheckResult.ok ( ) ; }

Target:
public com.google.gerrit.gpg.CheckResult checkCustom ( org.bouncycastle.openpgp.PGPPublicKey key , int depth ) { return com.google.gerrit.gpg.CheckResult.ok ( ) ; }
Source:
public com.google.common.collect.ImmutableSet < java.lang.String > getHashtags ( ) { return hashtags ; }

Target:
public com.google.common.collect.ImmutableSet < java.lang.String > getHashtags ( ) { return com.google.common.collect.ImmutableSortedSet.copyOf ( hashtags ) ; }
Source:
protected void preDisplay ( final com.google.gerrit.common.data.SingleListChangeInfo result ) { display ( result ) ; }

Target:
protected void preDisplay ( com.google.gerrit.client.changes.ChangeList result ) { display ( result ) ; }
Source:
public static org.eclipse.jgit.revwalk.RevTree automerge ( org.eclipse.jgit.lib.Repository repo , org.eclipse.jgit.revwalk.RevWalk rw , org.eclipse.jgit.revwalk.RevCommit b ) throws java.io.IOException { return com.google.gerrit.server.patch.PatchListLoader.automerge ( repo , rw , b , true ) ; }

Target:
public static org.eclipse.jgit.revwalk.RevTree automerge ( org.eclipse.jgit.lib.Repository repo , org.eclipse.jgit.revwalk.RevWalk rw , org.eclipse.jgit.revwalk.RevCommit b , org.eclipse.jgit.merge.ThreeWayMergeStrategy mergeStrategy ) throws java.io.IOException { return com.google.gerrit.server.patch.PatchListLoader.automerge ( repo , rw , b , mergeStrategy , true ) ; }
Source:
public void copy ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.project.ChangeControl ctl , com.google.gerrit.reviewdb.client.PatchSet ps ) throws com.google.gwtorm.server.OrmException { db.patchSetApprovals ( ) . insert ( getForPatchSet ( db , ctl , ps ) ) ; }

Target:
public void copy ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.project.ChangeControl ctl , com.google.gerrit.reviewdb.client.PatchSet ps ) throws com.google.gwtorm.server.OrmException { copy ( db , ctl , ps , java.util.Collections.< com.google.gerrit.reviewdb.client.PatchSetApproval > emptyList ( ) ) ; }
Source:
public boolean isIgnoreWhitespace ( ) { return ( diffPrefs.getIgnoreWhitespace ( ) ) != ( com.google.gerrit.reviewdb.client.AccountDiffPreference.Whitespace.IGNORE_NONE ) ; }

Target:
public boolean isIgnoreWhitespace ( ) { return ( diffPrefs.ignoreWhitespace ) != ( com.google.gerrit.extensions.client.DiffPreferencesInfo.Whitespace.IGNORE_NONE ) ; }
Source:
public void gerritConfig ( final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.GerritConfig > callback ) { callback.onSuccess ( config.get ( ) ) ; }

Target:
public void gerritConfig ( final com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.GerritConfig > callback ) { callback.onSuccess ( config.get ( ) ) ; }
Source:
com.google.gerrit.server.index.account.AccountIndexer getAccountIndexer ( com.google.gerrit.server.index.account.AccountIndexer.Factory factory , com.google.gerrit.server.index.account.AccountIndexCollection indexes ) { return factory.create ( indexes ) ; }

Target:
com.google.gerrit.server.index.account.AccountIndexer getAccountIndexer ( com.google.gerrit.server.index.account.AccountIndexerImpl.Factory factory , com.google.gerrit.server.index.account.AccountIndexCollection indexes ) { return factory.create ( indexes ) ; }
Source:
private org.kohsuke.args4j.spi.OptionHandler findHandler ( java.lang.String name ) { if ( ( options ) == null ) { options = com.google.gerrit.util.cli.CmdLineParser.index ( parser.options ) ; } return options.get ( name ) ; }

Target:
private org.kohsuke.args4j.spi.OptionHandler findHandler ( java.lang.String name ) { if ( ( options ) == null ) { options = com.google.gerrit.util.cli.CmdLineParser.index ( parser.optionsList ) ; } return options.get ( name ) ; }
Source:
public void preDisplay ( com.google.gerrit.common.data.ProjectAccess access ) { displayReadOnly ( access ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.rpc.NativeMap < com.google.gerrit.client.config.CapabilityInfo > result ) { capabilityMap = result ; }
Source:
public void batchAbandon ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.server.CurrentUser user , java.util.Collection < com.google.gerrit.server.project.ChangeControl > controls , java.lang.String msgTxt ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.git.UpdateException { batchAbandon ( project , user , controls , msgTxt , NotifyHandling.ALL ) ; }

Target:
public void batchAbandon ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.server.CurrentUser user , java.util.Collection < com.google.gerrit.server.project.ChangeControl > controls ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.git.UpdateException { batchAbandon ( project , user , controls , "" , NotifyHandling.ALL , com.google.common.collect.ImmutableListMultimap.of ( ) ) ; }
Source:
private org.eclipse.jgit.lib.Repository getRepository ( ) { try { return server.openRepository ( projectName ) ; } catch ( org.eclipse.jgit.errors.RepositoryNotFoundException e ) { return null ; } }

Target:
private org.eclipse.jgit.lib.Repository getRepository ( ) { try { return args.server.openRepository ( projectName ) ; } catch ( org.eclipse.jgit.errors.RepositoryNotFoundException e ) { return null ; } }
Source:
private static final native com.google.gwt.core.client.JavaScriptObject get ( java.lang.String id ) ;

Target:
private static final native com.google.gwt.core.client.JavaScriptObject projectAction ( java.lang.String id ) ;
Source:
public void onSuccess ( com.googlesource.gerrit.plugins.serviceuser.client.MessagesInfo info ) { display ( info ) ; }

Target:
public void onSuccess ( com.googlesource.gerrit.plugins.serviceuser.client.ConfigInfo info ) { display ( info ) ; }
Source:
public boolean isScheme ( final java.lang.String scheme ) { return getExternalId ( ) . startsWith ( scheme ) ; }

Target:
public void setLocalUser ( java.lang.String localUser ) { if ( externalId.isScheme ( com.google.gerrit.server.account.ExternalId.SCHEME_GERRIT ) ) { externalId = ExternalId.Key.create ( com.google.gerrit.server.account.ExternalId.SCHEME_GERRIT , localUser ) ; } }
Source:
public java.lang.String getLabel ( ) { return isLabel ( ) ? getName ( ) . substring ( Permission.LABEL.length ( ) ) : null ; }

Target:
public java.lang.String getLabel ( ) { return com.google.gerrit.common.data.Permission.extractLabel ( getName ( ) ) ; }
Source:
private final native void _set_cts ( java.sql.Timestamp ts ) ;

Target:
private final native void _setCts ( java.sql.Timestamp ts ) ;
Source:
public void visit ( org.pegdown.ast.AutoLinkNode node ) { java.lang.String url = node.getText ( ) ; html.open ( "a" ) . attribute ( "href" , href ( url ) ) . appendAndEscape ( url ) . close ( "a" ) ; }

Target:
public void visit ( org.commonmark.node.StrongEmphasis node ) { wrapChildren ( "strong" , node ) ; }
Source:
private void logRetry ( java.lang.String cause ) { com.ericsson.gerrit.plugins.syncindex.HttpClientProvider.log.debug ( ( ( ( "Retrying request to '" + ( cfg.getUrl ( ) ) ) + "' Cause: " ) + cause ) ) ; }

Target:
private void logRetry ( java.lang.String cause ) { com.ericsson.gerrit.plugins.highavailability.HttpClientProvider.log.debug ( ( ( ( "Retrying request to '" + ( cfg.getUrl ( ) ) ) + "' Cause: " ) + cause ) ) ; }
Source:
private java.util.Set < com.google.gerrit.reviewdb.client.Change.Status > status ( java.lang.String query ) throws com.google.gerrit.server.query.QueryParseException { return com.google.gerrit.server.index.change.IndexRewriter.getPossibleStatus ( parse ( query ) ) ; }

Target:
private java.util.Set < com.google.gerrit.reviewdb.client.Change.Status > status ( java.lang.String query ) throws com.google.gerrit.server.query.QueryParseException { return com.google.gerrit.server.index.change.ChangeIndexRewriter.getPossibleStatus ( parse ( query ) ) ; }
Source:
public java.lang.Integer apply ( com.google.gerrit.reviewdb.client.PatchSet in ) { return in.getId ( ) . get ( ) ; }

Target:
private org.eclipse.jgit.lib.ObjectId parseObjectId ( java.lang.String objIdStr , java.lang.String desc ) { try { return org.eclipse.jgit.lib.ObjectId.fromString ( objIdStr ) ; } catch ( java.lang.IllegalArgumentException e ) { problem ( java.lang.String.format ( "Invalid revision on %s: %s" , desc , objIdStr ) ) ; return null ; } }
Source:
public void listBranchesOfNonExistingProject_NotFound ( ) throws java.lang.Exception { try { gApi.projects ( ) . name ( "non-existing" ) . branches ( ) . get ( ) ; org.junit.Assert.fail ( "Expected ResourceNotFoundException" ) ; } catch ( com.google.gerrit.extensions.restapi.ResourceNotFoundException expected ) { } }

Target:
public void listBranchesOfNonExistingProject_NotFound ( ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.ResourceNotFoundException.class ) ; gApi.projects ( ) . name ( "non-existing" ) . branches ( ) . get ( ) ; }
Source:
protected com.google.gerrit.sshd.SshScope.Context continuingContext ( com.google.gerrit.sshd.SshScope.Context ctx ) { return ctx.subContext ( ctx.getSession ( ) , ctx.getCommandLine ( ) ) ; }

Target:
protected com.google.gerrit.sshd.SshScope.Context continuingContext ( com.google.gerrit.sshd.SshScope.Context ctx ) { return new com.google.gerrit.sshd.SshScope.Context ( ctx , ctx.getSession ( ) , ctx.getCommandLine ( ) ) ; }
Source:
public void setUserAccountId ( com.google.gerrit.reviewdb.client.Account.Id id , com.google.gerrit.server.account.AuthMethod method ) ;

Target:
public void setUserAccountId ( com.google.gerrit.reviewdb.client.Account.Id id ) ;
Source:
protected void submit ( java.lang.String changeId , com.google.gerrit.extensions.api.changes.SubmitInput input ) throws java.lang.Exception { submit ( changeId , input , null , null ) ; }

Target:
protected void submit ( java.lang.String changeId , com.google.gerrit.extensions.api.changes.SubmitInput input ) throws java.lang.Exception { submit ( changeId , input , null , null , true ) ; }
Source:
public Change.Id getId ( ) { return notes.getChangeId ( ) ; }

Target:
public Change.Id getId ( ) { return change.getId ( ) ; }
Source:
public com.google.gitiles.GitilesView.Builder setOldRevision ( com.google.gitiles.Revision revision ) { switch ( type ) { case DIFF : case LOG : this . oldRevision = com.google.common.base.Preconditions.checkNotNull ( revision ) ; return this ; default : throw new java.lang.IllegalStateException ( java.lang.String.format ( "cannot set old revision on %s view" , type ) ) ; } }

Target:
public com.google.gitiles.GitilesView.Builder setOldRevision ( com.google.gitiles.Revision revision ) { switch ( type ) { case DIFF : case LOG : this . oldRevision = revision ; return this ; default : throw new java.lang.IllegalStateException ( java.lang.String.format ( "cannot set old revision on %s view" , type ) ) ; } }
Source:
public boolean isMultiValued ( ) { return multiValued ( ) ; }

Target:
public boolean isMultiValued ( ) { return false ; }
Source:
public void stop ( ) { refreshThread.halt ( ) ; openIndex.close ( ) ; closedIndex.close ( ) ; }

Target:
public void run ( ) { openIndex.close ( ) ; }
Source:
public void evaluate ( ) throws java.lang.Throwable { boolean mem = ( description.getAnnotation ( com.google.gerrit.acceptance.UseLocalDisk.class ) ) == null ; beforeTest ( com.google.gerrit.acceptance.AbstractDaemonTest.config ( description ) , mem ) ; base.evaluate ( ) ; afterTest ( ) ; }

Target:
public void evaluate ( ) throws java.lang.Throwable { boolean mem = ( description.getAnnotation ( com.google.gerrit.acceptance.UseLocalDisk.class ) ) == null ; beforeTest ( config ( description ) , mem ) ; base.evaluate ( ) ; afterTest ( ) ; }
Source:
public void onSignOut ( ) { if ( ( starChange ) != null ) { starChange.setVisible ( false ) ; } }

Target:
public void onSignOut ( ) { super . onSignOut ( ) ; if ( ( starChange ) != null ) { starChange.setVisible ( false ) ; } }
Source:
public com.google.gerrit.common.EventListener getEventListener ( ) { }

Target:
com.google.gerrit.common.EventListener getEventListener ( ) ;
Source:
com.google.gerrit.server.mail.CommentSender create ( com.google.gerrit.extensions.api.changes.ReviewInput.NotifyHandling notify , com.google.gerrit.reviewdb.client.Change.Id id ) ;

Target:
com.google.gerrit.server.mail.CommentSender create ( com.google.gerrit.reviewdb.client.Change.Id id ) ;
Source:
public boolean isVisibleTo ( com.google.gerrit.reviewdb.client.Account account ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.server.IdentifiedUser who = identifiedUserFactory.create ( dbProvider , account.getId ( ) ) ; return rsrc.getControl ( ) . forUser ( who ) . isRefVisible ( ) ; }

Target:
public boolean isVisibleTo ( com.google.gerrit.reviewdb.client.Account.Id account ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.server.IdentifiedUser who = identifiedUserFactory.create ( dbProvider , account ) ; return rsrc.getControl ( ) . forUser ( who ) . isRefVisible ( ) ; }
Source:
private net.sf.ehcache.constructs.blocking.SelfPopulatingCache startCacheSshKeys ( ) { final net.sf.ehcache.Cache dc = com.google.gerrit.server.GerritServer.cacheMgr.getCache ( "sshkeys" ) ; final net.sf.ehcache.constructs.blocking.SelfPopulatingCache r ; r = new net.sf.ehcache.constructs.blocking.SelfPopulatingCache ( dc , new com.google.gerrit.server.ssh.SshKeyCacheEntryFactory ( this ) ) ; com.google.gerrit.server.GerritServer.cacheMgr.replaceCacheWithDecoratedCache ( dc , r ) ; return r ; }

Target:
private net.sf.ehcache.constructs.blocking.SelfPopulatingCache startCacheSshKeys ( ) { final net.sf.ehcache.Cache dc = com.google.gerrit.server.GerritServer.cacheMgr.getCache ( "sshkeys" ) ; final net.sf.ehcache.constructs.blocking.SelfPopulatingCache r ; r = new net.sf.ehcache.constructs.blocking.SelfPopulatingCache ( dc , new com.google.gerrit.server.ssh.SshKeyCacheEntryFactory ( db ) ) ; com.google.gerrit.server.GerritServer.cacheMgr.replaceCacheWithDecoratedCache ( dc , r ) ; return r ; }
Source:
private static java.util.List < org.eclipse.jgit.diff.Edit > toList ( org.eclipse.jgit.diff.Edit [ ] l ) { return java.util.Collections.unmodifiableList ( java.util.Arrays.asList ( l ) ) ; }

Target:
private static java.util.List < org.eclipse.jgit.diff.Edit > asList ( org.eclipse.jgit.diff.Edit [ ] l ) { return java.util.Collections.unmodifiableList ( java.util.Arrays.asList ( l ) ) ; }
Source:
private void open ( java.lang.String path ) { hide ( ) ; com.google.gerrit.client.Gerrit.display ( com.google.gerrit.client.Dispatcher.toEditScreen ( new com.google.gerrit.reviewdb.client.PatchSet.Id ( changeId , revision._number ( ) ) , path ) ) ; }

Target:
private void open ( java.lang.String path ) { hide ( ) ; com.google.gerrit.client.Gerrit.display ( com.google.gerrit.client.Dispatcher.toEditScreen ( project , new com.google.gerrit.reviewdb.client.PatchSet.Id ( changeId , revision._number ( ) ) , path ) ) ; }
Source:
private boolean inProject ( com.google.gerrit.server.project.ProjectControl projectControl , com.google.gerrit.reviewdb.client.Project project ) { if ( projectControl != null ) { return projectControl.getProject ( ) . getNameKey ( ) . equals ( project.getNameKey ( ) ) ; } else { return true ; } }

Target:
private boolean inProject ( com.google.gerrit.server.project.ProjectControl projectControl , com.google.gerrit.reviewdb.client.Project project ) { if ( projectControl != null ) { return projectControl.getProject ( ) . getNameKey ( ) . equals ( project.getNameKey ( ) ) ; } return true ; }
Source:
public static java.lang.String toEditScreen ( com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName ) { return com.google.gerrit.client.Dispatcher.toPatch ( "edit" , null , revision , fileName , null , 0 ) ; }

Target:
public static java.lang.String toEditScreen ( com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName ) { return com.google.gerrit.client.Dispatcher.toEditScreen ( revision , fileName , 0 ) ; }
Source:
public com.google.gerrit.server.patch.PatchListEntry get ( final java.lang.String fileName ) { final int index = search ( fileName ) ; return 0 <= index ? patches [ index ] : com.google.gerrit.server.patch.PatchListEntry.empty ( fileName ) ; }

Target:
public com.google.gerrit.server.patch.PatchListEntry get ( final java.lang.String fileName ) { final int index = search ( fileName ) ; return 0 <= index ? patches.get ( index ) : com.google.gerrit.server.patch.PatchListEntry.empty ( fileName ) ; }
Source:
public com.google.gerrit.server.permissions.PermissionBackend.ForChange user ( com.google.gerrit.server.CurrentUser user ) { return getUser ( ) . equals ( user ) ? this : forUser ( user ) . asForChange ( cd , db ) ; }

Target:
public com.google.gerrit.server.permissions.PermissionBackend.ForChange user ( com.google.gerrit.server.CurrentUser user ) { return user ( ) . equals ( user ) ? this : forUser ( user ) . asForChange ( cd , db ) ; }
Source:
protected com.google.gerrit.reviewdb.client.PatchSet getPatchSet ( com.google.gerrit.reviewdb.client.PatchSet.Id psId ) throws com.google.gwtorm.server.OrmException { return changeDataFactory.create ( db , psId.getParentKey ( ) ) . patchSet ( psId ) ; }

Target:
protected com.google.gerrit.reviewdb.client.PatchSet getPatchSet ( com.google.gerrit.reviewdb.client.PatchSet.Id psId ) throws com.google.gwtorm.server.OrmException { return changeDataFactory.create ( db , project , psId.getParentKey ( ) ) . patchSet ( psId ) ; }
Source:
void addLabel ( final java.lang.String token ) { com.google.gerrit.server.util.LabelVote v = com.google.gerrit.server.util.LabelVote.parseWithEquals ( token ) ; com.google.gerrit.common.data.LabelType.checkName ( v.getLabel ( ) ) ; customLabels.put ( v.getLabel ( ) , v.getValue ( ) ) ; }

Target:
void addLabel ( final java.lang.String token ) { com.google.gerrit.server.util.LabelVote v = com.google.gerrit.server.util.LabelVote.parseWithEquals ( token ) ; com.google.gerrit.common.data.LabelType.checkName ( v.label ( ) ) ; customLabels.put ( v.label ( ) , v.value ( ) ) ; }
Source:
private final native net.codemirror.lib.LineCharacter setCh ( int ch ) ;

Target:
public final native void setCh ( int ch ) ;
Source:
public static void setBackground ( android.view.View view , android.graphics.drawable.Drawable drawable ) { view.setBackgroundDrawable ( drawable ) ; }

Target:
public static void setBackground ( android.view.View view , android.graphics.drawable.Drawable drawable ) { view.setBackground ( drawable ) ; }
Source:
public static void putMessage ( int id , java.lang.String m , com.google.gerrit.client.rpc.GerritCallback < com.google.gerrit.client.VoidResult > cb ) { com.google.gerrit.client.changes.ChangeEditApi.editMessage ( id ) . put ( m , cb ) ; }

Target:
public static void putMessage ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , java.lang.String m , com.google.gerrit.client.rpc.GerritCallback < com.google.gerrit.client.VoidResult > cb ) { com.google.gerrit.client.changes.ChangeEditApi.editMessage ( project , id ) . put ( m , cb ) ; }
Source:
public java.util.Set < java.lang.String > getNames ( ) { return cfg.getNames ( com.google.gerrit.server.config.PluginConfig.PLUGIN , pluginName ) ; }

Target:
public java.util.Set < java.lang.String > getNames ( ) { return cfg.getNames ( com.google.gerrit.server.config.PluginConfig.PLUGIN , pluginName , true ) ; }
Source:
public void consume ( ) throws java.io.IOException , java.lang.IllegalStateException { java.io.Reader reader = getReader ( ) ; if ( reader != null ) { while ( ( reader.read ( ) ) != ( - 1 ) ) ; } }

Target:
public void consume ( ) throws java.io.IOException , java.lang.IllegalStateException { java.io.Reader reader = getReader ( ) ; if ( reader != null ) { while ( ( reader.read ( ) ) != ( - 1 ) ) { } } }
Source:
public void setUserAccountId ( com.google.gerrit.reviewdb.client.Account.Id id ) { key = new com.google.gerrit.httpd.WebSessionManager.Key ( ( "id:" + id ) ) ; val = new com.google.gerrit.httpd.WebSessionManager.Val ( id , 0 , false , null , "" ) ; }

Target:
public void setUserAccountId ( com.google.gerrit.reviewdb.client.Account.Id id ) { key = new com.google.gerrit.httpd.WebSessionManager.Key ( ( "id:" + id ) ) ; val = new com.google.gerrit.httpd.WebSessionManager.Val ( id , 0 , false , null , "" , 0 ) ; }
Source:
public java.lang.String commitMessage ( ) throws com.google.gerrit.server.project.NoSuchChangeException , com.google.gwtorm.server.OrmException , java.io.IOException { if ( ( commitMessage ) == null ) { loadCommitData ( ) ; } return commitMessage ; }

Target:
public java.lang.String commitMessage ( ) throws com.google.gwtorm.server.OrmException , java.io.IOException { if ( ( commitMessage ) == null ) { if ( ! ( loadCommitData ( ) ) ) { return null ; } } return commitMessage ; }
Source:
protected static com.google.gerrit.server.group.db.AuditLogFormatter getAuditLogFormatter ( ) { return new com.google.gerrit.server.group.db.AuditLogFormatter ( com.google.gerrit.server.group.db.AbstractGroupTest :: getAccount , com.google.gerrit.server.group.db.AbstractGroupTest :: getGroup , com.google.gerrit.server.group.db.AbstractGroupTest.SERVER_ID ) ; }

Target:
protected static com.google.gerrit.server.group.db.AuditLogFormatter getAuditLogFormatter ( ) { return com.google.gerrit.server.group.db.AuditLogFormatter.create ( com.google.gerrit.server.group.db.AbstractGroupTest :: getAccount , com.google.gerrit.server.group.db.AbstractGroupTest :: getGroup , com.google.gerrit.server.group.db.AbstractGroupTest.SERVER_ID ) ; }
Source:
public static com.google.gerrit.client.GitwebLink getGitwebLink ( ) { com.google.gerrit.common.data.GitwebConfig gw = com.google.gerrit.client.Gerrit.getConfig ( ) . getGitwebLink ( ) ; return gw != null ? new com.google.gerrit.client.GitwebLink ( gw ) : null ; }

Target:
public static com.google.gerrit.client.GitwebLink getGitwebLink ( ) { com.google.gerrit.common.data.GitwebConfig gw = com.google.gerrit.client.Gerrit.getConfig ( ) . getGitwebLink ( ) ; return ( gw != null ) && ( ( gw.type ) != null ) ? new com.google.gerrit.client.GitwebLink ( gw ) : null ; }
Source:
private boolean isStarred ( final com.google.gerrit.reviewdb.Change ac ) { return control.getCurrentUser ( ) . getStarredChanges ( ) . contains ( ac.getId ( ) ) ; }

Target:
private boolean isStarred ( final com.google.gerrit.reviewdb.client.Change ac ) { return control.getCurrentUser ( ) . getStarredChanges ( ) . contains ( ac.getId ( ) ) ; }
Source:
public java.lang.String getImageUrl ( ) { return ( "plugins/" + ( pluginName ) ) + "/static/readme.png" ; }

Target:
private java.lang.String getImageUrl ( ) { return ( "plugins/" + ( pluginName ) ) + "/static/readme.png" ; }
Source:
private boolean canUpload ( ) { return ( projectControl.controlForRef ( ( "refs/for/" + ( refName ) ) ) . canPerform ( Permission.PUSH ) ) && ( getProjectControl ( ) . getProject ( ) . getState ( ) . permitsWrite ( ) ) ; }

Target:
private boolean canUpload ( ) { return projectControl.controlForRef ( ( "refs/for/" + ( refName ) ) ) . canPerform ( Permission.PUSH ) ; }