auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.util.Map < java.lang.String , java.lang.Object > toSoyData ( javax.servlet.http.HttpServletRequest req , org.eclipse.jgit.revwalk.RevCommit commit , org.eclipse.jgit.util.GitDateFormatter df ) throws java.io.IOException { return toSoyData ( req , commit , com.google.gitiles.CommitSoyData.FieldSet.DEFAULT , df ) ; }

Target:
java.util.Map < java.lang.String , java.lang.Object > toSoyData ( javax.servlet.http.HttpServletRequest req , org.eclipse.jgit.revwalk.RevCommit commit , org.eclipse.jgit.util.GitDateFormatter df ) throws java.io.IOException { return toSoyData ( req , commit , com.google.gitiles.CommitSoyData.DEFAULT_FIELDS , df ) ; }
Source:
private static java.lang.String publicKey ( com.jcraft.jsch.KeyPair sshKey , java.lang.String comment ) throws java.io.UnsupportedEncodingException { java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream ( ) ; sshKey.writePublicKey ( out , comment ) ; return out.toString ( "ASCII" ) ; }

Target:
private static java.lang.String publicKey ( com.jcraft.jsch.KeyPair sshKey , java.lang.String comment ) throws java.io.UnsupportedEncodingException { java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream ( ) ; sshKey.writePublicKey ( out , comment ) ; return out.toString ( java.nio.charset.StandardCharsets.US_ASCII.name ( ) ) ; }
Source:
public java.util.List < com.google.gerrit.extensions.common.CommentInfo > commentsAsList ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return listComments.getComments ( revision ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot retrieve comments" , e ) ; } }

Target:
public java.util.List < com.google.gerrit.extensions.common.CommentInfo > commentsAsList ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return listComments.getComments ( revision ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot retrieve comments" , e ) ; } }
Source:
public boolean isOwner ( ) { return ( controlForRef ( AccessSection.ALL ) . isOwner ( ) ) || ( getCurrentUser ( ) . isAdministrator ( ) ) ; }

Target:
public boolean isOwner ( ) { return ( controlForRef ( AccessSection.ALL ) . isOwner ( ) ) || ( getCurrentUser ( ) . getCapabilities ( ) . canAdministrateServer ( ) ) ; }
Source:
public void login ( com.google.gerrit.server.account.AuthResult res , boolean rememberMe ) ;

Target:
public void login ( com.google.gerrit.server.account.AuthResult res , com.google.gerrit.server.account.AuthMethod meth , boolean rememberMe ) ;
Source:
public static void getBranches ( com.google.gerrit.reviewdb.client.Project.NameKey projectName , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JsArray < com.google.gerrit.client.projects.BranchInfo > > cb ) { new com.google.gerrit.client.rpc.RestApi ( "/projects/" ) . id ( projectName.get ( ) ) . view ( "branches" ) . get ( cb ) ; }

Target:
public static void getBranches ( com.google.gerrit.reviewdb.client.Project.NameKey name , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JsArray < com.google.gerrit.client.projects.BranchInfo > > cb ) { com.google.gerrit.client.projects.ProjectApi.project ( name ) . view ( "branches" ) . get ( cb ) ; }
Source:
public java.util.Collection < com.google.gerrit.common.data.AccessSection > getLocalAccessSections ( ) { return getConfig ( ) . getAccessSections ( ) ; }

Target:
public com.google.gerrit.reviewdb.Project getProject ( ) { return config.getProject ( ) ; }
Source:
default void onRemoveByKey ( org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.reviewdb.client.Account.Id accountId , com.google.gerrit.server.account.externalids.ExternalId.Key extIdKey ) throws java.io.IOException { onRemoveByKeys ( newNotesRev , accountId , java.util.Collections.singleton ( extIdKey ) ) ; }

Target:
default void onRemoveByKey ( org.eclipse.jgit.lib.ObjectId oldNotesRev , org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.reviewdb.client.Account.Id accountId , com.google.gerrit.server.account.externalids.ExternalId.Key extIdKey ) throws java.io.IOException { onRemoveByKeys ( oldNotesRev , newNotesRev , accountId , java.util.Collections.singleton ( extIdKey ) ) ; }
Source:
private java.io.File getResourceFile ( java.lang.String resourcePath ) { java.io.File resourceFile = new java.io.File ( staticResourcesPath , resourcePath ) ; return resourceFile ; }

Target:
private java.nio.file.Path getResourceFile ( java.lang.String resourcePath ) { return staticResourcesPath.resolve ( resourcePath ) ; }
Source:
public void rebase ( ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit.Result r = createChange ( ) ; gApi.changes ( ) . id ( r.getChangeId ( ) ) . revision ( r.getCommit ( ) . name ( ) ) . rebase ( ) ; }

Target:
public void rebaseUpToDateChange ( ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit.Result r = createChange ( ) ; gApi.changes ( ) . id ( r.getChangeId ( ) ) . revision ( r.getCommit ( ) . name ( ) ) . rebase ( ) ; }
Source:
private void initEditor ( java.lang.String content ) { cm = net.codemirror.lib.CodeMirror.create ( editor , getConfig ( ) ) ; cm.setValue ( content ) ; }

Target:
public void onSuccess ( java.lang.Void result ) { net.codemirror.theme.ThemeLoader.loadTheme ( prefs.theme ( ) , themeCallback ) ; group2.done ( ) ; group3.done ( ) ; }
Source:
public com.googlecode.prolog_cafe.lang.NumberTerm sqrt ( ) { if ( ( this . val ) < 0 ) throw new com.googlecode.prolog_cafe.lang.EvaluationException ( "undefined" ) ; return new com.googlecode.prolog_cafe.lang.DoubleTerm ( java.lang.Math.sqrt ( this . val ) ) ; }

Target:
public com.googlecode.prolog_cafe.lang.NumberTerm sqrt ( ) { if ( ( this . val ) < 0 ) throw new com.googlecode.prolog_cafe.exceptions.EvaluationException ( "undefined" ) ; return new com.googlecode.prolog_cafe.lang.DoubleTerm ( java.lang.Math.sqrt ( this . val ) ) ; }
Source:
private com.google.gerrit.server.plugins.ServerPlugin loadExternalPlugin ( java.lang.String name , java.io.File scriptFile , org.eclipse.jgit.internal.storage.file.FileSnapshot snapshot ) { return externalPluginFactory.get ( name , scriptFile , pluginUserFactory.create ( name ) , snapshot ) ; }

Target:
private java.io.File getPluginDataDir ( java.lang.String name ) { return new java.io.File ( dataDir , name ) ; }
Source:
public boolean hasChange ( ) { return source.hasChange ( ) ; }

Target:
public boolean hasChange ( ) { return index.getSchema ( ) . getFields ( ) . containsKey ( ChangeField.CHANGE.getName ( ) ) ; }
Source:
public void start ( ) { }

Target:
public void start ( ) { refreshThread.start ( ) ; }
Source:
public void onSuccess ( java.lang.String result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange2 ( psId.getParentKey ( ) , java.lang.String.valueOf ( psId.get ( ) ) ) ) ; }

Target:
public void onSuccess ( java.lang.String result ) { com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( psId.getParentKey ( ) , java.lang.String.valueOf ( psId.get ( ) ) ) ) ; }
Source:
public void setText ( java.lang.String text ) { focusHint ( ) ; super . setText ( text ) ; if ( ! ( isFocused ) ) { blurHint ( ) ; } }

Target:
public void setText ( java.lang.String text ) { focusHint ( ) ; super . setText ( text ) ; prevText = text ; if ( ! ( isFocused ) ) { blurHint ( ) ; } }
Source:
public void onSuccess ( java.lang.Void result ) { loadConfigInfo ( info , rev ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { com.google.gerrit.client.change.ChangeScreen.logger.log ( java.util.logging.Level.SEVERE , ( "Loading file list and inline comments failed: " + ( caught.getMessage ( ) ) ) ) ; loadConfigInfo ( info , rev ) ; }
Source:
public static void display ( final com.google.gerrit.client.Screen view ) { if ( ( com.google.gerrit.client.Gerrit.currentScreen ) != null ) { com.google.gerrit.client.Gerrit.body.remove ( com.google.gerrit.client.Gerrit.currentScreen ) ; } com.google.gerrit.client.Gerrit.currentScreen = view ; com.google.gerrit.client.Gerrit.body.add ( com.google.gerrit.client.Gerrit.currentScreen ) ; }

Target:
public static void display ( final com.google.gerrit.client.ui.Screen view ) { if ( ( com.google.gerrit.client.Gerrit.currentScreen ) != null ) { com.google.gerrit.client.Gerrit.body.remove ( com.google.gerrit.client.Gerrit.currentScreen ) ; } com.google.gerrit.client.Gerrit.currentScreen = view ; com.google.gerrit.client.Gerrit.body.add ( com.google.gerrit.client.Gerrit.currentScreen ) ; }
Source:
com.google.gerrit.server.notedb.ChangeUpdate create ( com.google.gerrit.server.project.ChangeControl ctl , java.util.Date when ) ;

Target:
com.google.gerrit.server.notedb.ChangeUpdate create ( com.google.gerrit.server.notedb.ChangeNotes notes , com.google.gerrit.server.CurrentUser user , java.util.Date when ) ;
Source:
protected com.google.gson.GsonBuilder createGsonBuilder ( ) { final com.google.gson.GsonBuilder g = super . createGsonBuilder ( ) ; g.registerTypeAdapter ( org.eclipse.jgit.diff.Edit.class , new com.google.gerrit.httpd.rpc.EditDeserializer ( ) ) ; return g ; }

Target:
protected com.google.gson.GsonBuilder createGsonBuilder ( ) { final com.google.gson.GsonBuilder g = super . createGsonBuilder ( ) ; g.registerTypeAdapter ( com.google.gerrit.prettify.common.LineEdit.class , new com.google.gerrit.httpd.rpc.EditDeserializer ( ) ) ; return g ; }
Source:
public void setSession ( final org.apache.sshd.server.session.ServerSession session ) { final com.google.gerrit.sshd.SshSession s = session.getAttribute ( SshSession.KEY ) ; this . ctx = sshScope.newContext ( s , commandLine ) ; }

Target:
public void setSession ( final org.apache.sshd.server.session.ServerSession session ) { final com.google.gerrit.sshd.SshSession s = session.getAttribute ( SshSession.KEY ) ; this . ctx = sshScope.newContext ( schemaFactory , s , commandLine ) ; }
Source:
com.google.common.util.concurrent.ListenableFuture < ? > replace ( org.apache.lucene.index.Term term , org.apache.lucene.document.Document doc ) throws java.io.IOException { return new com.google.gerrit.lucene.SubIndex.NrtFuture ( writer.updateDocument ( term , doc ) ) ; }

Target:
com.google.common.util.concurrent.ListenableFuture < ? > replace ( org.apache.lucene.index.Term term , org.apache.lucene.document.Document doc ) throws java.io.IOException { return new NrtFuture ( writer.updateDocument ( term , doc ) ) ; }
Source:
private void add ( final javax.mail.Message.RecipientType rt , final com.google.gerrit.client.reviewdb.UserIdentity who ) throws javax.mail.MessagingException { if ( ( who != null ) && ( ( who.getAccount ( ) ) != null ) ) { add ( rt , who.getAccount ( ) ) ; } }

Target:
private void add ( final com.google.gerrit.server.mail.RecipientType rt , final com.google.gerrit.client.reviewdb.UserIdentity who ) { if ( ( who != null ) && ( ( who.getAccount ( ) ) != null ) ) { add ( rt , who.getAccount ( ) ) ; } }
Source:
private void assertDeleteForbidden ( ) throws java.lang.Exception { try { branch ( ) . delete ( ) ; org.junit.Assert.fail ( "Expected AuthException" ) ; } catch ( com.google.gerrit.extensions.restapi.AuthException expected ) { } branch ( ) . get ( ) ; }

Target:
private void assertDeleteForbidden ( ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.AuthException.class ) ; branch ( ) . delete ( ) ; branch ( ) . get ( ) ; }
Source:
private static boolean missing ( final java.lang.String value ) { return ( value == null ) || ( value.trim ( ) . equals ( "" ) ) ; }

Target:
private static boolean isConfig ( final org.eclipse.jgit.transport.ReceiveCommand cmd ) { return cmd.getRefName ( ) . equals ( GitRepositoryManager.REF_CONFIG ) ; }
Source:
com.google.gwtorm.client.ResultSet < com.google.gerrit.reviewdb.Change > byProjectKey ( com.google.gerrit.reviewdb.Project.NameKey p , com.google.gerrit.reviewdb.Change.Key key ) throws com.google.gwtorm.client.OrmException ;

Target:
com.google.gwtorm.client.ResultSet < com.google.gerrit.reviewdb.Change > byBranchKey ( com.google.gerrit.reviewdb.Branch.NameKey p , com.google.gerrit.reviewdb.Change.Key key ) throws com.google.gwtorm.client.OrmException ;
Source:
public void testIndexChangeFailed ( ) throws java.lang.Exception { setUpMocks ( com.ericsson.gerrit.plugins.syncindex.RestSessionTest.INDEX_OP , com.ericsson.gerrit.plugins.syncindex.RestSessionTest.FAILED , com.ericsson.gerrit.plugins.syncindex.RestSessionTest.ERROR_MSG , com.ericsson.gerrit.plugins.syncindex.RestSessionTest.DO_NOT_THROW_EXCEPTION ) ; com.google.common.truth.Truth.assertThat ( restClient.index ( com.ericsson.gerrit.plugins.syncindex.RestSessionTest.CHANGE_NUMBER ) ) . isFalse ( ) ; }

Target:
public void testIndexChangeFailed ( ) throws java.lang.Exception { setUpMocks ( com.ericsson.gerrit.plugins.multimaster.RestSessionTest.INDEX_OP , com.ericsson.gerrit.plugins.multimaster.RestSessionTest.FAILED , com.ericsson.gerrit.plugins.multimaster.RestSessionTest.ERROR_MSG , com.ericsson.gerrit.plugins.multimaster.RestSessionTest.DO_NOT_THROW_EXCEPTION ) ; com.google.common.truth.Truth.assertThat ( restClient.index ( com.ericsson.gerrit.plugins.multimaster.RestSessionTest.CHANGE_NUMBER ) ) . isFalse ( ) ; }
Source:
public void removeChangeListener ( com.google.gerrit.common.ChangeListener listener ) { }

Target:
public void removeEventListener ( com.google.gerrit.common.EventListener listener ) { }
Source:
public void deleteBranchByProjectOwner ( ) throws java.lang.Exception { grantOwner ( ) ; setApiUser ( user ) ; assertDeleteSucceeds ( ) ; }

Target:
public void deleteBranchByAdmin ( ) throws java.lang.Exception { assertDeleteSucceeds ( testBranch ) ; }
Source:
public void testParseBad ( ) throws java.lang.Exception { com.google.gerrit.server.git.ValidationError.Sink sink = org.easymock.EasyMock.createNiceMock ( ValidationError.Sink.class ) ; org.easymock.EasyMock.replay ( sink ) ; com.google.gerrit.server.git.QueryList.parse ( com.google.gerrit.server.git.QueryListTest.L_BAD , sink ) ; }

Target:
public void testParseBad ( ) throws java.lang.Exception { com.google.gerrit.server.git.ValidationError.Sink sink = org.easymock.EasyMock.createNiceMock ( ValidationError.Sink.class ) ; org.easymock.EasyMock.replay ( sink ) ; com.google.gerrit.server.account.QueryList.parse ( com.google.gerrit.server.account.QueryListTest.L_BAD , sink ) ; }
Source:
public void patchSetDetail ( final com.google.gerrit.reviewdb.PatchSet.Id idA , final com.google.gerrit.reviewdb.PatchSet.Id idB , final com.google.gerrit.reviewdb.AccountDiffPreference diffPrefs , final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.PatchSetDetail > callback ) { patchSetDetail.create ( idA , idB , diffPrefs ) . to ( callback ) ; }

Target:
public void patchSetDetail2 ( com.google.gerrit.reviewdb.PatchSet.Id baseId , com.google.gerrit.reviewdb.PatchSet.Id id , com.google.gerrit.reviewdb.AccountDiffPreference diffPrefs , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.PatchSetDetail > callback ) { patchSetDetail.create ( baseId , id , diffPrefs ) . to ( callback ) ; }
Source:
public static com.google.inject.Injector createInjector ( ) { return com.google.gerrit.server.config.GerritGlobalModule.createInjector ( com.google.inject.Guice.createInjector ( com.google.inject.Stage.PRODUCTION , new com.google.gerrit.server.config.DatabaseModule ( ) ) ) ; }

Target:
protected java.lang.Class < ? extends com.google.inject.Provider < java.lang.String > > provider ( ) { return com.google.gerrit.server.config.CanonicalWebUrlProvider.class ; }
Source:
private java.io.Writer getWriter ( javax.servlet.http.HttpServletResponse res ) throws java.io.IOException { return new java.io.OutputStreamWriter ( res.getOutputStream ( ) , res.getCharacterEncoding ( ) ) ; }

Target:
protected static java.io.Writer newWriter ( java.io.OutputStream os , javax.servlet.http.HttpServletResponse res ) throws java.io.IOException { return new java.io.OutputStreamWriter ( os , res.getCharacterEncoding ( ) ) ; }
Source:
protected void configure ( ) { if ( ! ( groupsMigration.disableGroupReviewDb ( ) ) ) { com.google.gerrit.extensions.registration.DynamicSet.bind ( binder ( ) , com.google.gerrit.server.audit.GroupMemberAuditListener.class ) . to ( com.google.gerrit.server.group.DbGroupMemberAuditListener.class ) ; } }

Target:
protected void configure ( ) { if ( ! ( groupsMigration.disableGroupReviewDb ( ) ) ) { com.google.gerrit.extensions.registration.DynamicSet.bind ( binder ( ) , com.google.gerrit.server.audit.group.GroupAuditListener.class ) . to ( com.google.gerrit.server.group.DbGroupMemberAuditListener.class ) ; } }
Source:
protected void fireEventForUnrestrictedListeners ( com.google.gerrit.server.events.Event event ) { if ( ! ( com.ericsson.gerrit.plugins.syncevents.Context.isForwardedEvent ( ) ) ) { super . fireEventForUnrestrictedListeners ( event ) ; } }

Target:
protected void fireEventForUnrestrictedListeners ( com.google.gerrit.server.events.Event event ) { if ( ! ( com.ericsson.gerrit.plugins.highavailability.forwarder.Context.isForwardedEvent ( ) ) ) { super . fireEventForUnrestrictedListeners ( event ) ; } }
Source:
private static com.google.gerrit.server.git.MergeSuperSet.QueryKey create ( com.google.gerrit.reviewdb.client.Branch.NameKey branch , java.lang.Iterable < java.lang.String > hashes ) { return new com.google.gerrit.server.git.AutoValue_MergeSuperSet_QueryKey ( branch , com.google.common.collect.ImmutableSet.copyOf ( hashes ) ) ; }

Target:
public static com.google.gerrit.server.query.change.InternalChangeQuery query ( com.google.gerrit.server.query.change.InternalChangeQuery q ) { java.util.Set < java.lang.String > fields = com.google.common.collect.ImmutableSet.of ( ChangeField.CHANGE.getName ( ) , ChangeField.PATCH_SET.getName ( ) , ChangeField.MERGEABLE.getName ( ) ) ; return q.setRequestedFields ( fields ) ; }
Source:
protected abstract com.google.gwtorm.client.ResultSet < T > scanPrimaryKey ( byte [ ] fromKey , byte [ ] toKey , int limit ) throws com.google.gwtorm.client.OrmException ;

Target:
protected abstract com.google.gwtorm.client.ResultSet < T > scanPrimaryKey ( byte [ ] fromKey , byte [ ] toKey , int limit , boolean order ) throws com.google.gwtorm.client.OrmException ;
Source:
public com.codahale.metrics.Metric getMetric ( java.lang.String name ) { return registry.getMetrics ( ) . get ( name ) ; }

Target:
public com.codahale.metrics.Metric getMetric ( java.lang.String name ) { com.codahale.metrics.Metric m = bucketed.get ( name ) ; return m != null ? m : registry.getMetrics ( ) . get ( name ) ; }
Source:
public java.io.Reader get ( java.lang.String endPoint ) throws java.io.IOException { org.apache.http.client.methods.HttpGet get = new org.apache.http.client.methods.HttpGet ( ( "http://localhost:8080/a" + endPoint ) ) ; org.apache.http.HttpResponse response = getClient ( ) . execute ( get ) ; java.io.Reader reader = new java.io.InputStreamReader ( response.getEntity ( ) . getContent ( ) ) ; reader.skip ( JSON_MAGIC.length ) ; return reader ; }

Target:
public com.google.gerrit.acceptance.RestResponse get ( java.lang.String endPoint ) throws java.io.IOException { org.apache.http.client.methods.HttpGet get = new org.apache.http.client.methods.HttpGet ( ( "http://localhost:8080/a" + endPoint ) ) ; return new com.google.gerrit.acceptance.RestResponse ( getClient ( ) . execute ( get ) ) ; }
Source:
public com.google.gerrit.server.IdentifiedUser create ( final com.google.gerrit.server.AccessPath accessPath , final com.google.gerrit.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( accessPath , authConfig , accountCache , realm , remotePeerProvider , dbProvider , id ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( final com.google.gerrit.server.AccessPath accessPath , final com.google.gerrit.reviewdb.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( accessPath , authConfig , canonicalUrl , realm , accountCache , remotePeerProvider , dbProvider , id ) ; }
Source:
public void testEventSentOK ( ) throws java.lang.Exception { com.google.gerrit.server.events.Event event = setUpMocksForEvent ( true , "" , false ) ; com.google.common.truth.Truth.assertThat ( restForwarder.send ( event ) ) . isTrue ( ) ; }

Target:
public void testEventSentThrowsException ( ) throws java.lang.Exception { com.google.gerrit.server.events.Event event = setUpMocksForEvent ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestForwarderTest.FAILED , com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestForwarderTest.EXCEPTION_MSG , com.ericsson.gerrit.plugins.highavailability.forwarder.rest.RestForwarderTest.THROW_EXCEPTION ) ; com.google.common.truth.Truth.assertThat ( restForwarder.send ( event ) ) . isFalse ( ) ; }
Source:
private com.google.gerrit.reviewdb.client.Change getChange ( com.google.gerrit.extensions.common.ChangeInfo info ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.common.ChangeHookApiListener.unwrap ( db.get ( ) ) . changes ( ) . get ( new com.google.gerrit.reviewdb.client.Change.Id ( info._number ) ) ; }

Target:
private com.google.gerrit.server.notedb.ChangeNotes getNotes ( com.google.gerrit.extensions.common.ChangeInfo info ) throws com.google.gwtorm.server.OrmException { try { return changeNotesFactory.createChecked ( new com.google.gerrit.reviewdb.client.Change.Id ( info._number ) ) ; } catch ( com.google.gerrit.server.project.NoSuchChangeException e ) { throw new com.google.gwtorm.server.OrmException ( e ) ; } }
Source:
private void postMessage ( java.lang.String changeId , java.lang.String msg ) throws java.io.IOException { com.google.gerrit.acceptance.rest.change.ChangeMessagesIT.ReviewInput in = new com.google.gerrit.acceptance.rest.change.ChangeMessagesIT.ReviewInput ( ) ; in.message = msg ; session.post ( ( ( "/changes/" + changeId ) + "/revisions/1/review" ) , in ) . consume ( ) ; }

Target:
private void postMessage ( java.lang.String changeId , java.lang.String msg ) throws java.io.IOException { com.google.gerrit.extensions.api.changes.ReviewInput in = new com.google.gerrit.extensions.api.changes.ReviewInput ( ) ; in.message = msg ; session.post ( ( ( "/changes/" + changeId ) + "/revisions/1/review" ) , in ) . consume ( ) ; }
Source:
public void flushBuffer ( ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public synchronized void flushBuffer ( ) throws java.io.IOException { if ( ( outputStream ) != null ) { outputStream.flush ( ) ; } if ( ( writer ) != null ) { writer.flush ( ) ; } }
Source:
public void validCert ( ) throws java.lang.Exception { org.eclipse.jgit.transport.PushCertificate cert = newSignedCert ( validNonce ( ) , com.google.gerrit.gpg.testutil.TestKeys.validKeyWithoutExpiration ( ) ) ; assertProblems ( cert ) ; }

Target:
public void validCert ( ) throws java.lang.Exception { org.eclipse.jgit.transport.PushCertificate cert = newSignedCert ( validNonce ( ) , com.google.gerrit.gpg.testutil.TestKeys.validKeyWithoutExpiration ( ) ) ; assertNoProblems ( cert ) ; }
Source:
private final native void setIgnoreWhitespaceRaw ( java.lang.String i ) ;

Target:
public final native boolean skipUnchanged ( ) ;
Source:
protected void format ( ) throws com.google.gerrit.common.errors.EmailException { appendText ( textTemplate ( "AddKey" ) ) ; }

Target:
protected void format ( ) throws com.google.gerrit.common.errors.EmailException { appendText ( textTemplate ( "AddKey" ) ) ; appendHtml ( soyHtmlTemplate ( "AddKeyHtml" ) ) ; }
Source:
protected void configure ( ) { bind ( java.nio.file.Path.class ) . annotatedWith ( com.google.gerrit.server.config.SitePath.class ) . toInstance ( sitePath ) ; }

Target:
protected void configure ( ) { bind ( java.nio.file.Path.class ) . annotatedWith ( com.google.gerrit.server.config.SitePath.class ) . toInstance ( getSitePath ( ) ) ; }
Source:
public void testRightEventIsForwarded ( ) throws java.lang.Exception { setUpMocks ( true ) ; com.ericsson.gerrit.plugins.syncevents.Context.setForwardedEvent ( ) ; eventHandler.onEvent ( event ) ; com.ericsson.gerrit.plugins.syncevents.Context.unsetForwardedEvent ( ) ; org.mockito.Mockito.verifyZeroInteractions ( restSession ) ; }

Target:
public void testRightEventIsForwarded ( ) throws java.lang.Exception { setUpMocks ( true ) ; com.ericsson.gerrit.plugins.highavailability.forwarder.Context.setForwardedEvent ( true ) ; eventHandler.onEvent ( event ) ; com.ericsson.gerrit.plugins.highavailability.forwarder.Context.unsetForwardedEvent ( ) ; org.mockito.Mockito.verifyZeroInteractions ( eventForwarder ) ; }
Source:
protected void updateOwnerGroup ( com.google.gerrit.client.groups.GroupInfo ownerGroup ) { group.setOwnerUUID ( ownerGroup.getGroupUUID ( ) ) ; }

Target:
protected void updateOwnerGroup ( com.google.gerrit.client.groups.GroupInfo ownerGroup ) { group.setOwnerUUID ( ownerGroup.getGroupUUID ( ) ) ; group.owner ( ownerGroup.name ( ) ) ; }
Source:
void setUseContributorArgreements ( boolean on ) { contributorAgreements = com.google.gerrit.reviewdb.client.Project.InheritableBoolean.TRUE ; }

Target:
void setUseContributorArgreements ( boolean on ) { contributorAgreements = com.google.gerrit.extensions.common.InheritableBoolean.TRUE ; }
Source:
public final java.lang.String approvalKey ( ) { return approvalKey ; }

Target:
public void addValue ( final java.lang.Short val ) { this . value = val ; }
Source:
public com.google.gerrit.reviewdb.client.Change update ( com.google.gerrit.reviewdb.client.Change change ) { if ( ( change.getStatus ( ) ) == ( com.google.gerrit.reviewdb.client.Change.Status.ABANDONED ) ) { change.setStatus ( Change.Status.NEW ) ; com.google.gerrit.server.ChangeUtil.updated ( change ) ; return change ; } return null ; }

Target:
public com.google.gerrit.reviewdb.client.Change update ( com.google.gerrit.reviewdb.client.Change change ) { if ( ( change.getStatus ( ) ) == ( com.google.gerrit.reviewdb.client.Change.Status.ABANDONED ) ) { change.setStatus ( Status.NEW ) ; com.google.gerrit.server.ChangeUtil.updated ( change ) ; return change ; } return null ; }
Source:
public java.lang.String getLoginHttpHeader ( ) { return sConfig.loginHttpHeader ; }

Target:
public java.lang.String getLoginHttpHeader ( ) { return getGerritConfig ( ) . getString ( "auth" , null , "httpheader" ) ; }
Source:
public org.eclipse.jgit.lib.RefUpdate.Result deleteFile ( com.google.gerrit.server.edit.ChangeEdit edit , java.lang.String file ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.project.InvalidChangeOperationException , java.io.IOException { return modify ( edit , new com.google.gerrit.server.edit.tree.DeleteFileModification ( file ) ) ; }

Target:
public void deleteFile ( org.eclipse.jgit.lib.Repository repository , com.google.gerrit.server.edit.ChangeEdit changeEdit , java.lang.String file ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.project.InvalidChangeOperationException , java.io.IOException { modifyTree ( repository , changeEdit , new com.google.gerrit.server.edit.tree.DeleteFileModification ( file ) ) ; }
Source:
protected final boolean after ( int line , org.eclipse.jgit.diff.Edit e ) { return ( getEnd ( e ) ) < line ; }

Target:
abstract void incOther ( com.google.gerrit.prettify.common.EditList.Hunk hunk ) ;
Source:
public static synchronized int getSshdPort ( ) { return ( com.google.gerrit.server.ssh.GerritSshDaemon.sshd ) != null ? com.google.gerrit.server.ssh.GerritSshDaemon.sshd.getPort ( ) : 0 ; }

Target:
public static synchronized java.net.InetSocketAddress getAddress ( ) { if ( ( ( com.google.gerrit.server.ssh.GerritSshDaemon.sshd ) != null ) && ( ( com.google.gerrit.server.ssh.GerritSshDaemon.preferredAddress ) == null ) ) { com.google.gerrit.server.ssh.GerritSshDaemon.preferredAddress = com.google.gerrit.server.ssh.GerritSshDaemon.computePreferredAddress ( ) ; } return com.google.gerrit.server.ssh.GerritSshDaemon.preferredAddress ; }
Source:
public boolean isVisible ( ) { return ( getProjectControl ( ) . visibleForReplication ( ) ) || ( canPerform ( Permission.READ ) ) ; }

Target:
public boolean isVisible ( ) { return ( projectControl.visibleForReplication ( ) ) || ( canPerform ( Permission.READ ) ) ; }
Source:
public final void beforeTest ( ) throws java.lang.Exception { server = com.google.gerrit.acceptance.GerritServer.start ( ) ; server.getTestInjector ( ) . injectMembers ( this ) ; }

Target:
private void beforeTest ( org.eclipse.jgit.lib.Config cfg ) throws java.lang.Exception { server = com.google.gerrit.acceptance.GerritServer.start ( cfg ) ; server.getTestInjector ( ) . injectMembers ( this ) ; }
Source:
public com.google.gerrit.server.account.AccountState getByUsername ( java.lang.String username ) { com.google.gerrit.reviewdb.Account.Id id = byName.get ( username ) ; return id != null ? byId.get ( id ) : null ; }

Target:
public com.google.gerrit.server.account.AccountState getByUsername ( java.lang.String username ) { com.google.gerrit.reviewdb.Account.Id id = byName.get ( new com.google.gerrit.reviewdb.Account.Username ( username ) ) ; return id != null ? byId.get ( id ) : null ; }
Source:
public static final com.google.gerrit.common.data.LabelType patchSetLock ( ) { com.google.gerrit.common.data.LabelType label = com.google.gerrit.server.project.Util.category ( "Patch-Set-Lock" , com.google.gerrit.server.project.Util.value ( 1 , "Patch Set Locked" ) , com.google.gerrit.server.project.Util.value ( 0 , "Patch Set Unlocked" ) ) ; label.setFunctionName ( "PatchSetLock" ) ; return label ; }

Target:
public static final com.google.gerrit.common.data.LabelType patchSetLock ( ) { com.google.gerrit.common.data.LabelType label = com.google.gerrit.server.project.Util.category ( "Patch-Set-Lock" , com.google.gerrit.server.project.Util.value ( 1 , "Patch Set Locked" ) , com.google.gerrit.server.project.Util.value ( 0 , "Patch Set Unlocked" ) ) ; label.setFunction ( LabelFunction.PATCH_SET_LOCK ) ; return label ; }
Source:
public void testCreateGroupWhenGroupAlreadyExists_PreconditionFailed ( ) throws com.google.gwtorm.server.OrmException , com.jcraft.jsch.JSchException , java.io.IOException { com.google.gerrit.acceptance.RestResponse r = session.put ( "/groups/Administrators" ) ; org.junit.Assert.assertEquals ( HttpStatus.SC_PRECONDITION_FAILED , r.getStatusCode ( ) ) ; }

Target:
public void testCreateGroupWhenGroupAlreadyExists_Conflict ( ) throws com.google.gwtorm.server.OrmException , com.jcraft.jsch.JSchException , java.io.IOException { com.google.gerrit.acceptance.RestResponse r = session.put ( "/groups/Administrators" ) ; org.junit.Assert.assertEquals ( HttpStatus.SC_CONFLICT , r.getStatusCode ( ) ) ; }
Source:
public void tearDown ( ) { requestContext.setContext ( null ) ; if ( ( db ) != null ) { db.close ( ) ; } com.google.gerrit.testutil.InMemoryDatabase.drop ( schemaFactory ) ; }

Target:
public void tearDown ( ) { requestContext.setContext ( null ) ; if ( ( db ) != null ) { db.close ( ) ; } com.google.gerrit.testing.InMemoryDatabase.drop ( schemaFactory ) ; }
Source:
public static java.lang.String toAccountGroup ( final com.google.gerrit.reviewdb.AccountGroup.Id id ) { return "admin,group," + ( id.toString ( ) ) ; }

Target:
public static java.lang.String toAccountGroup ( final com.google.gerrit.reviewdb.AccountGroup.Id id ) { return "/admin/groups/" + ( id.toString ( ) ) ; }
Source:
public static java.lang.String mediumFormat ( final java.util.Date dt ) { if ( dt == null ) { return "" ; } return com.google.gerrit.client.FormatUtil.dtfmt.format ( new java.util.Date ( dt.getTime ( ) ) ) ; }

Target:
public static java.lang.String mediumFormat ( final java.util.Date dt ) { if ( dt == null ) { return "" ; } com.google.gerrit.client.FormatUtil.ensureInited ( ) ; return com.google.gerrit.client.FormatUtil.dtfmt.format ( new java.util.Date ( dt.getTime ( ) ) ) ; }
Source:
public int hashCode ( ) { return value ( ) . hashCode ( ) ; }

Target:
public int hashCode ( ) { return ( 127 * ( "value" . hashCode ( ) ) ) ^ ( value ( ) . hashCode ( ) ) ; }
Source:
private void addMessage ( java.lang.String message ) { messages.add ( new com.google.gerrit.server.git.ReceiveCommits.Message ( message , false ) ) ; }

Target:
void addError ( java.lang.String error ) { messages.add ( new com.google.gerrit.server.git.validators.CommitValidationMessage ( error , true ) ) ; }
Source:
private void doVerify ( ) { org.easymock.classextension.EasyMock.verify ( mockDb , pc , pcf , grm ) ; org.easymock.classextension.EasyMock.verify ( refMocks.toArray ( ) ) ; }

Target:
private void doVerify ( ) { org.easymock.EasyMock.verify ( mockDb , pc , pcf , grm ) ; org.easymock.EasyMock.verify ( refMocks.toArray ( ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { repo = new org.eclipse.jgit.junit.TestRepository < org.eclipse.jgit.internal.storage.dfs.DfsRepository > ( new org.eclipse.jgit.internal.storage.dfs.InMemoryRepository ( new org.eclipse.jgit.internal.storage.dfs.DfsRepositoryDescription ( "test" ) ) ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { repo = new org.eclipse.jgit.junit.TestRepository < org.eclipse.jgit.internal.storage.dfs.DfsRepository > ( new org.eclipse.jgit.internal.storage.dfs.InMemoryRepository ( new org.eclipse.jgit.internal.storage.dfs.DfsRepositoryDescription ( "repo" ) ) ) ; }
Source:
public com.googlesource.gerrit.plugins.github.oauth.OAuthCookie getFromUser ( java.lang.String username , java.lang.String email , java.lang.String fullName ) { try { return new com.googlesource.gerrit.plugins.github.oauth.OAuthCookie ( cipher , username , email , fullName ) ; } catch ( com.googlesource.gerrit.plugins.github.oauth.OAuthTokenException e ) { return null ; } }

Target:
public com.googlesource.gerrit.plugins.github.oauth.OAuthCookie getFromUser ( java.lang.String username , java.lang.String email , java.lang.String fullName , java.util.SortedSet < com.googlesource.gerrit.plugins.github.oauth.OAuthProtocol.Scope > scopes ) { try { return new com.googlesource.gerrit.plugins.github.oauth.OAuthCookie ( cipher , username , email , fullName , scopes ) ; } catch ( com.googlesource.gerrit.plugins.github.oauth.OAuthTokenException e ) { return null ; } }
Source:
public void onSuccess ( com.google.gwtjsonrpc.client.VoidResult result ) { actionsPanel.remove ( b ) ; fireOnSuggestRefresh ( ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.data.ChangeDetail result ) { changeScreen.display ( result ) ; }
Source:
private void enable ( final boolean on ) { showSiteHeader.setEnabled ( on ) ; useFlashClipboard.setEnabled ( on ) ; maximumPageSize.setEnabled ( on ) ; defaultContext.setEnabled ( on ) ; }

Target:
private void enable ( final boolean on ) { showSiteHeader.setEnabled ( on ) ; useFlashClipboard.setEnabled ( on ) ; copySelfOnEmails.setEnabled ( on ) ; maximumPageSize.setEnabled ( on ) ; defaultContext.setEnabled ( on ) ; }
Source:
protected java.io.PrintWriter startRenderText ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res ) throws java.io.IOException { setApiHeaders ( res , com.google.gitiles.FormatType.TEXT ) ; return res.getWriter ( ) ; }

Target:
protected java.io.Writer startRenderText ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res ) throws java.io.IOException { return startRenderText ( req , res , com.google.gitiles.FormatType.TEXT.getMimeType ( ) ) ; }
Source:
private static int version ( com.google.gerrit.server.index.change.ChangeIndex i ) { return i.getSchema ( ) . getVersion ( ) ; }

Target:
private static int version ( com.google.gerrit.server.index.Index < ? , ? > i ) { return i.getSchema ( ) . getVersion ( ) ; }
Source:
private boolean isPrimitive ( final org.kohsuke.args4j.spi.Setter setter ) { return setter.getType ( ) . isPrimitive ( ) ; }

Target:
private < T > boolean isPrimitive ( org.kohsuke.args4j.spi.Setter < T > setter ) { return setter.getType ( ) . isPrimitive ( ) ; }
Source:
protected Account.Id getAccountId ( ) { com.google.gerrit.server.CurrentUser u = currentUser.get ( ) ; if ( u instanceof com.google.gerrit.server.IdentifiedUser ) { return ( ( com.google.gerrit.server.IdentifiedUser ) ( u ) ) . getAccountId ( ) ; } return null ; }

Target:
protected Account.Id getAccountId ( ) { com.google.gerrit.server.CurrentUser u = currentUser.get ( ) ; if ( u.isIdentifiedUser ( ) ) { return ( ( com.google.gerrit.server.IdentifiedUser ) ( u ) ) . getAccountId ( ) ; } return null ; }
Source:
private static com.google.gerrit.server.change.ConsistencyChecker.Result create ( com.google.gerrit.reviewdb.client.Change.Id id , java.util.List < com.google.gerrit.extensions.common.ProblemInfo > problems ) { return new com.google.gerrit.server.change.AutoValue_ConsistencyChecker_Result ( id , null , problems ) ; }

Target:
private static com.google.gerrit.server.change.ConsistencyChecker.Result create ( com.google.gerrit.server.project.ChangeControl ctl , java.util.List < com.google.gerrit.extensions.common.ProblemInfo > problems ) { return new com.google.gerrit.server.change.AutoValue_ConsistencyChecker_Result ( ctl.getId ( ) , ctl.getChange ( ) , problems ) ; }
Source:
private com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > rewrite ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in , int limit ) throws com.google.gerrit.server.query.QueryParseException { return rewrite.rewrite ( in , 0 , limit ) ; }

Target:
private com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > rewrite ( com.google.gerrit.server.query.Predicate < com.google.gerrit.server.query.change.ChangeData > in ) throws com.google.gerrit.server.query.QueryParseException { return rewrite.rewrite ( in , com.google.gerrit.server.index.IndexRewriteTest.options ( 0 , com.google.gerrit.common.data.GlobalCapability.DEFAULT_MAX_QUERY_LIMIT ) ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.rpc.NativeString result ) { submitTypeRecord = com.google.gerrit.common.data.SubmitTypeRecord.OK ( Project.SubmitType.valueOf ( result.asString ( ) ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.rpc.NativeString result ) { submitTypeRecord = com.google.gerrit.common.data.SubmitTypeRecord.OK ( com.google.gerrit.extensions.common.SubmitType.valueOf ( result.asString ( ) ) ) ; }
Source:
private void setNew ( com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.reviewdb.client.ChangeMessage msg ) { sendMergeFail ( c , msg , true ) ; }

Target:
private void setNew ( com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.reviewdb.client.ChangeMessage msg ) throws com.google.gwtorm.server.OrmException { sendMergeFail ( notesFactory.create ( c ) , msg , true ) ; }
Source:
public void removeCollaborators ( java.util.Collection < com.googlesrouce.gerrit.plugins.github.git.GHUser > users ) throws java.io.IOException { ghRepository.removeCollaborators ( users ) ; }

Target:
public void removeCollaborators ( java.util.Collection < com.googlesource.gerrit.plugins.github.git.GHUser > users ) throws java.io.IOException { ghRepository.removeCollaborators ( users ) ; }
Source:
void sendMessages ( ) { for ( com.google.gerrit.server.git.ReceiveCommits.Message m : messages ) { if ( m.isError ) { messageSender.sendError ( m.message ) ; } else { messageSender.sendMessage ( m.message ) ; } } }

Target:
void sendMessages ( ) { for ( com.google.gerrit.server.git.validators.CommitValidationMessage m : messages ) { if ( m.isError ( ) ) { messageSender.sendError ( m.getMessage ( ) ) ; } else { messageSender.sendMessage ( m.getMessage ( ) ) ; } } }
Source:
public T getValue ( ) { return asEditor ( ) . getValue ( ) ; }

Target:
public T getValue ( ) { return ignoreEditorValue ? value : asEditor ( ) . getValue ( ) ; }
Source:
public final native void copySelfOnEmail ( boolean c ) ;

Target:
private final native void emailStrategyRaw ( java.lang.String s ) ;
Source:
public boolean dryRun ( com.google.gerrit.server.git.CodeReviewCommit mergeTip , com.google.gerrit.server.git.CodeReviewCommit toMerge ) throws com.google.gerrit.server.git.IntegrationException { return args.mergeUtil.canFastForward ( args.mergeSorter , mergeTip , args.rw , toMerge ) ; }

Target:
static boolean dryRun ( com.google.gerrit.server.git.strategy.SubmitDryRun.Arguments args , com.google.gerrit.server.git.CodeReviewCommit mergeTip , com.google.gerrit.server.git.CodeReviewCommit toMerge ) throws com.google.gerrit.server.git.IntegrationException { return args.mergeUtil.canFastForward ( args.mergeSorter , mergeTip , args.rw , toMerge ) ; }
Source:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { doAddNewRight ( ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { final java.util.HashSet < com.google.gerrit.reviewdb.RefRight.Key > refRightIds = rights.getRefRightIdsChecked ( ) ; doDeleteRefRights ( refRightIds ) ; }
Source:
public final boolean canLink ( com.google.gerrit.client.changes.ChangeInfo.RevisionInfo revision ) { return ( revision.draft ( ) ) || ( type ( ) . linkDrafts ( ) ) ; }

Target:
public final boolean canLink ( com.google.gerrit.client.info.ChangeInfo.RevisionInfo revision ) { return ( revision.draft ( ) ) || ( type ( ) . linkDrafts ( ) ) ; }
Source:
public < T > T get ( com.google.gerrit.rules.StoredValue < T > sv ) { return sv.getOrNull ( engine ) ; }

Target:
public < T > T get ( com.google.gerrit.rules.StoredValue < T > sv ) { return ( ( T ) ( storedValues.get ( sv ) ) ) ; }
Source:
public com.google.gerrit.reviewdb.client.PatchSetApproval getSubmitter ( final com.google.gerrit.reviewdb.client.PatchSet.Id c ) { return com.google.gerrit.server.git.MergeUtil.getSubmitter ( db.get ( ) , c ) ; }

Target:
public com.google.gerrit.reviewdb.client.PatchSetApproval getSubmitter ( final com.google.gerrit.reviewdb.client.PatchSet.Id c ) { return approvalsUtil.getSubmitter ( db.get ( ) , c ) ; }
Source:
public com.google.gwtorm.jdbc.TestJdbcAccess.Data.DataKey primaryKey ( com.google.gwtorm.jdbc.TestJdbcAccess.Data entity ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public com.google.gwtorm.jdbc.AbstractTestJdbcAccess.Data get ( com.google.gwtorm.jdbc.AbstractTestJdbcAccess.Data.DataKey key ) throws com.google.gwtorm.server.OrmException { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
public boolean isLabel ( ) { return com.google.gerrit.common.data.Permission.isLabel ( getName ( ) ) ; }

Target:
public java.lang.String getLabel ( ) { return com.google.gerrit.common.data.Permission.extractLabel ( getName ( ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent e ) { e.preventDefault ( ) ; e.stopPropagation ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent e ) { if ( com.google.gerrit.client.change.Reload.link.handleAsClick ( e.getNativeEvent ( ) . < com.google.gwt.user.client.Event > cast ( ) ) ) { e.preventDefault ( ) ; e.stopPropagation ( ) ; reload ( ) ; } }
Source:
private void initProviderJce ( ) { setKeyExchangeFactories ( java.util.Arrays.< org.apache.sshd.common.NamedFactory < org.apache.sshd.common.KeyExchange > > asList ( new org.apache.sshd.server.kex.DHG1.Factory ( ) ) ) ; setRandomFactory ( new org.apache.sshd.common.random.SingletonRandomFactory ( new org.apache.sshd.common.random.JceRandom.Factory ( ) ) ) ; }

Target:
private void initProviderJce ( ) { setRandomFactory ( new org.apache.sshd.common.random.SingletonRandomFactory ( org.apache.sshd.common.random.JceRandomFactory.INSTANCE ) ) ; }
Source:
protected void onOpenRow ( final int row ) { final com.google.gerrit.client.info.ChangeInfo c = getRowItem ( row ) ; final com.google.gerrit.reviewdb.client.Change.Id id = c.legacyId ( ) ; com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( id ) ) ; }

Target:
protected void onOpenRow ( int row ) { final com.google.gerrit.client.info.ChangeInfo c = getRowItem ( row ) ; com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( c.projectNameKey ( ) , c.legacyId ( ) ) ) ; }
Source:
public static void createDraft ( com.google.gerrit.reviewdb.client.PatchSet.Id id , com.google.gerrit.client.changes.CommentInfo content , 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" ) . put ( content , cb ) ; }

Target:
public static void createDraft ( com.google.gerrit.reviewdb.client.PatchSet.Id id , com.google.gerrit.client.changes.CommentInput content , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.changes.CommentInfo > cb ) { com.google.gerrit.client.changes.CommentApi.revision ( id , "drafts" ) . put ( content , cb ) ; }
Source:
public java.lang.String toString ( ) { return ( "AccessSection[" + ( getRefPattern ( ) ) ) + "]" ; }

Target:
private java.lang.String comparePattern ( ) { if ( getName ( ) . startsWith ( com.google.gerrit.common.data.AccessSection.REGEX_PREFIX ) ) { return getName ( ) . substring ( com.google.gerrit.common.data.AccessSection.REGEX_PREFIX.length ( ) ) ; } return getName ( ) ; }
Source:
public void patchSetDetail ( final com.google.gerrit.reviewdb.PatchSet.Id id , final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.PatchSetDetail > callback ) { patchSetDetail.create ( id ) . to ( callback ) ; }

Target:
public void patchSetDetail ( final com.google.gerrit.reviewdb.PatchSet.Id idA , final com.google.gerrit.reviewdb.PatchSet.Id idB , final com.google.gerrit.reviewdb.AccountDiffPreference diffPrefs , final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.common.data.PatchSetDetail > callback ) { patchSetDetail.create ( idA , idB , diffPrefs ) . to ( callback ) ; }
Source:
public void createNewDraftChange ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( isAllowDrafts ( ) ) . isTrue ( ) ; assertCreateSucceeds ( newChangeInput ( ChangeStatus.DRAFT ) ) ; }

Target:
public void createNewDraftChangeNotAllowed ( ) throws java.lang.Exception { com.google.gerrit.extensions.common.ChangeInput ci = newChangeInput ( ChangeStatus.DRAFT ) ; assertCreateFails ( ci , com.google.gerrit.extensions.restapi.BadRequestException.class , "unsupported change status" ) ; }
Source:
public void setSideA ( com.google.gerrit.reviewdb.PatchSet.Id patchSetId ) { idSideA = patchSetId ; com.google.gerrit.client.patches.PatchScreen.diffSideA = patchSetId ; if ( ( fileList ) != null ) { fileList.setPatchSetIdToCompareWith ( patchSetId ) ; } }

Target:
public PatchSet.Id getSideA ( ) { return idSideA ; }
Source:
public void getUrl ( ) throws java.lang.Exception { config.setString ( "database" , null , "instance" , "3" ) ; com.google.common.truth.Truth.assertThat ( hana.getUrl ( ) ) . isEqualTo ( "jdbc:sap://my.host:30315" ) ; config.setString ( "database" , null , "instance" , "77" ) ; com.google.common.truth.Truth.assertThat ( hana.getUrl ( ) ) . isEqualTo ( "jdbc:sap://my.host:37715" ) ; }

Target:
public void getUrl ( ) throws java.lang.Exception { config.setString ( "database" , null , "port" , "4242" ) ; com.google.common.truth.Truth.assertThat ( hana.getUrl ( ) ) . isEqualTo ( "jdbc:sap://my.host:4242" ) ; }
Source:
public void testAcrossNewline ( ) { com.google.gerrit.client.diff.CodeMirrorDemo.EditIterator iter = new com.google.gerrit.client.diff.CodeMirrorDemo.EditIterator ( lines , 0 ) ; assertLineChsEqual ( net.codemirror.lib.LineCharacter.create ( 1 , 1 ) , iter.advance ( 5 ) ) ; }

Target:
public void testAcrossNewline ( ) { com.google.gerrit.client.diff.SideBySide2.EditIterator iter = new com.google.gerrit.client.diff.SideBySide2.EditIterator ( lines , 0 ) ; assertLineChsEqual ( net.codemirror.lib.LineCharacter.create ( 1 , 1 ) , iter.advance ( 5 ) ) ; }
Source:
public void resetToDefaults ( ) { defaultContext = com.google.gerrit.client.reviewdb.AccountGeneralPreferences.DEFAULT_CONTEXT ; showSiteHeader = true ; useFlashClipboard = true ; }

Target:
public void resetToDefaults ( ) { defaultContext = com.google.gerrit.client.reviewdb.AccountGeneralPreferences.DEFAULT_CONTEXT ; maximumPageSize = com.google.gerrit.client.reviewdb.AccountGeneralPreferences.DEFAULT_PAGESIZE ; showSiteHeader = true ; useFlashClipboard = true ; }