auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void writeFile ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res ) throws java.io.IOException { res.setStatus ( HttpServletResponse.SC_NO_CONTENT ) ; streamRequestToFile ( req , configFile ( req ) ) ; }

Target:
private void writeFile ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res ) throws java.io.IOException { res.setStatus ( HttpServletResponse.SC_NO_CONTENT ) ; streamRequestToFile ( req , resolveFile ( req ) ) ; }
Source:
public void onFailure ( final java.lang.Throwable caught ) { k.getWatch ( ) . setNotifyNewChanges ( oldVal ) ; notifyNewChanges.setValue ( oldVal ) ; super . onFailure ( caught ) ; }

Target:
public void onFailure ( final java.lang.Throwable caught ) { addNew.setEnabled ( true ) ; nameBox.setEnabled ( true ) ; filterTxt.setEnabled ( true ) ; super . onFailure ( caught ) ; }
Source:
public java.lang.String getCommentLinkName ( ) { java.lang.String ret ; ret = gerritConfig.getString ( pluginName , null , "commentlink" ) ; if ( ret == null ) { ret = pluginName ; } return ret ; }

Target:
private int getPluginConfigInt ( java.lang.String key , int defaultValue ) { return getCurrentPluginConfig ( ) . getInt ( key , gerritConfig.getInt ( com.googlesource.gerrit.plugins.its.base.its.ItsConfig.PLUGIN , pluginName , key , defaultValue ) ) ; }
Source:
public static com.google.gerrit.pgm.util.ConsoleUI getInstance ( final boolean batchMode ) { java.io.Console console = ( batchMode ) ? null : java.lang.System.console ( ) ; return console != null ? new com.google.gerrit.pgm.util.ConsoleUI.Interactive ( console ) : new com.google.gerrit.pgm.util.ConsoleUI.Batch ( ) ; }

Target:
public static com.google.gerrit.pgm.init.ConsoleUI getInstance ( final boolean batchMode ) { java.io.Console console = ( batchMode ) ? null : java.lang.System.console ( ) ; return console != null ? new com.google.gerrit.pgm.init.ConsoleUI.Interactive ( console ) : new com.google.gerrit.pgm.init.ConsoleUI.Batch ( ) ; }
Source:
public void index ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { index.apply ( account , new com.google.gerrit.server.account.Index.Input ( ) ) ; } catch ( java.io.IOException | com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot index account" , e ) ; } }

Target:
public void index ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { index.apply ( account , new com.google.gerrit.server.account.Index.Input ( ) ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot index account" , e ) ; } }
Source:
public static com.google.gerrit.lucene.LuceneIndexModule latestVersionWithOnlineUpgrade ( ) { return new com.google.gerrit.lucene.LuceneIndexModule ( null , 0 , true ) ; }

Target:
public static com.google.gerrit.lucene.LuceneIndexModule latestVersionWithOnlineUpgrade ( boolean slave ) { return new com.google.gerrit.lucene.LuceneIndexModule ( null , 0 , true , slave ) ; }
Source:
public int hashCode ( ) { return com.google.common.base.Objects.hashCode ( revision , oldRevision , path ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( revision , oldRevision , path ) ; }
Source:
protected java.nio.file.Path getResourcePath ( java.lang.String pathInfo ) throws java.io.IOException { if ( ( fonts ) == null ) { throw new java.io.IOException ( ( ( "No fonts found: " + ( zip ) ) + ". Run `buck build //polygerrit-ui:fonts`?" ) ) ; } return fonts.resolve ( pathInfo ) ; }

Target:
protected java.nio.file.Path getResourcePath ( java.lang.String pathInfo ) throws java.io.IOException { return fonts.resolve ( pathInfo ) ; }
Source:
public void noRevisionOptions ( ) throws java.lang.Exception { com.google.gerrit.extensions.common.ChangeInfo c = info ( changeId ) ; org.junit.Assert.assertNull ( c.currentRevision ) ; org.junit.Assert.assertNull ( c.revisions ) ; }

Target:
public void noRevisionOptions ( ) throws java.lang.Exception { com.google.gerrit.extensions.common.ChangeInfo c = info ( changeId ) ; com.google.common.truth.Truth.assertThat ( c.currentRevision ) . isNull ( ) ; com.google.common.truth.Truth.assertThat ( c.revisions ) . isNull ( ) ; }
Source:
public void run ( ) { try { wrapped.call ( ) ; } catch ( java.lang.Exception e ) { com.google.common.base.Throwables.throwIfUnchecked ( 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:
public void myExternalIds ( com.google.gwt.user.client.rpc.AsyncCallback < java.util.List < com.google.gerrit.reviewdb.client.AccountExternalId > > callback ) { externalIdDetailFactory.create ( ) . to ( callback ) ; }

Target:
public void myExternalIds ( com.google.gwtjsonrpc.common.AsyncCallback < java.util.List < com.google.gerrit.reviewdb.client.AccountExternalId > > callback ) { externalIdDetailFactory.create ( ) . to ( callback ) ; }
Source:
private void checkHostIndex ( ) { checkView ( ( ( hostName ) != null ) , "missing hostName on %s view" , type ) ; checkView ( ( ( servletPath ) != null ) , "missing hostName on %s view" , type ) ; }

Target:
private void checkHostIndex ( ) { checkView ( ( ( hostName ) != null ) , "missing hostName on %s view" , type ) ; checkView ( ( ( servletPath ) != null ) , "missing servletPath on %s view" , type ) ; }
Source:
public com.google.gerrit.server.project.ListProjects setShowDescription ( boolean show ) { this . showDescription = show ; return this ; }

Target:
private java.lang.Iterable < com.google.gerrit.reviewdb.client.Project.NameKey > scan ( ) { if ( ( matchPrefix ) != null ) { return projectCache.byName ( matchPrefix ) ; } else { return projectCache.all ( ) ; } }
Source:
public com.google.gerrit.server.schema.Schema_77.LegacyLabelType byLabel ( com.google.gerrit.reviewdb.client.PatchSetApproval.LabelId labelId ) { com.google.gerrit.server.schema.Schema_77.LegacyLabelType t = byId.get ( labelId.get ( ) ) ; return t != null ? t : ( ( com.google.gerrit.server.schema.Schema_77.LegacyLabelType ) ( super . byLabel ( labelId ) ) ) ; }

Target:
public com.google.gerrit.server.schema.Schema_77.LegacyLabelType byLabel ( com.google.gerrit.reviewdb.client.LabelId labelId ) { com.google.gerrit.server.schema.Schema_77.LegacyLabelType t = byId.get ( labelId.get ( ) ) ; return t != null ? t : ( ( com.google.gerrit.server.schema.Schema_77.LegacyLabelType ) ( super . byLabel ( labelId ) ) ) ; }
Source:
static com.google.gerrit.reviewdb.server.ReviewDb unwrap ( com.google.gerrit.reviewdb.server.ReviewDb db ) { if ( db instanceof com.google.gerrit.server.git.BatchUpdateReviewDb ) { db = ( ( com.google.gerrit.server.git.BatchUpdateReviewDb ) ( db ) ) . unsafeGetDelegate ( ) ; } return com.google.gerrit.reviewdb.server.ReviewDbUtil.unwrapDb ( db ) ; }

Target:
static com.google.gerrit.reviewdb.server.ReviewDb unwrap ( com.google.gerrit.reviewdb.server.ReviewDb db ) { if ( db instanceof com.google.gerrit.server.update.BatchUpdateReviewDb ) { db = ( ( com.google.gerrit.server.update.BatchUpdateReviewDb ) ( db ) ) . unsafeGetDelegate ( ) ; } return com.google.gerrit.reviewdb.server.ReviewDbUtil.unwrapDb ( db ) ; }
Source:
com.google.gerrit.extensions.restapi.Response < com.google.gerrit.extensions.common.ChangeInfo > apply ( com.google.gerrit.server.change.RevisionResource rsrc ) throws com.google.gwtorm.server.OrmException { return cache ( json.format ( rsrc ) ) ; }

Target:
com.google.gerrit.extensions.restapi.Response < com.google.gerrit.extensions.common.ChangeInfo > apply ( com.google.gerrit.server.change.RevisionResource rsrc ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.server.change.GetChange.cache ( json.format ( rsrc ) ) ; }
Source:
public void testGcAll ( ) throws com.jcraft.jsch.JSchException , java.io.IOException { java.lang.String response = sshSession.exec ( "gerrit gc --all" ) ; org.junit.Assert.assertFalse ( sshSession.hasError ( ) ) ; assertNoError ( response ) ; assertHasPackFile ( allProjects , project1 , project2 , project3 ) ; }

Target:
public void testGcAll ( ) throws com.jcraft.jsch.JSchException , java.io.IOException { java.lang.String response = sshSession.exec ( "gerrit gc --all" ) ; org.junit.Assert.assertFalse ( sshSession.hasError ( ) ) ; assertNoError ( response ) ; gcAssert.assertHasPackFile ( allProjects , project1 , project2 , project3 ) ; }
Source:
public void onSuccess ( final com.google.gerrit.client.data.AccountDashboardInfo r ) { if ( isAttached ( ) ) { display ( r ) ; } }

Target:
protected void preDisplay ( final com.google.gerrit.client.data.AccountDashboardInfo r ) { display ( r ) ; }
Source:
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 , realm , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , com.google.inject.util.Providers.of ( remotePeer ) , null , id , null ) ; }

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 , starredChangesUtil , authConfig , realm , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , com.google.inject.util.Providers.of ( remotePeer ) , null , id , null ) ; }
Source:
public org.eclipse.jgit.revwalk.RevCommit createRef ( java.lang.String refName ) { return null ; }

Target:
org.eclipse.jgit.lib.ObjectId getResult ( ) { return result ; }
Source:
public void onSuccess ( com.google.gerrit.client.VoidResult result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChangeInEditMode ( revision.getParentKey ( ) ) ) ; }

Target:
public void run ( ) { cm.setOption ( "showTrailingSpace" , show ) ; }
Source:
public com.google.gerrit.rules.PrologEnvironment newPrologEnvironment ( java.lang.String name , java.io.InputStream in ) throws com.googlecode.prolog_cafe.exceptions.CompileException { com.googlecode.prolog_cafe.lang.PrologMachineCopy pmc = rulesCache.loadMachine ( name , in ) ; return envFactory.create ( pmc ) ; }

Target:
public com.google.gerrit.rules.PrologEnvironment newPrologEnvironment ( java.lang.String name , java.io.Reader in ) throws com.googlecode.prolog_cafe.exceptions.CompileException { com.googlecode.prolog_cafe.lang.PrologMachineCopy pmc = rulesCache.loadMachine ( name , in ) ; return envFactory.create ( pmc ) ; }
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 , org.eclipse.jgit.transport.ReceiveCommand.Type type , com.google.gerrit.reviewdb.client.Account.Id updater ) { fire ( project , refUpdate.getName ( ) , refUpdate.getOldObjectId ( ) , refUpdate.getNewObjectId ( ) , type , util.accountInfo ( updater ) ) ; }
Source:
public void put ( K key , V value ) { self.put ( new net.sf.ehcache.Element ( key , value ) ) ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > putAsync ( final K key , final V value ) { self.put ( new net.sf.ehcache.Element ( key , value ) ) ; return com.google.common.util.concurrent.Futures.immediateFuture ( null ) ; }
Source:
public java.lang.String toString ( ) { return ( "index(" + ( source ) ) + ")" ; }

Target:
public java.lang.String toString ( ) { return com.google.common.base.Objects.toStringHelper ( "index" ) . add ( "p" , source ) . add ( "limit" , limit ) . toString ( ) ; }
Source:
public com.google.common.collect.ImmutableMap < com.google.gerrit.server.account.WatchConfig.ProjectWatchKey , com.google.common.collect.ImmutableSet < com.google.gerrit.server.account.WatchConfig.NotifyType > > getProjectWatches ( ) { if ( ( projectWatches ) == null ) { parse ( ) ; } return projectWatches ; }

Target:
public com.google.common.collect.ImmutableMap < com.google.gerrit.server.account.ProjectWatches.ProjectWatchKey , com.google.common.collect.ImmutableSet < com.google.gerrit.server.account.ProjectWatches.NotifyType > > getProjectWatches ( ) { if ( ( projectWatches ) == null ) { parse ( ) ; } return projectWatches ; }
Source:
public static org.apache.lucene.index.Term idTerm ( com.google.gerrit.server.query.change.ChangeData cd ) { return com.google.gerrit.lucene.QueryBuilder.intTerm ( com.google.gerrit.lucene.QueryBuilder.ID_FIELD , cd.getId ( ) . get ( ) ) ; }

Target:
public static org.apache.lucene.index.Term idTerm ( com.google.gerrit.server.index.Schema < com.google.gerrit.server.query.change.ChangeData > schema , com.google.gerrit.server.query.change.ChangeData cd ) { return com.google.gerrit.lucene.QueryBuilder.intTerm ( com.google.gerrit.server.query.change.LegacyChangeIdPredicate.idField ( schema ) . getName ( ) , cd.getId ( ) . get ( ) ) ; }
Source:
public java.util.Collection < com.google.gerrit.client.reviewdb.ProjectRight > getWildcardRights ( ) { return get ( ProjectRight.WILD_PROJECT ) . getRights ( ) ; }

Target:
public java.util.Collection < com.google.gerrit.client.reviewdb.ProjectRight > getWildcardRights ( ) { return get ( wildProject ) . getRights ( ) ; }
Source:
public V get ( K key ) { com.google.gerrit.ehcache.SerializableProtobuf < V > val = cache.get ( new com.google.gerrit.ehcache.SerializableProtobuf < K > ( key , keyCodec ) ) ; return val != null ? val.toObject ( valueCodec , valueProvider ) : null ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < V > get ( K key ) { return com.google.common.util.concurrent.Futures.compose ( cache.get ( wrapKey ( key ) ) , unpack ) ; }
Source:
void setHideEmptyPane ( boolean hide ) { if ( ( changeType ) == ( com.google.gerrit.reviewdb.client.Patch.ChangeType.ADDED ) ) { setVisibleA ( ( ! hide ) ) ; } else if ( ( changeType ) == ( com.google.gerrit.reviewdb.client.Patch.ChangeType.DELETED ) ) { setVisibleB ( ( ! hide ) ) ; } }

Target:
boolean hasHeader ( ) { return header ; }
Source:
public static boolean isRef ( java.lang.String name ) { return ( com.google.gerrit.reviewdb.client.PatchSet.Id.fromRef ( name ) ) != null ; }

Target:
public static boolean isChangeRef ( java.lang.String name ) { return ( com.google.gerrit.reviewdb.client.PatchSet.Id.fromRef ( name ) ) != null ; }
Source:
protected void init ( ) throws com.google.gerrit.common.errors.EmailException { super . init ( ) ; ccAllApprovals ( ) ; bccStarredBy ( ) ; includeWatchers ( NotifyType.ABANDONED_CHANGES ) ; }

Target:
protected void init ( ) throws com.google.gerrit.common.errors.EmailException { super . init ( ) ; ccAllApprovals ( ) ; bccStarredBy ( ) ; includeWatchers ( NotifyType.ABANDONED_CHANGES ) ; removeUsersThatIgnoredTheChange ( ) ; }
Source:
public void validateLocalDomain ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( com.google.gerrit.server.mail.OutgoingEmailValidator.isValid ( "foo@bar.local" ) ) . isTrue ( ) ; }

Target:
public void validateLocalDomain ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( com.google.gerrit.server.mail.send.OutgoingEmailValidator.isValid ( "foo@bar.local" ) ) . isTrue ( ) ; }
Source:
public com.googlecode.prolog_cafe.lang.NumberTerm not ( ) { throw new com.googlecode.prolog_cafe.exceptions.IllegalTypeException ( "integer" , this ) ; }

Target:
public com.googlecode.prolog_cafe.lang.NumberTerm shiftRight ( com.googlecode.prolog_cafe.lang.NumberTerm t ) { throw new com.googlecode.prolog_cafe.exceptions.IllegalTypeException ( "integer" , this ) ; }
Source:
public static com.google.gerrit.client.rpc.RestApi edit ( int id ) { return com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( "edits" ) . id ( "0" ) ; }

Target:
public static com.google.gerrit.client.rpc.RestApi edit ( int id ) { return com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( "edit" ) ; }
Source:
public static com.google.gerrit.server.query.Predicate < com.google.gerrit.reviewdb.client.AccountGroup > owner ( java.lang.String owner ) { return new com.google.gerrit.server.query.group.GroupPredicates.GroupPredicate ( com.google.gerrit.server.index.group.GroupField.OWNER_UUID , GroupQueryBuilder.FIELD_OWNER , owner ) ; }

Target:
public static com.google.gerrit.server.query.Predicate < com.google.gerrit.reviewdb.client.AccountGroup > owner ( com.google.gerrit.reviewdb.client.AccountGroup.UUID ownerUuid ) { return new com.google.gerrit.server.query.group.GroupPredicates.GroupPredicate ( com.google.gerrit.server.index.group.GroupField.OWNER_UUID , GroupQueryBuilder.FIELD_OWNER , ownerUuid.get ( ) ) ; }
Source:
public void parseReviewer ( ) throws java.lang.Exception { assertParseSucceeds ( ( "Update change\n" + ( ( ( "\n" + "Patch-Set: 1\n" ) + "Reviewer: Change Owner <1@gerrit>\n" ) + "CC: Other Account <2@gerrit>\n" ) ) ) ; assertParseFails ( ( "Update change\n" + ( ( "\n" + "Patch-Set: 1\n" ) + "Reviewer: 1@gerrit\n" ) ) ) ; }

Target:
public void parseReviewer ( ) throws java.lang.Exception { assertParseSucceeds ( ( "Update change\n" + ( ( ( ( "\n" + "Branch: refs/heads/master\n" ) + "Patch-Set: 1\n" ) + "Reviewer: Change Owner <1@gerrit>\n" ) + "CC: Other Account <2@gerrit>\n" ) ) ) ; assertParseFails ( ( "Update change\n" + ( ( "\n" + "Patch-Set: 1\n" ) + "Reviewer: 1@gerrit\n" ) ) ) ; }
Source:
public void testUnsetForwardedEvent ( ) throws java.lang.Exception { com.ericsson.gerrit.plugins.syncindex.Context.setForwardedEvent ( true ) ; com.ericsson.gerrit.plugins.syncindex.Context.unsetForwardedEvent ( ) ; com.google.common.truth.Truth.assertThat ( com.ericsson.gerrit.plugins.syncindex.Context.isForwardedEvent ( ) ) . isFalse ( ) ; }

Target:
public void testUnsetForwardedEvent ( ) throws java.lang.Exception { com.ericsson.gerrit.plugins.multimaster.Context.setForwardedEvent ( true ) ; com.ericsson.gerrit.plugins.multimaster.Context.unsetForwardedEvent ( ) ; com.google.common.truth.Truth.assertThat ( com.ericsson.gerrit.plugins.multimaster.Context.isForwardedEvent ( ) ) . isFalse ( ) ; }
Source:
public void addReviewerByEmailToReviewableChangeInNoteDb ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isTrue ( ) ; forAll ( ( adder ) -> { java.lang.String email = "addedbyemail@example.com" ; com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; addReviewer ( adder , sc.changeId , sc.owner , email ) ; assertThat ( sender ) . sent ( "newchange" , sc ) . to ( email ) . cc ( sc.reviewer ) . cc ( sc.reviewerByEmail , sc.ccerByEmail ) . noOneElse ( ) ; } ) ; }

Target:
public void addReviewerByEmailToReviewableChangeInNoteDbSingly ( ) throws java.lang.Exception { addReviewerByEmailToReviewableChangeInNoteDb ( singly ( ) ) ; }
Source:
boolean hasNext ( ) { return hasNext ; }

Target:
public void run ( ) { if ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) { reviewed.setValue ( true , true ) ; } navigate ( Direction.NEXT ) . run ( ) ; }
Source:
public com.google.gerrit.extensions.common.WebLinkInfo getPathSetWebLink ( java.lang.String projectName , java.lang.String commit ) { return new com.google.gerrit.extensions.common.WebLinkInfo ( name , myImageUrl , java.lang.String.format ( placeHolderUrlProjectCommit , projectName , commit ) , Target.BLANK ) ; }

Target:
public com.google.gerrit.extensions.common.WebLinkInfo getPatchSetWebLink ( java.lang.String projectName , java.lang.String commit ) { return new com.google.gerrit.extensions.common.WebLinkInfo ( name , myImageUrl , java.lang.String.format ( placeHolderUrlProjectCommit , projectName , commit ) , Target.BLANK ) ; }
Source:
protected void onUnload ( ) { if ( ( recenter ) != null ) { com.google.gwt.user.client.Window.removeWindowResizeListener ( recenter ) ; recenter = null ; } super . onUnload ( ) ; }

Target:
protected void onUnload ( ) { if ( ( recenter ) != null ) { recenter.removeHandler ( ) ; recenter = null ; } super . onUnload ( ) ; }
Source:
public void delete ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { delete.apply ( rsrc , new com.google.gerrit.gpg.server.DeleteGpgKey.Input ( ) ) ; } catch ( org.bouncycastle.openpgp.PGPException | com.google.gwtorm.server.OrmException | java.io.IOException | org.eclipse.jgit.errors.ConfigInvalidException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot delete GPG key" , e ) ; } }

Target:
public void delete ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { delete.apply ( rsrc , new com.google.gerrit.extensions.common.Input ( ) ) ; } catch ( org.bouncycastle.openpgp.PGPException | com.google.gwtorm.server.OrmException | java.io.IOException | org.eclipse.jgit.errors.ConfigInvalidException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot delete GPG key" , e ) ; } }
Source:
private void setName ( boolean open ) { name.setInnerText ( ( open ? com.google.gerrit.client.change.Message.authorName ( info ) : com.google.gerrit.client.change.Message.elide ( com.google.gerrit.client.change.Message.authorName ( info ) , 20 ) ) ) ; }

Target:
private void setName ( boolean open ) { name.setInnerText ( ( open ? com.google.gerrit.client.change.Message.authorName ( info ) : com.google.gerrit.common.FormatUtil.elide ( com.google.gerrit.client.change.Message.authorName ( info ) , 20 ) ) ) ; }
Source:
public void onReplace ( org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.reviewdb.client.Account.Id accountId , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toRemove , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toAdd ) { }

Target:
public void onReplace ( org.eclipse.jgit.lib.ObjectId oldNotesRev , org.eclipse.jgit.lib.ObjectId newNotesRev , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toRemove , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toAdd ) { }
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 publish ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { publishDraftChange.apply ( change , null ) ; } catch ( com.google.gerrit.server.update.UpdateException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot publish change" , e ) ; } }
Source:
public void testNameEscaperDoesNotEscapeSlashes ( ) throws java.lang.Exception { assertEquals ( "foo/bar" , com.google.gitiles.GitilesUrls.NAME_ESCAPER.apply ( "foo/bar" ) ) ; }

Target:
public void nameEscaperDoesNotEscapeSlashes ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( "foo/bar" , com.google.gitiles.GitilesUrls.NAME_ESCAPER.apply ( "foo/bar" ) ) ; }
Source:
public void testEvictGroupsOK ( ) throws java.lang.Exception { setupMocks ( Constants.GROUPS , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.ID_RESPONSE , true , false ) ; com.google.common.truth.Truth.assertThat ( restClient.evict ( com.ericsson.gerrit.plugins.evictcache.RestSessionTest.SOURCE_NAME , Constants.GROUPS , createMock ( AccountGroup.Id.class ) ) ) . isTrue ( ) ; }

Target:
public void testEvictGroupsOK ( ) throws java.lang.Exception { setupMocks ( Constants.GROUPS , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.ID_RESPONSE , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.OK_RESPONSE , com.ericsson.gerrit.plugins.evictcache.RestSessionTest.DO_NOT_THROW_EXCEPTION ) ; com.google.common.truth.Truth.assertThat ( restClient.evict ( com.ericsson.gerrit.plugins.evictcache.RestSessionTest.SOURCE_NAME , Constants.GROUPS , org.mockito.Mockito.mock ( AccountGroup.Id.class ) ) ) . isTrue ( ) ; }
Source:
protected abstract T decode ( com.google.protobuf.CodedInputStream in ) ;

Target:
public T decode ( com.google.protobuf.CodedInputStream in ) { T obj = newInstance ( ) ; mergeFrom ( in , obj ) ; return obj ; }
Source:
public com.google.gwtjsonrpc.client.VoidResult run ( com.google.gerrit.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException { db.accountProjectWatches ( ) . update ( java.util.Collections.singleton ( watch ) ) ; return com.google.gwtjsonrpc.client.VoidResult.INSTANCE ; }

Target:
public com.google.gwtjsonrpc.client.VoidResult run ( com.google.gerrit.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException { db.accountProjectWatches ( ) . update ( java.util.Collections.singleton ( watch ) ) ; accountProjectWatchCache.evict ( watch.getKey ( ) ) ; return com.google.gwtjsonrpc.client.VoidResult.INSTANCE ; }
Source:
protected com.google.gerrit.client.account.ContactPanel create ( ) { return new com.google.gerrit.client.account.ContactPanel ( this ) ; }

Target:
protected com.google.gerrit.client.account.ContactPanel createWidget ( ) { return new com.google.gerrit.client.account.ContactPanel ( this ) ; }
Source:
public void isEnabledForAllRefsByDefault ( ) throws java.lang.Exception { com.googlesource.gerrit.plugins.uploadvalidator.ValidatorConfig config = getConfig ( ( "[plugin \"uploadvalidator\"]\n" + "blockedFileExtension = jar" ) ) ; assertThat ( config.isEnabledForRef ( projectName , "anyRef" ) ) . isTrue ( ) ; }

Target:
public void isEnabledForAllRefsByDefault ( ) throws java.lang.Exception { com.googlesource.gerrit.plugins.uploadvalidator.ValidatorConfig config = getConfig ( ( "[plugin \"uploadvalidator\"]\n" + "blockedFileExtension = jar" ) ) ; com.google.common.truth.Truth.assertThat ( config.isEnabledForRef ( projectName , "anyRef" , "blockedFileExtension" ) ) . isTrue ( ) ; }
Source:
private static boolean preferUnified ( ) { return DiffView.UNIFIED_DIFF.equals ( com.google.gerrit.client.Gerrit.getUserPreferences ( ) . diffView ( ) ) ; }

Target:
private static boolean preferUnified ( ) { return ( DiffView.UNIFIED_DIFF.equals ( com.google.gerrit.client.Gerrit.getUserPreferences ( ) . diffView ( ) ) ) || ( ( com.google.gwtexpui.user.client.UserAgent.isPortrait ( ) ) && ( com.google.gwtexpui.user.client.UserAgent.isMobile ( ) ) ) ; }
Source:
public boolean apply ( com.google.gerrit.reviewdb.client.Project project , java.lang.String hash , java.lang.String name , com.google.gerrit.server.git.GitRepositoryManager gitRepoManager ) { project.setRevision ( hash ) ; if ( ! ( org.eclipse.jgit.lib.ObjectId.isId ( name ) ) ) { project.setUpstream ( name ) ; } return true ; }

Target:
public boolean apply ( com.google.gerrit.reviewdb.client.Project project , java.lang.String hash , java.lang.String name , com.google.gerrit.server.git.GitRepositoryManager gitRepoManager ) { project.setRevision ( hash ) ; if ( ! ( com.amd.gerrit.plugins.manifestsubscription.ObjectId.isId ( name ) ) ) { project.setUpstream ( name ) ; } return true ; }
Source:
public static void doSignOut ( ) { com.google.gwt.user.client.Cookies.removeCookie ( com.google.gerrit.client.Gerrit.AUTH_COOKIE ) ; com.google.gerrit.client.Gerrit.refreshMenus ( ) ; }

Target:
public static void doSignOut ( ) { com.google.gwt.user.client.Cookies.removeCookie ( com.google.gerrit.client.Gerrit.ACCOUNT_COOKIE ) ; com.google.gwt.user.client.Cookies.removeCookie ( com.google.gerrit.client.Gerrit.OPENIDUSER_COOKIE ) ; com.google.gerrit.client.Gerrit.refreshMenus ( ) ; }
Source:
public static < V > com.google.gerrit.server.index.Schema < V > schema ( com.google.gerrit.server.index.FieldDef < V , ? > ... fields ) { return com.google.gerrit.server.index.SchemaUtil.schema ( com.google.common.collect.ImmutableList.copyOf ( fields ) ) ; }

Target:
public static < V > com.google.gerrit.index.Schema < V > schema ( com.google.gerrit.index.FieldDef < V , ? > ... fields ) { return com.google.gerrit.index.SchemaUtil.schema ( com.google.common.collect.ImmutableList.copyOf ( fields ) ) ; }
Source:
final void setRequireChangeId ( com.google.gerrit.reviewdb.client.Project.InheritableBoolean v ) { setRequireChangeIdRaw ( v.name ( ) ) ; }

Target:
final void setRequireChangeId ( com.google.gerrit.extensions.common.InheritableBoolean v ) { setRequireChangeIdRaw ( v.name ( ) ) ; }
Source:
public java.lang.Boolean call ( ) throws com.google.gerrit.server.project.NoSuchProjectException { return controlFor ( project ) . isVisible ( ) ; }

Target:
public java.lang.Boolean call ( ) throws com.google.gerrit.server.project.NoSuchProjectException { com.google.gerrit.server.project.ProjectControl projectControl = controlFor ( project ) ; return ( projectControl.isReadable ( ) ) && ( ( ! ( projectControl.isHidden ( ) ) ) || ( config.replicateHiddenProjects ( ) ) ) ; }
Source:
public boolean dryRun ( com.google.gerrit.server.git.CodeReviewCommit mergeTip , com.google.gerrit.server.git.CodeReviewCommit toMerge ) throws com.google.gerrit.server.git.MergeException { return ( ! ( args.mergeUtil.hasMissingDependencies ( args.mergeSorter , toMerge ) ) ) && ( args.mergeUtil.canCherryPick ( args.mergeSorter , args.repo , mergeTip , args.rw , toMerge ) ) ; }

Target:
public boolean dryRun ( com.google.gerrit.server.git.CodeReviewCommit mergeTip , com.google.gerrit.server.git.CodeReviewCommit toMerge ) throws com.google.gerrit.server.git.MergeException { return ( ! ( args.mergeUtil.hasMissingDependencies ( args.mergeSorter , toMerge ) ) ) && ( args.mergeUtil.canMerge ( args.mergeSorter , args.repo , mergeTip , toMerge ) ) ; }
Source:
public void setUseContributorAgreements ( final com.google.gerrit.reviewdb.client.Project.InheritableBoolean u ) { useContributorAgreements = u ; }

Target:
public void setSubmitType ( final com.google.gerrit.extensions.common.SubmitType type ) { submitType = type ; }
Source:
public final native boolean hasVimSearchHighlight ( ) ;

Target:
public final native int from ( ) ;
Source:
public void hide ( final boolean autoClosed ) { impl.visible ( false ) ; super . hide ( autoClosed ) ; }

Target:
public void hide ( final boolean autoClosed ) { com.google.gwtexpui.user.client.UserAgent.fireDialogVisible ( false ) ; impl.visible ( false ) ; super . hide ( autoClosed ) ; }
Source:
private void initDownloadAction ( com.google.gerrit.client.changes.ChangeInfo info , java.lang.String revision ) { downloadAction = new com.google.gerrit.client.change.DownloadAction ( info.legacy_id ( ) , info.project ( ) , info.revision ( revision ) , style , headerLine , download ) ; }

Target:
private void initProjectLink ( com.google.gerrit.client.changes.ChangeInfo info ) { projectLink.setText ( info.project ( ) ) ; projectLink.setTargetHistoryToken ( com.google.gerrit.common.PageLinks.toChangeQuery ( com.google.gerrit.common.PageLinks.projectQuery ( info.project_name_key ( ) , info.status ( ) ) ) ) ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.httpd.GerritOptions.class ) . toInstance ( new com.google.gerrit.httpd.GerritOptions ( headless ) ) ; if ( test ) { bind ( com.google.gerrit.server.securestore.SecureStore.class ) . toProvider ( com.google.gerrit.server.securestore.SecureStoreProvider.class ) ; } }

Target:
protected void configure ( ) { bind ( com.google.gerrit.httpd.GerritOptions.class ) . toInstance ( new com.google.gerrit.httpd.GerritOptions ( headless , slave ) ) ; if ( test ) { bind ( com.google.gerrit.server.securestore.SecureStore.class ) . toProvider ( com.google.gerrit.server.securestore.SecureStoreProvider.class ) ; } }
Source:
private com.google.gerrit.server.git.MergeTip cherryPickUnbornRoot ( com.google.gerrit.server.git.CodeReviewCommit n ) { com.google.gerrit.server.git.MergeTip mergeTip = new com.google.gerrit.server.git.MergeTip ( n , com.google.common.collect.Lists.newArrayList ( n ) ) ; n.setStatusCode ( CommitMergeStatus.CLEAN_MERGE ) ; return mergeTip ; }

Target:
private com.google.gerrit.server.git.MergeTip cherryPickUnbornRoot ( com.google.gerrit.server.git.CodeReviewCommit n ) { com.google.gerrit.server.git.MergeTip mergeTip = com.google.gerrit.server.git.MergeTip.from ( n , com.google.common.collect.Lists.newArrayList ( n ) ) ; n.setStatusCode ( CommitMergeStatus.CLEAN_MERGE ) ; return mergeTip ; }
Source:
public java.lang.Object apply ( com.google.gerrit.server.change.DraftResource rsrc ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.extensions.restapi.BadRequestException , com.google.gerrit.extensions.restapi.ResourceConflictException , java.lang.Exception { return new com.google.gerrit.server.change.GetDraft.Comment ( rsrc.getComment ( ) ) ; }

Target:
public java.lang.Object apply ( com.google.gerrit.server.change.DraftResource rsrc ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.extensions.restapi.BadRequestException , com.google.gerrit.extensions.restapi.ResourceConflictException , java.lang.Exception { return new com.google.gerrit.server.change.CommentInfo ( rsrc.getComment ( ) , null ) ; }
Source:
public void testStringNUL ( ) { com.google.gwtorm.nosql.IndexKeyBuilder ib = new com.google.gwtorm.nosql.IndexKeyBuilder ( ) ; ib.add ( "" ) ; com.google.gwtorm.nosql.IndexKeyBuilderTest.assertEquals ( new byte [ ] { 0 , ( ( byte ) ( 255 ) ) } , ib ) ; }

Target:
public void testStringNUL ( ) { com.google.gwtorm.nosql.IndexKeyBuilder ib = new com.google.gwtorm.nosql.IndexKeyBuilder ( ) ; ib.add ( "" ) ; com.google.gwtorm.nosql.IndexKeyBuilderTest.assertEqualToBuilderResult ( new byte [ ] { 0 , ( ( byte ) ( 255 ) ) } , ib ) ; }
Source:
public boolean supportsCookies ( ) { return false ; }

Target:
public void setCookie ( javax.servlet.http.HttpServletResponse response , com.gitblit.models.UserModel user ) { }
Source:
public com.google.gerrit.extensions.client.GeneralPreferencesInfo setPreferences ( com.google.gerrit.extensions.client.GeneralPreferencesInfo in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return setPreferences.apply ( account , in ) ; } catch ( java.io.IOException | org.eclipse.jgit.errors.ConfigInvalidException | com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot set preferences" , e ) ; } }

Target:
public com.google.gerrit.extensions.client.GeneralPreferencesInfo setPreferences ( com.google.gerrit.extensions.client.GeneralPreferencesInfo in ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return setPreferences.apply ( account , in ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot set preferences" , e ) ; } }
Source:
public static org.eclipse.jgit.lib.Config noteDbEnabled ( ) { @ com.google.gerrit.server.config.GerritServerConfig org.eclipse.jgit.lib.Config cfg = new org.eclipse.jgit.lib.Config ( ) ; cfg.setBoolean ( "notedb" , null , "write" , true ) ; cfg.setBoolean ( "notedb" , "comments" , "read" , true ) ; return cfg ; }

Target:
public static org.eclipse.jgit.lib.Config noteDbEnabled ( ) { return com.google.gerrit.server.notedb.NotesMigration.allEnabledConfig ( ) ; }
Source:
public boolean canForgeGerritServerIdentity ( ) { return canPerform ( com.google.gerrit.reviewdb.ApprovalCategory.FORGE_IDENTITY , com.google.gerrit.reviewdb.ApprovalCategory.FORGE_SERVER ) ; }

Target:
public boolean canForgeGerritServerIdentity ( ) { return canPerform ( Permission.FORGE_SERVER ) ; }
Source:
public static java.lang.String toUnified ( com.google.gerrit.client.DiffObject diffBase , com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName ) { return com.google.gerrit.client.Dispatcher.toPatch ( "unified" , diffBase , revision , fileName , null , 0 ) ; }

Target:
public static java.lang.String toEditScreen ( @ com.google.gerrit.common.Nullable com.google.gerrit.reviewdb.client.Project.NameKey project , com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName ) { return com.google.gerrit.client.Dispatcher.toEditScreen ( project , revision , fileName , 0 ) ; }
Source:
private void addExternalId ( java.lang.String scheme , java.lang.String id , java.lang.String email ) throws java.lang.Exception { externalIdsUpdateFactory.create ( ) . insert ( db , com.google.gerrit.server.account.ExternalId.createWithEmail ( scheme , id , user.getAccountId ( ) , email ) ) ; reloadUser ( ) ; }

Target:
private void addExternalId ( java.lang.String scheme , java.lang.String id , java.lang.String email ) throws java.lang.Exception { externalIdsUpdateFactory.create ( ) . insert ( db , com.google.gerrit.server.account.externalids.ExternalId.createWithEmail ( scheme , id , user.getAccountId ( ) , email ) ) ; reloadUser ( ) ; }
Source:
public void rebuildEmptySiteStartingWithNoteDbEnabled ( ) throws java.lang.Exception { initSite ( ) ; setNotesMigrationState ( NotesMigrationState.NOTE_DB_UNFUSED ) ; com.google.gerrit.acceptance.pgm.RebuildNoteDbIT.runGerrit ( "RebuildNoteDb" , "-d" , sitePath , "--show-stack-trace" ) ; }

Target:
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 ) ; }
Source:
public final native net.codemirror.lib.CodeMirror.LineHandle getActiveLine ( ) ;

Target:
public final native void setSelection ( net.codemirror.lib.Pos anchor , net.codemirror.lib.Pos head ) ;
Source:
public static < T > com.google.inject.binder.LinkedBindingBuilder < T > bind ( com.google.inject.Binder binder , com.google.inject.TypeLiteral < T > type ) { return binder.bind ( type ) . annotatedWith ( com.google.inject.internal.UniqueAnnotations.create ( ) ) ; }

Target:
public static < T > com.google.inject.binder.LinkedBindingBuilder < T > bind ( com.google.inject.Binder binder , com.google.inject.TypeLiteral < T > type ) { binder.disableCircularProxies ( ) ; return binder.bind ( type ) . annotatedWith ( com.google.inject.internal.UniqueAnnotations.create ( ) ) ; }
Source:
void expandAll ( ) { clearMarkerAndWidget ( ) ; removeFromParent ( ) ; }

Target:
void expandAll ( ) { clearMarkerAndWidget ( ) ; removeFromParent ( ) ; updateSelection ( ) ; }
Source:
public java.net.SocketAddress get ( ) { return session.getRemoteAddress ( ) ; }

Target:
private com.google.gerrit.sshd.SshSession newSession ( ) { com.google.gerrit.sshd.SshSession n = new com.google.gerrit.sshd.SshSession ( session , session.getRemoteAddress ( ) , userFactory.create ( session.getRemoteAddress ( ) , user.getAccountId ( ) ) ) ; n.setAccessPath ( AccessPath.GIT ) ; return n ; }
Source:
private void initDownloadAction ( com.google.gerrit.client.changes.ChangeInfo info , java.lang.String revision ) { downloadAction = new com.google.gerrit.client.change.DownloadAction ( info , revision , style , headerLine , download ) ; }

Target:
private void initRevisionsAction ( com.google.gerrit.client.changes.ChangeInfo info , java.lang.String revision ) { revisionsAction = new com.google.gerrit.client.change.RevisionsAction ( info.legacy_id ( ) , revision , style , headerLine , revisions ) ; }
Source:
protected static com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > create ( com.google.gerrit.server.query.change.ChangeQueryBuilder.Arguments args , com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p ) { if ( ! ( args.allowsDrafts ) ) { return com.google.gerrit.server.query.Predicate.and ( p , com.google.gerrit.server.query.Predicate.not ( new com.google.gerrit.server.query.change.ChangeStatusPredicate ( Change.Status.DRAFT ) ) ) ; } return p ; }

Target:
protected static com.google.gerrit.index.query.Predicate < com.google.gerrit.server.query.change.ChangeData > create ( com.google.gerrit.server.query.change.ChangeQueryBuilder.Arguments args , com.google.gerrit.index.query.Predicate < com.google.gerrit.server.query.change.ChangeData > p ) { if ( ! ( args.allowsDrafts ) ) { return com.google.gerrit.index.query.Predicate.and ( p , com.google.gerrit.index.query.Predicate.not ( new com.google.gerrit.server.query.change.ChangeStatusPredicate ( Change.Status.DRAFT ) ) ) ; } return p ; }
Source:
public void onWindowResized ( final int width , final int height ) { onResize ( width , height ) ; }

Target:
public void onResize ( final com.google.gwt.event.logical.shared.ResizeEvent event ) { final int w = event.getWidth ( ) ; final int h = event.getHeight ( ) ; this . onResize ( w , h ) ; }
Source:
public void onSuccess ( java.lang.String result ) { com.google.gerrit.client.change.EditFileAction edit = new com.google.gerrit.client.change.EditFileAction ( id , result , path , style.replyBox ( ) , null , icon ) ; edit.onEdit ( ) ; }

Target:
public void onSuccess ( java.lang.String content ) { parent.setSideBContent ( content ) ; }
Source:
public boolean isVisible ( ) { if ( ( isVisible ) == null ) { isVisible = ( ( ( getCurrentUser ( ) ) instanceof com.google.gerrit.server.InternalUser ) || ( canPerform ( Permission.READ ) ) ) && ( canRead ( ) ) ; } return isVisible ; }

Target:
public boolean isVisible ( ) { if ( ( isVisible ) == null ) { isVisible = ( ( getCurrentUser ( ) . isInternalUser ( ) ) || ( canPerform ( Permission.READ ) ) ) && ( canRead ( ) ) ; } return isVisible ; }
Source:
private com.google.gerrit.client.patches.CommentEditorPanel createEditor ( final com.google.gerrit.reviewdb.client.PatchLineComment newComment ) { int row = rowOf ( getElement ( ) ) ; int column = columnOf ( getElement ( ) ) ; return createCommentEditor ( ( row + 1 ) , column , newComment ) ; }

Target:
protected void updateCursor ( final com.google.gerrit.reviewdb.client.PatchLineComment newComment ) { }
Source:
public boolean supportsCredentialChanges ( ) { return false ; }

Target:
public boolean supportsCredentialChanges ( com.gitblit.models.UserModel user ) { return false ; }
Source:
public com.google.template.soy.data.SanitizedContent toSoyHtml ( org.pegdown.ast.RootNode node ) { if ( node == null ) { return null ; } toc.setRoot ( node ) ; node.accept ( this ) ; return html.toSoy ( ) ; }

Target:
public com.google.template.soy.data.SanitizedContent toSoyHtml ( org.commonmark.node.Node node ) { if ( node == null ) { return null ; } toc.setRoot ( node ) ; node.accept ( this ) ; return html.toSoy ( ) ; }
Source:
protected void configure ( ) { persist ( com.googlesource.gerrit.plugins.quota.MaxRepositorySizeQuota.REPO_SIZE_CACHE , com.google.gerrit.reviewdb.client.Project.NameKey.class , java.util.concurrent.atomic.AtomicLong.class ) . loader ( com.googlesource.gerrit.plugins.quota.MaxRepositorySizeQuota.Loader.class ) . expireAfterWrite ( 1 , java.util.concurrent.TimeUnit.DAYS ) ; bind ( com.googlesource.gerrit.plugins.quota.RepoSizeCache.class ) . to ( com.googlesource.gerrit.plugins.quota.MaxRepositorySizeQuota.class ) ; }

Target:
protected void configure ( ) { persist ( com.googlesource.gerrit.plugins.quota.MaxRepositorySizeQuota.REPO_SIZE_CACHE , Project.NameKey.class , java.util.concurrent.atomic.AtomicLong.class ) . loader ( com.googlesource.gerrit.plugins.quota.MaxRepositorySizeQuota.Loader.class ) . expireAfterWrite ( 1 , java.util.concurrent.TimeUnit.DAYS ) ; bind ( com.googlesource.gerrit.plugins.quota.RepoSizeCache.class ) . to ( com.googlesource.gerrit.plugins.quota.MaxRepositorySizeQuota.class ) ; }
Source:
private void verifyDelete ( ) throws java.io.IOException , javax.servlet.ServletException { syncIndexRestApiServlet.doDelete ( req , rsp ) ; verifyAll ( ) ; }

Target:
public void changeIsDeletedFromIndex ( ) throws java.lang.Exception { syncIndexRestApiServlet.doDelete ( req , rsp ) ; org.mockito.Mockito.verify ( indexer , org.mockito.Mockito.times ( 1 ) ) . delete ( id ) ; org.mockito.Mockito.verify ( rsp ) . setStatus ( javax.servlet.http.HttpServletResponse.SC_NO_CONTENT ) ; }
Source:
public boolean nameIsId ( ) { return ( org.eclipse.jgit.lib.AbbreviatedObjectId.isId ( name ) ) && ( ( org.eclipse.jgit.lib.AbbreviatedObjectId.fromString ( name ) . prefixCompare ( id ) ) == 0 ) ; }

Target:
private boolean nameEqualsAbbreviated ( org.eclipse.jgit.lib.ObjectId other ) { return org.eclipse.jgit.lib.AbbreviatedObjectId.isId ( name ) ? ( org.eclipse.jgit.lib.AbbreviatedObjectId.fromString ( name ) . prefixCompare ( other ) ) == 0 : false ; }
Source:
public void insert ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Account account ) throws com.google.gwtorm.server.OrmException { db.accounts ( ) . insert ( com.google.common.collect.ImmutableSet.of ( account ) ) ; }

Target:
public void insert ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.reviewdb.client.Account account ) throws com.google.gwtorm.server.OrmException , java.io.IOException { db.accounts ( ) . insert ( com.google.common.collect.ImmutableSet.of ( account ) ) ; createUserBranch ( account ) ; }
Source:
public void abandonReviewableChangeByOtherCcingSelfNotifyOwner ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( com.google.gerrit.server.account.WatchConfig.NotifyType.ABANDONED_CHANGES ) ; com.google.gerrit.acceptance.TestAccount other = accounts.create ( "other" , "other@example.com" , "other" ) ; abandon ( sc.changeId , other , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.CC_ON_OWN_COMMENTS , com.google.gerrit.extensions.api.changes.NotifyHandling.OWNER ) ; assertThat ( sender ) . sent ( "abandon" , sc ) . to ( sc.owner ) . cc ( other ) . notTo ( sc.reviewer , sc.ccer , sc.starrer ) . notTo ( sc.reviewerByEmail , sc.ccerByEmail ) . notTo ( com.google.gerrit.server.account.WatchConfig.NotifyType.ABANDONED_CHANGES ) ; }

Target:
public void abandonReviewableChangeByOtherCcingSelfNotifyOwner ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( com.google.gerrit.server.account.WatchConfig.NotifyType.ABANDONED_CHANGES ) ; com.google.gerrit.acceptance.TestAccount other = accountCreator.create ( "other" , "other@example.com" , "other" ) ; abandon ( sc.changeId , other , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.CC_ON_OWN_COMMENTS , com.google.gerrit.acceptance.server.mail.OWNER ) ; assertThat ( sender ) . sent ( "abandon" , sc ) . to ( sc.owner ) . cc ( other ) . notTo ( sc.reviewer , sc.ccer , sc.starrer ) . notTo ( sc.reviewerByEmail , sc.ccerByEmail ) . notTo ( com.google.gerrit.server.account.WatchConfig.NotifyType.ABANDONED_CHANGES ) ; }
Source:
protected void configureCommands ( ) { command ( com.googlesource.gerrit.plugins.forcedraft.ForceDraft.class ) ; }

Target:
protected void configure ( com.google.inject.binder.LinkedBindingBuilder < org.apache.sshd.server.Command > bind ) { bind.to ( com.googlesource.gerrit.plugins.forcedraft.ForceDraft.class ) ; }
Source:
public boolean isVisible ( ) { return ( ( user.isInternalUser ( ) ) || ( canPerformOnAnyRef ( Permission.READ ) ) ) && ( ! ( isHidden ( ) ) ) ; }

Target:
public boolean isVisible ( ) { return ( isReadable ( ) ) && ( ! ( isHidden ( ) ) ) ; }
Source:
public static com.google.gerrit.server.git.ProjectConfig read ( com.google.gerrit.server.git.MetaDataUpdate update ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { com.google.gerrit.server.git.ProjectConfig r = new com.google.gerrit.server.git.ProjectConfig ( update.getProjectName ( ) ) ; r.load ( update ) ; return r ; }

Target:
public static com.google.gerrit.server.git.ProjectConfig read ( com.google.gerrit.server.git.meta.MetaDataUpdate update ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { com.google.gerrit.server.git.ProjectConfig r = new com.google.gerrit.server.git.ProjectConfig ( update.getProjectName ( ) ) ; r.load ( update ) ; return r ; }