auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void configure ( ) { bind ( com.google.gerrit.server.git.GitRepositoryManager.class ) . to ( com.google.gerrit.server.git.LocalDiskRepositoryManager.class ) ; listener ( ) . to ( com.google.gerrit.server.git.LocalDiskRepositoryManager.class ) ; listener ( ) . to ( com.google.gerrit.server.git.LocalDiskRepositoryManager.Lifecycle.class ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.server.git.GitRepositoryManager.class ) . to ( com.google.gerrit.server.git.LocalDiskRepositoryManager.class ) ; listener ( ) . to ( com.google.gerrit.server.git.LocalDiskRepositoryManager.Lifecycle.class ) ; }
Source:
private static int find ( java.lang.String [ ] files , java.lang.String p ) { int r = java.util.Arrays.binarySearch ( files , p ) ; return r < 0 ? - ( r + 1 ) : r ; }

Target:
private static int find ( java.util.List < java.lang.String > files , java.lang.String p ) { int r = java.util.Collections.binarySearch ( files , p ) ; return r < 0 ? - ( r + 1 ) : r ; }
Source:
public void onSuccess ( final java.util.List < com.google.gerrit.client.account.AccountProjectWatchInfo > result ) { watches.display ( result ) ; watches.finishDisplay ( true ) ; }

Target:
public void onSuccess ( final java.util.List < com.google.gerrit.client.account.AccountProjectWatchInfo > result ) { watches.display ( result ) ; }
Source:
public void cleanup ( ) { sshSession.close ( ) ; db.close ( ) ; }

Target:
public void cleanup ( ) { db.close ( ) ; }
Source:
public void init ( javax.servlet.FilterConfig filterConfig ) throws javax.servlet.ServletException { this . ghLoginProvider = new com.googlesource.gerrit.plugins.github.oauth.GitHubLogin.Provider ( ) ; }

Target:
public void init ( javax.servlet.FilterConfig filterConfig ) throws javax.servlet.ServletException { }
Source:
protected void run ( ) { for ( com.googlesource.gerrit.plugins.replication.Destination d : config.getDestinations ( FilterType.ALL ) ) { if ( matches ( d.getRemoteConfig ( ) . getName ( ) ) ) { printRemote ( d , detail ) ; } } }

Target:
protected void run ( ) { for ( com.googlesource.gerrit.plugins.replication.Destination d : config.getDestinations ( FilterType.ALL ) ) { if ( matches ( d.getRemoteConfig ( ) . getName ( ) ) ) { printRemote ( d ) ; } } }
Source:
public com.google.gerrit.server.plugins.PluginResource parse ( com.google.gerrit.extensions.restapi.TopLevelResource parent , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { com.google.gerrit.server.plugins.Plugin p = loader.get ( id.get ( ) ) ; if ( p == null ) { throw new com.google.gerrit.extensions.restapi.ResourceNotFoundException ( id ) ; } return new com.google.gerrit.server.plugins.PluginResource ( p ) ; }

Target:
public com.google.gerrit.server.plugins.PluginResource parse ( java.lang.String id ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { com.google.gerrit.server.plugins.Plugin p = loader.get ( id ) ; if ( p == null ) { throw new com.google.gerrit.extensions.restapi.ResourceNotFoundException ( id ) ; } return new com.google.gerrit.server.plugins.PluginResource ( p ) ; }
Source:
public void index ( com.google.gerrit.reviewdb.client.Change change ) throws java.io.IOException { indexAsync ( change ) . checkedGet ( ) ; }

Target:
public void index ( com.google.gerrit.reviewdb.client.Change change ) throws java.io.IOException { index ( new com.google.gerrit.server.query.change.ChangeData ( change ) ) ; }
Source:
public final java.lang.Short value ( ) { return value ; }

Target:
public java.lang.Short value ( ) { return value ; }
Source:
public void preDisplay ( final java.util.List < com.google.gerrit.common.data.GroupDetail > result ) { groups.display ( result ) ; }

Target:
public void preDisplay ( final java.util.List < com.google.gerrit.reviewdb.client.AccountGroup > result ) { groups.display ( result ) ; }
Source:
public boolean canRebase ( ) { return ( isOwner ( ) ) || ( getRefControl ( ) . canSubmit ( ) ) ; }

Target:
public boolean canRebase ( ) { return ( ( isOwner ( ) ) || ( getRefControl ( ) . canSubmit ( ) ) ) || ( getRefControl ( ) . canRebase ( ) ) ; }
Source:
private static com.google.gerrit.server.index.Schema < com.google.gerrit.server.query.change.ChangeData > developer ( com.google.gerrit.server.index.FieldDef < com.google.gerrit.server.query.change.ChangeData , ? > ... fields ) { return new com.google.gerrit.server.index.Schema < com.google.gerrit.server.query.change.ChangeData > ( false , java.util.Arrays.asList ( fields ) ) ; }

Target:
private static com.google.gerrit.server.index.Schema < com.google.gerrit.server.query.change.ChangeData > developer ( com.google.gerrit.server.index.FieldDef < com.google.gerrit.server.query.change.ChangeData , ? > ... fields ) { return new com.google.gerrit.server.index.Schema ( false , java.util.Arrays.asList ( fields ) ) ; }
Source:
private com.cisco.gerrit.plugins.slack.config.ProjectConfig getConfig ( ) throws java.lang.Exception { return getConfig ( true ) ; }

Target:
private com.cisco.gerrit.plugins.slack.config.ProjectConfig getConfig ( ) throws java.lang.Exception { return getConfig ( true , true , true ) ; }
Source:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > byProjectCommit ( com.google.gerrit.reviewdb.client.Project.NameKey project , java.lang.String hash ) throws com.google.gwtorm.server.OrmException { return query ( com.google.gerrit.server.query.Predicate.and ( com.google.gerrit.server.query.change.InternalChangeQuery.project ( project ) , com.google.gerrit.server.query.change.InternalChangeQuery.commit ( com.google.gerrit.server.query.change.InternalChangeQuery.schema ( indexes ) , hash ) ) ) ; }

Target:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > byProjectCommit ( com.google.gerrit.reviewdb.client.Project.NameKey project , java.lang.String hash ) throws com.google.gwtorm.server.OrmException { return query ( com.google.gerrit.server.query.Predicate.and ( com.google.gerrit.server.query.change.InternalChangeQuery.project ( project ) , com.google.gerrit.server.query.change.InternalChangeQuery.commit ( hash ) ) ) ; }
Source:
protected void onInitUI ( ) { super . onInitUI ( ) ; initUUID ( ) ; initName ( ) ; initOwner ( ) ; initDescription ( ) ; initGroupOptions ( ) ; initGroupType ( ) ; }

Target:
protected void onInitUI ( ) { super . onInitUI ( ) ; initUUID ( ) ; initName ( ) ; initOwner ( ) ; initDescription ( ) ; initGroupOptions ( ) ; }
Source:
private void removeAccountIdLock ( com.google.gerrit.reviewdb.client.Account.Id id ) { synchronized ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexAccountRestApiServlet.accountIdLocks ) { com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexAccountRestApiServlet.accountIdLocks.remove ( id ) ; } }

Target:
private void removeAccountIdLock ( com.google.gerrit.reviewdb.client.Account.Id id ) { synchronized ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexAccountRestApiServlet.accountIdLocks ) { if ( ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexAccountRestApiServlet.accountIdLocks.get ( id ) . get ( ) ) == 0 ) { com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexAccountRestApiServlet.accountIdLocks.remove ( id ) ; } } }
Source:
public final java.lang.String getName ( ) { return name ; }

Target:
public java.lang.String getName ( ) { return name ; }
Source:
private void setDefaultFields ( javax.servlet.FilterConfig filterConfig ) throws javax.servlet.ServletException { setDefaultConfig ( filterConfig ) ; setDefaultRenderer ( filterConfig ) ; setDefaultUrls ( ) ; setDefaultAccess ( ) ; setDefaultVisibilityCache ( ) ; setDefaultTimeCache ( ) ; setDefaultBlameCache ( ) ; setDefaultGitwebRedirect ( ) ; setDefaultDateFormatterBuilder ( ) ; }

Target:
private void setDefaultFields ( javax.servlet.FilterConfig filterConfig ) throws javax.servlet.ServletException { setDefaultConfig ( filterConfig ) ; setDefaultRenderer ( filterConfig ) ; setDefaultUrls ( ) ; setDefaultAccess ( ) ; setDefaultVisibilityCache ( ) ; setDefaultTimeCache ( ) ; setDefaultBlameCache ( ) ; setDefaultGitwebRedirect ( ) ; }
Source:
java.net.SocketAddress getRemoteAddress ( ) { return remoteAddress ; }

Target:
public java.net.SocketAddress getRemoteAddress ( ) { return remoteAddress ; }
Source:
public void setValue ( T value ) { asEditor ( ) . setValue ( value ) ; }

Target:
public void setValue ( T value ) { this . value = value ; asEditor ( ) . setValue ( value ) ; }
Source:
public com.googlesource.gerrit.plugins.github.oauth.GitHubLogin get ( javax.servlet.http.HttpServletRequest request ) { com.googlesource.gerrit.plugins.github.oauth.GitHubLogin login = super . get ( request ) ; login.initOAuthCookie ( request ) ; return login ; }

Target:
public com.googlesource.gerrit.plugins.github.oauth.GitHubLogin get ( javax.servlet.http.HttpServletRequest request ) { return super . get ( request ) ; }
Source:
private com.cisco.gerrit.plugins.slack.config.ProjectConfig getConfig ( java.lang.String ignore ) throws java.lang.Exception { return getConfig ( ignore , true , true ) ; }

Target:
private com.cisco.gerrit.plugins.slack.config.ProjectConfig getConfig ( java.lang.String ignore ) throws java.lang.Exception { return getConfig ( ignore , true , true , true , true ) ; }
Source:
public static java.lang.String toPatch ( com.google.gerrit.client.DiffObject diffBase , com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName , com.google.gerrit.client.diff.DisplaySide side , int line ) { return com.google.gerrit.client.Dispatcher.toPatch ( "" , diffBase , revision , fileName , side , line ) ; }

Target:
public static java.lang.String toPatch ( @ com.google.gerrit.common.Nullable com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.client.DiffObject diffBase , com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName , com.google.gerrit.client.diff.DisplaySide side , int line ) { return com.google.gerrit.client.Dispatcher.toPatch ( "" , project , diffBase , revision , fileName , side , line ) ; }
Source:
public void display ( java.lang.String commitMessage , com.google.gerrit.client.ui.CommentLinkProcessor commentLinkProcessor ) { display ( null , null , false , commitMessage , commentLinkProcessor ) ; }

Target:
public void display ( java.lang.String commitMessage , com.google.gerrit.client.ui.CommentLinkProcessor commentLinkProcessor ) { display ( null , null , null , false , commitMessage , commentLinkProcessor ) ; }
Source:
public void setUserAccountId ( com.google.gerrit.reviewdb.client.Account.Id id ) { key = new com.google.gerrit.httpd.WebSessionManager.Key ( ( "id:" + id ) ) ; val = new com.google.gerrit.httpd.WebSessionManager.Val ( id , 0 , false , null , 0 , null ) ; }

Target:
public void setUserAccountId ( com.google.gerrit.reviewdb.client.Account.Id id ) { key = new com.google.gerrit.httpd.WebSessionManager.Key ( ( "id:" + id ) ) ; val = new com.google.gerrit.httpd.WebSessionManager.Val ( id , 0 , false , null , 0 , null , null ) ; }
Source:
public void put ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid , com.google.gerrit.common.data.GroupReference reference ) { byUUID.put ( uuid , reference ) ; }

Target:
public void put ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid , com.google.gerrit.common.data.GroupReference reference ) { if ( ( uuid == null ) || ( ( uuid.get ( ) ) == null ) ) { return ; } byUUID.put ( uuid , reference ) ; }
Source:
public boolean equals ( final java.lang.Object obj ) { if ( obj instanceof com.google.gerrit.reviewdb.TrackingId ) { final com.google.gerrit.reviewdb.TrackingId tr = ( ( com.google.gerrit.reviewdb.TrackingId ) ( obj ) ) ; return tr.key.equals ( tr.key ) ; } return false ; }

Target:
public boolean equals ( final java.lang.Object obj ) { if ( obj instanceof com.google.gerrit.reviewdb.TrackingId ) { final com.google.gerrit.reviewdb.TrackingId tr = ( ( com.google.gerrit.reviewdb.TrackingId ) ( obj ) ) ; return key.equals ( tr.key ) ; } return false ; }
Source:
public com.google.gerrit.server.CurrentUser getUser ( ) { return getRefControl ( ) . getUser ( ) ; }

Target:
private com.google.gerrit.server.CurrentUser getUser ( ) { return getRefControl ( ) . getUser ( ) ; }
Source:
private void blockCreateReference ( ) throws java.lang.Exception { com.google.gerrit.server.git.ProjectConfig cfg = projectCache.checkedGet ( allProjects ) . getConfig ( ) ; com.google.gerrit.server.project.Util.block ( cfg , Permission.CREATE , com.google.gerrit.server.group.SystemGroupBackend.ANONYMOUS_USERS , "refs/*" ) ; saveProjectConfig ( allProjects , cfg ) ; }

Target:
private void blockCreateReference ( ) throws java.lang.Exception { com.google.gerrit.server.git.ProjectConfig cfg = projectCache.checkedGet ( project ) . getConfig ( ) ; com.google.gerrit.server.project.Util.block ( cfg , Permission.CREATE , com.google.gerrit.server.group.SystemGroupBackend.ANONYMOUS_USERS , "refs/*" ) ; saveProjectConfig ( project , cfg ) ; }
Source:
public static < T > com.google.gerrit.rules.StoredValue < T > create ( java.lang.Class < T > clazz ) { return new com.google.gerrit.rules.StoredValue < T > ( new com.googlecode.prolog_cafe.lang.JavaObjectTerm ( clazz ) ) ; }

Target:
public static < T > com.google.gerrit.rules.StoredValue < T > create ( java.lang.Class < T > clazz ) { return new com.google.gerrit.rules.StoredValue < T > ( clazz ) ; }
Source:
public java.lang.Boolean call ( ) throws com.google.gerrit.server.permissions.PermissionBackendException , com.google.gerrit.server.project.NoSuchProjectException { return shouldReplicate ( controlFor ( project ) ) ; }

Target:
public java.lang.Boolean call ( ) throws com.google.gerrit.server.permissions.PermissionBackendException , com.google.gerrit.server.project.NoSuchProjectException { return shouldReplicate ( project ) ; }
Source:
private org.eclipse.jgit.lib.Repository openRepository ( com.google.gerrit.server.project.ProjectState project ) throws java.io.IOException , org.eclipse.jgit.errors.RepositoryNotFoundException { return repoManager.openRepository ( project.getProject ( ) . getNameKey ( ) ) ; }

Target:
private org.eclipse.jgit.lib.Repository openRepository ( com.google.gerrit.server.project.ProjectState project ) throws java.io.IOException , org.eclipse.jgit.errors.RepositoryNotFoundException { return repoManager.openRepository ( project.getNameKey ( ) ) ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.rules.RulesCache.class ) ; factory ( PrologEnvironment.Factory.class ) ; }

Target:
protected void configure ( ) { factory ( PrologEnvironment.Factory.class ) ; }
Source:
public void run ( ) { header.setReviewed ( ( ! ( header.isReviewed ( ) ) ) ) ; }

Target:
public void run ( ) { }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; schema = new com.google.gwtorm.schema.java.JavaSchemaModel ( com.google.gwtorm.data.PhoneBookDb.class ) ; people = schema.getRelation ( "people" ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { schema = new com.google.gwtorm.schema.java.JavaSchemaModel ( com.google.gwtorm.data.PhoneBookDb.class ) ; people = schema.getRelation ( "people" ) ; }
Source:
public java.lang.String getName ( ) { return new com.google.gerrit.server.AccountInfo ( getAccount ( ) ) . getName ( anonymousCowardName ) ; }

Target:
public java.lang.String getName ( ) { return getAccount ( ) . getName ( anonymousCowardName ) ; }
Source:
java.util.Set < com.google.gerrit.server.change.SuggestedReviewer > suggestReviewers ( com.google.gerrit.reviewdb.client.Change.Id changeId , java.lang.String query , java.util.Set < com.google.gerrit.reviewdb.client.Account.Id > candidates ) ;

Target:
java.util.Set < com.google.gerrit.server.change.SuggestedReviewer > suggestReviewers ( com.google.gerrit.reviewdb.client.Project.NameKey project , @ com.google.gerrit.common.Nullable com.google.gerrit.reviewdb.client.Change.Id changeId , @ com.google.gerrit.common.Nullable java.lang.String query , java.util.Set < com.google.gerrit.reviewdb.client.Account.Id > candidates ) ;
Source:
protected void formatChange ( ) throws com.google.gerrit.server.mail.EmailException { appendText ( velocifyFile ( "Comment.vm" ) ) ; }

Target:
public void formatChange ( ) throws com.google.gerrit.server.mail.EmailException { appendText ( velocifyFile ( "Comment.vm" ) ) ; }
Source:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > byCommit ( java.lang.String hash ) throws com.google.gwtorm.server.OrmException { return query ( com.google.gerrit.server.query.change.InternalChangeQuery.commit ( com.google.gerrit.server.query.change.InternalChangeQuery.schema ( indexes ) , hash ) ) ; }

Target:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > byCommit ( java.lang.String hash ) throws com.google.gwtorm.server.OrmException { return query ( com.google.gerrit.server.query.change.InternalChangeQuery.commit ( hash ) ) ; }
Source:
public void setFileHistory ( final java.lang.String pattern ) { if ( ( pattern != null ) && ( ! ( pattern.isEmpty ( ) ) ) ) { fileHistory = pattern ; } }

Target:
public void setFileHistory ( final java.lang.String pattern ) { fileHistory = pattern ; }
Source:
void manualFlush ( ) throws java.io.IOException { flush ( true , true ) ; if ( autoCommit ) { commit ( ) ; } }

Target:
void manualFlush ( ) throws java.io.IOException { flush ( ) ; if ( autoCommit ) { commit ( ) ; } }
Source:
private void logDebug ( java.lang.String msg , java.lang.Throwable t ) { if ( ( ( requestId ) != null ) && ( com.google.gerrit.server.update.BatchUpdate.log.isDebugEnabled ( ) ) ) { com.google.gerrit.server.update.BatchUpdate.log.debug ( ( ( requestId ) + msg ) , t ) ; } }

Target:
protected void logDebug ( java.lang.String msg , java.lang.Throwable t ) { if ( ( ( requestId ) != null ) && ( com.google.gerrit.server.update.BatchUpdate.log.isDebugEnabled ( ) ) ) { com.google.gerrit.server.update.BatchUpdate.log.debug ( ( ( requestId ) + msg ) , t ) ; } }
Source:
private com.google.gerrit.client.diff.DraftBox addNewDraft ( net.codemirror.lib.CodeMirror cm , int line ) { return addDraftBox ( com.google.gerrit.client.changes.CommentInfo.createLine ( path , getSideFromCm ( cm ) , ( line + 1 ) , null , null ) ) ; }

Target:
private com.google.gerrit.client.diff.DraftBox addNewDraft ( net.codemirror.lib.CodeMirror cm , int line ) { return addDraftBox ( com.google.gerrit.client.changes.CommentInfo.create ( path , getSideFromCm ( cm ) , ( line + 1 ) , null , null ) ) ; }
Source:
public void setStarredBy ( java.lang.Iterable < com.google.gerrit.reviewdb.client.Account.Id > starredByUser ) { this . starredByUser = starredByUser ; }

Target:
public void setStarredBy ( java.util.Set < com.google.gerrit.reviewdb.client.Account.Id > starredByUser ) { this . starredByUser = starredByUser ; }
Source:
public com.google.gerrit.common.data.PermissionRange getRange ( java.lang.String permission ) { if ( com.google.gerrit.common.data.Permission.isLabel ( permission ) ) { return com.google.gerrit.server.project.RefControl.toRange ( permission , access ( permission ) ) ; } return null ; }

Target:
public com.google.gerrit.common.data.PermissionRange getRange ( java.lang.String permission ) { if ( com.google.gerrit.common.data.Permission.isLabel ( permission ) ) { return toRange ( permission , access ( permission ) ) ; } return null ; }
Source:
public void setUp ( ) throws java.lang.Exception { admin = accounts.create ( "admin" , "Administrators" ) ; session = new com.google.gerrit.acceptance.RestSession ( admin ) ; db = reviewDbProvider.open ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { admin = accounts.create ( "admin" , "Administrators" ) ; session = new com.google.gerrit.acceptance.RestSession ( server , admin ) ; db = reviewDbProvider.open ( ) ; }
Source:
protected < T > T buildJson ( java.lang.String path , java.lang.Class < T > classOfT ) throws java.lang.Exception { return new com.google.gson.Gson ( ) . fromJson ( buildJsonRaw ( path , "" ) , classOfT ) ; }

Target:
protected < T > T buildJson ( java.lang.String path , java.lang.Class < T > classOfT ) throws java.lang.Exception { return buildJson ( path , classOfT , "" ) ; }
Source:
private void deleteDraftComment ( com.google.gerrit.reviewdb.client.PatchLineComment c ) throws com.google.gwtorm.server.OrmException { createDraftUpdateIfNull ( c ) ; draftUpdate.deleteComment ( c ) ; }

Target:
private void deleteDraftComment ( com.google.gerrit.reviewdb.client.PatchLineComment c ) throws com.google.gwtorm.server.OrmException { createDraftUpdateIfNull ( ) ; draftUpdate.deleteComment ( c ) ; }
Source:
public void removeKeyboardListener ( com.google.gwt.user.client.ui.KeyboardListener listener ) { focusy.removeKeyboardListener ( listener ) ; }

Target:
public void removeKeyboardListener ( com.google.gwt.user.client.ui.KeyboardListener listener ) { if ( ( focusy ) != null ) { focusy.removeKeyboardListener ( listener ) ; } }
Source:
private static com.google.gerrit.server.account.AccountState newState ( com.google.gerrit.reviewdb.client.Account account ) { return new com.google.gerrit.server.account.AccountState ( new com.google.gerrit.server.config.AllUsersName ( com.google.gerrit.server.config.AllUsersNameProvider.DEFAULT ) , account , com.google.common.collect.ImmutableSet.of ( ) , com.google.common.collect.ImmutableSet.of ( ) , new java.util.HashMap < > ( ) ) ; }

Target:
private static com.google.gerrit.server.account.AccountState newState ( com.google.gerrit.reviewdb.client.Account account ) { return new com.google.gerrit.server.account.AccountState ( new com.google.gerrit.server.config.AllUsersName ( com.google.gerrit.server.config.AllUsersNameProvider.DEFAULT ) , account , com.google.common.collect.ImmutableSet.of ( ) , new java.util.HashMap < > ( ) ) ; }
Source:
public void includeExistingGroup_OK ( ) throws java.lang.Exception { group ( "newGroup" ) ; PUT ( "/groups/Administrators/groups/newGroup" ) . consume ( ) ; org.junit.Assert.assertEquals ( HttpStatus.SC_OK , PUT ( "/groups/Administrators/groups/newGroup" ) . getStatusCode ( ) ) ; }

Target:
public void includeExistingGroup_OK ( ) throws java.lang.Exception { group ( "newGroup" ) ; PUT ( "/groups/Administrators/groups/newGroup" ) . consume ( ) ; com.google.common.truth.Truth.assertThat ( PUT ( "/groups/Administrators/groups/newGroup" ) . getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_OK ) ; }
Source:
private static void addApproval ( com.google.gerrit.extensions.common.LabelInfo label , com.google.gerrit.extensions.common.ApprovalInfo approval ) { if ( ( label.all ) == null ) { label.all = com.google.common.collect.Lists.newArrayList ( ) ; } label.all.add ( approval ) ; }

Target:
private static void addApproval ( com.google.gerrit.extensions.common.LabelInfo label , com.google.gerrit.extensions.common.ApprovalInfo approval ) { if ( ( label.all ) == null ) { label.all = new java.util.ArrayList < > ( ) ; } label.all.add ( approval ) ; }
Source:
public void doChangeRestoredHook ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.Account account , java.lang.String reason , com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException ;

Target:
public void doChangeRestoredHook ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.reviewdb.client.Account account , com.google.gerrit.reviewdb.client.PatchSet patchSet , java.lang.String reason , com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException ;
Source:
private void assertParseSucceeds ( java.lang.String body ) throws java.lang.Exception { try ( com.google.gerrit.server.notedb.ChangeNotesParser parser = newParser ( writeCommit ( body ) ) ) { parser.parseAll ( ) ; } }

Target:
private void assertParseSucceeds ( java.lang.String body ) throws java.lang.Exception { assertParseSucceeds ( writeCommit ( body ) ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( topic.canEdit ( ) ) { topic.onEdit ( ) ; } }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { topic.onEdit ( ) ; }
Source:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > indexAsync ( 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 ) , false ) ) : 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 > indexAsync ( com.google.gerrit.reviewdb.client.Change change ) { return ( executor ) != null ? submit ( new com.google.gerrit.server.index.ChangeIndexer.Task ( change , false ) ) : com.google.common.util.concurrent.Futures.< java.lang.Object , java.io.IOException > immediateCheckedFuture ( null ) ; }
Source:
public void onCellClicked ( com.google.gwt.user.client.ui.SourcesTableEvents sender , int row , int cell ) { movePointerTo ( row ) ; }

Target:
public void onCellClicked ( com.google.gwt.user.client.ui.SourcesTableEvents sender , int row , int cell ) { if ( row > 0 ) { movePointerTo ( row ) ; } }
Source:
private static void assertNotUsed ( java.sql.PreparedStatement insert ) { org.mockito.Mockito.verifyZeroInteractions ( insert ) ; }

Target:
protected static void assertNotUsed ( java.sql.PreparedStatement insert ) { org.mockito.Mockito.verifyZeroInteractions ( insert ) ; }
Source:
private static com.google.gerrit.server.query.change.RegexPathPredicate predicate ( java.lang.String pattern ) { return new com.google.gerrit.server.query.change.RegexPathPredicate ( ChangeQueryBuilder.FIELD_PATH , pattern ) ; }

Target:
private static com.google.gerrit.server.query.change.RegexPathPredicate predicate ( java.lang.String pattern ) { return new com.google.gerrit.server.query.change.RegexPathPredicate ( pattern ) ; }
Source:
private void log ( final int rc ) { synchronized ( this ) { if ( ! ( logged ) ) { ctx.finished = java.lang.System.currentTimeMillis ( ) ; log.onExecute ( ctx , commandLine , rc ) ; logged = true ; } } }

Target:
private void log ( final int rc ) { synchronized ( this ) { if ( ! ( logged ) ) { log.onExecute ( rc ) ; logged = true ; } } }
Source:
public com.google.gerrit.pgm.util.LibraryDownloader setSHA1 ( final java.lang.String sha1 ) { this . sha1 = sha1 ; return this ; }

Target:
public void setSHA1 ( final java.lang.String sha1 ) { this . sha1 = sha1 ; }
Source:
public void testCreateSchema_DefaultAccess_Administrators ( ) throws com.google.gwtorm.client.OrmException { db.create ( ) ; final com.google.gerrit.reviewdb.SystemConfig config = getSystemConfig ( ) ; assertDefaultRight ( config.adminGroupId , ApprovalCategory.READ , 1 , 1 ) ; }

Target:
public void testCreateSchema_DefaultAccess_Administrators ( ) throws com.google.gwtorm.client.OrmException { db.create ( ) ; final com.google.gerrit.reviewdb.SystemConfig config = db.getSystemConfig ( ) ; assertDefaultRight ( config.adminGroupId , ApprovalCategory.READ , 1 , 1 ) ; }
Source:
public void abandon ( ) throws com.google.gerrit.extensions.restapi.RestApiException , java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.PushOneCommit.Result r = createChange ( ) ; gApi.changes ( ) . id ( ( "p~master~" + ( r.getChangeId ( ) ) ) ) . abandon ( ) ; }

Target:
public void abandon ( ) throws com.google.gerrit.extensions.restapi.RestApiException , java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.PushOneCommit.Result r = createChange ( ) ; gApi.changes ( ) . id ( r.getChangeId ( ) ) . abandon ( ) ; }
Source:
public void createProjectDuplicate ( ) throws java.lang.Exception { com.google.gerrit.extensions.api.projects.ProjectInput in = new com.google.gerrit.extensions.api.projects.ProjectInput ( ) ; in.name = "baz" ; gApi.projects ( ) . create ( in ) ; gApi.projects ( ) . create ( in ) ; }

Target:
public void createProjectDuplicate ( ) throws java.lang.Exception { com.google.gerrit.extensions.api.projects.ProjectInput in = new com.google.gerrit.extensions.api.projects.ProjectInput ( ) ; in.name = name ( "baz" ) ; gApi.projects ( ) . create ( in ) ; gApi.projects ( ) . create ( in ) ; }
Source:
public java.util.List < com.gitblit.models.TeamModel > getAllTeams ( ) { return java.util.Collections.emptyList ( ) ; }

Target:
public java.util.List < com.gitblit.models.TeamModel > getAllTeams ( ) { return null ; }
Source:
com.googlesrouce.gerrit.plugins.github.git.ReplicateProjectStep create ( @ com.google.inject.assistedinject.Assisted ( value = "organisation" ) java.lang.String organisation , @ com.google.inject.assistedinject.Assisted ( value = "name" ) java.lang.String repository , @ com.google.inject.assistedinject.Assisted com.googlesource.gerrit.plugins.github.oauth.GitHubLogin ghLogin ) ;

Target:
com.googlesrouce.gerrit.plugins.github.git.ReplicateProjectStep create ( @ com.google.inject.assistedinject.Assisted ( value = "organisation" ) java.lang.String organisation , @ com.google.inject.assistedinject.Assisted ( value = "name" ) java.lang.String repository ) ;
Source:
public void getTagOfNonVisibleProjectWithApi ( ) throws java.lang.Exception { blockRead ( project , "refs/*" ) ; exception.expect ( com.google.gerrit.extensions.restapi.ResourceNotFoundException.class ) ; gApi.projects ( ) . name ( project.get ( ) ) . tag ( "tag" ) . get ( ) ; }

Target:
public void getTagOfNonVisibleProjectWithApi ( ) throws java.lang.Exception { blockRead ( "refs/*" ) ; exception.expect ( com.google.gerrit.extensions.restapi.ResourceNotFoundException.class ) ; gApi.projects ( ) . name ( project.get ( ) ) . tag ( "tag" ) . get ( ) ; }
Source:
public com.googlesource.gerrit.plugins.findowners.OwnersDb call ( ) { com.googlesource.gerrit.plugins.findowners.Cache.log.trace ( ( "Create new OwnersDb, key=" + key ) ) ; return new com.googlesource.gerrit.plugins.findowners.OwnersDb ( key , repository , branch , files ) ; }

Target:
public com.googlesource.gerrit.plugins.findowners.OwnersDb call ( ) { com.googlesource.gerrit.plugins.findowners.Cache.log.trace ( ( "Create new OwnersDb, key=" + key ) ) ; return new com.googlesource.gerrit.plugins.findowners.OwnersDb ( key , repository , project , branch , files ) ; }
Source:
public void submit ( ) throws com.google.gerrit.extensions.restapi.RestApiException { com.google.gerrit.extensions.api.changes.SubmitInput in = new com.google.gerrit.extensions.api.changes.SubmitInput ( ) ; in.waitForMerge = true ; submit ( in ) ; }

Target:
public void submit ( ) throws com.google.gerrit.extensions.restapi.RestApiException { com.google.gerrit.extensions.api.changes.SubmitInput in = new com.google.gerrit.extensions.api.changes.SubmitInput ( ) ; submit ( in ) ; }
Source:
public java.lang.String getServletPath ( ) { return ( ( javax.servlet.http.HttpServletRequest ) ( getRequest ( ) ) ) . getRequestURI ( ) . substring ( contextPath.length ( ) ) ; }

Target:
public java.lang.String getServletPath ( ) { return getRequestURI ( ) . substring ( contextPath.length ( ) ) ; }
Source:
private void ensureOptionsInitialized ( ) { if ( ( optionsList ) == null ) { help = new com.google.gerrit.util.cli.CmdLineParser.HelpOption ( ) ; optionsList = com.google.common.collect.Lists.newArrayList ( ) ; addOption ( help , help ) ; } }

Target:
private void ensureOptionsInitialized ( ) { if ( ( optionsList ) == null ) { help = new com.google.gerrit.util.cli.CmdLineParser.HelpOption ( ) ; optionsList = new java.util.ArrayList < > ( ) ; addOption ( help , help ) ; } }
Source:
protected void init ( ) throws com.google.gerrit.common.errors.EmailException { super . init ( ) ; ccAllApprovals ( ) ; bccStarredBy ( ) ; includeWatchers ( NotifyType.ABANDONED_CHANGES ) ; includeWatchers ( NotifyType.ALL_COMMENTS ) ; }

Target:
protected void init ( ) throws com.google.gerrit.common.errors.EmailException { super . init ( ) ; ccAllApprovals ( ) ; bccStarredBy ( ) ; includeWatchers ( NotifyType.ABANDONED_CHANGES ) ; }
Source:
public boolean isPatchVisible ( com.google.gerrit.reviewdb.client.PatchSet ps , com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException { if ( ( ps.isDraft ( ) ) && ( ! ( isDraftVisible ( db ) ) ) ) { return false ; } return isVisible ( db ) ; }

Target:
public boolean isPatchVisible ( com.google.gerrit.reviewdb.client.PatchSet ps , com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException { if ( ( ps.isDraft ( ) ) && ( ! ( isDraftVisible ( db , null ) ) ) ) { return false ; } return isVisible ( db ) ; }
Source:
protected abstract Project.NameKey getProjectName ( ) ;

Target:
public abstract Project.NameKey getProjectName ( ) ;
Source:
com.google.gerrit.server.git.EmailMerge create ( com.google.gerrit.reviewdb.client.Change.Id changeId , com.google.gerrit.reviewdb.client.Account.Id submitter ) ;

Target:
com.google.gerrit.server.git.EmailMerge create ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id changeId , com.google.gerrit.reviewdb.client.Account.Id submitter ) ;
Source:
public void postEvent ( com.google.gerrit.server.events.Event event , com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException { fireEvent ( event , db ) ; }

Target:
public void postEvent ( com.google.gerrit.server.events.Event event ) throws com.google.gwtorm.server.OrmException { fireEvent ( event ) ; }
Source:
public int hashCode ( ) { return ( ( categoryId.hashCode ( ) ) * 31 ) + ( value ) ; }

Target:
public short get ( ) { return value ; }
Source:
public void addMembersWithAtSign ( ) throws java.lang.Exception { java.lang.String g = createGroup ( "users" ) ; com.google.gerrit.acceptance.TestAccount u10 = accounts.create ( "u10" , "u10@example.com" , "Full Name 10" ) ; com.google.gerrit.acceptance.TestAccount u11_at = accounts.create ( "u11@something" , "u11@example.com" , "Full Name 11 With At" ) ; com.google.gerrit.acceptance.TestAccount u11 = accounts.create ( "u11" , "u11.another@example.com" , "Full Name 11 Without At" ) ; gApi.groups ( ) . id ( g ) . addMembers ( u10.username , u11_at.username ) ; assertMembers ( g , u10 , u11_at ) ; }

Target:
public void addMembersWithAtSign ( ) throws java.lang.Exception { java.lang.String g = createGroup ( "users" ) ; com.google.gerrit.acceptance.TestAccount u10 = accounts.create ( "u10" , "u10@example.com" , "Full Name 10" ) ; com.google.gerrit.acceptance.TestAccount u11_at = accounts.create ( "u11@something" , "u11@example.com" , "Full Name 11 With At" ) ; accounts.create ( "u11" , "u11.another@example.com" , "Full Name 11 Without At" ) ; gApi.groups ( ) . id ( g ) . addMembers ( u10.username , u11_at.username ) ; assertMembers ( g , u10 , u11_at ) ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.pgm.util.ConsoleUI.class ) . toInstance ( init.ui ) ; bind ( com.google.gerrit.pgm.init.InitFlags.class ) . toInstance ( init.flags ) ; bind ( com.google.gerrit.server.git.GitRepositoryManager.class ) . to ( com.google.gerrit.server.git.LocalDiskRepositoryManager.class ) ; bind ( com.google.gerrit.server.git.GitProjectImporter.class ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.pgm.util.ConsoleUI.class ) . toInstance ( init.ui ) ; bind ( com.google.gerrit.pgm.init.InitFlags.class ) . toInstance ( init.flags ) ; bind ( com.google.gerrit.server.git.GitRepositoryManager.class ) . to ( com.google.gerrit.server.git.LocalDiskRepositoryManager.class ) ; }
Source:
protected Account.Id getAccountId ( ) { com.google.gerrit.server.CurrentUser u = currentUser.get ( ) ; if ( u.isIdentifiedUser ( ) ) { return ( ( com.google.gerrit.server.IdentifiedUser ) ( u ) ) . getAccountId ( ) ; } return null ; }

Target:
protected Account.Id getAccountId ( ) { com.google.gerrit.server.CurrentUser u = currentUser.get ( ) ; return u.isIdentifiedUser ( ) ? u.getAccountId ( ) : null ; }
Source:
public void onFailure ( java.lang.Throwable caught ) { if ( ( ! ( isNoSuchEntity ( caught ) ) ) && ( ( rpcSequence ) == rpcseq ) ) { super . onFailure ( caught ) ; } }

Target:
public void onFailure ( final java.lang.Throwable caught ) { if ( ( rpcSequence ) == rpcseq ) { super . onFailure ( caught ) ; } }
Source:
protected void preDisplay ( final java.util.List < com.google.gerrit.client.reviewdb.Project > result ) { projects.display ( result ) ; projects.finishDisplay ( true ) ; }

Target:
protected void preDisplay ( final java.util.List < com.google.gerrit.client.reviewdb.Project > result ) { projects.display ( result ) ; projects.finishDisplay ( ) ; }
Source:
private com.google.gerrit.extensions.common.FixReplacementInfo toFixReplacementInfo ( com.google.gerrit.reviewdb.client.FixReplacement fixReplacement ) { com.google.gerrit.extensions.common.FixReplacementInfo fixReplacementInfo = new com.google.gerrit.extensions.common.FixReplacementInfo ( ) ; fixReplacementInfo.range = toRange ( fixReplacement.range ) ; fixReplacementInfo.replacement = fixReplacement.replacement ; return fixReplacementInfo ; }

Target:
private com.google.gerrit.extensions.common.FixReplacementInfo toFixReplacementInfo ( com.google.gerrit.reviewdb.client.FixReplacement fixReplacement ) { com.google.gerrit.extensions.common.FixReplacementInfo fixReplacementInfo = new com.google.gerrit.extensions.common.FixReplacementInfo ( ) ; fixReplacementInfo.path = fixReplacement.path ; fixReplacementInfo.range = toRange ( fixReplacement.range ) ; fixReplacementInfo.replacement = fixReplacement.replacement ; return fixReplacementInfo ; }
Source:
public static java.lang.String cacheNameOf ( java.lang.String plugin , java.lang.String name ) { if ( "gerrit" . equals ( plugin ) ) { return name ; } else { return ( plugin + "-" ) + name ; } }

Target:
public static java.lang.String cacheNameOf ( java.lang.String plugin , java.lang.String name ) { if ( "gerrit" . equals ( plugin ) ) { return name ; } return ( plugin + "-" ) + name ; }
Source:
public static com.google.gerrit.server.index.IndexConfig createDefault ( ) { return new com.google.gerrit.server.index.IndexConfig ( java.lang.Integer.MAX_VALUE ) ; }

Target:
public static com.google.gerrit.server.index.IndexConfig createDefault ( ) { return com.google.gerrit.server.index.IndexConfig.create ( java.lang.Integer.MAX_VALUE ) ; }
Source:
protected final void logDebug ( java.lang.String msg , java.lang.Object ... args ) { if ( com.google.gerrit.server.git.strategy.SubmitStrategyOp.log.isDebugEnabled ( ) ) { com.google.gerrit.server.git.strategy.SubmitStrategyOp.log.debug ( ( ( ( "[" + ( this . args.submissionId ) ) + "]" ) + msg ) , args ) ; } }

Target:
protected final void logDebug ( java.lang.String msg , java.lang.Object ... args ) { if ( com.google.gerrit.server.git.strategy.SubmitStrategyOp.log.isDebugEnabled ( ) ) { com.google.gerrit.server.git.strategy.SubmitStrategyOp.log.debug ( ( ( this . args.submissionId ) + msg ) , args ) ; } }
Source:
public com.google.gerrit.reviewdb.Change update ( com.google.gerrit.reviewdb.Change change ) { change.setCurrentPatchSet ( patchSetInfoFactory.get ( newCommit , ps.getId ( ) ) ) ; return change ; }

Target:
public com.google.gerrit.reviewdb.client.Change update ( com.google.gerrit.reviewdb.client.Change change ) { change.setCurrentPatchSet ( patchSetInfoFactory.get ( newCommit , ps.getId ( ) ) ) ; return change ; }
Source:
public void onSuccess ( final java.util.List < com.google.gerrit.client.reviewdb.AccountSshKey > result ) { keys.display ( result ) ; keys.finishDisplay ( true ) ; if ( result.isEmpty ( ) ) { showAddKeyBlock ( true ) ; } }

Target:
public void onSuccess ( final java.util.List < com.google.gerrit.client.reviewdb.AccountSshKey > result ) { keys.display ( result ) ; if ( result.isEmpty ( ) ) { showAddKeyBlock ( true ) ; } }
Source:
protected void submit ( java.lang.String changeId ) throws java.lang.Exception { submit ( changeId , new com.google.gerrit.extensions.api.changes.SubmitInput ( ) , null , null , true ) ; }

Target:
protected void submit ( java.lang.String changeId ) throws java.lang.Exception { submit ( changeId , new com.google.gerrit.extensions.api.changes.SubmitInput ( ) , null , null ) ; }
Source:
public com.google.gerrit.server.plugins.JarScanner.ExtensionMetaData apply ( com.google.gerrit.server.plugins.JarScanner.ClassData classData ) { return new com.google.gerrit.server.plugins.JarScanner.ExtensionMetaData ( classData.className , classData.annotationValue , classData.interfaces ) ; }

Target:
public com.google.gerrit.server.plugins.JarScanner.ExtensionMetaData apply ( com.google.gerrit.server.plugins.JarScanner.ClassData classData ) { return new com.google.gerrit.server.plugins.JarScanner.ExtensionMetaData ( classData.className , classData.annotationValue ) ; }
Source:
private static int posInt ( final org.spearce.jgit.transport.RemoteConfig rc , final org.spearce.jgit.lib.RepositoryConfig cfg , final java.lang.String name , final int defValue ) { return java.lang.Math.max ( 0 , cfg.getInt ( "remote" , rc.getName ( ) , name , defValue ) ) ; }

Target:
private static int getInt ( final org.spearce.jgit.transport.RemoteConfig rc , final org.spearce.jgit.lib.RepositoryConfig cfg , final java.lang.String name , final int defValue ) { return cfg.getInt ( "remote" , rc.getName ( ) , name , defValue ) ; }
Source:
com.google.gerrit.server.git.CreateCodeReviewNotes create ( com.google.gerrit.reviewdb.server.ReviewDb reviewDb , org.eclipse.jgit.lib.Repository db ) ;

Target:
com.google.gerrit.server.git.CreateCodeReviewNotes create ( com.google.gerrit.reviewdb.server.ReviewDb reviewDb , com.google.gerrit.reviewdb.client.Project.NameKey project , org.eclipse.jgit.lib.Repository db ) ;
Source:
, @ com.google.gerrit.acceptance.GerritConfig ( name = "a.b" , value = "c" ) } ) public void testMultiple ( ) { org.junit.Assert.assertEquals ( "z" , serverConfig.getString ( "x" , null , "y" ) ) ; org.junit.Assert.assertEquals ( "c" , serverConfig.getString ( "a" , null , "b" ) ) ; }

Target:
, @ com.google.gerrit.acceptance.GerritConfig ( name = "a.b" , value = "c" ) } ) public void testMultiple ( ) { com.google.common.truth.Truth.assertThat ( serverConfig.getString ( "x" , null , "y" ) ) . isEqualTo ( "z" ) ; com.google.common.truth.Truth.assertThat ( serverConfig.getString ( "a" , null , "b" ) ) . isEqualTo ( "c" ) ; }
Source:
public void nonExistingConfig ( ) { com.google.gerrit.server.project.ProjectState state = projectCache.get ( project ) ; org.junit.Assert.assertEquals ( "" , state.getConfig ( "test.config" ) . get ( ) . toText ( ) ) ; }

Target:
public void nonExistingConfig ( ) { com.google.gerrit.server.project.ProjectState state = projectCache.get ( project ) ; com.google.common.truth.Truth.assertThat ( state.getConfig ( "test.config" ) . get ( ) . toText ( ) ) . isEqualTo ( "" ) ; }
Source:
com.google.gerrit.server.query.change.ChangeData convert ( com.google.gerrit.reviewdb.client.Change t ) { return new com.google.gerrit.server.query.change.ChangeData ( t ) ; }

Target:
com.google.gerrit.server.query.change.ChangeData convert ( com.google.gerrit.reviewdb.client.Change t ) { return factory.create ( db.get ( ) , t ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { admins = groupCache.get ( new com.google.gerrit.reviewdb.client.AccountGroup.NameKey ( "Administrators" ) ) . getGroupUUID ( ) ; setUpPermissions ( ) ; setUpChanges ( ) ; atrScope.disableDb ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { admins = groupCache.get ( new com.google.gerrit.reviewdb.client.AccountGroup.NameKey ( "Administrators" ) ) . getGroupUUID ( ) ; setUpPermissions ( ) ; setUpChanges ( ) ; }
Source:
protected void doStart ( ) throws java.lang.Exception { setClassLoader ( new com.google.gerrit.gwtdebug.GerritDebugLauncher.MyWebAppContext.MyLoader ( ) ) ; super . doStart ( ) ; }

Target:
protected void doStart ( ) throws java.lang.Exception { setClassLoader ( new com.google.gerrit.gwtdebug.GerritDebugLauncher.MyWebAppContext.MyLoader ( this ) ) ; super . doStart ( ) ; }
Source:
com.google.gerrit.testutil.InMemoryDatabase getInMemoryDatabase ( @ com.google.gerrit.server.schema.Current com.google.gerrit.server.schema.SchemaVersion schemaVersion , com.google.gerrit.server.schema.SchemaCreator schemaCreator ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.testutil.InMemoryDatabase ( schemaVersion , schemaCreator ) ; }

Target:
com.google.gerrit.testutil.InMemoryDatabase getInMemoryDatabase ( com.google.gerrit.server.schema.SchemaCreator schemaCreator ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.testutil.InMemoryDatabase ( schemaCreator ) ; }
Source:
private com.google.gerrit.server.notedb.ChangeNotesParser newParser ( org.eclipse.jgit.lib.ObjectId tip ) throws java.lang.Exception { return new com.google.gerrit.server.notedb.ChangeNotesParser ( newChange ( ) , tip , walk , repoManager ) ; }

Target:
private com.google.gerrit.server.notedb.ChangeNotesParser newParser ( org.eclipse.jgit.lib.ObjectId tip ) throws java.lang.Exception { com.google.gerrit.reviewdb.client.Change c = newChange ( ) ; return new com.google.gerrit.server.notedb.ChangeNotesParser ( c.getProject ( ) , c.getId ( ) , tip , walk , repoManager ) ; }
Source:
public com.google.gerrit.pgm.util.LibraryDownloader setName ( final java.lang.String name ) { this . name = name ; return this ; }

Target:
public void setName ( final java.lang.String name ) { this . name = name ; }
Source:
public void run ( ) { this . handleEmails ( ) ; }

Target:
public void run ( ) { this . handleEmails ( true ) ; }
Source:
public static org.apache.lucene.index.Term idTerm ( com.google.gerrit.reviewdb.client.Change.Id id ) { return com.google.gerrit.lucene.QueryBuilder.intTerm ( com.google.gerrit.server.index.change.ChangeField.LEGACY_ID.getName ( ) , id.get ( ) ) ; }

Target:
static org.apache.lucene.index.Term idTerm ( com.google.gerrit.reviewdb.client.Change.Id id ) { return com.google.gerrit.lucene.QueryBuilder.intTerm ( com.google.gerrit.server.index.change.ChangeField.LEGACY_ID.getName ( ) , id.get ( ) ) ; }
Source:
protected java.lang.String getRefName ( ) { return "refs/my/config" ; }

Target:
protected java.lang.String getRefName ( ) { return ref ; }
Source:
private void setListBox ( final com.google.gwt.user.client.ui.ListBox f , final short defaultValue , final short currentValue ) { setListBox ( f , java.lang.String.valueOf ( defaultValue ) , java.lang.String.valueOf ( currentValue ) ) ; }

Target:
private void setListBox ( final com.google.gwt.user.client.ui.ListBox f , final int defaultValue , final int currentValue ) { setListBox ( f , java.lang.String.valueOf ( defaultValue ) , java.lang.String.valueOf ( currentValue ) ) ; }
Source:
com.google.gerrit.extensions.auth.oauth.OAuthToken getAccessToken ( com.google.gerrit.extensions.auth.oauth.OAuthToken requestToken , com.google.gerrit.extensions.auth.oauth.OAuthVerifier verifier ) ;

Target:
com.google.gerrit.extensions.auth.oauth.OAuthToken getAccessToken ( com.google.gerrit.extensions.auth.oauth.OAuthVerifier verifier ) ;
Source:
protected void setDownloadHeaders ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res , java.lang.String filename , java.lang.String contentType ) { res.setContentType ( contentType ) ; res.setHeader ( com.google.common.net.HttpHeaders.CONTENT_DISPOSITION , ( "attachment; filename=" + filename ) ) ; setCacheHeaders ( req , res ) ; }

Target:
protected void setDownloadHeaders ( javax.servlet.http.HttpServletResponse res , java.lang.String filename , java.lang.String contentType ) { res.setContentType ( contentType ) ; res.setHeader ( com.google.common.net.HttpHeaders.CONTENT_DISPOSITION , ( "attachment; filename=" + filename ) ) ; setCacheHeaders ( res ) ; }
Source:
private native < V > void copy ( java.util.Map < java.lang.String , V > r , com.google.gwt.core.client.JavaScriptObject jsObject ) ;

Target:
private native void copy ( java.util.Map < java.lang.String , V > r , com.google.gwt.core.client.JavaScriptObject jsObject ) ;
Source:
private static final native void init ( java.lang.String r , java.lang.String o ) ;

Target:
private static final native void init ( java.lang.String e , java.lang.String r , java.lang.String o ) ;