auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private java.lang.String url ( com.google.gerrit.client.diff.FileInfo info ) { return info.binary ( ) ? com.google.gerrit.client.Dispatcher.toUnified ( base , patchSetId , info.path ( ) ) : com.google.gerrit.client.Dispatcher.toSideBySide ( base , patchSetId , info.path ( ) ) ; }

Target:
private java.lang.String url ( com.google.gerrit.client.info.FileInfo info ) { return info.binary ( ) ? com.google.gerrit.client.Dispatcher.toUnified ( base , patchSetId , info.path ( ) ) : com.google.gerrit.client.Dispatcher.toSideBySide ( base , patchSetId , info.path ( ) ) ; }
Source:
public void onEvent ( final com.google.gerrit.server.events.Event event ) { offer ( event ) ; }

Target:
public void run ( ) { writeEvents ( ) ; }
Source:
public void insert ( com.google.gerrit.server.query.change.ChangeData cd ) throws java.io.IOException { }

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > insert ( com.google.gerrit.server.query.change.ChangeData cd ) throws java.io.IOException { return com.google.common.util.concurrent.Futures.immediateFuture ( null ) ; }
Source:
public static com.google.gerrit.client.rpc.RestApi edit ( int id ) { return com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( "edit" ) ; }

Target:
public static com.google.gerrit.client.rpc.RestApi comments ( @ com.google.gerrit.common.Nullable java.lang.String project , int id ) { return com.google.gerrit.client.changes.ChangeApi.call ( project , id , "comments" ) ; }
Source:
public void start ( ) { if ( ( listeners ) == null ) { listeners = all ( ) ; for ( com.google.gerrit.lifecycle.LifecycleListener obj : listeners ) { obj.start ( ) ; } } }

Target:
public void add ( final com.google.inject.Injector ... injectors ) { for ( final com.google.inject.Injector i : injectors ) { add ( i ) ; } }
Source:
public boolean isSubmit ( ) { return com.google.gerrit.reviewdb.client.PatchSetApproval.LabelId.SUBMIT.get ( ) . equals ( getLabel ( ) ) ; }

Target:
public boolean isSubmit ( ) { return LabelId.SUBMIT.get ( ) . equals ( getLabel ( ) ) ; }
Source:
public org.eclipse.jgit.patch.FileHeader call ( ) throws java.io.IOException { return diffFormatter.toFileHeader ( diffEntry ) ; }

Target:
public org.eclipse.jgit.patch.FileHeader call ( ) throws java.io.IOException { synchronized ( lock ) { return diffFormatter.toFileHeader ( diffEntry ) ; } }
Source:
public void notSticky ( ) throws java.lang.Exception { assertNotSticky ( java.util.EnumSet.of ( com.google.gerrit.extensions.client.ChangeKind.REWORK , com.google.gerrit.extensions.client.ChangeKind.TRIVIAL_REBASE , com.google.gerrit.extensions.client.ChangeKind.NO_CODE_CHANGE ) ) ; }

Target:
public void notSticky ( ) throws java.lang.Exception { assertNotSticky ( java.util.EnumSet.of ( com.google.gerrit.extensions.client.ChangeKind.REWORK , com.google.gerrit.extensions.client.ChangeKind.TRIVIAL_REBASE , com.google.gerrit.extensions.client.ChangeKind.NO_CODE_CHANGE , com.google.gerrit.extensions.client.ChangeKind.MERGE_FIRST_PARENT_UPDATE ) ) ; }
Source:
public com.google.gerrit.server.IdentifiedUser runAs ( com.google.gerrit.reviewdb.client.Account.Id id , com.google.gerrit.server.CurrentUser caller ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , anonymousCowardName , canonicalUrl , accountCache , groupBackend , remotePeerProvider , dbProvider , id , caller ) ; }

Target:
public com.google.gerrit.server.IdentifiedUser create ( com.google.gerrit.reviewdb.client.Account.Id id ) { return new com.google.gerrit.server.IdentifiedUser ( capabilityControlFactory , authConfig , anonymousCowardName , canonicalUrl , accountCache , groupBackend , disableReverseDnsLookup , remotePeerProvider , dbProvider , id , null ) ; }
Source:
public void addPublishedComments ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.notedb.ChangeUpdate update , java.lang.Iterable < com.google.gerrit.reviewdb.client.PatchLineComment > comments ) throws com.google.gwtorm.server.OrmException { for ( com.google.gerrit.reviewdb.client.PatchLineComment c : comments ) { update.upsertComment ( c ) ; } db.patchComments ( ) . upsert ( comments ) ; }

Target:
public void upsertComments ( com.google.gerrit.reviewdb.server.ReviewDb db , com.google.gerrit.server.notedb.ChangeUpdate update , java.lang.Iterable < com.google.gerrit.reviewdb.client.PatchLineComment > comments ) throws com.google.gwtorm.server.OrmException { for ( com.google.gerrit.reviewdb.client.PatchLineComment c : comments ) { update.upsertComment ( c ) ; } db.patchComments ( ) . upsert ( comments ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo result ) { display ( result ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.info.ChangeInfo result ) { display ( result ) ; }
Source:
protected void submit ( java.lang.String changeId ) throws java.lang.Exception { submit ( changeId , HttpStatus.SC_OK , null ) ; }

Target:
protected void submit ( java.lang.String changeId , com.google.gerrit.extensions.api.changes.SubmitInput input ) throws java.lang.Exception { submit ( changeId , input , null , null ) ; }
Source:
public com.google.gerrit.server.project.ChangeControl controlFor ( final com.google.gerrit.reviewdb.Change change ) { return new com.google.gerrit.server.project.ChangeControl ( this , change ) ; }

Target:
public com.google.gerrit.server.project.ChangeControl controlFor ( final com.google.gerrit.reviewdb.Change change ) { return new com.google.gerrit.server.project.ChangeControl ( controlForRef ( change.getDest ( ) ) , change ) ; }
Source:
public com.google.gerrit.server.CurrentUser getCurrentUser ( ) { return user.getRealUser ( ) ; BRANCH ( e39cb5 ) ; EmailReviewComments : Provide = $missing$ ; com.google.gerrit.server.change.the current ; instead ( exc ) ; }

Target:
public com.google.gerrit.server.CurrentUser getUser ( ) { return user.getRealUser ( ) ; }
Source:
public void run ( ) { switch ( getIntraLineStatus ( ) ) { case OFF : case OK : toggleShowIntraline ( ) ; break ; default : break ; } }

Target:
public void onKeyPress ( com.google.gwt.event.dom.client.KeyPressEvent event ) { toggleReviewed ( ) . run ( ) ; }
Source:
public void onChange ( final com.google.gwt.event.dom.client.ChangeEvent event ) { save.setEnabled ( true ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { doSave ( ) ; }
Source:
public void evict ( final com.google.gerrit.reviewdb.Account.Id accountId ) { byId.remove ( accountId ) ; }

Target:
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 ; }
Source:
private com.google.common.util.concurrent.ListeningExecutorService newExecutor ( ) { if ( ( threads ) > 0 ) { return com.google.common.util.concurrent.MoreExecutors.listeningDecorator ( dbInjector.getInstance ( com.google.gerrit.server.git.WorkQueue.class ) . createQueue ( threads , "RebuildChange" ) ) ; } else { return com.google.common.util.concurrent.MoreExecutors.sameThreadExecutor ( ) ; } }

Target:
private com.google.common.util.concurrent.ListeningExecutorService newExecutor ( ) { if ( ( threads ) > 0 ) { return com.google.common.util.concurrent.MoreExecutors.listeningDecorator ( dbInjector.getInstance ( com.google.gerrit.server.git.WorkQueue.class ) . createQueue ( threads , "RebuildChange" ) ) ; } else { return com.google.common.util.concurrent.MoreExecutors.newDirectExecutorService ( ) ; } }
Source:
default void afterRefUpdates ( ) throws java.lang.Exception { }

Target:
default void afterUpdateRefs ( ) throws java.lang.Exception { }
Source:
void onLeftSide ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > e ) { view.diffTable.setVisibleA ( e.getValue ( ) ) ; }

Target:
void onLeftSide ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > e ) { if ( ( view.getDiffTable ( ) ) instanceof com.google.gerrit.client.diff.SideBySideTable ) { ( ( com.google.gerrit.client.diff.SideBySideTable ) ( view.getDiffTable ( ) ) ) . setVisibleA ( e.getValue ( ) ) ; } }
Source:
private static com.google.gerrit.server.account.AccountState newState ( com.google.gerrit.reviewdb.client.Account account ) { return new com.google.gerrit.server.account.AccountState ( new com.google.gerrit.server.config.AllUsersName ( com.google.gerrit.server.config.AllUsersNameProvider.DEFAULT ) , account , com.google.common.collect.ImmutableSet.of ( ) , new java.util.HashMap < > ( ) ) ; }

Target:
private static com.google.gerrit.server.account.AccountState newState ( com.google.gerrit.reviewdb.client.Account account ) { return new com.google.gerrit.server.account.AccountState ( new com.google.gerrit.server.config.AllUsersName ( com.google.gerrit.server.config.AllUsersNameProvider.DEFAULT ) , account , com.google.common.collect.ImmutableSet.of ( ) , new java.util.HashMap < > ( ) , com.google.gerrit.extensions.client.GeneralPreferencesInfo.defaults ( ) ) ; }
Source:
public static void createEdit ( int id , java.lang.String commit , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gerrit.client.changes.ChangeApi.call ( id , commit , "create_edit" ) . post ( com.google.gwt.core.client.JavaScriptObject.createObject ( ) , cb ) ; }

Target:
public static void deleteEdit ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gerrit.client.changes.ChangeApi.edit ( id ) . delete ( cb ) ; }
Source:
final Account.FieldName get ( ) { return Account.FieldName.valueOf ( getRaw ( ) ) ; }

Target:
public final boolean isOAuth ( ) { return ( authType ( ) ) == ( com.google.gerrit.reviewdb.client.AuthType.OAUTH ) ; }
Source:
public final native void set_commit ( com.google.gerrit.client.changes.ChangeInfo.CommitInfo c ) ;

Target:
public final native void setCommit ( com.google.gerrit.client.changes.ChangeInfo.CommitInfo c ) ;
Source:
public boolean isVisible ( ) { return ( ( projectControl.visibleForReplication ( ) ) || ( canPerform ( Permission.READ ) ) ) && ( canRead ( ) ) ; }

Target:
public boolean isVisible ( ) { return ( ( ( getCurrentUser ( ) ) instanceof com.google.gerrit.server.InternalUser ) || ( canPerform ( Permission.READ ) ) ) && ( canRead ( ) ) ; }
Source:
public java.lang.String getId ( ) { return ( id ) != null ? id : name ; }

Target:
public com.google.gerrit.reviewdb.client.PatchSetApproval.LabelId getLabelId ( ) { return new com.google.gerrit.reviewdb.client.PatchSetApproval.LabelId ( ( ( id ) != null ? id : name ) ) ; }
Source:
public void createGroup ( final java.lang.String newName , final com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.reviewdb.client.AccountGroup.Id > callback ) { createGroupFactory.create ( newName ) . to ( callback ) ; }

Target:
public void createGroup ( final java.lang.String newName , final com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.reviewdb.client.AccountGroup.Id > callback ) { createGroupFactory.create ( newName ) . to ( callback ) ; }
Source:
public org.eclipse.jgit.lib.ObjectInserter getInserter ( ) throws java.io.IOException { initRepository ( ) ; return inserter ; }

Target:
public org.eclipse.jgit.lib.ObjectInserter getInserter ( ) throws java.io.IOException { return this . getObjectInserter ( ) ; }
Source:
public static void init ( ) { com.google.gerrit.client.api.ApiGlue.init0 ( ) ; com.google.gerrit.client.api.ActionContext.init ( ) ; com.google.gerrit.client.api.ApiGlue.addHistoryHook ( ) ; }

Target:
public static void init ( ) { com.google.gerrit.client.api.ApiGlue.init0 ( ) ; com.google.gerrit.client.api.ActionContext.init ( ) ; com.google.gerrit.client.api.Plugin.init ( ) ; com.google.gerrit.client.api.ApiGlue.addHistoryHook ( ) ; }
Source:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { com.google.gerrit.client.Gerrit.getUserAccount ( ) . setUserName ( newUserName ) ; enableUI ( true ) ; }

Target:
public void onSuccess ( final java.util.List < com.google.gerrit.reviewdb.AccountExternalId > result ) { com.google.gerrit.reviewdb.AccountExternalId id = null ; for ( com.google.gerrit.reviewdb.AccountExternalId i : result ) { if ( i.isScheme ( com.google.gerrit.reviewdb.AccountExternalId.SCHEME_USERNAME ) ) { id = i ; break ; } } display ( id ) ; }
Source:
private static java.lang.String getUrl ( java.lang.String baseUrl , java.lang.String path ) throws java.net.MalformedURLException { return new java.net.URL ( new java.net.URL ( baseUrl ) , path ) . toExternalForm ( ) ; }

Target:
private java.lang.String trimTrailingSlash ( java.lang.String url ) { return com.google.common.base.CharMatcher.is ( '/' ) . trimTrailingFrom ( url ) ; }
Source:
public com.google.gerrit.extensions.restapi.Response < com.google.gerrit.server.change.ChangeJson.ChangeInfo > apply ( com.google.gerrit.server.change.ChangeResource rsrc ) throws com.google.gwtorm.server.OrmException { return cache ( json.format ( rsrc ) ) ; }

Target:
public com.google.gerrit.extensions.restapi.Response < com.google.gerrit.extensions.common.ChangeInfo > apply ( com.google.gerrit.server.change.ChangeResource rsrc ) throws com.google.gwtorm.server.OrmException { return cache ( json.format ( rsrc ) ) ; }
Source:
private static java.lang.String getUrl ( java.lang.String pluginName , int changeId , java.lang.Integer patchSetIdA , int patchSetIdB , java.lang.String fileName ) { return ( com.googlesource.gerrit.plugins.xdocs.client.SideBySideDiffPreviewWebLink.getUrl ( pluginName , changeId , patchSetIdA , patchSetIdB , fileName ) ) + ",unified" ; }

Target:
private static java.lang.String getUrl ( java.lang.String pluginName , int changeId , java.lang.Integer patchSetIdA , int patchSetIdB , java.lang.String fileName ) { return ( com.googlesource.gerrit.plugins.xdocs.SideBySideDiffPreviewWebLink.getUrl ( pluginName , changeId , patchSetIdA , patchSetIdB , fileName ) ) + ",unified" ; }
Source:
com.google.gwtorm.client.ResultSet < com.google.gerrit.reviewdb.Change > query ( com.google.gerrit.reviewdb.ReviewDb db , int lim , java.lang.String key ) throws com.google.gwtorm.client.OrmException { return searchQuery ( db , query , lim , key , com.google.gerrit.httpd.rpc.ChangeListServiceImpl.QUERY_NEXT ) ; }

Target:
com.google.gwtorm.client.ResultSet < com.google.gerrit.reviewdb.Change > query ( com.google.gerrit.reviewdb.ReviewDb db , int lim , java.lang.String key ) throws com.google.gerrit.common.errors.InvalidQueryException , com.google.gwtorm.client.OrmException { return searchQuery ( db , query , lim , key , com.google.gerrit.httpd.rpc.ChangeListServiceImpl.QUERY_NEXT ) ; }
Source:
protected void configureServlets ( ) { serve ( "/*" ) . with ( com.googlesource.gerrit.plugins.serverconfig.ServerConfigServlet.class ) ; }

Target:
protected void configureServlets ( ) { filter ( "/*" ) . through ( com.googlesource.gerrit.plugins.serverconfig.HideFromNonAdmins.class ) ; serve ( "/*" ) . with ( com.googlesource.gerrit.plugins.serverconfig.ServerConfigServlet.class ) ; }
Source:
public java.lang.String getUrl ( java.lang.String project ) { final java.lang.StringBuilder r = new java.lang.StringBuilder ( ) ; r.append ( "repo download " ) ; r.append ( project ) ; return r.toString ( ) ; }

Target:
public boolean isAuthRequired ( ) { return false ; }
Source:
protected void configureServlets ( ) { filter ( "/*" ) . through ( com.google.gerrit.server.http.RequestCleanupFilter.class ) ; filter ( "/*" ) . through ( com.google.gerrit.server.http.UrlRewriteFilter.class ) ; }

Target:
private com.google.inject.Injector createWebInjector ( ) { final java.util.List < com.google.inject.Module > modules = new java.util.ArrayList < com.google.inject.Module > ( ) ; modules.add ( sshInjector.getInstance ( com.google.gerrit.server.http.WebModule.class ) ) ; return sysInjector.createChildInjector ( modules ) ; }
Source:
public void markReady ( boolean ready ) throws java.io.IOException { com.google.gerrit.lucene.LuceneChangeIndex.setReady ( sitePaths , schema.getVersion ( ) , ready ) ; }

Target:
public void markReady ( boolean ready ) throws java.io.IOException { com.google.gerrit.lucene.AbstractLuceneIndex.setReady ( sitePaths , schema.getVersion ( ) , ready ) ; }
Source:
private com.googlesource.gerrit.plugins.uploadvalidator.ValidatorConfig getConfig ( java.lang.String defaultConfig , com.google.gerrit.reviewdb.client.Project.NameKey projName ) throws org.eclipse.jgit.errors.ConfigInvalidException { com.googlesource.gerrit.plugins.uploadvalidator.ValidatorConfig config = new com.googlesource.gerrit.plugins.uploadvalidator.ValidatorConfig ( new com.googlesource.gerrit.plugins.uploadvalidator.FakeConfigFactory ( projName , defaultConfig ) , new com.googlesource.gerrit.plugins.uploadvalidator.FakeGroupCacheUUIDByName ( ) ) ; return config ; }

Target:
private com.googlesource.gerrit.plugins.uploadvalidator.ValidatorConfig getConfig ( java.lang.String defaultConfig , com.google.gerrit.reviewdb.client.Project.NameKey projName ) throws org.eclipse.jgit.errors.ConfigInvalidException { return new com.googlesource.gerrit.plugins.uploadvalidator.ValidatorConfig ( new com.googlesource.gerrit.plugins.uploadvalidator.FakeConfigFactory ( projName , defaultConfig ) , new com.googlesource.gerrit.plugins.uploadvalidator.FakeGroupByNameFinder ( ) ) ; }
Source:
public void testGetIndexScript ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( hana.getIndexScript ( ) ) . isEqualTo ( org.hamcrest.CoreMatchers.sameInstance ( ScriptRunner.NOOP ) ) ; }

Target:
public void testGetIndexScript ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( hana.getIndexScript ( ) ) . isSameAs ( ScriptRunner.NOOP ) ; }
Source:
static boolean doCheckInvalidLineEndings ( com.google.gerrit.server.config.PluginConfig cfg ) { return cfg.getBoolean ( com.googlesource.gerrit.plugins.uploadvalidator.InvalidLineEndingValidator.KEY_CHECK_REJECT_WINDOWS_LINE_ENDINGS , false ) ; }

Target:
static boolean isActive ( com.google.gerrit.server.config.PluginConfig cfg ) { return cfg.getBoolean ( com.googlesource.gerrit.plugins.uploadvalidator.InvalidLineEndingValidator.KEY_CHECK_REJECT_WINDOWS_LINE_ENDINGS , false ) ; }
Source:
public void rebuildAndCheckChanges ( com.google.gerrit.reviewdb.client.Change ... changeIds ) throws java.lang.Exception { rebuildAndCheckChanges ( java.util.Arrays.asList ( changeIds ) ) ; }

Target:
public void rebuildAndCheckChanges ( com.google.gerrit.reviewdb.client.Change ... changeIds ) throws java.lang.Exception { rebuildAndCheckChanges ( java.util.Arrays.stream ( changeIds ) ) ; }
Source:
public void tearDown ( ) throws java.lang.Exception { if ( cleanupSitePath ) { if ( sitePath.exists ( ) ) { org.eclipse.jgit.util.FileUtils.delete ( sitePath , FileUtils.RECURSIVE ) ; } } super . tearDown ( ) ; }

Target:
public void tearDown ( ) throws java.lang.Exception { if ( cleanupSitePath ) { if ( java.nio.file.Files.exists ( sitePath ) ) { org.eclipse.jgit.util.FileUtils.delete ( sitePath.toFile ( ) , FileUtils.RECURSIVE ) ; } } super . tearDown ( ) ; }
Source:
public void stop ( ) { openIndex.close ( ) ; closedIndex.close ( ) ; }

Target:
public void stop ( ) { refreshThread.halt ( ) ; openIndex.close ( ) ; closedIndex.close ( ) ; }
Source:
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 ( ) ) ) ; }

Target:
public static java.lang.String shortFormat ( java.util.Date dt ) { com.google.gerrit.client.FormatUtil.ensureInited ( ) ; return com.google.gerrit.client.FormatUtil.dateFormatter.shortFormat ( dt ) ; }
Source:
public void onClick ( android.view.View v ) { root.clear ( ) ; init ( root , path , change , files ) ; displayFile ( root , change , path , files.get ( path ) ) ; }

Target:
public void onClick ( android.view.View v ) { removeDiffView ( ) ; createDiffView ( ) ; init ( path , change , files ) ; displayFile ( change , path , files.get ( path ) ) ; }
Source:
public com.googlecode.prolog_cafe.lang.Term getMessageTerm ( ) { com.googlecode.prolog_cafe.lang.Term [ ] args = new com.googlecode.prolog_cafe.lang.Term [ ] { new com.googlecode.prolog_cafe.lang.JavaObjectTerm ( goal ) , new com.googlecode.prolog_cafe.lang.IntegerTerm ( argNo ) } ; return new com.googlecode.prolog_cafe.lang.StructureTerm ( com.googlecode.prolog_cafe.lang.PInstantiationException.INSTANTIATION_ERROR , args ) ; }

Target:
public com.googlecode.prolog_cafe.lang.Term getMessageTerm ( ) { com.googlecode.prolog_cafe.lang.Term [ ] args = new com.googlecode.prolog_cafe.lang.Term [ ] { new com.googlecode.prolog_cafe.lang.JavaObjectTerm ( goal ) , new com.googlecode.prolog_cafe.lang.IntegerTerm ( argNo ) } ; return new com.googlecode.prolog_cafe.lang.StructureTerm ( com.googlecode.prolog_cafe.exceptions.PInstantiationException.INSTANTIATION_ERROR , args ) ; }
Source:
public void selfRevokedKey ( ) throws java.lang.Exception { assertProblems ( com.google.gerrit.gpg.testutil.TestKeys.selfRevokedKey ( ) , "Key is revoked" ) ; }

Target:
public void selfRevokedKeyIsRevoked ( ) throws java.lang.Exception { assertProblems ( com.google.gerrit.gpg.testutil.TestKeys.selfRevokedKey ( ) , "Key is revoked (key material has been compromised)" ) ; }
Source:
public void onFailure ( java.lang.Throwable err ) { getTab ( ) . setTitle ( Resources.M.conflictingChanges ( "na" ) ) ; getTab ( ) . setError ( err.getMessage ( ) ) ; }

Target:
public void onFailure ( java.lang.Throwable err ) { getTab ( ) . setTitle ( Resources.M.conflictingChanges ( Resources.C.notAvailable ( ) ) ) ; getTab ( ) . setError ( err.getMessage ( ) ) ; }
Source:
public static void setCurrentAccountImpl ( final com.google.gerrit.client.rpc.RpcUtil.CurrentAccountImpl i ) { com.google.gerrit.client.rpc.RpcUtil.caImpl = i ; }

Target:
public static void setCurrentAccountImpl ( final com.google.gerrit.client.rpc.Common.CurrentAccountImpl i ) { com.google.gerrit.client.rpc.Common.caImpl = i ; }
Source:
java.io.File getWebSessionDir ( com.google.gerrit.server.config.SitePaths site , com.google.gerrit.server.config.PluginConfigFactory cfg , @ com.google.gerrit.extensions.annotations.PluginName java.lang.String pluginName ) { return new java.io.File ( cfg.getFromGerritConfig ( pluginName ) . getString ( "directory" , ( ( site.site_path ) + "/websessions" ) ) ) ; }

Target:
java.nio.file.Path getWebSessionDir ( com.google.gerrit.server.config.SitePaths site , com.google.gerrit.server.config.PluginConfigFactory cfg , @ com.google.gerrit.extensions.annotations.PluginName java.lang.String pluginName ) { return java.nio.file.Paths.get ( cfg.getFromGerritConfig ( pluginName ) . getString ( "directory" , ( ( site.site_path ) + "/websessions" ) ) ) ; }
Source:
public void rangeInOneLineIsValid ( ) { com.google.gerrit.extensions.client.Comment.Range range = createRange ( 13 , 2 , 13 , 10 ) ; com.google.gerrit.extensions.client.testing.RangeSubject.assertThat ( range ) . isValid ( ) ; }

Target:
public void rangeInOneLineIsValid ( ) { com.google.gerrit.extensions.client.Comment.Range range = createRange ( 13 , 2 , 13 , 10 ) ; com.google.gerrit.extensions.common.testing.RangeSubject.assertThat ( range ) . isValid ( ) ; }
Source:
protected org.eclipse.jgit.lib.ObjectInserter getObjectInserter ( ) throws java.io.IOException { initRepository ( ) ; return repoView.getInserter ( ) ; }

Target:
protected com.google.gerrit.server.update.RepoView getRepoView ( ) throws java.io.IOException { initRepository ( ) ; return repoView ; }
Source:
void visibleProjectDetails ( com.google.gwt.user.client.rpc.AsyncCallback < java.util.List < com.google.gerrit.common.data.ProjectDetail > > callback ) ;

Target:
void projectDetail ( com.google.gerrit.reviewdb.client.Project.NameKey projectName , com.google.gwtjsonrpc.common.AsyncCallback < com.google.gerrit.common.data.ProjectDetail > callback ) ;
Source:
public void testCreateGroupWhenGroupAlreadyExists_Conflict ( ) throws java.lang.Exception { exception.expect ( com.google.gerrit.extensions.restapi.ResourceConflictException.class ) ; gApi.groups ( ) . create ( "Administrators" ) ; }

Target:
public void testCreateDuplicateSystemGroupCaseSensitiveName_Conflict ( ) throws java.lang.Exception { java.lang.String newGroupName = "Registered Users" ; exception.expect ( com.google.gerrit.extensions.restapi.ResourceConflictException.class ) ; exception.expectMessage ( "group 'Registered Users' already exists" ) ; gApi.groups ( ) . create ( newGroupName ) ; }
Source:
public void run ( ) { try { running = true ; task.run ( ) ; } finally { running = false ; } }

Target:
public void run ( ) { if ( running.compareAndSet ( false , true ) ) { try { task.run ( ) ; } finally { if ( isPeriodic ( ) ) { running.set ( false ) ; } } } }
Source:
public com.google.gerrit.server.account.GroupControl controlFor ( com.google.gerrit.common.data.GroupDescription.Basic group ) { return new com.google.gerrit.server.account.GroupControl ( user.get ( ) , group , groupBackend ) ; }

Target:
public com.google.gerrit.server.account.GroupControl controlFor ( com.google.gerrit.common.data.GroupDescription.Basic group ) { return new com.google.gerrit.server.account.GroupControl ( user.get ( ) , group , permissionBackend , groupBackend ) ; }
Source:
public TestPerson.Key getParentKey ( ) { return owner ; }

Target:
public Person.Key getParentKey ( ) { return owner ; }
Source:
protected com.google.gerrit.server.patch.PatchList getPatchList ( ) throws com.google.gerrit.server.patch.PatchListNotAvailableException { if ( ( patchSet ) != null ) { return args.patchListCache.get ( change , patchSet ) ; } throw new com.google.gerrit.server.patch.PatchListNotAvailableException ( "no patchSet specified" ) ; }

Target:
protected com.google.gerrit.server.diff.PatchList getPatchList ( ) throws com.google.gerrit.server.diff.PatchListNotAvailableException { if ( ( patchSet ) != null ) { return args.patchListCache.get ( change , patchSet ) ; } throw new com.google.gerrit.server.diff.PatchListNotAvailableException ( "no patchSet specified" ) ; }
Source:
public java.lang.String apply ( com.google.gerrit.server.account.AccountResource rsrc ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.extensions.restapi.ResourceNotFoundException { java.lang.String username = rsrc.getUser ( ) . getAccount ( ) . getUserName ( ) ; if ( username == null ) { throw new com.google.gerrit.extensions.restapi.ResourceNotFoundException ( ) ; } return username ; }

Target:
public java.lang.String apply ( com.google.gerrit.server.account.AccountResource rsrc ) throws com.google.gerrit.extensions.restapi.AuthException , com.google.gerrit.extensions.restapi.ResourceNotFoundException { java.lang.String username = rsrc.getUser ( ) . state ( ) . getUserName ( ) ; if ( username == null ) { throw new com.google.gerrit.extensions.restapi.ResourceNotFoundException ( ) ; } return username ; }
Source:
public com.google.gerrit.extensions.client.GeneralPreferencesInfo getPreferences ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getPreferences.apply ( account ) ; } catch ( com.google.gerrit.server.permissions.PermissionBackendException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot get preferences" , e ) ; } }

Target:
public com.google.gerrit.extensions.client.GeneralPreferencesInfo getPreferences ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getPreferences.apply ( account ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot get preferences" , e ) ; } }
Source:
private void extractMailExample ( java.lang.String orig ) throws java.lang.Exception { java.io.File ex = new java.io.File ( site.mail_dir , ( orig + ".example" ) ) ; com.google.gerrit.pgm.init.InitUtil.extract ( ex , com.google.gerrit.server.mail.OutgoingEmail.class , orig ) ; com.google.gerrit.common.FileUtil.chmod ( 292 , ex ) ; }

Target:
private void extractMailExample ( java.lang.String orig ) throws java.lang.Exception { java.io.File ex = new java.io.File ( site.mail_dir , ( orig + ".example" ) ) ; com.google.gerrit.pgm.init.api.InitUtil.extract ( ex , com.google.gerrit.server.mail.OutgoingEmail.class , orig ) ; com.google.gerrit.common.FileUtil.chmod ( 292 , ex ) ; }
Source:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo result ) { sent = true ; hide ( ) ; com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( result.legacy_id ( ) ) ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo result ) { sent = true ; hide ( ) ; com.google.gerrit.client.Gerrit.display ( com.google.gerrit.common.PageLinks.toChange ( result.legacyId ( ) ) ) ; }
Source:
public static com.google.gerrit.client.rpc.RestApi edit ( int id ) { return com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( "edits" ) . id ( "0" ) ; }

Target:
public static void editWithFiles ( int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.changes.ChangeInfo.EditInfo > cb ) { com.google.gerrit.client.changes.ChangeApi.edit ( id ) . addParameter ( "list" , true ) . get ( cb ) ; }
Source:
PatchSet.Id getPatchSetIdFromSide ( com.google.gerrit.client.diff.DisplaySide side ) { if ( ( ( side == ( DisplaySide.A ) ) && ( ( base ) != null ) ) && ( ( base.get ( ) ) >= 0 ) ) { return base ; } return revision ; }

Target:
PatchSet.Id getPatchSetIdFromSide ( com.google.gerrit.client.diff.DisplaySide side ) { if ( ( side == ( DisplaySide.A ) ) && ( ( base.isPatchSet ( ) ) || ( base.isEdit ( ) ) ) ) { return base.asPatchSetId ( ) ; } return revision ; }
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 , canonicalUrl , realm , accountCache , starredChangesCache , accountProjectWatchCache , 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 , starredChangesCache , accountProjectWatchCache , accountDiffPreferencesCache , remotePeerProvider , dbProvider , id ) ; }
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 ) throws com.google.gerrit.server.query.QueryParseException { return rewrite.rewrite ( in , 0 , com.google.gerrit.common.data.GlobalCapability.DEFAULT_MAX_QUERY_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 getNonExistingAccount_NotFound ( ) throws java.lang.Exception { com.google.common.truth.Truth.assertThat ( adminSession.get ( "/accounts/non-existing" ) . getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_NOT_FOUND ) ; }

Target:
public void getNonExistingAccount_NotFound ( ) throws java.lang.Exception { try { gApi.accounts ( ) . id ( "non-existing" ) . get ( ) ; org.junit.Assert.fail ( "Expected account to not exist" ) ; } catch ( com.google.gerrit.extensions.restapi.ResourceNotFoundException expected ) { } }
Source:
public java.lang.Object apply ( com.google.gerrit.server.group.GroupResource resource ) { return new com.google.gerrit.server.group.GroupInfo ( resource.getGroup ( ) ) ; }

Target:
public com.google.gerrit.server.group.GroupJson.GroupInfo apply ( com.google.gerrit.server.group.GroupResource resource ) { return json.format ( resource.getGroup ( ) ) ; }
Source:
private void fireChangeDeletedFromIndexEvent ( com.google.gerrit.reviewdb.client.Change.Id id ) { for ( com.google.gerrit.server.extensions.events.ChangeIndexedListener listener : indexedListener ) { listener.onChangeDeleted ( id ) ; } }

Target:
private void fireChangeDeletedFromIndexEvent ( int id ) { for ( com.google.gerrit.extensions.events.ChangeIndexedListener listener : indexedListener ) { listener.onChangeDeleted ( id ) ; } }
Source:
public void waitForUser ( ) { if ( ( console.readLine ( "Press enter to continue " ) ) == null ) { throw com.google.gerrit.pgm.util.ConsoleUI.abort ( ) ; } }

Target:
public void waitForUser ( ) { if ( ( console.readLine ( "Press enter to continue " ) ) == null ) { throw com.google.gerrit.pgm.init.ConsoleUI.abort ( ) ; } }
Source:
public final boolean hasContactStore ( ) { return ( contact_store ( ) ) != null ; }

Target:
public final boolean hasContactStore ( ) { return ( contactStore ( ) ) != null ; }
Source:
public void testUpsertNothing ( ) throws com.google.gwtorm.server.OrmException , java.sql.SQLException { createClassUnderTest ( ) . upsert ( noData ) ; }

Target:
public void testUpsertNothing ( ) throws com.google.gwtorm.server.OrmException , java.sql.SQLException { classUnderTest.upsert ( noData ) ; }
Source:
public com.google.gerrit.reviewdb.client.Change change ( ) { return getControl ( ) . getChange ( ) ; }

Target:
public com.google.gerrit.reviewdb.client.Change change ( ) { return getNotes ( ) . getChange ( ) ; }
Source:
public void evict ( java.lang.String username ) { }

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > evictAsync ( java.lang.String username ) { return com.google.common.util.concurrent.Futures.immediateFuture ( null ) ; }
Source:
public void emptyExceptSubject ( ) throws java.lang.Exception { com.google.gerrit.server.notedb.ChangeUpdate update = newUpdate ( newChange ( ) , changeOwner ) ; update.setSubject ( "Create change" ) ; update.commit ( ) ; org.junit.Assert.assertNotNull ( update.getRevision ( ) ) ; }

Target:
public void emptyExceptSubject ( ) throws java.lang.Exception { com.google.gerrit.server.notedb.ChangeUpdate update = newUpdate ( newChange ( ) , changeOwner ) ; update.setSubject ( "Create change" ) ; update.commit ( ) ; com.google.common.truth.Truth.assertThat ( update.getRevision ( ) ) . isNotNull ( ) ; }
Source:
public com.googlecode.prolog_cafe.lang.NumberTerm shiftLeft ( com.googlecode.prolog_cafe.lang.NumberTerm t ) { throw new com.googlecode.prolog_cafe.exceptions.IllegalTypeException ( "integer" , this ) ; }

Target:
public com.googlecode.prolog_cafe.lang.NumberTerm or ( com.googlecode.prolog_cafe.lang.NumberTerm t ) { throw new com.googlecode.prolog_cafe.exceptions.IllegalTypeException ( "integer" , this ) ; }
Source:
public void setUsername ( java.lang.String username ) { this . username = username ; resetSession ( ) ; }

Target:
public void setToekn ( java.lang.String token ) { this . token = token ; }
Source:
public void onClick ( com.google.gwt.event.dom.client.ClickEvent event ) { doExternalSearch ( ) ; }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { if ( ( event.getCharCode ( ) ) == ( com.google.gwt.event.dom.client.KeyCodes.KEY_ENTER ) ) { doExternalSearch ( ) ; } }
Source:
protected com.google.gerrit.util.cli.CmdLineParser newCmdLineParser ( ) { return cmdLineParserFactory.create ( this ) ; }

Target:
protected com.google.gerrit.util.cli.CmdLineParser newCmdLineParser ( java.lang.Object options ) { return cmdLineParserFactory.create ( options ) ; }
Source:
public int compare ( com.google.gerrit.client.diff.UnifiedDiffChunkInfo o1 , com.google.gerrit.client.diff.UnifiedDiffChunkInfo o2 ) { return ( o1.cmLine ) - ( o2.cmLine ) ; }

Target:
public int compare ( com.google.gerrit.client.diff.UnifiedDiffChunkInfo o1 , com.google.gerrit.client.diff.UnifiedDiffChunkInfo o2 ) { return ( o1.getCmLine ( ) ) - ( o2.getCmLine ( ) ) ; }
Source:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > byTopicOpen ( java.lang.String topic ) throws com.google.gwtorm.server.OrmException { return query ( com.google.gerrit.server.query.Predicate.and ( topic ( topic ) , com.google.gerrit.server.query.change.ChangeStatusPredicate.open ( ) ) ) ; }

Target:
public java.util.List < com.google.gerrit.server.query.change.ChangeData > byExactTopicOpen ( java.lang.String topic ) throws com.google.gwtorm.server.OrmException { return query ( com.google.gerrit.server.query.Predicate.and ( new com.google.gerrit.server.query.change.ExactTopicPredicate ( com.google.gerrit.server.query.change.InternalChangeQuery.schema ( indexes ) , topic ) , com.google.gerrit.server.query.change.ChangeStatusPredicate.open ( ) ) ) ; }
Source:
public void onLostFocus ( final com.google.gwt.user.client.ui.Widget sender ) { }

Target:
protected java.lang.Object getRowItemKey ( final com.google.gerrit.client.data.ChangeInfo item ) { return item.getId ( ) ; }
Source:
public java.util.List < com.google.gerrit.server.account.AccountState > byExternalId ( java.lang.String externalId ) throws com.google.gwtorm.server.OrmException { return query ( com.google.gerrit.server.query.account.AccountPredicates.externalId ( externalId ) ) ; }

Target:
public java.util.List < com.google.gerrit.server.account.AccountState > byEmailPrefix ( java.lang.String emailPrefix ) throws com.google.gwtorm.server.OrmException { return query ( com.google.gerrit.server.query.account.AccountPredicates.email ( emailPrefix ) ) ; }
Source:
void send ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res ) throws java.io.IOException { com.google.gerrit.httpd.plugins.HttpPluginServlet.noCache ( res ) ; res.sendError ( HttpServletResponse.SC_NOT_FOUND ) ; }

Target:
void send ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse res ) throws java.io.IOException { com.google.gwtexpui.server.CacheHeaders.setNotCacheable ( res ) ; res.sendError ( HttpServletResponse.SC_NOT_FOUND ) ; }
Source:
private com.google.gerrit.client.ui.AccountDashboardLink link ( final com.google.gerrit.reviewdb.client.Account.Id id ) { return com.google.gerrit.client.ui.AccountDashboardLink.link ( accountCache , id ) ; }

Target:
private com.google.gerrit.client.ui.AccountLink link ( final com.google.gerrit.reviewdb.client.Account.Id id ) { return com.google.gerrit.client.ui.AccountLink.link ( accountCache , id ) ; }
Source:
public static com.google.gerrit.server.git.QueryList parse ( java.lang.String text , com.google.gerrit.server.git.ValidationError.Sink errors ) throws java.io.IOException { return new com.google.gerrit.server.git.QueryList ( com.google.gerrit.server.git.QueryList.parse ( text , com.google.gerrit.server.git.QueryList.FILE_NAME , com.google.gerrit.server.git.TRIM , com.google.gerrit.server.git.TRIM , errors ) ) ; }

Target:
static com.google.gerrit.server.account.QueryList parse ( java.lang.String text , com.google.gerrit.server.git.ValidationError.Sink errors ) throws java.io.IOException { return new com.google.gerrit.server.account.QueryList ( com.google.gerrit.server.account.QueryList.parse ( text , com.google.gerrit.server.account.QueryList.FILE_NAME , com.google.gerrit.server.account.TRIM , com.google.gerrit.server.account.TRIM , errors ) ) ; }
Source:
static void deleteSessionCookie ( ) { com.google.gerrit.client.Gerrit.myAccount = null ; com.google.gerrit.client.Gerrit.myAccountDiffPref = null ; com.google.gerrit.client.Gerrit.xGerritAuth = null ; com.google.gerrit.client.Gerrit.refreshMenuBar ( ) ; com.google.gwt.user.client.Cookies.removeCookie ( "GerritAccount" ) ; }

Target:
static void deleteSessionCookie ( ) { com.google.gerrit.client.Gerrit.myAccount = null ; com.google.gerrit.client.Gerrit.myAccountDiffPref = null ; com.google.gerrit.client.Gerrit.myPrefs = com.google.gerrit.client.info.AccountPreferencesInfo.createDefault ( ) ; com.google.gerrit.client.Gerrit.xGerritAuth = null ; com.google.gerrit.client.Gerrit.refreshMenuBar ( ) ; com.google.gwt.user.client.Cookies.removeCookie ( "GerritAccount" ) ; }
Source:
public void updateChange ( com.google.gerrit.server.git.BatchUpdate.ChangeContext ctx ) throws java.lang.Exception { ctx.getChangeUpdate ( ) . setTopic ( magicBranch.topic ) ; }

Target:
public void updateChange ( com.google.gerrit.server.git.BatchUpdate.ChangeContext ctx ) throws java.lang.Exception { ctx.getUpdate ( ) . setTopic ( magicBranch.topic ) ; }
Source:
public void revokedByKeyNotPresentInStore ( ) throws java.lang.Exception { com.google.gerrit.gpg.testutil.TestKey k = add ( com.google.gerrit.gpg.testutil.TestKeys.revokedCompromisedKey ( ) ) ; save ( ) ; assertProblems ( k , ( "Key is revoked (key material has been compromised):" + " test6 compromised" ) ) ; }

Target:
public void revokedByKeyNotPresentInStore ( ) throws java.lang.Exception { com.google.gerrit.gpg.testutil.TestKey k = add ( com.google.gerrit.gpg.testutil.TestKeys.revokedCompromisedKey ( ) ) ; save ( ) ; assertProblems ( k , "Key is revoked (key material has been compromised): test6 compromised" ) ; }
Source:
public void onClick ( android.view.View v ) { reloadQuery ( ) ; }

Target:
public void onRefresh ( ) { getApp ( ) . getQueryHandler ( ) . reset ( ) ; display ( true ) ; }
Source:
public void getProjectNotExisting ( ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = adminSession.get ( "/projects/does-not-exist" ) ; com.google.common.truth.Truth.assertThat ( r.getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_NOT_FOUND ) ; }

Target:
public void getProjectNotExisting ( ) throws java.lang.Exception { gApi.projects ( ) . name ( "does-not-exist" ) . get ( ) ; }
Source:
private void renderSubmitType ( java.lang.String action ) { try { com.google.gerrit.extensions.common.SubmitType type = com.google.gerrit.extensions.common.SubmitType.valueOf ( action ) ; submitActionText.setInnerText ( com.google.gerrit.client.admin.Util.toLongString ( type ) ) ; } catch ( java.lang.IllegalArgumentException e ) { submitActionText.setInnerText ( action ) ; } }

Target:
private void renderSubmitType ( java.lang.String action ) { try { com.google.gerrit.extensions.client.SubmitType type = com.google.gerrit.extensions.client.SubmitType.valueOf ( action ) ; submitActionText.setInnerText ( com.google.gerrit.client.admin.Util.toLongString ( type ) ) ; } catch ( java.lang.IllegalArgumentException e ) { submitActionText.setInnerText ( action ) ; } }
Source:
void applyDraft ( com.google.gerrit.server.notedb.ChangeDraftUpdate draftUpdate ) throws com.google.gwtorm.server.OrmException { if ( ( c.getRevId ( ) ) == null ) { com.google.gerrit.server.PatchLineCommentsUtil.setCommentRevId ( c , cache , change , ps ) ; } draftUpdate.insertComment ( c ) ; }

Target:
void applyDraft ( com.google.gerrit.server.notedb.ChangeDraftUpdate draftUpdate ) throws com.google.gwtorm.server.OrmException { if ( ( c.getRevId ( ) ) == null ) { com.google.gerrit.server.PatchLineCommentsUtil.setCommentRevId ( c , cache , change , ps ) ; } draftUpdate.putComment ( c ) ; }
Source:
com.google.common.hash.Funnel < java.lang.String > funnel ( ) { com.google.common.hash.Funnel < ? > s = com.google.common.hash.Funnels.stringFunnel ( ) ; return ( ( com.google.common.hash.Funnel < java.lang.String > ) ( s ) ) ; }

Target:
com.google.common.hash.Funnel < java.lang.String > funnel ( ) { com.google.common.hash.Funnel < ? > s = com.google.common.hash.Funnels.unencodedCharsFunnel ( ) ; return ( ( com.google.common.hash.Funnel < java.lang.String > ) ( s ) ) ; }
Source:
public < I > com.google.gerrit.server.index.FieldDef < I , java.lang.Iterable < T > > buildRepeatable ( com.google.gerrit.server.index.FieldDef.Getter < I , java.lang.Iterable < T > > getter ) { return buildRepeatable ( ( in , a ) -> getter.get ( in ) ) ; }

Target:
public < I > com.google.gerrit.server.index.FieldDef < I , T > build ( com.google.gerrit.server.index.FieldDef.Getter < I , T > getter ) { return new com.google.gerrit.server.index.FieldDef ( name , type , stored , false , getter ) ; }
Source:
public com.google.gerrit.extensions.api.projects.ConfigInfo apply ( com.google.gerrit.server.project.ProjectResource resource ) { return new com.google.gerrit.server.project.ConfigInfoImpl ( serverEnableSignedPush , resource.getControl ( ) , config , pluginConfigEntries , cfgFactory , allProjects , uiActions , views ) ; }

Target:
public com.google.gerrit.extensions.api.projects.ConfigInfo apply ( com.google.gerrit.server.project.ProjectResource resource ) { return new com.google.gerrit.server.project.ConfigInfoImpl ( serverEnableSignedPush , resource.getProjectState ( ) , resource.getUser ( ) , config , pluginConfigEntries , cfgFactory , allProjects , uiActions , views ) ; }
Source:
public void moveTipTo ( com.google.gerrit.server.git.CodeReviewCommit newTip , java.lang.String mergedFrom ) { com.google.common.base.Preconditions.checkArgument ( ( newTip != null ) ) ; branchTip = newTip ; mergeResults.put ( mergedFrom , newTip.getName ( ) ) ; }

Target:
public void moveTipTo ( com.google.gerrit.server.git.CodeReviewCommit newTip , org.eclipse.jgit.lib.ObjectId mergedFrom ) { com.google.common.base.Preconditions.checkArgument ( ( newTip != null ) ) ; branchTip = newTip ; mergeResults.put ( mergedFrom , newTip.copy ( ) ) ; }
Source:
public boolean isVisible ( ) { return ( visibleForReplication ( ) ) || ( canPerformOnAnyRef ( Permission.READ ) ) ; }

Target:
public boolean isVisible ( ) { return ( ( visibleForReplication ( ) ) || ( canPerformOnAnyRef ( Permission.READ ) ) ) && ( ! ( isHidden ( ) ) ) ; }
Source:
public void testUpdateOne ( ) throws com.google.gwtorm.client.OrmException , java.sql.SQLException { stubExecuteBatchOK ( com.google.gwtorm.jdbc.TestJdbcAccess.UPDATE , 1 ) ; createClassUnderTest ( ) . update ( com.google.gwtorm.jdbc.TestJdbcAccess.ONE_ROW ) ; }

Target:
public void testUpdateOne ( ) throws com.google.gwtorm.server.OrmException , java.sql.SQLException { java.sql.PreparedStatement update = stubStatementWithUpdateCounts ( com.google.gwtorm.jdbc.TestJdbcAccess.UPDATE , 1 ) ; createClassUnderTest ( ) . update ( oneRow ) ; com.google.gwtorm.jdbc.TestJdbcAccess.assertUsedBatchingOnly ( update ) ; }
Source:
protected com.google.gerrit.client.ui.Screen createScreen ( ) { return new com.google.gerrit.client.patches.PatchSideBySideScreen ( key ) ; }

Target:
protected com.google.gerrit.client.ui.Screen createScreen ( ) { return new com.google.gerrit.client.patches.PatchScreen.SideBySide ( key , parentPatchTable ( ) ) ; }
Source:
void set ( com.google.gerrit.client.changes.ChangeInfo info ) { this . changeId = info.legacy_id ( ) ; display ( info ) ; reviewerSuggestOracle.setChange ( changeId ) ; openForm.setVisible ( com.google.gerrit.client.Gerrit.isSignedIn ( ) ) ; }

Target:
void onAdd ( @ java.lang.SuppressWarnings ( value = "unused" ) com.google.gwt.event.dom.client.ClickEvent e ) { addReviewer ( suggestBox.getText ( ) , false ) ; }
Source:
public void onLoad ( com.google.gerrit.plugin.client.screen.Screen screen ) { screen.setPageTitle ( "Reviewers" ) ; screen.show ( new com.googlesource.gerrit.plugins.reviewers.client.ReviewersScreen ( screen.getToken ( ) ) ) ; }

Target:
public void onLoad ( com.google.gerrit.plugin.client.screen.Screen screen ) { screen.setPageTitle ( "Reviewers" ) ; screen.show ( new com.googlesource.gerrit.plugins.reviewers.client.ReviewersScreen ( com.google.gwt.http.client.URL.decodeQueryString ( screen.getToken ( ) ) ) ) ; }
Source:
public static native net.codemirror.lib.CodeMirror create ( com.google.gwt.dom.client.Element parent , net.codemirror.lib.Configuration cfg ) ;

Target:
public static native net.codemirror.lib.CodeMirror create ( com.google.gerrit.client.diff.DisplaySide side , com.google.gwt.dom.client.Element parent , net.codemirror.lib.Configuration cfg ) ;
Source:
public com.google.gerrit.reviewdb.client.Change update ( com.google.gerrit.reviewdb.client.Change c ) { c.setStatus ( Change.Status.MERGED ) ; return c ; }

Target:
public boolean updateChange ( com.google.gerrit.server.git.BatchUpdate.ChangeContext ctx ) throws com.google.gwtorm.server.OrmException { ctx.getChange ( ) . setStatus ( Change.Status.MERGED ) ; ctx.getUpdate ( ctx.getChange ( ) . currentPatchSetId ( ) ) . fixStatus ( Change.Status.MERGED ) ; return true ; }