auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void registerCacheUsageListener ( net.sf.ehcache.statistics.CacheUsageListener cacheUsageListener ) throws java.lang.IllegalStateException { self ( ) . registerCacheUsageListener ( cacheUsageListener ) ; }

Target:
public int getSizeBasedOnAccuracy ( int statisticsAccuracy ) throws java.lang.IllegalArgumentException , java.lang.IllegalStateException , net.sf.ehcache.CacheException { return self.getSizeBasedOnAccuracy ( statisticsAccuracy ) ; }
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 ) throws com.google.gerrit.server.query.QueryParseException { return rewrite.rewrite ( in , com.google.gerrit.server.index.change.IndexRewriterTest.options ( 0 , com.google.gerrit.common.data.GlobalCapability.DEFAULT_MAX_QUERY_LIMIT ) ) ; }

Target:
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 ) throws com.google.gerrit.server.query.QueryParseException { return rewrite.rewrite ( in , com.google.gerrit.server.index.change.ChangeIndexRewriterTest.options ( 0 , com.google.gerrit.common.data.GlobalCapability.DEFAULT_MAX_QUERY_LIMIT ) ) ; }
Source:
public void setVerifier ( java.lang.String reporter ) { this . verifier = reporter ; }

Target:
public void setReporter ( java.lang.String reporter ) { this . reporter = reporter ; }
Source:
public void suggestReviewersNoResult1 ( ) throws java.io.IOException , java.lang.Exception , org.eclipse.jgit.api.errors.GitAPIException { java.lang.String changeId = createChange ( admin ) ; java.util.List < com.google.gerrit.server.change.SuggestReviewers.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , "u" , 6 ) ; org.junit.Assert.assertEquals ( reviewers.size ( ) , 0 ) ; }

Target:
public void suggestReviewersNoResult3 ( ) throws java.io.IOException , java.lang.Exception , org.eclipse.jgit.api.errors.GitAPIException { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; java.util.List < com.google.gerrit.server.change.SuggestReviewers.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , "u" , 6 ) ; org.junit.Assert.assertEquals ( reviewers.size ( ) , 0 ) ; }
Source:
public final java.util.SortedSet < java.lang.Short > value_set ( ) { java.util.SortedSet < java.lang.Short > values = new java.util.TreeSet < > ( ) ; for ( java.lang.String v : values ( ) ) { values.add ( com.google.gerrit.client.changes.ChangeInfo.LabelInfo.parseValue ( v ) ) ; } return values ; }

Target:
public final java.util.SortedSet < java.lang.Short > valueSet ( ) { java.util.SortedSet < java.lang.Short > values = new java.util.TreeSet < > ( ) ; for ( java.lang.String v : values ( ) ) { values.add ( com.google.gerrit.client.changes.ChangeInfo.LabelInfo.parseValue ( v ) ) ; } return values ; }
Source:
public void onFocus ( com.google.gwt.event.dom.client.FocusEvent event ) { if ( Util.C.defaultBranchName ( ) . equals ( nameTxtBox.getText ( ) ) ) { nameTxtBox.setText ( "" ) ; nameTxtBox.removeStyleName ( Gerrit.RESOURCES.css ( ) . inputFieldTypeHint ( ) ) ; } }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( event.getCharCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { doAddNewBranch ( ) ; } }
Source:
public java.util.SortedSet < com.google.gerrit.reviewdb.client.Project.NameKey > all ( ) { try { return list.get ( com.google.gerrit.server.project.ProjectCacheImpl.ListKey.ALL ) ; } catch ( java.util.concurrent.ExecutionException e ) { com.google.gerrit.server.project.ProjectCacheImpl.log.warn ( "Cannot list available projects" , e ) ; return java.util.Collections.emptySortedSet ( ) ; } }

Target:
public java.util.SortedSet < com.google.gerrit.reviewdb.client.Project.NameKey > all ( ) { try { return list.get ( com.google.gerrit.server.project.ProjectCacheImpl.ListKey.ALL ) ; } catch ( java.util.concurrent.ExecutionException e ) { com.google.gerrit.server.project.ProjectCacheImpl.log.warn ( "Cannot list available projects" , e ) ; return com.google.common.collect.ImmutableSortedSet.of ( ) ; } }
Source:
public void evictAfterRename ( com.google.gerrit.reviewdb.AccountGroup.NameKey oldName ) ;

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > evictAfterRenameAsync ( com.google.gerrit.reviewdb.AccountGroup.NameKey oldName ) ;
Source:
private void assertNoProblems ( com.google.gerrit.gpg.PublicKeyChecker checker , com.google.gerrit.gpg.testutil.TestKey k ) { com.google.gerrit.gpg.CheckResult result = checker.setStore ( store ) . check ( k.getPublicKey ( ) ) ; org.junit.Assert.assertEquals ( java.util.Collections.emptyList ( ) , result.getProblems ( ) ) ; }

Target:
private void assertNoProblems ( com.google.gerrit.gpg.PublicKeyChecker checker , com.google.gerrit.gpg.testing.TestKey k ) { com.google.gerrit.gpg.CheckResult result = checker.setStore ( store ) . check ( k.getPublicKey ( ) ) ; org.junit.Assert.assertEquals ( java.util.Collections.emptyList ( ) , result.getProblems ( ) ) ; }
Source:
com.google.gerrit.server.index.IndexConfig getIndexConfig ( @ com.google.gerrit.server.config.GerritServerConfig org.eclipse.jgit.lib.Config cfg ) { org.apache.lucene.search.BooleanQuery.setMaxClauseCount ( cfg.getInt ( "index" , "maxTerms" , org.apache.lucene.search.BooleanQuery.getMaxClauseCount ( ) ) ) ; return com.google.gerrit.server.index.IndexConfig.fromConfig ( cfg ) ; }

Target:
com.google.gerrit.server.index.IndexConfig getIndexConfig ( @ com.google.gerrit.server.config.GerritServerConfig org.eclipse.jgit.lib.Config cfg ) { org.apache.lucene.search.BooleanQuery.setMaxClauseCount ( cfg.getInt ( "index" , "maxTerms" , org.apache.lucene.search.BooleanQuery.getMaxClauseCount ( ) ) ) ; return com.google.gerrit.server.index.IndexConfig.fromConfig ( cfg ) . separateChangeSubIndexes ( true ) . build ( ) ; }
Source:
private static com.google.gerrit.extensions.api.changes.ReviewInput.CommentInput newComment ( java.lang.String path , com.google.gerrit.extensions.client.Side side , int line , java.lang.String message ) { com.google.gerrit.extensions.api.changes.ReviewInput.CommentInput c = new com.google.gerrit.extensions.api.changes.ReviewInput.CommentInput ( ) ; return com.google.gerrit.acceptance.server.change.CommentsIT.populate ( c , path , side , line , message ) ; }

Target:
private static com.google.gerrit.extensions.api.changes.ReviewInput.CommentInput newCommentOnParent ( java.lang.String path , int parent , int line , java.lang.String message ) { com.google.gerrit.extensions.api.changes.ReviewInput.CommentInput c = new com.google.gerrit.extensions.api.changes.ReviewInput.CommentInput ( ) ; return com.google.gerrit.acceptance.server.change.CommentsIT.populate ( c , path , Side.PARENT , java.lang.Integer.valueOf ( parent ) , line , message ) ; }
Source:
protected boolean hasDifferences ( final com.google.gerrit.common.data.PatchScript script ) { boolean hasEdits = ! ( script.getEdits ( ) . isEmpty ( ) ) ; boolean hasMeta = ! ( script.getPatchHeader ( ) . isEmpty ( ) ) ; return hasEdits || hasMeta ; }

Target:
private boolean hasEdits ( com.google.gerrit.common.data.PatchScript script ) { for ( org.eclipse.jgit.diff.Edit e : script.getEdits ( ) ) { if ( ( e.getType ( ) ) != ( Edit.Type.EMPTY ) ) { return true ; } } return false ; }
Source:
public static org.eclipse.jgit.lib.Config allowDraftsDisabled ( ) { return allowDraftsDisabledConfig ( ) ; }

Target:
public void createNewDraftChangeNotAllowed ( ) throws java.lang.Exception { com.google.gerrit.extensions.common.ChangeInput ci = newChangeInput ( ChangeStatus.DRAFT ) ; assertCreateFails ( ci , com.google.gerrit.extensions.restapi.BadRequestException.class , "unsupported change status" ) ; }
Source:
private static com.google.gerrit.server.group.InternalGroup removeRefState ( com.google.gerrit.server.group.InternalGroup group ) throws java.lang.Exception { return group.toBuilder ( ) . setRefState ( null ) . build ( ) ; }

Target:
public void setUp ( ) { com.google.common.truth.TruthJUnit.assume ( ) . that ( migration.readFromNoteDb ( ) ) . isFalse ( ) ; }
Source:
private void allowPushOnRefsTags ( ) throws java.lang.Exception { removePushFromRefsTags ( ) ; grant ( Permission.PUSH , project , "refs/tags/*" , false , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS ) ; }

Target:
private void allowPushOnRefsTags ( ) throws java.lang.Exception { removePushFromRefsTags ( ) ; grant ( project , "refs/tags/*" , Permission.PUSH , false , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS ) ; }
Source:
public java.lang.String format ( java.lang.String projectName , com.googlesource.gerrit.plugins.xdocs.ConfigSection cfg , java.lang.String raw ) { return ( "<pre>" + ( org.apache.commons.lang.StringEscapeUtils.escapeHtml ( raw ) ) ) + "</pre>" ; }

Target:
public java.lang.String format ( java.lang.String projectName , java.lang.String revision , com.googlesource.gerrit.plugins.xdocs.ConfigSection cfg , java.lang.String raw ) { return ( "<pre>" + ( org.apache.commons.lang.StringEscapeUtils.escapeHtml ( raw ) ) ) + "</pre>" ; }
Source:
private com.google.gerrit.server.index.PredicateWrapper wrap ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p ) { try { return new com.google.gerrit.server.index.PredicateWrapper ( index , p ) ; } catch ( com.google.gerrit.server.query.QueryParseException e ) { throw new java.lang.IllegalStateException ( ( ( "Failed to convert " + p ) + " to index predicate" ) , e ) ; } }

Target:
private com.google.gerrit.server.index.PredicateWrapper wrap ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p ) { try { return new com.google.gerrit.server.index.PredicateWrapper ( p , index ) ; } catch ( com.google.gerrit.server.query.QueryParseException e ) { throw new java.lang.IllegalStateException ( ( ( "Failed to convert " + p ) + " to index predicate" ) , e ) ; } }
Source:
public int getCost ( ) { return 1 ; }

Target:
public int getCost ( ) { return 1 + ( ( group ) == null ? 0 : 1 ) ; }
Source:
public void onSignIn ( ) { if ( refreshOnSignIn ) { refresh ( ) ; } if ( ( starChange ) != null ) { starChange.setVisible ( true ) ; } }

Target:
public void onSignIn ( ) { super . onSignIn ( ) ; if ( refreshOnSignIn ) { refresh ( ) ; } if ( ( starChange ) != null ) { starChange.setVisible ( true ) ; } }
Source:
private static com.google.gerrit.client.reviewdb.AccountExternalId createId ( final com.google.gerrit.client.reviewdb.Account.Id newId , final com.google.gerrit.server.account.AuthRequest who ) { final java.lang.String ext = who.getExternalId ( ) ; return new com.google.gerrit.client.reviewdb.AccountExternalId ( new com.google.gerrit.client.reviewdb.AccountExternalId.Key ( newId , ext ) ) ; }

Target:
private static com.google.gerrit.client.reviewdb.AccountExternalId createId ( final com.google.gerrit.client.reviewdb.Account.Id newId , final com.google.gerrit.server.account.AuthRequest who ) { final java.lang.String ext = who.getExternalId ( ) ; return new com.google.gerrit.client.reviewdb.AccountExternalId ( newId , new com.google.gerrit.client.reviewdb.AccountExternalId.Key ( ext ) ) ; }
Source:
public final native java.lang.String change_id ( ) ;

Target:
public final native java.lang.String changeId ( ) ;
Source:
public static boolean isNoSuchEntity ( final java.lang.Throwable caught ) { if ( caught instanceof com.google.gerrit.client.rpc.NoSuchEntityException ) { return true ; } return ( caught instanceof com.google.gwtjsonrpc.client.RemoteJsonException ) && ( caught.getMessage ( ) . equals ( NoSuchEntityException.MESSAGE ) ) ; }

Target:
protected static boolean isNoSuchEntity ( final java.lang.Throwable caught ) { return ( caught instanceof com.google.gwtjsonrpc.client.RemoteJsonException ) && ( caught.getMessage ( ) . equals ( NoSuchEntityException.MESSAGE ) ) ; }
Source:
public Project.NameKey getProjectName ( ) { return getChange ( ) . getProject ( ) ; }

Target:
public Project.NameKey getProjectName ( ) { return project ; }
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 ( new com.google.gerrit.server.query.change.ChangeData ( 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 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 ) ; }
Source:
public static org.eclipse.jgit.lib.Config loadDefault ( javax.servlet.FilterConfig filterConfig ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { org.eclipse.jgit.storage.file.FileBasedConfig config = new org.eclipse.jgit.storage.file.FileBasedConfig ( com.google.gitiles.GitilesConfig.defaultFile ( ) , org.eclipse.jgit.util.FS.DETECTED ) ; config.load ( ) ; return config ; }

Target:
public static org.eclipse.jgit.lib.Config loadDefault ( javax.servlet.FilterConfig filterConfig ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { org.eclipse.jgit.storage.file.FileBasedConfig config = new org.eclipse.jgit.storage.file.FileBasedConfig ( com.google.gitiles.GitilesConfig.defaultFile ( filterConfig ) , org.eclipse.jgit.util.FS.DETECTED ) ; config.load ( ) ; return config ; }
Source:
public int getCost ( ) { return 0 ; }

Target:
public int getCost ( ) { return 1 ; }
Source:
public void onSuccess ( final com.google.gerrit.client.reviewdb.Account result ) { if ( result != null ) { com.google.gerrit.client.Gerrit.postSignIn ( result ) ; } else { com.google.gwt.user.client.Cookies.removeCookie ( com.google.gerrit.client.Gerrit.ACCOUNT_COOKIE ) ; com.google.gerrit.client.Gerrit.refreshMenuBar ( ) ; } showInitialScreen ( ) ; }

Target:
public void onSuccess ( final com.google.gerrit.client.reviewdb.Account result ) { if ( result != null ) { com.google.gerrit.client.Gerrit.postSignIn ( result , null ) ; } else { com.google.gwt.user.client.Cookies.removeCookie ( com.google.gerrit.client.Gerrit.ACCOUNT_COOKIE ) ; com.google.gerrit.client.Gerrit.refreshMenuBar ( ) ; } showInitialScreen ( ) ; }
Source:
public void setSide ( final com.google.gerrit.client.reviewdb.PatchLineComment.Side s ) { side = s.getCode ( ) ; }

Target:
public void setSide ( final short s ) { side = s ; }
Source:
boolean canRebase ( ) { return ( canPerform ( Permission.REBASE ) ) && ( isProjectStatePermittingWrite ( ) ) ; }

Target:
boolean canRebase ( ) { return canPerform ( Permission.REBASE ) ; }
Source:
public final void afterTest ( ) throws java.lang.Exception { server.stop ( ) ; }

Target:
private void afterTest ( ) throws java.lang.Exception { server.stop ( ) ; }
Source:
public void listEmptyGroupIncludes ( ) throws java.lang.Exception { org.junit.Assert.assertTrue ( GET ( "/groups/Administrators/groups/" ) . isEmpty ( ) ) ; }

Target:
public void listEmptyGroupIncludes ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( GET ( "/groups/Administrators/groups/" ) ) . isEmpty ( ) ; }
Source:
public java.lang.String getNameEmail ( ) { return new com.google.gerrit.common.data.AccountInfo ( getAccount ( ) ) . getNameEmail ( anonymousCowardName ) ; }

Target:
public java.lang.String getNameEmail ( ) { return getAccount ( ) . getNameEmail ( anonymousCowardName ) ; }
Source:
public static boolean isInternalGroup ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) { return ( uuid.get ( ) . startsWith ( "global:" ) ) || ( uuid.get ( ) . matches ( "^[0-9a-f]{40}$" ) ) ; }

Target:
public static boolean isInternalGroup ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) { return uuid.get ( ) . matches ( "^[0-9a-f]{40}$" ) ; }
Source:
private void setClean ( boolean clean ) { save.setEnabled ( ( ! clean ) ) ; dirty.getStyle ( ) . setVisibility ( ( ! clean ? com.google.gwt.dom.client.Style.Visibility.VISIBLE : com.google.gwt.dom.client.Style.Visibility.HIDDEN ) ) ; }

Target:
private void setClean ( boolean clean ) { save.setEnabled ( ( ! clean ) ) ; close.setEnabled ( true ) ; dirty.getStyle ( ) . setVisibility ( ( ! clean ? com.google.gwt.dom.client.Style.Visibility.VISIBLE : com.google.gwt.dom.client.Style.Visibility.HIDDEN ) ) ; }
Source:
public org.eclipse.jgit.revwalk.RevCommit commit ( com.google.gerrit.server.git.MetaDataUpdate update ) throws java.io.IOException { com.google.gerrit.server.git.VersionedMetaData.BatchMetaDataUpdate batch = openUpdate ( update ) ; try { batch.write ( update.getCommitBuilder ( ) ) ; return batch.commit ( ) ; } finally { batch.close ( ) ; } }

Target:
public org.eclipse.jgit.revwalk.RevCommit commit ( com.google.gerrit.server.git.MetaDataUpdate update ) throws java.io.IOException { try ( com.google.gerrit.server.git.VersionedMetaData.BatchMetaDataUpdate batch = openUpdate ( update ) ) { batch.write ( update.getCommitBuilder ( ) ) ; return batch.commit ( ) ; } }
Source:
void postEvent ( 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.server.events.Event event ) throws com.google.gwtorm.server.OrmException ;
Source:
protected void onInitUI ( ) { super . onInitUI ( ) ; initUUID ( ) ; initName ( ) ; initOwner ( ) ; initDescription ( ) ; initGroupOptions ( ) ; initGroupType ( ) ; initExternal ( ) ; }

Target:
protected void onInitUI ( ) { super . onInitUI ( ) ; initUUID ( ) ; initName ( ) ; initOwner ( ) ; initDescription ( ) ; initGroupOptions ( ) ; initGroupType ( ) ; }
Source:
public static void edits ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.rpc.NativeMap < com.google.gerrit.client.changes.ChangeInfo.EditInfo > > cb ) { com.google.gerrit.client.changes.ChangeApi.call ( id , "edits" ) . get ( cb ) ; }

Target:
public static void edit ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.changes.ChangeInfo.EditInfo > cb ) { com.google.gerrit.client.changes.ChangeApi.edit ( id ) . get ( cb ) ; }
Source:
public void setHashtags ( com.google.gerrit.extensions.api.changes.HashtagsInput input ) throws com.google.gerrit.extensions.restapi.RestApiException { try { postHashtags.apply ( change , input ) ; } catch ( com.google.gerrit.extensions.restapi.RestApiException | com.google.gerrit.server.update.UpdateException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot post hashtags" , e ) ; } }

Target:
public void setHashtags ( com.google.gerrit.extensions.api.changes.HashtagsInput input ) throws com.google.gerrit.extensions.restapi.RestApiException { try { postHashtags.apply ( change , input ) ; } catch ( com.google.gerrit.server.update.UpdateException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot post hashtags" , e ) ; } }
Source:
public void abandon ( com.google.gerrit.extensions.api.changes.AbandonInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { abandon.get ( ) . apply ( change , in ) ; } catch ( com.google.gwtorm.server.OrmException | java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot abandon change" , e ) ; } }

Target:
public void abandon ( com.google.gerrit.extensions.api.changes.AbandonInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { abandon.apply ( change , in ) ; } catch ( com.google.gwtorm.server.OrmException | java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot abandon change" , e ) ; } }
Source:
public void onFailure ( java.lang.Throwable caught ) { new com.google.gerrit.client.ErrorDialog ( caught.getMessage ( ) ) { @ java.lang.Override public void setText ( final java.lang.String t ) { } } . center ( ) ; enableForm ( true ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { new com.google.gerrit.client.ErrorDialog ( caught.getMessage ( ) ) . center ( ) ; enableForm ( true ) ; }
Source:
private java.lang.String decode ( final int s , int e ) { if ( ( charset ) == null ) { charset = com.google.gerrit.server.patch.Text.charset ( content , null ) ; } return org.eclipse.jgit.util.RawParseUtils.decode ( charset , content , s , e ) ; }

Target:
protected java.lang.String decode ( final int s , int e ) { if ( ( charset ) == null ) { charset = com.google.gerrit.server.patch.Text.charset ( content , null ) ; } return org.eclipse.jgit.util.RawParseUtils.decode ( charset , content , s , e ) ; }
Source:
private boolean inProject ( com.google.gerrit.reviewdb.client.Change change ) { if ( ( projectControl ) != null ) { return projectControl.getProject ( ) . getNameKey ( ) . equals ( change.getProject ( ) ) ; } else { return true ; } }

Target:
private boolean inProject ( com.google.gerrit.reviewdb.client.Project project ) { if ( ( projectControl ) != null ) { return projectControl.getProject ( ) . getNameKey ( ) . equals ( project.getNameKey ( ) ) ; } else { return true ; } }
Source:
public void parseInvalidTimestamps ( ) { com.google.gwtjsonrpc.common.JavaSqlTimestampHelperTest.assertInvalid ( "2006-01-02-15:04:05.789000000" ) ; com.google.gwtjsonrpc.common.JavaSqlTimestampHelperTest.assertInvalid ( "2006-01-02T15:04:05.789000000" ) ; com.google.gwtjsonrpc.common.JavaSqlTimestampHelperTest.assertInvalid ( "15:04:05" ) ; com.google.gwtjsonrpc.common.JavaSqlTimestampHelperTest.assertInvalid ( "15:04:05.999000000" ) ; com.google.gwtjsonrpc.common.JavaSqlTimestampHelperTest.assertInvalid ( "2006-01-02 10:04:05.789 -0500" ) ; com.google.gwtjsonrpc.common.JavaSqlTimestampHelperTest.assertInvalid ( "2006-01-02 10:04:05.789000000 -0500" ) ; }

Target:
public void parseInvalidTimestamps ( ) { com.google.gwtjsonrpc.common.JavaSqlTimestampHelperTest.assertInvalid ( "2006-01-02-15:04:05.789000000" ) ; com.google.gwtjsonrpc.common.JavaSqlTimestampHelperTest.assertInvalid ( "2006-01-02T15:04:05.789000000" ) ; com.google.gwtjsonrpc.common.JavaSqlTimestampHelperTest.assertInvalid ( "15:04:05" ) ; com.google.gwtjsonrpc.common.JavaSqlTimestampHelperTest.assertInvalid ( "15:04:05.999000000" ) ; }
Source:
private static boolean matchPrefix ( java.lang.String want , java.lang.String token ) { if ( token.startsWith ( want ) ) { com.google.gerrit.client.Dispatcher.prefixlen = want.length ( ) ; return true ; } else { return false ; } }

Target:
private static boolean matchPrefix ( java.lang.String want , java.lang.String token ) { if ( token.startsWith ( want ) ) { com.google.gerrit.client.Dispatcher.prefixlen = want.length ( ) ; return true ; } return false ; }
Source:
public void createProjectFooBar ( ) throws java.lang.Exception { com.google.gerrit.extensions.api.projects.ProjectInput in = new com.google.gerrit.extensions.api.projects.ProjectInput ( ) ; in.name = "foo" ; gApi.projects ( ) . name ( "bar" ) . create ( in ) ; }

Target:
public void createProjectFooBar ( ) throws java.lang.Exception { com.google.gerrit.extensions.api.projects.ProjectInput in = new com.google.gerrit.extensions.api.projects.ProjectInput ( ) ; in.name = name ( "foo" ) ; gApi.projects ( ) . name ( "bar" ) . create ( in ) ; }
Source:
private static void mainImpl ( final java.lang.String [ ] argv ) throws com.google.gwtjsonrpc.server.XsrfException , com.google.gwtorm.client.OrmException { com.google.gerrit.server.GerritServer.getInstance ( false ) ; com.google.gerrit.client.rpc.Common.getSchemaFactory ( ) . open ( ) . close ( ) ; java.lang.System.out.println ( "Gerrit2 schema initialized" ) ; }

Target:
public int run ( ) throws java.lang.Exception { com.google.gerrit.server.GerritServer.getInstance ( false ) ; com.google.gerrit.client.rpc.Common.getSchemaFactory ( ) . open ( ) . close ( ) ; java.lang.System.out.println ( "Gerrit2 schema initialized" ) ; return 0 ; }
Source:
java.lang.String changeScreenTitleId ( int id ) ;

Target:
java.lang.String changeScreenTitleId ( java.lang.String changeId ) ;
Source:
public static void getConfig ( com.google.gerrit.reviewdb.client.Project.NameKey name , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.projects.ConfigInfo > cb ) { new com.google.gerrit.client.rpc.RestApi ( "/projects/" ) . id ( name.get ( ) ) . view ( "config" ) . get ( cb ) ; }

Target:
private static com.google.gerrit.client.rpc.RestApi project ( com.google.gerrit.reviewdb.client.Project.NameKey name ) { return new com.google.gerrit.client.rpc.RestApi ( "/projects/" ) . id ( name.get ( ) ) ; }
Source:
com.google.gerrit.server.api.projects.ProjectApiImpl create ( com.google.gerrit.server.project.ProjectResource change ) ;

Target:
com.google.gerrit.server.api.projects.ProjectApiImpl create ( com.google.gerrit.server.project.ProjectResource project ) ;
Source:
public int hashCode ( ) { return ( ( accountId.hashCode ( ) ) * 31 ) + ( externalId.hashCode ( ) ) ; }

Target:
public java.lang.String get ( ) { return externalId ; }
Source:
private boolean canRestore ( com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException { return ( canAbandon ( db ) ) && ( getRefControl ( ) . canUpload ( ) ) ; }

Target:
public boolean canRestore ( com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException { return ( canAbandon ( db ) ) && ( getRefControl ( ) . canUpload ( ) ) ; }
Source:
private void initSignatures ( ) { setSignatureFactories ( java.util.Arrays.< org.apache.sshd.common.NamedFactory < org.apache.sshd.common.Signature > > asList ( new org.apache.sshd.common.signature.SignatureDSA.Factory ( ) , new org.apache.sshd.common.signature.SignatureRSA.Factory ( ) , new org.apache.sshd.common.signature.SignatureECDSA.NISTP256Factory ( ) , new org.apache.sshd.common.signature.SignatureECDSA.NISTP384Factory ( ) , new org.apache.sshd.common.signature.SignatureECDSA.NISTP521Factory ( ) ) ) ; }

Target:
private void initSignatures ( ) { setSignatureFactories ( java.util.Arrays.< org.apache.sshd.common.NamedFactory < org.apache.sshd.common.Signature > > asList ( new org.apache.sshd.common.signature.SignatureDSA.Factory ( ) , new org.apache.sshd.common.signature.SignatureRSA.Factory ( ) ) ) ; }
Source:
public void execute ( com.google.gerrit.server.git.BatchUpdate.Listener listener ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.git.UpdateException { com.google.gerrit.server.git.BatchUpdate.execute ( com.google.common.collect.ImmutableList.of ( this ) , listener , requestId ) ; }

Target:
public void execute ( com.google.gerrit.server.git.BatchUpdate.Listener listener ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.git.UpdateException { com.google.gerrit.server.git.BatchUpdate.execute ( com.google.common.collect.ImmutableList.of ( this ) , listener , requestId , false ) ; }
Source:
public void publish ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { publish.get ( ) . apply ( revision , new com.google.gerrit.server.change.Publish.Input ( ) ) ; } catch ( com.google.gwtorm.server.OrmException | java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot publish draft patch set" , e ) ; } }

Target:
public void publish ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { publish.apply ( revision , new com.google.gerrit.server.change.Publish.Input ( ) ) ; } catch ( com.google.gwtorm.server.OrmException | java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot publish draft patch set" , e ) ; } }
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 , true ) ; }

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 ) ; }
Source:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { if ( ( ++ ( done ) ) == ( commentEditors.size ( ) ) ) { onSend2 ( ) ; } }

Target:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { if ( ( ++ ( done ) ) == ( commentEditors.size ( ) ) ) { onSend2 ( submit ) ; } }
Source:
protected void configure ( ) { bind ( com.google.gerrit.server.permissions.PermissionBackend.class ) . to ( com.google.gerrit.server.project.DefaultPermissionBackend.class ) . in ( Scopes.SINGLETON ) ; install ( new com.google.gerrit.server.project.DefaultPermissionBackendModule.LegacyControlsModule ( ) ) ; }

Target:
protected void configure ( ) { install ( new com.google.gerrit.server.project.DefaultPermissionBackendModule.LegacyControlsModule ( ) ) ; }
Source:
private void clearActiveLine ( net.codemirror.lib.CodeMirror cm ) { if ( cm.hasActiveLine ( ) ) { net.codemirror.lib.CodeMirror.LineHandle activeLine = cm.getActiveLine ( ) ; cm.removeLineClass ( activeLine , LineClassWhere.WRAP , DiffTable.style.activeLine ( ) ) ; cm.setActiveLine ( null ) ; } }

Target:
private void clearActiveLine ( net.codemirror.lib.CodeMirror cm ) { if ( cm.hasActiveLine ( ) ) { net.codemirror.lib.CodeMirror.LineHandle activeLine = cm.activeLine ( ) ; cm.removeLineClass ( activeLine , LineClassWhere.WRAP , DiffTable.style.activeLine ( ) ) ; cm.activeLine ( null ) ; } }
Source:
public com.google.gerrit.server.project.ChangeControl validateFor ( final com.google.gerrit.reviewdb.Change.Id id ) throws com.google.gerrit.server.project.NoSuchChangeException , com.google.gwtorm.client.OrmException { return com.google.gerrit.server.project.ChangeControl.Factory.validate ( controlFor ( id ) , db.get ( ) ) ; }

Target:
public com.google.gerrit.server.project.ChangeControl validateFor ( final com.google.gerrit.reviewdb.client.Change.Id id ) throws com.google.gerrit.server.project.NoSuchChangeException , com.google.gwtorm.server.OrmException { return com.google.gerrit.server.project.ChangeControl.Factory.validate ( controlFor ( id ) , db.get ( ) ) ; }
Source:
public static void ensureAllPatchSetsLoaded ( com.google.inject.Provider < com.google.gerrit.reviewdb.server.ReviewDb > db , java.lang.Iterable < com.google.gerrit.server.query.change.ChangeData > changes ) throws com.google.gwtorm.server.OrmException { for ( com.google.gerrit.server.query.change.ChangeData cd : changes ) { cd.patches ( db ) ; } }

Target:
public static void ensureAllPatchSetsLoaded ( com.google.inject.Provider < com.google.gerrit.reviewdb.server.ReviewDb > db , java.lang.Iterable < com.google.gerrit.server.query.change.ChangeData > changes ) throws com.google.gwtorm.server.OrmException { for ( com.google.gerrit.server.query.change.ChangeData cd : changes ) { cd.patches ( ) ; } }
Source:
public void testThreeLevelTreeWithAllIndexPredicates ( ) throws java.lang.Exception { com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in = parse ( "-status:abandoned (file:a OR file:b)" ) ; org.junit.Assert.assertEquals ( query ( in ) , rewrite.rewrite ( in , 0 , com.google.gerrit.common.data.GlobalCapability.DEFAULT_MAX_QUERY_LIMIT ) ) ; }

Target:
public void testThreeLevelTreeWithAllIndexPredicates ( ) throws java.lang.Exception { com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in = parse ( "-status:abandoned (file:a OR file:b)" ) ; com.google.common.truth.Truth.assertThat ( rewrite.rewrite ( in , 0 , com.google.gerrit.common.data.GlobalCapability.DEFAULT_MAX_QUERY_LIMIT ) ) . isEqualTo ( query ( in ) ) ; }
Source:
static org.eclipse.jgit.lib.PersonIdent newIdent ( com.google.gerrit.reviewdb.client.Account author , java.util.Date when , org.eclipse.jgit.lib.PersonIdent serverIdent , java.lang.String anonymousCowardName ) { return new org.eclipse.jgit.lib.PersonIdent ( new com.google.gerrit.common.data.AccountInfo ( author ) . getName ( anonymousCowardName ) , ( ( ( author.getId ( ) . get ( ) ) + "@" ) + ( com.google.gerrit.server.notedb.ChangeNoteUtil.GERRIT_PLACEHOLDER_HOST ) ) , when , serverIdent.getTimeZone ( ) ) ; }

Target:
public static org.eclipse.jgit.lib.PersonIdent newIdent ( com.google.gerrit.reviewdb.client.Account author , java.util.Date when , org.eclipse.jgit.lib.PersonIdent serverIdent , java.lang.String anonymousCowardName ) { return new org.eclipse.jgit.lib.PersonIdent ( new com.google.gerrit.common.data.AccountInfo ( author ) . getName ( anonymousCowardName ) , ( ( ( author.getId ( ) . get ( ) ) + "@" ) + ( com.google.gerrit.server.notedb.ChangeNoteUtil.GERRIT_PLACEHOLDER_HOST ) ) , when , serverIdent.getTimeZone ( ) ) ; }
Source:
boolean get ( org.eclipse.jgit.lib.ObjectId commit , org.eclipse.jgit.lib.Ref intoRef , com.google.gerrit.extensions.client.SubmitType submitType , java.lang.String mergeStrategy , com.google.gerrit.reviewdb.client.Branch.NameKey dest , org.eclipse.jgit.lib.Repository repo , com.google.gerrit.reviewdb.server.ReviewDb db ) ;

Target:
boolean get ( org.eclipse.jgit.lib.ObjectId commit , org.eclipse.jgit.lib.Ref intoRef , com.google.gerrit.extensions.client.SubmitType submitType , java.lang.String mergeStrategy , com.google.gerrit.reviewdb.client.Branch.NameKey dest , org.eclipse.jgit.lib.Repository repo ) ;
Source:
private com.google.gerrit.server.account.AccountState state ( ) { if ( ( state ) == null ) { state = accountCache.get ( getAccountId ( ) ) ; } return state ; }

Target:
public com.google.gerrit.server.account.AccountState state ( ) { if ( ( state ) == null ) { state = accountCache.get ( getAccountId ( ) ) ; } return state ; }
Source:
public static native void go ( java.lang.String t ) ;

Target:
public final native void go ( java.lang.String token ) ;
Source:
private java.util.Map < java.lang.String , java.util.List < com.google.gitiles.blame.BlameServletTest.RegionJsonData > > getBlameJson ( java.lang.String path ) throws java.lang.Exception { return buildJson ( path , new com.google.gson.reflect.TypeToken < java.util.Map < java.lang.String , java.util.List < com.google.gitiles.blame.BlameServletTest.RegionJsonData > > > ( ) { } ) ; }

Target:
private java.util.Map < java.lang.String , java.util.List < com.google.gitiles.blame.BlameServletTest.RegionJsonData > > getBlameJson ( java.lang.String path ) throws java.lang.Exception { return buildJson ( new com.google.gson.reflect.TypeToken < java.util.Map < java.lang.String , java.util.List < com.google.gitiles.blame.BlameServletTest.RegionJsonData > > > ( ) { } , path ) ; }
Source:
private static java.security.SecureRandom newRandomGenerator ( ) { try { return java.security.SecureRandom.getInstance ( "SHA1PRNG" ) ; } catch ( java.security.NoSuchAlgorithmException e ) { throw new java.lang.IllegalArgumentException ( "No SecureRandom available for GitHub authentication" , e ) ; } finally { } }

Target:
private static java.security.SecureRandom newRandomGenerator ( ) { try { return java.security.SecureRandom.getInstance ( "SHA1PRNG" ) ; } catch ( java.security.NoSuchAlgorithmException e ) { throw new java.lang.IllegalArgumentException ( "No SecureRandom available for GitHub authentication" , e ) ; } }
Source:
public T call ( ) throws java.lang.Exception { if ( callerContext == ( local.getContext ( ) ) ) { return callable.call ( ) ; } else { return wrapped.call ( ) ; } }

Target:
public T call ( ) throws java.lang.Exception { if ( callerContext == ( local.getContext ( ) ) ) { return callable.call ( ) ; } return wrapped.call ( ) ; }
Source:
public void run ( ) throws java.lang.Exception { try { preRun ( ) ; parseCommandLine ( ) ; this . run ( ) ; } finally { postRun ( ) ; } }

Target:
public void run ( ) throws java.lang.Exception { parseCommandLine ( ) ; this . run ( ) ; }
Source:
public void getNonExistingAccount_NotFound ( ) throws java.lang.Exception { try { gApi.accounts ( ) . id ( "non-existing" ) . get ( ) ; org.junit.Assert.fail ( "Expected account to not exist" ) ; } catch ( com.google.gerrit.extensions.restapi.ResourceNotFoundException expected ) { } }

Target:
public void getNonExistingAccount_NotFound ( ) throws java.lang.Exception { gApi.accounts ( ) . id ( "non-existing" ) . get ( ) ; }
Source:
public void setLinkName ( final java.lang.String name ) { this . name = name ; }

Target:
public void setLinkName ( java.lang.String name ) { this . name = name ; }
Source:
public int getCost ( ) { return pred.getCost ( ) ; }

Target:
public int getCost ( ) { return 0 ; }
Source:
public void printJson ( final java.lang.StringBuffer sb , final java.lang.String o ) { if ( o != null ) { sb.append ( escapeString ( o ) ) ; } else { sb.append ( com.google.gwtjsonrpc.client.JS_NULL ) ; } }

Target:
public void printJson ( final java.lang.StringBuffer sb , final java.lang.String o ) { sb.append ( escapeString ( o ) ) ; }
Source:
public com.google.gerrit.server.project.ProjectResource parse ( java.lang.String id ) throws com.google.gerrit.extensions.restapi.UnprocessableEntityException , java.io.IOException { com.google.gerrit.server.project.ProjectResource rsrc = _parse ( id ) ; if ( rsrc == null ) { throw new com.google.gerrit.extensions.restapi.UnprocessableEntityException ( java.lang.String.format ( "Project Not Found: %s" , id ) ) ; } return rsrc ; }

Target:
public com.google.gerrit.server.project.ProjectResource parse ( java.lang.String id ) throws com.google.gerrit.extensions.restapi.UnprocessableEntityException , java.io.IOException { return parse ( id , true ) ; }
Source:
private void detach ( ) { if ( ( lineWidget ) != null ) { lineWidget.clear ( ) ; lineWidget = null ; updateSelection ( ) ; } manager.clearLine ( cm.side ( ) , line ) ; removeFromParent ( ) ; }

Target:
private void detach ( ) { if ( ( lineWidget ) != null ) { lineWidget.clear ( ) ; lineWidget = null ; updateSelection ( ) ; } manager.clearLine ( cm.side ( ) , line , this ) ; removeFromParent ( ) ; }
Source:
public com.google.gerrit.server.project.RefControl getRefControl ( ) { return refControl ; }

Target:
private com.google.gerrit.server.project.RefControl getRefControl ( ) { return refControl ; }
Source:
public static boolean isMagicBranch ( java.lang.String refName ) { if ( ( ( refName.startsWith ( com.google.gerrit.server.util.MagicBranch.NEW_DRAFT_CHANGE ) ) || ( refName.startsWith ( com.google.gerrit.server.util.MagicBranch.NEW_PUBLISH_CHANGE ) ) ) || ( refName.startsWith ( com.google.gerrit.server.util.MagicBranch.NEW_CHANGE ) ) ) { return true ; } return false ; }

Target:
public static boolean isMagicBranch ( java.lang.String refName ) { return ( ( refName.startsWith ( com.google.gerrit.server.util.MagicBranch.NEW_DRAFT_CHANGE ) ) || ( refName.startsWith ( com.google.gerrit.server.util.MagicBranch.NEW_PUBLISH_CHANGE ) ) ) || ( refName.startsWith ( com.google.gerrit.server.util.MagicBranch.NEW_CHANGE ) ) ; }
Source:
private void problem ( java.lang.String msg ) { com.google.gerrit.extensions.common.ProblemInfo p = new com.google.gerrit.extensions.common.ProblemInfo ( ) ; p.message = msg ; problems.add ( p ) ; }

Target:
private com.google.gerrit.extensions.common.ProblemInfo problem ( java.lang.String msg ) { com.google.gerrit.extensions.common.ProblemInfo p = new com.google.gerrit.extensions.common.ProblemInfo ( ) ; p.message = msg ; problems.add ( p ) ; return p ; }
Source:
public boolean canAddRefs ( ) { return ( canPerformOnAnyRef ( Permission.CREATE ) ) || ( isOwnerAnyRef ( ) ) ; }

Target:
private boolean canAddRefs ( ) { return ( canPerformOnAnyRef ( Permission.CREATE ) ) || ( isOwnerAnyRef ( ) ) ; }
Source:
private static java.lang.String publicKey ( com.jcraft.jsch.KeyPair sshKey , java.lang.String comment ) throws java.io.UnsupportedEncodingException { java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream ( ) ; sshKey.writePublicKey ( out , comment ) ; return out.toString ( java.nio.charset.StandardCharsets.US_ASCII.name ( ) ) ; }

Target:
public static java.lang.String publicKey ( com.jcraft.jsch.KeyPair sshKey , java.lang.String comment ) throws java.io.UnsupportedEncodingException { java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream ( ) ; sshKey.writePublicKey ( out , comment ) ; return out.toString ( java.nio.charset.StandardCharsets.US_ASCII.name ( ) ) ; }
Source:
public void assertSchemaVersion ( ) throws com.google.gwtorm.server.OrmException { final com.google.gerrit.reviewdb.client.CurrentSchemaVersion act = getSchemaVersion ( ) ; junit.framework.TestCase.assertEquals ( schemaVersion.getVersionNbr ( ) , act.versionNbr ) ; }

Target:
public void assertSchemaVersion ( ) throws com.google.gwtorm.server.OrmException { final com.google.gerrit.reviewdb.client.CurrentSchemaVersion act = getSchemaVersion ( ) ; org.junit.Assert.assertEquals ( schemaVersion.getVersionNbr ( ) , act.versionNbr ) ; }
Source:
void onCancel ( com.google.gwt.event.dom.client.ClickEvent e ) { setEdit ( false ) ; resizePaddingWidget ( ) ; }

Target:
void onCancel ( com.google.gwt.event.dom.client.ClickEvent e ) { setEdit ( false ) ; }
Source:
public void add ( final com.google.gwtexpui.globalkey.client.KeyCommand k ) { assert ! ( map.containsKey ( k.keyMask ) ) ; map.put ( k.keyMask , k ) ; }

Target:
public void add ( final com.google.gwtexpui.globalkey.client.KeyCommand k ) { assert ! ( map.containsKey ( k.keyMask ) ) ; if ( ! ( map.containsKey ( k.keyMask ) ) ) { map.put ( k.keyMask , k ) ; } }
Source:
private void checkPreconditions ( javax.servlet.http.HttpServletRequest req , com.google.gerrit.extensions.restapi.RestResource rsrc ) throws com.google.gerrit.extensions.restapi.PreconditionFailedException { if ( "*" . equals ( req.getHeader ( "If-None-Match" ) ) ) { throw new com.google.gerrit.extensions.restapi.PreconditionFailedException ( "Resource already exists" ) ; } }

Target:
private void checkPreconditions ( javax.servlet.http.HttpServletRequest req ) throws com.google.gerrit.extensions.restapi.PreconditionFailedException { if ( "*" . equals ( req.getHeader ( "If-None-Match" ) ) ) { throw new com.google.gerrit.extensions.restapi.PreconditionFailedException ( "Resource already exists" ) ; } }
Source:
public static com.google.gerrit.server.account.externalids.ExternalId create ( java.lang.String scheme , java.lang.String id , com.google.gerrit.reviewdb.client.Account.Id accountId ) { return new com.google.gerrit.server.account.externalids.AutoValue_ExternalId ( com.google.gerrit.server.account.externalids.ExternalId.Key.create ( scheme , id ) , accountId , null , null ) ; }

Target:
public static com.google.gerrit.server.account.externalids.ExternalId create ( java.lang.String scheme , java.lang.String id , com.google.gerrit.reviewdb.client.Account.Id accountId ) { return com.google.gerrit.server.account.externalids.ExternalId.create ( com.google.gerrit.server.account.externalids.ExternalId.Key.create ( scheme , id ) , accountId , null , null ) ; }
Source:
protected void configure ( ) { factory ( AgreementInfoFactory.Factory.class ) ; factory ( DeleteExternalIds.Factory.class ) ; factory ( ExternalIdDetailFactory.Factory.class ) ; factory ( GroupDetailHandler.Factory.class ) ; factory ( RegisterNewEmailSender.Factory.class ) ; }

Target:
protected void configure ( ) { factory ( AgreementInfoFactory.Factory.class ) ; factory ( DeleteExternalIds.Factory.class ) ; factory ( ExternalIdDetailFactory.Factory.class ) ; factory ( RegisterNewEmailSender.Factory.class ) ; }
Source:
private boolean isDraftVisible ( com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException { return ( isOwner ( ) ) || ( isReviewer ( db ) ) ; }

Target:
private boolean isDraftVisible ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.query.change.ChangeData cd ) throws com.google.gwtorm.server.OrmException { return ( isOwner ( ) ) || ( isReviewer ( db , cd ) ) ; }
Source:
public void onSuccess ( final com.google.gerrit.client.admin.ProjectDetail result ) { enableForm ( true ) ; display ( result ) ; rights.finishDisplay ( true ) ; }

Target:
public void onSuccess ( final com.google.gerrit.client.admin.ProjectDetail result ) { enableForm ( true ) ; display ( result ) ; }
Source:
private com.google.gerrit.server.account.AccountState toAccountState ( com.google.gson.JsonElement element ) { com.google.gerrit.reviewdb.client.Account.Id id = new com.google.gerrit.reviewdb.client.Account.Id ( element.getAsJsonObject ( ) . get ( com.google.gerrit.server.index.account.AccountField.ID.getName ( ) ) . getAsInt ( ) ) ; return accountCache.get ( id ) ; }

Target:
private com.google.gerrit.server.account.AccountState toAccountState ( com.google.gson.JsonElement element ) { com.google.gerrit.reviewdb.client.Account.Id id = new com.google.gerrit.reviewdb.client.Account.Id ( element.getAsJsonObject ( ) . get ( com.google.gerrit.server.index.account.AccountField.ID.getName ( ) ) . getAsInt ( ) ) ; return accountCache.get ( ) . get ( id ) ; }
Source:
public void testGcNotAllowed_Forbidden ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( HttpStatus.SC_FORBIDDEN , userSession.post ( ( ( "/projects/" + ( allProjects.get ( ) ) ) + "/gc" ) ) . getStatusCode ( ) ) ; }

Target:
public void testGcNotAllowed_Forbidden ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( userSession.post ( ( ( "/projects/" + ( allProjects.get ( ) ) ) + "/gc" ) ) . getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_FORBIDDEN ) ; }
Source:
private static org.eclipse.jgit.lib.ObjectId emptyTreeId ( org.eclipse.jgit.lib.ObjectInserter inserter ) throws java.io.IOException { org.eclipse.jgit.lib.ObjectId id = inserter.insert ( new org.eclipse.jgit.lib.TreeFormatter ( ) ) ; inserter.flush ( ) ; return id ; }

Target:
private static org.eclipse.jgit.lib.ObjectId emptyTreeId ( org.eclipse.jgit.lib.ObjectInserter inserter ) throws java.io.IOException { return inserter.insert ( new org.eclipse.jgit.lib.TreeFormatter ( ) ) ; }
Source:
public com.google.gerrit.reviewdb.client.AccountSshKey addKey ( com.google.gerrit.reviewdb.client.Account.Id accountId , java.lang.String pub ) throws com.google.gerrit.common.errors.InvalidSshKeyException , java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { try ( com.google.gerrit.server.account.VersionedAuthorizedKeys authorizedKeys = read ( accountId ) ) { com.google.gerrit.reviewdb.client.AccountSshKey key = authorizedKeys.addKey ( pub ) ; commit ( authorizedKeys ) ; return key ; } }

Target:
public com.google.gerrit.reviewdb.client.AccountSshKey addKey ( com.google.gerrit.reviewdb.client.Account.Id accountId , java.lang.String pub ) throws com.google.gerrit.common.errors.InvalidSshKeyException , java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { com.google.gerrit.server.account.VersionedAuthorizedKeys authorizedKeys = read ( accountId ) ; com.google.gerrit.reviewdb.client.AccountSshKey key = authorizedKeys.addKey ( pub ) ; commit ( authorizedKeys ) ; return key ; }
Source:
public void onSuccess ( com.google.gerrit.client.rpc.NativeMap < com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.CommentInfo > > result ) { attachComments ( result ) ; displayComments ( result ) ; post.setEnabled ( true ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.rpc.NativeMap < com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.CommentInfo > > result ) { displayComments ( result ) ; post.setEnabled ( true ) ; }
Source:
public com.google.gerrit.server.change.ChangeJson addOptions ( java.util.Collection < com.google.gerrit.extensions.client.ListChangesOption > o ) { options.addAll ( o ) ; return this ; }

Target:
com.google.gerrit.server.change.ChangeJson create ( java.util.Set < com.google.gerrit.extensions.client.ListChangesOption > options ) ;