auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected com.google.gwt.user.client.ui.Panel getButtonPanel ( ) { if ( ( buttons ) == null ) { buttons = new com.google.gwt.user.client.ui.FlowPanel ( ) ; buttons.setStyleName ( "gerrit-CommentPanel-Buttons" ) ; content.add ( buttons ) ; } return buttons ; }

Target:
protected com.google.gwt.user.client.ui.Panel getButtonPanel ( ) { if ( ( buttons ) == null ) { buttons = new com.google.gwt.user.client.ui.FlowPanel ( ) ; buttons.setStyleName ( Gerrit.RESOURCES.css ( ) . commentPanelButtons ( ) ) ; content.add ( buttons ) ; } return buttons ; }
Source:
public void onFailure ( java.lang.Throwable err ) { relatedChangesTab.setTitle ( Resources.M.relatedChanges ( "na" ) ) ; relatedChangesTab.setError ( err.getMessage ( ) ) ; }

Target:
public void onFailure ( java.lang.Throwable err ) { relatedChangesTab.setTitle ( Resources.M.relatedChanges ( Resources.C.notAvailable ( ) ) ) ; relatedChangesTab.setError ( err.getMessage ( ) ) ; }
Source:
public void addGpgKey ( ) throws java.lang.Exception { com.google.gerrit.server.git.gpg.TestKey key = com.google.gerrit.server.git.gpg.TestKey.key1 ( ) ; java.lang.String id = com.google.gerrit.server.git.gpg.PublicKeyStore.keyIdToString ( key.getKeyId ( ) ) ; addExternalIdEmail ( admin , "test1@example.com" ) ; com.google.gerrit.extensions.common.GpgKeyInfo info = gApi.accounts ( ) . self ( ) . putGpgKeys ( com.google.common.collect.ImmutableList.of ( key.getPublicKeyArmored ( ) ) ) . get ( id ) ; info.id = id ; com.google.gerrit.acceptance.api.accounts.AccountIT.assertKeyEquals ( key , info ) ; com.google.gerrit.acceptance.api.accounts.AccountIT.assertKeyEquals ( key , gApi.accounts ( ) . self ( ) . gpgKey ( id ) . get ( ) ) ; org.bouncycastle.openpgp.PGPPublicKey stored = getOnlyKeyFromStore ( key ) ; com.google.common.truth.Truth.assertThat ( stored.getFingerprint ( ) ) . isEqualTo ( key.getPublicKey ( ) . getFingerprint ( ) ) ; setApiUser ( user ) ; exception.expect ( com.google.gerrit.extensions.restapi.ResourceNotFoundException.class ) ; exception.expectMessage ( id ) ; gApi.accounts ( ) . self ( ) . gpgKey ( id ) . get ( ) ; }

Target:
private java.util.Map < java.lang.String , com.google.gerrit.extensions.common.GpgKeyInfo > addGpgKey ( java.lang.String armored ) throws java.lang.Exception { return gApi.accounts ( ) . self ( ) . putGpgKeys ( com.google.common.collect.ImmutableList.of ( armored ) , com.google.common.collect.ImmutableList.< java.lang.String > of ( ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { com.google.gerrit.server.git.ProjectConfig cfg = projectCache.checkedGet ( project ) . getConfig ( ) ; cfg.setEnableReviewerByEmail ( true ) ; saveProjectConfig ( project , cfg ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { com.google.gerrit.extensions.api.projects.ConfigInput conf = new com.google.gerrit.extensions.api.projects.ConfigInput ( ) ; conf.enableReviewerByEmail = com.google.gerrit.extensions.client.InheritableBoolean.TRUE ; gApi.projects ( ) . name ( project.get ( ) ) . config ( conf ) ; }
Source:
private static long initialDelay ( java.lang.String startTime , java.lang.String interval ) { return com.google.gerrit.server.config.ScheduleConfig.builder ( com.google.gerrit.server.config.ScheduleConfigTest.config ( startTime , interval ) , "section" , "subsection" ) . setNow ( com.google.gerrit.server.config.ScheduleConfigTest.NOW ) . build ( ) . getInitialDelay ( ) ; }

Target:
private static long initialDelay ( java.lang.String startTime , java.lang.String interval ) { return com.google.gerrit.server.config.ScheduleConfig.builder ( com.google.gerrit.server.config.ScheduleConfigTest.config ( startTime , interval ) , "section" ) . setSubsection ( "subsection" ) . setNow ( com.google.gerrit.server.config.ScheduleConfigTest.NOW ) . build ( ) . initialDelay ( ) ; }
Source:
public boolean isConnectivityRequested ( com.google.gerrit.pgm.util.ConsoleUI ui , java.lang.String url ) { com.googlesource.gerrit.plugins.hooks.its.InitIts.YesNoEnum wantToTest = ui.readEnum ( com.googlesource.gerrit.plugins.hooks.its.InitIts.YesNoEnum.N , "Test connectivity to %s" , url ) ; return wantToTest == ( com.googlesource.gerrit.plugins.hooks.its.InitIts.YesNoEnum.Y ) ; }

Target:
public boolean isConnectivityRequested ( com.google.gerrit.pgm.util.ConsoleUI ui , java.lang.String url ) { return ui.yesno ( false , "Test connectivity to %s" , url ) ; }
Source:
public void index ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { index.apply ( rsrc , new com.google.gerrit.server.group.Index.Input ( ) ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot index group" , e ) ; } }

Target:
public void index ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { index.apply ( rsrc , new com.google.gerrit.extensions.common.Input ( ) ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot index group" , e ) ; } }
Source:
public final native double getHeight ( ) ;

Target:
public final native double height ( ) ;
Source:
private com.google.gerrit.server.account.AccountInfo GET_ONE ( java.lang.String endpoint ) throws java.io.IOException { com.google.gerrit.acceptance.RestResponse r = adminSession.get ( endpoint ) ; org.junit.Assert.assertEquals ( HttpStatus.SC_OK , r.getStatusCode ( ) ) ; return newGson ( ) . fromJson ( r.getReader ( ) , com.google.gerrit.server.account.AccountInfo.class ) ; }

Target:
private com.google.gerrit.extensions.common.AccountInfo GET_ONE ( java.lang.String endpoint ) throws java.io.IOException { com.google.gerrit.acceptance.RestResponse r = adminSession.get ( endpoint ) ; org.junit.Assert.assertEquals ( HttpStatus.SC_OK , r.getStatusCode ( ) ) ; return newGson ( ) . fromJson ( r.getReader ( ) , com.google.gerrit.extensions.common.AccountInfo.class ) ; }
Source:
public void onGitReferenceUpdated ( com.google.gerrit.extensions.events.GitReferenceUpdatedListener.Event event ) { if ( event.getRefName ( ) . startsWith ( "refs/changes/" ) ) { cache.invalidate ( new com.google.gerrit.reviewdb.client.Project.NameKey ( event.getProjectName ( ) ) ) ; } }

Target:
public void onGitReferenceUpdated ( com.google.gerrit.extensions.events.GitReferenceUpdatedListener.Event event ) { if ( event.getRefName ( ) . startsWith ( RefNames.REFS_CHANGES ) ) { cache.invalidate ( new com.google.gerrit.reviewdb.client.Project.NameKey ( event.getProjectName ( ) ) ) ; } }
Source:
protected void configure ( ) { bind ( com.google.gerrit.httpd.GerritUiOptions.class ) . toInstance ( new com.google.gerrit.httpd.GerritUiOptions ( false ) ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.httpd.GerritOptions.class ) . toInstance ( new com.google.gerrit.httpd.GerritOptions ( false ) ) ; }
Source:
public void commentOnReviewableChangeByOwnerCcingSelfNotifyOwner ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( com.google.gerrit.server.account.WatchConfig.NotifyType.ALL_COMMENTS ) ; setEmailStrategy ( sc.owner , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.CC_ON_OWN_COMMENTS ) ; review ( sc.changeId , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.ENABLED , com.google.gerrit.extensions.api.changes.NotifyHandling.OWNER ) ; assertThat ( sender ) . notSent ( ) ; }

Target:
public void commentOnReviewableChangeByOwnerNotifyOwner ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( com.google.gerrit.server.account.WatchConfig.NotifyType.ALL_COMMENTS ) ; review ( sc.owner , sc.changeId , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.ENABLED , com.google.gerrit.extensions.api.changes.NotifyHandling.OWNER ) ; assertThat ( sender ) . notSent ( ) ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.httpd.GerritUiOptions.class ) . toInstance ( new com.google.gerrit.httpd.GerritUiOptions ( false ) ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.server.config.GerritOptions.class ) . toInstance ( new com.google.gerrit.server.config.GerritOptions ( config , false , false , false ) ) ; }
Source:
public void printJson ( final java.lang.StringBuilder sb , final T o ) { sb.append ( "{" ) ; printJsonImpl ( 0 , sb , o ) ; sb.append ( "}" ) ; }

Target:
public void printJson ( final java.lang.StringBuilder sb , final java.lang.Object o ) { sb.append ( "{" ) ; printJsonImpl ( 0 , sb , o ) ; sb.append ( "}" ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s => %s" , src ( ) , dest ( ) ) ; }

Target:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s (%s) => %s" , src ( ) , toolType , dest ( ) ) ; }
Source:
public org.eclipse.jgit.lib.ObjectId insert ( int objectType , long length , java.io.InputStream in ) throws java.io.IOException { return com.google.gerrit.server.git.MergeUtil.createRandomObjectId ( ) ; }

Target:
public org.eclipse.jgit.lib.ObjectId insert ( int objectType , long length , java.io.InputStream in ) throws java.io.IOException { buf.setByte ( LAST_BYTE , ( ( buf.getByte ( LAST_BYTE ) ) + 1 ) ) ; return buf.copy ( ) ; }
Source:
public com.googlesource.gerrit.plugins.findowners.OwnersDb call ( ) { com.googlesource.gerrit.plugins.findowners.Cache.log.trace ( ( "Create new OwnersDb, key=" + key ) ) ; return new com.googlesource.gerrit.plugins.findowners.OwnersDb ( accountCache , accounts , key , repository , project , branch , files ) ; }

Target:
public com.googlesource.gerrit.plugins.findowners.OwnersDb call ( ) { com.googlesource.gerrit.plugins.findowners.Cache.log.trace ( ( "Create new OwnersDb, key=" + key ) ) ; return new com.googlesource.gerrit.plugins.findowners.OwnersDb ( accountCache , emails , key , repository , project , branch , files ) ; }
Source:
protected void onLoad ( ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { cfg = readConfig ( com.google.gerrit.server.account.PreferencesConfig.PREFERENCES_CONFIG ) ; }

Target:
protected void onLoad ( ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { cfg = readConfig ( com.google.gerrit.server.account.Preferences.PREFERENCES_CONFIG ) ; }
Source:
static java.lang.String timeout ( int expirationSeconds ) { return com.googlesource.gerrit.plugins.lfs.LfsAuthToken.ISO.print ( com.googlesource.gerrit.plugins.lfs.LfsAuthToken.now ( ) . plusSeconds ( expirationSeconds ) ) ; }

Target:
static java.lang.String timeout ( int expirationSeconds ) { return com.googlesource.gerrit.plugins.lfs.LfsDateTime.now ( expirationSeconds ) ; }
Source:
public void pushWithInvalidChangeId ( ) throws java.lang.Exception { }

Target:
public void pushWithInvalidChangeId ( ) throws java.lang.Exception { testpushWithInvalidChangeId ( ) ; }
Source:
protected abstract void render ( com.google.gerrit.common.data.PatchScript script ) ;

Target:
protected abstract void render ( com.google.gerrit.common.data.PatchScript script , final com.google.gerrit.common.data.PatchSetDetail detail ) ;
Source:
public void onSuccess ( com.google.gerrit.reviewdb.client.Account result ) { registerNewEmail.setEnabled ( true ) ; onSaveSuccess ( com.google.gerrit.client.FormatUtil.asInfo ( result ) ) ; if ( onSave != null ) { onSave.onSuccess ( result ) ; } }

Target:
public void onSuccess ( java.lang.Void result ) { currentEmail = newEmail ; com.google.gerrit.client.info.AccountInfo me = com.google.gerrit.client.Gerrit.getUserAccount ( ) ; me.email ( currentEmail ) ; me.name ( newName ) ; onSaveSuccess ( me ) ; registerNewEmail.setEnabled ( true ) ; }
Source:
public static void editWithFiles ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.changes.ChangeInfo.EditInfo > cb ) { com.google.gerrit.client.changes.ChangeApi.edit ( id ) . addParameter ( "list" , true ) . get ( cb ) ; }

Target:
public static void editWithFiles ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.changes.ChangeInfo.EditInfo > cb ) { com.google.gerrit.client.changes.ChangeApi.edit ( id ) . addParameterTrue ( "list" ) . get ( cb ) ; }
Source:
public void setPrivate ( boolean value , @ com.google.gerrit.common.Nullable java.lang.String message ) { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }

Target:
public void setPrivate ( boolean value , @ com.google.gerrit.common.Nullable java.lang.String message ) throws com.google.gerrit.extensions.restapi.RestApiException { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }
Source:
public void indexerThrowsIOExceptionTryingToIndexChange ( ) throws java.lang.Exception { setupPostMocks ( com.ericsson.gerrit.plugins.syncindex.SyncIndexRestApiServletTest.CHANGE_EXISTS , com.ericsson.gerrit.plugins.syncindex.SyncIndexRestApiServletTest.DO_NOT_THROW_ORM_EXCEPTION , com.ericsson.gerrit.plugins.syncindex.SyncIndexRestApiServletTest.THROW_IO_EXCEPTION ) ; syncIndexRestApiServlet.doPost ( req , rsp ) ; org.mockito.Mockito.verify ( rsp ) . sendError ( javax.servlet.http.HttpServletResponse.SC_CONFLICT , "io-error" ) ; }

Target:
public void indexerThrowsIOExceptionTryingToIndexChange ( ) throws java.lang.Exception { setupPostMocks ( com.ericsson.gerrit.plugins.multimaster.SyncIndexRestApiServletTest.CHANGE_EXISTS , com.ericsson.gerrit.plugins.multimaster.SyncIndexRestApiServletTest.DO_NOT_THROW_ORM_EXCEPTION , com.ericsson.gerrit.plugins.multimaster.SyncIndexRestApiServletTest.THROW_IO_EXCEPTION ) ; syncIndexRestApiServlet.doPost ( req , rsp ) ; org.mockito.Mockito.verify ( rsp ) . sendError ( javax.servlet.http.HttpServletResponse.SC_CONFLICT , "io-error" ) ; }
Source:
void submit ( java.lang.String projectName , com.googlesource.gerrit.plugins.hooks.HookArgs args ) { queue.submit ( projectName , path , args ) ; }

Target:
com.googlesource.gerrit.plugins.hooks.HookResult execute ( java.lang.String projectName , com.googlesource.gerrit.plugins.hooks.HookArgs args ) { queue.submit ( projectName , path , args ) ; return null ; }
Source:
public final java.util.Set < java.lang.String > labels ( ) { return com.google.gerrit.client.rpc.Natives.keys ( labels0 ( ) ) ; }

Target:
public final java.util.Set < java.lang.String > labels ( ) { return labels0 ( ) . keySet ( ) ; }
Source:
public java.util.Set < java.lang.String > getEmailAddresses ( ) { return state ( ) . getEmailAddresses ( ) ; }

Target:
public java.util.Set < java.lang.String > getEmailAddresses ( ) { if ( ( emailAddresses ) == null ) { emailAddresses = state ( ) . getEmailAddresses ( ) ; } return emailAddresses ; }
Source:
public com.google.gerrit.extensions.restapi.RestModifyView < com.google.gerrit.server.project.ProjectResource , ? > create ( com.google.gerrit.server.project.ProjectResource parent , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.RestApiException { if ( id.toString ( ) . equals ( "default" ) ) { return createDefault.get ( ) ; } throw new com.google.gerrit.extensions.restapi.ResourceNotFoundException ( id ) ; }

Target:
public com.google.gerrit.extensions.restapi.RestModifyView < com.google.gerrit.server.project.ProjectResource , ? > create ( com.google.gerrit.server.project.ProjectResource parent , com.google.gerrit.extensions.restapi.IdString id ) throws com.google.gerrit.extensions.restapi.RestApiException { if ( com.google.gerrit.server.project.DashboardsCollection.isDefaultDashboard ( id ) ) { return createDefault.get ( ) ; } throw new com.google.gerrit.extensions.restapi.ResourceNotFoundException ( id ) ; }
Source:
public void execute ( ) { content.setFocus ( true ) ; }

Target:
public void execute ( ) { if ( fileName.isEmpty ( ) ) { file.setFocus ( true ) ; } else { content.setFocus ( true ) ; } }
Source:
void downloadRequired ( ) { this . required = true ; download ( ) ; }

Target:
void downloadRequired ( ) { setRequired ( true ) ; download ( ) ; }
Source:
public java.util.Optional < com.googlesource.gerrit.plugins.webhooks.EventProcessor.Request > doProcess ( com.google.gerrit.server.events.ProjectEvent event , com.googlesource.gerrit.plugins.webhooks.RemoteConfig remote ) { return java.util.Optional.of ( new com.googlesource.gerrit.plugins.webhooks.EventProcessor.Request ( com.googlesource.gerrit.plugins.webhooks.processors.GerritEventProcessor.GSON.toJson ( event ) ) ) ; }

Target:
public java.util.Optional < com.googlesource.gerrit.plugins.webhooks.EventProcessor.Request > doProcess ( com.google.gerrit.server.events.ProjectEvent event , com.googlesource.gerrit.plugins.webhooks.RemoteConfig remote ) { return java.util.Optional.of ( new com.googlesource.gerrit.plugins.webhooks.EventProcessor.Request ( com.googlesource.gerrit.plugins.webhooks.processors.GerritEventProcessor.GSON.toJson ( event ) , com.google.common.collect.ImmutableMap.of ( "X-Origin-Url" , canonicalWebUrl ) ) ) ; }
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 void abandonChange ( final com.google.gerrit.client.reviewdb.PatchSet.Id patchSetId , final java.lang.String message , final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwtjsonrpc.client.VoidResult > callback ) { abandonChangeFactory.create ( patchSetId , message ) . to ( callback ) ; }
Source:
public void onClick ( final com.google.gwt.user.client.ui.Widget sender ) { showAddKeyBlock ( false ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { showAddKeyBlock ( false ) ; }
Source:
private static com.google.gerrit.client.rpc.RestApi api ( int id , java.lang.String action ) { return new com.google.gerrit.client.rpc.RestApi ( ( ( ( "/changes/" + id ) + "/" ) + action ) ) ; }

Target:
private static com.google.gerrit.client.rpc.RestApi call ( int id , java.lang.String action ) { return com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( action ) ; }
Source:
protected void configure ( ) { post ( com.google.gerrit.server.change.RevisionResource.REVISION_KIND , "say-hello" ) . to ( com.googlesource.gerrit.plugins.cookbook.HelloWorldAction.class ) ; }

Target:
protected void configure ( ) { post ( com.google.gerrit.server.change.RevisionResource.REVISION_KIND , "hello-revision" ) . to ( com.googlesource.gerrit.plugins.cookbook.HelloRevisionAction.class ) ; post ( com.google.gerrit.server.project.ProjectResource.PROJECT_KIND , "hello-project" ) . to ( com.googlesource.gerrit.plugins.cookbook.HelloProjectAction.class ) ; }
Source:
public com.googlecode.prolog_cafe.lang.PrologMachineCopy loadMachine ( java.lang.String name , java.io.InputStream in ) throws com.googlecode.prolog_cafe.exceptions.CompileException { com.googlecode.prolog_cafe.lang.PrologMachineCopy pmc = consultRules ( name , new java.io.InputStreamReader ( in ) ) ; if ( pmc == null ) { throw new com.googlecode.prolog_cafe.exceptions.CompileException ( ( "Cannot consult rules from the stream " + name ) ) ; } return pmc ; }

Target:
public com.googlecode.prolog_cafe.lang.PrologMachineCopy loadMachine ( java.lang.String name , java.io.Reader in ) throws com.googlecode.prolog_cafe.exceptions.CompileException { com.googlecode.prolog_cafe.lang.PrologMachineCopy pmc = consultRules ( name , in ) ; if ( pmc == null ) { throw new com.googlecode.prolog_cafe.exceptions.CompileException ( ( "Cannot consult rules from the stream " + name ) ) ; } return pmc ; }
Source:
public abstract java.util.Set < com.google.gerrit.reviewdb.Project.NameKey > getWatchedProjects ( ) ;

Target:
public abstract java.util.Collection < com.google.gerrit.reviewdb.AccountProjectWatch > getNotificationFilters ( ) ;
Source:
private com.google.gerrit.server.mail.Address computeFrom ( ) { if ( ( fromId ) != null ) { return toAddress ( fromId ) ; } final org.spearce.jgit.lib.PersonIdent pi = server.newGerritPersonIdent ( ) ; return new com.google.gerrit.server.mail.Address ( pi.getName ( ) , pi.getEmailAddress ( ) ) ; }

Target:
private com.google.gerrit.server.mail.Address computeFrom ( ) { if ( ( fromId ) != null ) { return toAddress ( fromId ) ; } return new com.google.gerrit.server.mail.Address ( gerritIdent.getName ( ) , gerritIdent.getEmailAddress ( ) ) ; }
Source:
public final void commentVisibilityStrategy ( com.google.gerrit.reviewdb.client.AccountGeneralPreferences.CommentVisibilityStrategy s ) { commentVisibilityStrategyRaw ( ( s != null ? s.toString ( ) : null ) ) ; }

Target:
public final void reviewCategoryStrategy ( com.google.gerrit.reviewdb.client.AccountGeneralPreferences.ReviewCategoryStrategy s ) { reviewCategoryStrategyRaw ( ( s != null ? s.toString ( ) : null ) ) ; }
Source:
public static java.io.File getDistributionArchive ( ) throws java.io.FileNotFoundException { if ( ( com.google.gerrit.main.GerritLauncher.myArchive ) == null ) { com.google.gerrit.main.GerritLauncher.myArchive = com.google.gerrit.main.GerritLauncher.locateMyArchive ( ) ; } return com.google.gerrit.main.GerritLauncher.myArchive ; }

Target:
public static java.io.File getDistributionArchive ( ) throws java.io.FileNotFoundException { if ( ( com.google.gerrit.launcher.GerritLauncher.myArchive ) == null ) { com.google.gerrit.launcher.GerritLauncher.myArchive = com.google.gerrit.launcher.GerritLauncher.locateMyArchive ( ) ; } return com.google.gerrit.launcher.GerritLauncher.myArchive ; }
Source:
java.io.File getSrcJar ( ) { return getSrcFile ( ) ; }

Target:
java.io.File getSrcJar ( ) { return getSrcFile ( ) . toFile ( ) ; }
Source:
private void setStarred ( final boolean s ) { if ( s ) { Gerrit.ICONS.starFilled ( ) . applyTo ( starChange ) ; } else { Gerrit.ICONS.starOpen ( ) . applyTo ( starChange ) ; } starred = s ; }

Target:
private void setStarred ( final boolean s ) { if ( s ) { starChange.setResource ( Gerrit.RESOURCES.starFilled ( ) ) ; } else { starChange.setResource ( Gerrit.RESOURCES.starOpen ( ) ) ; } starred = s ; }
Source:
public boolean canConnect ( org.apache.sshd.common.SshdSocketAddress address , org.apache.sshd.common.Session session ) { return false ; }

Target:
public boolean canConnect ( com.google.gerrit.sshd.Type type , org.apache.sshd.common.util.net.SshdSocketAddress address , org.apache.sshd.common.session.Session session ) { return false ; }
Source:
public boolean isAllProjects ( ) { return allProjectsName.equals ( project.getNameKey ( ) ) ; }

Target:
public java.lang.String getDisplayName ( ) { return project.getName ( ) ; }
Source:
private static void ensureInited ( ) { if ( ( com.google.gerrit.client.FormatUtil.dtfmt ) == null ) { com.google.gerrit.client.FormatUtil.setPreferences ( com.google.gerrit.client.Gerrit.getUserPreferences ( ) ) ; } }

Target:
private static void ensureInited ( ) { if ( ( com.google.gerrit.client.FormatUtil.dateFormatter ) == null ) { com.google.gerrit.client.FormatUtil.setPreferences ( com.google.gerrit.client.Gerrit.getUserPreferences ( ) ) ; } }
Source:
private static com.google.gerrit.reviewdb.server.ReviewDb unwrap ( com.google.gerrit.reviewdb.server.ReviewDb db ) { if ( db instanceof com.google.gerrit.server.schema.DisabledChangesReviewDbWrapper ) { db = ( ( com.google.gerrit.server.schema.DisabledChangesReviewDbWrapper ) ( db ) ) . unsafeGetDelegate ( ) ; } return db ; }

Target:
private com.google.gerrit.reviewdb.client.PatchSet getPatchSet ( com.google.gerrit.server.notedb.ChangeNotes notes , com.google.gerrit.extensions.common.RevisionInfo info ) throws com.google.gwtorm.server.OrmException { return psUtil.get ( db.get ( ) , notes , PatchSet.Id.fromRef ( info.ref ) ) ; }
Source:
public void delete ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { deleteChange.apply ( change , null ) ; } catch ( com.google.gerrit.server.git.UpdateException 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 | com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot delete change" , e ) ; } }
Source:
public void mergeReview ( com.google.gerrit.extensions.common.ChangeInfo info ) throws java.lang.Exception { submitter.apply ( getRevisionResource ( info.project , info._number ) , new com.google.gerrit.extensions.api.changes.SubmitInput ( ) ) ; }

Target:
public void mergeReview ( java.lang.String project , int number ) throws java.lang.Exception { submitter.apply ( getRevisionResource ( project , number ) , new com.google.gerrit.extensions.api.changes.SubmitInput ( ) ) ; }
Source:
private java.lang.String getRtcPassword ( ) { return gerritConfig.getString ( com.googlesource.gerrit.plugins.hooks.rtc.RTCItsFacade.ITS_NAME_RTC , null , com.googlesource.gerrit.plugins.hooks.rtc.RTCItsFacade.GERRIT_CONFIG_RTC_PASSWORD ) ; }

Target:
private java.lang.String getRtcPassword ( ) { return gerritConfig.getString ( pluginName , null , com.googlesource.gerrit.plugins.hooks.rtc.RTCItsFacade.GERRIT_CONFIG_RTC_PASSWORD ) ; }
Source:
public com.google.gerrit.server.project.ConfigInfo apply ( com.google.gerrit.server.project.ProjectResource resource ) { return new com.google.gerrit.server.project.ConfigInfo ( resource.getControl ( ) , config , views ) ; }

Target:
public com.google.gerrit.server.project.ConfigInfo apply ( com.google.gerrit.server.project.ProjectResource resource ) { return new com.google.gerrit.server.project.ConfigInfo ( resource.getControl ( ) , config , pluginConfigEntries , cfgFactory , views ) ; }
Source:
static void pair ( com.google.gerrit.client.diff.SideBySideCommentGroup a , com.google.gerrit.client.diff.SideBySideCommentGroup b ) { a.peer = b ; b.peer = a ; }

Target:
static void pair ( com.google.gerrit.client.diff.SideBySideCommentGroup a , com.google.gerrit.client.diff.SideBySideCommentGroup b ) { a.peers.add ( b ) ; b.peers.add ( a ) ; }
Source:
public static org.eclipse.jgit.internal.storage.dfs.InMemoryRepository newRepository ( com.google.gerrit.reviewdb.client.Project.NameKey name ) { return new com.google.gerrit.testutil.InMemoryRepositoryManager.Repo ( name ) ; }

Target:
public static org.eclipse.jgit.internal.storage.dfs.InMemoryRepository newRepository ( com.google.gerrit.reviewdb.client.Project.NameKey name ) { return new com.google.gerrit.testing.InMemoryRepositoryManager.Repo ( name ) ; }
Source:
public void deleteReviewerFromReviewableChangeNotifyNone ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; removeReviewer ( sc , extraReviewer , NotifyHandling.NONE ) ; assertThat ( sender ) . notSent ( ) ; }

Target:
public void deleteReviewerFromReviewableChangeNotifyNone ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChangeWithExtraReviewer ( ) ; removeReviewer ( sc , extraReviewer , NotifyHandling.NONE ) ; assertThat ( sender ) . notSent ( ) ; }
Source:
com.google.gerrit.server.index.change.ChangeIndexer getChangeIndexer ( @ com.google.gerrit.server.index.IndexExecutor ( value = com.google.gerrit.server.git.QueueProvider.QueueType.INTERACTIVE ) com.google.common.util.concurrent.ListeningExecutorService executor , com.google.gerrit.server.index.change.ChangeIndexer.Factory factory , com.google.gerrit.server.index.IndexCollection indexes ) { return factory.create ( executor , indexes ) ; }

Target:
com.google.gerrit.server.index.change.ChangeIndexer getChangeIndexer ( @ com.google.gerrit.server.index.IndexExecutor ( value = com.google.gerrit.server.git.QueueProvider.QueueType.INTERACTIVE ) com.google.common.util.concurrent.ListeningExecutorService executor , com.google.gerrit.server.index.change.ChangeIndexer.Factory factory , com.google.gerrit.server.index.change.ChangeIndexCollection indexes ) { return factory.create ( executor , indexes ) ; }
Source:
public void assertCanDelete ( com.google.gerrit.reviewdb.client.Project project ) throws com.google.gwtorm.server.OrmException , com.googlesource.gerrit.plugins.deleteproject.CannotDeleteProjectException ;

Target:
public void assertCanDelete ( com.google.gerrit.reviewdb.client.Project project ) throws com.google.gwtorm.server.OrmException , com.googlesource.gerrit.plugins.deleteproject.CannotDeleteProjectException { if ( db.submoduleSubscriptions ( ) . bySubmoduleProject ( project.getNameKey ( ) ) . iterator ( ) . hasNext ( ) ) { throw new com.googlesource.gerrit.plugins.deleteproject.CannotDeleteProjectException ( "Project is subscribed by other projects." ) ; } }
Source:
protected void configure ( ) { bind ( com.google.inject.Key.get ( javax.sql.DataSource.class , com.google.inject.name.Names.named ( "ReviewDb" ) ) ) . toProvider ( com.google.gerrit.httpd.ReviewDbDataSourceProvider.class ) . in ( com.google.inject.Scopes.SINGLETON ) ; listener ( ) . to ( com.google.gerrit.httpd.ReviewDbDataSourceProvider.class ) ; }

Target:
protected void configure ( ) { bind ( com.google.gerrit.server.schema.DataSourceType.class ) . toInstance ( dst ) ; }
Source:
public int getCost ( ) { return 2 ; }

Target:
public boolean match ( com.google.gerrit.server.query.change.ChangeData cd ) throws com.google.gwtorm.server.OrmException { java.util.Set < com.google.gerrit.reviewdb.client.Account.Id > reviewedBy = cd.reviewedBy ( ) ; return ! ( reviewedBy.isEmpty ( ) ) ? reviewedBy.contains ( id ) : ( id ) == ( com.google.gerrit.server.query.change.IsReviewedPredicate.NOT_REVIEWED ) ; }
Source:
void setSecure ( java.lang.String name , java.lang.String value ) { if ( value != null ) { flags.sec.setString ( section , null , name , value ) ; } else { flags.sec.unset ( section , null , name ) ; } }

Target:
public void setSecure ( java.lang.String name , java.lang.String value ) { if ( value != null ) { flags.sec.setString ( section , subsection , name , value ) ; } else { flags.sec.unset ( section , subsection , name ) ; } }
Source:
public com.google.gerrit.extensions.common.GpgKeyInfo apply ( com.google.gerrit.server.account.AccountResource.GpgKey rsrc ) throws java.io.IOException { return com.google.gerrit.server.account.GpgKeys.toJson ( rsrc.getKeyRing ( ) ) ; }

Target:
public com.google.gerrit.extensions.common.GpgKeyInfo apply ( com.google.gerrit.gpg.server.GpgKey rsrc ) throws java.io.IOException { return com.google.gerrit.gpg.server.GpgKeys.toJson ( rsrc.getKeyRing ( ) ) ; }
Source:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( activePatchSetId ) > 1 ) { activate ( ( ( activePatchSetId ) - 1 ) ) ; } }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { int index = ( indexOf ( activePatchSetId ) ) + 1 ; if ( index < ( patchSets.size ( ) ) ) { activate ( patchSets.get ( index ) . getId ( ) ) ; } }
Source:
public WorkQueue.Executor get ( ) { com.google.gerrit.server.git.WorkQueue.Executor executor ; if ( user.isBatchUser ( ) ) { executor = queues.getBatchQueue ( ) ; } else { executor = queues.getInteractiveQueue ( ) ; } return executor ; }

Target:
public WorkQueue.Executor get ( ) { return queues.getQueue ( user.getCapabilities ( ) . getQueueType ( ) ) ; }
Source:
protected void doLogout ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse rsp ) throws java.io.IOException { super . doLogout ( req , rsp ) ; oauthSession.get ( ) . logout ( ) ; }

Target:
protected void doLogout ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse rsp ) throws java.io.IOException { super . doLogout ( req , rsp ) ; if ( ( req.getSession ( false ) ) != null ) { oauthSession.get ( ) . logout ( ) ; } }
Source:
public com.google.gerrit.server.config.PluginConfig get ( java.lang.String pluginName ) { return new com.google.gerrit.server.config.PluginConfig ( pluginName , cfg ) ; }

Target:
public com.google.gerrit.server.config.PluginConfig getFromGerritConfig ( java.lang.String pluginName ) { return new com.google.gerrit.server.config.PluginConfig ( pluginName , cfg ) ; }
Source:
public com.google.common.collect.ImmutableListMultimap < com.google.gerrit.reviewdb.client.PatchSet.Id , com.google.gerrit.reviewdb.client.PatchSetApproval > getApprovals ( ) { return state.approvals ( ) ; }

Target:
public com.google.common.collect.ImmutableListMultimap < com.google.gerrit.reviewdb.client.PatchSet.Id , com.google.gerrit.reviewdb.client.PatchSetApproval > getApprovals ( ) { if ( ( approvals ) == null ) { approvals = com.google.common.collect.ImmutableListMultimap.copyOf ( com.google.common.collect.Multimaps.transformValues ( state.approvals ( ) , PatchSetApproval :: new ) ) ; } return approvals ; }
Source:
public java.util.List < com.google.gitiles.blame.Region > call ( ) throws java.io.IOException { return com.google.gitiles.blame.BlameCacheImpl.loadBlame ( key , repo ) ; }

Target:
public java.util.concurrent.Callable < java.util.List < com.google.gitiles.blame.Region > > newLoader ( com.google.gitiles.blame.BlameCacheImpl.Key key , org.eclipse.jgit.lib.Repository repo ) { return ( ) -> com.google.gitiles.blame.BlameCacheImpl.loadBlame ( key , repo ) ; }
Source:
protected void applyDataRowStyle ( final int newRow ) { table.getCellFormatter ( ) . addStyleName ( newRow , com.google.gerrit.client.ui.FancyFlexTable.C_ARROW , com.google.gerrit.client.ui.FancyFlexTable.S_ICON_CELL ) ; }

Target:
protected void applyDataRowStyle ( final int newRow ) { table.getCellFormatter ( ) . addStyleName ( newRow , com.google.gerrit.client.ui.FancyFlexTable.C_ARROW , com.google.gerrit.client.ui.FancyFlexTable.S_ICON_CELL ) ; table.getCellFormatter ( ) . addStyleName ( newRow , com.google.gerrit.client.ui.FancyFlexTable.C_ARROW , com.google.gerrit.client.ui.FancyFlexTable.S_LEFT_MOST_CELL ) ; }
Source:
private static short value ( java.lang.String value ) { if ( value.startsWith ( "+" ) ) { value = value.substring ( 1 ) ; } return java.lang.Short.parseShort ( value ) ; }

Target:
private static int value ( java.lang.String value ) { if ( value.startsWith ( "+" ) ) { value = value.substring ( 1 ) ; } return java.lang.Integer.parseInt ( value ) ; }
Source:
void replace ( org.apache.lucene.index.Term term , org.apache.lucene.document.Document doc ) throws java.io.IOException { writer.updateDocument ( term , doc ) ; }

Target:
com.google.common.util.concurrent.ListenableFuture < java.lang.Void > insert ( org.apache.lucene.document.Document doc ) throws java.io.IOException { return new com.google.gerrit.lucene.SubIndex.NrtFuture ( writer.addDocument ( doc ) ) ; }
Source:
public java.util.List < java.lang.String > getGroups ( ) { return com.google.gerrit.reviewdb.client.PatchSet.splitGroups ( groups ) ; }

Target:
public java.util.List < java.lang.String > getGroups ( ) { if ( ( groups ) == null ) { return java.util.Collections.emptyList ( ) ; } return com.google.gerrit.reviewdb.client.PatchSet.splitGroups ( groups ) ; }
Source:
public void onFailure ( final java.lang.Throwable caught ) { text.setReadOnly ( false ) ; save.setEnabled ( saveOn ) ; discard.setEnabled ( true ) ; super . onFailure ( caught ) ; }

Target:
public void onFailure ( final java.lang.Throwable caught ) { text.setReadOnly ( false ) ; save.setEnabled ( saveOn ) ; cancel.setEnabled ( true ) ; discard.setEnabled ( true ) ; super . onFailure ( caught ) ; }
Source:
public com.google.gerrit.server.IdentifiedUser create ( com.google.inject.Provider < com.google.gerrit.reviewdb.server.ReviewDb > db , com.google.gerrit.reviewdb.client.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , starredChangesUtil , authConfig , realm , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , null , db , id , null ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser runAs ( java.net.SocketAddress remotePeer , com.google.gerrit.reviewdb.client.Account.Id id , @ com.google.gerrit.common.Nullable com.google.gerrit.server.CurrentUser caller ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , starredChangesUtil , authConfig , realm , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , com.google.inject.util.Providers.of ( remotePeer ) , id , caller ) ; }
Source:
static void delete ( com.google.gerrit.reviewdb.client.Change.Id id , java.lang.String revision ) { com.google.gerrit.client.changes.ChangeApi.deleteRevision ( id.get ( ) , revision , com.google.gerrit.client.change.DraftActions.cs ( id ) ) ; }

Target:
static void delete ( com.google.gerrit.reviewdb.client.Change.Id id , java.lang.String revision , com.google.gwt.user.client.ui.Button ... draftButtons ) { com.google.gerrit.client.changes.ChangeApi.deleteRevision ( id.get ( ) , revision , com.google.gerrit.client.change.DraftActions.cs ( id , draftButtons ) ) ; }
Source:
private boolean canRead ( com.google.gerrit.server.notedb.ChangeNotes notes ) throws com.google.gerrit.server.permissions.PermissionBackendException { return permissionBackend.user ( user ) . change ( notes ) . database ( db ) . test ( ChangePermission.READ ) ; }

Target:
private boolean canRead ( com.google.gerrit.server.notedb.ChangeNotes notes ) throws com.google.gerrit.server.permissions.PermissionBackendException { try { permissionBackend.user ( user ) . change ( notes ) . database ( db ) . check ( ChangePermission.READ ) ; return true ; } catch ( com.google.gerrit.extensions.restapi.AuthException e ) { return false ; } }
Source:
private void fail ( java.lang.Throwable t ) { com.google.gerrit.pgm.RebuildNotedb.log.error ( ( "Failed to rebuild change " + ( changeId ) ) , t ) ; ok.set ( false ) ; failedTask.update ( 1 ) ; }

Target:
private void fail ( java.lang.Throwable t ) { com.google.gerrit.pgm.RebuildNoteDb.log.error ( ( "Failed to rebuild change " + ( changeId ) ) , t ) ; ok.set ( false ) ; failedTask.update ( 1 ) ; }
Source:
protected com.google.gerrit.acceptance.GerritServer startServer ( org.eclipse.jgit.lib.Config cfg , boolean memory , boolean enableHttpd ) throws java.lang.Exception { return com.google.gerrit.acceptance.GerritServer.start ( cfg , memory , enableHttpd ) ; }

Target:
protected void allowGlobalCapabilities ( com.google.gerrit.reviewdb.client.AccountGroup.UUID id , java.lang.String ... capabilityNames ) throws java.lang.Exception { allowGlobalCapabilities ( id , java.util.Arrays.asList ( capabilityNames ) ) ; }
Source:
public RefUpdate.Result restoreFile ( com.google.gerrit.server.edit.ChangeEdit edit , java.lang.String file ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.project.InvalidChangeOperationException , java.io.IOException { return modify ( com.google.gerrit.server.edit.ChangeEditModifier.TreeOperation.RESTORE_ENTRY , edit , file , null ) ; }

Target:
public RefUpdate.Result modifyFile ( com.google.gerrit.server.edit.ChangeEdit edit , java.lang.String file , com.google.gerrit.extensions.restapi.RawInput content ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.project.InvalidChangeOperationException , java.io.IOException { return modify ( com.google.gerrit.server.edit.ChangeEditModifier.TreeOperation.CHANGE_ENTRY , edit , file , content ) ; }
Source:
public void onFailure ( java.lang.Throwable caught ) { com.google.gerrit.client.change.ChangeScreen.logger.log ( java.util.logging.Level.SEVERE , ( "Loading file list and inline comments failed: " + ( caught.getMessage ( ) ) ) ) ; loadConfigInfo ( info , rev ) ; }

Target:
public void onSuccess ( java.lang.Void result ) { loadConfigInfo ( info , rev ) ; }
Source:
void insert ( org.apache.lucene.document.Document doc ) throws java.io.IOException { writer.addDocument ( doc ) ; }

Target:
com.google.common.util.concurrent.ListenableFuture < java.lang.Void > replace ( org.apache.lucene.index.Term term , org.apache.lucene.document.Document doc ) throws java.io.IOException { return new com.google.gerrit.lucene.SubIndex.NrtFuture ( writer.updateDocument ( term , doc ) ) ; }
Source:
protected java.lang.String getRefName ( ) { return com.google.gerrit.server.notedb.ChangeNoteUtil.changeRefName ( getChangeId ( ) ) ; }

Target:
protected java.lang.String getRefName ( ) { return com.google.gerrit.reviewdb.client.RefNames.changeMetaRef ( getChangeId ( ) ) ; }
Source:
public void onMouseOut ( com.google.gwt.event.dom.client.MouseOutEvent event ) { hideFullScreenIcon ( ) ; }

Target:
public void onMouseOut ( com.google.gwt.event.dom.client.MouseOutEvent event ) { hideFullScreenIcon ( ) ; hideDeleteIcon ( ) ; }
Source:
public void evict ( java.lang.String username ) { if ( username != null ) { self.remove ( username ) ; } }

Target:
public java.lang.Iterable < com.google.gerrit.server.ssh.SshKeyCacheEntry > get ( java.lang.String username ) { return self.get ( username ) ; }
Source:
public boolean isOwner ( ) { return ( canPerform ( ApprovalCategory.OWN , ( ( short ) ( 1 ) ) ) ) || ( getCurrentUser ( ) . isAdministrator ( ) ) ; }

Target:
public com.google.gerrit.server.project.ChangeControl controlFor ( final com.google.gerrit.reviewdb.Change change ) { return new com.google.gerrit.server.project.ChangeControl ( controlForRef ( change.getDest ( ) ) , change ) ; }
Source:
public java.lang.String format ( ) { final java.lang.StringBuilder m = new java.lang.StringBuilder ( ) ; m.append ( formatValue ( ) ) ; m.append ( ' ' ) ; m.append ( getName ( ) ) ; return m.toString ( ) ; }

Target:
public static java.lang.String format ( java.lang.String name , short value ) { return new java.lang.StringBuilder ( ) . append ( com.google.gerrit.reviewdb.client.ApprovalCategoryValue.formatValue ( value ) ) . append ( ' ' ) . append ( name ) . toString ( ) ; }
Source:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { command.execute ( ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { setFocus ( false ) ; command.execute ( ) ; }
Source:
private java.util.List < com.google.gerrit.reviewdb.RefRight > getInheritedRights ( com.google.gerrit.reviewdb.ApprovalCategory.Id actionId ) { return filter ( getProjectState ( ) . getInheritedRights ( actionId ) ) ; }

Target:
private java.util.List < com.google.gerrit.reviewdb.RefRight > getAllRights ( com.google.gerrit.reviewdb.ApprovalCategory.Id actionId ) { return filter ( getProjectState ( ) . getAllRights ( actionId , true ) ) ; }
Source:
private final native void setMessage ( java.lang.String message ) ;

Target:
private final native void sideRaw ( java.lang.String s ) ;
Source:
HEAD ( com.google.gerrit.sshd.commands.c65126 PolyGerrit ) { }

Target:
public java.lang.String toString ( ) { return ( "Stream Events (" + ( currentUser.getAccount ( ) . getUserName ( ) ) ) + ")" ; }
Source:
public com.google.gwtorm.data.TestAddress.Key key ( ) { return city ; }

Target:
public com.google.gwtorm.data.Address.Key key ( ) { return city ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { setReviewedByCurrentUser ( event.getValue ( ) ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < com.google.gerrit.common.data.PatchScriptSettings > event ) { update ( event.getValue ( ) ) ; }
Source:
public void run ( ) { setVisibleA ( ( ! ( isVisibleA ( ) ) ) ) ; }

Target:
void setUpBlameIconA ( net.codemirror.lib.CodeMirror cm , boolean isBase , com.google.gerrit.reviewdb.client.PatchSet.Id rev , java.lang.String path ) { patchSetSelectBoxA.setUpBlame ( cm , isBase , rev , path ) ; }
Source:
public java.util.Set < java.lang.String > getEmailAddresses ( ) { if ( ( emailAddresses ) == null ) { emailAddresses = state ( ) . getEmailAddresses ( ) ; } return emailAddresses ; }

Target:
public java.util.Set < java.lang.String > getEmailAddresses ( ) { if ( ( emailAddresses ) == null ) { emailAddresses = getAccountState ( ) . getEmailAddresses ( ) ; } return emailAddresses ; }
Source:
protected void bindOneUpdate ( java.sql.PreparedStatement ps , com.google.gwtorm.jdbc.TestJdbcAccess.Data entity ) throws java.sql.SQLException { ps.setInt ( 1 , entity.id ) ; }

Target:
protected void bindOneUpdate ( java.sql.PreparedStatement ps , com.google.gwtorm.jdbc.AbstractTestJdbcAccess.Data entity ) throws java.sql.SQLException { ps.setInt ( 1 , entity.id ) ; }
Source:
public java.lang.Thread newThread ( final java.lang.Runnable task ) { final java.lang.Thread t = parent.newThread ( task ) ; t.setPriority ( java.lang.Thread.MIN_PRIORITY ) ; return t ; }

Target:
public java.util.concurrent.ScheduledThreadPoolExecutor get ( ) { return queues.createQueue ( poolSize , "SSH-Stream-Worker" , java.lang.Thread.MIN_PRIORITY ) ; }
Source:
public static com.google.gerrit.server.project.SubmitRuleOptions.Builder defaults ( ) { return com.google.gerrit.server.project.SubmitRuleOptions.builder ( ) . allowClosed ( false ) . skipFilters ( false ) . rule ( null ) ; }

Target:
public static com.google.gerrit.server.project.SubmitRuleOptions.Builder builder ( ) { return new com.google.gerrit.server.project.AutoValue_SubmitRuleOptions.Builder ( ) . allowClosed ( false ) . skipFilters ( false ) . rule ( null ) ; }
Source:
private static com.google.gerrit.server.config.ScheduleConfig config ( java.lang.String startTime , java.lang.String interval ) throws org.eclipse.jgit.errors.ConfigInvalidException { org.eclipse.jgit.lib.Config rc = com.google.gerrit.server.config.ScheduleConfigTest.readConfig ( java.text.MessageFormat.format ( "[section \"subsection\"]\nstartTime = {0}\ninterval = {1}\n" , startTime , interval ) ) ; return new com.google.gerrit.server.config.ScheduleConfig ( rc , "section" , "subsection" , com.google.gerrit.server.config.ScheduleConfigTest.NOW ) ; }

Target:
private static long initialDelay ( java.lang.String startTime , java.lang.String interval ) throws org.eclipse.jgit.errors.ConfigInvalidException { return new com.google.gerrit.server.config.ScheduleConfig ( com.google.gerrit.server.config.ScheduleConfigTest.config ( startTime , interval ) , "section" , "subsection" , com.google.gerrit.server.config.ScheduleConfigTest.NOW ) . getInitialDelay ( ) ; }
Source:
private com.google.gerrit.reviewdb.client.Account getAccount ( com.google.gerrit.extensions.common.AccountInfo info ) { return accounts.get ( new com.google.gerrit.reviewdb.client.Account.Id ( info._accountId ) ) . getAccount ( ) ; }

Target:
private com.google.gerrit.reviewdb.client.Account getAccount ( com.google.gerrit.extensions.common.AccountInfo info ) { if ( info != null ) { com.google.gerrit.server.account.AccountState account = accounts.get ( new com.google.gerrit.reviewdb.client.Account.Id ( info._accountId ) ) ; if ( account != null ) { return account.getAccount ( ) ; } } return null ; }
Source:
public com.google.gerrit.server.change.ChangeResource parse ( com.google.gerrit.reviewdb.client.Change.Id id ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException , com.google.gwtorm.server.OrmException { return parse ( TopLevelResource.INSTANCE , com.google.gerrit.extensions.restapi.IdString.fromUrl ( java.lang.Integer.toString ( id.get ( ) ) ) ) ; }

Target:
private static com.google.gerrit.extensions.restapi.IdString toIdString ( com.google.gerrit.reviewdb.client.Change.Id id ) { return com.google.gerrit.extensions.restapi.IdString.fromDecoded ( id.toString ( ) ) ; }
Source:
protected void onCellSingleClick ( int row , int column ) { onOpenRow ( row ) ; }

Target:
protected void onCellDoubleClick ( int row , int column ) { onOpenRow ( row ) ; }
Source:
public static com.google.gerrit.extensions.client.EditPreferencesInfo readDefaultEditPreferences ( org.eclipse.jgit.lib.Repository allUsersRepo ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { return com.google.gerrit.server.account.PreferencesConfig.parseEditPreferences ( com.google.gerrit.server.account.PreferencesConfig.readDefaultConfig ( allUsersRepo ) , null , null ) ; }

Target:
public static com.google.gerrit.extensions.client.EditPreferencesInfo readDefaultEditPreferences ( org.eclipse.jgit.lib.Repository allUsersRepo ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { return com.google.gerrit.server.account.Preferences.parseEditPreferences ( com.google.gerrit.server.account.Preferences.readDefaultConfig ( allUsersRepo ) , null , null ) ; }