auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void putComment ( com.google.gerrit.reviewdb.client.Comment c ) { verifyComment ( c ) ; put.add ( c ) ; }

Target:
public void deleteComment ( com.google.gerrit.reviewdb.client.Comment c ) { verifyComment ( c ) ; delete.add ( com.google.gerrit.server.notedb.ChangeDraftUpdate.key ( c ) ) ; }
Source:
public java.util.List < com.googlesource.gerrit.plugins.replication.Destination > getDestinations ( ) { return destinations ; }

Target:
public boolean apply ( com.googlesource.gerrit.plugins.replication.Destination dest ) { if ( ( dest == null ) || ( ! ( dest.isCreateMissingRepos ( ) ) ) ) { return false ; } return true ; }
Source:
private boolean canRead ( final com.google.gerrit.reviewdb.Change c ) { try { return changeControlFactory.controlFor ( c ) . isVisible ( ) ; } catch ( com.google.gerrit.server.project.NoSuchChangeException e ) { return false ; } }

Target:
private boolean canRead ( final com.google.gerrit.reviewdb.Change c , final com.google.gerrit.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException { try { return changeControlFactory.controlFor ( c ) . isVisible ( db ) ; } catch ( com.google.gerrit.server.project.NoSuchChangeException e ) { return false ; } }
Source:
public com.google.gerrit.extensions.restapi.BinaryResult content ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getContent.apply ( file ) ; } catch ( java.io.IOException | com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot retrieve file content" , e ) ; } }

Target:
public com.google.gerrit.extensions.restapi.BinaryResult content ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getContent.apply ( file ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot retrieve file content" , e ) ; } }
Source:
public void onOpen ( final com.google.gwt.user.client.ui.DisclosureEvent event ) { if ( ( infoTable ) == null ) { ensureLoaded ( ) ; } }

Target:
public void onSuccess ( final com.google.gerrit.client.data.PatchSetDetail result ) { ensureLoaded ( result ) ; }
Source:
private static void assertNotOwner ( java.lang.String ref , com.google.gerrit.server.project.ProjectControl u ) { org.junit.Assert.assertFalse ( ( "NOT OWN " + ref ) , u.controlForRef ( ref ) . isOwner ( ) ) ; }

Target:
private void assertOwner ( java.lang.String ref , com.google.gerrit.server.project.ProjectControl u ) { com.google.common.truth.Truth.assertThat ( u.controlForRef ( ref ) . isOwner ( ) ) . named ( ( "OWN " + ref ) ) . isTrue ( ) ; }
Source:
public com.googlesrouce.gerrit.plugins.github.git.GHHook getHook ( int id ) throws java.io.IOException { return ghRepository.getHook ( id ) ; }

Target:
public com.googlesource.gerrit.plugins.github.git.GHHook getHook ( int id ) throws java.io.IOException { return ghRepository.getHook ( id ) ; }
Source:
public static org.eclipse.jgit.lib.ObjectId readNotNull ( final java.io.InputStream in ) throws java.io.IOException { final byte [ ] b = new byte [ 20 ] ; org.eclipse.jgit.util.NB.readFully ( in , b , 0 , 20 ) ; return org.eclipse.jgit.lib.ObjectId.fromRaw ( b ) ; }

Target:
public static org.eclipse.jgit.lib.ObjectId readNotNull ( final java.io.InputStream in ) throws java.io.IOException { final byte [ ] b = new byte [ 20 ] ; org.eclipse.jgit.util.IO.readFully ( in , b , 0 , 20 ) ; return org.eclipse.jgit.lib.ObjectId.fromRaw ( b ) ; }
Source:
public T decode ( com.google.protobuf.CodedInputStream in ) throws java.io.IOException { T obj = newInstance ( ) ; mergeFrom ( in , obj ) ; return obj ; }

Target:
public T decodeWithSize ( java.io.InputStream in ) throws java.io.IOException { T obj = newInstance ( ) ; mergeFromWithSize ( in , obj ) ; return obj ; }
Source:
public int compare ( com.google.gerrit.client.changes.ChangeInfo.RevisionInfo a , com.google.gerrit.client.changes.ChangeInfo.RevisionInfo b ) { return ( a._number ( ) ) - ( b._number ( ) ) ; }

Target:
public int compare ( com.google.gerrit.client.changes.ChangeInfo.RevisionInfo a , com.google.gerrit.client.changes.ChangeInfo.RevisionInfo b ) { return ( num ( a ) ) - ( num ( b ) ) ; }
Source:
public com.google.gerrit.server.ParamertizedString.Builder replace ( final java.lang.String name , final java.lang.String value ) { return new com.google.gerrit.server.ParamertizedString.Builder ( ) . replace ( name , value ) ; }

Target:
public com.google.gerrit.common.data.ParamertizedString.Builder replace ( final java.lang.String name , final java.lang.String value ) { return new com.google.gerrit.common.data.ParamertizedString.Builder ( ) . replace ( name , value ) ; }
Source:
public void error ( com.google.gerrit.server.git.ValidationError error ) { log.error ( ( message + ( error.getMessage ( ) ) ) ) ; }

Target:
public static com.google.gerrit.server.git.ValidationError.Sink createLoggerSink ( java.lang.String message , org.slf4j.Logger log ) { return ( error ) -> log.error ( ( message + ( error.getMessage ( ) ) ) ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { submitOnSelection = false ; if ( ( event.getCharCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { if ( nameTxt.isSuggestionListShowing ( ) ) { submitOnSelection = true ; } else { doAddNew ( ) ; } } }

Target:
public void onSelection ( com.google.gwt.event.logical.shared.SelectionEvent < com.google.gwt.user.client.ui.SuggestOracle.Suggestion > event ) { if ( submitOnSelection ) { submitOnSelection = false ; doAddNew ( ) ; } }
Source:
public int getEffectiveMaxBatchChangesLimit ( com.google.gerrit.server.CurrentUser user ) { com.google.gerrit.server.account.CapabilityControl cap = user.getCapabilities ( ) ; if ( cap.hasExplicitRange ( com.google.gerrit.common.data.GlobalCapability.BATCH_CHANGES_LIMIT ) ) { return cap.getRange ( com.google.gerrit.common.data.GlobalCapability.BATCH_CHANGES_LIMIT ) . getMax ( ) ; } return systemMaxBatchChanges ; }

Target:
public int getEffectiveMaxBatchChangesLimit ( com.google.gerrit.server.CurrentUser user ) { com.google.gerrit.server.account.CapabilityControl cap = capabilityFactory.create ( user ) ; if ( cap.hasExplicitRange ( com.google.gerrit.common.data.GlobalCapability.BATCH_CHANGES_LIMIT ) ) { return cap.getRange ( com.google.gerrit.common.data.GlobalCapability.BATCH_CHANGES_LIMIT ) . getMax ( ) ; } return systemMaxBatchChanges ; }
Source:
java.lang.String needApproval ( java.lang.String categoryName , java.lang.String value , java.lang.String valueName ) ;

Target:
java.lang.String needApproval ( java.lang.String labelName ) ;
Source:
private PatchSet.Id getCurrentPatchSetId ( java.lang.String changeId ) throws com.google.gwtorm.server.OrmException { return com.google.common.collect.Iterables.getOnlyElement ( db.changes ( ) . byKey ( new com.google.gerrit.reviewdb.client.Change.Key ( changeId ) ) ) . currentPatchSetId ( ) ; }

Target:
private org.eclipse.jgit.lib.ObjectId getCurrentRevisionId ( java.lang.String changeId ) throws com.google.gerrit.extensions.restapi.RestApiException { return org.eclipse.jgit.lib.ObjectId.fromString ( gApi.changes ( ) . id ( changeId ) . get ( ) . currentRevision ) ; }
Source:
void setReplyBox ( com.google.gerrit.client.diff.DraftBox box ) { replyBox = box ; box.setReplyToBox ( this ) ; }

Target:
void setReplyBox ( com.google.gerrit.client.diff.DraftBox box ) { replyBox = box ; com.google.gwt.user.client.ui.UIObject.setVisible ( buttons , false ) ; box.setReplyToBox ( this ) ; }
Source:
public void onSuccess ( java.lang.Void result ) { net.codemirror.theme.ThemeLoader.loadTheme ( prefs.theme ( ) , themeCallback ) ; group2.done ( ) ; group3.done ( ) ; }

Target:
public void onSuccess ( java.lang.Void result ) { if ( ( ! ( prefs.showBase ( ) ) ) || ( ( revision.get ( ) ) > 0 ) ) { group3.done ( ) ; } }
Source:
private void addExtensionPoints ( ) { addExtensionPoint ( GerritUiExtensionPoint.CHANGE_SCREEN_HEADER , headerExtension ) ; addExtensionPoint ( GerritUiExtensionPoint.CHANGE_SCREEN_HEADER_RIGHT_OF_POP_DOWNS , headerExtensionRight ) ; addExtensionPoint ( GerritUiExtensionPoint.CHANGE_SCREEN_BELOW_CHANGE_INFO_BLOCK , changeExtension ) ; }

Target:
private void addExtensionPoints ( ) { addExtensionPoint ( GerritUiExtensionPoint.CHANGE_SCREEN_HEADER , headerExtension ) ; addExtensionPoint ( GerritUiExtensionPoint.CHANGE_SCREEN_HEADER_RIGHT_OF_BUTTONS , headerExtensionMiddle ) ; addExtensionPoint ( GerritUiExtensionPoint.CHANGE_SCREEN_HEADER_RIGHT_OF_POP_DOWNS , headerExtensionRight ) ; addExtensionPoint ( GerritUiExtensionPoint.CHANGE_SCREEN_BELOW_CHANGE_INFO_BLOCK , changeExtension ) ; }
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.createRange ( path , getSideFromCm ( cm ) , ( line + 1 ) , null , null , null ) ) ; }
Source:
public com.google.gerrit.server.query.change.ChangeData apply ( com.google.gerrit.server.query.change.ChangeData input ) { input.cacheFromSource ( source ) ; return input ; }

Target:
public boolean match ( com.google.gerrit.server.query.change.ChangeData cd ) throws com.google.gwtorm.server.OrmException { return ( ( ( source ) != null ) && ( cd.isFromSource ( source ) ) ) || ( pred.match ( cd ) ) ; }
Source:
public void evictGroupsMembers ( ) throws java.lang.Exception { configureMocksFor ( Constants.GROUPS_MEMBERS ) ; servlet.doPost ( request , response ) ; }

Target:
public void evictPluginCache ( ) throws java.lang.Exception { configureMocksFor ( "my-plugin" , "my-cache" ) ; verifyResponseIsOK ( ) ; }
Source:
public void run ( ) { if ( ! ( session.isOpen ( ) ) ) { com.googlesource.gerrit.plugins.rabbitmq.message.MessagePublisher.LOGGER.info ( "#start: try to reconnect" ) ; session.connect ( ) ; } }

Target:
private void connect ( ) { if ( ( ! ( isConnected ( ) ) ) && ( session.connect ( ) ) ) { synchronized ( sessionMon ) { sessionMon.notifyAll ( ) ; } } }
Source:
public void onSuccess ( final com.google.gerrit.common.data.CommentDetail result ) { if ( ( rpcSequence ) == rpcseq ) { comments = result ; onResult ( ) ; } }

Target:
public void onSuccess ( final com.google.gerrit.common.data.CommentDetail result ) { if ( ( rpcSequence ) == rpcseq ) { comments = result ; onResult ( isFirst ) ; } }
Source:
private java.lang.String pushTagForNewCommit ( com.google.gerrit.acceptance.rest.project.PushTagIT.TagType tagType , org.eclipse.jgit.transport.RemoteRefUpdate.Status expectedStatus ) throws java.lang.Exception { return pushTag ( tagType , null , true , expectedStatus ) ; }

Target:
private void fastForwardTagToExistingCommit ( com.google.gerrit.acceptance.rest.project.PushTagIT.TagType tagType , java.lang.String tagName , org.eclipse.jgit.transport.RemoteRefUpdate.Status expectedStatus ) throws java.lang.Exception { pushTag ( tagType , tagName , false , false , expectedStatus ) ; }
Source:
public boolean isVisible ( ) { return isOwner ( ) ; }

Target:
public boolean canRemoveGroup ( final com.google.gerrit.reviewdb.AccountGroup.Id id ) { return isOwner ( ) ; }
Source:
protected void configureServlets ( ) { filter ( "/*" ) . through ( com.google.gerrit.server.UrlRewriteFilter.class ) ; filter ( "/*" ) . through ( com.google.inject.Key.get ( com.google.gwtexpui.server.CacheControlFilter.class ) ) ; bind ( com.google.inject.Key.get ( com.google.gwtexpui.server.CacheControlFilter.class ) ) . in ( Scopes.SINGLETON ) ; bind ( com.google.gerrit.server.GerritCall.class ) ; serve ( "/Gerrit" , "/Gerrit/*" ) . with ( com.google.gerrit.server.HostPageServlet.class ) ; serve ( "/prettify/*" ) . with ( com.google.gerrit.server.PrettifyServlet.class ) ; serve ( "/login" ) . with ( com.google.gerrit.server.OpenIdLoginServlet.class ) ; serve ( "/ssh_info" ) . with ( com.google.gerrit.server.ssh.SshServlet.class ) ; serve ( "/cat/*" ) . with ( com.google.gerrit.server.CatServlet.class ) ; serve ( "/static/*" ) . with ( com.google.gerrit.server.StaticServlet.class ) ; rpc ( com.google.gerrit.server.AccountServiceImpl.class ) ; rpc ( com.google.gerrit.server.AccountSecurityImpl.class ) ; rpc ( com.google.gerrit.server.GroupAdminServiceImpl.class ) ; rpc ( com.google.gerrit.server.ChangeDetailServiceImpl.class ) ; rpc ( com.google.gerrit.server.ChangeListServiceImpl.class ) ; rpc ( com.google.gerrit.server.ChangeManageServiceImpl.class ) ; rpc ( com.google.gerrit.server.OpenIdServiceImpl.class ) ; rpc ( com.google.gerrit.server.patch.PatchDetailServiceImpl.class ) ; rpc ( com.google.gerrit.server.ProjectAdminServiceImpl.class ) ; rpc ( com.google.gerrit.server.SuggestServiceImpl.class ) ; rpc ( com.google.gerrit.server.SystemInfoServiceImpl.class ) ; bind ( RegisterNewEmailSender.Factory.class ) . toProvider ( com.google.inject.assistedinject.FactoryProvider.newFactory ( RegisterNewEmailSender.Factory.class , com.google.gerrit.server.mail.RegisterNewEmailSender.class ) ) ; if ( com.google.gerrit.server.BecomeAnyAccountLoginServlet.isAllowed ( ) ) { serve ( "/become" ) . with ( com.google.gerrit.server.BecomeAnyAccountLoginServlet.class ) ; } }

Target:
protected void configure ( ) { factory ( RegisterNewEmailSender.Factory.class ) ; }
Source:
private void upToChange ( ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChangeInEditMode ( revision.getParentKey ( ) ) ) ; }

Target:
void onCancel ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChangeInEditMode ( revision.getParentKey ( ) ) ) ; }
Source:
private com.google.gerrit.server.config.GetServerInfo.ReceiveInfo getReceiveInfo ( ) { com.google.gerrit.server.config.GetServerInfo.ReceiveInfo info = new com.google.gerrit.server.config.GetServerInfo.ReceiveInfo ( ) ; info.enableSignedPush = enableSignedPush ; return info ; }

Target:
private com.google.gerrit.extensions.common.ReceiveInfo getReceiveInfo ( ) { com.google.gerrit.extensions.common.ReceiveInfo info = new com.google.gerrit.extensions.common.ReceiveInfo ( ) ; info.enableSignedPush = enableSignedPush ; return info ; }
Source:
public void setUp ( ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit.Result changeResult = createChange ( ) ; changeId = changeResult.getChangeId ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit.Result changeResult = createChange ( ) ; changeId = changeResult.getChangeId ( ) ; fixReplacementInfo = createFixReplacementInfo ( ) ; fixSuggestionInfo = createFixSuggestionInfo ( fixReplacementInfo ) ; withFixRobotCommentInput = createRobotCommentInput ( fixSuggestionInfo ) ; }
Source:
public static void schedule ( final java.lang.Runnable task , final long delay , final java.util.concurrent.TimeUnit unit ) { com.google.gerrit.git.WorkQueue.getPool ( true ) . schedule ( task , delay , unit ) ; }

Target:
public static void schedule ( final java.lang.Runnable task , final long delay , final java.util.concurrent.TimeUnit unit ) { com.google.gerrit.git.WorkQueue.getDefaultQueue ( ) . schedule ( task , delay , unit ) ; }
Source:
public void createBranchByAdminCreateReferenceBlocked ( ) throws java.lang.Exception { blockCreateReference ( ) ; assertCreateSucceeds ( ) ; }

Target:
public void createBranchByAdminCreateReferenceBlocked_Forbidden ( ) throws java.lang.Exception { blockCreateReference ( ) ; assertCreateFails ( com.google.gerrit.extensions.restapi.AuthException.class ) ; }
Source:
private com.google.gerrit.client.rpc.RestApi reviewed ( ) { return com.google.gerrit.client.changes.ChangeApi.revision ( patchSetId ) . view ( "files" ) . id ( path ) . view ( "reviewed" ) ; }

Target:
private com.google.gerrit.client.rpc.RestApi reviewed ( ) { return com.google.gerrit.client.changes.ChangeApi.revision ( Project.NameKey.asStringOrNull ( projectKey ) , patchSetId ) . view ( "files" ) . id ( path ) . view ( "reviewed" ) ; }
Source:
public < T extends java.lang.Enum < ? > > T select ( final java.lang.String title , final java.lang.String name , final T defValue ) { return select ( title , name , defValue , false ) ; }

Target:
public < T extends java.lang.Enum < ? > , E extends java.util.EnumSet < ? extends T > > T select ( java.lang.String title , java.lang.String name , T defValue ) { return select ( title , name , defValue , false ) ; }
Source:
private com.google.gerrit.common.changes.Side getSideFromCm ( net.codemirror.lib.CodeMirror cm ) { return cm == ( cmA ) ? com.google.gerrit.common.changes.Side.PARENT : com.google.gerrit.common.changes.Side.REVISION ; }

Target:
com.google.gerrit.common.changes.Side getStoredSideFromDisplaySide ( com.google.gerrit.client.diff.SideBySide2.DisplaySide side ) { return ( side == ( com.google.gerrit.client.diff.SideBySide2.DisplaySide.A ) ) && ( ( base ) == null ) ? com.google.gerrit.common.changes.Side.PARENT : com.google.gerrit.common.changes.Side.REVISION ; }
Source:
public java.lang.String apply ( com.google.gerrit.server.change.ChangeResource rsrc ) { com.google.gerrit.server.config.PluginConfig cfg = cfgFactory.getFromProjectConfig ( rsrc.getControl ( ) . getProjectControl ( ) . getProjectState ( ) , pluginName ) ; return cfg.getString ( "changeInfo" ) ; }

Target:
public java.lang.String apply ( com.google.gerrit.server.change.ChangeResource rsrc ) { com.google.gerrit.server.config.PluginConfig cfg = cfgFactory.getFromProjectConfigWithInheritance ( rsrc.getControl ( ) . getProjectControl ( ) . getProjectState ( ) , pluginName ) ; return cfg.getString ( "changeInfo" ) ; }
Source:
public static < T > com.google.gerrit.server.query.Predicate < T > any ( ) { return ( ( com.google.gerrit.server.query.Predicate < T > ) ( com.google.gerrit.server.query.Predicate.Any.INSTANCE ) ) ; }

Target:
public static < T > com.google.gerrit.index.query.Predicate < T > any ( ) { return ( ( com.google.gerrit.index.query.Predicate < T > ) ( com.google.gerrit.index.query.Predicate.Any.INSTANCE ) ) ; }
Source:
public void setUseContentMerge ( final com.google.gerrit.reviewdb.client.Project.InheritableBoolean cm ) { useContentMerge = cm ; }

Target:
public void setUseContentMerge ( final com.google.gerrit.extensions.common.InheritableBoolean cm ) { useContentMerge = cm ; }
Source:
default void onRemove ( org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.reviewdb.client.Account.Id accountId , com.google.gerrit.server.account.externalids.ExternalId.Key extIdKey ) throws java.io.IOException { onRemove ( newNotesRev , accountId , java.util.Collections.singleton ( extIdKey ) ) ; }

Target:
default void onRemoveByKey ( org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.reviewdb.client.Account.Id accountId , com.google.gerrit.server.account.externalids.ExternalId.Key extIdKey ) throws java.io.IOException { onRemoveByKeys ( newNotesRev , accountId , java.util.Collections.singleton ( extIdKey ) ) ; }
Source:
public void createBranchByAdminCreateReferenceBlocked_Forbidden ( ) throws java.lang.Exception { blockCreateReference ( ) ; assertCreateFails ( com.google.gerrit.extensions.restapi.AuthException.class , "create not permitted for refs/heads/test" ) ; }

Target:
public void createBranchByProjectOwner ( ) throws java.lang.Exception { grantOwner ( ) ; setApiUser ( user ) ; assertCreateSucceeds ( testBranch ) ; }
Source:
public com.google.gerrit.reviewdb.client.Change reloadChange ( ) throws com.google.gwtorm.server.OrmException { change = db.changes ( ) . get ( legacyId ) ; return change ; }

Target:
public com.google.gerrit.server.notedb.ChangeNotes notes ( ) throws com.google.gwtorm.server.OrmException { if ( ( notes ) == null ) { notes = notesFactory.create ( db , project , legacyId ) ; } return notes ; }
Source:
public void testAppend_double ( ) { final com.google.gwtexpui.safehtml.client.SafeHtmlBuilder b = new com.google.gwtexpui.safehtml.client.SafeHtmlBuilder ( ) ; org.junit.Assert.assertSame ( b , b.append ( 0.0 ) ) ; org.junit.Assert.assertEquals ( "0.0" , b.asString ( ) ) ; }

Target:
public void testAppend_float ( ) { final com.google.gwtexpui.safehtml.client.SafeHtmlBuilder b = new com.google.gwtexpui.safehtml.client.SafeHtmlBuilder ( ) ; com.google.common.truth.Truth.assertThat ( b ) . isSameAs ( b.append ( 0.0F ) ) ; com.google.common.truth.Truth.assertThat ( b.asString ( ) ) . isEqualTo ( "0.0" ) ; }
Source:
private void fireChangeIndexedEvent ( com.google.gerrit.server.query.change.ChangeData change ) { for ( com.google.gerrit.server.extensions.events.ChangeIndexedListener listener : indexedListener ) { listener.onChangeIndexed ( change ) ; } }

Target:
private void fireChangeIndexedEvent ( int id ) { for ( com.google.gerrit.extensions.events.ChangeIndexedListener listener : indexedListener ) { listener.onChangeIndexed ( id ) ; } }
Source:
public com.google.gerrit.server.plugins.InstallPlugin create ( com.google.gerrit.extensions.restapi.TopLevelResource parent , java.lang.String id ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { return new com.google.gerrit.server.plugins.InstallPlugin ( loader , com.google.gerrit.server.plugins.PluginsCollection.decode ( id ) ) ; }

Target:
public com.google.gerrit.server.plugins.InstallPlugin create ( com.google.gerrit.extensions.restapi.TopLevelResource parent , java.lang.String id ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException { return new com.google.gerrit.server.plugins.InstallPlugin ( loader , com.google.gerrit.server.util.Url.decode ( id ) ) ; }
Source:
public final boolean contains ( int line ) { return ( ( getFrom ( ) ) <= line ) && ( line < ( getTo ( ) ) ) ; }

Target:
public final boolean contains ( int line ) { return ( ( from ( ) ) <= line ) && ( line < ( to ( ) ) ) ; }
Source:
public synchronized java.util.List < com.google.gerrit.server.plugins.Plugin > getPlugins ( ) { return com.google.common.collect.Lists.newArrayList ( running.values ( ) ) ; }

Target:
public java.lang.Iterable < com.google.gerrit.server.plugins.Plugin > getPlugins ( ) { return running.values ( ) ; }
Source:
public final java.lang.String getPassword ( ) { return password ; }

Target:
public final java.util.Optional < java.lang.String > getPassword ( ) { return password ; }
Source:
public boolean canWrite ( ) { return getProjectControl ( ) . getProject ( ) . getState ( ) . equals ( ProjectState.ACTIVE ) ; }

Target:
private boolean isProjectStatePermittingWrite ( ) { return getProjectControl ( ) . getProject ( ) . getState ( ) . equals ( ProjectState.ACTIVE ) ; }
Source:
private static org.antlr.runtime.tree.Tree parse ( java.lang.String str ) throws com.google.gerrit.server.query.QueryParseException { return com.google.gerrit.server.query.QueryParser.parse ( str ) ; }

Target:
private static org.antlr.runtime.tree.Tree parse ( java.lang.String str ) throws com.google.gerrit.index.query.QueryParseException { return com.google.gerrit.index.query.QueryParser.parse ( str ) ; }
Source:
public void noNotificationForDraftChangesForWatchersInNotifyConfig ( ) 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_CHANGES ) ) ; 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 , "draft change" , "a" , "a1" ) . to ( "refs/for/master%draft" ) ; r.assertOkStatus ( ) ; com.google.common.truth.Truth.assertThat ( sender.getMessages ( ) ) . isEmpty ( ) ; }

Target:
public void noNotificationForWipChangesForWatchersInNotifyConfig ( ) 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_CHANGES , NotifyType.ALL_COMMENTS ) ) ; com.google.gerrit.server.git.ProjectConfig cfg = projectCache.checkedGet ( project ) . getConfig ( ) ; cfg.putNotifyConfig ( "team" , nc ) ; saveProjectConfig ( project , cfg ) ; sender.clear ( ) ; com.google.gerrit.acceptance.PushOneCommit.Result r = pushFactory.create ( db , admin.getIdent ( ) , testRepo , "wip change" , "a" , "a1" ) . to ( "refs/for/master%wip" ) ; 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 ( ) ; }
Source:
private java.util.jar.Manifest getPluginManifest ( com.google.gerrit.server.plugins.PluginScanner scanner ) throws com.google.gerrit.server.plugins.InvalidPluginException { try { return scanner.getManifest ( ) ; } catch ( java.io.IOException e ) { throw new com.google.gerrit.server.plugins.InvalidPluginException ( "Cannot get plugin manifest" , e ) ; } }

Target:
private java.util.jar.Manifest getPluginManifest ( com.google.gerrit.server.plugins.PluginContentScanner scanner ) throws com.google.gerrit.server.plugins.InvalidPluginException { try { return scanner.getManifest ( ) ; } catch ( java.io.IOException e ) { throw new com.google.gerrit.server.plugins.InvalidPluginException ( "Cannot get plugin manifest" , e ) ; } }
Source:
abstract com.google.gerrit.server.project.ChangeControl control ( ) ;

Target:
abstract com.google.gerrit.server.notedb.ChangeNotes notes ( ) ;
Source:
public void run ( ) throws java.lang.Exception { parseCommandLine ( ) ; updateParents ( ) ; }

Target:
public void run ( ) throws java.lang.Exception { stdout = toPrintWriter ( out ) ; try { parseCommandLine ( ) ; updateParents ( ) ; } finally { stdout.flush ( ) ; } }
Source:
private java.lang.String comparePattern ( ) { if ( getName ( ) . startsWith ( com.google.gerrit.common.data.AccessSection.REGEX_PREFIX ) ) { return getName ( ) . substring ( com.google.gerrit.common.data.AccessSection.REGEX_PREFIX.length ( ) ) ; } return getName ( ) ; }

Target:
public java.lang.String toString ( ) { return ( "AccessSection[" + ( getName ( ) ) ) + "]" ; }
Source:
protected void configureServlets ( ) { bind ( com.google.gerrit.sshd.QueueProvider.class ) . to ( com.google.gerrit.sshd.CommandExecutorQueueProvider.class ) . in ( com.google.inject.Scopes.SINGLETON ) ; filterRegex ( com.google.gerrit.pgm.http.jetty.ProjectQoSFilter.FILTER_RE ) . through ( com.google.gerrit.pgm.http.jetty.ProjectQoSFilter.class ) ; }

Target:
protected void configureServlets ( ) { bind ( com.google.gerrit.server.git.QueueProvider.class ) . to ( com.google.gerrit.sshd.CommandExecutorQueueProvider.class ) . in ( com.google.inject.Scopes.SINGLETON ) ; filterRegex ( com.google.gerrit.pgm.http.jetty.ProjectQoSFilter.FILTER_RE ) . through ( com.google.gerrit.pgm.http.jetty.ProjectQoSFilter.class ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( event.getCharCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { doAddNewBranch ( ) ; } }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { doAddNewBranch ( ) ; }
Source:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { doCreateGroup ( ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( event.getNativeEvent ( ) . getKeyCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { doCreateGroup ( ) ; } }
Source:
static synchronized void notifyStarting ( final com.google.gerrit.git.PushOp op ) { com.google.gerrit.git.PushQueue.pending.remove ( op.getURI ( ) ) ; }

Target:
void notifyStarting ( final com.google.gerrit.git.PushOp op ) { synchronized ( pending ) { pending.remove ( op.getURI ( ) ) ; } }
Source:
public final com.google.gerrit.server.query.Predicate < T > getChild ( int i ) { return children.get ( i ) ; }

Target:
public final com.google.gerrit.index.query.Predicate < T > getChild ( int i ) { return children.get ( i ) ; }
Source:
public void onResize ( com.google.gwt.event.logical.shared.ResizeEvent event ) { resizeCodeMirror ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.rpc.NativeMap < com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.CommentInfo > > result ) { com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.CommentInfo > in = result.get ( path ) ; if ( in != null ) { addAllToCommentList ( in , toDrafts ) ; } }
Source:
private static int now ( ) { return ( ( int ) ( ( java.lang.System.currentTimeMillis ( ) ) / 1000L ) ) ; }

Target:
private static int now ( ) { return ( ( int ) ( ( java.lang.System.currentTimeMillis ( ) ) / 5000L ) ) ; }
Source:
protected void configure ( ) { com.google.gerrit.extensions.registration.DynamicSet.bind ( binder ( ) , com.google.gerrit.common.ChangeListener.class ) . to ( com.googlesource.gerrit.plugins.reviewers.ChangeEventListener.class ) ; factory ( DefaultReviewers.Factory.class ) ; factory ( ReviewersConfig.Factory.class ) ; }

Target:
protected void configure ( ) { get ( com.google.gerrit.server.project.ProjectResource.PROJECT_KIND , "reviewers" ) . to ( com.googlesource.gerrit.plugins.reviewers.GetReviewers.class ) ; put ( com.google.gerrit.server.project.ProjectResource.PROJECT_KIND , "reviewers" ) . to ( com.googlesource.gerrit.plugins.reviewers.PutReviewers.class ) ; }
Source:
public synchronized void stop ( ) { if ( ( ds ) != null ) { closeDataSource ( ds ) ; } }

Target:
public synchronized void stop ( ) { if ( ( dataSource ) != null ) { closeDataSource ( dataSource ) ; } }
Source:
private org.pegdown.ast.RootNode parseMarkdown ( java.lang.String md ) { return new org.pegdown.PegDownProcessor ( ( ( org.pegdown.Extensions.ALL ) & ( ~ ( org.pegdown.Extensions.HARDWRAPS ) ) ) ) . parseMarkdown ( md.toCharArray ( ) ) ; }

Target:
private org.pegdown.ast.RootNode parseMarkdown ( java.lang.String md ) { int options = ( org.pegdown.Extensions.ALL ) & ( ~ ( org.pegdown.Extensions.HARDWRAPS ) ) ; if ( suppressHtml ) { options |= org.pegdown.Extensions.SUPPRESS_ALL_HTML ; } return new org.pegdown.PegDownProcessor ( options ) . parseMarkdown ( md.toCharArray ( ) ) ; }
Source:
public void testGcWithoutCapability_Error ( ) throws com.google.gwtorm.server.OrmException , com.jcraft.jsch.JSchException , java.io.IOException { com.google.gerrit.acceptance.SshSession s = new com.google.gerrit.acceptance.SshSession ( server , accounts.create ( "user" , "user@example.com" , "User" ) ) ; s.exec ( "gerrit gc --all" ) ; assertError ( "Capability runGC is required to access this resource" , s.getError ( ) ) ; s.close ( ) ; }

Target:
public void testGcWithoutCapability_Error ( ) throws com.google.gwtorm.server.OrmException , com.jcraft.jsch.JSchException , java.io.IOException { com.google.gerrit.acceptance.SshSession s = new com.google.gerrit.acceptance.SshSession ( server , user ) ; s.exec ( "gerrit gc --all" ) ; assertError ( "Capability runGC is required to access this resource" , s.getError ( ) ) ; s.close ( ) ; }
Source:
public void GetDiffPreferences ( ) throws java.lang.Exception { com.google.gerrit.extensions.client.DiffPreferencesInfo result = get ( ) ; assertPrefsEqual ( result , com.google.gerrit.extensions.client.DiffPreferencesInfo.defaults ( ) ) ; }

Target:
public void getDiffPreferences ( ) throws java.lang.Exception { com.google.gerrit.extensions.client.DiffPreferencesInfo result = gApi.config ( ) . server ( ) . getDefaultDiffPreferences ( ) ; assertPrefsEqual ( result , com.google.gerrit.extensions.client.DiffPreferencesInfo.defaults ( ) ) ; }
Source:
private boolean canSkipRef ( com.google.gerrit.server.config.PluginConfig config , java.lang.String ref ) { return matchCriteria ( config , "skipRef" , ref , true ) ; }

Target:
private boolean activeForProject ( com.google.gerrit.server.config.PluginConfig config , java.lang.String project ) { return matchCriteria ( config , "project" , project , true , false ) ; }
Source:
public java.lang.String apply ( java.lang.String in ) { return in.replace ( "/" , "." ) ; }

Target:
public com.google.gerrit.server.plugins.PluginEntry apply ( java.util.jar.JarEntry jarEntry ) { try { return resourceOf ( jarEntry ) ; } catch ( java.io.IOException e ) { throw new java.lang.IllegalArgumentException ( ( ( "Cannot convert jar entry " + jarEntry ) + " to a resource" ) , e ) ; } }
Source:
public void createProjectFoo ( ) throws java.lang.Exception { java.lang.String name = name ( "foo" ) ; com.google.common.truth.Truth.assertThat ( name ) . isEqualTo ( gApi.projects ( ) . create ( name ) . get ( ) . name ) ; }

Target:
public void createProject ( ) throws java.lang.Exception { java.lang.String name = name ( "foo" ) ; com.google.common.truth.Truth.assertThat ( name ) . isEqualTo ( gApi.projects ( ) . create ( name ) . get ( ) . name ) ; }
Source:
private boolean isEmpty ( ) { if ( ! ( migration.writeChanges ( ) ) ) { return true ; } return ( ( changeUpdates.isEmpty ( ) ) && ( draftUpdates.isEmpty ( ) ) ) && ( toDelete.isEmpty ( ) ) ; }

Target:
private boolean isEmpty ( ) { if ( ! ( migration.commitChangeWrites ( ) ) ) { return true ; } return ( ( changeUpdates.isEmpty ( ) ) && ( draftUpdates.isEmpty ( ) ) ) && ( toDelete.isEmpty ( ) ) ; }
Source:
public static void removeRpcStatusListener ( final com.google.gwtjsonrpc.client.RpcStatusListener l ) { com.google.gwtjsonrpc.client.JsonUtil.listeners.remove ( l ) ; }

Target:
public static com.google.gwt.event.shared.HandlerRegistration addRpcCompleteHandler ( com.google.gwtjsonrpc.client.RpcCompleteHandler h ) { return com.google.gwtjsonrpc.client.JsonUtil.globalHandlers.addHandler ( com.google.gwtjsonrpc.client.RpcCompleteEvent.getType ( ) , h ) ; }
Source:
public void asyncStarredChanges ( ) { if ( ( ( starredChanges ) == null ) && ( ( starredChangesUtil ) != null ) ) { starredQuery = starredChangesUtil.query ( accountId ) ; } }

Target:
public void asyncStarredChanges ( ) { if ( ( ( starredChanges ) == null ) && ( ( starredChangesUtil ) != null ) ) { starredQuery = starredChangesUtil.queryFromIndex ( accountId ) ; } }
Source:
java.lang.String notSupported ( java.lang.String url ) ;

Target:
java.lang.String linkAt ( java.lang.String hostname ) ;
Source:
public org.eclipse.jgit.lib.Config getProjectPluginConfigWithInheritance ( com.google.gerrit.server.project.ProjectState projectState , java.lang.String pluginName ) { return projectState.getConfig ( pluginName ) . getWithInheritance ( ) ; }

Target:
public org.eclipse.jgit.lib.Config getProjectPluginConfigWithInheritance ( com.google.gerrit.server.project.ProjectState projectState , java.lang.String pluginName ) { return projectState.getConfig ( ( pluginName + ( com.google.gerrit.server.config.PluginConfigFactory.EXTENSION ) ) ) . getWithInheritance ( ) ; }
Source:
static org.eclipse.jgit.storage.file.FileBasedConfig loadGerritIndexConfig ( com.google.gerrit.server.config.SitePaths sitePaths ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { org.eclipse.jgit.storage.file.FileBasedConfig cfg = new org.eclipse.jgit.storage.file.FileBasedConfig ( new java.io.File ( sitePaths.index_dir , "gerrit_index.config" ) , org.eclipse.jgit.util.FS.detect ( ) ) ; cfg.load ( ) ; return cfg ; }

Target:
static org.eclipse.jgit.storage.file.FileBasedConfig loadGerritIndexConfig ( com.google.gerrit.server.config.SitePaths sitePaths ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { org.eclipse.jgit.storage.file.FileBasedConfig cfg = new org.eclipse.jgit.storage.file.FileBasedConfig ( sitePaths.index_dir.resolve ( "gerrit_index.config" ) . toFile ( ) , org.eclipse.jgit.util.FS.detect ( ) ) ; cfg.load ( ) ; return cfg ; }
Source:
public void setTitleText ( final java.lang.String text ) { com.google.gwt.user.client.DOM.setInnerText ( headerText , text ) ; }

Target:
public void setTitleText ( final java.lang.String text ) { headerText.setText ( text ) ; }
Source:
public long getContentLength ( ) { return buf.length ( ) ; }

Target:
private static com.google.gerrit.extensions.restapi.BinaryResult asBinaryResult ( final org.eclipse.jgit.util.TemporaryBuffer.Heap buf ) { return new com.google.gerrit.extensions.restapi.BinaryResult ( ) { @ java.lang.Override public void writeTo ( java.io.OutputStream os ) throws java.io.IOException { buf.writeTo ( os , null ) ; } } . setContentLength ( buf.length ( ) ) ; }
Source:
public java.lang.String getBaseGerritUrl ( javax.servlet.http.HttpServletRequest req ) { return "http://test-host-review/foo/" ; }

Target:
public java.lang.String getBaseGitUrl ( javax.servlet.http.HttpServletRequest req ) { return ( "git://" + ( com.google.gitiles.TestGitilesUrls.HOST_NAME ) ) + "/foo" ; }
Source:
public void shouldIndexInRemoteOnChangeIndexedEvent ( ) throws java.lang.Exception { indexEventHandler.onChangeIndexed ( id.get ( ) ) ; org.mockito.Mockito.verify ( restSessionMock ) . index ( com.ericsson.gerrit.plugins.syncindex.IndexEventHandlerTest.CHANGE_ID ) ; }

Target:
public void shouldIndexInRemoteOnChangeIndexedEvent ( ) throws java.lang.Exception { indexEventHandler.onChangeIndexed ( id.get ( ) ) ; org.mockito.Mockito.verify ( restSessionMock ) . index ( com.ericsson.gerrit.plugins.highavailability.IndexEventHandlerTest.CHANGE_ID ) ; }
Source:
public static com.google.gerrit.reviewdb.client.PatchSet newPatchSet ( com.google.gerrit.reviewdb.client.PatchSet.Id id , org.eclipse.jgit.lib.ObjectId revision , com.google.gerrit.reviewdb.client.Account.Id userId ) { return com.google.gerrit.testutil.TestChanges.newPatchSet ( id , revision.name ( ) , userId ) ; }

Target:
public static com.google.gerrit.reviewdb.client.PatchSet newPatchSet ( com.google.gerrit.reviewdb.client.PatchSet.Id id , org.eclipse.jgit.lib.ObjectId revision , com.google.gerrit.reviewdb.client.Account.Id userId ) { return com.google.gerrit.testing.TestChanges.newPatchSet ( id , revision.name ( ) , userId ) ; }
Source:
private com.google.inject.Injector createSshInjector ( ) { return sysInjector.createChildInjector ( new com.google.gerrit.server.ssh.SshDaemonModule ( ) ) ; }

Target:
private com.google.inject.Injector createSshInjector ( ) { return sysInjector.createChildInjector ( new com.google.gerrit.server.ssh.SshModule ( ) ) ; }
Source:
public static java.lang.String toChange ( final com.google.gerrit.reviewdb.client.PatchSet.Id ps ) { return ( ( "/c/" + ( ps.getParentKey ( ) ) ) + "/" ) + ( ps.getId ( ) ) ; }

Target:
private static java.lang.String toChangeNoSlash ( @ com.google.gerrit.common.Nullable com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id c ) { if ( project != null ) { return ( ( "/c/" + ( project.get ( ) ) ) + ( com.google.gerrit.common.PageLinks.PROJECT_CHANGE_DELIMITER ) ) + c ; } return "/c/" + c ; }
Source:
protected void formatChange ( ) throws com.google.gerrit.common.errors.EmailException { appendText ( velocifyFile ( "ReplacePatchSet.vm" ) ) ; }

Target:
protected void formatChange ( ) throws com.google.gerrit.common.errors.EmailException { appendText ( textTemplate ( "ReplacePatchSet" ) ) ; }
Source:
boolean visibleForReplication ( ) { return ( ( user ) instanceof com.google.gerrit.server.ReplicationUser ) && ( ( ( com.google.gerrit.server.ReplicationUser ) ( user ) ) . isEverythingVisible ( ) ) ; }

Target:
public boolean isVisible ( ) { return ( ( ( user ) instanceof com.google.gerrit.server.InternalUser ) || ( canPerformOnAnyRef ( Permission.READ ) ) ) && ( ! ( isHidden ( ) ) ) ; }
Source:
public com.google.gwtorm.server.ResultSet < com.google.gerrit.reviewdb.client.PatchSet > iterateAllEntities ( ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.server.schema.DisabledChangesReviewDbWrapper.MSG ) ; }

Target:
public com.google.gwtorm.server.ResultSet < com.google.gerrit.reviewdb.client.PatchSet > iterateAllEntities ( ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.reviewdb.server.DisabledChangesReviewDbWrapper.MSG ) ; }
Source:
public boolean canSubmit ( ) { if ( GitRepositoryManager.REF_CONFIG.equals ( refName ) ) { return projectControl.isOwner ( ) ; } return ( canPerform ( Permission.SUBMIT ) ) && ( canWrite ( ) ) ; }

Target:
public boolean canSubmit ( ) { if ( RefNames.REFS_CONFIG.equals ( refName ) ) { return projectControl.isOwner ( ) ; } return ( canPerform ( Permission.SUBMIT ) ) && ( canWrite ( ) ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.projects.ConfigInfoCache.Entry result ) { commentLinkProcessor = result.getCommentLinkProcessor ( ) ; setTheme ( result.getTheme ( ) ) ; display ( pubDetail ) ; }

Target:
protected void preDisplay ( com.google.gerrit.client.projects.ConfigInfoCache.Entry result ) { send.setEnabled ( true ) ; commentLinkProcessor = result.getCommentLinkProcessor ( ) ; setTheme ( result.getTheme ( ) ) ; displayScreen ( ) ; }
Source:
abstract java.lang.Runnable newDraftCallback ( final net.codemirror.lib.CodeMirror cm ) ;

Target:
java.lang.Runnable toggleOpenBox ( final net.codemirror.lib.CodeMirror cm ) { return new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { com.google.gerrit.client.diff.CommentGroup group = getCommentGroupOnActiveLine ( cm ) ; if ( group != null ) { group.openCloseLast ( ) ; } } } ; }
Source:
public java.io.InputStream getInput ( ) { return in ; }

Target:
public java.io.InputStream openStream ( ) throws java.io.IOException { return rawKey.getInputStream ( ) ; }
Source:
public void onFocus ( com.google.gwt.event.dom.client.FocusEvent event ) { strings.put ( tb , tb.getText ( ) ) ; }

Target:
public void onFocus ( com.google.gwt.event.dom.client.FocusEvent event ) { strings.put ( tb , tb.getText ( ) . trim ( ) ) ; }
Source:
public void testCreateProjectHttpWithNameMismatch_BadRequest ( ) throws java.lang.Exception { com.google.gerrit.extensions.api.projects.ProjectInput in = new com.google.gerrit.extensions.api.projects.ProjectInput ( ) ; in.name = name ( "otherName" ) ; adminSession.put ( ( "/projects/" + ( name ( "someName" ) ) ) , in ) . assertBadRequest ( ) ; }

Target:
public void testCreateProjectHttpWithNameMismatch_BadRequest ( ) throws java.lang.Exception { com.google.gerrit.extensions.api.projects.ProjectInput in = new com.google.gerrit.extensions.api.projects.ProjectInput ( ) ; in.name = name ( "otherName" ) ; adminRestSession.put ( ( "/projects/" + ( name ( "someName" ) ) ) , in ) . assertBadRequest ( ) ; }
Source:
protected PushOneCommit.Result createChange ( ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , admin.getIdent ( ) , testRepo ) ; return push.to ( "refs/for/master" ) ; }

Target:
protected PushOneCommit.Result createChange ( ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , admin.getIdent ( ) , testRepo ) ; com.google.gerrit.acceptance.PushOneCommit.Result result = push.to ( "refs/for/master" ) ; result.assertOkStatus ( ) ; return result ; }
Source:
public com.google.gerrit.server.group.AddMembers.PutMember create ( final com.google.gerrit.server.group.GroupResource group , final java.lang.String id ) { return new com.google.gerrit.server.group.AddMembers.PutMember ( put , com.google.gerrit.extensions.restapi.Url.decode ( id ) ) ; }

Target:
public com.google.gerrit.server.group.AddMembers.PutMember create ( com.google.gerrit.server.group.GroupResource group , com.google.gerrit.extensions.restapi.IdString id ) { return new com.google.gerrit.server.group.AddMembers.PutMember ( put , id.get ( ) ) ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.pgm.init.ConsoleUI.class ) . toInstance ( init.ui ) ; bind ( com.google.gerrit.pgm.init.InitFlags.class ) . toInstance ( init.flags ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.pgm.init.api.ConsoleUI.class ) . toInstance ( init.ui ) ; bind ( com.google.gerrit.pgm.init.api.InitFlags.class ) . toInstance ( init.flags ) ; }
Source:
private void assertMergeable ( com.google.gerrit.server.query.change.ChangeData change , boolean expected ) throws java.lang.Exception { change.setMergeable ( null ) ; com.google.common.truth.Truth.assertThat ( change.isMergeable ( ) ) . isEqualTo ( expected ) ; }

Target:
private void assertNotMergeable ( com.google.gerrit.server.query.change.ChangeData change ) throws java.lang.Exception { change.setMergeable ( null ) ; com.google.common.truth.Truth.assertThat ( change.isMergeable ( ) ) . isFalse ( ) ; }
Source:
public org.eclipse.jgit.lib.ObjectId getOldId ( ) { refreshObjectIds ( ) ; return oldId ; }

Target:
public org.eclipse.jgit.lib.ObjectId getOldId ( ) { if ( ( ( oldId ) == null ) && ( ( oldIdName ) != null ) ) { oldId = org.eclipse.jgit.lib.ObjectId.fromString ( oldIdName ) ; } return oldId ; }
Source:
public void onSend ( ) { Util.MANAGE_SVC.createNewPatchSet ( patchSetId , getMessageText ( ) , createCallback ( ) ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { enableButtons ( true ) ; new com.google.gerrit.client.ErrorDialog ( caught.getMessage ( ) ) . center ( ) ; }
Source:
private void configureRequestScope ( ) { bind ( com.google.gerrit.server.IdentifiedUser.class ) . toProvider ( com.google.gerrit.server.ssh.SshCurrentUserProvider.class ) . in ( SshScopes.REQUEST ) ; bind ( com.google.gerrit.server.CurrentUser.class ) . to ( com.google.gerrit.server.IdentifiedUser.class ) ; }

Target:
private void configureRequestScope ( ) { install ( new com.google.gerrit.server.config.GerritRequestModule ( ) ) ; bind ( com.google.gerrit.server.IdentifiedUser.class ) . toProvider ( com.google.gerrit.server.ssh.SshCurrentUserProvider.class ) . in ( SshScopes.REQUEST ) ; bind ( com.google.gerrit.server.CurrentUser.class ) . to ( com.google.gerrit.server.IdentifiedUser.class ) ; }
Source:
protected final void setRefLogIdent ( com.google.gerrit.reviewdb.client.PatchSetApproval submitApproval ) { if ( ( ( refLogIdent ) == null ) && ( submitApproval != null ) ) { refLogIdent = args.identifiedUserFactory.create ( submitApproval.getAccountId ( ) ) . newRefLogIdent ( ) ; } }

Target:
protected final void setRefLogIdent ( ) { if ( ( refLogIdent ) == null ) { refLogIdent = args.identifiedUserFactory.create ( args.caller.getAccountId ( ) ) . newRefLogIdent ( ) ; } }
Source:
java.lang.String projectName ( ) ;

Target:
java.lang.String displayPatchSetsInReverseOrder ( ) ;
Source:
public void testSimpleAdvance ( ) { com.google.gerrit.client.diff.CodeMirrorDemo.EditIterator iter = new com.google.gerrit.client.diff.CodeMirrorDemo.EditIterator ( lines , 0 ) ; assertLineChsEqual ( net.codemirror.lib.LineCharacter.create ( 0 , 1 ) , iter.advance ( 1 ) ) ; }

Target:
public void testSimpleAdvance ( ) { com.google.gerrit.client.diff.SideBySide2.EditIterator iter = new com.google.gerrit.client.diff.SideBySide2.EditIterator ( lines , 0 ) ; assertLineChsEqual ( net.codemirror.lib.LineCharacter.create ( 0 , 1 ) , iter.advance ( 1 ) ) ; }
Source:
public java.util.Set < com.google.gerrit.reviewdb.client.AccountGroup.UUID > getKnownGroups ( ) { java.util.Set < com.google.gerrit.reviewdb.client.AccountGroup.UUID > groups = com.google.common.collect.Sets.newHashSet ( ) ; for ( com.google.gerrit.server.account.GroupMembership m : memberships.values ( ) ) { groups.addAll ( m.getKnownGroups ( ) ) ; } return groups ; }

Target:
public java.util.Set < com.google.gerrit.reviewdb.client.AccountGroup.UUID > getKnownGroups ( ) { java.util.Set < com.google.gerrit.reviewdb.client.AccountGroup.UUID > groups = new java.util.HashSet < > ( ) ; for ( com.google.gerrit.server.account.GroupMembership m : memberships.values ( ) ) { groups.addAll ( m.getKnownGroups ( ) ) ; } return groups ; }