auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.util.List < com.google.gerrit.reviewdb.client.ChangeMessage > messages ( ) throws com.google.gwtorm.server.OrmException { if ( ( messages ) == null ) { messages = db.changeMessages ( ) . byChange ( legacyId ) . toList ( ) ; } return messages ; }

Target:
public java.util.List < com.google.gerrit.reviewdb.client.ChangeMessage > messages ( ) throws com.google.gwtorm.server.OrmException { if ( ( messages ) == null ) { messages = cmUtil.byChange ( db , notes ) ; } return messages ; }
Source:
public static java.lang.String fullName ( java.lang.String ref ) { return ref.startsWith ( com.google.gerrit.reviewdb.client.RefNames.REFS ) ? ref : ( com.google.gerrit.reviewdb.client.RefNames.REFS_HEADS ) + ref ; }

Target:
public static java.lang.String fullName ( java.lang.String ref ) { return ( ref.startsWith ( com.google.gerrit.reviewdb.client.RefNames.REFS ) ) || ( ref.equals ( com.google.gerrit.reviewdb.client.RefNames.HEAD ) ) ? ref : ( com.google.gerrit.reviewdb.client.RefNames.REFS_HEADS ) + ref ; }
Source:
void onLogin ( ) { async.append ( log ( ( "LOGIN FROM " + ( session.get ( ) . getRemoteAddressAsString ( ) ) ) ) ) ; audit ( "0" , "LOGIN" , new java.lang.String [ ] { } ) ; }

Target:
void onLogin ( ) { async.append ( log ( ( "LOGIN FROM " + ( session.get ( ) . getRemoteAddressAsString ( ) ) ) ) ) ; audit ( context.get ( ) , "0" , "LOGIN" , new java.lang.String [ ] { } ) ; }
Source:
public void addFocusListener ( com.google.gwt.user.client.ui.FocusListener listener ) { if ( ( focusy ) != null ) { focusy.addFocusListener ( listener ) ; } }

Target:
public com.google.gwt.event.shared.HandlerRegistration addBlurHandler ( com.google.gwt.event.dom.client.BlurHandler handler ) { if ( ( focusy ) != null ) { return focusy.addBlurHandler ( handler ) ; } return com.google.gerrit.client.ui.FancyFlexTable.NoopRegistration.INSTANCE ; }
Source:
public java.lang.String getRefName ( ) { return java.lang.String.format ( "%s/edit-%d" , com.google.gerrit.reviewdb.client.RefNames.refsUsers ( user.getAccountId ( ) ) , change.getId ( ) . get ( ) ) ; }

Target:
public java.lang.String getRefName ( ) { return com.google.gerrit.server.edit.ChangeEditUtil.editRefName ( user.getAccountId ( ) , change.getId ( ) ) ; }
Source:
public com.googlecode.prolog_cafe.lang.Term getMessageTerm ( ) { com.googlecode.prolog_cafe.lang.Term [ ] args = new com.googlecode.prolog_cafe.lang.Term [ ] { new com.googlecode.prolog_cafe.lang.JavaObjectTerm ( goal ) , new com.googlecode.prolog_cafe.lang.IntegerTerm ( argNo ) , com.googlecode.prolog_cafe.lang.SymbolTerm.create ( flag ) } ; return new com.googlecode.prolog_cafe.lang.StructureTerm ( com.googlecode.prolog_cafe.lang.RepresentationException.REPRESENTATION_ERROR , args ) ; }

Target:
public com.googlecode.prolog_cafe.lang.Term getMessageTerm ( ) { com.googlecode.prolog_cafe.lang.Term [ ] args = new com.googlecode.prolog_cafe.lang.Term [ ] { new com.googlecode.prolog_cafe.lang.JavaObjectTerm ( goal ) , new com.googlecode.prolog_cafe.lang.IntegerTerm ( argNo ) , com.googlecode.prolog_cafe.lang.SymbolTerm.create ( flag ) } ; return new com.googlecode.prolog_cafe.lang.StructureTerm ( com.googlecode.prolog_cafe.exceptions.RepresentationException.REPRESENTATION_ERROR , args ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo c ) { project.setInnerText ( c.project ( ) ) ; com.google.gwtexpui.safehtml.client.SafeHtml.setInnerHTML ( filePath , com.google.gerrit.client.diff.Header.formatPath ( path , null , null ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo c ) { project.setInnerText ( c.project ( ) ) ; com.google.gwtexpui.safehtml.client.SafeHtml.setInnerHTML ( filePath , com.google.gerrit.client.diff.Header.formatPath ( path , null , null ) ) ; }
Source:
public java.lang.String apply ( com.google.gerrit.server.git.gpg.TestKey in ) { return in.getKeyIdString ( ) ; }

Target:
public java.lang.String apply ( com.google.gerrit.gpg.testutil.TestKey in ) { return in.getKeyIdString ( ) ; }
Source:
public void getOpenChange_NotFound ( ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit.Result r = pushFactory.create ( db , admin.getIdent ( ) , git ) . to ( "refs/for/master" ) ; r.assertOkStatus ( ) ; assertNotFound ( r.getCommitId ( ) ) ; }

Target:
public void getOpenChange_NotFound ( ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit.Result r = pushFactory.create ( db , admin.getIdent ( ) , testRepo ) . to ( "refs/for/master" ) ; r.assertOkStatus ( ) ; assertNotFound ( r.getCommitId ( ) ) ; }
Source:
public long getDateHeader ( java.lang.String name ) { java.lang.String v = getHeader ( name ) ; return v != null ? org.apache.http.client.utils.DateUtils.parseDate ( v ) . getTime ( ) : 0 ; }

Target:
public long getDateHeader ( java.lang.String name ) { java.lang.String v = getHeader ( name ) ; return v == null ? 0 : com.google.gerrit.util.http.testutil.FakeHttpServletRequest.rfcDateformatter.parse ( v , java.time.Instant :: from ) . getEpochSecond ( ) ; }
Source:
public void run ( ) { try { wrapped.call ( ) ; } catch ( java.lang.RuntimeException e ) { throw e ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public void run ( ) { try { wrapped.call ( ) ; } catch ( java.lang.Exception e ) { com.google.common.base.Throwables.propagateIfPossible ( e ) ; throw new java.lang.RuntimeException ( e ) ; } }
Source:
boolean isAutoFlush ( ) ;

Target:
public void commit ( ) throws com.google.gwtorm.client.OrmException ;
Source:
public com.google.gerrit.server.IdentifiedUser create ( com.google.gerrit.server.AccessPath accessPath , com.google.inject.Provider < java.net.SocketAddress > remotePeerProvider , com.google.gerrit.reviewdb.client.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , accessPath , authConfig , anonymousCowardName , canonicalUrl , realm , accountCache , groupBackend , remotePeerProvider , null , id ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( java.net.SocketAddress remotePeer , com.google.gerrit.reviewdb.client.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , anonymousCowardName , canonicalUrl , realm , accountCache , groupBackend , com.google.inject.util.Providers.of ( remotePeer ) , null , id ) ; }
Source:
void onIgnore ( com.google.gwt.event.dom.client.ClickEvent e ) { onIgnore ( updated ) ; hide ( ) ; }

Target:
void onIgnore ( com.google.gwt.event.dom.client.ClickEvent e ) { onIgnore ( updated ) ; removeFromParent ( ) ; }
Source:
public boolean canAdd ( final com.google.gerrit.reviewdb.Account.Id id ) { return isOwner ( ) ; }

Target:
public boolean canAddGroup ( final com.google.gerrit.reviewdb.AccountGroup.Id id ) { return isOwner ( ) ; }
Source:
public java.lang.String getChannel ( ) { return escape ( channel ) ; }

Target:
public java.lang.String getChannel ( ) { return clean ( channel ) ; }
Source:
public void rebuildEmptySiteStartingWithNoteDbDisabed ( ) throws java.lang.Exception { assertNotesMigrationState ( NotesMigrationState.REVIEW_DB ) ; com.google.gerrit.acceptance.pgm.RebuildNoteDbIT.runGerrit ( "RebuildNoteDb" , "-d" , sitePath , "--show-stack-trace" ) ; assertNotesMigrationState ( NotesMigrationState.READ_WRITE_NO_SEQUENCE ) ; }

Target:
public void rebuildEmptySiteStartingWithNoteDbDisabed ( ) throws java.lang.Exception { assertNotesMigrationState ( NotesMigrationState.REVIEW_DB ) ; com.google.gerrit.acceptance.pgm.MigrateToNoteDbIT.runGerrit ( "MigrateToNoteDb" , "-d" , sitePath , "--show-stack-trace" ) ; assertNotesMigrationState ( NotesMigrationState.READ_WRITE_NO_SEQUENCE ) ; }
Source:
com.google.gerrit.client.diff.DisplaySide displaySide ( com.google.gerrit.client.changes.CommentInfo info , com.google.gerrit.client.diff.DisplaySide forSide ) { if ( ( info.side ( ) ) == ( com.google.gerrit.extensions.client.Side.PARENT ) ) { return ( base ) == null ? DisplaySide.A : null ; } return forSide ; }

Target:
com.google.gerrit.extensions.client.Side getStoredSideFromDisplaySide ( com.google.gerrit.client.diff.DisplaySide side ) { if ( ( side == ( DisplaySide.A ) ) && ( ( ( base ) == null ) || ( ( base.get ( ) ) < 0 ) ) ) { return com.google.gerrit.extensions.client.Side.PARENT ; } return com.google.gerrit.extensions.client.Side.REVISION ; }
Source:
void onEdit ( com.google.gwt.event.dom.client.ClickEvent e ) { setEdit ( true ) ; }

Target:
void onEdit ( com.google.gwt.event.dom.client.ClickEvent e ) { e.stopPropagation ( ) ; setEdit ( true ) ; }
Source:
public java.util.Collection < com.google.gerrit.reviewdb.AccountGroup.Id > getByInclude ( final com.google.gerrit.reviewdb.AccountGroup.Id groupId ) { return byInclude.get ( groupId ) ; }

Target:
public java.util.Collection < com.google.gerrit.reviewdb.AccountGroup.UUID > getByInclude ( com.google.gerrit.reviewdb.AccountGroup.UUID groupId ) { return byInclude.get ( groupId ) ; }
Source:
com.google.gerrit.server.account.IncludingGroupMembership create ( com.google.gerrit.server.IdentifiedUser user ) ;

Target:
com.google.gerrit.server.account.IncludingGroupMembership create ( java.lang.Iterable < com.google.gerrit.reviewdb.client.AccountGroup.UUID > groupIds ) ;
Source:
public com.google.gerrit.reviewdb.client.Change abandon ( com.google.gerrit.server.project.ChangeControl control , java.lang.String msgTxt ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.git.UpdateException { return abandon ( control , msgTxt , NotifyHandling.ALL ) ; }

Target:
public com.google.gerrit.reviewdb.client.Change abandon ( com.google.gerrit.server.project.ChangeControl control , java.lang.String msgTxt ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.git.UpdateException { return abandon ( control , msgTxt , NotifyHandling.ALL , com.google.common.collect.ImmutableListMultimap.of ( ) ) ; }
Source:
private java.lang.String urlPut ( ) { return ( ( ( ( ( "/changes/" + ( change.getChangeId ( ) ) ) + "/edits/" ) + 0 ) + "/files/" ) + ( com.google.gerrit.acceptance.edit.ChangeEditIT.FILE_NAME ) ) + "/content" ; }

Target:
private java.lang.String urlEdit ( ) { return ( "/changes/" + ( change.getChangeId ( ) ) ) + "/edit" ; }
Source:
public static PatchSet.Id nextPatchSetId ( org.eclipse.jgit.lib.Repository git , com.google.gerrit.reviewdb.client.PatchSet.Id id ) { return com.google.gerrit.server.ChangeUtil.nextPatchSetId ( git.getAllRefs ( ) , id ) ; }

Target:
public static PatchSet.Id nextPatchSetId ( org.eclipse.jgit.lib.Repository git , com.google.gerrit.reviewdb.client.PatchSet.Id id ) throws java.io.IOException { return com.google.gerrit.server.ChangeUtil.nextPatchSetId ( git.getRefDatabase ( ) . getRefs ( RefDatabase.ALL ) , id ) ; }
Source:
public void display ( com.google.gerrit.client.dashboards.DashboardList dashes ) { display ( dashes.asList ( ) ) ; }

Target:
public void display ( com.google.gerrit.client.dashboards.DashboardList dashes ) { display ( com.google.gerrit.client.rpc.Natives.asList ( dashes ) ) ; }
Source:
public void run ( ) { if ( cm.extras ( ) . hasActiveLine ( ) ) { newDraft ( cm ) ; } }

Target:
public void run ( ) { if ( cm.extras ( ) . hasActiveLine ( ) ) { newDraft ( cm , ( ( cm.getLineNumber ( cm.extras ( ) . activeLine ( ) ) ) + 1 ) ) ; } }
Source:
com.google.gerrit.server.git.ReplaceOp create ( com.google.gerrit.server.util.RequestScopePropagator requestScopePropagator , com.google.gerrit.server.project.ProjectControl projectControl , com.google.gerrit.reviewdb.client.Branch.NameKey dest , boolean checkMergedInto , @ com.google.inject.assistedinject.Assisted ( value = "priorPatchSetId" ) com.google.gerrit.reviewdb.client.PatchSet.Id priorPatchSetId , @ com.google.inject.assistedinject.Assisted ( value = "priorCommit" ) org.eclipse.jgit.revwalk.RevCommit priorCommit , @ com.google.inject.assistedinject.Assisted ( value = "patchSetId" ) com.google.gerrit.reviewdb.client.PatchSet.Id patchSetId , @ com.google.inject.assistedinject.Assisted ( value = "commit" ) org.eclipse.jgit.revwalk.RevCommit commit , com.google.gerrit.reviewdb.client.PatchSetInfo info , java.util.List < java.lang.String > groups , @ com.google.gerrit.common.Nullable com.google.gerrit.server.git.ReceiveCommits.MagicBranchInput magicBranch , @ com.google.gerrit.common.Nullable org.eclipse.jgit.transport.PushCertificate pushCertificate ) ;

Target:
public com.google.gerrit.server.git.ReplaceOp setRequestScopePropagator ( com.google.gerrit.server.util.RequestScopePropagator requestScopePropagator ) { this . requestScopePropagator = requestScopePropagator ; return this ; }
Source:
java.util.Map < java.lang.String , com.codahale.metrics.Metric > getMetricMap ( ) { return registry.getMetrics ( ) ; }

Target:
java.lang.Iterable < java.lang.String > getMetricNames ( ) { return descriptions.keySet ( ) ; }
Source:
private void initPath ( ) { filePath.setInnerText ( path ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo c ) { project.setInnerText ( c.project ( ) ) ; com.google.gwtexpui.safehtml.client.SafeHtml.setInnerHTML ( filePath , com.google.gerrit.client.diff.Header.formatPath ( path , null , null ) ) ; }
Source:
public void testOnTime ( ) throws java.lang.Exception { org.joda.time.DateTime now = now ( ) ; com.google.common.truth.Truth.assertThat ( Verifier.onTime ( com.googlesource.gerrit.plugins.lfs.LfsAuthToken.ISO.print ( now.plusMillis ( 1 ) ) ) ) . isTrue ( ) ; }

Target:
public void testOnTime ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( Verifier.onTime ( formatter.format ( now ( ) . plusMillis ( 1 ) ) ) ) . isTrue ( ) ; }
Source:
public int compare ( final com.google.gerrit.client.data.ApprovalDetail o1 , final com.google.gerrit.client.data.ApprovalDetail o2 ) { int cmp ; cmp = ( o2.hasNonZero ) - ( o1.hasNonZero ) ; if ( cmp != 0 ) return cmp ; return o1.sortOrder.compareTo ( o2.sortOrder ) ; }

Target:
public void setMessages ( java.util.List < com.google.gerrit.client.reviewdb.ChangeMessage > m ) { messages = m ; }
Source:
public static com.google.gerrit.server.index.IndexConfig.Builder builder ( ) { return new com.google.gerrit.server.index.AutoValue_IndexConfig.Builder ( ) . maxLimit ( java.lang.Integer.MAX_VALUE ) . maxPages ( java.lang.Integer.MAX_VALUE ) . maxTerms ( com.google.gerrit.server.index.IndexConfig.DEFAULT_MAX_TERMS ) . separateChangeSubIndexes ( false ) ; }

Target:
public static com.google.gerrit.index.IndexConfig.Builder builder ( ) { return new com.google.gerrit.index.AutoValue_IndexConfig.Builder ( ) . maxLimit ( java.lang.Integer.MAX_VALUE ) . maxPages ( java.lang.Integer.MAX_VALUE ) . maxTerms ( com.google.gerrit.index.IndexConfig.DEFAULT_MAX_TERMS ) . separateChangeSubIndexes ( false ) ; }
Source:
public void testWarnExistingFaultyNameRuleBaseFile ( ) throws java.io.IOException { injectRuleBase ( "" , true ) ; replayMocks ( ) ; createRuleBase ( ) ; assertLogMessageContains ( "Please migrate" ) ; assertLogMessageContains ( "does not exist" ) ; }

Target:
public void testWarnExistingFaultyNameRuleBaseFile ( ) throws java.io.IOException { injectRuleBase ( "" , com.googlesource.gerrit.plugins.hooks.workflow.RuleBaseTest.RuleBaseKind.FAULTY ) ; replayMocks ( ) ; createRuleBase ( ) ; assertLogMessageContains ( "Please migrate" ) ; assertLogMessageContains ( "Neither global" ) ; }
Source:
private com.google.gerrit.prettify.common.EditList getEditList ( ) { return new com.google.gerrit.prettify.common.EditList ( edits , getContext ( ) , a.size ( ) , b.size ( ) ) ; }

Target:
public java.lang.Iterable < com.google.gerrit.prettify.common.EditList.Hunk > getHunks ( ) { return new com.google.gerrit.prettify.common.EditList ( edits , getContext ( ) , a.size ( ) , b.size ( ) ) . getHunks ( ) ; }
Source:
private static java.lang.String getJsPluginPath ( com.google.gerrit.server.plugins.Plugin plugin ) { return java.lang.String.format ( "/plugins/%s/static/%s" , plugin.getName ( ) , plugin.getSrcFile ( ) . getName ( ) ) ; }

Target:
private static java.lang.String getJsPluginPath ( com.google.gerrit.server.plugins.Plugin plugin ) { return java.lang.String.format ( "/plugins/%s/static/%s" , plugin.getName ( ) , plugin.getSrcFile ( ) . getFileName ( ) ) ; }
Source:
public void resetToDefaults ( ) { maximumPageSize = com.google.gerrit.reviewdb.AccountGeneralPreferences.DEFAULT_PAGESIZE ; showSiteHeader = true ; useFlashClipboard = true ; copySelfOnEmail = false ; downloadUrl = null ; downloadCommand = null ; }

Target:
public void resetToDefaults ( ) { maximumPageSize = com.google.gerrit.reviewdb.AccountGeneralPreferences.DEFAULT_PAGESIZE ; showSiteHeader = true ; useFlashClipboard = true ; copySelfOnEmail = false ; downloadUrl = null ; downloadCommand = null ; dateFormat = null ; timeFormat = null ; }
Source:
public void testIsEnabledUnknownEvent ( ) { com.google.gerrit.server.events.Event event = new com.google.gerrit.server.events.Event ( "foo" ) { } ; com.googlesource.gerrit.plugins.its.base.its.ItsConfig itsConfig = createItsConfig ( ) ; replayMocks ( ) ; assertFalse ( itsConfig.isEnabled ( event ) ) ; assertLogMessageContains ( "not recognised and ignored" ) ; }

Target:
public void BROKEN_testIsEnabledUnknownEvent ( ) { com.google.gerrit.server.events.Event event = new com.google.gerrit.server.events.Event ( "foo" ) { } ; com.googlesource.gerrit.plugins.its.base.its.ItsConfig itsConfig = createItsConfig ( ) ; replayMocks ( ) ; assertFalse ( itsConfig.isEnabled ( event ) ) ; assertLogMessageContains ( "not recognised and ignored" ) ; }
Source:
public boolean isOwnerAnyRef ( ) { return ( canPerformOnAnyRef ( Permission.OWNER ) ) || ( user.getCapabilities ( ) . isAdmin_DoNotUse ( ) ) ; }

Target:
public boolean isOwnerAnyRef ( ) { return ( canPerformOnAnyRef ( Permission.OWNER ) ) || ( isAdmin ( ) ) ; }
Source:
private static Rebuild.Input input ( java.lang.Boolean force ) { com.google.gerrit.server.group.Rebuild.Input input = new com.google.gerrit.server.group.Rebuild.Input ( ) ; input.force = force ; return input ; }

Target:
private static Rebuild.Input input ( java.lang.Boolean force ) { com.google.gerrit.server.restapi.group.Rebuild.Input input = new com.google.gerrit.server.restapi.group.Rebuild.Input ( ) ; input.force = force ; return input ; }
Source:
public com.google.gerrit.server.notedb.ChangeNotes getChangeNotes ( ) { return update.getChangeNotes ( ) ; }

Target:
public com.google.gerrit.server.notedb.ChangeNotes getNotes ( ) { return update.getChangeNotes ( ) ; }
Source:
public com.google.gerrit.server.project.ChangeControl controlFor ( final com.google.gerrit.reviewdb.client.Change change ) { return new com.google.gerrit.server.project.ChangeControl ( controlForRef ( change.getDest ( ) ) , change ) ; }

Target:
public com.google.gerrit.server.project.ChangeControl controlFor ( final com.google.gerrit.reviewdb.client.Change change ) { return new com.google.gerrit.server.project.ChangeControl ( approvalsUtil , controlForRef ( change.getDest ( ) ) , change ) ; }
Source:
void scrollToPath ( java.lang.String path ) { com.google.gerrit.client.diff.FileInfo info = map.get ( path ) ; if ( info != null ) { movePointerTo ( ( 1 + ( info._row ( ) ) ) , true ) ; } }

Target:
void scrollToPath ( java.lang.String path ) { com.google.gerrit.client.info.FileInfo info = map.get ( path ) ; if ( info != null ) { movePointerTo ( ( 1 + ( info._row ( ) ) ) , true ) ; } }
Source:
private com.google.gerrit.server.index.IndexedChangeQuery query ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p , int limit ) throws com.google.gerrit.server.query.QueryParseException { return new com.google.gerrit.server.index.IndexedChangeQuery ( index , p , limit ) ; }

Target:
private com.google.gerrit.server.index.IndexedChangeQuery query ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p , int limit ) throws com.google.gerrit.server.query.QueryParseException { return new com.google.gerrit.server.index.IndexedChangeQuery ( index , p , com.google.gerrit.server.index.IndexRewriteTest.options ( 0 , limit ) ) ; }
Source:
public final int hashCode ( ) { return java.util.Objects.hash ( readChanges ( ) , rawWriteChangesSetting ( ) , readChangeSequence ( ) , changePrimaryStorage ( ) , disableChangeReviewDb ( ) , fuseUpdates ( ) , failOnLoad ( ) ) ; }

Target:
public final boolean readChangeSequence ( ) { return snapshot.get ( ) . readChangeSequence ( ) ; }
Source:
public void onSuccess ( final java.util.List < com.google.gerrit.reviewdb.Branch > result ) { addBranch.setEnabled ( true ) ; nameTxtBox.setText ( "" ) ; irevTxtBox.setText ( "" ) ; branches.display ( result ) ; }

Target:
public void onSuccess ( final com.google.gerrit.common.data.ListBranchesResult result ) { addBranch.setEnabled ( true ) ; nameTxtBox.setText ( "" ) ; irevTxtBox.setText ( "" ) ; display ( result.getBranches ( ) ) ; }
Source:
public void sendRedirect ( java.lang.String location ) throws java.io.IOException { this . status = SC_MOVED_TEMPORARILY ; super . setHeader ( "Location" , location ) ; }

Target:
public void sendRedirect ( java.lang.String location ) throws java.io.IOException { this . status = SC_MOVED_TEMPORARILY ; setHeader ( com.google.gerrit.httpd.HttpServletResponseRecorder.LOCATION_HEADER , location ) ; }
Source:
void projectDetail ( com.google.gerrit.reviewdb.Project.NameKey projectName , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ProjectDetail > callback ) ;

Target:
void projectAccess ( com.google.gerrit.reviewdb.client.Project.NameKey projectName , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ProjectAccess > callback ) ;
Source:
public void nullCommitMessage ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( com.google.gerrit.server.change.HashtagsUtil.extractTags ( null ) ) . isEmpty ( ) ; }

Target:
public void nullCommitMessage ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( ( ( java.lang.Iterable < ? > ) ( com.google.gerrit.server.change.HashtagsUtil.extractTags ( null ) ) ) ) . isEmpty ( ) ; }
Source:
private java.lang.String createGroup ( java.lang.String name ) throws java.io.IOException { name = name ( name ) ; com.google.gerrit.server.group.CreateGroup.Input in = new com.google.gerrit.server.group.CreateGroup.Input ( ) ; in.ownerId = "Administrators" ; adminSession.put ( ( "/groups/" + name ) , in ) . consume ( ) ; return name ; }

Target:
private java.lang.String createGroup ( java.lang.String name ) throws java.io.IOException { name = name ( name ) ; com.google.gerrit.extensions.api.groups.GroupInput in = new com.google.gerrit.extensions.api.groups.GroupInput ( ) ; in.ownerId = "Administrators" ; adminSession.put ( ( "/groups/" + name ) , in ) . consume ( ) ; return name ; }
Source:
public boolean match ( com.google.gerrit.server.query.change.ChangeData object ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.server.index.ChangeField.getFileParts ( object ) . contains ( value ) ; }

Target:
public boolean match ( com.google.gerrit.server.query.change.ChangeData object ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.server.index.change.ChangeField.getFileParts ( object ) . contains ( value ) ; }
Source:
public void testToJsonWebToken ( ) throws java.lang.Exception { com.google.gson.JsonObject jsonWebToken = client.toJsonWebToken ( com.googlesource.gerrit.plugins.cfoauth.UAAClientTest.HS256_TEST_TOKEN ) ; assertEquals ( "marissa" , client.getAttribute ( jsonWebToken , "user_name" ) ) ; assertEquals ( "marissa@test.org" , client.getAttribute ( jsonWebToken , "email" ) ) ; assertEquals ( 1436232932L , client.getLongAttribute ( jsonWebToken , "exp" , 0 ) ) ; }

Target:
public void testToJsonWebToken ( ) throws java.lang.Exception { com.google.gson.JsonObject jsonWebToken = client.toJsonWebToken ( com.googlesource.gerrit.plugins.cfoauth.UAAClientTest.HS256_TEST_TOKEN ) ; assertEquals ( "marissa" , com.googlesource.gerrit.plugins.cfoauth.JsonUtils.getAttribute ( jsonWebToken , "user_name" ) ) ; assertEquals ( "marissa@test.org" , com.googlesource.gerrit.plugins.cfoauth.JsonUtils.getAttribute ( jsonWebToken , "email" ) ) ; assertEquals ( 1436232932L , com.googlesource.gerrit.plugins.cfoauth.JsonUtils.getLongAttribute ( jsonWebToken , "exp" , 0 ) ) ; }
Source:
public java.util.List < T > query ( com.google.gerrit.server.query.Predicate < T > p ) throws com.google.gwtorm.server.OrmException { try { return queryProcessor.query ( p ) . entities ( ) ; } catch ( com.google.gerrit.index.query.QueryParseException e ) { throw new com.google.gwtorm.server.OrmException ( e ) ; } }

Target:
public java.util.List < T > query ( com.google.gerrit.index.query.Predicate < T > p ) throws com.google.gwtorm.server.OrmException { try { return queryProcessor.query ( p ) . entities ( ) ; } catch ( com.google.gerrit.index.query.QueryParseException e ) { throw new com.google.gwtorm.server.OrmException ( e ) ; } }
Source:
public com.google.gerrit.reviewdb.Change update ( com.google.gerrit.reviewdb.Change change ) { if ( change.getStatus ( ) . isOpen ( ) ) { change.nextPatchSetId ( ) ; return change ; } else { return null ; } }

Target:
public void warn ( java.lang.String warning ) { msg.print ( ( ( "warning: " + warning ) + "\n" ) ) ; msg.flush ( ) ; }
Source:
public void onSuccess ( java.lang.Boolean result ) { display ( group , result ) ; }

Target:
public void onSuccess ( java.lang.Boolean result ) { if ( result ) { link ( Util.C.groupTabAuditLog ( ) , auditLogTabToken , com.google.gerrit.reviewdb.client.AccountGroup.isInternalGroup ( group.getGroupUUID ( ) ) ) ; setToken ( token ) ; } display ( group , result ) ; }
Source:
public abstract java.util.List < com.google.gerrit.extensions.common.ProjectInfo > get ( ) throws com.google.gerrit.extensions.restapi.RestApiException ;

Target:
public abstract java.util.SortedMap < java.lang.String , com.google.gerrit.extensions.common.ProjectInfo > getAsMap ( ) throws com.google.gerrit.extensions.restapi.RestApiException ;
Source:
com.google.gerrit.httpd.rpc.project.ChangeProjectAccess create ( @ com.google.inject.assistedinject.Assisted com.google.gerrit.reviewdb.Project.NameKey projectName , @ com.google.inject.assistedinject.Assisted org.eclipse.jgit.lib.ObjectId base , @ com.google.inject.assistedinject.Assisted java.util.List < com.google.gerrit.common.data.AccessSection > sectionList , @ javax.annotation.Nullable java.lang.String message ) ;

Target:
com.google.gerrit.httpd.rpc.project.ChangeProjectAccess create ( @ com.google.inject.assistedinject.Assisted ( value = "projectName" ) com.google.gerrit.reviewdb.client.Project.NameKey projectName , @ com.google.gerrit.common.Nullable org.eclipse.jgit.lib.ObjectId base , @ com.google.inject.assistedinject.Assisted java.util.List < com.google.gerrit.common.data.AccessSection > sectionList , @ com.google.gerrit.common.Nullable com.google.gerrit.reviewdb.client.Project.NameKey parentProjectName , @ com.google.gerrit.common.Nullable java.lang.String message ) ;
Source:
void setShowWhitespaceErrors ( final boolean show ) { cm.operation ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { cm.setOption ( "showTrailingSpace" , show ) ; } } ) ; }

Target:
public void execute ( ) { cm.operation ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { updateActiveLine ( ) ; } } ) ; }
Source:
public static com.google.gerrit.reviewdb.client.Change newChange ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Account.Id userId ) { return com.google.gerrit.testutil.TestChanges.newChange ( project , userId , com.google.gerrit.testutil.TestChanges.nextChangeId.getAndIncrement ( ) ) ; }

Target:
public static com.google.gerrit.reviewdb.client.Change newChange ( com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Account.Id userId ) { return com.google.gerrit.testing.TestChanges.newChange ( project , userId , com.google.gerrit.testing.TestChanges.nextChangeId.getAndIncrement ( ) ) ; }
Source:
void onDeleteRevision ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( com.google.gwt.user.client.Window.confirm ( Resources.C.deleteDraftRevision ( ) ) ) { com.google.gerrit.client.change.DraftActions.delete ( changeId , revision ) ; } }

Target:
void onDeleteRevision ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( com.google.gwt.user.client.Window.confirm ( Resources.C.deleteDraftRevision ( ) ) ) { com.google.gerrit.client.change.DraftActions.delete ( changeId , revision , publish , deleteRevision , deleteChange ) ; } }
Source:
private static com.google.gerrit.client.rpc.RestApi call ( int id , java.lang.String commit , java.lang.String action ) { return com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( "revisions" ) . id ( commit ) . view ( action ) ; }

Target:
public static void deleteRevision ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , java.lang.String commit , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gerrit.client.changes.ChangeApi.revision ( project , id , commit ) . delete ( cb ) ; }
Source:
public final native void activeLine ( net.codemirror.lib.CodeMirror.LineHandle line ) ;

Target:
private static native net.codemirror.lib.CodeMirror newCM ( com.google.gwt.dom.client.Element p , net.codemirror.lib.Configuration cfg ) ;
Source:
public com.google.gerrit.server.patch.IntraLineDiff.Status getStatus ( ) { return status ; }

Target:
public com.google.gerrit.server.diff.IntraLineDiff.Status getStatus ( ) { return status ; }
Source:
void setParent ( com.google.gerrit.client.diff.SideBySide2 parent ) { this . parent = parent ; }

Target:
void setDiffScreen ( com.google.gerrit.client.diff.SideBySide2 diffScreen ) { this . diffScreen = diffScreen ; }
Source:
protected void postDisplay ( ) { com.google.gwt.user.client.History.newItem ( PageLinks.SETTINGS_CONTACT , true ) ; }

Target:
protected void postDisplay ( ) { com.google.gerrit.client.Gerrit.display ( PageLinks.SETTINGS_CONTACT ) ; }
Source:
public void createBranchByProjectOwner ( ) throws java.lang.Exception { grantOwner ( ) ; setApiUser ( user ) ; assertCreateSucceeds ( ) ; }

Target:
public void branchAlreadyExists_Conflict ( ) throws java.lang.Exception { assertCreateSucceeds ( testBranch ) ; assertCreateFails ( testBranch , com.google.gerrit.extensions.restapi.ResourceConflictException.class ) ; }
Source:
public java.util.List < T > apply ( java.util.List < T > buffer ) { return transformBuffer ( buffer ) ; }

Target:
private java.lang.Iterable < T > buffer ( com.google.gwtorm.server.ResultSet < T > scanner ) { return com.google.common.collect.FluentIterable.from ( com.google.common.collect.Iterables.partition ( scanner , 50 ) ) . transformAndConcat ( this :: transformBuffer ) ; }
Source:
public static void createProject ( com.google.gerrit.acceptance.SshSession s , java.lang.String name ) throws com.jcraft.jsch.JSchException , java.io.IOException { com.google.gerrit.acceptance.git.GitUtil.createProject ( s , name , null ) ; }

Target:
public static void createProject ( com.google.gerrit.acceptance.SshSession s , java.lang.String name ) throws com.jcraft.jsch.JSchException , java.io.IOException { com.google.gerrit.acceptance.GitUtil.createProject ( s , name , null ) ; }
Source:
public void postEvent ( final com.google.gerrit.reviewdb.client.Change change , final com.google.gerrit.server.events.ChangeEvent event , final com.google.gerrit.reviewdb.server.ReviewDb db ) throws com.google.gwtorm.server.OrmException { fireEvent ( change , event , db ) ; }

Target:
public void postEvent ( final com.google.gerrit.reviewdb.client.Branch.NameKey branchName , final com.google.gerrit.server.events.Event event ) { fireEvent ( branchName , event ) ; }
Source:
public void fire ( com.google.gerrit.reviewdb.client.Project.NameKey project , org.eclipse.jgit.lib.RefUpdate refUpdate , org.eclipse.jgit.transport.ReceiveCommand.Type type ) { fire ( project , refUpdate.getName ( ) , refUpdate.getOldObjectId ( ) , refUpdate.getNewObjectId ( ) , type ) ; }

Target:
public void fire ( com.google.gerrit.reviewdb.client.Project.NameKey project , org.eclipse.jgit.lib.RefUpdate refUpdate , com.google.gerrit.extensions.common.AccountInfo updater ) { fire ( project , refUpdate.getName ( ) , refUpdate.getOldObjectId ( ) , refUpdate.getNewObjectId ( ) , ReceiveCommand.Type.UPDATE , updater ) ; }
Source:
private void assertNotBlocked ( java.lang.String p , java.lang.String ref , com.google.gerrit.server.project.ProjectControl u ) { com.google.common.truth.Truth.assertThat ( u.controlForRef ( ref ) . isBlocked ( p ) ) . named ( ( ( p + " is blocked for " ) + ref ) ) . isFalse ( ) ; }

Target:
private void assertNotBlocked ( java.lang.String p , java.lang.String ref , com.google.gerrit.server.permissions.ProjectControl u ) { com.google.common.truth.Truth.assertThat ( u.controlForRef ( ref ) . isBlocked ( p ) ) . named ( ( ( p + " is blocked for " ) + ref ) ) . isFalse ( ) ; }
Source:
public java.util.Map < java.lang.String , java.lang.Object > toSoyData ( javax.servlet.http.HttpServletRequest req , org.eclipse.jgit.revwalk.RevCommit commit ) throws java.io.IOException { return toSoyData ( req , commit , com.google.gitiles.CommitSoyData.KeySet.DEFAULT ) ; }

Target:
public java.util.Map < java.lang.String , java.lang.Object > toSoyData ( javax.servlet.http.HttpServletRequest req , org.eclipse.jgit.revwalk.RevCommit commit , org.eclipse.jgit.util.GitDateFormatter df ) throws java.io.IOException { return toSoyData ( req , commit , com.google.gitiles.CommitSoyData.KeySet.DEFAULT , df ) ; }
Source:
public com.google.common.util.concurrent.CheckedFuture < com.google.gerrit.reviewdb.client.PatchSetApproval , com.google.gwtorm.server.OrmException > getAsync ( com.google.gerrit.reviewdb.client.PatchSetApproval.Key key ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.server.schema.DisabledChangesReviewDbWrapper.MSG ) ; }

Target:
public com.google.common.util.concurrent.CheckedFuture < com.google.gerrit.reviewdb.client.PatchSetApproval , com.google.gwtorm.server.OrmException > getAsync ( com.google.gerrit.reviewdb.client.PatchSetApproval.Key key ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.reviewdb.server.DisabledChangesReviewDbWrapper.MSG ) ; }
Source:
public int compare ( com.google.gwtexpui.globalkey.client.KeyCommand arg0 , com.google.gwtexpui.globalkey.client.KeyCommand arg1 ) { if ( ( arg0.keyMask ) < ( arg1.keyMask ) ) { return - 1 ; } else if ( ( arg0.keyMask ) > ( arg1.keyMask ) ) { return 1 ; } return 0 ; }

Target:
public int compare ( com.google.gwtexpui.globalkey.client.KeyCommand arg0 , com.google.gwtexpui.globalkey.client.KeyCommand arg1 ) { return arg0.getHelpText ( ) . compareTo ( arg1.getHelpText ( ) ) ; }
Source:
com.google.gerrit.reviewdb.client.Change change ( ) { return control.getChange ( ) ; }

Target:
public com.google.gerrit.server.project.ChangeControl getControl ( ) { return control ; }
Source:
public boolean isDark ( ) { switch ( this ) { case MIDNIGHT : case NIGHT : case TWILIGHT : return true ; default : return false ; } }

Target:
public boolean isDark ( ) { switch ( this ) { case MIDNIGHT : case NIGHT : case TWILIGHT : return true ; case DEFAULT : case ECLIPSE : case ELEGANT : case NEAT : default : return false ; } }
Source:
public void check ( com.google.gerrit.server.permissions.ChangePermissionOrLabel perm ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.permissions.PermissionBackendException { if ( ! ( can ( perm ) ) ) { throw new com.google.gerrit.extensions.restapi.AuthException ( perm.toString ( ) ) ; } }

Target:
public void check ( com.google.gerrit.server.permissions.ChangePermissionOrLabel perm ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.permissions.PermissionBackendException { if ( ! ( can ( perm ) ) ) { throw new com.google.gerrit.extensions.restapi.AuthException ( ( ( perm.describeForException ( ) ) + " not permitted" ) ) ; } }
Source:
public boolean canSubmit ( ) { if ( RefNames.REFS_CONFIG.equals ( refName ) ) { return projectControl.isOwner ( ) ; } return ( canPerform ( Permission.SUBMIT ) ) && ( canWrite ( ) ) ; }

Target:
public boolean canSubmit ( boolean isChangeOwner ) { if ( RefNames.REFS_CONFIG.equals ( refName ) ) { return projectControl.isOwner ( ) ; } return ( canPerform ( Permission.SUBMIT , isChangeOwner ) ) && ( canWrite ( ) ) ; }
Source:
void createSchema ( ) throws com.google.gwtorm.client.OrmException ;

Target:
void updateSchema ( ) throws com.google.gwtorm.client.OrmException ;
Source:
public void index ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) throws java.io.IOException { for ( com.google.gerrit.server.index.Index < ? , com.google.gerrit.reviewdb.client.AccountGroup > i : getWriteIndexes ( ) ) { i.replace ( groupCache.get ( uuid ) ) ; } }

Target:
public void index ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) throws java.io.IOException { for ( com.google.gerrit.server.index.Index < ? , com.google.gerrit.reviewdb.client.AccountGroup > i : getWriteIndexes ( ) ) { i.replace ( groupCache.get ( uuid ) ) ; } fireGroupIndexedEvent ( uuid.get ( ) ) ; }
Source:
public static synchronized java.util.Collection < java.security.PublicKey > getHostKeys ( ) { return com.google.gerrit.server.ssh.GerritSshDaemon.hostKeys ; }

Target:
public java.net.InetSocketAddress getAddress ( ) { return preferredAddress ; }
Source:
private java.lang.String createChange ( com.google.gerrit.acceptance.TestAccount account ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.git.PushOneCommit push = new com.google.gerrit.acceptance.git.PushOneCommit ( db , account.getIdent ( ) ) ; return push.to ( git , "refs/for/master" ) . getChangeId ( ) ; }

Target:
private java.lang.String createChange ( com.google.gerrit.acceptance.TestAccount account ) throws java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , account.getIdent ( ) ) ; return push.to ( git , "refs/for/master" ) . getChangeId ( ) ; }
Source:
public void run ( ) { header.setReviewed ( ( ! ( header.isReviewed ( ) ) ) ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { header.toggleReviewed ( ) . run ( ) ; }
Source:
public void onEvent ( com.google.gerrit.server.events.Event event ) { if ( event instanceof com.google.gerrit.server.events.ChangeMergedEvent ) { com.google.gerrit.server.events.ChangeMergedEvent changeMergedEvent = ( ( com.google.gerrit.server.events.ChangeMergedEvent ) ( event ) ) ; mergeResults.put ( changeMergedEvent.change.number , changeMergedEvent.newRev ) ; } }

Target:
public void onEvent ( com.google.gerrit.server.events.Event event ) { if ( event instanceof com.google.gerrit.server.events.ChangeMergedEvent ) { com.google.gerrit.server.events.ChangeMergedEvent changeMergedEvent = ( ( com.google.gerrit.server.events.ChangeMergedEvent ) ( event ) ) ; mergeResults.put ( changeMergedEvent.change.get ( ) . number , changeMergedEvent.newRev ) ; } }
Source:
public com.google.gerrit.extensions.restapi.BinaryResult apply ( com.google.gerrit.server.project.FileResource rsrc ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException , java.io.IOException { return getContent.get ( ) . apply ( rsrc.getNameKey ( ) , rsrc.getRef ( ) , rsrc.getPath ( ) ) ; }

Target:
public com.google.gerrit.extensions.restapi.BinaryResult apply ( com.google.gerrit.server.project.FileResource rsrc ) throws com.google.gerrit.extensions.restapi.ResourceNotFoundException , java.io.IOException { return getContent.get ( ) . apply ( rsrc.getProject ( ) , rsrc.getRev ( ) , rsrc.getPath ( ) ) ; }
Source:
public java.lang.Iterable < com.google.gerrit.prettify.common.EditList.Hunk > getHunks ( ) { return new com.google.gerrit.prettify.common.EditList ( edits , getContext ( ) , a.size ( ) , b.size ( ) ) . getHunks ( ) ; }

Target:
public com.google.gerrit.common.data.PatchScriptSettings getSettings ( ) { return settings ; }
Source:
static boolean doCheckBlockedKeywords ( com.google.gerrit.server.config.PluginConfig cfg ) { return ( cfg.getStringList ( com.googlesource.gerrit.plugins.uploadvalidator.BlockedKeywordValidator.KEY_CHECK_BLOCKED_KEYWORD_PATTERN ) . length ) > 0 ; }

Target:
static boolean isActive ( com.google.gerrit.server.config.PluginConfig cfg ) { return ( cfg.getStringList ( com.googlesource.gerrit.plugins.uploadvalidator.BlockedKeywordValidator.KEY_CHECK_BLOCKED_KEYWORD_PATTERN ) . length ) > 0 ; }
Source:
public void addChangeListener ( com.google.gerrit.common.ChangeListener listener , com.google.gerrit.server.IdentifiedUser user ) { listeners.put ( listener , new com.google.gerrit.common.ChangeHookRunner.ChangeListenerHolder ( listener , user ) ) ; }

Target:
public void addChangeListener ( com.google.gerrit.common.ChangeListener listener , com.google.gerrit.server.CurrentUser user ) { listeners.put ( listener , new com.google.gerrit.common.ChangeHookRunner.ChangeListenerHolder ( listener , user ) ) ; }
Source:
public void suggestReviewersFullTextSearch ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; java.util.List < com.google.gerrit.server.change.SuggestReviewers.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , "ser" , 5 ) ; org.junit.Assert.assertEquals ( 4 , reviewers.size ( ) ) ; }

Target:
public void suggestReviewersFullTextSearch ( ) throws java.lang.Exception { java.lang.String changeId = createChange ( ) . getChangeId ( ) ; java.util.List < com.google.gerrit.server.change.SuggestReviewers.SuggestedReviewerInfo > reviewers = suggestReviewers ( changeId , "ser" , 5 ) ; com.google.common.truth.Truth.assertThat ( reviewers ) . hasSize ( 4 ) ; }
Source:
protected static java.sql.Timestamp parse ( java.lang.String value ) throws com.google.gerrit.server.query.QueryParseException { try { return com.google.gwtjsonrpc.common.JavaSqlTimestampHelper.parseTimestamp ( value ) ; } catch ( java.lang.IllegalArgumentException e ) { throw new com.google.gerrit.server.query.QueryParseException ( e.getMessage ( ) , e ) ; } }

Target:
protected static java.sql.Timestamp parse ( java.lang.String value ) throws com.google.gerrit.index.query.QueryParseException { try { return com.google.gwtjsonrpc.common.JavaSqlTimestampHelper.parseTimestamp ( value ) ; } catch ( java.lang.IllegalArgumentException e ) { throw new com.google.gerrit.index.query.QueryParseException ( e.getMessage ( ) , e ) ; } }
Source:
private void displayView ( android.app.Fragment fragment ) { android.app.FragmentManager fragmentManager = getFragmentManager ( ) ; fragmentManager.beginTransaction ( ) . replace ( R.id.mainFrame , fragment ) . addToBackStack ( null ) . commit ( ) ; }

Target:
private void displayView ( android.support.v4.app.Fragment fragment ) { android.support.v4.app.FragmentManager fragmentManager = getSupportFragmentManager ( ) ; fragmentManager.beginTransaction ( ) . replace ( R.id.mainFrame , fragment ) . addToBackStack ( null ) . commit ( ) ; }
Source:
protected void assertServerStartupFails ( ) throws java.lang.Exception { try ( com.google.gerrit.acceptance.GerritServer server = startImpl ( ) ) { org.junit.Assert.fail ( "expected server startup to fail" ) ; } catch ( com.google.gerrit.acceptance.GerritServer e ) { } }

Target:
protected com.google.gerrit.acceptance.StandaloneSiteTest.ServerContext startServer ( @ com.google.gerrit.common.Nullable com.google.inject.Module testSysModule ) throws java.lang.Exception { return new com.google.gerrit.acceptance.StandaloneSiteTest.ServerContext ( startImpl ( testSysModule ) ) ; }
Source:
public < T extends com.google.gwt.core.client.JavaScriptObject > void post ( com.google.gwt.core.client.JavaScriptObject content , com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { sendJSON ( com.google.gwt.http.client.RequestBuilder.POST , content , cb ) ; }

Target:
public < T extends com.google.gwt.core.client.JavaScriptObject > void put ( com.google.gwt.core.client.JavaScriptObject content , com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { put ( content , com.google.gerrit.client.rpc.RestApi.wrap ( cb ) ) ; }
Source:
private java.lang.String urlEditFile ( ) { return ( ( urlEdit ( ) ) + "/" ) + ( com.google.gerrit.acceptance.edit.ChangeEditIT.FILE_NAME ) ; }

Target:
private java.lang.String urlEditFile ( boolean base ) { return ( ( ( urlEdit ( ) ) + "/" ) + ( com.google.gerrit.acceptance.edit.ChangeEditIT.FILE_NAME ) ) + ( base ? "?base" : "" ) ; }
Source:
protected void init ( ) throws com.google.gerrit.common.errors.EmailException { super . init ( ) ; ccAllApprovals ( ) ; bccStarredBy ( ) ; ccExistingReviewers ( ) ; includeWatchers ( NotifyType.ALL_COMMENTS ) ; add ( RecipientType.TO , reviewers ) ; }

Target:
protected void init ( ) throws com.google.gerrit.common.errors.EmailException { super . init ( ) ; ccAllApprovals ( ) ; bccStarredBy ( ) ; ccExistingReviewers ( ) ; includeWatchers ( NotifyType.ALL_COMMENTS ) ; add ( RecipientType.TO , reviewers ) ; removeUsersThatIgnoredTheChange ( ) ; }
Source:
public void preDisplay ( com.google.gerrit.common.data.ProjectAccess access ) { edit ( access ) ; }

Target:
public void preDisplay ( com.google.gerrit.common.data.ProjectAccess access ) { displayReadOnly ( access ) ; }
Source:
private void setupPostMocks ( boolean changeExist ) throws java.lang.Exception { setupPostMocks ( changeExist , com.ericsson.gerrit.plugins.syncindex.SyncIndexRestApiServletTest.DO_NOT_THROW_ORM_EXCEPTION , com.ericsson.gerrit.plugins.syncindex.SyncIndexRestApiServletTest.DO_NOT_THROW_IO_EXCEPTION ) ; }

Target:
private void setupPostMocks ( boolean changeExist ) throws java.lang.Exception { setupPostMocks ( changeExist , com.ericsson.gerrit.plugins.multimaster.SyncIndexRestApiServletTest.DO_NOT_THROW_ORM_EXCEPTION , com.ericsson.gerrit.plugins.multimaster.SyncIndexRestApiServletTest.DO_NOT_THROW_IO_EXCEPTION ) ; }
Source:
protected void configureServlets ( ) { install ( new com.google.gerrit.server.config.FactoryModule ( ) { @ java.lang.Override protected void configure ( ) { factory ( PatchSetDetailFactory.Factory.class ) ; } } ) ; rpc ( com.google.gerrit.httpd.rpc.changedetail.ChangeDetailServiceImpl.class ) ; }

Target:
protected void configureServlets ( ) { install ( new com.google.gerrit.extensions.config.FactoryModule ( ) { @ java.lang.Override protected void configure ( ) { factory ( PatchSetDetailFactory.Factory.class ) ; } } ) ; rpc ( com.google.gerrit.httpd.rpc.changedetail.ChangeDetailServiceImpl.class ) ; }
Source:
public void setName ( final java.lang.String n ) { name = n ; }

Target:
public void setName ( final java.lang.String n ) { name = n ; labelName = null ; }
Source:
public void onLostFocus ( com.google.gwt.user.client.ui.Widget sender ) { if ( "" . equals ( nameTxtBox.getText ( ) ) ) { nameTxtBox.setText ( Util.C.defaultAccountName ( ) ) ; nameTxtBox.addStyleName ( "gerrit-InputFieldTypeHint" ) ; } }

Target:
public void onBlur ( final com.google.gwt.event.dom.client.BlurEvent event ) { if ( "" . equals ( nameTxtBox.getText ( ) ) ) { nameTxtBox.setText ( Util.C.defaultAccountName ( ) ) ; nameTxtBox.addStyleName ( "gerrit-InputFieldTypeHint" ) ; } }
Source:
private void failAndThrow ( com.google.gerrit.reviewdb.client.Change change , java.lang.RuntimeException e ) { fail ( change , e ) ; throw e ; }

Target:
private void failAndThrow ( com.google.gerrit.reviewdb.client.Project.NameKey project , java.lang.Error e ) { fail ( project , e ) ; throw e ; }
Source:
public void index ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.Change.Id changeId ) throws com.google.gwtorm.server.OrmException , java.io.IOException { index ( newChangeData ( db , project , changeId ) ) ; }

Target:
public void index ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Change change ) throws com.google.gwtorm.server.OrmException , java.io.IOException { index ( newChangeData ( db , change ) ) ; reindexAfterIndexUpdate ( change.getProject ( ) , change.getId ( ) ) ; }