auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.lang.String apply ( java.lang.String input ) { return input.toLowerCase ( ) ; }

Target:
void addQuery ( java.lang.String name ) { if ( ( query ) == null ) { query = com.google.common.collect.Sets.newHashSet ( ) ; } com.google.common.collect.Iterables.addAll ( query , com.google.gerrit.server.OptionUtil.splitOptionValue ( name ) ) ; }
Source:
protected java.nio.file.Path getResourcePath ( java.lang.String pathInfo ) throws java.io.IOException { return com.google.gerrit.launcher.GerritLauncher.getZipFileSystem ( zip ) . getPath ( ( "bower_components/" + pathInfo ) ) ; }

Target:
protected java.nio.file.Path getResourcePath ( java.lang.String pathInfo ) throws java.io.IOException { if ( ( bowerComponents ) == null ) { throw new java.io.IOException ( ( ( "No polymer components found: " + ( zip ) ) + ". Run `buck build //polygerrit-ui:polygerrit_components`?" ) ) ; } return bowerComponents.resolve ( pathInfo ) ; }
Source:
public void onSuccess ( com.googlesource.gerrit.plugins.serviceuser.client.ConfigInfo configInfo ) { display ( serviceUserInfo , configInfo.getAllowEmail ( ) ) ; }

Target:
public void onSuccess ( com.googlesource.gerrit.plugins.serviceuser.client.AccountCapabilities ac ) { display ( serviceUserInfo , ( ( configInfo.getAllowEmail ( ) ) || ( ac.canPerform ( "administrateServer" ) ) ) ) ; }
Source:
static java.lang.String getDefaultTemplateMsg ( java.lang.String rateLimitTypeName ) { return ( ( com.googlesource.gerrit.plugins.quota.RateMsgHelper.DEFAULT_TEMPLATE_MSG_PARTS [ 0 ] ) + rateLimitTypeName ) + ( com.googlesource.gerrit.plugins.quota.RateMsgHelper.DEFAULT_TEMPLATE_MSG_PARTS [ 1 ] ) ; }

Target:
private static java.lang.String getDefaultTemplateMsg ( java.lang.String rateLimitTypeName ) { return ( ( ( "Exceeded rate limit of " + ( com.googlesource.gerrit.plugins.quota.RateMsgHelper.RATE_LIMIT_TOKEN ) ) + " " ) + rateLimitTypeName ) + " requests/hour" ; }
Source:
public void start ( ) { startThread ( new com.google.gerrit.sshd.commands.CommandRunnable ( ) { @ java.lang.Override public void run ( ) throws java.lang.Exception { parseCommandLine ( ) ; flush ( ) ; } } ) ; }

Target:
public void start ( final org.apache.sshd.server.Environment env ) { startThread ( new com.google.gerrit.sshd.commands.CommandRunnable ( ) { @ java.lang.Override public void run ( ) throws java.lang.Exception { parseCommandLine ( ) ; flush ( ) ; } } ) ; }
Source:
public java.io.Writer get ( ) { try { return new java.io.BufferedWriter ( new java.io.OutputStreamWriter ( res.getOutputStream ( ) , java.nio.charset.StandardCharsets.UTF_8 ) ) ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
protected void doGet ( javax.servlet.http.HttpServletRequest req , javax.servlet.http.HttpServletResponse resp ) throws java.io.IOException , javax.servlet.ServletException { com.googlesource.gerrit.plugins.lfs.locks.LfsLocksContext context = new com.googlesource.gerrit.plugins.lfs.locks.LfsLocksContext ( req , resp ) ; getters.create ( context ) . run ( ) ; }
Source:
public com.google.gerrit.server.change.ListDraftComments list ( ) throws com.google.gerrit.extensions.restapi.AuthException { BRANCH ( ( f38c1c = com.google.gerrit.server.PatchLineCommentsUtil.draftByChangeAuthor ) ) ; checkIdentifiedUser ( ) ; return list ; }

Target:
public com.google.gerrit.server.change.ListRevisionDrafts list ( ) throws com.google.gerrit.extensions.restapi.AuthException { checkIdentifiedUser ( ) ; return list ; }
Source:
public void onDoubleClick ( com.google.gwt.event.dom.client.DoubleClickEvent event ) { if ( patchTableHeader.listA.fileExists ) { onCellDoubleClick ( 0 , com.google.gerrit.client.patches.SideBySideTable.A ) ; } }

Target:
protected void insertRow ( final int row ) { super . insertRow ( row ) ; final com.google.gwt.user.client.ui.HTMLTable.CellFormatter fmt = table.getCellFormatter ( ) ; defaultStyle ( row , fmt ) ; }
Source:
public void onDoubleClick ( com.google.gwt.event.dom.client.DoubleClickEvent event ) { if ( headerSideB.isFile ( ) ) { createFileCommentEditorOnSideB ( ) ; } }

Target:
public void onDoubleClick ( com.google.gwt.event.dom.client.DoubleClickEvent event ) { if ( headerSideB.isFileOrCommitMessage ( ) ) { createFileCommentEditorOnSideB ( ) ; } }
Source:
public void put ( K key , V value ) { self.put ( key , value ) ; }

Target:
public com.google.common.util.concurrent.ListenableFuture < java.lang.Void > removeAllAsync ( ) { return self.removeAllAsync ( ) ; }
Source:
public abstract com.google.common.collect.ImmutableSet < com.google.gerrit.reviewdb.client.AccountGroup.UUID > getIncludes ( ) ;

Target:
public abstract com.google.common.collect.ImmutableSet < com.google.gerrit.reviewdb.client.AccountGroup.UUID > getSubgroups ( ) ;
Source:
public void addReviewerToReviewableChangeByOwnerCcingSelfInNoteDb ( ) throws java.lang.Exception { com.google.common.truth.TruthJUnit.assume ( ) . that ( notesMigration.readChanges ( ) ) . isTrue ( ) ; forAll ( ( adder ) -> { com.google.gerrit.acceptance.server.mail.StagedChange sc = stageReviewableChange ( ) ; com.google.gerrit.acceptance.TestAccount reviewer = accounts.create ( "added" , "added@example.com" , "added" ) ; addReviewer ( adder , sc.changeId , sc.owner , reviewer.email , com.google.gerrit.extensions.client.GeneralPreferencesInfo.EmailStrategy.CC_ON_OWN_COMMENTS , null ) ; assertThat ( sender ) . sent ( "newchange" , sc ) . to ( reviewer ) . cc ( sc.owner , sc.reviewer ) . cc ( sc.reviewerByEmail , sc.ccerByEmail ) . noOneElse ( ) ; } ) ; }

Target:
public void addReviewerToReviewableChangeByOwnerCcingSelfInNoteDbBatch ( ) throws java.lang.Exception { addReviewerToReviewableChangeByOwnerCcingSelfInNoteDb ( batch ( ) ) ; }
Source:
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 com.google.gerrit.extensions.restapi.Response.withMustRevalidate ( json.format ( rsrc ) ) ; }

Target:
com.google.gerrit.extensions.restapi.Response < com.google.gerrit.extensions.common.ChangeInfo > apply ( com.google.gerrit.server.change.RevisionResource rsrc ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.extensions.restapi.Response.withMustRevalidate ( json.create ( options ) . format ( rsrc ) ) ; }
Source:
protected void configure ( ) { factory ( AgreementInfoFactory.Factory.class ) ; factory ( ExternalIdDetailFactory.Factory.class ) ; factory ( GroupDetailFactory.Factory.class ) ; factory ( MyGroupsFactory.Factory.class ) ; }

Target:
protected void configure ( ) { factory ( AgreementInfoFactory.Factory.class ) ; factory ( DeleteExternalIds.Factory.class ) ; factory ( ExternalIdDetailFactory.Factory.class ) ; factory ( GroupDetailFactory.Factory.class ) ; factory ( MyGroupsFactory.Factory.class ) ; }
Source:
public void onSuccess ( final com.google.gerrit.reviewdb.client.Account result ) { if ( ! ( isAttached ( ) ) ) { return ; } display ( result ) ; haveAccount = true ; postLoad ( ) ; }

Target:
public void onClick ( final com.google.gwt.event.dom.client.ClickEvent event ) { doSave ( null ) ; }
Source:
public void testChangeOwner_OwnerACLNotGranted ( ) throws java.lang.Exception { assertApproveFails ( user , createMyChange ( ) ) ; }

Target:
public void testChangeOwner_OwnerACLNotGranted ( ) throws java.lang.Exception { assertApproveFails ( user , createMyChange ( testRepo ) ) ; }
Source:
public void testContinueFromAfterNewline ( ) { com.google.gerrit.client.diff.EditIterator iter = new com.google.gerrit.client.diff.EditIterator ( lines , 0 ) ; iter.advance ( 4 ) ; assertLineChsEqual ( net.codemirror.lib.LineCharacter.create ( 2 , 2 ) , iter.advance ( 6 ) ) ; }

Target:
public void testContinueFromAfterNewline ( ) { com.google.gerrit.client.diff.EditIterator iter = new com.google.gerrit.client.diff.EditIterator ( lines , 0 ) ; iter.advance ( 4 ) ; assertLineChsEqual ( net.codemirror.lib.Pos.create ( 2 , 2 ) , iter.advance ( 6 ) ) ; }
Source:
public boolean isCancelled ( ) { if ( cancelled ) { status = GitJobStatus.CANCELLED ; } return cancelled ; }

Target:
public boolean isCancelled ( ) { if ( cancelled ) { status.update ( GitJobStatus.Code.CANCELLED ) ; } return cancelled ; }
Source:
public void onSuccess ( final com.google.gerrit.client.reviewdb.Account result ) { if ( isAttached ( ) ) { display ( result ) ; } }

Target:
protected void preDisplay ( final com.google.gerrit.client.reviewdb.Account result ) { display ( result ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { admin = accounts.create ( "admin" , "admin@example.com" , "Administrator" , "Administrators" ) ; sshSession = new com.google.gerrit.acceptance.SshSession ( admin ) ; project1 = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p1" ) ; com.google.gerrit.acceptance.git.GitUtil.createProject ( sshSession , project1.get ( ) ) ; project2 = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p2" ) ; com.google.gerrit.acceptance.git.GitUtil.createProject ( sshSession , project2.get ( ) ) ; project3 = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p3" ) ; com.google.gerrit.acceptance.git.GitUtil.createProject ( sshSession , project3.get ( ) ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { admin = accounts.create ( "admin" , "admin@example.com" , "Administrator" , "Administrators" ) ; sshSession = new com.google.gerrit.acceptance.SshSession ( server , admin ) ; project1 = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p1" ) ; com.google.gerrit.acceptance.git.GitUtil.createProject ( sshSession , project1.get ( ) ) ; project2 = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p2" ) ; com.google.gerrit.acceptance.git.GitUtil.createProject ( sshSession , project2.get ( ) ) ; project3 = new com.google.gerrit.reviewdb.client.Project.NameKey ( "p3" ) ; com.google.gerrit.acceptance.git.GitUtil.createProject ( sshSession , project3.get ( ) ) ; }
Source:
public java.lang.Iterable < com.google.gerrit.prettify.common.EditList.Hunk > getHunks ( ) { return new com.google.gerrit.prettify.common.EditList ( edits , getContext ( ) , a.size ( ) , b.size ( ) ) . getHunks ( ) ; }

Target:
public java.lang.Iterable < com.google.gerrit.prettify.common.EditList.Hunk > getHunks ( ) { final int ctx = settings.getContext ( ) ; return new com.google.gerrit.prettify.common.EditList ( edits , ctx , a.size ( ) , b.size ( ) ) . getHunks ( ) ; }
Source:
public < T extends com.google.gwt.core.client.JavaScriptObject > void put ( java.lang.String content , com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { sendRaw ( com.google.gwt.http.client.RequestBuilder.PUT , content , cb ) ; }

Target:
public < T extends com.google.gwt.core.client.JavaScriptObject > void post ( java.lang.String content , com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { post ( content , com.google.gerrit.client.rpc.RestApi.wrap ( cb ) ) ; }
Source:
java.util.List < com.google.gerrit.extensions.common.ChangeInfo > query ( com.google.gerrit.extensions.api.changes.Changes.QueryParameter queryParameter ) throws com.google.gerrit.extensions.restapi.RestApiException ;

Target:
com.google.gerrit.extensions.api.changes.Changes.QueryRequest query ( java.lang.String query ) ;
Source:
public java.lang.String getEmailRegistrationToken ( ) { if ( ( emailToken ) == null ) { emailToken = tokenVerifier.encode ( user.getAccountId ( ) , addr ) ; } return emailToken ; }

Target:
public java.lang.String getEmailRegistrationToken ( ) { if ( ( emailToken ) == null ) { emailToken = com.google.common.base.Preconditions.checkNotNull ( tokenVerifier.encode ( user.getAccountId ( ) , addr ) , "token" ) ; } return emailToken ; }
Source:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { goChange ( ) ; }

Target:
public void onSuccess ( final com.google.gerrit.client.changes.PatchSetPublishDetail result ) { send.setEnabled ( true ) ; display ( result ) ; }
Source:
private static boolean isBodyUTF8 ( final com.google.gwtjsonrpc.server.ActiveCall call ) { java.lang.String enc = call.httpRequest.getCharacterEncoding ( ) ; if ( enc == null ) { enc = "" ; } return enc.toLowerCase ( ) . contains ( JsonUtil.JSON_ENC.toLowerCase ( ) ) ; }

Target:
private static boolean isBodyUTF8 ( final com.google.gwtjsonrpc.server.ActiveCall call ) { java.lang.String enc = call.httpRequest.getCharacterEncoding ( ) ; if ( enc == null ) { enc = "" ; } return enc.toLowerCase ( ) . contains ( JsonConstants.JSON_ENC.toLowerCase ( ) ) ; }
Source:
public static boolean isSystemGroup ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) { return uuid.get ( ) . startsWith ( "global:" ) ; }

Target:
public static boolean isSystemGroup ( com.google.gerrit.reviewdb.client.AccountGroup.UUID uuid ) { return uuid.get ( ) . startsWith ( com.google.gerrit.server.group.SystemGroupBackend.SYSTEM_GROUP_SCHEME ) ; }
Source:
void evictSubgroupsOf ( com.google.gerrit.reviewdb.client.AccountGroup.UUID groupId ) ;

Target:
void evictGroupsWithMember ( com.google.gerrit.reviewdb.client.Account.Id memberId ) ;
Source:
public void onSuccess ( ) { com.google.gerrit.client.Gerrit.display ( token , new com.google.gerrit.client.diff.Unified ( baseId , id.getParentKey ( ) , id.get ( ) , line ) ) ; }

Target:
public void onSuccess ( ) { com.google.gerrit.client.Gerrit.display ( token , new com.google.gerrit.client.diff.Unified ( baseId , id.getParentKey ( ) , id.get ( ) , side , line ) ) ; }
Source:
com.google.gerrit.extensions.restapi.Response < com.google.gerrit.extensions.common.ChangeInfo > apply ( com.google.gerrit.server.change.RevisionResource rsrc ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.server.change.GetChange.cache ( json.format ( rsrc ) ) ; }

Target:
com.google.gerrit.extensions.restapi.Response < com.google.gerrit.extensions.common.ChangeInfo > apply ( com.google.gerrit.server.change.RevisionResource rsrc ) throws com.google.gwtorm.server.OrmException { return com.google.gerrit.extensions.restapi.Response.withMustRevalidate ( json.format ( rsrc ) ) ; }
Source:
boolean getReady ( java.lang.String indexName , int version ) { return cfg.getBoolean ( com.google.gerrit.lucene.GerritIndexStatus.SECTION , com.google.gerrit.lucene.GerritIndexStatus.indexDirName ( indexName , version ) , com.google.gerrit.lucene.GerritIndexStatus.KEY_READY , false ) ; }

Target:
public boolean getReady ( java.lang.String indexName , int version ) { return cfg.getBoolean ( com.google.gerrit.index.GerritIndexStatus.SECTION , com.google.gerrit.index.GerritIndexStatus.indexDirName ( indexName , version ) , com.google.gerrit.index.GerritIndexStatus.KEY_READY , false ) ; }
Source:
public void parseDynamicBeans ( com.google.gerrit.util.cli.CmdLineParser clp ) { for ( java.util.Map.Entry < java.lang.String , com.google.gerrit.server.DynamicOptions.DynamicBean > e : beansByPlugin.entrySet ( ) ) { clp.parseWithPrefix ( e.getKey ( ) , e.getValue ( ) ) ; } }

Target:
public void parseDynamicBeans ( com.google.gerrit.util.cli.CmdLineParser clp ) { for ( java.util.Map.Entry < java.lang.String , com.google.gerrit.server.DynamicOptions.DynamicBean > e : beansByPlugin.entrySet ( ) ) { clp.parseWithPrefix ( ( "--" + ( e.getKey ( ) ) ) , e.getValue ( ) ) ; } }
Source:
protected void beforeTest ( org.junit.runner.Description description ) throws java.lang.Exception { locatePaths ( ) ; retrievePluginName ( ) ; buildPluginJar ( ) ; createTestSiteDirs ( ) ; copyJarToTestSite ( ) ; super . beforeTest ( description ) ; }

Target:
protected void beforeTest ( org.junit.runner.Description description ) throws java.lang.Exception { locatePaths ( ) ; retrievePluginName ( ) ; buildPluginJar ( ) ; createTestSiteDirs ( ) ; copyJarToTestSite ( ) ; beforeTestServerStarts ( ) ; super . beforeTest ( description ) ; }
Source:
java.lang.String string ( final java.lang.String title , final java.lang.String name , final java.lang.String dv ) { return string ( title , name , dv , false ) ; }

Target:
public void warning ( java.lang.String msg ) { java.lang.System.err.println ( msg ) ; java.lang.System.err.flush ( ) ; }
Source:
protected void onLoad ( ) { super . onLoad ( ) ; if ( ( header ) == null ) { onInitUI ( ) ; } }

Target:
protected void onLoad ( ) { super . onLoad ( ) ; if ( ( header ) == null ) { onInitUI ( ) ; } com.google.gerrit.client.Gerrit.setQueryString ( null ) ; }
Source:
protected void onLoad ( ) throws java.io.IOException , org.eclipse.jgit.errors.ConfigInvalidException { org.eclipse.jgit.lib.Config cfg = readConfig ( com.google.gerrit.server.account.WatchConfig.WATCH_CONFIG ) ; projectWatches = com.google.gerrit.server.account.WatchConfig.parse ( accountId , cfg , this ) ; }

Target:
public void parse ( ) { projectWatches = com.google.gerrit.server.account.WatchConfig.parse ( accountId , cfg , validationErrorSink ) ; }
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 , errors ) ) ; }

Target:
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 ) ) ; }
Source:
public void postEvent ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.server.events.Event event , com.google.gerrit.reviewdb.server.ReviewDb db ) { }

Target:
public void postEvent ( com.google.gerrit.reviewdb.client.Change change , com.google.gerrit.server.events.ChangeEvent event , com.google.gerrit.reviewdb.server.ReviewDb db ) { }
Source:
void setReviewed ( boolean r ) { reviewed.setValue ( r , true ) ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.ReviewInfo result ) { reviewed.setValue ( true , false ) ; }
Source:
protected void addToString ( com.google.common.base.MoreObjects.ToStringHelper helper ) { helper.addValue ( psa ) ; }

Target:
protected void addToString ( com.google.common.base.MoreObjects.ToStringHelper helper ) { helper.add ( "approval" , psa ) ; }
Source:
public void sendError ( int sc , java.lang.String msg ) { status = sc ; }

Target:
public synchronized void setStatus ( int sc ) { status = sc ; committed = true ; }
Source:
public void execute ( ) { doBrowse ( ) ; }

Target:
public void onClick ( final com.google.gwt.user.client.ui.Widget sender ) { doAddNew ( ) ; }
Source:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { if ( event.getValue ( ) ) { in.label ( id , v ) ; } }

Target:
public void onValueChange ( com.google.gwt.event.logical.shared.ValueChangeEvent < java.lang.Boolean > event ) { if ( event.getValue ( ) ) { select ( ) ; } }
Source:
public java.util.List < com.google.gerrit.extensions.common.AccountInfo > getPastAssignees ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getPastAssignees.apply ( change ) . value ( ) ; } catch ( com.google.gwtorm.server.OrmException e ) { throw new com.google.gerrit.extensions.restapi.RestApiException ( "Cannot get past assignees" , e ) ; } }

Target:
public java.util.List < com.google.gerrit.extensions.common.AccountInfo > getPastAssignees ( ) throws com.google.gerrit.extensions.restapi.RestApiException { try { return getPastAssignees.apply ( change ) . value ( ) ; } catch ( java.lang.Exception e ) { throw com.google.gerrit.server.api.ApiUtil.asRestApiException ( "Cannot get past assignees" , e ) ; } }
Source:
public void onNewProjectCreated ( com.google.gerrit.extensions.events.NewProjectCreatedListener.Event event ) { for ( org.eclipse.jgit.transport.URIish uri : getURIs ( new com.google.gerrit.reviewdb.client.Project.NameKey ( event.getProjectName ( ) ) , false ) ) { createProject ( uri , event.getHeadName ( ) ) ; } }

Target:
public void onNewProjectCreated ( com.google.gerrit.extensions.events.NewProjectCreatedListener.Event event ) { for ( org.eclipse.jgit.transport.URIish uri : getURIs ( new com.google.gerrit.reviewdb.client.Project.NameKey ( event.getProjectName ( ) ) , FilterType.PROJECT_CREATION ) ) { createProject ( uri , event.getHeadName ( ) ) ; } }
Source:
protected void configure ( ) { bind ( com.google.gerrit.server.project.ProjectCache.class ) . toInstance ( projects ) ; }

Target:
protected void configure ( ) { bind ( PrologEnvironment.Args.class ) . toInstance ( new com.google.gerrit.rules.PrologEnvironment.Args ( projects , null , null , null , null , null ) ) ; }
Source:
public com.google.gerrit.server.project.FileResource parse ( com.google.gerrit.server.project.BranchResource parent , com.google.gerrit.extensions.restapi.IdString id ) { return new com.google.gerrit.server.project.FileResource ( parent , id.get ( ) ) ; }

Target:
public com.google.gerrit.server.project.FileResource parse ( com.google.gerrit.server.project.BranchResource parent , com.google.gerrit.extensions.restapi.IdString id ) { return new com.google.gerrit.server.project.FileResource ( parent.getNameKey ( ) , parent.getRef ( ) , id.get ( ) ) ; }
Source:
private void removeKeyHandlerRegs ( ) { for ( com.google.gwt.event.shared.HandlerRegistration h : handlers ) { h.removeHandler ( ) ; } handlers.clear ( ) ; }

Target:
private void removeKeyHandlerRegistrations ( ) { for ( com.google.gwt.event.shared.HandlerRegistration h : handlers ) { h.removeHandler ( ) ; } handlers.clear ( ) ; }
Source:
void sideBySidePatchDetail ( com.google.gerrit.client.reviewdb.Patch.Key key , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.data.SideBySidePatchDetail > callback ) ;

Target:
void sideBySidePatchDetail ( com.google.gerrit.client.reviewdb.Patch.Key key , java.util.List < com.google.gerrit.client.reviewdb.PatchSet.Id > versions , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gerrit.client.data.SideBySidePatchDetail > callback ) ;
Source:
void onReplaceByKeys ( org.eclipse.jgit.lib.ObjectId newNotesRev , com.google.gerrit.reviewdb.client.Account.Id accountId , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId.Key > toRemove , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toAdd ) throws java.io.IOException ;

Target:
void onReplaceByKeys ( org.eclipse.jgit.lib.ObjectId oldNotesRev , org.eclipse.jgit.lib.ObjectId newNotesRev , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId.Key > toRemove , java.util.Collection < com.google.gerrit.server.account.externalids.ExternalId > toAdd ) throws java.io.IOException ;
Source:
void format ( java.lang.StringBuilder b , java.util.Map < java.lang.String , java.lang.String > p ) { java.lang.String v = p.get ( name ) ; if ( v != null ) { b.append ( v ) ; } }

Target:
void format ( java.lang.StringBuilder b , java.util.Map < java.lang.String , java.lang.String > p ) { java.lang.String v = p.get ( name ) ; if ( v == null ) { v = "" ; } b.append ( function.apply ( v ) ) ; }
Source:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { onDown ( ) ; }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { ensurePointerVisible ( ) ; onDown ( ) ; }
Source:
public void flushAll_Forbidden ( ) throws java.lang.Exception { com.google.gerrit.acceptance.RestResponse r = userSession.post ( "/config/server/caches/" , new com.google.gerrit.server.config.PostCaches.Input ( com.google.gerrit.server.config.PostCaches.Operation.FLUSH_ALL ) ) ; com.google.common.truth.Truth.assertThat ( r.getStatusCode ( ) ) . isEqualTo ( HttpStatus.SC_FORBIDDEN ) ; }

Target:
public void flushAll_Forbidden ( ) throws java.lang.Exception { userSession.post ( "/config/server/caches/" , new com.google.gerrit.server.config.PostCaches.Input ( com.google.gerrit.server.config.PostCaches.Operation.FLUSH_ALL ) ) . assertForbidden ( ) ; }
Source:
protected com.vmware.gerrit.owners.common.PathOwners createValue ( com.googlecode.prolog_cafe.lang.Prolog engine ) { com.google.gerrit.server.patch.PatchList patchList = StoredValues.PATCH_LIST.get ( engine ) ; org.eclipse.jgit.lib.Repository repository = StoredValues.REPOSITORY.get ( engine ) ; return new com.vmware.gerrit.owners.common.PathOwners ( resolver , db , repository , patchList ) ; }

Target:
protected com.vmware.gerrit.owners.common.PathOwners createValue ( com.googlecode.prolog_cafe.lang.Prolog engine ) { com.google.gerrit.server.patch.PatchList patchList = StoredValues.PATCH_LIST.get ( engine ) ; org.eclipse.jgit.lib.Repository repository = StoredValues.REPOSITORY.get ( engine ) ; return new com.vmware.gerrit.owners.common.PathOwners ( accounts , repository , patchList ) ; }
Source:
public java.lang.String apply ( org.apache.lucene.index.IndexableField in ) { return in.stringValue ( ) ; }

Target:
private void decodeReviewers ( com.google.common.collect.Multimap < java.lang.String , org.apache.lucene.index.IndexableField > doc , com.google.gerrit.server.query.change.ChangeData cd ) { cd.setReviewers ( com.google.gerrit.server.index.change.ChangeField.parseReviewerFieldValues ( com.google.common.collect.FluentIterable.from ( doc.get ( com.google.gerrit.lucene.LuceneChangeIndex.REVIEWER_FIELD ) ) . transform ( IndexableField :: stringValue ) ) ) ; }
Source:
com.google.gerrit.server.IdentifiedUser getUser ( ) { return ( ( com.google.gerrit.server.IdentifiedUser ) ( getControl ( ) . getUser ( ) ) ) ; }

Target:
com.google.gerrit.server.IdentifiedUser getUser ( ) { return getControl ( ) . getUser ( ) . asIdentifiedUser ( ) ; }
Source:
private boolean canSkipValidation ( com.google.gerrit.server.config.PluginConfig config , java.lang.String validatorOp ) { return matchCriteria ( config , "skipValidation" , validatorOp , false ) ; }

Target:
private boolean activeForEmail ( com.google.gerrit.server.config.PluginConfig config , java.lang.String email ) { return matchCriteria ( config , "email" , email , true , false ) ; }
Source:
private void incrementCurrentPatchSetFieldOnly ( com.google.gerrit.reviewdb.client.Change c ) { com.google.gerrit.testutil.TestChanges.incrementPatchSet ( c ) ; }

Target:
private void incrementCurrentPatchSetFieldOnly ( com.google.gerrit.reviewdb.client.Change c ) { com.google.gerrit.testing.TestChanges.incrementPatchSet ( c ) ; }
Source:
public boolean isNotify ( final com.google.gerrit.reviewdb.AccountProjectWatch.Type type ) { switch ( type ) { case NEW_CHANGES : return notifySubmittedChanges ; case SUBMITS : return notifyNewChanges ; case COMMENTS : return notifyAllComments ; } return false ; }

Target:
public boolean isNotify ( final com.google.gerrit.reviewdb.AccountProjectWatch.NotifyType type ) { switch ( type ) { case NEW_CHANGES : return notifyNewChanges ; case ALL_COMMENTS : return notifyAllComments ; case SUBMITTED_CHANGES : return notifySubmittedChanges ; } return false ; }
Source:
public boolean isShowAll ( ) { return all ; }

Target:
private java.lang.Iterable < com.google.gerrit.reviewdb.client.Project.NameKey > scan ( ) { if ( ( matchPrefix ) != null ) { return projectCache.byName ( matchPrefix ) ; } else { return projectCache.all ( ) ; } }
Source:
public static com.google.gerrit.client.rpc.RestApi editWithCommands ( int id ) { return com.google.gerrit.client.changes.ChangeApi.edit ( id ) . addParameterTrue ( "download-commands" ) ; }

Target:
public static void publishEdit ( @ com.google.gerrit.common.Nullable java.lang.String project , int id , com.google.gwt.user.client.rpc.AsyncCallback < com.google.gwt.core.client.JavaScriptObject > cb ) { com.google.gwt.core.client.JavaScriptObject in = com.google.gwt.core.client.JavaScriptObject.createObject ( ) ; com.google.gerrit.client.changes.ChangeApi.change ( project , id ) . view ( "edit:publish" ) . post ( in , cb ) ; }
Source:
private boolean isGerritConfig ( javax.servlet.http.HttpServletRequest req ) throws java.io.IOException { java.io.File f = configFile ( req ) ; return gerrit_config_path.equals ( f.getCanonicalPath ( ) ) ; }

Target:
private boolean isGerritConfig ( javax.servlet.http.HttpServletRequest req ) throws java.io.IOException { java.io.File f = resolveFile ( req ) ; return gerrit_config_path.equals ( f.getCanonicalPath ( ) ) ; }
Source:
protected void configure ( ) { bind ( com.google.gerrit.pgm.util.ConsoleUI.class ) . toInstance ( ui ) ; bind ( java.io.File.class ) . annotatedWith ( com.google.gerrit.server.config.SitePath.class ) . toInstance ( sitePath ) ; }

Target:
protected void configure ( ) { bind ( java.io.File.class ) . annotatedWith ( com.google.gerrit.server.config.SitePath.class ) . toInstance ( getSitePath ( ) ) ; bind ( com.google.gerrit.pgm.init.Browser.class ) ; }
Source:
void set ( java.sql.PreparedStatement ps , int col , K value ) throws java.sql.SQLException { ps.setObject ( col , value ) ; }

Target:
void set ( java.sql.PreparedStatement ps , int col , K value ) throws java.sql.SQLException { ps.setObject ( col , value , java.sql.Types.JAVA_OBJECT ) ; }
Source:
protected void configure ( ) { install ( new com.google.inject.servlet.ServletModule ( ) { @ java.lang.Override protected void configureServlets ( ) { filter ( "/*" ) . through ( com.google.inject.Key.get ( com.google.gwtexpui.server.CacheControlFilter.class ) ) ; bind ( com.google.inject.Key.get ( com.google.gwtexpui.server.CacheControlFilter.class ) ) . in ( com.google.inject.Scopes.SINGLETON ) ; serve ( "/" ) . with ( com.google.gerrit.server.http.HostPageServlet.class ) ; serve ( "/Gerrit" ) . with ( com.google.gerrit.server.http.LegacyGerritServlet.class ) ; serve ( "/cat/*" ) . with ( com.google.gerrit.server.http.CatServlet.class ) ; serve ( "/logout" ) . with ( com.google.gerrit.server.http.HttpLogoutServlet.class ) ; serve ( "/prettify/*" ) . with ( com.google.gerrit.server.http.PrettifyServlet.class ) ; serve ( "/signout" ) . with ( com.google.gerrit.server.http.HttpLogoutServlet.class ) ; serve ( "/ssh_info" ) . with ( com.google.gerrit.server.http.SshServlet.class ) ; serve ( "/static/*" ) . with ( com.google.gerrit.server.http.StaticServlet.class ) ; } } ) ; install ( new com.google.gerrit.server.rpc.UiRpcModule ( ) ) ; install ( new com.google.gerrit.server.config.GerritRequestModule ( ) ) ; bind ( com.google.gerrit.server.ssh.SshInfo.class ) . toProvider ( sshInfoProvider ) ; bind ( com.google.gerrit.client.data.GerritConfig.class ) . toProvider ( com.google.gerrit.server.config.GerritConfigProvider.class ) . in ( com.google.inject.Scopes.SINGLETON ) ; bind ( com.google.gerrit.server.account.AccountManager.class ) . in ( com.google.inject.Scopes.SINGLETON ) ; bind ( java.net.SocketAddress.class ) . annotatedWith ( com.google.gerrit.server.RemotePeer.class ) . toProvider ( com.google.gerrit.server.http.HttpRemotePeerProvider.class ) . in ( com.google.inject.servlet.RequestScoped.class ) ; bind ( com.google.gerrit.server.http.WebSession.class ) . in ( com.google.inject.servlet.RequestScoped.class ) ; bind ( com.google.gerrit.server.http.WebSessionManager.class ) . in ( com.google.inject.Scopes.SINGLETON ) ; bind ( com.google.gerrit.server.CurrentUser.class ) . toProvider ( com.google.gerrit.server.http.HttpCurrentUserProvider.class ) . in ( com.google.inject.servlet.RequestScoped.class ) ; bind ( com.google.gerrit.server.IdentifiedUser.class ) . toProvider ( com.google.gerrit.server.http.HttpIdentifiedUserProvider.class ) . in ( com.google.inject.servlet.RequestScoped.class ) ; }

Target:
protected void configureServlets ( ) { filter ( "/*" ) . through ( com.google.gerrit.server.http.RequestCleanupFilter.class ) ; filter ( "/*" ) . through ( com.google.gerrit.server.http.UrlRewriteFilter.class ) ; }
Source:
public boolean apply ( com.google.gerrit.reviewdb.client.ChangeMessage in ) { com.google.gerrit.reviewdb.client.PatchSet.Id psId = in.getPatchSetId ( ) ; if ( psId == null ) { return true ; } return ( upToCurrent.apply ( psId ) ) && ( patchSets.containsKey ( psId ) ) ; }

Target:
public boolean apply ( com.google.gerrit.reviewdb.client.ChangeMessage in ) { com.google.gerrit.reviewdb.client.PatchSet.Id psId = in.getPatchSetId ( ) ; if ( psId == null ) { return true ; } return validPatchSet.apply ( psId ) ; }
Source:
public java.io.InputStream getResourceInputStream ( java.lang.String resourcePath ) throws java.io.IOException { return null ; }

Target:
public com.google.common.base.Optional < java.io.InputStream > getResourceInputStream ( java.lang.String resourcePath ) throws java.io.IOException { return com.google.common.base.Optional.absent ( ) ; }
Source:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { com.google.gerrit.reviewdb.PatchSet.Id currentPatchSetId = patchSetsBlock.getCurrentPatchSet ( ) . getId ( ) ; com.google.gerrit.client.Gerrit.display ( ( "change,publish," + ( currentPatchSetId.toString ( ) ) ) , new com.google.gerrit.client.changes.PublishCommentScreen ( currentPatchSetId ) ) ; }

Target:
public void onKeyPress ( final com.google.gwt.event.dom.client.KeyPressEvent event ) { com.google.gerrit.reviewdb.PatchSet.Id currentPatchSetId = patchSetsBlock.getCurrentPatchSet ( ) . getId ( ) ; com.google.gerrit.client.Gerrit.display ( com.google.gerrit.client.Dispatcher.toPublish ( currentPatchSetId ) ) ; }
Source:
public int getSizeBasedOnAccuracy ( int statisticsAccuracy ) throws java.lang.IllegalArgumentException , java.lang.IllegalStateException , net.sf.ehcache.CacheException { return self ( ) . getSizeBasedOnAccuracy ( statisticsAccuracy ) ; }

Target:
public int getSizeBasedOnAccuracy ( int statisticsAccuracy ) throws java.lang.IllegalArgumentException , java.lang.IllegalStateException , net.sf.ehcache.CacheException { return self.getSizeBasedOnAccuracy ( statisticsAccuracy ) ; }
Source:
private void assertProblems ( com.google.gerrit.gpg.testutil.TestKey tk , java.lang.String ... expected ) throws java.lang.Exception { if ( ( expected.length ) == 0 ) { throw new java.lang.IllegalArgumentException ( "Use assertNoProblems" ) ; } assertProblems ( tk.getPublicKey ( ) , expected ) ; }

Target:
private void assertProblems ( com.google.gerrit.gpg.testutil.TestKey tk , java.lang.String first , java.lang.String ... rest ) { assertProblems ( tk.getPublicKey ( ) , first , rest ) ; }
Source:
public com.google.common.util.concurrent.CheckedFuture < com.google.gerrit.reviewdb.client.Change , com.google.gwtorm.server.OrmException > getAsync ( com.google.gerrit.reviewdb.client.Change.Id key ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.server.schema.DisabledChangesReviewDbWrapper.MSG ) ; }

Target:
public com.google.common.util.concurrent.CheckedFuture < com.google.gerrit.reviewdb.client.Change , com.google.gwtorm.server.OrmException > getAsync ( com.google.gerrit.reviewdb.client.Change.Id key ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.reviewdb.server.DisabledChangesReviewDbWrapper.MSG ) ; }
Source:
void onReplyDone ( com.google.gwt.event.dom.client.ClickEvent e ) { if ( ( replyBox ) == null ) { com.google.gerrit.client.diff.DraftBox box = getDiffView ( ) . addReplyBox ( getOriginal ( ) , "Done" , false ) ; registerReplyBox ( box ) ; } else { openReplyBox ( ) ; } }

Target:
void onReplyDone ( com.google.gwt.event.dom.client.ClickEvent e ) { if ( ( replyBox ) == null ) { com.google.gerrit.client.diff.DraftBox box = getDiffView ( ) . addReply ( getOriginal ( ) , "Done" , true ) ; registerReplyBox ( box ) ; } else { openReplyBox ( ) ; } }
Source:
private static com.google.gerrit.client.rpc.RestApi call ( int id , java.lang.String action ) { return com.google.gerrit.client.changes.ChangeApi.change ( id ) . view ( action ) ; }

Target:
public static void deleteRevision ( @ com.google.gerrit.common.Nullable java.lang.String project , 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.revision ( project , id , commit ) . delete ( cb ) ; }
Source:
public java.lang.String toString ( ) { final org.apache.sshd.server.session.ServerSession session = context.session ; final java.lang.String who = session.getUsername ( ) ; return ( ( ( getFullCommandLine ( ) ) + " (" ) + who ) + ")" ; }

Target:
public java.lang.String toString ( ) { return taskName ; }
Source:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo result ) { result.init ( ) ; change = result ; }

Target:
public void onSuccess ( com.google.gerrit.client.changes.ChangeInfo result ) { result.init ( ) ; change = result ; preDisplay ( result ) ; }
Source:
public static com.google.gerrit.pgm.util.ConsoleUI getInstance ( ) { return com.google.gerrit.pgm.util.ConsoleUI.getInstance ( false ) ; }

Target:
public static com.google.gerrit.pgm.init.ConsoleUI getInstance ( ) { return com.google.gerrit.pgm.init.ConsoleUI.getInstance ( false ) ; }
Source:
public void testChangeOwner_OwnerACLGranted ( ) throws com.google.gwtorm.server.OrmException , java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException , org.eclipse.jgit.errors.ConfigInvalidException { grantApproveToChangeOwner ( ) ; approve ( sessionOwner , createChange ( ) , HttpStatus.SC_OK ) ; }

Target:
public void testChangeOwner_OwnerACLNotGranted ( ) throws com.google.gwtorm.server.OrmException , java.io.IOException , org.eclipse.jgit.api.errors.GitAPIException , org.eclipse.jgit.errors.ConfigInvalidException { approve ( sessionOwner , createMyChange ( ) , HttpStatus.SC_FORBIDDEN ) ; }
Source:
private static final native void nativeInstall ( java.lang.String name , com.google.gwtjsonrpc.client.CallbackHandle < ? > imp ) ;

Target:
private static final native void nativeInstall ( int funid , com.google.gwtjsonrpc.client.CallbackHandle < ? > imp ) ;
Source:
public void testNameEscaperEscapesSpacesWithPercentInsteadOfPlus ( ) throws java.lang.Exception { assertEquals ( "foo+bar" , com.google.gitiles.GitilesUrls.NAME_ESCAPER.apply ( "foo+bar" ) ) ; assertEquals ( "foo%20bar" , com.google.gitiles.GitilesUrls.NAME_ESCAPER.apply ( "foo bar" ) ) ; assertEquals ( "foo%2520bar" , com.google.gitiles.GitilesUrls.NAME_ESCAPER.apply ( "foo%20bar" ) ) ; }

Target:
public void nameEscaperEscapesSpacesWithPercentInsteadOfPlus ( ) throws java.lang.Exception { org.junit.Assert.assertEquals ( "foo+bar" , com.google.gitiles.GitilesUrls.NAME_ESCAPER.apply ( "foo+bar" ) ) ; org.junit.Assert.assertEquals ( "foo%20bar" , com.google.gitiles.GitilesUrls.NAME_ESCAPER.apply ( "foo bar" ) ) ; org.junit.Assert.assertEquals ( "foo%2520bar" , com.google.gitiles.GitilesUrls.NAME_ESCAPER.apply ( "foo%20bar" ) ) ; }
Source:
java.lang.String guessName ( ) { return com.google.gerrit.client.api.PluginName.PluginNameMoz.guessName ( com.google.gerrit.client.api.PluginName.makeException ( ) ) ; }

Target:
java.lang.String findCallerUrl ( ) { return com.google.gerrit.client.api.PluginName.PluginNameMoz.getUrl ( com.google.gerrit.client.api.PluginName.makeException ( ) ) ; }
Source:
public void testChangeOwner_NotOwnerACLGranted ( ) throws java.lang.Exception { grantApproveToChangeOwner ( ) ; assertApproveFails ( user2 , createMyChange ( ) ) ; }

Target:
public void testChangeOwner_NotOwnerACLGranted ( ) throws java.lang.Exception { grantApproveToChangeOwner ( project ) ; assertApproveFails ( user2 , createMyChange ( testRepo ) ) ; }
Source:
public < T extends com.google.gwt.core.client.JavaScriptObject > void get ( com.google.gwtjsonrpc.common.AsyncCallback < T > cb ) { send ( com.google.gwt.http.client.RequestBuilder.GET , cb ) ; }

Target:
public < T extends com.google.gwt.core.client.JavaScriptObject > void get ( com.google.gwt.user.client.rpc.AsyncCallback < T > cb ) { send ( com.google.gwt.http.client.RequestBuilder.GET , cb ) ; }
Source:
public com.googlesrouce.gerrit.plugins.github.git.GHRepository forkTo ( com.googlesrouce.gerrit.plugins.github.git.GHOrganization org ) throws java.io.IOException { return ghRepository.forkTo ( org ) ; }

Target:
public com.googlesource.gerrit.plugins.github.git.GHRepository forkTo ( com.googlesource.gerrit.plugins.github.git.GHOrganization org ) throws java.io.IOException { return ghRepository.forkTo ( org ) ; }
Source:
public final native net.codemirror.lib.CodeMirror.LineHandle activeLine ( ) ;

Target:
public final void adjustHeight ( int localHeader ) { int rest = ( ( com.google.gerrit.client.Gerrit.getHeaderFooterHeight ( ) ) + localHeader ) + 5 ; setHeight ( ( ( com.google.gwt.user.client.Window.getClientHeight ( ) ) - rest ) ) ; }
Source:
static com.google.gerrit.server.notedb.RevisionNoteMap emptyMap ( ) { return new com.google.gerrit.server.notedb.RevisionNoteMap ( org.eclipse.jgit.notes.NoteMap.newEmptyMap ( ) , com.google.common.collect.ImmutableMap.< com.google.gerrit.reviewdb.client.RevId , com.google.gerrit.server.notedb.RevisionNote > of ( ) ) ; }

Target:
static < T extends com.google.gerrit.server.notedb.RevisionNote < ? extends com.google.gerrit.reviewdb.client.Comment > > com.google.gerrit.server.notedb.RevisionNoteMap < T > emptyMap ( ) { return new com.google.gerrit.server.notedb.RevisionNoteMap ( org.eclipse.jgit.notes.NoteMap.newEmptyMap ( ) , com.google.common.collect.ImmutableMap.< com.google.gerrit.reviewdb.client.RevId , T > of ( ) ) ; }
Source:
int getCookieAge ( ) { return ( ( int ) ( ( ( refreshCookieAt ) - ( java.lang.System.currentTimeMillis ( ) ) ) / 1000L ) ) ; }

Target:
boolean needsCookieRefresh ( ) { return ( refreshCookieAt ) <= ( com.google.gerrit.server.http.WebSessionManager.now ( ) ) ; }
Source:
public com.google.gerrit.extensions.common.CommitInfo apply ( com.google.gerrit.server.project.CommitResource rsrc ) { return com.google.gerrit.server.project.GetCommit.toCommitInfo ( rsrc.getCommit ( ) ) ; }

Target:
public com.google.gerrit.extensions.common.CommitInfo apply ( com.google.gerrit.server.project.CommitResource rsrc ) { return com.google.gerrit.server.git.CommitUtil.toCommitInfo ( rsrc.getCommit ( ) ) ; }
Source:
public com.google.common.util.concurrent.CheckedFuture < com.google.gerrit.reviewdb.client.PatchSet , com.google.gwtorm.server.OrmException > getAsync ( com.google.gerrit.reviewdb.client.PatchSet.Id key ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.server.schema.DisabledChangesReviewDbWrapper.MSG ) ; }

Target:
public com.google.common.util.concurrent.CheckedFuture < com.google.gerrit.reviewdb.client.PatchSet , com.google.gwtorm.server.OrmException > getAsync ( com.google.gerrit.reviewdb.client.PatchSet.Id key ) { throw new java.lang.UnsupportedOperationException ( com.google.gerrit.reviewdb.server.DisabledChangesReviewDbWrapper.MSG ) ; }
Source:
public com.googlesrouce.gerrit.plugins.github.git.GHHook createWebHook ( java.net.URL url , java.util.Collection < com.googlesrouce.gerrit.plugins.github.git.GHEvent > events ) throws java.io.IOException { return ghRepository.createWebHook ( url , events ) ; }

Target:
public com.googlesource.gerrit.plugins.github.git.GHHook createWebHook ( java.net.URL url , java.util.Collection < com.googlesource.gerrit.plugins.github.git.GHEvent > events ) throws java.io.IOException { return ghRepository.createWebHook ( url , events ) ; }
Source:
private java.lang.String group ( java.lang.String name ) throws java.io.IOException { name = name ( name ) ; com.google.gerrit.extensions.api.groups.GroupInput in = new com.google.gerrit.extensions.api.groups.GroupInput ( ) ; adminSession.put ( ( "/groups/" + name ) , in ) . consume ( ) ; return name ; }

Target:
private java.lang.String group ( java.lang.String name ) throws java.lang.Exception { name = name ( name ) ; com.google.gerrit.extensions.api.groups.GroupInput in = new com.google.gerrit.extensions.api.groups.GroupInput ( ) ; in.name = name ; gApi.groups ( ) . create ( in ) ; return name ; }
Source:
public void visit ( org.pegdown.ast.ParaNode node ) { wrapChildren ( "p" , node ) ; }

Target:
public void visit ( org.commonmark.node.Paragraph node ) { if ( com.google.gitiles.doc.MarkdownToHtml.isInTightList ( node ) ) { visitChildren ( node ) ; } else { wrapChildren ( "p" , node ) ; } }
Source:
public com.google.gerrit.extensions.common.GroupInfo format ( com.google.gerrit.server.group.GroupResource rsrc ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.extensions.common.GroupInfo info = init ( rsrc.getGroup ( ) ) ; initMembersAndIncludes ( rsrc , info ) ; return info ; }

Target:
public com.google.gerrit.extensions.common.GroupInfo format ( com.google.gerrit.server.group.GroupResource rsrc ) throws com.google.gwtorm.server.OrmException { com.google.gerrit.extensions.common.GroupInfo info = init ( rsrc.getGroup ( ) ) ; initMembersAndSubgroups ( rsrc , info ) ; return info ; }
Source:
protected void configure ( ) { install ( new com.googlesource.gerrit.plugins.download.command.DownloadCommandsModule ( ) ) ; install ( new com.googlesource.gerrit.plugins.download.scheme.SchemeModule ( ) ) ; }

Target:
protected void configure ( ) { install ( new com.googlesource.gerrit.plugins.download.command.CloneCommandsModule ( ) ) ; install ( new com.googlesource.gerrit.plugins.download.command.DownloadCommandsModule ( ) ) ; install ( new com.googlesource.gerrit.plugins.download.scheme.SchemeModule ( ) ) ; }
Source:
public void onSuccess ( final com.google.gwtjsonrpc.client.VoidResult result ) { com.google.gwt.user.client.History.newItem ( Link.SETTINGS_CONTACT , true ) ; }

Target:
protected void preDisplay ( final com.google.gwtjsonrpc.client.VoidResult result ) { }
Source:
public void setNotify ( com.google.gerrit.extensions.api.changes.NotifyHandling notify ) { this . notify = notify ; }

Target:
public void setNotify ( com.google.gerrit.extensions.api.changes.NotifyHandling notify ) { this . notify = com.google.common.base.Preconditions.checkNotNull ( notify ) ; }
Source:
public java.util.regex.Pattern getIssuePattern ( ) { java.util.regex.Pattern ret = null ; java.lang.String match = gerritConfig.getString ( "commentlink" , getCommentLinkName ( ) , "match" ) ; if ( match != null ) { ret = java.util.regex.Pattern.compile ( match ) ; } return ret ; }

Target:
public boolean apply ( com.google.gerrit.extensions.api.projects.CommentLinkInfo input ) { return ( ( input.match ) != null ) && ( ! ( input.match.trim ( ) . isEmpty ( ) ) ) ; }
Source:
private com.google.gerrit.sshd.commands.QueryShell.Factory shellFactory ( ) { return dbInjector.createChildInjector ( new com.google.gerrit.server.config.FactoryModule ( ) { @ java.lang.Override protected void configure ( ) { factory ( com.google.gerrit.sshd.commands.QueryShell.Factory.class ) ; } } ) . getInstance ( com.google.gerrit.sshd.commands.QueryShell.Factory.class ) ; }

Target:
private com.google.gerrit.sshd.commands.QueryShell.Factory shellFactory ( ) { return dbInjector.createChildInjector ( new com.google.gerrit.extensions.config.FactoryModule ( ) { @ java.lang.Override protected void configure ( ) { factory ( com.google.gerrit.sshd.commands.QueryShell.Factory.class ) ; } } ) . getInstance ( com.google.gerrit.sshd.commands.QueryShell.Factory.class ) ; }
Source:
public com.google.gerrit.solr.SolrChangeIndex getChangeIndex ( @ com.google.gerrit.server.config.GerritServerConfig org.eclipse.jgit.lib.Config cfg , com.google.gerrit.server.config.SitePaths sitePaths , com.google.gerrit.server.index.IndexCollection indexes , com.google.gerrit.server.index.FieldDef.FillArgs fillArgs ) throws java.io.IOException { return new com.google.gerrit.solr.SolrChangeIndex ( cfg , fillArgs , sitePaths , indexes , com.google.gerrit.server.index.ChangeSchemas.getLatestRelease ( ) , base ) ; }

Target:
public com.google.gerrit.solr.SolrChangeIndex getChangeIndex ( @ com.google.gerrit.server.config.GerritServerConfig org.eclipse.jgit.lib.Config cfg , com.google.gerrit.server.config.SitePaths sitePaths , com.google.gerrit.server.index.IndexCollection indexes , com.google.gerrit.server.index.FieldDef.FillArgs fillArgs ) throws java.io.IOException { return new com.google.gerrit.solr.SolrChangeIndex ( cfg , fillArgs , sitePaths , indexes , com.google.gerrit.server.index.ChangeSchemas.getLatest ( ) , base ) ; }
Source:
public com.googlesrouce.gerrit.plugins.github.git.GHRef [ ] getRefs ( java.lang.String refType ) throws java.io.IOException { return ghRepository.getRefs ( refType ) ; }

Target:
public com.googlesource.gerrit.plugins.github.git.GHRef [ ] getRefs ( java.lang.String refType ) throws java.io.IOException { return ghRepository.getRefs ( refType ) ; }