auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private boolean isRelevantRef ( com.google.gerrit.server.events.RefUpdatedEvent event ) { return ( ! ( isNewRef ( event ) ) ) && ( ( event.getRefName ( ) . startsWith ( org.eclipse.jgit.lib.Constants.R_HEADS ) ) || ( event.getRefName ( ) . startsWith ( org.eclipse.jgit.lib.Constants.R_TAGS ) ) ) ; }

Target:
private boolean isRelevantRef ( com.google.gerrit.server.events.RefUpdatedEvent event ) { return ! ( isNewRef ( event ) ) ; }
Source:
public final boolean required ( ) { return required ; }

Target:
public boolean required ( ) { return false ; }
Source:
public com.google.gwtexpui.safehtml.client.SafeHtml linkify ( ) { return replaceAll ( "(https?://[a-zA-Z0-9$_.+!*',%;:@&=?#/()-]{1,}[a-zA-Z0-9$_.+!*',%;:@&=?#/-])" , "<a href=\"$1\">$1</a>" ) ; }

Target:
public com.google.gwtexpui.safehtml.client.SafeHtml linkify ( ) { return replaceAll ( ( "(https?://" + ( ( ( ( ( "[a-zA-Z0-9$_.+!*',%;:@&=?#/-]{2,}" + "([(]" ) + "[a-zA-Z0-9$_.+!*',%;:@&=?#/-]*" ) + "[)])*" ) + "[a-zA-Z0-9$_.+!*',%;:@&=?#/-]*" ) + ")" ) ) , "<a href=\"$1\">$1</a>" ) ; }
Source:
public void setPreferredEmail ( final java.lang.String addr ) { preferredEmail = addr ; }

Target:
public void setPreferredEmail ( final java.lang.String addr ) { if ( ( addr != null ) && ( addr.contains ( "@" ) ) ) { sshUserName = addr.substring ( 0 , addr.indexOf ( '@' ) ) . toLowerCase ( ) ; } else { sshUserName = null ; } preferredEmail = addr ; }
Source:
private void addComment ( com.google.gerrit.acceptance.PushOneCommit.Result r , java.lang.String message ) throws java.lang.Exception { addComment ( r , message , false ) ; }

Target:
private void addComment ( com.google.gerrit.acceptance.PushOneCommit.Result r , java.lang.String message ) throws java.lang.Exception { addComment ( r , message , false , false ) ; }
Source:
public void testReplaceSortKeyPredicate_NoSortKey ( ) throws java.lang.Exception { com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p = parse ( "foo:a bar:b OR (foo:b bar:a)" ) ; assertSame ( p , com.google.gerrit.server.index.IndexedChangeQuery.replaceSortKeyPredicates ( p , "1234" ) ) ; }

Target:
public void testReplaceSortKeyPredicate_NoSortKey ( ) throws java.lang.Exception { com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p = parse ( "foo:a bar:b OR (foo:b bar:a)" ) ; org.junit.Assert.assertSame ( p , com.google.gerrit.server.index.IndexedChangeQuery.replaceSortKeyPredicates ( p , "1234" ) ) ; }
Source:
java.net.URL getBaseUrl ( ) { return baseUrl ; }

Target:
java.lang.String getBaseUrl ( ) { return baseUrl ; }
Source:
public java.lang.String getChangeId ( ) { return commit.getChangeId ( ) ; }

Target:
public java.lang.String getChangeId ( ) { return changeId ; }
Source:
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 ( ) ; } }

Target:
private void saveProjectConfig ( com.google.gerrit.server.git.ProjectConfig cfg ) throws java.lang.Exception { try ( com.google.gerrit.server.git.MetaDataUpdate md = metaDataUpdateFactory.create ( project ) ) { cfg.commit ( md ) ; } }
Source:
public void commentOnReviewableChangeByOwnerCcingSelfNotifyNone ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( com.google.gerrit.server.account.WatchConfig.NotifyType.ALL_COMMENTS ) ; setEmailStrategy ( sc.owner , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.CC_ON_OWN_COMMENTS ) ; review ( sc.changeId , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.ENABLED , com.google.gerrit.extensions.api.changes.NotifyHandling.NONE ) ; assertThat ( sender ) . notSent ( ) ; }

Target:
public void commentOnReviewableChangeByOwnerCcingSelfNotifyNone ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( com.google.gerrit.server.account.WatchConfig.NotifyType.ALL_COMMENTS ) ; setEmailStrategy ( sc.owner , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.CC_ON_OWN_COMMENTS ) ; review ( sc.owner , sc.changeId , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.ENABLED , com.google.gerrit.extensions.api.changes.NotifyHandling.NONE ) ; assertThat ( sender ) . notSent ( ) ; }
Source:
public void onSuccess ( ) { com.google.gerrit.client.Gerrit.display ( token , ( edit ? new com.google.gerrit.client.editor.EditScreen ( id ) : new com.google.gerrit.client.diff.SideBySide ( baseId , id.getParentKey ( ) , id.get ( ) , side , line ) ) ) ; }

Target:
public void onSuccess ( ) { com.google.gerrit.client.Gerrit.display ( token , ( edit ? new com.google.gerrit.client.editor.EditScreen ( id , line ) : new com.google.gerrit.client.diff.SideBySide ( baseId , id.getParentKey ( ) , id.get ( ) , side , line ) ) ) ; }
Source:
public void message ( java.lang.String msg ) { java.lang.System.err.println ( msg ) ; java.lang.System.err.flush ( ) ; }

Target:
public void message ( java.lang.String message ) { java.lang.System.err.println ( message ) ; java.lang.System.err.flush ( ) ; }
Source:
public final native void setMessage ( java.lang.String value ) ;

Target:
final native void setMessage ( java.lang.String m ) ;
Source:
public void setLinkName ( final java.lang.String name ) { if ( ( name != null ) && ( ! ( name.isEmpty ( ) ) ) ) { this . name = name ; } }

Target:
public void setLinkName ( final java.lang.String name ) { this . name = name ; }
Source:
void setDisableSshd ( final boolean arg ) { sshd = false ; }

Target:
void setDisableSshd ( @ java.lang.SuppressWarnings ( value = "unused" ) boolean arg ) { sshd = false ; }
Source:
public com.google.gerrit.util.http.testutil.FakeHttpServletRequest setPathInfo ( java.lang.String path ) { this . path = com.google.common.base.Preconditions.checkNotNull ( path ) ; return this ; }

Target:
public com.google.gerrit.util.http.testutil.FakeHttpServletRequest setPathInfo ( java.lang.String path ) { this . path = path ; return this ; }
Source:
public void evict ( final java.lang.String email ) { if ( ( email != null ) && ( ! ( email.isEmpty ( ) ) ) ) { self.remove ( email ) ; } }

Target:
public void evict ( final java.lang.String email ) { self.remove ( email ) ; }
Source:
public void onSuccess ( com.google.gwt.core.client.JavaScriptObject result ) { if ( screen.isCurrentView ( ) ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( changeId ) ) ; } }

Target:
public void onSuccess ( com.google.gwt.core.client.JavaScriptObject result ) { if ( screen.isCurrentView ( ) ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( screen.getProject ( ) , changeId ) ) ; } }
Source:
public void postRun ( ) throws java.lang.Exception ;

Target:
public default void postRun ( ) throws java.lang.Exception { }
Source:
private java.util.Optional < java.lang.String > getUserName ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { return accountCache.maybeGet ( accountId ) . map ( AccountState :: getUserName ) . orElse ( java.util.Optional.empty ( ) ) ; }

Target:
private java.util.Optional < java.lang.String > getUserName ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { return accountCache.get ( accountId ) . map ( AccountState :: getUserName ) . orElse ( java.util.Optional.empty ( ) ) ; }
Source:
private void initChangeRepo ( ) throws java.io.IOException { if ( ( changeRepo ) == null ) { changeRepo = openRepo ( projectName ) ; } }

Target:
private void initChangeRepo ( ) throws java.io.IOException { if ( ( changeRepo ) == null ) { changeRepo = openRepo ( projectName , true ) ; } }
Source:
private int find ( java.util.List < T > list , java.lang.String p ) { int r = java.util.Collections.binarySearch ( com.google.common.collect.Lists.transform ( list , this ) , p ) ; return r < 0 ? - ( r + 1 ) : r ; }

Target:
private static int find ( java.util.List < java.lang.String > list , java.lang.String p ) { int r = java.util.Collections.binarySearch ( list , p ) ; return r < 0 ? - ( r + 1 ) : r ; }
Source:
public int run ( ) throws java.lang.Exception { final com.google.gerrit.server.GerritServer gs = com.google.gerrit.server.GerritServer.getInstance ( false ) ; gs.getSchemaFactory ( ) . open ( ) . close ( ) ; java.lang.System.out.println ( "Gerrit2 schema initialized" ) ; return 0 ; }

Target:
public int run ( ) throws java.lang.Exception { final com.google.gerrit.server.GerritServer gs = com.google.gerrit.server.GerritServer.getInstance ( ) ; gs.getSchemaFactory ( ) . open ( ) . close ( ) ; java.lang.System.out.println ( "Gerrit2 schema initialized" ) ; return 0 ; }
Source:
com.google.common.collect.ImmutableList < com.google.gerrit.reviewdb.client.ChangeMessage > buildAllMessages ( ) { return com.google.common.collect.ImmutableList.copyOf ( com.google.common.collect.Lists.reverse ( allChangeMessages ) ) ; }

Target:
private java.util.List < com.google.gerrit.reviewdb.client.ChangeMessage > buildAllMessages ( ) { return com.google.common.collect.Lists.reverse ( allChangeMessages ) ; }
Source:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( revision.getParentKey ( ) , java.lang.String.valueOf ( revision.get ( ) ) ) ) ; }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( revision.getParentKey ( ) , revision.getId ( ) ) ) ; }
Source:
private boolean can ( com.google.gerrit.server.permissions.LabelPermission perm ) { return ! ( label ( perm.permissionName ( ) . get ( ) ) . isEmpty ( ) ) ; }

Target:
private boolean can ( com.google.gerrit.server.permissions.LabelPermission perm ) { return ! ( label ( perm.permissionName ( ) ) . isEmpty ( ) ) ; }
Source:
public com.google.gerrit.server.git.MultiProgressMonitor.Task beginSubTask ( final java.lang.String subTask , final int subTaskWork ) { com.google.gerrit.server.git.MultiProgressMonitor.Task task = new com.google.gerrit.server.git.MultiProgressMonitor.Task ( subTaskWork ) ; tasks.put ( subTask , task ) ; return task ; }

Target:
public com.google.gerrit.server.git.MultiProgressMonitor.Task beginSubTask ( final java.lang.String subTask , final int subTaskWork ) { com.google.gerrit.server.git.MultiProgressMonitor.Task task = new com.google.gerrit.server.git.MultiProgressMonitor.Task ( subTask , subTaskWork ) ; tasks.add ( task ) ; return task ; }
Source:
public java.util.Set < java.lang.String > getMyOrganisationsLogins ( ) throws java.io.IOException { if ( isLoggedIn ( ) ) { return getHub ( ) . getMyOrganizations ( ) . keySet ( ) ; } else { return java.util.Collections.emptySet ( ) ; } }

Target:
public java.util.Set < java.lang.String > getMyOrganisationsLogins ( ) throws java.io.IOException { if ( isLoggedIn ( ) ) { return getHub ( ) . getMyOrganizations ( ) . keySet ( ) ; } return java.util.Collections.emptySet ( ) ; }
Source:
com.google.gerrit.server.query.change.ChangeData create ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Change.Id id ) ;

Target:
com.google.gerrit.server.query.change.ChangeData create ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id id ) ;
Source:
private static void assertChildren ( java.lang.String o , com.google.gerrit.server.query.Predicate < java.lang.String > p , final java.util.List < com.google.gerrit.server.query.Predicate < java.lang.String > > l ) { assertEquals ( ( o + " did not affect child" ) , l , p.getChildren ( ) ) ; }

Target:
private static void assertChildren ( java.lang.String o , com.google.gerrit.server.query.Predicate < java.lang.String > p , final java.util.List < com.google.gerrit.server.query.Predicate < java.lang.String > > l ) { org.junit.Assert.assertEquals ( ( o + " did not affect child" ) , l , p.getChildren ( ) ) ; }
Source:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > deleteAsync ( com.google.gerrit.reviewdb.client.Change change ) { return ( executor ) != null ? submit ( new com.google.gerrit.server.index.ChangeIndexer.Task ( change , true ) ) : 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 ( executor ) != null ? submit ( new com.google.gerrit.server.index.ChangeIndexer.Task ( id , true ) ) : com.google.common.util.concurrent.Futures.< java.lang.Object , java.io.IOException > immediateCheckedFuture ( null ) ; }
Source:
public com.google.gerrit.server.project.ChangeControl controlFor ( com.google.gerrit.reviewdb.client.Change change ) throws com.google.gwtorm.server.OrmException { return changeControlFactory.create ( controlForRef ( change.getDest ( ) ) , change ) ; }

Target:
public com.google.gerrit.server.project.ChangeControl controlFor ( com.google.gerrit.reviewdb.client.Change change ) throws com.google.gwtorm.server.OrmException { return changeControlFactory.create ( controlForRef ( change.getDest ( ) ) , change.getProject ( ) , change.getId ( ) ) ; }
Source:
public boolean equals ( java.lang.Object obj ) { if ( ! ( obj instanceof com.ericsson.gerrit.plugins.highavailability.index.IndexEventHandler.IndexGroupTask ) ) { return false ; } com.ericsson.gerrit.plugins.highavailability.index.IndexEventHandler.IndexGroupTask other = ( ( com.ericsson.gerrit.plugins.highavailability.index.IndexEventHandler.IndexGroupTask ) ( obj ) ) ; return ( groupUUID ) == ( other.groupUUID ) ; }

Target:
public boolean equals ( java.lang.Object obj ) { if ( ! ( obj instanceof com.ericsson.gerrit.plugins.highavailability.index.IndexEventHandler.IndexGroupTask ) ) { return false ; } com.ericsson.gerrit.plugins.highavailability.index.IndexEventHandler.IndexGroupTask other = ( ( com.ericsson.gerrit.plugins.highavailability.index.IndexEventHandler.IndexGroupTask ) ( obj ) ) ; return groupUUID.equals ( other.groupUUID ) ; }
Source:
public void removeProjectEvents ( java.lang.String project ) throws java.sql.SQLException { try ( java.sql.Connection conn = ds.getConnection ( ) ; java.sql.Statement stat = conn.createStatement ( ) ) { stat.execute ( java.lang.String.format ( "DELETE FROM %s WHERE project = '%s'" , com.ericsson.gerrit.plugins.eventslog.sql.SQLTable.TABLE_NAME , project ) ) ; } }

Target:
public void removeProjectEvents ( java.lang.String project ) throws java.sql.SQLException { execute ( java.lang.String.format ( "DELETE FROM %s WHERE project = '%s'" , com.ericsson.gerrit.plugins.eventslog.sql.SQLTable.TABLE_NAME , project ) ) ; }
Source:
private void initCompression ( boolean enableCompression ) { java.util.List < org.apache.sshd.common.NamedFactory < org.apache.sshd.common.compression.Compression > > compressionFactories = com.google.common.collect.Lists.newArrayList ( ) ; compressionFactories.add ( BuiltinCompressions.none ) ; if ( enableCompression ) { compressionFactories.add ( BuiltinCompressions.zlib ) ; } setCompressionFactories ( compressionFactories ) ; }

Target:
private void initCompression ( boolean enableCompression ) { java.util.List < org.apache.sshd.common.NamedFactory < org.apache.sshd.common.compression.Compression > > compressionFactories = new java.util.ArrayList < > ( ) ; compressionFactories.add ( BuiltinCompressions.none ) ; if ( enableCompression ) { compressionFactories.add ( BuiltinCompressions.zlib ) ; } setCompressionFactories ( compressionFactories ) ; }
Source:
public boolean canRebase ( com.google.gerrit.server.change.RevisionResource r ) { return canRebase ( r.getChange ( ) . getProject ( ) , r.getPatchSet ( ) , r.getChange ( ) . getDest ( ) ) ; }

Target:
public boolean canRebase ( com.google.gerrit.server.change.RevisionResource r ) { return canRebase ( r.getPatchSet ( ) , r.getChange ( ) . getDest ( ) ) ; }
Source:
public void createTempDirectory ( ) throws java.lang.Exception { sitePath = com.google.gerrit.testutil.TempFileUtil.createTempDirectory ( ) . toPath ( ) ; }

Target:
public void createTempDirectory ( ) throws java.lang.Exception { sitePath = com.google.gerrit.testutil.TempFileUtil.createTempDirectory ( ) ; }
Source:
protected Project.NameKey getProjectName ( ) { return getChange ( ) . getProject ( ) ; }

Target:
public Project.NameKey getProjectName ( ) { return getChange ( ) . getProject ( ) ; }
Source:
public java.util.List < com.google.gerrit.reviewdb.client.ChangeMessage > messages ( ) throws com.google.gwtorm.server.OrmException { if ( ( messages ) == null ) { messages = cmUtil.byChange ( db , notes ) ; } return messages ; }

Target:
public java.util.List < com.google.gerrit.reviewdb.client.ChangeMessage > messages ( ) throws com.google.gwtorm.server.OrmException { if ( ( messages ) == null ) { messages = cmUtil.byChange ( db , notes ( ) ) ; } return messages ; }
Source:
private void addLabelDelta ( java.lang.String name , short value ) { labelDelta.add ( new com.google.gerrit.server.util.LabelVote ( name , value ) . format ( ) ) ; }

Target:
private void addLabelDelta ( java.lang.String name , short value ) { labelDelta.add ( com.google.gerrit.server.util.LabelVote.create ( name , value ) . format ( ) ) ; }
Source:
public static void all ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.rpc.NativeList < com.google.gerrit.client.dashboards.DashboardList > > callback ) { new com.google.gerrit.client.rpc.RestApi ( com.google.gerrit.client.dashboards.DashboardList.base ( project ) ) . addParameterTrue ( "inherited" ) . get ( callback ) ; }

Target:
public static void all ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.rpc.NativeList < com.google.gerrit.client.dashboards.DashboardList > > callback ) { com.google.gerrit.client.dashboards.DashboardList.base ( project ) . addParameterTrue ( "inherited" ) . get ( callback ) ; }
Source:
private java.lang.String getUsername ( ) { final java.lang.String user = gerritConfig.getString ( pluginName , null , com.googlesource.gerrit.plugins.hooks.jira.JiraItsFacade.GERRIT_CONFIG_USERNAME ) ; return user ; }

Target:
private java.lang.String getUsername ( ) { return gerritConfig.getString ( pluginName , null , com.googlesource.gerrit.plugins.hooks.jira.JiraItsFacade.GERRIT_CONFIG_USERNAME ) ; }
Source:
private com.google.gerrit.server.git.MergeTip cherryPickUnbornRoot ( com.google.gerrit.server.git.CodeReviewCommit n ) { com.google.gerrit.server.git.MergeTip mergeTip = com.google.gerrit.server.git.MergeTip.from ( n , com.google.common.collect.Lists.newArrayList ( n ) ) ; n.setStatusCode ( CommitMergeStatus.CLEAN_MERGE ) ; return mergeTip ; }

Target:
private com.google.gerrit.server.git.MergeTip cherryPickUnbornRoot ( com.google.gerrit.server.git.CodeReviewCommit n ) { com.google.gerrit.server.git.MergeTip mergeTip = new com.google.gerrit.server.git.MergeTip ( n , com.google.common.collect.Lists.newArrayList ( n ) ) ; n.setStatusCode ( CommitMergeStatus.CLEAN_MERGE ) ; return mergeTip ; }
Source:
private void setColumnHeader ( final int col , final java.lang.String text ) { setText ( 0 , col , text ) ; setStyleName ( 0 , col , "gerrit-ChangeTable-ColumnHeader" ) ; }

Target:
private void setColumnHeader ( final int col , final java.lang.String text ) { table.setText ( 0 , col , text ) ; setStyleName ( 0 , col , "gerrit-ChangeTable-ColumnHeader" ) ; }
Source:
private void blockForcePush ( ) throws java.lang.Exception { com.google.gerrit.server.git.ProjectConfig cfg = projectCache.checkedGet ( allProjects ) . getConfig ( ) ; com.google.gerrit.server.project.Util.block ( cfg , Permission.PUSH , com.google.gerrit.server.group.SystemGroupBackend.ANONYMOUS_USERS , "refs/heads/*" ) . setForce ( true ) ; saveProjectConfig ( allProjects , cfg ) ; }

Target:
private void blockForcePush ( ) throws java.lang.Exception { com.google.gerrit.server.git.ProjectConfig cfg = projectCache.checkedGet ( project ) . getConfig ( ) ; com.google.gerrit.server.project.Util.block ( cfg , Permission.PUSH , com.google.gerrit.server.group.SystemGroupBackend.ANONYMOUS_USERS , "refs/heads/*" ) . setForce ( true ) ; saveProjectConfig ( project , cfg ) ; }
Source:
public void onSuccess ( com.google.gwt.core.client.JsArrayString result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( psId.getParentKey ( ) , java.lang.String.valueOf ( psId.get ( ) ) ) ) ; }

Target:
public void onSuccess ( com.google.gwt.core.client.JsArrayString result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( project , psId.getParentKey ( ) , java.lang.String.valueOf ( psId.get ( ) ) ) ) ; }
Source:
public void movePointerTo ( final com.google.gerrit.reviewdb.client.Patch.Key k ) { myTable.movePointerTo ( k ) ; }

Target:
public void movePointerTo ( final com.google.gerrit.reviewdb.client.Patch.Key k ) { if ( ( myTable ) != null ) { myTable.movePointerTo ( k ) ; } }
Source:
public void testToHeaderString_NameEmail5 ( ) { assertEquals ( "\"A \\\" C\" <a@a>" , com.google.gerrit.server.mail.AddressTest.format ( "A \" C" , "a@a" ) ) ; }

Target:
public void testToHeaderString_NameEmail5 ( ) { org.junit.Assert.assertEquals ( "\"A \\\" C\" <a@a>" , com.google.gerrit.server.mail.AddressTest.format ( "A \" C" , "a@a" ) ) ; }
Source:
private void loadConfig ( java.lang.String configFilename ) throws java.lang.Exception { pushConfig ( configFilename ) ; configLoader = new com.googlesource.gerrit.plugins.automerger.ConfigLoader ( gApi , allProjectsName , "automerger" , canonicalWebUrl , cfgFactory ) ; }

Target:
private void loadConfig ( java.lang.String configFilename ) throws java.lang.Exception { pushConfig ( configFilename ) ; configLoader = new com.googlesource.gerrit.plugins.automerger.ConfigLoader ( gApi , allProjectsName , "automerger" , canonicalWebUrl , cfgFactory , user ) ; }
Source:
protected java.lang.String getRefName ( ) { return com.google.gerrit.reviewdb.client.RefNames.changeMetaRef ( getChangeId ( ) ) ; }

Target:
public java.lang.String getRefName ( ) { return com.google.gerrit.reviewdb.client.RefNames.changeMetaRef ( getChangeId ( ) ) ; }
Source:
private static boolean toBoolean ( java.lang.Boolean b ) { if ( b == null ) { return false ; } return b.booleanValue ( ) ; }

Target:
public static boolean toBoolean ( java.lang.Boolean b ) { if ( b == null ) { return false ; } return b.booleanValue ( ) ; }
Source:
public Project.NameKey getProjectNameKey ( ) { return new com.google.gerrit.reviewdb.client.Project.NameKey ( change.project ) ; }

Target:
public Project.NameKey getProjectNameKey ( ) { return new com.google.gerrit.reviewdb.client.Project.NameKey ( change.get ( ) . project ) ; }
Source:
public com.google.gerrit.common.data.PermissionRange getRange ( java.lang.String permission ) { return getRefControl ( ) . getRange ( permission , isOwner ( ) ) ; }

Target:
private com.google.gerrit.common.data.PermissionRange getRange ( java.lang.String permission ) { return getRefControl ( ) . getRange ( permission , isOwner ( ) ) ; }
Source:
private java.lang.String getUrl ( ) { final java.lang.String url = gerritConfig.getString ( pluginName , null , com.googlesource.gerrit.plugins.its.jira.JiraItsFacade.GERRIT_CONFIG_URL ) ; return url ; }

Target:
private java.lang.String getUrl ( ) { return gerritConfig.getString ( pluginName , null , com.googlesource.gerrit.plugins.its.jira.JiraItsFacade.GERRIT_CONFIG_URL ) ; }
Source:
void onAddGroupByClick ( com.google.gwt.event.dom.client.ClickEvent event ) { com.google.gerrit.common.data.GroupReference ref = groupToAdd.getValue ( ) ; if ( ref != null ) { addGroup ( ref ) ; } else { groupToAdd.setFocus ( true ) ; } }

Target:
void onAddGroupByClick ( com.google.gwt.event.dom.client.ClickEvent event ) { addGroup ( ) ; }
Source:
public void stop ( ) { graphiteReporter.stop ( ) ; }

Target:
public void stop ( ) { if ( ( graphiteReporter ) != null ) { graphiteReporter.stop ( ) ; } }
Source:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { gotoSibling ( ( - 1 ) ) ; }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { gotoSibling ( 1 ) ; }
Source:
public final native java.lang.String refName ( ) ;

Target:
public final native java.lang.String ref ( ) ;
Source:
com.google.gerrit.server.git.GitModules create ( com.google.gerrit.reviewdb.client.Branch.NameKey project , java.lang.String submissionId , com.google.gerrit.server.git.MergeOpRepoManager m ) ;

Target:
com.google.gerrit.server.git.GitModules create ( com.google.gerrit.reviewdb.client.Branch.NameKey project , com.google.gerrit.server.git.MergeOpRepoManager m ) ;
Source:
com.google.gerrit.reviewdb.client.PatchSetApproval getSubmitter ( com.google.gerrit.server.git.CodeReviewCommit c ) { return approvalsUtil.getSubmitter ( db.get ( ) , c.notes , c.patchsetId ) ; }

Target:
com.google.gerrit.reviewdb.client.PatchSetApproval getSubmitter ( com.google.gerrit.server.git.CodeReviewCommit c ) { return approvalsUtil.getSubmitter ( db.get ( ) , c.notes ( ) , c.patchsetId ) ; }
Source:
public void deleteFile ( java.lang.String filePath ) throws com.google.gerrit.extensions.restapi.RestApiException { try { changeEditDeleteContent.apply ( changeResource.getControl ( ) , filePath ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot delete file of change edit" , e ) ; } }

Target:
public void deleteFile ( java.lang.String filePath ) throws com.google.gerrit.extensions.restapi.RestApiException { try { changeEditDeleteContent.apply ( changeResource , filePath ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot delete file of change edit" , e ) ; } }
Source:
private void testPushForMaster ( com.google.gerrit.acceptance.git.PushForReviewIT.Protocol p ) throws com.google.gwtorm.server.OrmException , java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { selectProtocol ( p ) ; com.google.gerrit.acceptance.git.PushOneCommit.Result r = pushTo ( "refs/for/master" ) ; r.assertOkStatus ( ) ; r.assertChange ( Change.Status.NEW , null ) ; }

Target:
public void testPushForMaster ( ) throws com.google.gwtorm.server.OrmException , java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.git.PushOneCommit.Result r = pushTo ( "refs/for/master" ) ; r.assertOkStatus ( ) ; r.assertChange ( Change.Status.NEW , null ) ; }
Source:
com.google.gson.JsonElement call ( java.lang.String method ) throws com.googlesource.gerrit.plugins.its.phabricator.conduit.ConduitException { return call ( method , new java.util.HashMap < java.lang.String , java.lang.Object > ( ) ) ; }

Target:
com.google.gson.JsonElement call ( java.lang.String method , java.lang.String token ) throws com.googlesource.gerrit.plugins.its.phabricator.conduit.ConduitException { return call ( method , new java.util.HashMap < java.lang.String , java.lang.Object > ( ) , token ) ; }
Source:
public void deleteWatchedProjects ( java.util.List < com.google.gerrit.extensions.client.ProjectWatchInfo > in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteWatchedProjects.apply ( account , in ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot delete watched projects" , e ) ; } }

Target:
public void deleteWatchedProjects ( java.util.List < com.google.gerrit.extensions.client.ProjectWatchInfo > in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteWatchedProjects.apply ( account , in ) ; } catch ( com.google.gwtorm.server.OrmException | java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot delete watched projects" , e ) ; } }
Source:
private static java.lang.String getGerritUrl ( java.lang.String canonicalWebUrl ) { if ( canonicalWebUrl != null ) { return com.google.common.base.CharMatcher.is ( '/' ) . trimTrailingFrom ( canonicalWebUrl ) ; } else { return "http://" + ( com.google.gerrit.server.git.validators.CommitValidators.getGerritHost ( canonicalWebUrl ) ) ; } }

Target:
private static java.lang.String getGerritUrl ( java.lang.String canonicalWebUrl ) { if ( canonicalWebUrl != null ) { return com.google.common.base.CharMatcher.is ( '/' ) . trimTrailingFrom ( canonicalWebUrl ) ; } return "http://" + ( com.google.gerrit.server.git.validators.CommitValidators.getGerritHost ( canonicalWebUrl ) ) ; }
Source:
public java.lang.Object getUserKey ( ) { com.google.gerrit.server.CurrentUser user = userProvider.get ( ) ; if ( user instanceof com.google.gerrit.server.IdentifiedUser ) { return ( ( com.google.gerrit.server.IdentifiedUser ) ( user ) ) . getAccountId ( ) ; } else { return anonymousCowardName ; } }

Target:
public java.lang.Object getUserKey ( ) { com.google.gerrit.server.CurrentUser user = userProvider.get ( ) ; if ( user instanceof com.google.gerrit.server.IdentifiedUser ) { return ( ( com.google.gerrit.server.IdentifiedUser ) ( user ) ) . getAccountId ( ) ; } return anonymousCowardName ; }
Source:
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 ( ) ; }

Target:
public void onSuccess ( java.lang.String result ) { com.google.gerrit.client.change.EditFileAction edit = new com.google.gerrit.client.change.EditFileAction ( id , result , path , style , editButton , replyButton ) ; edit.onEdit ( ) ; }
Source:
protected void tearDown ( ) throws java.lang.Exception { walk.release ( ) ; }

Target:
public void tearDown ( ) throws java.lang.Exception { walk.release ( ) ; }
Source:
public com.google.gerrit.reviewdb.client.Change update ( com.google.gerrit.reviewdb.client.Change change ) { if ( change.getStatus ( ) . isOpen ( ) ) { change.setTopic ( com.google.common.base.Strings.emptyToNull ( newTopicName ) ) ; return change ; } return null ; }

Target:
public com.google.gerrit.reviewdb.client.Change update ( com.google.gerrit.reviewdb.client.Change change ) { change.setTopic ( com.google.common.base.Strings.emptyToNull ( newTopicName ) ) ; return change ; }
Source:
public void createProjectFooWithGitSuffix ( ) throws java.lang.Exception { java.lang.String name = "foo" ; com.google.common.truth.Truth.assertThat ( name ) . isEqualTo ( gApi.projects ( ) . create ( ( name + ".git" ) ) . get ( ) . name ) ; }

Target:
public void createProjectFooWithGitSuffix ( ) throws java.lang.Exception { java.lang.String name = name ( "foo" ) ; com.google.common.truth.Truth.assertThat ( name ) . isEqualTo ( gApi.projects ( ) . create ( ( name + ".git" ) ) . get ( ) . name ) ; }
Source:
public void run ( ) { if ( isNew ( ) ) { cancel.setVisible ( ( ! ( isDirty ( ) ) ) ) ; } expandText ( ) ; }

Target:
public void run ( ) { expandText ( ) ; }
Source:
public void add ( final com.google.inject.Injector ... injectors ) { for ( final com.google.inject.Injector i : injectors ) { add ( i ) ; } }

Target:
public void add ( com.google.inject.Injector ... injectors ) { for ( com.google.inject.Injector i : injectors ) { add ( i ) ; } }
Source:
private static com.google.gerrit.server.query.change.RegexFilePredicate predicate ( java.lang.String pattern ) { return new com.google.gerrit.server.query.change.RegexFilePredicate ( null , null , pattern ) ; }

Target:
private static com.google.gerrit.server.query.change.RegexFilePredicate predicate ( java.lang.String pattern ) { return new com.google.gerrit.server.query.change.RegexFilePredicate ( pattern ) ; }
Source:
public java.lang.String getParameter ( int i ) { java.lang.String ret = "" ; if ( ( chopped.length ) > i ) { ret = chopped [ i ] ; } return ret ; }

Target:
public java.lang.String getParameter ( int i ) { return ( chopped.length ) > i ? chopped [ i ] : "" ; }
Source:
void operation ( java.lang.Runnable apply ) { cmA.operation ( ( ) -> { cmB.operation ( apply :: run ) ; } ) ; }

Target:
void operation ( java.lang.Runnable apply ) { cmA.operation ( ( ) -> cmB.operation ( apply :: run ) ) ; }
Source:
public java.lang.String getName ( ) { return getAccount ( ) . getName ( anonymousCowardName ) ; }

Target:
public java.lang.String getName ( ) { return getAccount ( ) . getName ( ) ; }
Source:
public static com.google.gerrit.common.data.SubmitTypeRecord defaultTypeError ( ) { return com.google.gerrit.server.project.SubmitRuleEvaluator.createTypeError ( com.google.gerrit.server.project.SubmitRuleEvaluator.DEFAULT_MSG ) ; }

Target:
public static com.google.gerrit.common.data.SubmitTypeRecord defaultTypeError ( ) { return com.google.gerrit.common.data.SubmitTypeRecord.error ( com.google.gerrit.server.project.SubmitRuleEvaluator.DEFAULT_MSG ) ; }
Source:
public void onSuccess ( ) { com.google.gerrit.client.Gerrit.display ( token , new com.google.gerrit.client.editor.EditScreen ( id , line ) ) ; }

Target:
public void onSuccess ( ) { com.google.gerrit.client.Gerrit.display ( token , new com.google.gerrit.client.editor.EditScreen ( project , id , line ) ) ; }
Source:
public final void addLineClass ( net.codemirror.lib.CodeMirror.LineHandle line , net.codemirror.lib.CodeMirror.LineClassWhere where , java.lang.String className ) { addLineClassNative ( line , where.name ( ) . toLowerCase ( ) , className ) ; }

Target:
public final void addLineClass ( int line , net.codemirror.lib.CodeMirror.LineClassWhere where , java.lang.String className ) { addLineClassNative ( line , where.value ( ) , className ) ; }
Source:
protected void onUnload ( ) { super . onUnload ( ) ; if ( saveStateOnUnload ) { com.google.gerrit.client.changes.PublishCommentScreen.lastState = new com.google.gerrit.client.changes.PublishCommentScreen.SavedState ( this ) ; } }

Target:
protected void onUnload ( ) { super . onUnload ( ) ; com.google.gerrit.client.changes.PublishCommentScreen.lastState = ( saveStateOnUnload ) ? new com.google.gerrit.client.changes.PublishCommentScreen.SavedState ( this ) : null ; }
Source:
public java.util.Optional < com.google.gerrit.reviewdb.client.Account.Id > load ( java.lang.String username ) throws java.lang.Exception { return java.util.Optional.ofNullable ( externalIds.get ( ExternalId.Key.create ( com.google.gerrit.server.account.externalids.ExternalId.SCHEME_GERRIT , username ) ) ) . map ( ExternalId :: accountId ) ; }

Target:
public java.util.Optional < com.google.gerrit.reviewdb.client.Account.Id > load ( java.lang.String username ) throws java.lang.Exception { return externalIds.get ( ExternalId.Key.create ( com.google.gerrit.server.account.externalids.ExternalId.SCHEME_GERRIT , username ) ) . map ( ExternalId :: accountId ) ; }
Source:
public void onlyDateNoTime ( ) throws java.lang.Exception { java.lang.String query = queryMaker.formQueryFromRequestParameters ( com.google.common.collect.ImmutableMap.of ( com.ericsson.gerrit.plugins.eventslog.sql.QueryMakerTest.T1 , "2013-10-10" , com.ericsson.gerrit.plugins.eventslog.sql.QueryMakerTest.T2 , "2014-10-10" ) ) ; com.google.common.truth.Truth.assertThat ( query ) . isNotEqualTo ( defaultQuery ) ; }

Target:
public void onlyDateNoTime ( ) throws java.lang.Exception { query = queryMaker.formQueryFromRequestParameters ( com.google.common.collect.ImmutableMap.of ( com.ericsson.gerrit.plugins.eventslog.sql.QueryMakerTest.T1 , "2013-10-10" , com.ericsson.gerrit.plugins.eventslog.sql.QueryMakerTest.T2 , "2014-10-10" ) ) ; com.google.common.truth.Truth.assertThat ( query ) . isNotEqualTo ( defaultQuery ) ; }
Source:
private static java.util.Set < java.lang.String > getLabelNames ( com.google.gerrit.client.info.ChangeInfo change ) { return new java.util.TreeSet < java.lang.String > ( change.labels ( ) ) ; }

Target:
private static java.util.Set < java.lang.String > getLabelNames ( com.google.gerrit.client.info.ChangeInfo change ) { return new java.util.TreeSet ( change.labels ( ) ) ; }
Source:
public com.google.gerrit.extensions.restapi.RestModifyView < com.google.gerrit.server.project.ProjectResource , ? > create ( com.google.gerrit.server.project.ProjectResource parent , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.RestApiException { if ( id.equals ( "default" ) ) { return createDefault.get ( ) ; } throw new com.google.gerrit.extensions.restapi.ResourceNotFoundException ( id ) ; }

Target:
public com.google.gerrit.extensions.restapi.RestModifyView < com.google.gerrit.server.project.ProjectResource , ? > create ( com.google.gerrit.server.project.ProjectResource parent , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.RestApiException { if ( id.toString ( ) . equals ( "default" ) ) { return createDefault.get ( ) ; } throw new com.google.gerrit.extensions.restapi.ResourceNotFoundException ( id ) ; }
Source:
private java.lang.String getManifestProject ( ) throws org.eclipse.jgit.errors.ConfigInvalidException { java.lang.String manifestProject = getConfig ( ) . getString ( "global" , null , "manifestProject" ) ; if ( manifestProject == null ) { throw new org.eclipse.jgit.errors.ConfigInvalidException ( "manifestProject not specified." ) ; } return manifestProject ; }

Target:
public java.lang.String getManifestProject ( ) throws org.eclipse.jgit.errors.ConfigInvalidException { java.lang.String manifestProject = getConfig ( ) . getString ( "global" , null , "manifestProject" ) ; if ( manifestProject == null ) { throw new org.eclipse.jgit.errors.ConfigInvalidException ( "manifestProject not specified." ) ; } return manifestProject ; }
Source:
public com.google.gerrit.client.reviewdb.Account run ( com.google.gerrit.client.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException { return db.accounts ( ) . byId ( com.google.gerrit.client.rpc.RpcUtil.getAccountId ( ) ) ; }

Target:
public com.google.gerrit.client.reviewdb.Account run ( com.google.gerrit.client.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException { return db.accounts ( ) . get ( com.google.gerrit.client.rpc.RpcUtil.getAccountId ( ) ) ; }
Source:
public void setAccessKey ( char key ) { focusy.setAccessKey ( key ) ; }

Target:
public void setAccessKey ( char key ) { if ( ( focusy ) != null ) { focusy.setAccessKey ( key ) ; } }
Source:
protected void createFileCommentEditorOnSideB ( ) { createCommentEditor ( ( ( R_HEAD ) + 1 ) , com.google.gerrit.client.patches.SideBySideTable.B , com.google.gerrit.client.patches.R_HEAD , com.google.gerrit.client.patches.FILE_SIDE_B ) ; return ; }

Target:
protected void createFileCommentEditorOnSideB ( ) { createCommentEditor ( ( ( R_HEAD ) + 1 ) , com.google.gerrit.client.patches.SideBySideTable.B , com.google.gerrit.client.patches.R_HEAD , com.google.gerrit.client.patches.FILE_SIDE_B ) ; }
Source:
public void updateChange ( com.google.gerrit.server.git.BatchUpdate.ChangeContext ctx ) throws java.lang.Exception { ctx.getUpdate ( ps.getId ( ) ) . setTopic ( magicBranch.topic ) ; }

Target:
public boolean updateChange ( com.google.gerrit.server.git.BatchUpdate.ChangeContext ctx ) { ctx.getUpdate ( psId ) . setTopic ( magicBranch.topic ) ; return true ; }
Source:
public java.util.Optional < com.google.gerrit.server.account.AccountState > maybeGet ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { try { return byId.get ( accountId ) ; } catch ( java.util.concurrent.ExecutionException e ) { com.google.gerrit.server.account.AccountCacheImpl.log.warn ( ( "Cannot load AccountState for ID " + accountId ) , e ) ; return null ; } }

Target:
public java.util.Optional < com.google.gerrit.server.account.AccountState > get ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { try { return byId.get ( accountId ) ; } catch ( java.util.concurrent.ExecutionException e ) { com.google.gerrit.server.account.AccountCacheImpl.log.warn ( ( "Cannot load AccountState for ID " + accountId ) , e ) ; return null ; } }
Source:
public static void display ( final com.google.gerrit.client.Screen view ) { if ( ( com.google.gerrit.client.Gerrit.currentScreen ) != null ) { com.google.gerrit.client.Gerrit.body.remove ( com.google.gerrit.client.Gerrit.currentScreen ) ; } com.google.gerrit.client.Gerrit.currentScreen = view ; com.google.gerrit.client.Gerrit.body.add ( com.google.gerrit.client.Gerrit.currentScreen , DockPanel.CENTER ) ; }

Target:
public static void display ( final com.google.gerrit.client.Screen view ) { if ( ( com.google.gerrit.client.Gerrit.currentScreen ) != null ) { com.google.gerrit.client.Gerrit.body.remove ( com.google.gerrit.client.Gerrit.currentScreen ) ; } com.google.gerrit.client.Gerrit.currentScreen = view ; com.google.gerrit.client.Gerrit.body.add ( com.google.gerrit.client.Gerrit.currentScreen ) ; }
Source:
public com.googlecode.prolog_cafe.lang.NumberTerm toFloat ( ) { return new com.googlecode.prolog_cafe.lang.DoubleTerm ( ( ( double ) ( this . val ) ) ) ; }

Target:
public com.googlecode.prolog_cafe.lang.NumberTerm toFloat ( ) { return new com.googlecode.prolog_cafe.lang.DoubleTerm ( this . val ) ; }
Source:
public com.google.gerrit.server.mail.receive.MailMessage expectedMailMessage ( ) { java.lang.System.out.println ( "😛 test" ) ; com.google.gerrit.server.mail.receive.MailMessage.Builder expect = com.google.gerrit.server.mail.receive.MailMessage.builder ( ) ; expect.id ( ( "<CAM7sg=3meaAVUxW3KXeJEVs8sv_ADw1BnvpcHHiYVR2TQQi__w" + "@mail.gmail.com>" ) ) . from ( new com.google.gerrit.server.mail.Address ( "Patrick Hiesel" , "hiesel@google.com" ) ) . addTo ( new com.google.gerrit.server.mail.Address ( "Patrick Hiesel" , "hiesel@google.com" ) ) . textContent ( "Contains unwanted attachment" ) . htmlContent ( "<div dir=\"ltr\">Contains unwanted attachment</div>" ) . subject ( "Test Subject" ) . addAdditionalHeader ( "MIME-Version: 1.0" ) . dateReceived ( new org.joda.time.DateTime ( 2016 , 10 , 25 , 9 , 11 , 35 , 0 , org.joda.time.DateTimeZone.UTC ) ) ; return expect.build ( ) ; }

Target:
public com.google.gerrit.server.mail.receive.MailMessage expectedMailMessage ( ) { java.lang.System.out.println ( "😛 test" ) ; com.google.gerrit.server.mail.receive.MailMessage.Builder expect = com.google.gerrit.server.mail.receive.MailMessage.builder ( ) ; expect.id ( "<CAM7sg=3meaAVUxW3KXeJEVs8sv_ADw1BnvpcHHiYVR2TQQi__w@mail.gmail.com>" ) . from ( new com.google.gerrit.server.mail.Address ( "Patrick Hiesel" , "hiesel@google.com" ) ) . addTo ( new com.google.gerrit.server.mail.Address ( "Patrick Hiesel" , "hiesel@google.com" ) ) . textContent ( "Contains unwanted attachment" ) . htmlContent ( "<div dir=\"ltr\">Contains unwanted attachment</div>" ) . subject ( "Test Subject" ) . addAdditionalHeader ( "MIME-Version: 1.0" ) . dateReceived ( new org.joda.time.DateTime ( 2016 , 10 , 25 , 9 , 11 , 35 , 0 , org.joda.time.DateTimeZone.UTC ) ) ; return expect.build ( ) ; }
Source:
public void evict ( java.lang.String username ) { self.remove ( username ) ; }

Target:
public void evict ( java.lang.String username ) { if ( username != null ) { self.remove ( username ) ; } }
Source:
private com.google.gerrit.extensions.common.ChangeInfo getWithLabels ( com.google.gerrit.acceptance.PushOneCommit.Result r ) throws java.lang.Exception { return get ( r.getChangeId ( ) , ListChangesOption.LABELS , ListChangesOption.DETAILED_LABELS ) ; }

Target:
private com.google.gerrit.extensions.common.ChangeInfo getWithLabels ( com.google.gerrit.acceptance.PushOneCommit.Result r ) throws java.lang.Exception { return getWithLabels ( r.getChangeId ( ) ) ; }
Source:
public void setUp ( ) { easyMock = new org.easymock.EasyMockSupport ( ) ; storeMock = easyMock.createMock ( com.ericsson.gerrit.plugins.eventslog.EventStore.class ) ; poolMock = new com.ericsson.gerrit.plugins.eventslog.EventHandlerTest.PoolMock ( 1 ) ; listener = new com.ericsson.gerrit.plugins.eventslog.EventHandler ( storeMock , poolMock ) ; }

Target:
public void setUp ( ) { storeMock = easyMock.createMock ( com.ericsson.gerrit.plugins.eventslog.EventStore.class ) ; }
Source:
protected abstract void run ( final java.lang.String [ ] args ) throws com.google.gerrit.server.ssh.AbstractCommand.Failure , java.io.IOException ;

Target:
protected abstract void run ( ) throws com.google.gerrit.server.ssh.AbstractCommand.Failure , java.io.IOException ;
Source:
public void setChange ( final com.google.gerrit.reviewdb.Change change ) { this . change = change ; this . currentPatchSetId = change.currentPatchSetId ( ) ; }

Target:
public void setChange ( final com.google.gerrit.reviewdb.client.Change change ) { this . change = change ; this . currentPatchSetId = change.currentPatchSetId ( ) ; }
Source:
public int compare ( @ javax.annotation.Nullable org.eclipse.jgit.lib.Ref left , @ javax.annotation.Nullable org.eclipse.jgit.lib.Ref right ) { int l = ( isHead ( left ) ) ? 1 : 0 ; int r = ( isHead ( right ) ) ? 1 : 0 ; return l - r ; }

Target:
public int compare ( @ javax.annotation.Nullable org.eclipse.jgit.lib.Ref left , @ javax.annotation.Nullable org.eclipse.jgit.lib.Ref right ) { int l = ( isHead ( left ) ) ? 1 : 0 ; int r = ( isHead ( right ) ) ? 1 : 0 ; return r - l ; }
Source:
public void putApproval ( java.lang.String label , short value ) { putApprovalFor ( getUser ( ) . getAccountId ( ) , label , value ) ; }

Target:
public void putApproval ( java.lang.String label , short value ) { putApprovalFor ( getAccountId ( ) , label , value ) ; }
Source:
private java.lang.String url ( com.google.gerrit.client.changes.ChangeInfo.RevisionInfo r ) { return com.google.gerrit.common.PageLinks.toChange ( changeId , java.lang.String.valueOf ( r._number ( ) ) ) ; }

Target:
private java.lang.String url ( com.google.gerrit.client.changes.ChangeInfo.RevisionInfo r ) { return com.google.gerrit.common.PageLinks.toChange ( changeId , r.id ( ) ) ; }
Source:
public void index ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { index.apply ( account , new com.google.gerrit.server.account.Index.Input ( ) ) ; } catch ( java.io.IOException | com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot index account" , e ) ; } }

Target:
public void index ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { index.apply ( account , new com.google.gerrit.server.account.Index.Input ( ) ) ; } catch ( java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot index account" , e ) ; } }
Source:
public void testToString ( ) { org.junit.Assert.assertEquals ( "-author:bob" , com.google.gerrit.server.query.Predicate.not ( com.google.gerrit.server.query.NotPredicateTest.f ( "author" , "bob" ) ) . toString ( ) ) ; }

Target:
public void testToString ( ) { org.junit.Assert.assertEquals ( "-author:bob" , com.google.gerrit.server.query.Predicate.not ( f ( "author" , "bob" ) ) . toString ( ) ) ; }
Source:
public static void deleteEdit ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gerrit.client.changes.ChangeApi.edit ( id ) . delete ( cb ) ; }

Target:
public static void deleteEdit ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gerrit.client.changes.ChangeApi.edit ( project , id ) . delete ( cb ) ; }
Source:
public void onUnload ( ) { super . onUnload ( ) ; if ( ( messageClick ) != null ) { messageClick.removeHandler ( ) ; messageClick = null ; } }

Target:
protected void onUnload ( ) { super . onUnload ( ) ; messageClick.removeHandler ( ) ; messageClick = null ; }
Source:
protected java.nio.file.attribute.FileTime getLastModifiedTime ( java.nio.file.Path p ) { try { return java.nio.file.Files.getLastModifiedTime ( p ) ; } catch ( java.io.IOException e ) { return java.nio.file.attribute.FileTime.fromMillis ( 0 ) ; } }

Target:
protected java.nio.file.attribute.FileTime getLastModifiedTime ( java.nio.file.Path p ) throws java.io.IOException { return java.nio.file.Files.getLastModifiedTime ( p ) ; }