auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
com.google.gerrit.extensions.api.changes.AddReviewerResult addReviewer ( java.lang.String changeId , com.google.gerrit.extensions.api.changes.AddReviewerInput in ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse resp = adminRestSession.post ( ( ( "/changes/" + changeId ) + "/reviewers" ) , in ) ; return readContentFromJson ( resp , com.google.gerrit.extensions.api.changes.AddReviewerResult.class ) ; }

Target:
private com.google.gerrit.extensions.api.changes.AddReviewerResult addReviewer ( java.lang.String changeId , com.google.gerrit.extensions.api.changes.AddReviewerInput in ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse resp = adminRestSession.post ( ( ( "/changes/" + changeId ) + "/reviewers" ) , in ) ; return com.google.gerrit.acceptance.rest.change.ChangeReviewersIT.readContentFromJson ( resp , com.google.gerrit.extensions.api.changes.AddReviewerResult.class ) ; }
Source:
public com.google.gwt.user.client.ui.AbstractImagePrototype openidLogo ( ) ;

Target:
java.lang.String greenCheckClass ( ) ;
Source:
public static net.codemirror.lib.LineCharacter create ( int line , int ch ) { net.codemirror.lib.LineCharacter lineCh = createObject ( ) . cast ( ) ; lineCh.setLine ( line ) ; lineCh.setCh ( ch ) ; return lineCh ; }

Target:
private static net.codemirror.lib.LineCharacter createImpl ( int line , int ch ) { net.codemirror.lib.LineCharacter lineCh = createObject ( ) . cast ( ) ; lineCh.setLine ( line ) ; lineCh.setCh ( ch ) ; return lineCh ; }
Source:
public java.lang.String commitMessage ( ) throws com.google.gerrit.server.project.NoSuchChangeException , com.google.gwtorm.server.OrmException , java.io.IOException { if ( ( commitMessage ) == null ) { loadCommitData ( ) ; } return commitMessage ; }

Target:
public java.util.List < org.eclipse.jgit.revwalk.FooterLine > commitFooters ( ) throws com.google.gwtorm.server.OrmException , java.io.IOException { if ( ( commitFooters ) == null ) { if ( ! ( loadCommitData ( ) ) ) { return null ; } } return commitFooters ; }
Source:
public static java.lang.String toSideBySide ( com.google.gerrit.reviewdb.client.PatchSet.Id diffBase , com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName ) { return com.google.gerrit.client.Dispatcher.toPatch ( "" , diffBase , revision , fileName , null , 0 ) ; }

Target:
public static java.lang.String toSideBySide ( com.google.gerrit.reviewdb.client.PatchSet.Id diffBase , com.google.gerrit.reviewdb.client.PatchSet.Id revision , java.lang.String fileName ) { return com.google.gerrit.client.Dispatcher.toPatch ( "sidebyside" , diffBase , revision , fileName , null , 0 ) ; }
Source:
com.google.gwtorm.client.ResultSet < com.google.gerrit.reviewdb.AccountProjectWatch > notifyNewChanges ( com.google.gerrit.reviewdb.Project.NameKey name ) throws com.google.gwtorm.client.OrmException ;

Target:
com.google.gwtorm.client.ResultSet < com.google.gerrit.reviewdb.AccountProjectWatch > byProject ( com.google.gerrit.reviewdb.Project.NameKey name ) throws com.google.gwtorm.client.OrmException ;
Source:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo.CommitInfo info ) { rev.setCommit ( info ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo.CommitInfo info ) { rev.setCommit ( info ) ; }
Source:
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 ) ; }

Target:
private void beforeTest ( org.eclipse.jgit.lib.Config cfg , boolean memory ) throws java.lang.Exception { server = com.google.gerrit.acceptance.GerritServer.start ( cfg , memory ) ; server.getTestInjector ( ) . injectMembers ( this ) ; }
Source:
private static boolean isInlineComment ( java.lang.String key ) { return ( ( key.startsWith ( "patchCommentEdit-" ) ) || ( key.startsWith ( "patchReply-" ) ) ) || ( key.startsWith ( "patchComment-" ) ) ; }

Target:
private static boolean isInlineComment ( java.lang.String key ) { return ( ( key.startsWith ( "patchCommentEdit~" ) ) || ( key.startsWith ( "patchReply~" ) ) ) || ( key.startsWith ( "patchComment~" ) ) ; }
Source:
public void onSuccess ( com.google.gwt.resources.client.TextResource resource ) { com.google.gwt.dom.client.StyleInjector.inject ( resource.getText ( ) ) ; cb.onSuccess ( null ) ; }

Target:
public void onSuccess ( com.google.gwt.resources.client.TextResource resource ) { com.google.gwt.dom.client.StyleInjector.inject ( resource.getText ( ) ) ; Lib.I.style ( ) . ensureInjected ( ) ; cb.onSuccess ( null ) ; }
Source:
public void execute ( com.google.gerrit.server.update.BatchUpdate.Listener listener ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.update.UpdateException { com.google.gerrit.server.update.BatchUpdate.execute ( com.google.common.collect.ImmutableList.of ( this ) , listener , requestId , false ) ; }

Target:
public void execute ( com.google.gerrit.server.update.BatchUpdateListener listener ) throws com.google.gerrit.extensions.restapi.RestApiException , com.google.gerrit.server.update.UpdateException { com.google.gerrit.server.update.BatchUpdate.execute ( com.google.common.collect.ImmutableList.of ( this ) , listener , requestId , false ) ; }
Source:
public int hashCode ( ) { return java.util.Objects.hash ( oldId , parentNum , newId , whitespace ) ; }

Target:
public int hashCode ( ) { return java.util.Objects.hash ( oldId , parentNum , newId , whitespace , algorithm ) ; }
Source:
public static synchronized void incrementClock ( long clockStep , java.util.concurrent.TimeUnit clockStepUnit ) { com.google.common.base.Preconditions.checkState ( ( ( com.google.gerrit.testutil.TestTimeUtil.clockMs ) != null ) , "call resetWithClockStep first" ) ; com.google.gerrit.testutil.TestTimeUtil.clockMs.addAndGet ( clockStepUnit.toMillis ( clockStep ) ) ; }

Target:
public static synchronized void incrementClock ( long clockStep , java.util.concurrent.TimeUnit clockStepUnit ) { com.google.common.base.Preconditions.checkState ( ( ( com.google.gerrit.testing.TestTimeUtil.clockMs ) != null ) , "call resetWithClockStep first" ) ; com.google.gerrit.testing.TestTimeUtil.clockMs.addAndGet ( clockStepUnit.toMillis ( clockStep ) ) ; }
Source:
protected void onInitUI ( ) { super . onInitUI ( ) ; initPath ( ) ; setHeaderVisible ( false ) ; }

Target:
protected void onInitUI ( ) { super . onInitUI ( ) ; setHeaderVisible ( false ) ; setWindowTitle ( com.google.gerrit.client.info.FileInfo.getFileName ( path ) ) ; }
Source:
protected void deny ( com.google.gerrit.server.git.ProjectConfig project , java.lang.String permission , com.google.gerrit.reviewdb.client.AccountGroup.UUID id , java.lang.String ref ) throws java.lang.Exception { com.google.gerrit.server.project.testing.Util.deny ( project , permission , id , ref ) ; saveProjectConfig ( project ) ; }

Target:
protected void deny ( com.google.gerrit.server.project.ProjectConfig project , java.lang.String permission , com.google.gerrit.reviewdb.client.AccountGroup.UUID id , java.lang.String ref ) throws java.lang.Exception { com.google.gerrit.server.project.testing.Util.deny ( project , permission , id , ref ) ; saveProjectConfig ( project ) ; }
Source:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > indexAsync ( com.google.gerrit.server.query.change.ChangeData cd ) { return ( executor ) != null ? submit ( indexTask ( cd ) ) : com.google.common.util.concurrent.Futures.< java.lang.Object , java.io.IOException > immediateCheckedFuture ( null ) ; }

Target:
public com.google.common.util.concurrent.CheckedFuture < ? , java.io.IOException > deleteAsync ( com.google.gerrit.server.query.change.ChangeData cd ) { return ( executor ) != null ? submit ( new com.google.gerrit.server.index.ChangeIndexer.Task ( cd , true ) ) : com.google.common.util.concurrent.Futures.< java.lang.Object , java.io.IOException > immediateCheckedFuture ( null ) ; }
Source:
protected void configure ( ) { factory ( MetaDataUpdate.InternalFactory.class ) ; bind ( MetaDataUpdate.Server.class ) ; }

Target:
protected void configure ( ) { factory ( RenameGroupOp.Factory.class ) ; factory ( MetaDataUpdate.InternalFactory.class ) ; bind ( MetaDataUpdate.Server.class ) ; }
Source:
void apply ( com.google.gerrit.server.notedb.ChangeUpdate update ) throws com.google.gwtorm.server.OrmException { checkUpdate ( update ) ; update.setChangeMessage ( message.getMessage ( ) ) ; }

Target:
void apply ( com.google.gerrit.server.notedb.ChangeUpdate update ) throws com.google.gwtorm.server.OrmException { checkUpdate ( update ) ; update.setChangeMessage ( message.getMessage ( ) ) ; setTopic ( update ) ; setStatus ( update ) ; }
Source:
com.google.gerrit.server.CurrentUser getCurrentUser ( ) { return isSignedIn ( ) ? identified.create ( val ( ) . accountId ) : anonymous ; }

Target:
com.google.gerrit.server.CurrentUser getCurrentUser ( ) { return isSignedIn ( ) ? identified.create ( val.accountId ) : anonymous ; }
Source:
private java.util.List < java.lang.String > getRelativePaths ( java.io.File dir , java.lang.String extension ) { java.util.ArrayList < java.lang.String > pathList = new java.util.ArrayList < > ( ) ; getRelativePaths ( dir , extension , "" , pathList ) ; return pathList ; }

Target:
private java.util.List < java.lang.String > getRelativePaths ( java.io.File dir , java.lang.String extension ) throws java.io.IOException { java.util.ArrayList < java.lang.String > pathList = new java.util.ArrayList < > ( ) ; com.google.gerrit.pgm.rules.PrologCompiler.getRelativePaths ( dir , extension , "" , pathList ) ; return pathList ; }
Source:
public void onLostFocus ( com.google.gwt.user.client.ui.Widget arg0 ) { hideTextBox ( ) ; }

Target:
public void onBlur ( final com.google.gwt.event.dom.client.BlurEvent event ) { hideTextBox ( ) ; }
Source:
public void testSimpleAdvance ( ) { com.google.gerrit.client.diff.EditIterator iter = new com.google.gerrit.client.diff.EditIterator ( lines , 0 ) ; assertLineChsEqual ( net.codemirror.lib.LineCharacter.create ( 0 , 1 ) , iter.advance ( 1 ) ) ; }

Target:
public void testSimpleAdvance ( ) { com.google.gerrit.client.diff.EditIterator iter = new com.google.gerrit.client.diff.EditIterator ( lines , 0 ) ; assertLineChsEqual ( net.codemirror.lib.Pos.create ( 0 , 1 ) , iter.advance ( 1 ) ) ; }
Source:
static void deleteSessionCookie ( ) { com.google.gwt.user.client.Cookies.removeCookie ( com.google.gerrit.client.Gerrit.SESSION_COOKIE ) ; com.google.gerrit.client.Gerrit.myAccount = null ; com.google.gerrit.client.Gerrit.refreshMenuBar ( ) ; }

Target:
static void deleteSessionCookie ( ) { com.google.gwt.user.client.Cookies.removeCookie ( com.google.gerrit.client.Gerrit.SESSION_COOKIE ) ; com.google.gerrit.client.Gerrit.myAccount = null ; com.google.gerrit.client.Gerrit.myAccountDiffPref = null ; com.google.gerrit.client.Gerrit.refreshMenuBar ( ) ; }
Source:
public java.util.regex.Pattern getIssuePattern ( ) { java.util.regex.Pattern ret = null ; java.lang.String match = gerritConfig.getString ( "commentlink" , pluginName , "match" ) ; if ( match != null ) { ret = java.util.regex.Pattern.compile ( match ) ; } return ret ; }

Target:
public java.lang.String getCommentLinkName ( ) { java.lang.String ret ; ret = gerritConfig.getString ( pluginName , null , "commentlink" ) ; if ( ret == null ) { ret = pluginName ; } return ret ; }
Source:
public void schemaThrowsExceptionWhenLookingUpForChange ( ) throws java.lang.Exception { setupPostMocks ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexChangeRestApiServletTest.CHANGE_EXISTS , com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexChangeRestApiServletTest.THROW_ORM_EXCEPTION ) ; indexRestApiServlet.doPost ( req , rsp ) ; org.mockito.Mockito.verify ( rsp ) . sendError ( javax.servlet.http.HttpServletResponse.SC_NOT_FOUND , "Error trying to find a change \n" ) ; }

Target:
public void schemaThrowsExceptionWhenLookingUpForChange ( ) throws java.lang.Exception { setupPostMocks ( com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexChangeRestApiServletTest.CHANGE_EXISTS , com.ericsson.gerrit.plugins.highavailability.forwarder.rest.IndexChangeRestApiServletTest.THROW_ORM_EXCEPTION ) ; indexRestApiServlet.doPost ( req , rsp ) ; org.mockito.Mockito.verify ( rsp ) . sendError ( javax.servlet.http.HttpServletResponse.SC_NOT_FOUND , "Error trying to find change \n" ) ; }
Source:
public com.google.gerrit.server.CurrentUser getUser ( ) { return user ; }

Target:
public java.util.TimeZone getTimeZone ( ) { return tz ; }
Source:
private com.google.gerrit.client.change.RelatedChangesTab getTab ( ) { if ( ( conflictingChangesTab ) == null ) { conflictingChangesTab = createTab ( Resources.C.conflictingChanges ( ) , Resources.C.conflictingChangesTooltip ( ) ) ; conflictingChangesTab.registerKeys ( ) ; } return conflictingChangesTab ; }

Target:
private com.google.gerrit.client.change.RelatedChangesTab getTab ( ) { if ( ( cherryPicksTab ) == null ) { cherryPicksTab = createTab ( Resources.C.cherryPicks ( ) , Resources.C.cherryPicksTooltip ( ) ) ; cherryPicksTab.setShowBranches ( true ) ; } return cherryPicksTab ; }
Source:
public java.io.InputStream getInputStream ( ) throws java.io.IOException { return new java.io.ByteArrayInputStream ( sshKey.getBytes ( "UTF-8" ) ) ; }

Target:
public java.io.InputStream getInputStream ( ) throws java.io.IOException { return new java.io.ByteArrayInputStream ( sshKey.getBytes ( java.nio.charset.StandardCharsets.UTF_8 ) ) ; }
Source:
public synchronized void schedule ( int idx , com.googlesource.gerrit.plugins.github.git.GitJob pullRequestImportJob ) { jobs.put ( idx , pullRequestImportJob ) ; executor.exec ( pullRequestImportJob ) ; }

Target:
public synchronized void schedule ( int idx , com.googlesource.gerrit.plugins.github.git.GitJob pullRequestImportJob ) { jobs.put ( new java.lang.Integer ( idx ) , pullRequestImportJob ) ; executor.exec ( pullRequestImportJob ) ; }
Source:
public void addRefUpdate ( org.eclipse.jgit.transport.ReceiveCommand cmd ) throws java.io.IOException { initRepository ( ) ; commands.add ( cmd ) ; }

Target:
public void addRefUpdate ( org.eclipse.jgit.transport.ReceiveCommand cmd ) throws java.io.IOException { initRepository ( ) ; repoView.getCommands ( ) . add ( cmd ) ; }
Source:
private com.google.gerrit.server.config.GetServerInfo.ServerInfo getServerConfig ( ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = adminRestSession.get ( "/config/server/info/" ) ; return newGson ( ) . fromJson ( r.getReader ( ) , com.google.gerrit.server.config.GetServerInfo.ServerInfo.class ) ; }

Target:
private com.google.gerrit.server.config.GetServerInfo.ServerInfo getServerConfig ( ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = adminRestSession.get ( "/config/server/info/" ) ; r.assertOK ( ) ; return newGson ( ) . fromJson ( r.getReader ( ) , com.google.gerrit.server.config.GetServerInfo.ServerInfo.class ) ; }
Source:
private static java.lang.String includedGroupsBase ( com.google.gerrit.reviewdb.client.AccountGroup.UUID groupUUID ) { return ( com.google.gerrit.client.groups.GroupApi.base ( groupUUID ) ) + "groups" ; }

Target:
private static com.google.gerrit.client.rpc.RestApi groups ( com.google.gerrit.reviewdb.client.AccountGroup.UUID group ) { return com.google.gerrit.client.groups.GroupApi.group ( group ) . view ( "groups" ) ; }
Source:
private void adjustCodeMirrorHeight ( ) { int rest = ( ( com.google.gerrit.client.Gerrit.getHeaderFooterHeight ( ) ) + ( header.getOffsetHeight ( ) ) ) + 5 ; cm.setHeight ( ( ( com.google.gwt.user.client.Window.getClientHeight ( ) ) - rest ) ) ; }

Target:
public void onWindowClosing ( com.google.gwt.user.client.Window.ClosingEvent event ) { if ( ! ( cm.isClean ( generation ) ) ) { event.setMessage ( EditConstants.I.closeUnsavedChanges ( ) ) ; } }
Source:
public void addHashtagWithoutPermissionNotAllowed ( ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit.Result r = createChange ( ) ; setApiUser ( user ) ; exception.expect ( com.google.gerrit.extensions.restapi.AuthException.class ) ; exception.expectMessage ( "Editing hashtags not permitted" ) ; addHashtags ( r , "MyHashtag" ) ; }

Target:
public void addHashtagWithoutPermissionNotAllowed ( ) throws java.lang.Exception { com.google.gerrit.acceptance.PushOneCommit.Result r = createChange ( ) ; setApiUser ( user ) ; exception.expect ( com.google.gerrit.extensions.restapi.AuthException.class ) ; exception.expectMessage ( "edit hashtags not permitted" ) ; addHashtags ( r , "MyHashtag" ) ; }
Source:
protected java.lang.String prettify ( java.lang.String html , java.lang.String type ) { return com.google.gerrit.prettify.client.ClientSideFormatter.go ( html , type , settings.getTabSize ( ) ) ; }

Target:
protected java.lang.String prettify ( java.lang.String html , java.lang.String type ) { return com.google.gerrit.prettify.client.ClientSideFormatter.go ( com.google.gerrit.prettify.client.ClientSideFormatter.prettify.getContext ( ) , html , type , settings.getTabSize ( ) ) ; }
Source:
public void run ( ) { cmA.setHeight ( height ) ; cmB.setHeight ( height ) ; cmA.refresh ( ) ; cmB.refresh ( ) ; }

Target:
public void run ( ) { cmA.setHeight ( height ) ; cmB.setHeight ( height ) ; chunkManager.adjustPadding ( ) ; cmA.refresh ( ) ; cmB.refresh ( ) ; }
Source:
public void setSession ( final org.apache.sshd.server.session.ServerSession session ) { this . ctx = new com.google.gerrit.sshd.SshScope.Context ( session.getAttribute ( SshSession.KEY ) ) ; }

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 = new com.google.gerrit.sshd.SshScope.Context ( s , commandLine ) ; }
Source:
private void submit ( ) { Util.MANAGE_SVC.submit ( patchSetId , new com.google.gerrit.client.rpc.GerritCallback < com.google.gerrit.common.data.ChangeDetail > ( ) { public void onSuccess ( com.google.gerrit.common.data.ChangeDetail result ) { saveStateOnUnload = false ; goChange ( ) ; } } ) ; }

Target:
public void onFailure ( java.lang.Throwable caught ) { goChange ( ) ; super . onFailure ( caught ) ; }
Source:
public void testContainsTrueWithSingleElement ( ) throws java.lang.Exception { com.google.gerrit.extensions.registration.DynamicSet < java.lang.Integer > ds = new com.google.gerrit.extensions.registration.DynamicSet ( ) ; ds.add ( 2 ) ; com.google.common.truth.Truth.assertThat ( ds ) . contains ( 2 ) ; }

Target:
public void testContainsTrueWithSingleElement ( ) throws java.lang.Exception { com.google.gerrit.extensions.registration.DynamicSet < java.lang.Integer > ds = new com.google.gerrit.extensions.registration.DynamicSet ( ) ; ds.add ( 2 ) ; com.google.common.truth.Truth.assertThat ( ds.contains ( 2 ) ) . isTrue ( ) ; }
Source:
public boolean isVisible ( ) { return getRefControl ( ) . isVisible ( ) ; }

Target:
public boolean isRefVisible ( ) { return getRefControl ( ) . isVisible ( ) ; }
Source:
public void configure ( ) { bind ( com.google.gerrit.server.mail.EmailSender.class ) . to ( com.google.gerrit.testutil.FakeEmailSender.class ) ; }

Target:
public void configure ( ) { bind ( com.google.gerrit.server.mail.send.EmailSender.class ) . to ( com.google.gerrit.testutil.FakeEmailSender.class ) ; }
Source:
public com.google.gerrit.reviewdb.client.AccountDiffPreference.Theme getTheme ( ) { return ( theme ) != null ? com.google.gerrit.reviewdb.client.AccountDiffPreference.Theme.valueOf ( theme ) : null ; }

Target:
public com.google.gerrit.extensions.common.Theme getTheme ( ) { return ( theme ) != null ? com.google.gerrit.extensions.common.Theme.valueOf ( theme ) : null ; }
Source:
com.google.gerrit.server.git.CreateCodeReviewNotes create ( org.eclipse.jgit.lib.Repository db ) ;

Target:
com.google.gerrit.server.git.CreateCodeReviewNotes create ( com.google.gerrit.reviewdb.ReviewDb reviewDb , org.eclipse.jgit.lib.Repository db ) ;
Source:
public void review ( final com.google.gerrit.client.reviewdb.AccountAgreement.Status newStatus , final com.google.gerrit.client.reviewdb.Account.Id by ) { status = newStatus.getCode ( ) ; reviewedBy = by ; reviewedOn = new java.sql.Timestamp ( java.lang.System.currentTimeMillis ( ) ) ; }

Target:
public void review ( final com.google.gerrit.client.reviewdb.Status newStatus , final com.google.gerrit.client.reviewdb.Account.Id by ) { status = newStatus.getCode ( ) ; reviewedBy = by ; reviewedOn = new java.sql.Timestamp ( java.lang.System.currentTimeMillis ( ) ) ; }
Source:
public void setStatisticsEnabled ( boolean enableStatistics ) { self ( ) . setStatisticsEnabled ( enableStatistics ) ; }

Target:
public void setSampledStatisticsEnabled ( boolean enableStatistics ) { self.setSampledStatisticsEnabled ( enableStatistics ) ; }
Source:
public void postEvent ( com.google.gerrit.reviewdb.client.Branch.NameKey branchName , com.google.gerrit.server.events.RefEvent event ) { fireEvent ( branchName , event ) ; }

Target:
public void postEvent ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.server.events.ChangeEvent event ) throws com.google.gwtorm.server.OrmException { fireEvent ( change , event ) ; }
Source:
public static org.eclipse.jgit.internal.storage.dfs.InMemoryRepository newRepository ( com.google.gerrit.reviewdb.client.Project.NameKey name ) { return new com.google.gerrit.testutil.InMemoryRepositoryManager.Repo ( new com.google.gerrit.testutil.TestNotesMigration ( ) , name ) ; }

Target:
public static org.eclipse.jgit.internal.storage.dfs.InMemoryRepository newRepository ( com.google.gerrit.reviewdb.client.Project.NameKey name ) { return new com.google.gerrit.testutil.InMemoryRepositoryManager.Repo ( com.google.gerrit.testutil.NoteDbMode.newNotesMigrationFromEnv ( ) , name ) ; }
Source:
public int compare ( java.nio.file.Path a , java.nio.file.Path b ) { return com.google.common.collect.ComparisonChain.start ( ) . compare ( com.google.gerrit.common.SiteLibraryLoaderUtil.lastModified ( b ) , com.google.gerrit.common.SiteLibraryLoaderUtil.lastModified ( a ) ) . compare ( a , b ) . result ( ) ; }

Target:
public int compare ( java.nio.file.Path a , java.nio.file.Path b ) { return com.google.common.collect.ComparisonChain.start ( ) . compare ( com.google.gerrit.common.FileUtil.lastModified ( b ) , com.google.gerrit.common.FileUtil.lastModified ( a ) ) . compare ( a , b ) . result ( ) ; }
Source:
public void clearPassword ( com.google.gerrit.reviewdb.client.AccountExternalId.Key key , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.reviewdb.client.AccountExternalId > callback ) { com.google.gerrit.httpd.rpc.Handler.wrap ( clearPasswordFactory.create ( key ) ) . to ( callback ) ; }

Target:
public void clearPassword ( com.google.gerrit.reviewdb.client.AccountExternalId.Key key , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.reviewdb.client.AccountExternalId > callback ) { com.google.gerrit.httpd.rpc.Handler.wrap ( clearPasswordFactory.create ( key ) ) . to ( callback ) ; }
Source:
public void apply ( org.eclipse.jgit.dircache.DirCacheEntry ent ) { ent.setFileMode ( FileMode.GITLINK ) ; ent.setObjectId ( updateTo ) ; }

Target:
public void apply ( org.eclipse.jgit.dircache.DirCacheEntry ent ) { ent.setFileMode ( FileMode.GITLINK ) ; ent.setObjectId ( newCommit.getId ( ) ) ; }
Source:
public void testWithEndingURL ( ) throws java.lang.Exception { assertEquals ( ( "a\n" + ( ( ( "\n" + "http://example.com/ fixes this\n" ) + "\n" ) + "Change-Id: I3b7e4e16b503ce00f07ba6ad01d97a356dad7701\n" ) ) , call ( ( "a\n" + ( "\n" + "http://example.com/ fixes this\n" ) ) ) ) ; assertEquals ( ( "a\n" + ( ( ( "\n" + "https://example.com/ fixes this\n" ) + "\n" ) + "Change-Id: I62b9039e2fc0dce274af55e8f99312a8a80a805d\n" ) ) , call ( ( "a\n" + ( "\n" + "https://example.com/ fixes this\n" ) ) ) ) ; assertEquals ( ( "a\n" + ( ( ( "\n" + "ftp://example.com/ fixes this\n" ) + "\n" ) + "Change-Id: I71b05dc1f6b9a5540a53a693e64d58b65a8910e8\n" ) ) , call ( ( "a\n" + ( "\n" + "ftp://example.com/ fixes this\n" ) ) ) ) ; assertEquals ( ( "a\n" + ( ( ( "\n" + "git://example.com/ fixes this\n" ) + "\n" ) + "Change-Id: Id34e942baa68d790633737d815ddf11bac9183e5\n" ) ) , call ( ( "a\n" + ( "\n" + "git://example.com/ fixes this\n" ) ) ) ) ; }

Target:
public void testWithEndingURL ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( ( "a\n" + ( ( ( "\n" + "http://example.com/ fixes this\n" ) + "\n" ) + "Change-Id: I3b7e4e16b503ce00f07ba6ad01d97a356dad7701\n" ) ) , call ( ( "a\n" + ( "\n" + "http://example.com/ fixes this\n" ) ) ) ) ; org.junit.Assert.assertEquals ( ( "a\n" + ( ( ( "\n" + "https://example.com/ fixes this\n" ) + "\n" ) + "Change-Id: I62b9039e2fc0dce274af55e8f99312a8a80a805d\n" ) ) , call ( ( "a\n" + ( "\n" + "https://example.com/ fixes this\n" ) ) ) ) ; org.junit.Assert.assertEquals ( ( "a\n" + ( ( ( "\n" + "ftp://example.com/ fixes this\n" ) + "\n" ) + "Change-Id: I71b05dc1f6b9a5540a53a693e64d58b65a8910e8\n" ) ) , call ( ( "a\n" + ( "\n" + "ftp://example.com/ fixes this\n" ) ) ) ) ; org.junit.Assert.assertEquals ( ( "a\n" + ( ( ( "\n" + "git://example.com/ fixes this\n" ) + "\n" ) + "Change-Id: Id34e942baa68d790633737d815ddf11bac9183e5\n" ) ) , call ( ( "a\n" + ( "\n" + "git://example.com/ fixes this\n" ) ) ) ) ; }
Source:
static AccountExternalId.Key toExtIdKey ( org.bouncycastle.openpgp.PGPPublicKey key ) { return new com.google.gerrit.reviewdb.client.AccountExternalId.Key ( com.google.gerrit.reviewdb.client.AccountExternalId.SCHEME_GPGKEY , com.google.common.io.BaseEncoding.base16 ( ) . encode ( key.getFingerprint ( ) ) ) ; }

Target:
static ExternalId.Key toExtIdKey ( org.bouncycastle.openpgp.PGPPublicKey key ) { return ExternalId.Key.create ( com.google.gerrit.server.account.ExternalId.SCHEME_GPGKEY , com.google.common.io.BaseEncoding.base16 ( ) . encode ( key.getFingerprint ( ) ) ) ; }
Source:
public void deleteReviewerFromReviewableChangeNotifyNone ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; removeReviewer ( sc , extraReviewer , NotifyHandling.NONE ) ; assertThat ( sender ) . notSent ( ) ; }

Target:
public void deleteReviewerFromReviewableWipChange ( ) throws java.lang.Exception { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableWipChangeWithExtraReviewer ( ) ; removeReviewer ( sc , extraReviewer ) ; assertThat ( sender ) . notSent ( ) ; }
Source:
public void run ( ) { if ( cm.vim ( ) . hasSearchHighlight ( ) ) { cm.vim ( ) . handleKey ( "n" ) ; } else { getCommentManager ( ) . commentNav ( cm , Direction.NEXT ) . run ( ) ; } }

Target:
public void run ( ) { if ( cm.vim ( ) . hasSearchHighlight ( ) ) { cm.vim ( ) . handleKey ( "N" ) ; } else { getCommentManager ( ) . commentNav ( cm , Direction.NEXT ) . run ( ) ; } }
Source:
public void onOk ( ) { deleteBranches ( ids ) ; }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { updateDeleteButton ( ) ; }
Source:
void changeProjectDescription ( com.google.gerrit.client.reviewdb.Project.Id projectId , java.lang.String description , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwtjsonrpc.client.VoidResult > callback ) ;

Target:
void changeProjectSettings ( com.google.gerrit.client.reviewdb.Project update , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.admin.ProjectDetail > callback ) ;
Source:
public void sendRedirect ( java.lang.String location ) throws java.io.IOException { super . sendRedirect ( com.google.common.base.Objects.firstNonNull ( redirectUrl , location ) ) ; }

Target:
public void sendRedirect ( java.lang.String location ) throws java.io.IOException { super . sendRedirect ( com.google.common.base.MoreObjects.firstNonNull ( redirectUrl , location ) ) ; }
Source:
private static Project.NameKey getProjectName ( com.google.gerrit.server.project.ChangeControl ctl ) { return ctl.getChange ( ) . getDest ( ) . getParentKey ( ) ; }

Target:
private static Project.NameKey getProjectName ( com.google.gerrit.server.project.ChangeControl ctl ) { return ctl.getProject ( ) . getNameKey ( ) ; }
Source:
public static java.lang.String toPatchSideBySide ( final com.google.gerrit.reviewdb.Patch.Key id ) { return com.google.gerrit.client.Dispatcher.toPatch ( "sidebyside" , id ) ; }

Target:
public static java.lang.String toPatchSideBySide ( final com.google.gerrit.reviewdb.Patch.Key id ) { return com.google.gerrit.client.Dispatcher.toPatch ( "" , id ) ; }
Source:
private long getSecureConfigLastEditTs ( ) throws java.io.IOException { if ( ! ( java.nio.file.Files.exists ( site.secure_config ) ) ) { return 0L ; } return java.nio.file.Files.getLastModifiedTime ( site.secure_config ) . toMillis ( ) ; }

Target:
private long getSecureConfigLastEditTs ( ) { if ( ! ( java.nio.file.Files.exists ( site.secure_config ) ) ) { return 0L ; } return com.google.gerrit.common.FileUtil.lastModified ( site.secure_config ) ; }
Source:
public org.eclipse.jgit.lib.RefUpdate.Result modifyFile ( com.google.gerrit.server.edit.ChangeEdit edit , java.lang.String file , com.google.gerrit.extensions.restapi.RawInput content ) 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.ChangeFileContentModification ( file , content ) ) ; }

Target:
private java.util.Optional < com.google.gerrit.server.edit.ChangeEdit > lookupChangeEdit ( com.google.gerrit.server.project.ChangeControl changeControl ) throws com.google.gerrit.extensions.restapi.AuthException , java.io.IOException { return changeEditUtil.byChange ( changeControl ) ; }
Source:
com.google.gerrit.lucene.LuceneChangeIndex create ( com.google.gerrit.server.index.Schema < com.google.gerrit.server.query.change.ChangeData > schema , java.lang.String base ) ;

Target:
static org.apache.lucene.index.Term idTerm ( com.google.gerrit.reviewdb.client.Change.Id id ) { return com.google.gerrit.lucene.QueryBuilder.intTerm ( com.google.gerrit.server.index.change.ChangeField.LEGACY_ID.getName ( ) , id.get ( ) ) ; }
Source:
public void getTagOfNonExistingProjectWithApi ( ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.ResourceNotFoundException.class ) ; gApi.projects ( ) . name ( "does-not-exist" ) . tag ( "tag" ) . get ( ) ; }

Target:
public void getTagOfNonExistingProject ( ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.ResourceNotFoundException.class ) ; gApi.projects ( ) . name ( "does-not-exist" ) . tag ( "tag" ) . get ( ) ; }
Source:
public void setTopic ( final java.lang.String topic ) { this . topic = topic.trim ( ) ; }

Target:
public void setTopic ( final java.lang.String topic ) { this . newTopicName = topic.trim ( ) ; }
Source:
public void remove ( ) { filter = null ; }

Target:
public void remove ( ) { filter.compareAndSet ( guiceFilter , null ) ; }
Source:
java.lang.String patchSetAction ( java.lang.String action , int id ) ;

Target:
java.lang.String submitPatchSet ( int id ) ;
Source:
public void setValue ( final short v ) { value = v ; granted = new java.sql.Timestamp ( java.lang.System.currentTimeMillis ( ) ) ; }

Target:
public void setGranted ( ) { granted = new java.sql.Timestamp ( java.lang.System.currentTimeMillis ( ) ) ; }
Source:
public com.googlecode.prolog_cafe.lang.NumberTerm floatIntPart ( ) { throw new com.googlecode.prolog_cafe.exceptions.IllegalTypeException ( "float" , this ) ; }

Target:
public com.googlecode.prolog_cafe.lang.NumberTerm floatFractPart ( ) { throw new com.googlecode.prolog_cafe.exceptions.IllegalTypeException ( "float" , this ) ; }
Source:
void onSave ( com.google.gwt.event.dom.client.ClickEvent e ) { e.stopPropagation ( ) ; save ( null ) ; }

Target:
void onSave ( com.google.gwt.event.dom.client.ClickEvent e ) { e.stopPropagation ( ) ; com.google.gerrit.client.rpc.CallbackGroup group = new com.google.gerrit.client.rpc.CallbackGroup ( ) ; save ( group ) ; group.done ( ) ; }
Source:
private boolean isSuccessful ( org.apache.http.HttpResponse response ) { int sc = response.getStatusLine ( ) . getStatusCode ( ) ; return ( sc == ( javax.servlet.http.HttpServletResponse.SC_NO_CONTENT ) ) || ( sc == ( javax.servlet.http.HttpServletResponse.SC_OK ) ) ; }

Target:
private boolean isSuccessful ( org.apache.http.HttpResponse response ) { int sc = response.getStatusLine ( ) . getStatusCode ( ) ; return ( ( sc == ( javax.servlet.http.HttpServletResponse.SC_CREATED ) ) || ( sc == ( javax.servlet.http.HttpServletResponse.SC_NO_CONTENT ) ) ) || ( sc == ( javax.servlet.http.HttpServletResponse.SC_OK ) ) ; }
Source:
public com.google.gerrit.server.git.BatchUpdate addOp ( com.google.gerrit.reviewdb.client.Change.Id id , com.google.gerrit.server.git.BatchUpdate.Op op ) { com.google.common.base.Preconditions.checkArgument ( ( ! ( op instanceof com.google.gerrit.server.git.BatchUpdate.InsertChangeOp ) ) , "use insertChange" ) ; ops.put ( id , op ) ; return this ; }

Target:
public com.google.gerrit.server.git.BatchUpdate addOp ( com.google.gerrit.reviewdb.client.Change.Id id , com.google.gerrit.server.git.BatchUpdate.Op op ) { com.google.common.base.Preconditions.checkArgument ( ( ! ( op instanceof com.google.gerrit.server.git.BatchUpdate.InsertChangeOp ) ) , "use insertChange" ) ; com.google.common.base.Preconditions.checkNotNull ( op ) ; ops.put ( id , op ) ; return this ; }
Source:
public boolean match ( final T object ) throws com.google.gwtorm.server.OrmException { for ( final com.google.gerrit.server.query.Predicate < T > c : children ) { if ( ! ( c.match ( object ) ) ) { return false ; } } return true ; }

Target:
public boolean isMatchable ( ) { for ( com.google.gerrit.server.query.Predicate < T > c : children ) { if ( ! ( c.isMatchable ( ) ) ) { return false ; } } return true ; }
Source:
public java.lang.String getContentType ( ) { return response.getFirstHeader ( "X-FYI-Content-Type" ) . getValue ( ) ; }

Target:
public java.lang.String getHeader ( java.lang.String name ) { org.apache.http.Header hdr = response.getFirstHeader ( name ) ; return hdr != null ? hdr.getValue ( ) : null ; }
Source:
public void check ( com.google.gerrit.server.permissions.RefPermission perm ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.permissions.PermissionBackendException { if ( ! ( can ( perm ) ) ) { throw new com.google.gerrit.extensions.restapi.AuthException ( ( ( ( perm.describeForException ( ) ) + " not permitted for " ) + ( getRefName ( ) ) ) ) ; } }

Target:
public void check ( com.google.gerrit.server.permissions.RefPermission perm ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.server.permissions.PermissionBackendException { if ( ! ( can ( perm ) ) ) { throw new com.google.gerrit.extensions.restapi.AuthException ( ( ( ( perm.describeForException ( ) ) + " not permitted for " ) + ( refName ) ) ) ; } }
Source:
public void removeReviewer ( com.google.gerrit.reviewdb.client.Account.Id reviewer ) { reviewers.put ( reviewer , ReviewerState.REMOVED ) ; }

Target:
public void removeReviewer ( com.google.gerrit.reviewdb.client.Account.Id reviewer ) { reviewers.put ( reviewer , ReviewerStateInternal.REMOVED ) ; }
Source:
public void destroy ( ) { }

Target:
public void destroy ( ) { if ( ( ( task ) != null ) && ( ! ( task.isDone ( ) ) ) ) { task.cancel ( true ) ; } }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { onSaveType ( ) ; }

Target:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { setExternalGroup ( key ) ; }
Source:
static com.googlesource.gerrit.plugins.findowners.OwnersDb get ( com.googlesource.gerrit.plugins.findowners.Server server , java.lang.String key , java.lang.String url , java.lang.String project , java.lang.String branch , java.util.Collection < java.lang.String > files ) { return com.googlesource.gerrit.plugins.findowners.Cache.get ( server , key , null , url , project , branch , files ) ; }

Target:
com.googlesource.gerrit.plugins.findowners.OwnersDb get ( org.eclipse.jgit.lib.Repository repo , com.google.gerrit.server.query.change.ChangeData changeData ) throws com.google.gwtorm.server.OrmException { return get ( repo , changeData , changeData.currentPatchSet ( ) . getId ( ) . get ( ) ) ; }
Source:
public void removeApproval ( java.lang.String label ) { removeApprovalFor ( getUser ( ) . getAccountId ( ) , label ) ; }

Target:
public void setChangeId ( java.lang.String changeId ) { java.lang.String old = getChange ( ) . getKey ( ) . get ( ) ; com.google.common.base.Preconditions.checkArgument ( old.equals ( changeId ) , "The Change-Id was already set to %s, so we cannot set this Change-Id: %s" , old , changeId ) ; this . changeId = changeId ; }
Source:
public com.google.gerrit.extensions.common.ChangeInfo addChangeActions ( com.google.gerrit.extensions.common.ChangeInfo to , com.google.gerrit.server.project.ChangeControl ctl ) { to.actions = toActionMap ( ctl ) ; return to ; }

Target:
public com.google.gerrit.extensions.common.ChangeInfo addChangeActions ( com.google.gerrit.extensions.common.ChangeInfo to , com.google.gerrit.server.project.ChangeControl ctl ) { java.util.List < com.google.gerrit.extensions.api.changes.ActionVisitor > visitors = visitors ( ) ; to.actions = toActionMap ( ctl , visitors , copy ( visitors , to ) ) ; return to ; }
Source:
private void afterTest ( ) throws java.lang.Exception { db.close ( ) ; sshSession.close ( ) ; server.stop ( ) ; }

Target:
private void afterTest ( ) throws java.lang.Exception { db.close ( ) ; sshSession.close ( ) ; server.stop ( ) ; com.google.gerrit.acceptance.TempFileUtil.cleanup ( ) ; }
Source:
public void evictAfterRename ( final com.google.gerrit.reviewdb.AccountGroup.NameKey oldName ) { byName.remove ( oldName ) ; }

Target:
public void evictAfterRename ( final com.google.gerrit.reviewdb.AccountGroup.NameKey oldName , final com.google.gerrit.reviewdb.AccountGroup.NameKey newName ) { byName.remove ( oldName ) ; updateGroupList ( oldName , newName ) ; }
Source:
static void publish ( com.google.gerrit.reviewdb.client.Change.Id id , java.lang.String revision ) { com.google.gerrit.client.changes.ChangeApi.publish ( id.get ( ) , revision , com.google.gerrit.client.change.DraftActions.cs ( id ) ) ; }

Target:
static void publish ( com.google.gerrit.reviewdb.client.Change.Id id , java.lang.String revision , com.google.gwt.user.client.ui.Button ... draftButtons ) { com.google.gerrit.client.changes.ChangeApi.publish ( id.get ( ) , revision , com.google.gerrit.client.change.DraftActions.cs ( id , draftButtons ) ) ; }
Source:
private static java.lang.String url ( com.google.gerrit.reviewdb.client.PatchSet.Id ps , com.google.gerrit.client.changes.CommentInfo info ) { return com.google.gerrit.client.Dispatcher.toSideBySide ( null , ps , info.path ( ) ) ; }

Target:
private static java.lang.String url ( com.google.gerrit.reviewdb.client.PatchSet.Id ps , com.google.gerrit.client.changes.CommentInfo info ) { return com.google.gerrit.client.Dispatcher.toPatch ( null , ps , info.path ( ) ) ; }
Source:
public void close ( ) throws java.lang.Exception { blockReviewDbUpdates ( false ) ; }

Target:
private com.google.gerrit.server.group.db.GroupBundle rebuild ( com.google.gerrit.server.group.db.GroupBundle reviewDbBundle ) throws java.lang.Exception { try ( org.eclipse.jgit.lib.Repository repo = repoManager.openRepository ( allUsers ) ) { rebuilder.rebuild ( repo , reviewDbBundle , null ) ; return bundleFactory.fromNoteDb ( repo , reviewDbBundle.uuid ( ) ) ; } }
Source:
public java.util.List < com.google.gerrit.client.reviewdb.PatchLineComment > run ( com.google.gerrit.client.reviewdb.ReviewDb db ) throws com.google.gwtorm.client.OrmException { return db.patchComments ( ) . draft ( key , com.google.gerrit.client.rpc.Common.getAccountId ( ) ) . toList ( ) ; }

Target:
public com.google.gerrit.server.patch.PatchDetailServiceImpl.PublishResult run ( com.google.gerrit.client.reviewdb.ReviewDb db , com.google.gwtorm.client.Transaction txn , boolean retry ) throws com.google.gwtorm.client.OrmException { return doPublishComments ( psid , message , approvals , db , txn ) ; }
Source:
protected void onUnload ( ) { super . onUnload ( ) ; if ( setTheme ) { Gerrit.THEMER.set ( null ) ; } }

Target:
protected void onUnload ( ) { super . onUnload ( ) ; if ( setTheme ) { Gerrit.THEMER.clear ( ) ; } }
Source:
protected com.google.gerrit.server.notedb.ChangeUpdate newUpdate ( com.google.gerrit.reviewdb.client.Change c , com.google.gerrit.server.CurrentUser user ) throws java.lang.Exception { com.google.gerrit.server.notedb.ChangeUpdate update = com.google.gerrit.testutil.TestChanges.newUpdate ( injector , repoManager , com.google.gerrit.server.notedb.AbstractChangeNotesTest.MIGRATION , c , allUsers , user ) ; return update ; }

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 ( args , c.getProject ( ) , c ) . load ( ) ; }
Source:
public com.google.gerrit.server.CurrentUser getCurrentUser ( ) ;

Target:
public com.google.gerrit.server.CurrentUser getUser ( ) ;
Source:
public com.google.gerrit.acceptance.RestResponse post ( java.lang.String endPoint ) { return null ; }

Target:
public com.google.gerrit.acceptance.RestResponse post ( java.lang.String endPoint , java.lang.Object content ) throws java.io.IOException { org.apache.http.client.methods.HttpPost post = new org.apache.http.client.methods.HttpPost ( ( "http://localhost:8080/a" + endPoint ) ) ; if ( content != null ) { post.addHeader ( new org.apache.http.message.BasicHeader ( "Content-Type" , "application/json" ) ) ; post.setEntity ( new org.apache.http.entity.StringEntity ( new com.google.gson.Gson ( ) . toJson ( content ) , org.apache.http.protocol.HTTP.UTF_8 ) ) ; } return new com.google.gerrit.acceptance.RestResponse ( getClient ( ) . execute ( post ) ) ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { if ( ( userPopup.isShowing ( ) ) && ( userPopup.isVisible ( ) ) ) { userPopup.hide ( ) ; } else { userPopup.showRelativeTo ( l ) ; } }

Target:
private void showHidePopup ( ) { if ( ( userPopup.isShowing ( ) ) && ( userPopup.isVisible ( ) ) ) { userPopup.hide ( ) ; } else { userPopup.showRelativeTo ( userSummaryPanel ) ; } }
Source:
public static boolean shouldConfigureLogSystem ( ) { return com.google.common.base.Strings.isNullOrEmpty ( java.lang.System.getProperty ( com.google.gerrit.util.LogUtil.LOG4J_CONFIGURATION ) ) ; }

Target:
public static boolean shouldConfigureLogSystem ( ) { return com.google.common.base.Strings.isNullOrEmpty ( java.lang.System.getProperty ( com.google.gerrit.server.util.LogUtil.LOG4J_CONFIGURATION ) ) ; }
Source:
public void evict ( com.google.gerrit.reviewdb.Account.Id key ) ;

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > evictAsync ( com.google.gerrit.reviewdb.Account.Id key ) ;
Source:
public static java.lang.String refsUsers ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { java.lang.StringBuilder r = new java.lang.StringBuilder ( ) ; r.append ( com.google.gerrit.reviewdb.client.RefNames.REFS_USERS ) ; r.append ( com.google.gerrit.reviewdb.client.RefNames.shard ( accountId.get ( ) ) ) ; return r.toString ( ) ; }

Target:
public static java.lang.String refsUsers ( com.google.gerrit.reviewdb.client.Account.Id accountId ) { java.lang.StringBuilder r = com.google.gerrit.reviewdb.client.RefNames.newStringBuilder ( ) . append ( com.google.gerrit.reviewdb.client.RefNames.REFS_USERS ) ; return com.google.gerrit.reviewdb.client.RefNames.shard ( accountId.get ( ) , r ) . toString ( ) ; }
Source:
private static java.lang.String extractFooter ( java.lang.String key , java.lang.String line ) { return line.substring ( ( ( line.indexOf ( key ) ) + ( key.length ( ) ) ) , line.length ( ) ) ; }

Target:
private static java.lang.String extractFooter ( java.lang.String key , java.lang.String line ) { return line.substring ( ( ( line.indexOf ( key ) ) + ( key.length ( ) ) ) , line.length ( ) ) . trim ( ) ; }
Source:
public void add ( final com.google.inject.Injector ... injectors ) { for ( final com.google.inject.Injector i : injectors ) { add ( i ) ; } }

Target:
public void add ( com.google.inject.Injector injector ) { com.google.common.base.Preconditions.checkState ( ( ( startedIndex ) < 0 ) , "Already started" ) ; for ( com.google.inject.Binding < com.google.gerrit.lifecycle.LifecycleListener > binding : com.google.gerrit.lifecycle.LifecycleManager.get ( injector ) ) { add ( binding.getProvider ( ) ) ; } }
Source:
protected void add ( final javax.mail.Message.RecipientType rt , final java.util.Collection < com.google.gerrit.client.reviewdb.Account.Id > list ) throws javax.mail.MessagingException { for ( final com.google.gerrit.client.reviewdb.Account.Id id : list ) { add ( rt , id ) ; } }

Target:
protected void add ( final com.google.gerrit.server.mail.RecipientType rt , final java.util.Collection < com.google.gerrit.client.reviewdb.Account.Id > list ) { for ( final com.google.gerrit.client.reviewdb.Account.Id id : list ) { add ( rt , id ) ; } }
Source:
private void addExtensionPoints ( ) { addExtensionPoint ( GerritUiExtensionPoint.CHANGE_SCREEN_HEADER , headerExtension ) ; addExtensionPoint ( GerritUiExtensionPoint.CHANGE_SCREEN_HEADER_RIGHT_OF_BUTTONS , headerExtensionMiddle ) ; addExtensionPoint ( GerritUiExtensionPoint.CHANGE_SCREEN_HEADER_RIGHT_OF_POP_DOWNS , headerExtensionRight ) ; addExtensionPoint ( GerritUiExtensionPoint.CHANGE_SCREEN_BELOW_CHANGE_INFO_BLOCK , changeExtension ) ; }

Target:
private void addExtensionPoints ( com.google.gerrit.client.info.ChangeInfo change ) { addExtensionPoint ( GerritUiExtensionPoint.CHANGE_SCREEN_HEADER , headerExtension , change ) ; addExtensionPoint ( GerritUiExtensionPoint.CHANGE_SCREEN_HEADER_RIGHT_OF_BUTTONS , headerExtensionMiddle , change ) ; addExtensionPoint ( GerritUiExtensionPoint.CHANGE_SCREEN_HEADER_RIGHT_OF_POP_DOWNS , headerExtensionRight , change ) ; addExtensionPoint ( GerritUiExtensionPoint.CHANGE_SCREEN_BELOW_CHANGE_INFO_BLOCK , changeExtension , change ) ; }
Source:
public com.google.gerrit.server.project.ChangeControl forUser ( final com.google.gerrit.server.CurrentUser who ) { return new com.google.gerrit.server.project.ChangeControl ( approvalsUtil , getRefControl ( ) . forUser ( who ) , getChange ( ) ) ; }

Target:
public com.google.gerrit.server.project.ChangeControl forUser ( final com.google.gerrit.server.CurrentUser who ) { return new com.google.gerrit.server.project.ChangeControl ( approvalsUtil , changeDataFactory , getRefControl ( ) . forUser ( who ) , notes ) ; }
Source:
public void testParse_NameEmail3 ( ) { final com.google.gerrit.server.mail.Address a = com.google.gerrit.server.mail.Address.parse ( "<a@b>" ) ; assertNull ( a.name ) ; assertEquals ( "a@b" , a.email ) ; }

Target:
public void testParse_NameEmail3 ( ) { final com.google.gerrit.server.mail.Address a = com.google.gerrit.server.mail.Address.parse ( "<a@b>" ) ; org.junit.Assert.assertNull ( a.name ) ; org.junit.Assert.assertEquals ( "a@b" , a.email ) ; }
Source:
public void subsetOfBranchesVisibleIncludingHead ( ) throws java.lang.Exception { allow ( Permission.READ , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS , "refs/heads/master" ) ; deny ( Permission.READ , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS , "refs/heads/branch" ) ; assertRefs ( "HEAD" , "refs/changes/01/1/1" , "refs/heads/master" ) ; }

Target:
public void subsetOfBranchesVisibleIncludingHead ( ) throws java.lang.Exception { allow ( Permission.READ , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS , "refs/heads/master" ) ; deny ( Permission.READ , com.google.gerrit.server.group.SystemGroupBackend.REGISTERED_USERS , "refs/heads/branch" ) ; assertRefs ( "HEAD" , "refs/changes/01/1/1" , "refs/changes/01/1/meta" , "refs/heads/master" ) ; }
Source:
private com.google.gerrit.httpd.raw.Paths getPaths ( ) { if ( ( paths ) == null ) { paths = new com.google.gerrit.httpd.raw.Paths ( ) ; } return paths ; }

Target:
private com.google.gerrit.httpd.raw.StaticModule.Paths getPaths ( ) { if ( ( paths ) == null ) { paths = new com.google.gerrit.httpd.raw.StaticModule.Paths ( ) ; } return paths ; }