auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
void clearLine ( com.google.gerrit.client.diff.DisplaySide side , int line , com.google.gerrit.client.diff.CommentGroup group ) { java.util.SortedMap < java.lang.Integer , com.google.gerrit.client.diff.SideBySideCommentGroup > map = map ( side ) ; if ( ( map.get ( line ) ) == group ) { map.remove ( line ) ; } }

Target:
java.lang.String getTokenSuffixForActiveLine ( net.codemirror.lib.CodeMirror cm ) { return ( ( cm.side ( ) ) == ( DisplaySide.A ) ? "a" : "" ) + ( ( cm.getLineNumber ( cm.extras ( ) . activeLine ( ) ) ) + 1 ) ; }
Source:
default void onRemove ( org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.server.account.externalids.ExternalId extId ) throws java.io.IOException { onRemove ( newNotesRev , java.util.Collections.singleton ( extId ) ) ; }

Target:
default void onCreate ( org.eclipse.jgit.lib.ObjectId oldNotesRev , org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.server.account.externalids.ExternalId extId ) throws java.io.IOException { onCreate ( oldNotesRev , newNotesRev , java.util.Collections.singleton ( extId ) ) ; }
Source:
private java.util.List < com.google.gerrit.reviewdb.RefRight > getInheritedRights ( com.google.gerrit.reviewdb.ApprovalCategory.Id actionId ) { return filter ( projectControl.getProjectState ( ) . getInheritedRights ( ) , actionId ) ; }

Target:
private java.util.List < com.google.gerrit.reviewdb.RefRight > getInheritedRights ( com.google.gerrit.reviewdb.ApprovalCategory.Id actionId ) { if ( actionId.canInheritFromWildProject ( ) ) { return filter ( projectControl.getProjectState ( ) . getInheritedRights ( ) , actionId ) ; } else { return java.util.Collections.emptyList ( ) ; } }
Source:
public void display ( com.google.gerrit.client.groups.GroupList groups ) { display ( groups.asList ( ) , null ) ; }

Target:
public void display ( com.google.gerrit.client.groups.GroupList groups ) { display ( com.google.gerrit.client.rpc.Natives.asList ( groups ) , null ) ; }
Source:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { star.setValue ( ( ! ( star.getValue ( ) ) ) , true ) ; }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) { star.setValue ( ( ! ( star.getValue ( ) ) ) , true ) ; } else { com.google.gerrit.client.Gerrit.doSignIn ( getToken ( ) ) ; } }
Source:
com.google.gwtorm.client.ResultSet < com.google.gerrit.client.reviewdb.Change > byOwnerOpen ( com.google.gerrit.client.reviewdb.Account.Id id ) throws com.google.gwtorm.client.OrmException ;

Target:
com.google.gwtorm.client.ResultSet < com.google.gerrit.client.reviewdb.Change > byOwnerClosed ( com.google.gerrit.client.reviewdb.Account.Id id ) throws com.google.gwtorm.client.OrmException ;
Source:
public void testInsertOne ( ) throws com.google.gwtorm.client.OrmException , java.sql.SQLException { stubExecuteBatchOK ( com.google.gwtorm.jdbc.TestJdbcAccess.INSERT , 1 ) ; createClassUnderTest ( ) . insert ( com.google.gwtorm.jdbc.TestJdbcAccess.ONE_ROW ) ; }

Target:
public void testInsertOne ( ) throws com.google.gwtorm.server.OrmException , java.sql.SQLException { java.sql.PreparedStatement insert = stubStatementWithUpdateCounts ( com.google.gwtorm.jdbc.TestJdbcAccess.INSERT , 1 ) ; createClassUnderTest ( ) . insert ( oneRow ) ; com.google.gwtorm.jdbc.TestJdbcAccess.assertUsedBatchingOnly ( insert ) ; }
Source:
public java.lang.String getETag ( ) { return change.getETag ( ) ; }

Target:
public java.lang.String getETag ( ) { com.google.common.hash.Hasher h = com.google.common.hash.Hashing.murmur3_128 ( ) . newHasher ( ) ; prepareETag ( h , getUser ( ) ) ; return h.hash ( ) . toString ( ) ; }
Source:
public com.google.gerrit.server.plugins.Plugin.ApiType getApiType ( ) { try { return com.google.gerrit.server.plugins.Plugin.getApiType ( manifest ) ; } catch ( com.google.gerrit.server.plugins.InvalidPluginException e ) { return null ; } }

Target:
public com.google.gerrit.server.plugins.Plugin.CacheKey getCacheKey ( ) { return cacheKey ; }
Source:
public static com.google.gerrit.extensions.common.BanCommitInput fromCommits ( java.lang.String firstCommit , java.lang.String ... moreCommits ) { return com.google.gerrit.extensions.common.BanCommitInput.fromCommits ( com.google.common.collect.Lists.asList ( firstCommit , moreCommits ) ) ; }

Target:
public static com.google.gerrit.extensions.api.projects.BanCommitInput fromCommits ( java.lang.String firstCommit , java.lang.String ... moreCommits ) { return com.google.gerrit.extensions.api.projects.BanCommitInput.fromCommits ( com.google.common.collect.Lists.asList ( firstCommit , moreCommits ) ) ; }
Source:
public void onSuccess ( com.google.gwt.core.client.JavaScriptObject msg ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange2 ( changeId ) ) ; hide ( ) ; }

Target:
public void onSuccess ( com.google.gwt.core.client.JavaScriptObject msg ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( changeId ) ) ; hide ( ) ; }
Source:
void addError ( java.lang.String error ) { messages.add ( new com.google.gerrit.server.git.ReceiveCommits.Message ( error , true ) ) ; }

Target:
private void addMessage ( java.lang.String message ) { messages.add ( new com.google.gerrit.server.git.validators.CommitValidationMessage ( message , false ) ) ; }
Source:
public void execute ( ) { for ( final com.google.gwt.user.client.ui.Widget w : panel ) { if ( w instanceof com.google.gerrit.client.ui.ComplexDisclosurePanel ) { expand ( ( ( com.google.gerrit.client.ui.ComplexDisclosurePanel ) ( w ) ) ) ; } } }

Target:
public void execute ( ) { for ( final com.google.gwt.user.client.ui.Widget w : panel ) { if ( w instanceof com.google.gerrit.client.ui.CommentPanel ) { expand ( ( ( com.google.gerrit.client.ui.CommentPanel ) ( w ) ) ) ; } } }
Source:
public void onFailure ( final java.lang.Throwable caught ) { showSiteHeader.setValue ( ( ! val ) ) ; super . onFailure ( caught ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { save.setEnabled ( true ) ; }
Source:
public void operationComplete ( org.apache.mina.core.future.IoFuture future ) { final com.google.gerrit.sshd.SshScope.Context ctx = new com.google.gerrit.sshd.SshScope.Context ( sd ) ; final com.google.gerrit.sshd.SshScope.Context old = com.google.gerrit.sshd.SshScope.set ( ctx ) ; try { log.onLogout ( ) ; } finally { com.google.gerrit.sshd.SshScope.set ( old ) ; } }

Target:
private java.util.Set < java.security.PublicKey > getPeerKeys ( ) { com.google.gerrit.sshd.DatabasePubKeyAuth.PeerKeyCache p = peerKeyCache ; if ( ! ( p.isCurrent ( ) ) ) { p = p.reload ( ) ; peerKeyCache = p ; } return p.keys ; }
Source:
public void set ( com.googlecode.prolog_cafe.lang.Prolog engine , T obj ) { engine.getHashManager ( ) . put ( key , new com.googlecode.prolog_cafe.lang.JavaObjectTerm ( obj ) ) ; }

Target:
public void set ( com.googlecode.prolog_cafe.lang.Prolog engine , T obj ) { set ( ( ( com.google.gerrit.rules.PrologEnvironment ) ( engine.control ) ) , obj ) ; }
Source:
public java.lang.String process ( ) { return null ; }

Target:
public java.util.Optional < com.googlesource.gerrit.plugins.webhooks.EventProcessor.Request > doProcess ( com.google.gerrit.server.events.ProjectEvent event , com.googlesource.gerrit.plugins.webhooks.RemoteConfig remote ) { return java.util.Optional.empty ( ) ; }
Source:
private void initSignatures ( ) { setSignatureFactories ( java.util.Arrays.< org.apache.sshd.common.NamedFactory < org.apache.sshd.common.Signature > > asList ( new org.apache.sshd.common.signature.SignatureDSA.Factory ( ) , new org.apache.sshd.common.signature.SignatureRSA.Factory ( ) , new org.apache.sshd.common.signature.SignatureECDSA.NISTP256Factory ( ) , new org.apache.sshd.common.signature.SignatureECDSA.NISTP384Factory ( ) , new org.apache.sshd.common.signature.SignatureECDSA.NISTP521Factory ( ) ) ) ; }

Target:
private void initSignatures ( ) { setSignatureFactories ( org.apache.sshd.common.BaseBuilder.setUpDefaultSignatures ( true ) ) ; }
Source:
protected void beforeTest ( org.junit.runner.Description description ) throws java.lang.Exception { deployPlugin ( ) ; super . beforeTest ( description ) ; }

Target:
protected void beforeTest ( org.junit.runner.Description description ) throws java.lang.Exception { locatePaths ( ) ; retrievePluginName ( ) ; buildPluginJar ( ) ; createTestSiteDirs ( ) ; copyJarToTestSite ( ) ; super . beforeTest ( description ) ; }
Source:
public com.google.gerrit.client.rpc.RestApi data ( com.google.gwt.json.client.JSONObject obj ) { contentType = com.google.gwtjsonrpc.common.JsonConstants.JSON_REQ_CT ; contentData = obj.toString ( ) ; return this ; }

Target:
public com.google.gerrit.client.rpc.RestApi data ( java.lang.String data ) { contentType = ( com.google.gerrit.client.rpc.RestApi.TEXT_TYPE ) + "; charset=utf-8" ; contentData = data ; return this ; }
Source:
public boolean apply ( com.google.gerrit.reviewdb.client.PatchSetApproval input ) { return user.equals ( input.getAccountId ( ) ) ; }

Target:
public boolean apply ( com.google.gerrit.reviewdb.client.PatchSetApproval input ) { return accountId.equals ( input.getAccountId ( ) ) ; }
Source:
void onRemoveByKeys ( org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.reviewdb.client.Account.Id accountId , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId.Key > extIdKeys ) throws java.io.IOException ;

Target:
void onRemoveByKeys ( org.eclipse.jgit.lib.ObjectId oldNotesRev , org.eclipse.jgit.lib.ObjectId newNotesRev , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId.Key > extIdKeys ) throws java.io.IOException ;
Source:
private java.lang.String quoteForPerl ( java.io.File value ) { return quoteForPerl ( value.getAbsolutePath ( ) ) ; }

Target:
private static java.lang.String quoteForPerl ( java.nio.file.Path value ) { return com.google.gerrit.httpd.gitweb.GitWebServlet.quoteForPerl ( value.toAbsolutePath ( ) . toString ( ) ) ; }
Source:
public java.util.List < com.google.gerrit.server.account.AccountState > byExternalId ( java.lang.String externalId ) throws com.google.gwtorm.server.OrmException { return query ( com.google.gerrit.server.query.account.AccountPredicates.externalId ( externalId ) ) ; }

Target:
public java.util.List < com.google.gerrit.server.account.AccountState > byExternalId ( com.google.gerrit.server.account.ExternalId.Key externalId ) throws com.google.gwtorm.server.OrmException { return query ( com.google.gerrit.server.query.account.AccountPredicates.externalId ( externalId.toString ( ) ) ) ; }
Source:
public com.googlesrouce.gerrit.plugins.github.git.GHPersonSet < com.googlesrouce.gerrit.plugins.github.git.GHUser > getCollaborators ( ) throws java.io.IOException { return ghRepository.getCollaborators ( ) ; }

Target:
public com.googlesource.gerrit.plugins.github.git.GHPersonSet < com.googlesource.gerrit.plugins.github.git.GHUser > getCollaborators ( ) throws java.io.IOException { return ghRepository.getCollaborators ( ) ; }
Source:
private static boolean isJsonBody ( com.google.gwt.http.client.Response res ) { return com.google.gerrit.client.rpc.RestApi.isContentType ( res , JsonConstants.JSON_TYPE ) ; }

Target:
private static boolean isTextBody ( com.google.gwt.http.client.Response res ) { return com.google.gerrit.client.rpc.RestApi.isContentType ( res , com.google.gerrit.client.rpc.RestApi.TEXT_TYPE ) ; }
Source:
public java.lang.String getToken ( com.google.gwtjsonrpc.client.JsonDefTarget proxy ) { return com.google.gwt.user.client.Cookies.getCookie ( com.google.gerrit.client.Gerrit.SESSION_COOKIE ) ; }

Target:
public java.lang.String getToken ( com.google.gwtjsonrpc.client.JsonDefTarget proxy ) { return com.google.gerrit.client.Gerrit.xsrfToken ; }
Source:
public void addReviewer ( com.google.gerrit.extensions.api.changes.AddReviewerInput in ) throws com.google.gerrit.extensions.restapi.RestApiException { com.google.gerrit.extensions.api.changes.d47190 Revert ; }

Target:
public com.google.gerrit.extensions.api.changes.AddReviewerResult addReviewer ( java.lang.String in ) throws com.google.gerrit.extensions.restapi.RestApiException { throw new com.google.gerrit.extensions.restapi.NotImplementedException ( ) ; }
Source:
public void setValue ( final com.google.gerrit.reviewdb.client.AccountDiffPreference dp ) { listenablePrefs.set ( dp ) ; display ( ) ; }

Target:
public void setValue ( final com.google.gerrit.extensions.client.DiffPreferencesInfo dp ) { listenablePrefs.set ( dp ) ; display ( ) ; }
Source:
public abstract boolean match ( java.lang.String ref , java.lang.String username ) ;

Target:
public abstract boolean match ( java.lang.String ref , com.google.gerrit.server.CurrentUser user ) ;
Source:
public void put ( K key , V value ) { cache.put ( new com.google.gerrit.ehcache.SerializableProtobuf < K > ( key , keyCodec ) , new com.google.gerrit.ehcache.SerializableProtobuf < V > ( value , valueCodec ) ) ; }

Target:
private com.google.gerrit.ehcache.SerializableProtobuf < K > wrapKey ( K key ) { return new com.google.gerrit.ehcache.SerializableProtobuf < K > ( key , keyCodec ) ; }
Source:
public static com.google.gitiles.BaseServlet notFoundServlet ( ) { return new com.google.gitiles.BaseServlet ( null ) { @ java.lang.Override public void service ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res ) { res.setStatus ( javax.servlet.http.HttpServletResponse.SC_NOT_FOUND ) ; } } ; }

Target:
public static com.google.gitiles.BaseServlet notFoundServlet ( ) { return new com.google.gitiles.BaseServlet ( null ) { private static final long serialVersionUID = 1L ; @ java.lang.Override public void service ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res ) { res.setStatus ( javax.servlet.http.HttpServletResponse.SC_NOT_FOUND ) ; } } ; }
Source:
private final native void setEndCh ( int ec ) ;

Target:
private final native void set ( int sl , int sc , int el , int ec ) ;
Source:
public boolean createProject ( com.google.gerrit.reviewdb.client.Project.NameKey project , java.lang.String head ) { boolean success = false ; for ( org.eclipse.jgit.transport.URIish uri : getURIs ( project , false ) ) { success &= createProject ( uri , head ) ; } return success ; }

Target:
public boolean createProject ( com.google.gerrit.reviewdb.client.Project.NameKey project , java.lang.String head ) { boolean success = true ; for ( org.eclipse.jgit.transport.URIish uri : getURIs ( project , FilterType.PROJECT_CREATION ) ) { success &= createProject ( uri , head ) ; } return success ; }
Source:
private com.google.gerrit.extensions.common.Theme getSelectedTheme ( ) { return com.google.gerrit.extensions.common.Theme.valueOf ( theme.getValue ( theme.getSelectedIndex ( ) ) ) ; }

Target:
private com.google.gerrit.extensions.client.Theme getSelectedTheme ( ) { return com.google.gerrit.extensions.client.Theme.valueOf ( theme.getValue ( theme.getSelectedIndex ( ) ) ) ; }
Source:
private static java.lang.String now ( ) { return new java.text.SimpleDateFormat ( "YYYYMMdd:HHmm" ) . 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:
private com.google.gerrit.extensions.api.projects.TagInfo getTag ( java.lang.String ref ) throws java.lang.Exception { return gApi.projects ( ) . name ( project.get ( ) ) . tag ( ref ) . get ( ) ; }

Target:
private com.google.gerrit.extensions.api.projects.TagApi tag ( java.lang.String tagname ) throws java.lang.Exception { return gApi.projects ( ) . name ( project.get ( ) ) . tag ( tagname ) ; }
Source:
private final native void set_submittable ( boolean x ) ;

Target:
private final native void setSubmittable ( boolean x ) ;
Source:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo.EditInfo result ) { fetch = result.fetch ( ) ; renderScheme ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo.EditInfo result ) { fetch = result.fetch ( ) ; renderScheme ( ) ; }
Source:
public void sendError ( int sc ) { status = sc ; }

Target:
public synchronized void setStatus ( int sc , java.lang.String msg ) { status = sc ; committed = true ; }
Source:
private com.google.gerrit.acceptance.GerritServer startImpl ( @ com.google.gerrit.common.Nullable com.google.inject.Module testSysModule ) throws java.lang.Exception { return com.google.gerrit.acceptance.GerritServer.start ( serverDesc , baseConfig , sitePaths.site_path , testSysModule ) ; }

Target:
private com.google.gerrit.acceptance.GerritServer startImpl ( @ com.google.gerrit.common.Nullable com.google.inject.Module testSysModule , java.lang.String ... additionalArgs ) throws java.lang.Exception { return com.google.gerrit.acceptance.GerritServer.start ( serverDesc , baseConfig , sitePaths.site_path , testSysModule , additionalArgs ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s:%s > %s" , projectEvent.type , projectEvent.getProjectNameKey ( ) . get ( ) , url ) ; }

Target:
private void post ( final java.lang.String url , final com.google.gerrit.server.events.ProjectEvent projectEvent ) { taskFactory.create ( url , projectEvent ) . schedule ( ) ; }
Source:
private boolean isAllProjects ( com.google.gerrit.server.project.ProjectResource rsrc ) { return rsrc.getControl ( ) . getProject ( ) . getNameKey ( ) . equals ( allProjectsName ) ; }

Target:
private boolean isAllProjects ( com.google.gerrit.server.project.ProjectResource rsrc ) { return rsrc.getProjectState ( ) . getProject ( ) . getNameKey ( ) . equals ( allProjectsName ) ; }
Source:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { userNameTxt.setEnabled ( true ) ; changeUserName.setEnabled ( false ) ; if ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) { com.google.gerrit.client.Gerrit.getUserAccount ( ) . setSshUserName ( newSshUserName ) ; } }

Target:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { com.google.gerrit.client.Gerrit.getUserAccount ( ) . setUserName ( newUserName ) ; userNameTxt.setEnabled ( true ) ; changeUserName.setEnabled ( false ) ; }
Source:
protected void format ( ) throws com.google.gerrit.common.errors.EmailException { appendText ( velocifyFile ( "AddKey.vm" ) ) ; }

Target:
protected void format ( ) throws com.google.gerrit.common.errors.EmailException { appendText ( textTemplate ( "AddKey" ) ) ; }
Source:
public void testParseMissingSha ( ) throws java.lang.Exception { assertNull ( parser.parse ( "deadbeef" ) ) ; assertNull ( parser.parse ( "deadbeefdeadbeefdeadbeefdeadbeefdeadbeef" ) ) ; }

Target:
public void parseMissingSha ( ) throws java.lang.Exception { org.junit.Assert.assertNull ( parser.parse ( "deadbeef" ) ) ; org.junit.Assert.assertNull ( parser.parse ( "deadbeefdeadbeefdeadbeefdeadbeefdeadbeef" ) ) ; }
Source:
private java.lang.String urlGet ( ) { return ( "/changes/" + ( change.getChangeId ( ) ) ) + "/edits" ; }

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:
public void resetHtml ( final com.google.gerrit.client.ui.FancyFlexTable.MyFlexTable myTable , final java.lang.String body ) { com.google.gwt.user.client.DOM.setInnerHTML ( com.google.gerrit.client.ui.FancyFlexTableImpl.getBodyElement ( myTable ) , body ) ; }

Target:
public void resetHtml ( final com.google.gerrit.client.ui.FancyFlexTable.MyFlexTable myTable , final com.google.gwtexpui.safehtml.client.SafeHtml body ) { com.google.gwtexpui.safehtml.client.SafeHtml.set ( com.google.gerrit.client.ui.FancyFlexTableImpl.getBodyElement ( myTable ) , body ) ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.httpd.GerritUiOptions.class ) . toInstance ( new com.google.gerrit.httpd.GerritUiOptions ( headless ) ) ; if ( test ) { bind ( com.google.gerrit.server.securestore.SecureStore.class ) . toProvider ( com.google.gerrit.pgm.util.SecureStoreProvider.class ) ; } }

Target:
protected void configure ( ) { bind ( com.google.gerrit.httpd.GerritUiOptions.class ) . toInstance ( new com.google.gerrit.httpd.GerritUiOptions ( headless ) ) ; if ( test ) { bind ( com.google.gerrit.server.securestore.SecureStore.class ) . toProvider ( com.google.gerrit.server.securestore.SecureStoreProvider.class ) ; } }
Source:
private int getPermittedLimit ( ) { return userProvider.get ( ) . getCapabilities ( ) . getRange ( GlobalCapability.QUERY_LIMIT ) . getMax ( ) ; }

Target:
private int getPermittedLimit ( ) { if ( enforceVisibility ) { return userProvider.get ( ) . getCapabilities ( ) . getRange ( GlobalCapability.QUERY_LIMIT ) . getMax ( ) ; } return java.lang.Integer.MAX_VALUE ; }
Source:
public final com.google.gerrit.server.index.Schema.Builder < T > remove ( com.google.gerrit.server.index.FieldDef < T , ? > ... fields ) { this . fields.removeAll ( java.util.Arrays.asList ( fields ) ) ; return this ; }

Target:
public final com.google.gerrit.index.Schema.Builder < T > remove ( com.google.gerrit.index.FieldDef < T , ? > ... fields ) { this . fields.removeAll ( java.util.Arrays.asList ( fields ) ) ; return this ; }
Source:
private ProjectResetter.Builder builder ( @ com.google.gerrit.common.Nullable com.google.gerrit.acceptance.AccountCreator accountCreator , @ com.google.gerrit.common.Nullable com.google.gerrit.server.account.AccountCache accountCache , @ com.google.gerrit.common.Nullable com.google.gerrit.server.project.ProjectCache projectCache ) { return new com.google.gerrit.acceptance.ProjectResetter.Builder ( repoManager , new com.google.gerrit.server.config.AllUsersName ( com.google.gerrit.server.config.AllUsersNameProvider.DEFAULT ) , accountCreator , accountCache , projectCache ) ; }

Target:
private ProjectResetter.Builder builder ( @ com.google.gerrit.common.Nullable com.google.gerrit.acceptance.AccountCreator accountCreator , @ com.google.gerrit.common.Nullable com.google.gerrit.server.account.AccountCache accountCache , @ com.google.gerrit.common.Nullable com.google.gerrit.server.index.account.AccountIndexer accountIndexer , @ com.google.gerrit.common.Nullable com.google.gerrit.server.project.ProjectCache projectCache ) { return new com.google.gerrit.acceptance.ProjectResetter.Builder ( repoManager , new com.google.gerrit.server.config.AllUsersName ( com.google.gerrit.server.config.AllUsersNameProvider.DEFAULT ) , accountCreator , accountCache , accountIndexer , projectCache ) ; }
Source:
public com.google.gerrit.reviewdb.client.AccountGroup getAccountGroup ( ) { return group ; }

Target:
public AccountGroup.UUID getOwnerGroupUUID ( ) { return group.getOwnerGroupUUID ( ) ; }
Source:
private static boolean skip ( java.lang.String name ) { return ( ( name.startsWith ( "refs/changes/" ) ) || ( name.startsWith ( GitRepositoryManager.REFS_CACHE_AUTOMERGE ) ) ) || ( com.google.gerrit.server.util.MagicBranch.isMagicBranch ( name ) ) ; }

Target:
private static boolean skip ( java.lang.String name ) { return ( ( name.startsWith ( RefNames.REFS_CHANGES ) ) || ( name.startsWith ( RefNames.REFS_CACHE_AUTOMERGE ) ) ) || ( com.google.gerrit.server.util.MagicBranch.isMagicBranch ( name ) ) ; }
Source:
public static void getHttpPassword ( java.lang.String account , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.rpc.NativeString > cb ) { new com.google.gerrit.client.rpc.RestApi ( "/accounts/" ) . id ( account ) . view ( "password.http" ) . get ( cb ) ; }

Target:
public static void getExternalIds ( com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JsArray < com.google.gerrit.client.account.ExternalIdInfo > > cb ) { com.google.gerrit.client.account.AccountApi.self ( ) . view ( "external.ids" ) . get ( cb ) ; }
Source:
public void shouldNotDispatchForwardedEvents ( ) { com.ericsson.gerrit.plugins.syncevents.Context.setForwardedEvent ( ) ; try { broker.fireEventForUnrestrictedListeners ( event ) ; } finally { com.ericsson.gerrit.plugins.syncevents.Context.unsetForwardedEvent ( ) ; } org.mockito.Mockito.verifyZeroInteractions ( listenerMock ) ; }

Target:
public void shouldNotDispatchForwardedEvents ( ) { com.ericsson.gerrit.plugins.highavailability.forwarder.Context.setForwardedEvent ( true ) ; try { broker.fireEventForUnrestrictedListeners ( event ) ; } finally { com.ericsson.gerrit.plugins.highavailability.forwarder.Context.unsetForwardedEvent ( ) ; } org.mockito.Mockito.verifyZeroInteractions ( listenerMock ) ; }
Source:
public boolean allowsEdit ( com.google.gerrit.reviewdb.client.Account.FieldName field ) { return false ; }

Target:
public boolean allowsEdit ( com.google.gerrit.reviewdb.client.Account.FieldName field ) { return editableAccountFields.contains ( field ) ; }
Source:
public com.google.gerrit.pgm.init.LibraryDownloader get ( ) { return new com.google.gerrit.pgm.init.LibraryDownloader ( ui , site ) ; }

Target:
public com.google.gerrit.pgm.init.LibraryDownloader get ( ) { return new com.google.gerrit.pgm.init.LibraryDownloader ( ui , site , remover ) ; }
Source:
public java.lang.Object apply ( com.google.gerrit.server.change.DraftResource rsrc , com.google.gerrit.server.change.DeleteDraft.Input input ) throws com.google.gwtorm.server.OrmException { db.get ( ) . patchComments ( ) . delete ( java.util.Collections.singleton ( rsrc.getComment ( ) ) ) ; return new java.lang.Object ( ) ; }

Target:
public java.lang.Object apply ( com.google.gerrit.server.change.DraftResource rsrc , com.google.gerrit.server.change.DeleteDraft.Input input ) throws com.google.gwtorm.server.OrmException { db.get ( ) . patchComments ( ) . delete ( java.util.Collections.singleton ( rsrc.getComment ( ) ) ) ; return com.google.gerrit.extensions.restapi.Response.none ( ) ; }
Source:
public void testBackreference ( ) { org.junit.Assert.assertEquals ( "<a href=\"/bug?id=123\">issue 123</a>" , new com.google.gwtexpui.safehtml.client.LinkFindReplace ( "(bug|issue)\\s*([0-9]+)" , "/bug?id=$2" ) . replace ( "issue 123" ) ) ; }

Target:
public void testBackreference ( ) { com.google.gwtexpui.safehtml.client.LinkFindReplace l = new com.google.gwtexpui.safehtml.client.LinkFindReplace ( "(bug|issue)\\s*([0-9]+)" , "/bug?id=$2" ) ; com.google.common.truth.Truth.assertThat ( l.replace ( "issue 123" ) ) . isEqualTo ( "<a href=\"/bug?id=123\">issue 123</a>" ) ; }
Source:
private com.google.gerrit.server.group.InternalGroup toInternalGroup ( org.apache.lucene.document.Document doc ) { com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid = new com.google.gerrit.reviewdb.client.AccountGroup.UUID ( doc.getField ( com.google.gerrit.server.index.group.GroupField.UUID.getName ( ) ) . stringValue ( ) ) ; return groupCache.get ( ) . get ( uuid ) . orElse ( null ) ; }

Target:
protected com.google.gerrit.server.group.InternalGroup fromDocument ( org.apache.lucene.document.Document doc ) { com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid = new com.google.gerrit.reviewdb.client.AccountGroup.UUID ( doc.getField ( com.google.gerrit.server.index.group.GroupField.UUID.getName ( ) ) . stringValue ( ) ) ; return groupCache.get ( ) . get ( uuid ) . orElse ( null ) ; }
Source:
protected void configure ( ) { bind ( com.google.inject.Key.get ( javax.sql.DataSource.class , com.google.inject.name.Names.named ( "ReviewDb" ) ) ) . toProvider ( com.google.gerrit.httpd.ReviewDbDataSourceProvider.class ) . in ( com.google.inject.Scopes.SINGLETON ) ; listener ( ) . to ( com.google.gerrit.httpd.ReviewDbDataSourceProvider.class ) ; }

Target:
protected void configure ( ) { bind ( new com.google.inject.TypeLiteral < com.google.gwtorm.client.SchemaFactory < com.google.gerrit.reviewdb.ReviewDb > > ( ) { } ) . toProvider ( com.google.gerrit.httpd.ReviewDbDataSourceProvider.class ) . in ( com.google.inject.Scopes.SINGLETON ) ; listener ( ) . to ( com.google.gerrit.httpd.ReviewDbDataSourceProvider.class ) ; }
Source:
public java.lang.String toString ( ) { return ( ( com.google.gerrit.server.query.IntPredicate.getOperator ( ) ) + ":" ) + ( com.google.gerrit.server.query.IntPredicate.getValue ( ) ) ; }

Target:
public java.lang.String toString ( ) { return ( ( com.google.gerrit.index.query.IntPredicate.getOperator ( ) ) + ":" ) + ( com.google.gerrit.index.query.IntPredicate.getValue ( ) ) ; }
Source:
public void suggestReviewer ( com.google.gerrit.reviewdb.client.Project.NameKey project , java.lang.String query , int limit , com.google.gwt.user.client.rpc.AsyncCallback < java.util.List < com.google.gerrit.common.data.ReviewerInfo > > callback ) { callback.onSuccess ( java.util.Collections.< com.google.gerrit.common.data.ReviewerInfo > emptyList ( ) ) ; }

Target:
public void suggestReviewer ( com.google.gerrit.reviewdb.client.Project.NameKey project , java.lang.String query , int limit , com.google.gwtjsonrpc.common.AsyncCallback < java.util.List < com.google.gerrit.common.data.ReviewerInfo > > callback ) { callback.onSuccess ( java.util.Collections.< com.google.gerrit.common.data.ReviewerInfo > emptyList ( ) ) ; }
Source:
private java.util.Optional < com.google.gerrit.server.group.InternalGroup > toInternalGroup ( org.apache.lucene.document.Document doc ) { com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid = new com.google.gerrit.reviewdb.client.AccountGroup.UUID ( doc.getField ( com.google.gerrit.server.index.group.GroupField.UUID.getName ( ) ) . stringValue ( ) ) ; return groupCache.get ( ) . get ( uuid ) ; }

Target:
private com.google.gerrit.server.group.InternalGroup toInternalGroup ( org.apache.lucene.document.Document doc ) { com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid = new com.google.gerrit.reviewdb.client.AccountGroup.UUID ( doc.getField ( com.google.gerrit.server.index.group.GroupField.UUID.getName ( ) ) . stringValue ( ) ) ; return groupCache.get ( ) . get ( uuid ) . orElse ( null ) ; }
Source:
private boolean canSeeMembers ( ) { com.google.gerrit.reviewdb.client.AccountGroup accountGroup = com.google.gerrit.common.data.GroupDescriptions.toAccountGroup ( group ) ; return ( ( accountGroup != null ) && ( accountGroup.isVisibleToAll ( ) ) ) || ( isOwner ( ) ) ; }

Target:
private boolean canSeeMembers ( ) { if ( ( group ) instanceof com.google.gerrit.common.data.GroupDescription.Internal ) { return ( ( ( com.google.gerrit.common.data.GroupDescription.Internal ) ( group ) ) . isVisibleToAll ( ) ) || ( isOwner ( ) ) ; } return false ; }
Source:
public java.sql.Timestamp getMaxTimestamp ( ) { return com.google.gerrit.server.ChangeUtil.timeFromSortKey ( getValue ( ) ) ; }

Target:
public long getMaxValue ( ) { return com.google.gerrit.server.ChangeUtil.parseSortKey ( getValue ( ) ) ; }
Source:
private void superWindowResolution ( ) { com.google.gerrit.testutil.TestTimeUtil.setClockStep ( ( ( com.google.gerrit.server.notedb.rebuild.ChangeRebuilderImpl.MAX_WINDOW_MS ) * 2 ) , java.util.concurrent.TimeUnit.MILLISECONDS ) ; com.google.gerrit.common.TimeUtil.nowTs ( ) ; }

Target:
private void superWindowResolution ( ) { com.google.gerrit.testing.TestTimeUtil.setClockStep ( ( ( com.google.gerrit.server.notedb.rebuild.ChangeRebuilderImpl.MAX_WINDOW_MS ) * 2 ) , java.util.concurrent.TimeUnit.MILLISECONDS ) ; com.google.gerrit.common.TimeUtil.nowTs ( ) ; }
Source:
public void createProjectHttpWithUnreasonableName_BadRequest ( ) throws java.lang.Exception { adminRestSession.put ( ( "/projects/" + ( com.google.gerrit.extensions.restapi.Url.encode ( name ( "invalid/../name" ) ) ) ) ) . assertBadRequest ( ) ; }

Target:
public void createProjectHttpWithUnreasonableName_BadRequest ( ) throws java.lang.Exception { com.google.common.collect.ImmutableList < java.lang.String > forbiddenStrings = com.google.common.collect.ImmutableList.of ( "/../" , "/./" , "//" , ".git/" , "?" , "%" , "*" , ":" , "<" , ">" , "|" , "$" , "/+" , "~" ) ; for ( java.lang.String s : forbiddenStrings ) { java.lang.String projectName = name ( ( ( "invalid" + s ) + "name" ) ) ; com.google.common.truth.Truth.assertWithMessage ( ( ( "Expected status code for " + projectName ) + " to be 400." ) ) . that ( adminRestSession.put ( ( "/projects/" + ( com.google.gerrit.extensions.restapi.Url.encode ( projectName ) ) ) ) . getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_BAD_REQUEST ) ; } }
Source:
public void createExtraAccount ( ) throws java.lang.Exception { extraReviewer = accounts.create ( "extraReviewer" , "extraReviewer@example.com" , "extraReviewer" ) ; extraCcer = accounts.create ( "extraCcer" , "extraCcer@example.com" , "extraCcer" ) ; }

Target:
public void createExtraAccount ( ) throws java.lang.Exception { extraReviewer = accountCreator.create ( "extraReviewer" , "extraReviewer@example.com" , "extraReviewer" ) ; extraCcer = accountCreator.create ( "extraCcer" , "extraCcer@example.com" , "extraCcer" ) ; }
Source:
void createNewProject ( java.lang.String projectName , java.lang.String parentName , boolean emptyCommit , boolean permissionsOnly , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwtjsonrpc.client.VoidResult > callback ) ;

Target:
void createNewProject ( java.lang.String projectName , java.lang.String parentName , boolean emptyCommit , boolean permissionsOnly , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gwtjsonrpc.common.VoidResult > callback ) ;
Source:
public void postUpdateImpl ( com.google.gerrit.server.update.BatchUpdate.Context ctx ) throws com.google.gwtorm.server.OrmException { if ( ( rebaseOp ) != null ) { rebaseOp.postUpdate ( ctx ) ; } }

Target:
public void postUpdateImpl ( com.google.gerrit.server.update.Context ctx ) throws com.google.gwtorm.server.OrmException { if ( ( rebaseOp ) != null ) { rebaseOp.postUpdate ( ctx ) ; } }
Source:
public static void putMessage ( com.google.gerrit.reviewdb.client.Change.Id id , java.lang.String m , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.VoidResult > r ) { com.google.gerrit.client.changes.ChangeApi.change ( id.get ( ) ) . view ( "edit_message" ) . put ( m , r ) ; }

Target:
public static void putMessage ( com.google.gerrit.reviewdb.client.Change.Id id , java.lang.String m , com.google.gerrit.client.rpc.GerritCallback < com.google.gerrit.client.VoidResult > r ) { com.google.gerrit.client.changes.ChangeApi.change ( id.get ( ) ) . view ( "edit:message" ) . put ( m , r ) ; }
Source:
void onPublish ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { com.google.gerrit.client.change.DraftActions.publish ( changeId , revision ) ; }

Target:
void onDeleteEdit ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { if ( com.google.gwt.user.client.Window.confirm ( Resources.C.deleteChangeEdit ( ) ) ) { com.google.gerrit.client.change.EditActions.deleteEdit ( changeId , publishEdit , rebaseEdit , deleteEdit ) ; } }
Source:
public java.lang.String [ ] getParameterValues ( java.lang.String name ) { return com.google.gerrit.util.http.testutil.FakeHttpServletRequest.STRING_COLLECTION_TO_ARRAY.apply ( parameters.get ( name ) ) ; }

Target:
public java.lang.String [ ] getParameterValues ( java.lang.String name ) { return parameters.get ( name ) . toArray ( new java.lang.String [ 0 ] ) ; }
Source:
com.google.gwt.resources.client.CssResource css ( ) ;

Target:
com.google.gwt.resources.client.CssResource prettify_css ( ) ;
Source:
abstract java.lang.Runnable openCloseAll ( final net.codemirror.lib.CodeMirror cm ) ;

Target:
public void run ( ) { com.google.gerrit.client.diff.CommentGroup group = getCommentGroupOnActiveLine ( cm ) ; if ( group != null ) { group.openCloseAll ( ) ; } }
Source:
private static java.lang.String swfUrl ( ) { if ( ( com.google.gwtexpui.clippy.client.CopyableLabel.swfUrl ) == null ) { com.google.gwtexpui.clippy.client.CopyableLabel.swfUrl = ( com.google.gwt.core.client.GWT.getModuleBaseURL ( ) ) + "gwtexpui_clippy1.cache.swf" ; } return com.google.gwtexpui.clippy.client.CopyableLabel.swfUrl ; }

Target:
private static java.lang.String swfUrl ( ) { return ClippyResources.I.swf ( ) . getSafeUri ( ) . asString ( ) ; }
Source:
public org.eclipse.jgit.lib.BatchRefUpdate getBatchRefUpdate ( ) throws java.io.IOException { initRepository ( ) ; if ( ( batchRefUpdate ) == null ) { batchRefUpdate = repo.getRefDatabase ( ) . newBatchUpdate ( ) ; } return batchRefUpdate ; }

Target:
public void addRefUpdate ( org.eclipse.jgit.transport.ReceiveCommand cmd ) throws java.io.IOException { initRepository ( ) ; commands.add ( cmd ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { createFileCommentEditorOnSideA ( ) ; }

Target:
public void onDoubleClick ( com.google.gwt.event.dom.client.DoubleClickEvent event ) { if ( headerSideA.isFile ( ) ) { createFileCommentEditorOnSideA ( ) ; } }
Source:
private com.google.gerrit.extensions.common.EditInfo toEditInfo ( boolean files ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = adminSession.get ( ( files ? urlGetFiles ( ) : urlEdit ( ) ) ) ; return readContentFromJson ( r , com.google.gerrit.extensions.common.EditInfo.class ) ; }

Target:
private com.google.gerrit.extensions.common.EditInfo toEditInfo ( boolean files ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = adminRestSession.get ( ( files ? urlGetFiles ( ) : urlEdit ( ) ) ) ; return readContentFromJson ( r , com.google.gerrit.extensions.common.EditInfo.class ) ; }
Source:
public void put ( com.google.gerrit.server.change.AccountInfo info ) { provided.add ( info ) ; }

Target:
public void put ( com.google.gerrit.server.account.AccountInfo info ) { provided.add ( info ) ; }
Source:
private static com.google.gerrit.client.rpc.RestApi api ( int id , java.lang.String commit , java.lang.String action ) { return new com.google.gerrit.client.rpc.RestApi ( ( ( ( ( ( "/changes/" + id ) + "/revisions/" ) + commit ) + "/" ) + action ) ) ; }

Target:
private static com.google.gerrit.client.rpc.RestApi call ( int id , java.lang.String commit , java.lang.String action ) { return com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( "revisions" ) . id ( commit ) . view ( action ) ; }
Source:
void apply ( com.google.gerrit.server.notedb.ChangeUpdate update ) throws com.google.gwtorm.server.OrmException { checkUpdate ( update ) ; if ( ( c.getRevId ( ) ) == null ) { com.google.gerrit.server.PatchLineCommentsUtil.setCommentRevId ( c , cache , change , ps ) ; } update.insertComment ( c ) ; }

Target:
void apply ( com.google.gerrit.server.notedb.ChangeUpdate update ) throws com.google.gwtorm.server.OrmException { checkUpdate ( update ) ; if ( ( c.getRevId ( ) ) == null ) { com.google.gerrit.server.PatchLineCommentsUtil.setCommentRevId ( c , cache , change , ps ) ; } update.putComment ( c ) ; }
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 void cherryPickUnbornRoot ( com.google.gerrit.server.git.CodeReviewCommit n , com.google.gerrit.server.git.MergeTip mergeTip ) { mergeTip.moveTipTo ( n , n ) ; n.setStatusCode ( CommitMergeStatus.CLEAN_MERGE ) ; }
Source:
public void listBranchesOfNonExistingProject_NotFound ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( GET ( "/projects/non-existing/branches" ) . getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_NOT_FOUND ) ; }

Target:
public void listBranchesOfNonExistingProject_NotFound ( ) throws java.lang.Exception { try { gApi.projects ( ) . name ( "non-existing" ) . branches ( ) . get ( ) ; org.junit.Assert.fail ( "Expected ResourceNotFoundException" ) ; } catch ( com.google.gerrit.extensions.restapi.ResourceNotFoundException expected ) { } }
Source:
private java.util.List < com.google.gerrit.reviewdb.RefRight > getAllRights ( com.google.gerrit.reviewdb.ApprovalCategory.Id actionId ) { return filter ( getProjectState ( ) . getAllRights ( actionId , true ) ) ; }

Target:
private java.util.List < com.google.gerrit.reviewdb.RefRight > getAllRights ( com.google.gerrit.reviewdb.ApprovalCategory.Id actionId ) { final java.util.List < com.google.gerrit.reviewdb.RefRight > allRefRights = filter ( getProjectState ( ) . getAllRights ( actionId , true ) ) ; return resolveOwnerGroups ( allRefRights ) ; }
Source:
void onReplace ( 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 ) throws java.io.IOException ;

Target:
void onReplaceByKeys ( org.eclipse.jgit.lib.ObjectId oldNotesRev , org.eclipse.jgit.lib.ObjectId newNotesRev , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId.Key > toRemove , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toAdd ) throws java.io.IOException ;
Source:
public void onSuccess ( final com.google.gerrit.client.reviewdb.Account result ) { com.google.gerrit.client.Gerrit.postSignIn ( result ) ; hide ( ) ; if ( ac != null ) { ac.onSuccess ( null ) ; } }

Target:
public void onSuccess ( final com.google.gerrit.client.reviewdb.Account result ) { com.google.gwt.user.client.DeferredCommand.addCommand ( new com.google.gwt.user.client.Command ( ) { public void execute ( ) { hide ( ) ; com.google.gerrit.client.Gerrit.postSignIn ( result , ac ) ; } } ) ; }
Source:
public static com.google.gerrit.index.query.Predicate < com.google.gerrit.server.group.InternalGroup > subgroup ( com.google.gerrit.reviewdb.client.AccountGroup.UUID subgroupUuid ) { return new com.google.gerrit.server.query.group.GroupPredicates.GroupPredicate ( com.google.gerrit.server.index.group.GroupField.SUBGROUPS , subgroupUuid.get ( ) ) ; }

Target:
public static com.google.gerrit.index.query.Predicate < com.google.gerrit.server.group.InternalGroup > subgroup ( com.google.gerrit.reviewdb.client.AccountGroup.UUID subgroupUuid ) { return new com.google.gerrit.server.query.group.GroupPredicates.GroupPredicate ( com.google.gerrit.server.index.group.GroupField.SUBGROUP , subgroupUuid.get ( ) ) ; }
Source:
private java.lang.String urlEditMessage ( ) { return ( "/changes/" + ( change.getChangeId ( ) ) ) + "/edit:message" ; }

Target:
private java.lang.String urlEditMessage ( boolean base ) { return ( ( "/changes/" + ( change.getChangeId ( ) ) ) + "/edit:message" ) + ( base ? "?base" : "" ) ; }
Source:
public static com.google.common.collect.ImmutableList < com.google.gerrit.gpg.testutil.TestKey > allValidKeys ( ) { return com.google.common.collect.ImmutableList.of ( com.google.gerrit.gpg.testutil.TestKeys.key1 ( ) , com.google.gerrit.gpg.testutil.TestKeys.key2 ( ) , com.google.gerrit.gpg.testutil.TestKeys.key5 ( ) ) ; }

Target:
public static com.google.common.collect.ImmutableList < com.google.gerrit.gpg.testutil.TestKey > allValidKeys ( ) { return com.google.common.collect.ImmutableList.of ( com.google.gerrit.gpg.testutil.TestKeys.validKeyWithoutExpiration ( ) , com.google.gerrit.gpg.testutil.TestKeys.validKeyWithExpiration ( ) , com.google.gerrit.gpg.testutil.TestKeys.validKeyWithSecondUserId ( ) ) ; }
Source:
public void testChangeEventShouldBeQueuedWhenSubmitted ( ) { asyncListener.onChangeEvent ( event ) ; org.junit.Assert.assertEquals ( event , asyncListener.getQueue ( ) . peek ( ) ) ; }

Target:
public void testChangeEventShouldBeQueuedWhenSubmitted ( ) { asyncListener.onEvent ( event ) ; org.junit.Assert.assertEquals ( event , asyncListener.getQueue ( ) . peek ( ) ) ; }
Source:
public java.lang.Integer get ( ) { return org.eclipse.jgit.internal.storage.file.WindowCacheStatAccessor.getOpenFiles ( ) ; }

Target:
public java.lang.Integer get ( ) { return org.eclipse.jgit.storage.file.WindowCacheStats.getOpenFiles ( ) ; }
Source:
public void createEmptyChange_MissingBranch ( ) throws java.lang.Exception { com.google.gerrit.extensions.common.ChangeInfo ci = new com.google.gerrit.extensions.common.ChangeInfo ( ) ; ci.project = project.get ( ) ; assertCreateFails ( ci , com.google.gerrit.extensions.restapi.BadRequestException.class , "branch must be non-empty" ) ; }

Target:
public void createEmptyChange_MissingBranch ( ) throws java.lang.Exception { com.google.gerrit.extensions.common.ChangeInput ci = new com.google.gerrit.extensions.common.ChangeInput ( ) ; ci.project = project.get ( ) ; assertCreateFails ( ci , com.google.gerrit.extensions.restapi.BadRequestException.class , "branch must be non-empty" ) ; }
Source:
public static native void go ( java.lang.String t ) ;

Target:
private final native void screen ( java.lang.String t , com.google.gwt.core.client.JavaScriptObject e ) ;
Source:
public void startLineGreaterThanEndLineResultsInInvalidRange ( ) { com.google.gerrit.extensions.client.Comment.Range range = createRange ( 20 , 2 , 19 , 10 ) ; com.google.gerrit.extensions.client.RangeSubject.assertThat ( range ) . isInvalid ( ) ; }

Target:
public void startLineGreaterThanEndLineResultsInInvalidRange ( ) { com.google.gerrit.extensions.client.Comment.Range range = createRange ( 20 , 2 , 19 , 10 ) ; com.google.gerrit.extensions.client.testing.RangeSubject.assertThat ( range ) . isInvalid ( ) ; }
Source:
public void setControl ( com.google.gerrit.server.project.ChangeControl control ) { this . control = control ; }

Target:
public void setNotes ( com.google.gerrit.server.notedb.ChangeNotes notes ) { this . notes = notes ; }
Source:
public void exec ( com.googlesrouce.gerrit.plugins.github.git.GitImportJob job ) { executor.execute ( job ) ; }

Target:
public void exec ( com.googlesrouce.gerrit.plugins.github.git.GitImportJob job ) { executor.execute ( requestScopePropagator.wrap ( job ) ) ; }
Source:
protected void configure ( ) { command ( "git-lfs-authenticate" ) . to ( com.google.gerrit.sshd.plugin.LfsPluginAuthCommand.class ) ; com.google.gerrit.extensions.registration.DynamicItem.itemOf ( binder ( ) , com.google.gerrit.sshd.plugin.LfsPluginAuthCommand.LfsSshPluginAuth.class ) ; }

Target:
protected void configure ( ) { if ( pluginProvided ) { command ( "git-lfs-authenticate" ) . to ( com.google.gerrit.sshd.plugin.LfsPluginAuthCommand.class ) ; com.google.gerrit.extensions.registration.DynamicItem.itemOf ( binder ( ) , com.google.gerrit.sshd.plugin.LfsPluginAuthCommand.LfsSshPluginAuth.class ) ; } }
Source:
protected com.google.gerrit.server.notedb.ChangeNotes newNotes ( com.google.gerrit.reviewdb.client.Change c ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.server.notedb.ChangeNotes ( repoManager , com.google.gerrit.server.notedb.AbstractChangeNotesTest.MIGRATION , allUsers , c.getProject ( ) , c ) . load ( ) ; }

Target:
protected com.google.gerrit.server.notedb.ChangeNotes newNotes ( com.google.gerrit.reviewdb.client.Change c ) throws com.google.gwtorm.server.OrmException { return new com.google.gerrit.server.notedb.ChangeNotes ( repoManager , com.google.gerrit.server.notedb.AbstractChangeNotesTest.MIGRATION , allUsers , changeNoteUtil , commentsUtil , c.getProject ( ) , c ) . load ( ) ; }
Source:
public void testGcWithoutCapability_Error ( ) throws java.lang.Exception { com.google.gerrit.acceptance.SshSession s = new com.google.gerrit.acceptance.SshSession ( server , user ) ; s.exec ( "gerrit gc --all" ) ; assertError ( "Capability runGC is required to access this resource" , s.getError ( ) ) ; s.close ( ) ; }

Target:
public void testGcWithoutCapability_Error ( ) throws java.lang.Exception { com.google.gerrit.acceptance.SshSession s = new com.google.gerrit.acceptance.SshSession ( server , user ) ; s.exec ( "gerrit gc --all" ) ; assertError ( ( "One of the following capabilities is required to access this" + " resource: [runGC, maintainServer]" ) , s.getError ( ) ) ; s.close ( ) ; }
Source:
public java.util.Set < com.google.gerrit.reviewdb.Account.Id > missing ( final java.lang.String key ) { return java.util.Collections.emptySet ( ) ; }

Target:
public com.google.gerrit.server.account.AccountIdSet missing ( final java.lang.String key ) { return AccountIdSet.EMPTY_SET ; }