auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.account.AccountState > preferredEmail ( java.lang.String email ) { return new com.google.gerrit.server.query.account.AccountPredicates.AccountPredicate ( com.google.gerrit.server.index.account.AccountField.PREFERRED_EMAIL , AccountQueryBuilder.FIELD_PREFERRED_EMAIL , email.toLowerCase ( ) ) ; }

Target:
public static com.google.gerrit.index.query.Predicate < com.google.gerrit.server.account.AccountState > preferredEmail ( java.lang.String email ) { return new com.google.gerrit.server.query.account.AccountPredicates.AccountPredicate ( com.google.gerrit.server.index.account.AccountField.PREFERRED_EMAIL , AccountQueryBuilder.FIELD_PREFERRED_EMAIL , email.toLowerCase ( ) ) ; }
Source:
public void onSend ( ) { Util.MANAGE_SVC.revertChange ( patchSet.getId ( ) , getMessageText ( ) , createCallback ( ) ) ; }

Target:
public void onSend ( ) { Util.MANAGE_SVC.abandonChange ( patchSet.getId ( ) , getMessageText ( ) , createCallback ( ) ) ; }
Source:
public java.lang.String getETag ( ) { return change.getETag ( ) ; }

Target:
void prepareETag ( com.google.common.hash.Hasher h , com.google.gerrit.server.CurrentUser user ) { change.prepareETag ( h , user ) ; }
Source:
public static java.lang.String nameOf ( java.io.File plugin ) { return com.google.gerrit.server.plugins.PluginLoader.nameOf ( plugin.getName ( ) ) ; }

Target:
public static java.lang.String nameOf ( java.nio.file.Path plugin ) { return com.google.gerrit.server.plugins.PluginLoader.nameOf ( plugin.getFileName ( ) . toString ( ) ) ; }
Source:
public void visit ( org.pegdown.ast.ExpLinkNode node ) { html.open ( "a" ) . attribute ( "href" , node.url ) . attribute ( "title" , node.title ) ; visitChildren ( node ) ; html.close ( "a" ) ; }

Target:
public void visit ( org.pegdown.ast.ExpLinkNode node ) { html.open ( "a" ) . attribute ( "href" , href ( node.url ) ) . attribute ( "title" , node.title ) ; visitChildren ( node ) ; html.close ( "a" ) ; }
Source:
boolean hasNext ( ) { return hasNext ; }

Target:
java.lang.Runnable reviewedAndNext ( ) { return new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { if ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) { reviewed.setValue ( true , true ) ; } navigate ( Direction.NEXT ) . run ( ) ; } } ; }
Source:
public void indexChangeOnNonVisibleBranch ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; blockRead ( "refs/heads/master" ) ; userSession.post ( ( ( "/changes/" + changeId ) + "/index/" ) ) . assertNotFound ( ) ; }

Target:
public void indexChangeOnNonVisibleBranch ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; blockRead ( "refs/heads/master" ) ; userRestSession.post ( ( ( "/changes/" + changeId ) + "/index/" ) ) . assertNotFound ( ) ; }
Source:
public void index ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { index.apply ( account , new com.google.gerrit.server.account.Index.Input ( ) ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot index account" , e ) ; } }

Target:
public void index ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { index.apply ( account , new com.google.gerrit.extensions.common.Input ( ) ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot index account" , e ) ; } }
Source:
public boolean canSubmit ( ) { return canPerform ( Permission.SUBMIT ) ; }

Target:
public boolean canSubmit ( ) { if ( GitRepositoryManager.REF_CONFIG.equals ( refName ) ) { return getProjectControl ( ) . isOwner ( ) ; } return canPerform ( Permission.SUBMIT ) ; }
Source:
public void formatSeconds ( ) { com.google.gerrit.client.RelativeDateFormatterTest.assertFormat ( 1 , com.google.gerrit.client.RelativeDateFormatter.SECOND_IN_MILLIS , "1 seconds ago" ) ; com.google.gerrit.client.RelativeDateFormatterTest.assertFormat ( 89 , com.google.gerrit.client.RelativeDateFormatter.SECOND_IN_MILLIS , "89 seconds ago" ) ; }

Target:
public void formatSeconds ( ) { com.google.gerrit.client.RelativeDateFormatterTest.assertFormat ( 1 , com.google.gerrit.client.RelativeDateFormatter.SECOND_IN_MILLIS , "1 second ago" ) ; com.google.gerrit.client.RelativeDateFormatterTest.assertFormat ( 89 , com.google.gerrit.client.RelativeDateFormatter.SECOND_IN_MILLIS , "89 seconds ago" ) ; }
Source:
public void all ( ) { com.google.common.truth.Truth.assertThat ( com.google.gerrit.testutil.IndexVersionsTest.get ( com.google.gerrit.testutil.IndexVersions.ALL ) ) . containsExactlyElementsIn ( com.google.gerrit.testutil.IndexVersionsTest.SCHEMA_DEF.getSchemas ( ) . keySet ( ) ) . inOrder ( ) ; }

Target:
public void all ( ) { com.google.common.truth.Truth.assertThat ( com.google.gerrit.testutil.IndexVersionsTest.get ( com.google.gerrit.testing.IndexVersions.ALL ) ) . containsExactlyElementsIn ( com.google.gerrit.testutil.IndexVersionsTest.SCHEMA_DEF.getSchemas ( ) . keySet ( ) ) . inOrder ( ) ; }
Source:
public java.lang.String encode ( java.lang.String e ) { e = com.google.gwt.http.client.URL.encodeComponent ( e ) ; e = fixPathImpl ( e ) ; e = fixColonImpl ( e ) ; return e ; }

Target:
public java.lang.String encode ( java.lang.String e ) { e = com.google.gwt.http.client.URL.encodeQueryString ( e ) ; e = fixPathImpl ( e ) ; e = fixColonImpl ( e ) ; return e ; }
Source:
protected com.google.gson.GsonBuilder newGsonBuilder ( javax.servlet.http.HttpServletRequest req ) throws java.io.IOException { return super . newGsonBuilder ( req ) . registerTypeAdapter ( com.google.gitiles.blame.Region.class , new com.google.gitiles.blame.RegionAdapter ( new com.google.gitiles.DateFormatter ( getAccess ( req ) , com.google.gitiles.DateFormatter.Format.ISO ) ) ) ; }

Target:
protected com.google.gson.GsonBuilder newGsonBuilder ( javax.servlet.http.HttpServletRequest req ) throws java.io.IOException { return super . newGsonBuilder ( req ) . registerTypeAdapter ( com.google.gitiles.blame.cache.Region.class , new com.google.gitiles.blame.RegionAdapter ( new com.google.gitiles.DateFormatter ( getAccess ( req ) , com.google.gitiles.DateFormatter.Format.ISO ) ) ) ; }
Source:
private static boolean fail ( final java.lang.String username , final org.apache.sshd.server.session.ServerSession session , final java.lang.String err ) { session.setAttribute ( com.google.gerrit.sshd.SshUtil.AUTH_ATTEMPTED_AS , username ) ; session.setAttribute ( com.google.gerrit.sshd.SshUtil.AUTH_ERROR , err ) ; return false ; }

Target:
public java.net.SocketAddress get ( ) { return sd.getRemoteAddress ( ) ; }
Source:
public void zeroEndCharacterResultsInValidRange ( ) { com.google.gerrit.extensions.client.Comment.Range range = createRange ( 13 , 31 , 19 , 0 ) ; com.google.gerrit.extensions.client.RangeSubject.assertThat ( range ) . isValid ( ) ; }

Target:
public void zeroEndCharacterResultsInValidRange ( ) { com.google.gerrit.extensions.client.Comment.Range range = createRange ( 13 , 31 , 19 , 0 ) ; com.google.gerrit.extensions.client.testing.RangeSubject.assertThat ( range ) . isValid ( ) ; }
Source:
com.google.gerrit.server.project.RefControl controlForRef ( com.google.gerrit.reviewdb.client.Branch.NameKey ref ) { return controlForRef ( ref.get ( ) ) ; }

Target:
com.google.gerrit.server.permissions.RefControl controlForRef ( com.google.gerrit.reviewdb.client.Branch.NameKey ref ) { return controlForRef ( ref.get ( ) ) ; }
Source:
public void testDelimiter ( ) { com.google.gwtorm.nosql.IndexKeyBuilder ib = new com.google.gwtorm.nosql.IndexKeyBuilder ( ) ; ib.delimiter ( ) ; com.google.gwtorm.nosql.IndexKeyBuilderTest.assertEquals ( new byte [ ] { 0 , 1 } , ib ) ; }

Target:
public void testDelimiter ( ) { com.google.gwtorm.nosql.IndexKeyBuilder ib = new com.google.gwtorm.nosql.IndexKeyBuilder ( ) ; ib.delimiter ( ) ; com.google.gwtorm.nosql.IndexKeyBuilderTest.assertEqualToBuilderResult ( new byte [ ] { 0 , 1 } , ib ) ; }
Source:
final void setCreateNewChangeForAllNotInTarget ( com.google.gerrit.extensions.common.InheritableBoolean v ) { setCreateNewChangeForAllNotInTargetRaw ( v.name ( ) ) ; }

Target:
final void setUseSignedOffBy ( com.google.gerrit.extensions.client.InheritableBoolean v ) { setUseSignedOffByRaw ( v.name ( ) ) ; }
Source:
protected final void configure ( ) { bind ( com.google.gerrit.sshd.Commands.key ( command ) ) . toProvider ( new com.google.gerrit.sshd.DispatchCommandProvider ( command ) ) ; configureCmds ( ) ; }

Target:
protected final void configure ( ) { com.google.common.base.Preconditions.checkState ( ( ( command ) != null ) , "@PluginName must be provided" ) ; bind ( com.google.gerrit.sshd.Commands.key ( command ) ) . toProvider ( new com.google.gerrit.sshd.DispatchCommandProvider ( command ) ) ; configureCommands ( ) ; }
Source:
public com.google.gerrit.server.account.GroupControl controlFor ( final com.google.gerrit.reviewdb.AccountGroup group ) { return new com.google.gerrit.server.account.GroupControl ( user.get ( ) , group ) ; }

Target:
public com.google.gerrit.server.account.GroupControl controlFor ( final com.google.gerrit.reviewdb.AccountGroup group ) { return new com.google.gerrit.server.account.GroupControl ( groupCache , user.get ( ) , group ) ; }
Source:
public com.google.gerrit.server.notedb.ChangeNotes createWithAutoRebuildingDisabled ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.server.git.ChainedReceiveCommands cmds ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.server.notedb.ChangeNotes ( args , change.getProject ( ) , change , false , cmds ) . load ( ) ; }

Target:
public com.google.gerrit.server.notedb.ChangeNotes createWithAutoRebuildingDisabled ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.server.git.RefCache refs ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.server.notedb.ChangeNotes ( args , change.getProject ( ) , change , false , refs ) . load ( ) ; }
Source:
public static void reloadChanges ( com.google.gerrit.server.git.ChangeSet cs ) throws com.google.gwtorm.server.OrmException { for ( com.google.gerrit.server.query.change.ChangeData cd : cs.changes ( ) ) { cd.reloadChange ( ) ; cd.setPatchSets ( null ) ; cd.setMergeable ( null ) ; } }

Target:
public static void reloadChanges ( com.google.gerrit.server.git.ChangeSet changeSet ) throws com.google.gwtorm.server.OrmException { for ( com.google.gerrit.server.query.change.ChangeData cd : changeSet.changes ( ) ) { cd.reloadChange ( ) ; cd.setPatchSets ( null ) ; cd.setMergeable ( null ) ; } }
Source:
public static org.eclipse.jgit.lib.ObjectId toId ( org.eclipse.jgit.lib.Ref ref ) { return ( ref != null ) && ( ( ref.getObjectId ( ) ) != null ) ? ref.getObjectId ( ) : org.eclipse.jgit.lib.ObjectId.zeroId ( ) ; }

Target:
public boolean get ( org.eclipse.jgit.lib.ObjectId commit , org.eclipse.jgit.lib.Ref intoRef , com.google.gerrit.extensions.common.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 ) { throw new java.lang.UnsupportedOperationException ( "Mergeability checking disabled" ) ; }
Source:
public void testChangeDeletedFromIndexOK ( ) throws java.lang.Exception { setUpMocks ( com.ericsson.gerrit.plugins.syncindex.RestSessionTest.DELETE_OP , com.ericsson.gerrit.plugins.syncindex.RestSessionTest.SUCCESSFUL , com.ericsson.gerrit.plugins.syncindex.RestSessionTest.EMPTY_MSG , com.ericsson.gerrit.plugins.syncindex.RestSessionTest.DO_NOT_THROW_EXCEPTION ) ; com.google.common.truth.Truth.assertThat ( restClient.deleteFromIndex ( com.ericsson.gerrit.plugins.syncindex.RestSessionTest.CHANGE_NUMBER ) ) . isTrue ( ) ; }

Target:
public void testChangeDeletedFromIndexOK ( ) throws java.lang.Exception { setUpMocks ( com.ericsson.gerrit.plugins.multimaster.RestSessionTest.DELETE_OP , com.ericsson.gerrit.plugins.multimaster.RestSessionTest.SUCCESSFUL , com.ericsson.gerrit.plugins.multimaster.RestSessionTest.EMPTY_MSG , com.ericsson.gerrit.plugins.multimaster.RestSessionTest.DO_NOT_THROW_EXCEPTION ) ; com.google.common.truth.Truth.assertThat ( restClient.deleteFromIndex ( com.ericsson.gerrit.plugins.multimaster.RestSessionTest.CHANGE_NUMBER ) ) . isTrue ( ) ; }
Source:
public int compare ( final com.google.gerrit.reviewdb.AccountGroup a , final com.google.gerrit.reviewdb.AccountGroup b ) { return a.getName ( ) . compareTo ( b.getName ( ) ) ; }

Target:
public void visibleGroups ( final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.GroupList > callback ) { visibleGroupsFactory.create ( ) . to ( callback ) ; }
Source:
public static java.lang.String toPatch ( final com.google.gerrit.client.patches.PatchScreen.Type type , final com.google.gerrit.reviewdb.client.Patch.Key id ) { if ( type == ( PatchScreen.Type.SIDE_BY_SIDE ) ) { return com.google.gerrit.client.Dispatcher.toPatchSideBySide ( id ) ; } else { return com.google.gerrit.client.Dispatcher.toPatchUnified ( id ) ; } }

Target:
public static java.lang.String toEditScreen ( com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName ) { return com.google.gerrit.client.Dispatcher.toPatch ( "edit" , null , revision , fileName , null , 0 ) ; }
Source:
public void deleteBranchByAdminForcePushBlocked ( ) throws java.lang.Exception { blockForcePush ( ) ; assertDeleteSucceeds ( ) ; }

Target:
public void deleteBranchByProjectOwner ( ) throws java.lang.Exception { grantOwner ( ) ; setApiUser ( user ) ; assertDeleteSucceeds ( testBranch ) ; }
Source:
private boolean isLdapGroup ( final com.google.gerrit.client.reviewdb.AccountGroup group ) { return group.isAutomaticMembership ( ) ; }

Target:
private boolean isLdapGroup ( final com.google.gerrit.client.reviewdb.AccountGroup group ) { return ( group.isAutomaticMembership ( ) ) && ( ! ( authConfig.getRegisteredGroups ( ) . contains ( group.getId ( ) ) ) ) ; }
Source:
public void listNonExistingGroupMembers_NotFound ( ) throws java.lang.Exception { try { gApi.groups ( ) . id ( "non-existing" ) . members ( ) ; } catch ( com.google.gerrit.extensions.restapi.ResourceNotFoundException expected ) { } }

Target:
public void listNonExistingGroupMembers_NotFound ( ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.ResourceNotFoundException.class ) ; gApi.groups ( ) . id ( "non-existing" ) . members ( ) ; }
Source:
void onEdit ( com.google.gwt.event.dom.client.ClickEvent event ) { edit.setEnabled ( false ) ; cancel1.setVisible ( true ) ; com.google.gwt.user.client.ui.UIObject.setVisible ( commitTools , true ) ; accessEditor.setEditing ( true ) ; driver.edit ( access ) ; }

Target:
void onEdit ( com.google.gwt.event.dom.client.ClickEvent event ) { resetEditors ( ) ; edit.setEnabled ( false ) ; cancel1.setVisible ( true ) ; com.google.gwt.user.client.ui.UIObject.setVisible ( commitTools , true ) ; accessEditor.setEditing ( true ) ; driver.edit ( access ) ; }
Source:
protected void configure ( org.eclipse.jgit.transport.OpenSshConfig.Host hc , com.jcraft.jsch.Session session ) { }

Target:
public void start ( ) { final org.eclipse.jgit.storage.file.WindowCacheConfig c = new org.eclipse.jgit.storage.file.WindowCacheConfig ( ) ; c.fromConfig ( cfg ) ; org.eclipse.jgit.storage.file.WindowCache.reconfigure ( c ) ; }
Source:
public void shouldReturnExecutor ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( syncEventsExecutorProvider.get ( ) ) . isEqualTo ( executorMock ) ; }

Target:
public void shouldReturnExecutor ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( eventsExecutorProvider.get ( ) ) . isEqualTo ( executorMock ) ; }
Source:
public void addMembers ( com.google.gerrit.reviewdb.client.AccountGroup.UUID groupUuid , java.util.Collection < ? extends com.google.gerrit.reviewdb.client.Account.Id > newMemberIds ) throws com.google.gerrit.common.errors.NoSuchGroupException , com.google.gwtorm.server.OrmException , java.io.IOException { groupsUpdateProvider.get ( ) . addGroupMembers ( db.get ( ) , groupUuid , com.google.common.collect.ImmutableSet.copyOf ( newMemberIds ) ) ; }

Target:
public void addMembers ( com.google.gerrit.reviewdb.client.AccountGroup.UUID groupUuid , java.util.Collection < com.google.gerrit.reviewdb.client.Account.Id > newMemberIds ) throws com.google.gerrit.common.errors.NoSuchGroupException , com.google.gwtorm.server.OrmException , java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { groupsUpdateProvider.get ( ) . addGroupMembers ( db.get ( ) , groupUuid , com.google.common.collect.ImmutableSet.copyOf ( newMemberIds ) ) ; }
Source:
protected void configure ( ) { cache ( com.google.gerrit.server.change.ChangeKindCache.ID_CACHE , com.google.gerrit.server.change.ChangeKindCache.Key.class , com.google.gerrit.server.change.ChangeKind.class ) . maximumWeight ( 0 ) . loader ( com.google.gerrit.server.change.ChangeKindCache.Loader.class ) ; }

Target:
protected void configure ( ) { persist ( com.google.gerrit.server.change.ChangeKindCache.ID_CACHE , com.google.gerrit.server.change.ChangeKindCache.Key.class , com.google.gerrit.server.change.ChangeKind.class ) . maximumWeight ( ( 2 << 20 ) ) . weigher ( com.google.gerrit.server.change.ChangeKindCache.ChangeKindWeigher.class ) . loader ( com.google.gerrit.server.change.ChangeKindCache.Loader.class ) ; }
Source:
public void configure ( ) { factory ( ReviewDbBatchUpdate.AssistedFactory.class ) ; factory ( FusedNoteDbBatchUpdate.AssistedFactory.class ) ; factory ( UnfusedNoteDbBatchUpdate.AssistedFactory.class ) ; }

Target:
public void configure ( ) { factory ( ReviewDbBatchUpdate.AssistedFactory.class ) ; factory ( NoteDbBatchUpdate.AssistedFactory.class ) ; }
Source:
private void initTheme ( ) { for ( com.google.gerrit.extensions.common.Theme t : com.google.gerrit.extensions.common.Theme.values ( ) ) { theme.addItem ( t.name ( ) . toLowerCase ( ) , t.name ( ) ) ; } }

Target:
private void initTheme ( ) { for ( com.google.gerrit.extensions.client.Theme t : com.google.gerrit.extensions.client.Theme.values ( ) ) { theme.addItem ( t.name ( ) . toLowerCase ( ) , t.name ( ) ) ; } }
Source:
public boolean isOwner ( ) { return ( canPerformOnAllRefs ( ApprovalCategory.OWN , ( ( short ) ( 1 ) ) ) ) || ( getCurrentUser ( ) . isAdministrator ( ) ) ; }

Target:
public boolean isOwner ( ) { return ( controlForRef ( RefRight.ALL ) . isOwner ( ) ) || ( getCurrentUser ( ) . isAdministrator ( ) ) ; }
Source:
protected void onInitUI ( ) { super . onInitUI ( ) ; setPageTitle ( Util.C.groupListTitle ( ) ) ; groups = new com.google.gerrit.client.admin.GroupTable ( true , com.google.gerrit.common.PageLinks.ADMIN_GROUPS ) ; add ( groups ) ; }

Target:
protected void onInitUI ( ) { super . onInitUI ( ) ; setPageTitle ( Util.C.groupListTitle ( ) ) ; initPageHeader ( ) ; groups = new com.google.gerrit.client.admin.GroupTable ( true , com.google.gerrit.common.PageLinks.ADMIN_GROUPS ) ; add ( groups ) ; }
Source:
private static boolean timeEq ( final long a , final long b ) { return ( a / 1000L ) == ( b / 1000L ) ; }

Target:
protected long getLastModified ( final javax.servlet.http.HttpServletRequest req ) { return lastModified ; }
Source:
public boolean updateTeamModels ( java.util.Collection < com.gitblit.models.TeamModel > models ) { return false ; }

Target:
public boolean setTeamnamesForRepositoryRole ( java.lang.String role , java.util.List < java.lang.String > teamnames ) { return false ; }
Source:
public void validCert ( ) throws java.lang.Exception { org.eclipse.jgit.transport.PushCertificate cert = newSignedCert ( validNonce ( ) , com.google.gerrit.gpg.testutil.TestKey.key1 ( ) ) ; assertProblems ( cert ) ; }

Target:
public void validCert ( ) throws java.lang.Exception { org.eclipse.jgit.transport.PushCertificate cert = newSignedCert ( validNonce ( ) , com.google.gerrit.gpg.testutil.TestKeys.key1 ( ) ) ; assertProblems ( cert ) ; }
Source:
private java.lang.String groupOf ( final com.google.gerrit.reviewdb.ProjectRight r ) { return groups.get ( r.getAccountGroupId ( ) ) . getName ( ) ; }

Target:
private java.lang.String groupOf ( final com.google.gerrit.reviewdb.RefRight r ) { return groups.get ( r.getAccountGroupId ( ) ) . getName ( ) ; }
Source:
public java.util.List < com.google.gerrit.reviewdb.client.AccountSshKey > getKeys ( com.google.gerrit.reviewdb.client.Account.Id accountId ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { return read ( accountId ) . getKeys ( ) ; }

Target:
public java.util.List < com.google.gerrit.server.account.AccountSshKey > getKeys ( com.google.gerrit.reviewdb.client.Account.Id accountId ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { return read ( accountId ) . getKeys ( ) ; }
Source:
protected void preDisplay ( final com.google.gerrit.common.data.ChangeDetail r ) { display ( r ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < com.google.gerrit.common.data.ChangeDetail > event ) { if ( isAttached ( ) ) { display ( event.getValue ( ) ) ; } }
Source:
public java.util.List < com.google.gerrit.extensions.common.ChangeInfo > getStarredChanges ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return stars.list ( ) . apply ( account ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot get starred changes" , e ) ; } }

Target:
public java.util.List < com.google.gerrit.extensions.common.ChangeInfo > getStarredChanges ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return stars.list ( ) . apply ( account ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot get starred changes" , e ) ; } }
Source:
public java.lang.String getToken ( com.google.gwtjsonrpc.client.JsonDefTarget proxy ) { return com.google.gerrit.client.Gerrit.accessToken ; }

Target:
public java.lang.String getToken ( com.google.gwtjsonrpc.client.JsonDefTarget proxy ) { return com.google.gerrit.client.Gerrit.authorization ; }
Source:
public void run ( ) { com.google.gerrit.server.query.change.ChangeData cd = new com.google.gerrit.server.query.change.ChangeData ( change ) ; try { index.replace ( cd ) ; } catch ( java.io.IOException e ) { com.google.gerrit.server.index.ChangeIndexerImpl.log.error ( "Error indexing change" , e ) ; } }

Target:
public java.lang.Void call ( ) throws java.lang.Exception { index.replace ( new com.google.gerrit.server.query.change.ChangeData ( change ) ) ; return null ; }
Source:
public static com.google.gerrit.server.group.db.InternalGroupUpdate.Builder builder ( ) { return new com.google.gerrit.server.group.db.AutoValue_InternalGroupUpdate.Builder ( ) . setMemberModification ( java.util.function.Function.identity ( ) ) ; }

Target:
public static com.google.gerrit.server.group.db.InternalGroupUpdate.Builder builder ( ) { return new com.google.gerrit.server.group.db.AutoValue_InternalGroupUpdate.Builder ( ) . setMemberModification ( java.util.function.Function.identity ( ) ) . setSubgroupModification ( java.util.function.Function.identity ( ) ) ; }
Source:
protected org.eclipse.jgit.lib.ObjectInserter delegate ( ) { return inserter ; }

Target:
private com.google.gerrit.server.git.SubmitStrategy createStrategy ( ) throws com.google.gerrit.server.git.MergeException { return submitStrategyFactory.create ( destProject.getSubmitType ( ) , db , repo , rw , inserter , CAN_MERGE , alreadyAccepted , destBranch , destProject.isUseContentMerge ( ) ) ; }
Source:
public static java.lang.String toGroup ( com.google.gerrit.reviewdb.client.AccountGroup.Id id , java.lang.String panel ) { return ( ( "/admin/groups/" + ( id.toString ( ) ) ) + "," ) + panel ; }

Target:
public static java.lang.String toGroup ( com.google.gerrit.reviewdb.client.AccountGroup.Id id , java.lang.String panel ) { return ( ( ( com.google.gerrit.common.PageLinks.ADMIN_GROUPS ) + ( id.toString ( ) ) ) + "," ) + panel ; }
Source:
private com.google.gerrit.server.notedb.ChangeUpdate newUpdate ( com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.server.IdentifiedUser user ) throws java.lang.Exception { return new com.google.gerrit.server.notedb.ChangeUpdate ( com.google.gerrit.server.notedb.ChangeNotesTest.SERVER_IDENT , repoManager , com.google.gerrit.server.notedb.NotesMigration.allEnabled ( ) , accountCache , null , com.google.gerrit.server.notedb.ChangeNotesTest.LABEL_TYPES , stubChangeControl ( c , user ) , com.google.gerrit.server.util.TimeUtil.nowTs ( ) ) ; }

Target:
public void configure ( ) { factory ( ChangeUpdate.Factory.class ) ; bind ( com.google.gerrit.server.IdentifiedUser.class ) . toInstance ( user ) ; }
Source:
protected java.util.Set < com.google.gerrit.client.reviewdb.AccountGroup.Id > getGroups ( ) { if ( ( userGroups ) == null ) { userGroups = com.google.gerrit.client.rpc.Common.getGroupCache ( ) . getGroups ( getAccountId ( ) ) ; } return userGroups ; }

Target:
protected java.util.Set < com.google.gerrit.client.reviewdb.AccountGroup.Id > getGroups ( ) { if ( ( userGroups ) == null ) { userGroups = com.google.gerrit.client.rpc.Common.getGroupCache ( ) . getEffectiveGroups ( getAccountId ( ) ) ; } return userGroups ; }
Source:
public com.google.gerrit.httpd.raw.ResourceServlet.Resource call ( ) throws java.io.IOException { return new com.google.gerrit.httpd.raw.ResourceServlet.Resource ( java.nio.file.Files.getLastModifiedTime ( p ) , com.google.gerrit.httpd.raw.ResourceServlet.contentType ( p.toString ( ) ) , java.nio.file.Files.readAllBytes ( p ) ) ; }

Target:
protected java.nio.file.attribute.FileTime getLastModifiedTime ( java.nio.file.Path p ) throws java.io.IOException { return java.nio.file.Files.getLastModifiedTime ( p ) ; }
Source:
public boolean update ( com.google.gerrit.reviewdb.client.Change change ) throws java.io.IOException { try { return new com.google.gerrit.server.change.MergeabilityChecker.ChangeUpdateTask ( schemaFactory , change ) . call ( ) ; } catch ( java.lang.Exception e ) { com.google.common.base.Throwables.propagateIfPossible ( e ) ; throw com.google.gerrit.server.change.MergeabilityChecker.MAPPER.apply ( e ) ; } }

Target:
public void run ( ) throws java.io.IOException { try { runAsync ( ) . checkedGet ( ) ; } catch ( java.lang.Exception e ) { com.google.common.base.Throwables.propagateIfPossible ( e , java.io.IOException.class ) ; throw com.google.gerrit.server.change.MergeabilityChecker.MAPPER.apply ( e ) ; } }
Source:
public java.lang.String getSchemeRest ( ) { java.lang.String id = getExternalId ( ) ; int c = id.indexOf ( ':' ) ; return 0 < c ? id.substring ( ( c + 1 ) ) : null ; }

Target:
public java.lang.String getScheme ( ) { int c = externalId.indexOf ( ':' ) ; return 0 < c ? externalId.substring ( 0 , c ) : null ; }
Source:
public void onFailure ( java.lang.Throwable err ) { com.google.gerrit.client.change.RelatedChangesTab tab = tabs.get ( com.google.gerrit.client.change.RelatedChanges.RELATED_CHANGES ) ; tab.setTitle ( Resources.M.relatedChanges ( "na" ) ) ; tab.setError ( err.getMessage ( ) ) ; }

Target:
public void onFailure ( java.lang.Throwable err ) { com.google.gerrit.client.change.RelatedChangesTab tab = tabs.get ( com.google.gerrit.client.change.RelatedChanges.RELATED_CHANGES ) ; tab.setTitle ( Resources.M.relatedChanges ( Resources.C.notAvailable ( ) ) ) ; tab.setError ( err.getMessage ( ) ) ; }
Source:
public com.google.gerrit.index.query.Predicate < com.google.gerrit.server.project.ProjectData > rewrite ( com.google.gerrit.index.query.Predicate < com.google.gerrit.server.project.ProjectData > in , com.google.gerrit.index.QueryOptions opts ) throws com.google.gerrit.index.query.QueryParseException { com.google.gerrit.server.index.project.ProjectIndex index = indexes.getSearchIndex ( ) ; com.google.common.base.Preconditions.checkNotNull ( index , "no active search index configured for projects" ) ; return new com.google.gerrit.server.index.project.IndexedProjectQuery ( index , in , opts ) ; }

Target:
public com.google.gerrit.index.query.Predicate < com.google.gerrit.index.project.ProjectData > rewrite ( com.google.gerrit.index.query.Predicate < com.google.gerrit.index.project.ProjectData > in , com.google.gerrit.index.QueryOptions opts ) throws com.google.gerrit.index.query.QueryParseException { com.google.gerrit.index.project.ProjectIndex index = indexes.getSearchIndex ( ) ; com.google.common.base.Preconditions.checkNotNull ( index , "no active search index configured for projects" ) ; return new com.google.gerrit.index.project.IndexedProjectQuery ( index , in , opts ) ; }
Source:
public boolean canRunReceivePack ( ) { return isAnyIncludedIn ( receiveGroups , user.getEffectiveGroups ( ) ) ; }

Target:
java.util.Collection < com.google.gerrit.common.data.AccessSection > access ( ) { if ( ( access ) == null ) { access = state.getAllAccessSections ( ) ; } return access ; }
Source:
public com.google.gerrit.server.IdentifiedUser create ( com.google.gerrit.reviewdb.client.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , remotePeerProvider , dbProvider , id , null ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser runAs ( com.google.gerrit.reviewdb.client.Account.Id id , com.google.gerrit.server.CurrentUser caller ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , realm , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , remotePeerProvider , dbProvider , id , caller ) ; }
Source:
public void noNotificationForChangeThatIsTurnedPrivateForWatchersInNotifyConfig ( ) throws java.lang.Exception { com.google.gerrit.server.mail.Address addr = new com.google.gerrit.server.mail.Address ( "Watcher" , "watcher@example.com" ) ; com.google.gerrit.server.git.NotifyConfig nc = new com.google.gerrit.server.git.NotifyConfig ( ) ; nc.addEmail ( addr ) ; nc.setName ( "team" ) ; nc.setHeader ( NotifyConfig.Header.TO ) ; nc.setTypes ( java.util.EnumSet.of ( NotifyType.NEW_PATCHSETS ) ) ; BRANCH ( efc835 ) ; com.google.gerrit.acceptance.server.project.Fix notifications ; com.google.gerrit.acceptance.server.project.comments on ; com.google.gerrit.acceptance.server.project.patch sets ; com.google.gerrit.server.git.ProjectConfig cfg = projectCache.checkedGet ( project ) . getConfig ( ) ; cfg.putNotifyConfig ( "team" , nc ) ; saveProjectConfig ( project , cfg ) ; com.google.gerrit.acceptance.PushOneCommit.Result r = pushFactory.create ( db , admin.getIdent ( ) , testRepo , "subject" , "a" , "a1" ) . to ( "refs/for/master" ) ; r.assertOkStatus ( ) ; sender.clear ( ) ; r = pushFactory.create ( db , admin.getIdent ( ) , testRepo , "subject" , "a" , "a2" , r.getChangeId ( ) ) . to ( "refs/for/master%private" ) ; r.assertOkStatus ( ) ; com.google.common.truth.Truth.assertThat ( sender.getMessages ( ) ) . isEmpty ( ) ; setApiUser ( admin ) ; com.google.gerrit.extensions.api.changes.ReviewInput in = new com.google.gerrit.extensions.api.changes.ReviewInput ( ) ; in.message = "comment" ; gApi.changes ( ) . id ( r.getChangeId ( ) ) . current ( ) . review ( in ) ; com.google.common.truth.Truth.assertThat ( sender.getMessages ( ) ) . isEmpty ( ) ; }

Target:
public void noNotificationForChangeThatIsTurnedPrivateForWatchersInNotifyConfig ( ) throws java.lang.Exception { com.google.gerrit.server.mail.Address addr = new com.google.gerrit.server.mail.Address ( "Watcher" , "watcher@example.com" ) ; com.google.gerrit.server.git.NotifyConfig nc = new com.google.gerrit.server.git.NotifyConfig ( ) ; nc.addEmail ( addr ) ; nc.setName ( "team" ) ; nc.setHeader ( NotifyConfig.Header.TO ) ; nc.setTypes ( java.util.EnumSet.of ( NotifyType.NEW_PATCHSETS ) ) ; com.google.gerrit.server.git.ProjectConfig cfg = projectCache.checkedGet ( project ) . getConfig ( ) ; cfg.putNotifyConfig ( "team" , nc ) ; saveProjectConfig ( project , cfg ) ; com.google.gerrit.acceptance.PushOneCommit.Result r = pushFactory.create ( db , admin.getIdent ( ) , testRepo , "subject" , "a" , "a1" ) . to ( "refs/for/master" ) ; r.assertOkStatus ( ) ; sender.clear ( ) ; r = pushFactory.create ( db , admin.getIdent ( ) , testRepo , "subject" , "a" , "a2" , r.getChangeId ( ) ) . to ( "refs/for/master%private" ) ; r.assertOkStatus ( ) ; com.google.common.truth.Truth.assertThat ( sender.getMessages ( ) ) . isEmpty ( ) ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.server.CurrentUser.class ) . toInstance ( remoteUser ) ; }

Target:
protected void configure ( ) { bindScope ( com.google.inject.servlet.RequestScoped.class , PerThreadRequestScope.REQUEST ) ; bind ( com.google.gerrit.server.project.PerRequestProjectControlCache.class ) . in ( com.google.inject.servlet.RequestScoped.class ) ; bind ( com.google.gerrit.server.CurrentUser.class ) . toInstance ( remoteUser ) ; }
Source:
public final Change.Id legacy_id ( ) { return has_change_number ( ) ? new com.google.gerrit.reviewdb.client.Change.Id ( _change_number ( ) ) : null ; }

Target:
public final Change.Id legacyId ( ) { return hasChangeNumber ( ) ? new com.google.gerrit.reviewdb.client.Change.Id ( _changeNumber ( ) ) : null ; }
Source:
public void onSuccess ( java.lang.Void result ) { net.codemirror.lib.Loader.initVimKeys ( ) ; cb.onSuccess ( null ) ; }

Target:
public void onSuccess ( java.lang.Void result ) { net.codemirror.lib.Vim.initKeyMap ( ) ; cb.onSuccess ( null ) ; }
Source:
private void colorLines ( net.codemirror.lib.CodeMirror cm , java.lang.String color , int line , int cnt ) { colorLines ( cm , LineClassWhere.WRAP , color , line , ( line + cnt ) ) ; }

Target:
public void handle ( net.codemirror.lib.CodeMirror cm , net.codemirror.lib.CodeMirror.LineHandle lh , com.google.gwt.dom.client.Element e ) { commentManager.resizePadding ( lh ) ; chunkManager.resizePadding ( cm , lh , side ) ; }
Source:
protected void setRepo ( org.eclipse.jgit.api.Git git ) throws java.lang.Exception { this . git = git ; testRepo = new org.eclipse.jgit.junit.TestRepository ( git.getRepository ( ) ) ; }

Target:
protected void setRepo ( org.eclipse.jgit.junit.TestRepository < ? > testRepo ) throws java.lang.Exception { this . git = org.eclipse.jgit.api.Git.wrap ( testRepo.getRepository ( ) ) ; this . testRepo = new org.eclipse.jgit.junit.TestRepository ( git.getRepository ( ) ) ; }
Source:
public static PermissionRange.WithDefaults getRange ( java.lang.String varName ) { if ( com.google.gerrit.common.data.GlobalCapability.QUERY_LIMIT.equalsIgnoreCase ( varName ) ) { return new com.google.gerrit.common.data.PermissionRange.WithDefaults ( varName , 0 , java.lang.Integer.MAX_VALUE , 0 , 500 ) ; } return null ; }

Target:
public static PermissionRange.WithDefaults getRange ( java.lang.String varName ) { if ( com.google.gerrit.common.data.GlobalCapability.QUERY_LIMIT.equalsIgnoreCase ( varName ) ) { return new com.google.gerrit.common.data.PermissionRange.WithDefaults ( varName , 0 , java.lang.Integer.MAX_VALUE , 0 , com.google.gerrit.common.data.GlobalCapability.DEFAULT_MAX_QUERY_LIMIT ) ; } return null ; }
Source:
public int size ( ) { return changeData.size ( ) ; }

Target:
public int size ( ) { return ( changeData.size ( ) ) + ( furtherHiddenChanges ? 1 : 0 ) ; }
Source:
public static org.eclipse.jgit.lib.Config submitWholeTopicEnabled ( ) { return wholeTopicEnabledConfig ( ) ; }

Target:
public static org.eclipse.jgit.lib.Config submitWholeTopicEnabled ( ) { return submitWholeTopicEnabledConfig ( ) ; }
Source:
private void checkRepositoryIndex ( ) { com.google.common.base.Preconditions.checkState ( ( ( repositoryName ) != null ) , "missing repository name on %s view" , type ) ; checkHostIndex ( ) ; }

Target:
private void checkRepositoryIndex ( ) { checkView ( ( ( repositoryName ) != null ) , "missing repository name on %s view" , type ) ; checkHostIndex ( ) ; }
Source:
private void rememberXsrfKey ( final com.google.gwt.http.client.Response rsp ) { final java.lang.String v = rsp.getHeader ( Shared.XSRF_HEADER ) ; if ( v != null ) { proxy.xsrfKey = v ; } }

Target:
private void rememberXsrfKey ( final com.google.gwt.http.client.Response rsp ) { final java.lang.String v = rsp.getHeader ( JsonUtil.XSRF_HEADER ) ; if ( v != null ) { proxy.xsrfKey = v ; } }
Source:
public java.util.List < com.googlesource.gerrit.plugins.manager.repository.PluginInfo > availablePlugins ( ) throws java.io.IOException { return repository.list ( com.google.gerrit.common.Version.getVersion ( ) ) ; }

Target:
public java.util.List < com.googlesource.gerrit.plugins.manager.repository.PluginInfo > load ( com.googlesource.gerrit.plugins.manager.PluginsCentralLoader.ListKey all ) throws java.lang.Exception { return repository.list ( com.google.gerrit.common.Version.getVersion ( ) ) ; }
Source:
public void banCommit_Forbidden ( ) throws java.lang.Exception { userRestSession.put ( ( ( "/projects/" + ( project.get ( ) ) ) + "/ban/" ) , BanCommit.Input.fromCommits ( "a8a477efffbbf3b44169bb9a1d3a334cbbd9aa96" ) ) . assertForbidden ( ) ; }

Target:
public void banCommit_Forbidden ( ) throws java.lang.Exception { userRestSession.put ( ( ( "/projects/" + ( project.get ( ) ) ) + "/ban/" ) , com.google.gerrit.extensions.common.BanCommitInput.fromCommits ( "a8a477efffbbf3b44169bb9a1d3a334cbbd9aa96" ) ) . assertForbidden ( ) ; }
Source:
static void savePublic ( final org.eclipse.jgit.storage.file.FileBasedConfig sec ) throws java.io.IOException { sec.save ( ) ; }

Target:
static void savePublic ( final org.eclipse.jgit.storage.file.FileBasedConfig sec ) throws java.io.IOException { if ( com.google.gerrit.pgm.init.InitUtil.modified ( sec ) ) { sec.save ( ) ; } }
Source:
private void assertCanUpload ( com.google.gerrit.server.project.ProjectControl u ) { com.google.common.truth.Truth.assertThat ( u.canPushToAtLeastOneRef ( ) ) . named ( "can upload" ) . isEqualTo ( Capable.OK ) ; }

Target:
private void assertCanUpload ( com.google.gerrit.server.project.ProjectControl u ) { com.google.common.truth.Truth.assertThat ( u.canPushToAtLeastOneRef ( ) ) . named ( "can upload" ) . isTrue ( ) ; }
Source:
private java.sql.PreparedStatement stubExecuteBatchOK ( java.lang.String command , final int ... updateCounts ) throws java.sql.SQLException { java.sql.PreparedStatement ps = setupPreparedStatementForBatch ( updateCounts ) ; org.mockito.Mockito.stub ( conn.prepareStatement ( command ) ) . toReturn ( ps ) ; return ps ; }

Target:
java.lang.Iterable < com.google.gwtorm.jdbc.TestJdbcAccess.Data > createIterable ( com.google.gwtorm.jdbc.TestJdbcAccess.Data ... data ) { java.util.List < com.google.gwtorm.jdbc.TestJdbcAccess.Data > list = java.util.Arrays.asList ( data ) ; return new com.google.gwtorm.server.ListResultSet < com.google.gwtorm.jdbc.TestJdbcAccess.Data > ( list ) ; }
Source:
public com.google.gerrit.server.git.ChangeReportFormatter.Input setPrivate ( boolean isPrivate ) { this . isPrivate = isPrivate ; return this ; }

Target:
public abstract com.google.gerrit.server.git.ChangeReportFormatter.Input.Builder setChange ( com.google.gerrit.reviewdb.client.Change val ) ;
Source:
public boolean isNotify ( final com.google.gerrit.reviewdb.client.AccountProjectWatch.NotifyType type ) { switch ( type ) { case NEW_CHANGES : return notifyNewChanges ; case ALL_COMMENTS : return notifyAllComments ; case SUBMITTED_CHANGES : return notifySubmittedChanges ; } return false ; }

Target:
public boolean isNotify ( final com.google.gerrit.reviewdb.client.AccountProjectWatch.NotifyType type ) { switch ( type ) { case NEW_CHANGES : return notifyNewChanges ; case ALL_COMMENTS : return notifyAllComments ; case SUBMITTED_CHANGES : return notifySubmittedChanges ; case ALL : break ; } return false ; }
Source:
protected static Branch.NameKey getBranch ( java.lang.String project , java.lang.String branch ) { return new com.google.gerrit.reviewdb.client.Branch.NameKey ( new com.google.gerrit.reviewdb.client.Project.NameKey ( project ) , ( ( branch.startsWith ( "refs/" ) ? "" : "refs/heads/" ) + branch ) ) ; }

Target:
protected static java.lang.String asString ( com.google.gson.JsonElement el ) { if ( el != null ) { try { return el.getAsString ( ) ; } catch ( java.lang.RuntimeException e ) { } } return null ; }
Source:
public com.google.gerrit.extensions.api.projects.TagInfo get ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return listTags.get ( project , com.google.gerrit.extensions.restapi.IdString.fromDecoded ( ref ) ) ; } catch ( java.io.IOException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( e.getMessage ( ) ) ; } }

Target:
public com.google.gerrit.extensions.api.projects.TagInfo get ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return listTags.get ( project , com.google.gerrit.extensions.restapi.IdString.fromDecoded ( ref ) ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot get tag" , e ) ; } }
Source:
public org.eclipse.jgit.revwalk.RevWalk getRevWalk ( ) throws java.io.IOException { initRepository ( ) ; return revWalk ; }

Target:
public com.google.gerrit.server.git.BatchUpdate.Order getOrder ( ) { return order ; }
Source:
public static void publish ( int id , java.lang.String commit , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gwt.core.client.JavaScriptObject in = com.google.gwt.core.client.JavaScriptObject.createObject ( ) ; com.google.gerrit.client.changes.ChangeApi.call ( id , commit , "publish" ) . post ( in , cb ) ; }

Target:
public static void publishEdit ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gwt.core.client.JavaScriptObject in = com.google.gwt.core.client.JavaScriptObject.createObject ( ) ; com.google.gerrit.client.changes.ChangeApi.change ( project , id ) . view ( "edit:publish" ) . post ( in , cb ) ; }
Source:
private void removeIdLock ( T id ) { synchronized ( idLocks ) { if ( ( idLocks.get ( id ) . get ( ) ) == 0 ) { idLocks.remove ( id ) ; } } }

Target:
protected void updateIndexTs ( java.time.LocalDateTime ts ) { indexTs.update ( indexName , ts ) ; }
Source:
public java.lang.String getProject ( ) { return escape ( project ) ; }

Target:
public java.lang.String getProject ( ) { return clean ( project ) ; }
Source:
public void run ( ) { expandText ( ) ; }

Target:
public void run ( ) { if ( isNew ( ) ) { cancel.setVisible ( ( ! ( isDirty ( ) ) ) ) ; } expandText ( ) ; }
Source:
public void logout ( com.gitblit.models.UserModel user ) { }

Target:
public boolean supportsCredentialChanges ( com.gitblit.models.UserModel user ) { return false ; }
Source:
public com.google.gerrit.server.patch.PatchListEntry get ( java.lang.String fileName ) throws com.google.gerrit.server.project.NoSuchFileException { int index = search ( fileName ) ; if ( 0 <= index ) { return patches [ index ] ; } throw new com.google.gerrit.server.project.NoSuchFileException ( fileName ) ; }

Target:
public com.google.gerrit.server.patch.PatchListEntry get ( final java.lang.String fileName ) { final int index = search ( fileName ) ; return 0 <= index ? patches [ index ] : com.google.gerrit.server.patch.PatchListEntry.empty ( fileName ) ; }
Source:
public void evictMemberIn ( com.google.gerrit.reviewdb.client.AccountGroup.UUID groupId ) { if ( groupId != null ) { memberIn.invalidate ( groupId ) ; } }

Target:
public void evictMemberIn ( com.google.gerrit.reviewdb.client.AccountGroup.UUID groupId ) { if ( groupId != null ) { memberIn.invalidate ( groupId ) ; if ( ! ( com.google.gerrit.reviewdb.client.AccountGroup.isInternalGroup ( groupId ) ) ) { external.invalidate ( com.google.gerrit.server.account.GroupIncludeCacheImpl.EXTERNAL_NAME ) ; } } }
Source:
private boolean visible ( com.google.gerrit.server.change.ChangeResource change , com.google.gerrit.reviewdb.client.PatchSet ps ) throws com.google.gwtorm.server.OrmException { return change.getControl ( ) . isPatchVisible ( ps , dbProvider.get ( ) ) ; }

Target:
private boolean visible ( com.google.gerrit.server.change.ChangeResource change , com.google.gerrit.reviewdb.client.PatchSet ps ) throws com.google.gwtorm.server.OrmException { return changeControlFactory.controlFor ( change.getNotes ( ) , change.getUser ( ) ) . isPatchVisible ( ps , dbProvider.get ( ) ) ; }
Source:
public final native com.google.gwt.core.client.JsArrayString permitted_values ( java.lang.String n ) ;

Target:
public final native com.google.gwt.core.client.JsArrayString permittedValues ( java.lang.String n ) ;
Source:
public com.google.gerrit.extensions.common.CommentInfo get ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getDraft.apply ( draft ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot retrieve draft" , e ) ; } }

Target:
public com.google.gerrit.extensions.common.CommentInfo get ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getDraft.apply ( draft ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot retrieve draft" , e ) ; } }
Source:
public com.googlesrouce.gerrit.plugins.github.git.GHContentUpdateResponse createContent ( java.lang.String content , java.lang.String commitMessage , java.lang.String path , java.lang.String branch ) throws java.io.IOException { return ghRepository.createContent ( content , commitMessage , path , branch ) ; }

Target:
public com.googlesource.gerrit.plugins.github.git.GHContentUpdateResponse createContent ( java.lang.String content , java.lang.String commitMessage , java.lang.String path , java.lang.String branch ) throws java.io.IOException { return ghRepository.createContent ( content , commitMessage , path , branch ) ; }
Source:
protected java.lang.String getMappings ( ) { return ( ( ( "{\"mappings\" : " + ( com.google.gerrit.elasticsearch.ElasticChangeIndex.getMappingProperties ( "open_changes" ) ) ) + "," ) + ( com.google.gerrit.elasticsearch.ElasticChangeIndex.getMappingProperties ( "closed_changes" ) ) ) + "}" ; }

Target:
protected java.lang.String getMappings ( ) { return gson.toJson ( com.google.common.collect.ImmutableMap.of ( "mappings" , mapping ) ) ; }
Source:
private void injectMode ( com.google.gerrit.client.diff.DiffInfo diffInfo , com.google.gwt.user.client.rpc.AsyncCallback < java.lang.Void > cb ) { new net.codemirror.mode.ModeInjector ( ) . add ( getContentType ( diffInfo.meta_a ( ) ) ) . add ( getContentType ( diffInfo.meta_b ( ) ) ) . inject ( cb ) ; }

Target:
private void injectMode ( com.google.gerrit.client.diff.DiffInfo diffInfo , com.google.gwt.user.client.rpc.AsyncCallback < java.lang.Void > cb ) { new net.codemirror.mode.ModeInjector ( ) . add ( getContentType ( diffInfo.metaA ( ) ) ) . add ( getContentType ( diffInfo.metaB ( ) ) ) . inject ( cb ) ; }
Source:
public java.lang.Boolean run ( com.google.gerrit.client.reviewdb.ReviewDb db , com.google.gwtorm.client.Transaction txn , boolean retry ) throws com.google.gwtorm.client.OrmException { return doAbandonChange ( message , change , patchSetId , cmsg , db , txn ) ; }

Target:
public com.google.gwtjsonrpc.client.VoidResult run ( com.google.gerrit.client.reviewdb.ReviewDb db , com.google.gwtorm.client.Transaction txn , boolean retry ) throws com.google.gwtorm.client.OrmException { return doAddReviewers ( reviewerIds , id , db , txn ) ; }
Source:
public void delete ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteChange.apply ( change , null ) ; } catch ( com.google.gerrit.server.git.UpdateException | com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot delete change" , e ) ; } }

Target:
public void delete ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteChange.apply ( change , null ) ; } catch ( com.google.gerrit.server.update.UpdateException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot delete change" , e ) ; } }
Source:
public void onFailure ( java.lang.Throwable caught ) { super . onFailure ( caught ) ; save.setEnabled ( true ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { query = new com.google.gerrit.client.admin.ProjectTagsScreen.Query ( match ) . start ( start ) . run ( ) ; super . onFailure ( caught ) ; }