auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
void deleteRight ( com.google.gerrit.reviewdb.Project.NameKey projectName , java.util.Set < com.google.gerrit.reviewdb.RefRight.Key > ids , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ProjectDetail > callback ) ;

Target:
void changeProjectAccess ( com.google.gerrit.reviewdb.client.Project.NameKey projectName , java.lang.String baseRevision , java.lang.String message , java.util.List < com.google.gerrit.common.data.AccessSection > sections , com.google.gerrit.reviewdb.client.Project.NameKey parentProjectName , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ProjectAccess > callback ) ;
Source:
void resizeCodeMirror ( ) { int height = getCodeMirrorHeight ( ) ; cmA.setHeight ( height ) ; cmB.setHeight ( height ) ; diffTable.sidePanel.adjustGutters ( cmB ) ; }

Target:
void resizeCodeMirror ( ) { if ( ! ( prefs.renderEntireFile ( ) ) ) { int height = getCodeMirrorHeight ( ) ; cmA.setHeight ( height ) ; cmB.setHeight ( height ) ; diffTable.sidePanel.adjustGutters ( cmB ) ; } }
Source:
public void onSuccess ( final com.google.gerrit.reviewdb.PatchLineComment result ) { enable ( true ) ; notifyDraftDelta ( 1 ) ; createEditor ( result ) . setOpen ( false ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { enableButtons ( true ) ; super . onFailure ( caught ) ; }
Source:
public void schemaThrowsExceptionWhenLookingUpForChange ( ) throws java.lang.Exception { setupPostMocks ( com.ericsson.gerrit.plugins.syncindex.SyncIndexRestApiServletTest.CHANGE_EXISTS , com.ericsson.gerrit.plugins.syncindex.SyncIndexRestApiServletTest.THROW_ORM_EXCEPTION ) ; verifyPost ( ) ; }

Target:
public void schemaThrowsExceptionWhenLookingUpForChange ( ) throws java.lang.Exception { setupPostMocks ( com.ericsson.gerrit.plugins.syncindex.SyncIndexRestApiServletTest.CHANGE_EXISTS , com.ericsson.gerrit.plugins.syncindex.SyncIndexRestApiServletTest.THROW_ORM_EXCEPTION ) ; syncIndexRestApiServlet.doPost ( req , rsp ) ; org.mockito.Mockito.verify ( rsp ) . sendError ( javax.servlet.http.HttpServletResponse.SC_NOT_FOUND , "Error trying to find a change \n" ) ; }
Source:
public com.google.gerrit.extensions.common.WebLinkInfo getBranchWebLink ( java.lang.String projectName , java.lang.String branchName ) { return new com.google.gerrit.extensions.common.WebLinkInfo ( name , myImageUrl , java.lang.String.format ( placeHolderUrlProjectBranch , projectName , branchName ) , com.google.gerrit.extensions.webui.WebLinkTarget.BLANK ) ; }

Target:
public com.google.gerrit.extensions.common.WebLinkInfo getBranchWebLink ( java.lang.String projectName , java.lang.String branchName ) { return new com.google.gerrit.extensions.common.WebLinkInfo ( name , myImageUrl , java.lang.String.format ( placeHolderUrlProjectBranch , projectName , branchName ) , Target.BLANK ) ; }
Source:
static java.nio.file.Path getDir ( com.google.gerrit.server.config.SitePaths sitePaths , com.google.gerrit.server.index.Schema < com.google.gerrit.server.query.change.ChangeData > schema ) { return sitePaths.index_dir.resolve ( java.lang.String.format ( "%s%04d" , com.google.gerrit.lucene.LuceneVersionManager.CHANGES_PREFIX , schema.getVersion ( ) ) ) ; }

Target:
static java.nio.file.Path getDir ( com.google.gerrit.server.config.SitePaths sitePaths , java.lang.String prefix , com.google.gerrit.server.index.Schema < ? > schema ) { return sitePaths.index_dir.resolve ( java.lang.String.format ( "%s%04d" , prefix , schema.getVersion ( ) ) ) ; }
Source:
private java.lang.String urlCreateEdit ( ) { return ( ( ( "/changes/" + ( change.getChangeId ( ) ) ) + "/revisions/" ) + ( ps.getPatchSetId ( ) ) ) + "/create_edit" ; }

Target:
private java.lang.String newChange2 ( org.eclipse.jgit.api.Git git , org.eclipse.jgit.lib.PersonIdent ident ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit push = pushFactory.create ( db , ident , PushOneCommit.SUBJECT , com.google.gerrit.acceptance.edit.ChangeEditIT.FILE_NAME , new java.lang.String ( com.google.gerrit.acceptance.edit.ChangeEditIT.CONTENT_OLD ) ) ; return push.rm ( git , "refs/for/master" ) . getChangeId ( ) ; }
Source:
private int reductionLimit ( com.googlecode.prolog_cafe.lang.Predicate goal ) { if ( "com.googlecode.prolog_cafe.builtin.PRED_consult_stream_2" . equals ( goal.getClass ( ) . getName ( ) ) ) { return compileLimit ; } return reductionLimit ; }

Target:
private int reductionLimit ( com.googlecode.prolog_cafe.lang.Predicate goal ) { if ( ( goal.getClass ( ) ) == ( com.google.gerrit.rules.PrologEnvironment.Args.CONSULT_STREAM_2 ) ) { return compileLimit ; } return reductionLimit ; }
Source:
private com.google.gerrit.server.git.MetaDataUpdate newMetaDataUpdate ( ) { com.google.gerrit.server.git.MetaDataUpdate u = new com.google.gerrit.server.git.MetaDataUpdate ( com.google.gerrit.server.extensions.events.GitReferenceUpdated.DISABLED , project , repo , null ) ; org.eclipse.jgit.lib.PersonIdent author = new org.eclipse.jgit.lib.PersonIdent ( "J. Author" , "author@example.com" , com.google.gerrit.common.TimeUtil.nowTs ( ) , com.google.gerrit.server.git.VersionedMetaDataTest.TZ ) ; u.getCommitBuilder ( ) . setAuthor ( author ) ; u.getCommitBuilder ( ) . setCommitter ( new org.eclipse.jgit.lib.PersonIdent ( "M. Committer" , "committer@example.com" , author.getWhen ( ) , author.getTimeZone ( ) ) ) ; return u ; }

Target:
private org.eclipse.jgit.lib.CommitBuilder newCommitBuilder ( ) { org.eclipse.jgit.lib.CommitBuilder cb = new org.eclipse.jgit.lib.CommitBuilder ( ) ; org.eclipse.jgit.lib.PersonIdent author = new org.eclipse.jgit.lib.PersonIdent ( "J. Author" , "author@example.com" , com.google.gerrit.common.TimeUtil.nowTs ( ) , com.google.gerrit.server.git.VersionedMetaDataTest.TZ ) ; cb.setAuthor ( author ) ; cb.setCommitter ( new org.eclipse.jgit.lib.PersonIdent ( "M. Committer" , "committer@example.com" , author.getWhen ( ) , author.getTimeZone ( ) ) ) ; return cb ; }
Source:
protected static boolean isNoSuchEntity ( final java.lang.Throwable caught ) { return ( caught instanceof com.google.gwtjsonrpc.client.RemoteJsonException ) && ( caught.getMessage ( ) . equals ( NoSuchEntityException.MESSAGE ) ) ; }

Target:
protected static boolean isNoSuchEntity ( java.lang.Throwable caught ) { return ( com.google.gerrit.client.rpc.RestApi.isNotFound ( caught ) ) || ( ( caught instanceof com.google.gwtjsonrpc.client.RemoteJsonException ) && ( caught.getMessage ( ) . equals ( NoSuchEntityException.MESSAGE ) ) ) ; }
Source:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > apply ( com.google.gerrit.server.query.change.QueryResult in ) { return in.changes ( ) ; }

Target:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > apply ( com.google.gerrit.server.query.QueryResult < com.google.gerrit.server.query.change.ChangeData > in ) { return in.entities ( ) ; }
Source:
public static java.lang.String toAccountDashboard ( final com.google.gerrit.client.data.AccountInfo acct ) { return "dashboard," + ( acct.getId ( ) . get ( ) ) ; }

Target:
public static java.lang.String toAccountDashboard ( final com.google.gerrit.client.data.AccountInfo acct ) { return com.google.gerrit.client.Link.toAccountDashboard ( acct.getId ( ) ) ; }
Source:
public void run ( ) { closedIndex.close ( ) ; }

Target:
public com.google.gerrit.lucene.ChangeSubIndex getClosedChangesIndex ( ) { return closedIndex ; }
Source:
public void configure ( ) { listener ( ) . to ( com.google.gerrit.server.config.MasterNodeStartup.OnStart.class ) ; }

Target:
public void configure ( ) { listener ( ) . to ( com.google.gerrit.server.config.MasterNodeStartup.Lifecycle.class ) ; }
Source:
public com.google.gerrit.sshd.SshKeyCacheEntryCollection missing ( com.google.gerrit.reviewdb.Account.Username username ) { return new com.google.gerrit.sshd.SshKeyCacheEntryCollection ( SshKeyCacheEntryCollection.Type.INVALID_USER ) ; }

Target:
public com.google.gerrit.sshd.SshKeyCacheImpl.EntryList missing ( com.google.gerrit.sshd.SshKeyCacheImpl.Username username ) { java.util.Collection < com.google.gerrit.sshd.SshKeyCacheEntry > none = java.util.Collections.emptyList ( ) ; return new com.google.gerrit.sshd.SshKeyCacheImpl.EntryList ( com.google.gerrit.sshd.SshKeyCacheImpl.EntryList.Type.INVALID_USER , none ) ; }
Source:
protected void configure ( ) { bind ( java.nio.file.Path.class ) . annotatedWith ( com.google.gerrit.server.config.SitePath.class ) . toInstance ( sitePath ) ; bind ( com.google.gerrit.server.config.SitePaths.class ) ; }

Target:
protected void configure ( ) { bind ( java.nio.file.Path.class ) . annotatedWith ( com.google.gerrit.server.config.SitePath.class ) . toInstance ( getSitePath ( ) ) ; bind ( com.google.gerrit.server.config.SitePaths.class ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo result ) { com.google.gerrit.reviewdb.client.Project.NameKey project = result.project_name_key ( ) ; com.google.gerrit.client.projects.ConfigInfoCache.get ( project , configCallback ) ; }

Target:
protected void preDisplay ( com.google.gerrit.client.projects.ConfigInfoCache.Entry result ) { commentLinkProcessor = result.getCommentLinkProcessor ( ) ; setTheme ( result.getTheme ( ) ) ; com.google.gerrit.client.diff.DiffInfo diffInfo = diff ; diff = null ; display ( diffInfo ) ; }
Source:
public java.lang.String toString ( ) { return ( type ) + "" ; }

Target:
public java.lang.String toString ( ) { java.lang.String ret = ( type ) + "" ; if ( ( message ) != null ) { ret += " " + ( message ) ; } return ret ; }
Source:
public java.util.Set < java.lang.String > getHashtags ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getHashtags.apply ( change ) . value ( ) ; } catch ( java.io.IOException | com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot get hashtags" , e ) ; } }

Target:
public java.util.Set < java.lang.String > getHashtags ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getHashtags.apply ( change ) . value ( ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot get hashtags" , e ) ; } }
Source:
public static void invalidate ( final com.google.gerrit.client.reviewdb.Account acct ) { if ( acct != null ) { synchronized ( com.google.gerrit.server.ssh.SshUtil.keys ) { com.google.gerrit.server.ssh.SshUtil.keys.remove ( acct.getPreferredEmail ( ) ) ; } } }

Target:
public static void invalidate ( final java.lang.String username ) { synchronized ( com.google.gerrit.server.ssh.SshUtil.keys ) { com.google.gerrit.server.ssh.SshUtil.keys.remove ( username ) ; } }
Source:
public static void drafts ( com.google.gerrit.reviewdb.client.PatchSet.Id id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.rpc.NativeMap < com.google.gwt.core.client.JsArray < com.google.gerrit.client.changes.CommentInfo > > > cb ) { com.google.gerrit.client.changes.CommentApi.revision ( id , "drafts" ) . get ( cb ) ; }

Target:
public static void deleteDraft ( @ com.google.gerrit.common.Nullable java.lang.String project , com.google.gerrit.reviewdb.client.PatchSet.Id id , java.lang.String draftId , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gerrit.client.changes.CommentApi.revision ( project , id , "drafts" ) . id ( draftId ) . delete ( cb ) ; }
Source:
public void setFullName ( final java.lang.String name ) { fullName = name ; }

Target:
public void setFullName ( final java.lang.String name ) { fullName = ( name != null ) ? name.trim ( ) : null ; }
Source:
public com.googlecode.prolog_cafe.lang.NumberTerm add ( com.googlecode.prolog_cafe.lang.NumberTerm t ) { if ( t.isDouble ( ) ) return t.add ( this ) ; return new com.googlecode.prolog_cafe.lang.IntegerTerm ( ( ( this . val ) + ( t.intValue ( ) ) ) ) ; }

Target:
public com.googlecode.prolog_cafe.lang.NumberTerm add ( com.googlecode.prolog_cafe.lang.NumberTerm t ) { if ( t instanceof com.googlecode.prolog_cafe.lang.DoubleTerm ) return t.add ( this ) ; return new com.googlecode.prolog_cafe.lang.IntegerTerm ( ( ( this . val ) + ( t.intValue ( ) ) ) ) ; }
Source:
void registerReplyToBox ( com.google.gerrit.client.diff.PublishedBox box ) { replyToBox = box ; }

Target:
void setReplyToBox ( com.google.gerrit.client.diff.PublishedBox box ) { replyToBox = box ; }
Source:
public java.lang.Object apply ( com.google.gerrit.server.change.ReviewerResource resource ) throws com.google.gerrit.extensions.restapi.BadRequestException , java.lang.Exception { throw new com.google.gerrit.extensions.restapi.BadRequestException ( "Not yet implemented" ) ; }

Target:
public java.lang.Object apply ( com.google.gerrit.server.change.ReviewerResource reviewerResource ) throws com.google.gwtorm.server.OrmException { return json.format ( reviewerResource ) ; }
Source:
public static < T > com.google.inject.binder.LinkedBindingBuilder < T > bind ( com.google.inject.Binder binder , java.lang.Class < T > type ) { return com.google.gerrit.extensions.registration.DynamicSet.bind ( binder , com.google.inject.TypeLiteral.get ( type ) ) ; }

Target:
public static < T > com.google.inject.binder.LinkedBindingBuilder < T > bind ( com.google.inject.Binder binder , java.lang.Class < T > type ) { binder.disableCircularProxies ( ) ; return com.google.gerrit.extensions.registration.DynamicSet.bind ( binder , com.google.inject.TypeLiteral.get ( type ) ) ; }
Source:
public void parseMissingSha ( ) throws java.lang.Exception { org.junit.Assert.assertNull ( parser.parse ( "deadbeef" ) ) ; org.junit.Assert.assertNull ( parser.parse ( "deadbeefdeadbeefdeadbeefdeadbeefdeadbeef" ) ) ; }

Target:
public void parseMissingSha ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( parser.parse ( "deadbeef" ) ) . isNull ( ) ; com.google.common.truth.Truth.assertThat ( parser.parse ( "deadbeefdeadbeefdeadbeefdeadbeefdeadbeef" ) ) . isNull ( ) ; }
Source:
void visibleProjects ( com.google.gwt.user.client.rpc.AsyncCallback < java.util.List < com.google.gerrit.reviewdb.Project > > callback ) ;

Target:
void visibleProjectDetails ( com.google.gwtjsonrpc.common.AsyncCallback < java.util.List < com.google.gerrit.common.data.ProjectDetail > > callback ) ;
Source:
private java.lang.String getComment ( com.google.gerrit.server.events.ChangeAttribute change , com.google.gerrit.server.events.ChangeEvent hook , com.google.gerrit.server.events.AccountAttribute who , java.lang.String what ) { return ( ( ( ( ( getCommentPrefix ( change ) ) + "change " ) + what ) + " [by " ) + ( formatAccountAttribute ( who ) ) ) + "]" ; }

Target:
private java.lang.String getComment ( com.google.gerrit.server.data.ChangeAttribute change , com.google.gerrit.server.events.ChangeEvent hook , com.google.gerrit.server.data.AccountAttribute who , java.lang.String what ) { return ( ( ( ( ( getCommentPrefix ( change ) ) + "change " ) + what ) + " [by " ) + ( formatAccountAttribute ( who ) ) ) + "]" ; }
Source:
private static int checkLimit ( int limit , java.lang.String name ) { if ( limit == 0 ) { return java.lang.Integer.MAX_VALUE ; } com.google.common.base.Preconditions.checkArgument ( ( limit > 0 ) , "%s must be positive: %s" , name , limit ) ; return limit ; }

Target:
private static int checkLimit ( int limit , java.lang.String name , int defaultValue ) { if ( limit == 0 ) { return defaultValue ; } com.google.common.base.Preconditions.checkArgument ( ( limit > 0 ) , "%s must be positive: %s" , name , limit ) ; return limit ; }
Source:
public java.util.Set < com.google.gerrit.reviewdb.AccountGroup.Id > getEffectiveGroups ( ) { return authConfig.getAnonymousGroups ( ) ; }

Target:
public java.util.Set < com.google.gerrit.reviewdb.AccountGroup.UUID > getEffectiveGroups ( ) { return java.util.Collections.singleton ( AccountGroup.ANONYMOUS_USERS ) ; }
Source:
public org.apache.sshd.server.CommandFactory.Command get ( ) { return com.google.gerrit.server.ssh.SshScopes.getContext ( ) . command ; }

Target:
private void configureRequestScope ( ) { }
Source:
protected void configureServlets ( ) { serve ( "/login/*" ) . with ( com.google.gerrit.httpd.auth.ldap.LdapLoginServlet.class ) ; }

Target:
protected void configureServlets ( ) { serve ( "/login" , "/login/*" ) . with ( com.google.gerrit.httpd.auth.ldap.LdapLoginServlet.class ) ; }
Source:
protected java.lang.String getName ( ) { return hook.getName ( ) ; }

Target:
protected java.lang.String getName ( ) { return hook.getFileName ( ) . toString ( ) ; }
Source:
public static com.google.gerrit.client.rpc.RestApi comments ( int id ) { return com.google.gerrit.client.changes.ChangeApi.call ( id , "comments" ) ; }

Target:
public static com.google.gerrit.client.rpc.RestApi drafts ( @ com.google.gerrit.common.Nullable java.lang.String project , int id ) { return com.google.gerrit.client.changes.ChangeApi.call ( project , id , "drafts" ) ; }
Source:
public int weigh ( com.google.gerrit.server.change.MergeabilityCache.EntryKey k , java.lang.Boolean v ) { return ( ( 16 + ( 2 * ( 16 + 20 ) ) ) + ( 4 * 8 ) ) + 1 ; }

Target:
public int weigh ( com.google.gerrit.server.change.MergeabilityCache.EntryKey k , java.lang.Boolean v ) { return ( ( 16 + ( 2 * ( 16 + 20 ) ) ) + ( 3 * 8 ) ) + 8 ; }
Source:
public java.nio.file.Path targetPath ( com.google.gerrit.httpd.raw.Label l ) { return sourceRoot.resolve ( "bazel-bin" ) . resolve ( l.pkg ) . resolve ( l.name ) ; }

Target:
public java.nio.file.Path targetPath ( com.google.gerrit.httpd.raw.BazelBuild.Label l ) { return sourceRoot.resolve ( "bazel-bin" ) . resolve ( l.pkg ) . resolve ( l.name ) ; }
Source:
public void assertCanDelete ( com.google.gerrit.server.project.ProjectResource rsrc ) throws com.googlesource.gerrit.plugins.deleteproject.CannotDeleteProjectException { assertIsNotAllProjects ( rsrc ) ; }

Target:
public void assertCanDelete ( com.google.gerrit.server.project.ProjectResource rsrc ) throws com.googlesource.gerrit.plugins.deleteproject.CannotDeleteProjectException { assertIsNotAllProjects ( rsrc ) ; assertHasNoChildProjects ( rsrc ) ; }
Source:
protected void configureServlets ( ) { serveRegex ( "/index/\\d+$" ) . with ( com.ericsson.gerrit.plugins.multimaster.SyncIndexRestApiServlet.class ) ; }

Target:
protected void configureServlets ( ) { install ( new com.ericsson.gerrit.plugins.multimaster.forwarder.rest.EventForwarderServletModule ( ) ) ; }
Source:
private boolean canPushWithForce ( ) { if ( ( RefNames.REFS_CONFIG.equals ( refName ) ) && ( ! ( projectControl.isOwner ( ) ) ) ) { return false ; } return canForcePerform ( Permission.PUSH ) ; }

Target:
private boolean canPushWithForce ( ) { if ( ( RefNames.REFS_CONFIG.equals ( refName ) ) && ( ! ( projectControl.isOwner ( ) ) ) ) { return false ; } return canPerform ( Permission.PUSH , false , true ) ; }
Source:
public static java.util.List < com.google.gerrit.pgm.init.InitPlugins.PluginData > listPlugins ( com.google.gerrit.server.config.SitePaths site ) throws java.io.IOException { return com.google.gerrit.pgm.init.InitPlugins.listPlugins ( site , false ) ; }

Target:
public static java.util.List < com.google.gerrit.pgm.init.InitPlugins.PluginData > listPlugins ( com.google.gerrit.server.config.SitePaths site , com.google.gerrit.pgm.init.PluginsDistribution pluginsDistribution ) throws java.io.IOException { return com.google.gerrit.pgm.init.InitPlugins.listPlugins ( site , false , pluginsDistribution ) ; }
Source:
protected void format ( ) { appendText ( getNameFor ( fromId ) ) ; appendText ( ( ( " has abandoned change " + ( change.getKey ( ) . abbreviate ( ) ) ) + ":\n" ) ) ; appendText ( "\n" ) ; formatCoverLetter ( ) ; }

Target:
protected void formatChange ( ) { appendText ( getNameFor ( fromId ) ) ; appendText ( ( ( " has abandoned change " + ( change.getKey ( ) . abbreviate ( ) ) ) + ":\n" ) ) ; appendText ( "\n" ) ; formatCoverLetter ( ) ; }
Source:
private com.googlesource.gerrit.plugins.replication.ReplicationFileBasedConfig loadConfig ( ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { }

Target:
private com.googlesource.gerrit.plugins.replication.ReplicationFileBasedConfig loadConfig ( ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { return new com.googlesource.gerrit.plugins.replication.ReplicationFileBasedConfig ( injector , site , remoteSiteUserFactory , pluginUser , gitRepositoryManager , groupBackend , stateLog , groupIncludeCache ) ; }
Source:
public boolean isOwner ( ) { return ( isDeclaredOwner ( ) ) || ( user.getCapabilities ( ) . canAdministrateServer ( ) ) ; }

Target:
public boolean isOwner ( ) { return ( ( isDeclaredOwner ( ) ) && ( ! ( controlForRef ( "refs/*" ) . isBlocked ( Permission.OWNER ) ) ) ) || ( user.getCapabilities ( ) . canAdministrateServer ( ) ) ; }
Source:
public Response.Action getDownloadAction ( org.eclipse.jgit.lfs.lib.AnyLongObjectId id ) { org.eclipse.jgit.lfs.server.Response.Action action = super . getDownloadAction ( id ) ; action.header = java.util.Collections.singletonMap ( org.eclipse.jgit.util.HttpSupport.HDR_AUTHORIZATION , authorizer.generateToken ( com.googlesource.gerrit.plugins.lfs.fs.LocalLargeFileRepository.DOWNLOAD , id , expirationSeconds ) ) ; return action ; }

Target:
public Response.Action getDownloadAction ( org.eclipse.jgit.lfs.lib.AnyLongObjectId id ) { org.eclipse.jgit.lfs.server.Response.Action action = super . getDownloadAction ( id ) ; com.googlesource.gerrit.plugins.lfs.fs.LfsFsRequestAuthorizer.AuthInfo authInfo = authorizer.generateAuthInfo ( com.googlesource.gerrit.plugins.lfs.fs.LocalLargeFileRepository.DOWNLOAD , id , expirationSeconds ) ; return new com.googlesource.gerrit.plugins.lfs.fs.LocalLargeFileRepository.ExpiringAction ( action.href , authInfo ) ; }
Source:
public void onSuccess ( T value ) { this . result = value ; remaining.remove ( this ) ; this . applyAllSuccess ( ) ; }

Target:
private < T > void failure ( com.google.gerrit.client.rpc.CallbackGroup.CallbackGlue w , java.lang.Throwable caught ) { if ( ! ( failed ) ) { failed = true ; failedThrowable = caught ; } remaining.remove ( w ) ; apply ( ) ; }
Source:
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 ( ) ) ; }

Target:
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.server.index.ChangeField.LEGACY_ID2.getName ( ) , cd.getId ( ) . get ( ) ) ; }
Source:
public void onSignOut ( ) ;

Target:
public void onSignOut ( com.google.gerrit.client.SignOutEvent event ) ;
Source:
public void listenTo ( final com.google.gwt.user.client.ui.CheckBox cb ) { cb.addValueChangeHandler ( this ) ; }

Target:
public void listenTo ( final com.google.gwt.user.client.ui.CheckBox cb ) { cb.addValueChangeHandler ( ( ( com.google.gwt.event.logical.shared.ValueChangeHandler ) ( this ) ) ) ; }
Source:
public Project.NameKey get ( ) { return name ; }

Target:
public com.google.gerrit.server.config.AllProjectsName get ( ) { return name ; }
Source:
void visibleProjects ( com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.ProjectList > callback ) ;

Target:
void visibleProjectDetails ( com.google.gwtjsonrpc.common.AsyncCallback < java.util.List < com.google.gerrit.common.data.ProjectDetail > > callback ) ;
Source:
public boolean isSubmit ( ) { return LabelId.SUBMIT.get ( ) . equals ( getLabel ( ) ) ; }

Target:
public boolean isLegacySubmit ( ) { return LabelId.LEGACY_SUBMIT_NAME.equals ( getLabel ( ) ) ; }
Source:
public < T extends com.google.gwt.core.client.JavaScriptObject > void put ( com.google.gwtjsonrpc.common.AsyncCallback < T > cb ) { send ( com.google.gwt.http.client.RequestBuilder.PUT , cb ) ; }

Target:
public < T extends com.google.gwt.core.client.JavaScriptObject > void delete ( com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { send ( com.google.gwt.http.client.RequestBuilder.DELETE , cb ) ; }
Source:
private static org.apache.lucene.index.Term intTerm ( java.lang.String name , int value ) { org.apache.lucene.util.BytesRef bytes = new org.apache.lucene.util.BytesRef ( org.apache.lucene.util.NumericUtils.BUF_SIZE_INT ) ; org.apache.lucene.util.NumericUtils.intToPrefixCodedBytes ( value , 0 , bytes ) ; return new org.apache.lucene.index.Term ( name , bytes ) ; }

Target:
private static org.apache.lucene.index.Term intTerm ( java.lang.String name , int value ) { org.apache.lucene.util.BytesRefBuilder builder = new org.apache.lucene.util.BytesRefBuilder ( ) ; org.apache.lucene.util.NumericUtils.intToPrefixCodedBytes ( value , 0 , builder ) ; return new org.apache.lucene.index.Term ( name , builder.get ( ) ) ; }
Source:
void expandAll ( ) { clearMarkerAndWidget ( ) ; removeFromParent ( ) ; updateSelection ( ) ; }

Target:
private void expandSideAll ( ) { clearMarkerAndWidget ( ) ; removeFromParent ( ) ; updateSelection ( ) ; }
Source:
public void testAcrossNewline ( ) { com.google.gerrit.client.diff.EditIterator iter = new com.google.gerrit.client.diff.EditIterator ( lines , 0 ) ; assertLineChsEqual ( net.codemirror.lib.LineCharacter.create ( 1 , 1 ) , iter.advance ( 5 ) ) ; }

Target:
public void testAcrossNewline ( ) { com.google.gerrit.client.diff.EditIterator iter = new com.google.gerrit.client.diff.EditIterator ( lines , 0 ) ; assertLineChsEqual ( net.codemirror.lib.Pos.create ( 1 , 1 ) , iter.advance ( 5 ) ) ; }
Source:
private void addExtensionPoint ( com.google.gerrit.client.GerritUiExtensionPoint extensionPoint , com.google.gwt.user.client.ui.Panel p ) { com.google.gerrit.client.api.ExtensionPanel extensionPanel = new com.google.gerrit.client.api.ExtensionPanel ( extensionPoint ) ; extensionPanel.putInt ( GerritUiExtensionPoint.Key.CHANGE_ID , changeId.get ( ) ) ; p.add ( extensionPanel ) ; }

Target:
private void addExtensionPoint ( com.google.gerrit.client.GerritUiExtensionPoint extensionPoint , com.google.gwt.user.client.ui.Panel p , com.google.gerrit.client.info.ChangeInfo change ) { com.google.gerrit.client.api.ExtensionPanel extensionPanel = new com.google.gerrit.client.api.ExtensionPanel ( extensionPoint ) ; extensionPanel.putObject ( GerritUiExtensionPoint.Key.CHANGE_INFO , change ) ; p.add ( extensionPanel ) ; }
Source:
void resizeCodeMirror ( ) { int height = getCodeMirrorHeight ( ) ; for ( net.codemirror.lib.CodeMirror cm : getCms ( ) ) { cm.adjustHeight ( height ) ; } }

Target:
void resizeCodeMirror ( ) { int height = ( header.getOffsetHeight ( ) ) + ( getDiffTable ( ) . getHeaderHeight ( ) ) ; for ( net.codemirror.lib.CodeMirror cm : getCms ( ) ) { cm.adjustHeight ( height ) ; } }
Source:
public void onFailure ( final java.lang.Throwable caught ) { if ( com.google.gerrit.client.rpc.RestApi.isNotFound ( caught ) ) { com.google.gerrit.client.Gerrit.getUserAccount ( ) . username ( null ) ; display ( ) ; } else { super . onFailure ( caught ) ; } }

Target:
public void onSuccess ( com.google.gerrit.client.rpc.NativeString newPassword ) { display ( newPassword.asString ( ) ) ; }
Source:
public static org.eclipse.jgit.lib.Config defaultConfig ( ) { org.eclipse.jgit.lib.Config config = new org.eclipse.jgit.lib.Config ( ) ; config.setBoolean ( "user" , null , "readGroupsFromNoteDb" , false ) ; return config ; }

Target:
public static org.eclipse.jgit.lib.Config defaultConfig ( ) { org.eclipse.jgit.lib.Config config = new org.eclipse.jgit.lib.Config ( ) ; config.setBoolean ( com.google.gerrit.server.notedb.NotesMigration.SECTION_NOTE_DB , com.google.gerrit.server.notedb.NoteDbTable.GROUPS.key ( ) , com.google.gerrit.server.notedb.NotesMigration.READ , false ) ; return config ; }
Source:
protected void init ( ) throws com.google.gerrit.server.mail.EmailException { super . init ( ) ; ccAllApprovals ( ) ; bccStarredBy ( ) ; bccWatchesNotifyAllComments ( ) ; bccWatchesNotifySubmittedChanges ( ) ; }

Target:
protected void init ( ) throws com.google.gerrit.server.mail.EmailException { super . init ( ) ; ccAllApprovals ( ) ; bccStarredBy ( ) ; bccWatches ( NotifyType.ALL_COMMENTS ) ; bccWatches ( NotifyType.SUBMITTED_CHANGES ) ; }
Source:
private void copyNewLib ( com.google.gerrit.server.config.SitePaths sitePaths , java.io.File newSecureStoreFile ) throws java.io.IOException { com.google.gerrit.pgm.SwitchSecureStore.log.info ( "Copy new SecureStore ({}) into lib/ directory" , newSecureStoreFile.getName ( ) ) ; com.google.common.io.Files.copy ( newSecureStoreFile , new java.io.File ( sitePaths.lib_dir , newSecureStoreFile.getName ( ) ) ) ; }

Target:
private void copyNewLib ( com.google.gerrit.server.config.SitePaths sitePaths , java.nio.file.Path newSecureStorePath ) throws java.io.IOException { com.google.gerrit.pgm.SwitchSecureStore.log.info ( "Copy new SecureStore ({}) into lib/ directory" , newSecureStorePath.getFileName ( ) ) ; java.nio.file.Files.copy ( newSecureStorePath , sitePaths.lib_dir.resolve ( newSecureStorePath.getFileName ( ) ) ) ; }
Source:
public java.lang.Integer apply ( com.google.gerrit.server.git.ReceiveCommits.ReplaceRequest in ) { return in.change.getId ( ) . get ( ) ; }

Target:
public java.lang.Integer apply ( com.google.gerrit.server.git.ReceiveCommits.ReplaceRequest in ) { return in.notes.getChangeId ( ) . get ( ) ; }
Source:
private static java.lang.String today ( ) { return new java.text.SimpleDateFormat ( "YYYYMMdd" ) . format ( new java.util.Date ( ) ) ; }

Target:
private static java.lang.String now ( ) { return new java.text.SimpleDateFormat ( "YYYYMMdd:HHmm" ) . format ( new java.util.Date ( ) ) ; }
Source:
public void visit ( org.pegdown.ast.AutoLinkNode node ) { java.lang.String url = node.getText ( ) ; html.open ( "a" ) . attribute ( "href" , url ) . appendAndEscape ( url ) . close ( "a" ) ; }

Target:
public void visit ( org.pegdown.ast.AutoLinkNode node ) { java.lang.String url = node.getText ( ) ; html.open ( "a" ) . attribute ( "href" , href ( url ) ) . appendAndEscape ( url ) . close ( "a" ) ; }
Source:
public void onOpen ( com.google.gwt.event.logical.shared.OpenEvent < com.google.gwt.user.client.ui.DisclosurePanel > event ) { activate ( patchSetId ) ; }

Target:
public void onOpen ( com.google.gwt.event.logical.shared.OpenEvent < com.google.gwt.user.client.ui.DisclosurePanel > event ) { com.google.gerrit.client.changes.PatchSetComplexDisclosurePanel patchSetPanel = patchSetPanels.get ( patchSetId ) ; patchSetPanel.refresh ( ) ; activate ( patchSetId ) ; }
Source:
public void put ( K key , V value ) { self.put ( key , value ) ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > putAsync ( K key , V value ) { return self.putAsync ( key , value ) ; }
Source:
public java.lang.Void call ( ) throws java.lang.Exception { rebuild ( change , null ) ; return null ; }

Target:
public java.lang.Void call ( ) throws java.lang.Exception { rebuild ( change , bru , bruForDrafts , changeRepo , allUsersRepo ) ; return null ; }
Source:
public void onFailure ( final java.lang.Throwable caught ) { k.getWatch ( ) . setNotifyAllComments ( oldVal ) ; notifyAllComments.setValue ( oldVal ) ; super . onFailure ( caught ) ; }

Target:
public void onFailure ( final java.lang.Throwable caught ) { info.getWatch ( ) . setNotify ( type , oldVal ) ; cbox.setValue ( oldVal ) ; super . onFailure ( caught ) ; }
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 com.google.gerrit.reviewdb.Change update ( com.google.gerrit.reviewdb.Change change ) { if ( change.getStatus ( ) . isOpen ( ) ) { change.nextPatchSetId ( ) ; change.setLastSha1MergeTested ( null ) ; return change ; } else { return null ; } }
Source:
public void handle ( net.codemirror.lib.CodeMirror cm ) { save.setEnabled ( ( ! ( cm.isClean ( generation ) ) ) ) ; }

Target:
public void handle ( net.codemirror.lib.CodeMirror cm ) { setClean ( cm.isClean ( generation ) ) ; }
Source:
public void cache ( final com.google.gerrit.reviewdb.Change c ) { changeOpen = c.open ; changeSortKey = c.sortKey ; }

Target:
public void cache ( final com.google.gerrit.reviewdb.Change c ) { changeOpen = c.open ; changeSortKey = c.sortKey ; changeSortKeyDesc = c.sortKeyDesc ; }
Source:
public com.google.gerrit.server.index.FieldDef < T , ? > getField ( ) { return field ; }

Target:
public com.google.gerrit.index.FieldDef < T , ? > getField ( ) { return field ; }
Source:
void inc ( ) { mv.visitVarInsn ( com.google.gwtorm.protobuf.ILOAD , sizeVar ) ; mv.visitInsn ( com.google.gwtorm.protobuf.IADD ) ; mv.visitVarInsn ( com.google.gwtorm.protobuf.ISTORE , sizeVar ) ; }

Target:
void doinc ( ) { mv.visitInsn ( com.google.gwtorm.protobuf.IADD ) ; mv.visitVarInsn ( com.google.gwtorm.protobuf.ISTORE , sizeVar ) ; }
Source:
public void replace ( byte [ ] key , byte [ ] data ) throws com.google.gwtorm.client.OrmException { upsert ( key , data ) ; }

Target:
public byte [ ] update ( byte [ ] oldData ) { if ( oldData != null ) { throw new com.google.gwtorm.nosql.generic.GenericSchema.KeyExists ( ) ; } return newData ; }
Source:
public void preDisplay ( com.google.gerrit.client.info.AccountPreferencesInfo prefs ) { display ( prefs ) ; }

Target:
public void preDisplay ( com.google.gerrit.client.info.GeneralPreferences prefs ) { display ( prefs ) ; }
Source:
protected void openRow ( java.lang.String projectName ) { nameBox.setText ( projectName ) ; doAddNew ( ) ; }

Target:
protected void onMovePointerTo ( java.lang.String projectName ) { if ( ( ! ( projectsPopup.isPoppingUp ( ) ) ) || ( "" . equals ( nameBox.getText ( ) ) ) ) { nameBox.setText ( projectName ) ; } }
Source:
public void remove ( ) { m.remove ( name.value ( ) , cmd ) ; }

Target:
public void remove ( ) { m.remove ( name.value ( ) , commandProvider ) ; }
Source:
private static void base64 ( javax.servlet.http.HttpServletResponse res , com.google.gerrit.extensions.restapi.BinaryResult bin ) { res.setContentType ( "text/plain; charset=ISO-8859-1" ) ; res.setHeader ( "X-FYI-Content-Encoding" , "base64" ) ; res.setHeader ( "X-FYI-Content-Type" , bin.getContentType ( ) ) ; }

Target:
public void writeTo ( java.io.OutputStream out ) throws java.io.IOException { java.util.zip.GZIPOutputStream gz = new java.util.zip.GZIPOutputStream ( out ) ; src.writeTo ( gz ) ; gz.finish ( ) ; gz.flush ( ) ; }
Source:
public boolean matches ( com.google.gerrit.server.account.ExternalId extId ) { return matches ( extId.key ( ) . get ( ) ) ; }

Target:
public boolean matches ( com.google.gerrit.server.account.externalids.ExternalId extId ) { return matches ( extId.key ( ) . get ( ) ) ; }
Source:
static java.nio.file.Path getDir ( com.google.gerrit.server.config.SitePaths sitePaths , java.lang.String prefix , com.google.gerrit.server.index.Schema < ? > schema ) { return sitePaths.index_dir.resolve ( java.lang.String.format ( "%s%04d" , prefix , schema.getVersion ( ) ) ) ; }

Target:
static java.nio.file.Path getDir ( com.google.gerrit.server.config.SitePaths sitePaths , java.lang.String name , com.google.gerrit.server.index.Schema < ? > schema ) { return sitePaths.index_dir.resolve ( java.lang.String.format ( "%s_%04d" , name , schema.getVersion ( ) ) ) ; }
Source:
public boolean apply ( com.google.gerrit.extensions.api.projects.CommentLinkInfo input ) { return input.name.equals ( commentLinkName ) ; }

Target:
public boolean apply ( com.google.gerrit.extensions.api.projects.CommentLinkInfo input ) { return input.name.equals ( commentlinkName ) ; }
Source:
public void onBlur ( com.google.gwt.event.dom.client.BlurEvent event ) { if ( "" . equals ( filterTxt.getText ( ) ) ) { filterTxt.setText ( Util.C.defaultFilter ( ) ) ; filterTxt.addStyleName ( Gerrit.RESOURCES.css ( ) . inputFieldTypeHint ( ) ) ; } }

Target:
public void onSuccess ( final com.google.gerrit.common.data.AccountProjectWatchInfo result ) { addNew.setEnabled ( true ) ; nameBox.setEnabled ( true ) ; filterTxt.setEnabled ( true ) ; nameTxt.setText ( "" ) ; watchesTab.insertWatch ( result ) ; }
Source:
public static com.google.gerrit.server.config.ScheduleConfig.Builder builder ( org.eclipse.jgit.lib.Config config , java.lang.String section ) { return com.google.gerrit.server.config.ScheduleConfig.builder ( config , section , null ) ; }

Target:
static com.google.gerrit.server.config.ScheduleConfig.Schedule create ( long interval , long initialDelay ) { return new com.google.gerrit.server.config.AutoValue_ScheduleConfig_Schedule ( interval , initialDelay ) ; }
Source:
public void start ( ) { pushAll.create ( null ) . start ( 30 , java.util.concurrent.TimeUnit.SECONDS ) ; submit.create ( ) . start ( 15 , java.util.concurrent.TimeUnit.SECONDS ) ; }

Target:
public void start ( ) { if ( replicateOnStartup ) { pushAll.create ( null ) . start ( 30 , java.util.concurrent.TimeUnit.SECONDS ) ; } submit.create ( ) . start ( 15 , java.util.concurrent.TimeUnit.SECONDS ) ; }
Source:
public void close ( ) throws java.sql.SQLException { ds.close ( ) ; }

Target:
void close ( ) { try { ds.close ( ) ; } catch ( java.sql.SQLException e ) { com.ericsson.gerrit.plugins.eventslog.sql.SQLClient.log.warn ( "Cannot close datasource" , e ) ; } }
Source:
private void assertNotFound ( org.eclipse.jgit.lib.ObjectId id ) throws java.lang.Exception { userSession.get ( ( ( ( "/projects/" + ( project.get ( ) ) ) + "/commits/" ) + ( id.name ( ) ) ) ) . assertNotFound ( ) ; }

Target:
private void assertNotFound ( org.eclipse.jgit.lib.ObjectId id ) throws java.lang.Exception { userRestSession.get ( ( ( ( "/projects/" + ( project.get ( ) ) ) + "/commits/" ) + ( id.name ( ) ) ) ) . assertNotFound ( ) ; }
Source:
public org.parboiled.Rule [ ] blockPluginRules ( ) { return new org.parboiled.Rule [ ] { cols ( ) , hr ( ) , note ( ) , toc ( ) } ; }

Target:
public org.parboiled.Rule [ ] blockPluginRules ( ) { return new org.parboiled.Rule [ ] { cols ( ) , hr ( ) , iframe ( ) , note ( ) , toc ( ) } ; }
Source:
public < T extends com.google.gwt.core.client.JavaScriptObject > void put ( java.lang.String content , com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { sendRaw ( com.google.gwt.http.client.RequestBuilder.PUT , content , cb ) ; }

Target:
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 ) { post ( content , com.google.gerrit.client.rpc.RestApi.wrap ( cb ) ) ; }
Source:
public void validKey ( ) throws java.lang.Exception { assertNoProblems ( com.google.gerrit.gpg.testutil.TestKeys.validKeyWithoutExpiration ( ) ) ; }

Target:
public void validKey ( ) throws java.lang.Exception { assertNoProblems ( com.google.gerrit.gpg.testing.TestKeys.validKeyWithoutExpiration ( ) ) ; }
Source:
public abstract org.eclipse.jgit.lib.Repository openMetadataRepository ( com.google.gerrit.reviewdb.client.Project.NameKey name ) throws java.io.IOException , org.eclipse.jgit.errors.RepositoryNotFoundException ;

Target:
java.lang.String getProjectDescription ( com.google.gerrit.reviewdb.client.Project.NameKey name ) throws java.io.IOException , org.eclipse.jgit.errors.RepositoryNotFoundException ;
Source:
public void extend ( org.commonmark.parser.Parser.Builder builder ) { builder.customDelimiterProcessor ( new com.google.gitiles.doc.SmartQuotedExtension.QuotedProcessor ( SINGLE , '\'' ) ) ; builder.customDelimiterProcessor ( new com.google.gitiles.doc.SmartQuotedExtension.QuotedProcessor ( DOUBLE , '"' ) ) ; }

Target:
public void extend ( org.commonmark.parser.Parser.Builder builder ) { builder.customDelimiterProcessor ( new com.google.gitiles.doc.SmartQuotedExtension.QuotedProcessor ( Type.SINGLE , '\'' ) ) ; builder.customDelimiterProcessor ( new com.google.gitiles.doc.SmartQuotedExtension.QuotedProcessor ( Type.DOUBLE , '"' ) ) ; }
Source:
public void testBadEventAndNotForwarded ( ) throws java.lang.Exception { setUpMocks ( false ) ; eventHandler.onEvent ( event ) ; org.mockito.Mockito.verifyZeroInteractions ( restSession ) ; }

Target:
public void testBadEventAndNotForwarded ( ) throws java.lang.Exception { setUpMocks ( false ) ; eventHandler.onEvent ( event ) ; org.mockito.Mockito.verifyZeroInteractions ( eventForwarder ) ; }
Source:
boolean isModified ( java.io.File jar ) { return ( snapshot.lastModified ( ) ) != ( jar.lastModified ( ) ) ; }

Target:
boolean isModified ( java.nio.file.Path jar ) { return ( snapshot.lastModified ( ) ) != ( com.google.gerrit.common.FileUtil.lastModified ( jar ) ) ; }
Source:
public void setAssignee ( com.google.common.base.Optional < com.google.gerrit.reviewdb.client.Account.Id > assignee ) { this . assignee = assignee ; }

Target:
public void setAssignee ( com.google.gerrit.reviewdb.client.Account.Id assignee ) { com.google.common.base.Preconditions.checkArgument ( ( assignee != null ) , "use removeAssignee" ) ; this . assignee = com.google.common.base.Optional.of ( assignee ) ; }
Source:
public void onShowView ( ) { super . onShowView ( ) ; filterTxt.setFocus ( true ) ; }

Target:
public void onShowView ( ) { super . onShowView ( ) ; if ( ( subname ) != null ) { filterTxt.setCursorPos ( subname.length ( ) ) ; } filterTxt.setFocus ( true ) ; }
Source:
public void invalidNonceNotChecked ( ) throws java.lang.Exception { checker = newChecker ( false ) ; org.eclipse.jgit.transport.PushCertificate cert = newSignedCert ( "invalid-nonce" , com.google.gerrit.gpg.testutil.TestKeys.validKeyWithoutExpiration ( ) ) ; assertNoProblems ( cert ) ; }

Target:
public void invalidNonceNotChecked ( ) throws java.lang.Exception { checker = newChecker ( false ) ; org.eclipse.jgit.transport.PushCertificate cert = newSignedCert ( "invalid-nonce" , com.google.gerrit.gpg.testing.TestKeys.validKeyWithoutExpiration ( ) ) ; assertNoProblems ( cert ) ; }
Source:
public void setDateHeader ( java.lang.String name , long value ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public void setDateHeader ( java.lang.String name , long value ) { setHeader ( name , java.lang.Long.toString ( value ) ) ; }
Source:
public void basicTextFormattingWorks ( ) throws java.io.IOException { java.lang.String raw = "_italic_ *bold* `monospace`" ; java.lang.String formatted = "<em>italic</em> <strong>bold</strong> <code>monospace</code>" ; org.junit.Assert.assertEquals ( 1 , org.apache.commons.lang.StringUtils.countMatches ( formatter.format ( null , null , null , null , cfg , raw ) , formatted ) ) ; }

Target:
public void basicTextFormattingWorks ( ) throws java.io.IOException { java.lang.String raw = "_italic_ *bold* `monospace`" ; java.lang.String formatted = "<div class=\"paragraph\">\n<p><em>italic</em> <strong>bold</strong> <code>monospace</code></p>\n</div>" ; org.junit.Assert.assertEquals ( formatted , formatter.format ( null , null , null , null , cfg , raw ) ) ; }
Source:
public void subsetOfBranchesVisibleIncludingHead ( ) throws java.lang.Exception { allow ( Permission.READ , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS , "refs/heads/master" ) ; deny ( Permission.READ , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS , "refs/heads/branch" ) ; assertRefs ( "HEAD" , "refs/changes/01/1/1" , "refs/changes/01/1/meta" , "refs/heads/master" ) ; }

Target:
public void subsetOfBranchesVisibleIncludingHead ( ) throws java.lang.Exception { allow ( Permission.READ , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS , "refs/heads/master" ) ; deny ( Permission.READ , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS , "refs/heads/branch" ) ; assertRefs ( "HEAD" , "refs/changes/01/1/1" , "refs/changes/01/1/meta" , "refs/heads/master" , "refs/tags/master-tag" ) ; }
Source:
public final void downloadCommand ( com.google.gerrit.reviewdb.client.AccountGeneralPreferences.DownloadCommand d ) { downloadCommandRaw ( ( d != null ? d.toString ( ) : null ) ) ; }

Target:
public final void downloadCommand ( com.google.gerrit.extensions.client.GeneralPreferencesInfo.DownloadCommand d ) { downloadCommandRaw ( ( d != null ? d.toString ( ) : null ) ) ; }
Source:
public boolean dryRun ( final com.google.gerrit.server.git.CodeReviewCommit mergeTip , final com.google.gerrit.server.git.CodeReviewCommit toMerge ) throws com.google.gerrit.server.git.MergeException { return canCherryPick ( mergeTip , toMerge ) ; }

Target:
public boolean dryRun ( final com.google.gerrit.server.git.CodeReviewCommit mergeTip , final com.google.gerrit.server.git.CodeReviewCommit toMerge ) throws com.google.gerrit.server.git.MergeException { return com.google.gerrit.server.git.MergeUtil.canCherryPick ( args.mergeSorter , args.repo , args.useContentMerge , mergeTip , args.rw , toMerge ) ; }
Source:
public static int getOpenFiles ( ) { return org.eclipse.jgit.storage.file.WindowCache.getInstance ( ) . getOpenFiles ( ) ; }

Target:
public static int getOpenFiles ( ) { return org.eclipse.jgit.internal.storage.file.WindowCache.getInstance ( ) . getOpenFiles ( ) ; }
Source:
public void onFailure ( java.lang.Throwable err ) { if ( com.google.gerrit.client.changes.SubmitFailureDialog.isConflict ( err ) ) { new com.google.gerrit.client.changes.SubmitFailureDialog ( err.getMessage ( ) ) . center ( ) ; } else { super . onFailure ( err ) ; } goChange ( ) ; }

Target:
public void onSuccess ( final com.google.gwtjsonrpc.common.VoidResult result ) { if ( ( ++ ( done ) ) == ( commentEditors.size ( ) ) ) { onSend2 ( submit ) ; } }
Source:
public com.google.gerrit.extensions.client.ProjectState getState ( ) { return control.getProject ( ) . getState ( ) ; }

Target:
public com.google.gerrit.server.project.ProjectState getProjectState ( ) { return control.getProjectState ( ) ; }
Source:
protected abstract void configureCmds ( ) ;

Target:
protected abstract void configureCommands ( ) ;
Source:
public void setSecure ( java.lang.String name , java.lang.String value ) { if ( value != null ) { flags.sec.setString ( section , subsection , name , value ) ; } else { flags.sec.unset ( section , subsection , name ) ; } }

Target:
public void setSecure ( java.lang.String name , java.lang.String value ) { if ( value != null ) { secureStore.set ( section , subsection , name , value ) ; } else { secureStore.unset ( section , subsection , name ) ; } }
Source:
private static com.google.gerrit.server.git.PerThreadRequestScope requireContext ( ) { final com.google.gerrit.server.git.PerThreadRequestScope ctx = com.google.gerrit.server.git.PerThreadRequestScope.current.get ( ) ; if ( ctx == null ) { throw new com.google.inject.OutOfScopeException ( "Not in command/request" ) ; } return ctx ; }

Target:
private static com.google.gerrit.server.git.PerThreadRequestScope.Context requireContext ( ) { final com.google.gerrit.server.git.PerThreadRequestScope.Context ctx = com.google.gerrit.server.git.PerThreadRequestScope.current.get ( ) ; if ( ctx == null ) { throw new com.google.inject.OutOfScopeException ( "Not in command/request" ) ; } return ctx ; }
Source:
public void testlinkifyMessageNoMatch ( ) throws java.lang.Exception { com.google.gitiles.Linkifier l = new com.google.gitiles.Linkifier ( TestGitilesUrls.URLS ) ; assertEquals ( com.google.common.collect.ImmutableList.of ( com.google.common.collect.ImmutableMap.of ( "text" , "some message text" ) ) , l.linkify ( com.google.gitiles.FakeHttpServletRequest.newRequest ( ) , "some message text" ) ) ; }

Target:
public void linkifyMessageNoMatch ( ) throws java.lang.Exception { com.google.gitiles.Linkifier l = new com.google.gitiles.Linkifier ( TestGitilesUrls.URLS ) ; org.junit.Assert.assertEquals ( com.google.common.collect.ImmutableList.of ( com.google.common.collect.ImmutableMap.of ( "text" , "some message text" ) ) , l.linkify ( com.google.gitiles.FakeHttpServletRequest.newRequest ( ) , "some message text" ) ) ; }
Source:
public void deactivateSelf ( ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.BadRequestException.class ) ; exception.expectMessage ( "cannot deactivate own account" ) ; gApi.accounts ( ) . self ( ) . setActive ( false ) ; }

Target:
public void deactivateSelf ( ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.ResourceConflictException.class ) ; exception.expectMessage ( "cannot deactivate own account" ) ; gApi.accounts ( ) . self ( ) . setActive ( false ) ; }