auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
<code>public Action<?, ?> finishedAction() { return new AbstractEnvStackConfigUpdatesAction<>(ResourceCrnPayload.class) { @Override <START> protected void doExecute(CommonContext context, ResourceCrnPayload payload, <END> Map<Object, Object> variables) { EnvironmentDto environmentDto = environmentStatusUpdateService .updateEnvironmentStatusAndNotify(context, payload, getCurrentStatus(payload.getResourceId()), ResourceEvent.ENVIRONMENT_STACK_CONFIGS_UPDATE_FINISHED, EnvStackConfigUpdatesState.STACK_CONFIG_UPDATES_FINISHED_STATE); metricService.incrementMetricCounter(MetricType.ENV_STACK_CONFIG_UPDATE_FINISHED, environmentDto); LOGGER.info("Flow entered into ENV_STOP_FINISHED_STATE"); sendEvent(context, FINALIZE_ENV_STACK_CONIFG_UPDATES_EVENT.event(), payload); } }; }</code><technical_language>a start</technical_language>

Target:
public Action<?, ?> finishedAction() { return new AbstractEnvStackConfigUpdatesAction<>(ResourceCrnPayload.class) { @Override protected void doExecute(CommonContext context, ResourceCrnPayload payload, Map<Object, Object> variables) { EnvironmentDto environmentDto = environmentStatusUpdateService .updateEnvironmentStatusAndNotify(context, payload, getCurrentStatus(payload.getResourceId()), ResourceEvent.ENVIRONMENT_STACK_CONFIGS_UPDATE_FINISHED, EnvStackConfigUpdatesState.STACK_CONFIG_UPDATES_FINISHED_STATE); metricService.incrementMetricCounter(MetricType.ENV_STACK_CONFIG_UPDATE_FINISHED, environmentDto); LOGGER.info("Flow entered into STACK_CONFIG_UPDATES_FINISHED_STATE"); sendEvent(context, FINALIZE_ENV_STACK_CONIFG_UPDATES_EVENT.event(), payload); } }; }
Source:
<code>public void deletePools(List<Pool> pools) { if (log.isDebugEnabled()) { log.debug("Delete pools: {}", getPoolIds(pools)); } if (pools.isEmpty()) { return; } List<Entitlement> entitlementsToRevoke = new ArrayList<Entitlement>(); for (Pool p : pools) { if (log.isDebugEnabled()) { log.debug("Deletion of pool will cause revocation of the " + "following entitlements: {}.", p.getId(), getEntIds(p.getEntitlements())); } entitlementsToRevoke.addAll(p.getEntitlements()); } if (!pools.isEmpty()) { revokeEntitlements(entitlementsToRevoke); <START> log.debug("Batch deleting pools after successfull revocation"); <END> poolCurator.batchDelete(pools); } for (Pool pool : pools) { Event event = eventFactory.poolDeleted(pool); sink.queueEvent(event); } }</code><technical_language>"successful"</technical_language>

Target:
public void deletePools(List<Pool> pools) { if (log.isDebugEnabled()) { log.debug("Delete pools: {}", getPoolIds(pools)); } if (pools.isEmpty()) { return; } List<Entitlement> entitlementsToRevoke = new ArrayList<Entitlement>(); for (Pool p : pools) { if (log.isDebugEnabled()) { log.debug("Deletion of pool will cause revocation of the " + "following entitlements: {}.", p.getId(), getEntIds(p.getEntitlements())); } entitlementsToRevoke.addAll(p.getEntitlements()); } if (!pools.isEmpty()) { revokeEntitlements(entitlementsToRevoke); log.debug("Batch deleting pools after successful revocation"); poolCurator.batchDelete(pools); } for (Pool pool : pools) { Event event = eventFactory.poolDeleted(pool); sink.queueEvent(event); } }
Source:
<code>public Response getServer(@PathParam("id") String queryId, @Context final HttpServletRequest req) { if (authConfig.isEnabled()) { final AuthorizationInfo authorizationInfo = (AuthorizationInfo) req.getAttribute(AuthConfig.DRUID_AUTH_TOKEN); Preconditions.checkNotNull( authorizationInfo, "Security is enabled but no authorization info found in the request" ); if (queryManager.getQueryDatasources(queryId) == null) { log.warn("QueryId [%s] not registered with QueryManager, cannot cancel", queryId); } else if (authorizationInfo != null) { <START> for (String dataSource : queryManager.getQueryDatasources(queryId)) { <END> Access authResult = authorizationInfo.isAuthorized( new Resource(dataSource, ResourceType.DATASOURCE), Action.WRITE ); if (!authResult.isAllowed()) { return Response.status(Response.Status.FORBIDDEN).header("Access-Check-Result", authResult).build(); } } } else { throw new ISE("WTF?! Security is enabled but no authorization info found in the request"); } } queryManager.cancelQuery(queryId); return Response.status(Response.Status.ACCEPTED).build(); }</code><technical_language>race condition. store result of queryManager.getQueryDatasources(queryId) assume method return result call</technical_language>

Target:
public Response getServer(@PathParam("id") String queryId, @Context final HttpServletRequest req) { if (log.isDebugEnabled()) { log.debug("Received cancel request for query [%s]", queryId); } if (authConfig.isEnabled()) { final AuthorizationInfo authorizationInfo = (AuthorizationInfo) req.getAttribute(AuthConfig.DRUID_AUTH_TOKEN); Preconditions.checkNotNull( authorizationInfo, "Security is enabled but no authorization info found in the request" ); Set<String> datasources = queryManager.getQueryDatasources(queryId); if (datasources == null) { log.warn("QueryId [%s] not registered with QueryManager, cannot cancel", queryId); } else { for (String dataSource : datasources) { Access authResult = authorizationInfo.isAuthorized( new Resource(dataSource, ResourceType.DATASOURCE), Action.WRITE ); if (!authResult.isAllowed()) { return Response.status(Response.Status.FORBIDDEN).header("Access-Check-Result", authResult).build(); } } } } queryManager.cancelQuery(queryId); return Response.status(Response.Status.ACCEPTED).build(); }
Source:
<code>protected static TenantStatus getTenantStatus(String tenantDomain) { boolean isTenantContextLoaded = false; <START> Map<String, ConfigurationContext> tenantConfigContextsServer = getTenantConfigContexts(); <END> if (tenantConfigContextsServer != null) { isTenantContextLoaded = tenantConfigContextsServer.containsKey(tenantDomain); log.info("Tenant " + tenantDomain + " loaded :" + isTenantContextLoaded); } return new TenantStatus(isTenantContextLoaded); }</code><technical_language>rename variable more meaningful one</technical_language>

Target:
protected static TenantStatus getTenantStatus(String tenantDomain) { boolean isTenantContextLoaded = false; Map<String, ConfigurationContext> tenantConfigServerContexts = getTenantConfigServerContexts(); if (tenantConfigServerContexts != null) { isTenantContextLoaded = tenantConfigServerContexts.containsKey(tenantDomain); log.info("Tenant " + tenantDomain + " loaded :" + isTenantContextLoaded); } return new TenantStatus(isTenantContextLoaded); }
Source:
<code>public void testLikeMatchCase_v1_0() throws Exception { String filter = "<wfs:GetFeature service=\"WFS\" version=\"1.0.0\" " + "outputFormat=\"GML2\" " + "xmlns:topp=\"<LINK_4>\" " + "xmlns:wfs=\"<LINK_5>\" " + "xmlns:ogc=\"<LINK_1>\" " + "xmlns:xsi=\"<LINK_0>\" " + "xsi:schemaLocation=\"<LINK_5> <LINK_2>\">" + "<wfs:Query typeName=\"cite:Buildings\">" + "<Filter xmlns=\"<LINK_1>\" xmlns:gml=\"<LINK_3>\">" + "<PropertyIsLike wildCard=\"*\" singleChar=\".\" escapeChar=\"\\\" matchCase=\"false\">" + "<PropertyName>ADDRESS</PropertyName>" + "<Literal>* MAIN STREET</Literal>" + "</PropertyIsLike>" + "</Filter>" + "</wfs:Query>" + "</wfs:GetFeature>"; StringReader reader = new StringReader( filter ); InputSource requestSource = new InputSource(reader); MyHandler contentHandler = new MyHandler(); FilterFilter filterParser = new FilterFilter(contentHandler, null); GMLFilterGeometry geometryFilter = new GMLFilterGeometry(filterParser); GMLFilterDocument documentFilter = new GMLFilterDocument(geometryFilter); SAXParserFactory factory = SAXParserFactory.newInstance(); SAXParser parser = factory.newSAXParser(); ParserAdapter adapter = new ParserAdapter(parser.getParser()); adapter.setContentHandler(documentFilter); adapter.parse(requestSource); <START> assertEquals(contentHandler.filters.size(),1); <END> }</code><technical_language>test checks throwing exception anymore, test parsed filter matchCase = false</technical_language>

Target:
public void testLikeMatchCase_v1_0() throws Exception { testLikeMatchCase_v1_0(true); testLikeMatchCase_v1_0(false); }
Source:
<code>public synchronized void shutdownGracefully() { final ApnsConnection<T> apnsConnection = this; <START> if (this.hasCompletedHandshake() && this.connectFuture.channel().isActive()) { <END> this.connectFuture.channel().eventLoop().execute(new Runnable() { public void run() { if (apnsConnection.shutdownNotification == null) { log.debug("{} sending known-bad notification to shut down.", apnsConnection.name); apnsConnection.shutdownNotification = new SendableApnsPushNotification<KnownBadPushNotification>( new KnownBadPushNotification(), apnsConnection.sequenceNumber++); apnsConnection.pendingWriteCount += 1; apnsConnection.connectFuture.channel().writeAndFlush(apnsConnection.shutdownNotification).addListener(new GenericFutureListener<ChannelFuture>() { public void operationComplete(final ChannelFuture future) { if (future.isSuccess()) { log.trace("{} successfully wrote known-bad notification {}", apnsConnection.name, apnsConnection.shutdownNotification.getSequenceNumber()); } else { log.trace("{} failed to write known-bad notification {}", apnsConnection.name, apnsConnection.shutdownNotification, future.cause()); apnsConnection.shutdownNotification = null; apnsConnection.shutdownGracefully(); } apnsConnection.pendingWriteCount -= 1; assert apnsConnection.pendingWriteCount >= 0; if (apnsConnection.pendingWriteCount == 0) { synchronized (apnsConnection.pendingWriteMonitor) { apnsConnection.pendingWriteMonitor.notifyAll(); } } } }); } } }); } else { this.shutdownImmediately(); } }</code><technical_language>synchronized shutdownGracefully. Is active this check, inactive ungracefully? assuming is synchronized? I handshake case is covered in else{}</technical_language>

Target:
public synchronized void shutdownGracefully() { final ApnsConnection<T> apnsConnection = this; if (this.handshakeCompleted && this.connectFuture.channel().isActive()) { this.connectFuture.channel().eventLoop().execute(new Runnable() { public void run() { if (apnsConnection.shutdownNotification == null) { log.debug("{} sending known-bad notification to shut down.", apnsConnection.name); apnsConnection.shutdownNotification = new SendableApnsPushNotification<KnownBadPushNotification>( new KnownBadPushNotification(), apnsConnection.sequenceNumber++); apnsConnection.pendingWriteCount += 1; apnsConnection.connectFuture.channel().writeAndFlush(apnsConnection.shutdownNotification).addListener(new GenericFutureListener<ChannelFuture>() { public void operationComplete(final ChannelFuture future) { if (future.isSuccess()) { log.trace("{} successfully wrote known-bad notification {}", apnsConnection.name, apnsConnection.shutdownNotification.getSequenceNumber()); } else { log.trace("{} failed to write known-bad notification {}", apnsConnection.name, apnsConnection.shutdownNotification, future.cause()); apnsConnection.shutdownNotification = null; apnsConnection.shutdownGracefully(); } apnsConnection.pendingWriteCount -= 1; assert apnsConnection.pendingWriteCount >= 0; if (apnsConnection.pendingWriteCount == 0) { synchronized (apnsConnection.pendingWriteMonitor) { apnsConnection.pendingWriteMonitor.notifyAll(); } } } }); } } }); } else { this.shutdownImmediately(); } }
Source:
<code>protected JDBCDataStore createDataStoreInternal(JDBCDataStore dataStore, Map params) throws IOException { String storageEngine = (String) STORAGE_ENGINE.lookUp( params ); if (storageEngine == null) { storageEngine = (String) STORAGE_ENGINE.sample; } Boolean enhancedSpatialFlag = (Boolean) ENHANCED_SPATIAL_SUPPORT.lookUp( params ); if (enhancedSpatialFlag == null) { enhancedSpatialSupport = isMySqlVersion56(dataStore); } else if (enhancedSpatialFlag && !isMySqlVersion56(dataStore)) { <START> System.out.println("MySQL version does not support enhancedSpatialSupport. Disabling it"); <END> enhancedSpatialSupport = false; } SQLDialect dialect = dataStore.getSQLDialect(); if (dialect instanceof MySQLDialectBasic) { ((MySQLDialectBasic)dialect).setStorageEngine(storageEngine); ((MySQLDialectBasic)dialect).setUsePreciseSpatialOps(enhancedSpatialSupport); } else { ((MySQLDialectPrepared)dialect).setStorageEngine(storageEngine); ((MySQLDialectPrepared)dialect).setUsePreciseSpatialOps(enhancedSpatialSupport); } return dataStore; }</code><technical_language>Eeek, a system out! Also, tabs, indentation is done spaces. already? sorry</technical_language>

Target:
protected JDBCDataStore createDataStoreInternal(JDBCDataStore dataStore, Map params) throws IOException { String storageEngine = (String) STORAGE_ENGINE.lookUp( params ); if (storageEngine == null) { storageEngine = (String) STORAGE_ENGINE.sample; } Boolean enhancedSpatialFlag = (Boolean) ENHANCED_SPATIAL_SUPPORT.lookUp( params ); if (enhancedSpatialFlag == null) { enhancedSpatialSupport = isMySqlVersion56(dataStore); } else if (enhancedSpatialFlag && !isMySqlVersion56(dataStore)) { dataStore.getLogger().info("MySQL version does not support enhancedSpatialSupport. Disabling it"); enhancedSpatialSupport = false; } SQLDialect dialect = dataStore.getSQLDialect(); if (dialect instanceof MySQLDialectBasic) { ((MySQLDialectBasic)dialect).setStorageEngine(storageEngine); ((MySQLDialectBasic)dialect).setUsePreciseSpatialOps(enhancedSpatialSupport); } else { ((MySQLDialectPrepared)dialect).setStorageEngine(storageEngine); ((MySQLDialectPrepared)dialect).setUsePreciseSpatialOps(enhancedSpatialSupport); } return dataStore; }
Source:
<code><START> public void shutdown(RequestMonitor requestMonitor) { <END> fAddressSizes.clear(); super.shutdown(requestMonitor); }</code><technical_language>need unregister()</technical_language>

Target:
public void shutdown(RequestMonitor requestMonitor) { unregister(); getSession().removeServiceEventListener(this); fAddressSizes.clear(); super.shutdown(requestMonitor); }
Source:
<code>private String getName(Type sourceType, Type targetType) { String fromName = getName( sourceType ); String toName = getName( targetType ); String with = nullValueMappingStrategy != null ? <START> "WithNvms" + camelizeEnumConstant( nullValueMappingStrategy ) : ""; <END> return Strings.decapitalize( fromName + "To" + toName + with ); }</code><technical_language>"camelize"... flowerly..</technical_language>

Target:
private String getName(Type sourceType, Type targetType ) { String fromName = getName( sourceType ); String toName = getName( targetType ); return Strings.decapitalize( fromName + "To" + toName ); }
Source:
<code>public void testSetDependencies() { Assert.assertNotNull(this.c.getDependencies()); <START> final Set<String> dependencies = Sets.newHashSet(); <END> dependencies.add("s3://netflix/jars/myJar.jar"); this.c.setDependencies(dependencies); Assert.assertEquals(dependencies, this.c.getDependencies()); this.c.setDependencies(null); Assert.assertThat(this.c.getDependencies(), Matchers.empty()); }</code><technical_language>Sets.newHashSet({value}) else</technical_language>

Target:
public void testSetDependencies() { Assert.assertNotNull(this.c.getDependencies()); final Set<String> dependencies = Sets.newHashSet("s3://netflix/jars/myJar.jar"); this.c.setDependencies(dependencies); Assert.assertEquals(dependencies, this.c.getDependencies()); this.c.setDependencies(null); Assert.assertThat(this.c.getDependencies(), Matchers.empty()); }
Source:
<code>public void onStart() { super.onStart(); BottomSheetBehavior.from((View) <START> getView().getParent()).setPeekHeight((int) DimenUtil <END> .dpToPx(DimenUtil.getDimension(R.dimen.readingListSheetPeekHeight))); }</code><technical_language>roundedDpToPx instead of casting int</technical_language>

Target:
public void onStart() { super.onStart(); BottomSheetBehavior.from((View) getView().getParent()).setPeekHeight(DimenUtil .roundedDpToPx(DimenUtil.getDimension(R.dimen.readingListSheetPeekHeight))); }
Source:
<code>public void testProxyHostUnknown() throws Exception { startProxy(0, null); CountDownLatch latch = new CountDownLatch(1); final HttpClientOptions options = new HttpClientOptions() .setProxyOptions(new ProxyOptions() .setType(ProxyType.HTTP) .setHost("localhost") .setPort(proxy.getPort())); HttpClient client = vertx.createHttpClient(options); client.getAbs("https://unknown.hostname/", resp -> { log.info("this request is supposed to fail"); fail(); }) .exceptionHandler(e -> { <START> log.warn("Exception", e); <END> latch.countDown(); }) .end(); latch.await(); }</code><technical_language>please logging</technical_language>

Target:
public void testProxyHostUnknown() throws Exception { startProxy(0, null); final HttpClientOptions options = new HttpClientOptions() .setProxyOptions(new ProxyOptions() .setType(ProxyType.HTTP) .setHost("localhost") .setPort(proxy.getPort())); HttpClient client = vertx.createHttpClient(options); client.getAbs("https://unknown.hostname/", resp -> { fail(); }) .exceptionHandler(e -> testComplete()) .end(); await(); }
Source:
<code>public void setExplainPlan(String plan){ CompilerContext.DataSetProcessorType type = this.activation.getLanguageConnectionContext().getDataSetProcessorType(); <START> if (type == CompilerContext.DataSetProcessorType.SPARK) <END> explainPlan=(plan==null?"":plan.replace("n=","RS=").replace("->","").trim()); }</code><technical_language>I allow CompilerContext.DataSetProcessorType.FORCED_SPARK too</technical_language>

Target:
public void setExplainPlan(String plan){ CompilerContext.DataSetProcessorType type = this.activation.getLanguageConnectionContext().getDataSetProcessorType(); if (type == CompilerContext.DataSetProcessorType.SPARK || type == CompilerContext.DataSetProcessorType.FORCED_SPARK) explainPlan=(plan==null?"":plan.replace("n=","RS=").replace("->","").trim()); }
Source:
<code>private static String[] getCache() { String[] cache; if (softCache != null) { cache = softCache.get(); if (cache != null) { return cache; } } long time = System.nanoTime(); <START> if (softCacheCreated != 0 && time - softCacheCreated < TimeUnit.SECONDS.toNanos(5)) { <END> return null; } try { cache = new String[SysProperties.OBJECT_CACHE_SIZE]; softCache = new SoftReference<String[]>(cache); return cache; } finally { softCacheCreated = System.nanoTime(); } }</code><technical_language>rename softCacheCreated softCacheCreatedNs</technical_language>

Target:
private static String[] getCache() { String[] cache; if (softCache != null) { cache = softCache.get(); if (cache != null) { return cache; } } long time = System.nanoTime(); if (softCacheCreatedNs != 0 && time - softCacheCreatedNs < TimeUnit.SECONDS.toNanos(5)) { return null; } try { cache = new String[SysProperties.OBJECT_CACHE_SIZE]; softCache = new SoftReference<String[]>(cache); return cache; } finally { softCacheCreatedNs = System.nanoTime(); } }
Source:
<code>private void writeFeatures() { if (vm.getClusterArch().getFamily() != ArchitectureType.x86) { return; } boolean acpiEnabled = vm.getAcpiEnable(); boolean kaslr = vmInfoBuildUtils.isKASLRDumpEnabled(vm.getVmOsId()); if (!acpiEnabled && !hypervEnabled && !kaslr) { return; } writer.writeStartElement("features"); if (acpiEnabled) { writer.writeStartElement("acpi"); writer.writeEndElement(); } if (hypervEnabled) { writer.writeStartElement("hyperv"); writer.writeStartElement("relaxed"); writer.writeAttributeString("state", "on"); writer.writeEndElement(); writer.writeStartElement("vapic"); writer.writeAttributeString("state", "on"); writer.writeEndElement(); writer.writeStartElement("spinlocks"); writer.writeAttributeString("state", "on"); writer.writeAttributeString("retries", "8191"); writer.writeEndElement(); writer.writeEndElement(); } if (kaslr) { <START> writer.writeStartElement("vmcoreinfo"); writer.writeEndElement(); <END> } writer.writeEndElement(); }</code><technical_language>please replace 'writeElement'</technical_language>

Target:
private void writeFeatures() { if (vm.getClusterArch().getFamily() != ArchitectureType.x86) { return; } boolean acpiEnabled = vm.getAcpiEnable(); boolean kaslr = vmInfoBuildUtils.isKASLRDumpEnabled(vm.getVmOsId()); if (!acpiEnabled && !hypervEnabled && !kaslr) { return; } writer.writeStartElement("features"); if (acpiEnabled) { writer.writeStartElement("acpi"); writer.writeEndElement(); } if (hypervEnabled) { writer.writeStartElement("hyperv"); writer.writeStartElement("relaxed"); writer.writeAttributeString("state", "on"); writer.writeEndElement(); writer.writeStartElement("vapic"); writer.writeAttributeString("state", "on"); writer.writeEndElement(); writer.writeStartElement("spinlocks"); writer.writeAttributeString("state", "on"); writer.writeAttributeString("retries", "8191"); writer.writeEndElement(); writer.writeEndElement(); } if (kaslr) { writer.writeElement("vmcoreinfo"); } writer.writeEndElement(); }
Source:
<code>public void testUpdateProtocolMappers() { ClientScopeRepresentation templateRep = new ClientScopeRepresentation(); templateRep.setName("testUpdateProtocolMappers"); templateRep.setProtocol("openid-connect"); <START> String templateId = createClientScope(templateRep); <END> ProtocolMapperRepresentation mapper = new ProtocolMapperRepresentation(); mapper.setName("test"); mapper.setProtocol("openid-connect"); mapper.setProtocolMapper("oidc-usermodel-attribute-mapper"); Map<String, String> m = new HashMap<>(); m.put("user.attribute", "test"); m.put("claim.name", ""); m.put("jsonType.label", ""); mapper.setConfig(m); ProtocolMappersResource protocolMappers = clientScopes().get(templateId).getProtocolMappers(); Response response = protocolMappers.createMapper(mapper); String mapperId = ApiUtil.getCreatedId(response); mapper = protocolMappers.getMapperById(mapperId); mapper.getConfig().put("claim.name", "claim"); protocolMappers.update(mapperId, mapper); List<ProtocolMapperRepresentation> mappers = protocolMappers.getMappers(); assertEquals(1, mappers.size()); assertEquals(2, mappers.get(0).getConfig().size()); assertEquals("test", mappers.get(0).getConfig().get("user.attribute")); assertEquals("claim", mappers.get(0).getConfig().get("claim.name")); clientScopes().get(templateId).remove(); }</code><technical_language>templateId > scopeId</technical_language>

Target:
public void testUpdateProtocolMappers() { ClientScopeRepresentation scopeRep = new ClientScopeRepresentation(); scopeRep.setName("testUpdateProtocolMappers"); scopeRep.setProtocol("openid-connect"); String scopeId = createClientScope(scopeRep); ProtocolMapperRepresentation mapper = new ProtocolMapperRepresentation(); mapper.setName("test"); mapper.setProtocol("openid-connect"); mapper.setProtocolMapper("oidc-usermodel-attribute-mapper"); Map<String, String> m = new HashMap<>(); m.put("user.attribute", "test"); m.put("claim.name", ""); m.put("jsonType.label", ""); mapper.setConfig(m); ProtocolMappersResource protocolMappers = clientScopes().get(scopeId).getProtocolMappers(); Response response = protocolMappers.createMapper(mapper); String mapperId = ApiUtil.getCreatedId(response); mapper = protocolMappers.getMapperById(mapperId); mapper.getConfig().put("claim.name", "claim"); protocolMappers.update(mapperId, mapper); List<ProtocolMapperRepresentation> mappers = protocolMappers.getMappers(); assertEquals(1, mappers.size()); assertEquals(2, mappers.get(0).getConfig().size()); assertEquals("test", mappers.get(0).getConfig().get("user.attribute")); assertEquals("claim", mappers.get(0).getConfig().get("claim.name")); clientScopes().get(scopeId).remove(); }
Source:
<code>public void testGetElementPositionWithNull() { int elementCount = 100; int initialTypedSetEntryCount = 10; TypedSet typedSet = new TypedSet(BIGINT, initialTypedSetEntryCount, FUNCTION_NAME); BlockBuilder blockBuilder = BIGINT.createFixedSizeBlockBuilder(elementCount); for (int i = 0; i < elementCount; i++) { if (i % 10 == 0) { blockBuilder.appendNull(); } else { BIGINT.writeLong(blockBuilder, i); } typedSet.add(blockBuilder, i); } assertEquals(typedSet.size(), elementCount - elementCount / 10 + 1); <START> int nullCountMinusOne = -1; <END> for (int j = 0; j < blockBuilder.getPositionCount(); j++) { if (!blockBuilder.isNull(j)) { assertEquals(typedSet.positionOf(blockBuilder, j), j - nullCountMinusOne); } else { assertEquals(typedSet.positionOf(blockBuilder, j), 0); nullCountMinusOne++; } } }</code><technical_language>nullCount. For case in line 114, j - nullCount + 1</technical_language>

Target:
public void testGetElementPositionWithNull() { int elementCount = 100; int initialTypedSetEntryCount = 10; TypedSet typedSet = new TypedSet(BIGINT, initialTypedSetEntryCount, FUNCTION_NAME); BlockBuilder blockBuilder = BIGINT.createFixedSizeBlockBuilder(elementCount); for (int i = 0; i < elementCount; i++) { if (i % 10 == 0) { blockBuilder.appendNull(); } else { BIGINT.writeLong(blockBuilder, i); } typedSet.add(blockBuilder, i); } assertEquals(typedSet.size(), elementCount - elementCount / 10 + 1); int nullCount = 0; for (int j = 0; j < blockBuilder.getPositionCount(); j++) { if (!blockBuilder.isNull(j)) { assertEquals(typedSet.positionOf(blockBuilder, j), j - nullCount + 1); } else { assertEquals(typedSet.positionOf(blockBuilder, j), 0); nullCount++; } } }
Source:
<code>public void initialise() { this.renderingConfig = config.getRendering(); this.chunkShader = worldRenderer.getMaterial("engine:prog.chunk"); this.playerCamera = worldRenderer.getActiveCamera(); addDesiredStateChange(new BindFBO(SCENE_REFLECTED_FBO)); addDesiredStateChange(new SetViewportSizeOf(SCENE_REFLECTED_FBO)); <START> addDesiredStateChange(new SetFacesToCull(GL_FRONT)); <END> }</code><technical_language>Careful. This imply face culling enabled. need additional state change in this list</technical_language>

Target:
public void initialise() { this.renderingConfig = config.getRendering(); this.chunkShader = worldRenderer.getMaterial("engine:prog.chunk"); this.playerCamera = worldRenderer.getActiveCamera(); requiresFBO(new FBOConfig(REFLECTED, HALF_SCALE, FBO.Type.DEFAULT).useDepthBuffer(), displayResolutionDependentFBOs); addDesiredStateChange(new BindFBO(REFLECTED, displayResolutionDependentFBOs)); addDesiredStateChange(new SetViewportToSizeOf(REFLECTED, displayResolutionDependentFBOs)); addDesiredStateChange(new EnableFaceCulling()); addDesiredStateChange(new SetFacesToCull(GL_FRONT)); }
Source:
<code>private void startOnlinePlay(DownloadEntry model) { if (!isPlayerVisible()) { showPlayer(); } addVideoDatatoDb(model); playVideoModel(model); notifyAdapter(); <START> } <END></code><technical_language>line methods</technical_language>

Target:
private void startOnlinePlay(DownloadEntry model) { if (!isPlayerVisible()) { showPlayer(); } addVideoDatatoDb(model); playVideoModel(model); }
Source:
<code>public void compressTarForSubmitting(Path projectDir, Path tmcLangs, Path tmcrun, Path targetLocation) { TarCreator tarCompresser = new TarCreator(); log.info("Copying files to directory " + projectDir.toString() + " and creating tar ball"); try { tarCompresser.createTarFromProject(projectDir, tmcLangs, tmcrun, targetLocation); <START> } catch (IOException | ArchiveException ex) { <END> log.error(ex.toString()); } }</code><technical_language>Throw instead of catching, caller handle error condition</technical_language>

Target:
public void compressTarForSubmitting(Path projectDir, Path tmcLangs, Path tmcrun, Path targetLocation) throws IOException, ArchiveException { TarCreator tarCompresser = new TarCreator(); log.info("Copying files to directory " + projectDir.toString() + " and creating tar ball"); tarCompresser.createTarFromProject(projectDir, tmcLangs, tmcrun, targetLocation); }
Source:
<code>private String getContentText(int currentPage, boolean hasChunks) throws NoOpenCoreException, SolrServerException { final Server solrServer = KeywordSearch.getServer(); if (hasChunks == false) { String msg = null; if (content instanceof AbstractFile) { boolean isKnown = TskData.FileKnown.KNOWN.equals(((AbstractFile)content).getKnown()); if (isKnown && KeywordSearchSettings.getSkipKnown()) { msg = NbBundle.getMessage(ExtractedContentViewer.class, "ExtractedContentViewer.getSolrContent.knownFileMsg", content.getName()); } } if(msg == null) { <START> msg = NbBundle.getMessage(ExtractedContentViewer.class, "ExtractedContentViewer.getSolrContent.noTxtYetMsg", "file"); <END> } String htmlMsg = NbBundle.getMessage(ExtractedContentViewer.class, "ExtractedContentViewer.getSolrContent.txtBodyItal", msg); return htmlMsg; } int chunkId = currentPage; if (cachedString != null) { if (cachedChunk == chunkId) { return cachedString; } } String indexedText = solrServer.getSolrContent(this.objectId, chunkId); if (indexedText == null || indexedText.isEmpty()) { return NbBundle.getMessage(ExtractedContentViewer.class, "ExtractedContentViewer.getSolrContent.noTxtYetMsg", "file"); } cachedString = EscapeUtil.escapeHtml(indexedText).trim(); StringBuilder sb = new StringBuilder(cachedString.length() + 20); sb.append("<pre>").append(cachedString).append("</pre>"); cachedString = sb.toString(); cachedChunk = chunkId; return cachedString; }</code><technical_language>If this code executes, i.e., is a file, "no indexed text" message (see above) used</technical_language>

Target:
private String getContentText(int currentPage, boolean hasChunks) throws NoOpenCoreException, SolrServerException { final Server solrServer = KeywordSearch.getServer(); if (hasChunks == false) { String msg = null; if (content instanceof AbstractFile) { boolean isKnown = TskData.FileKnown.KNOWN.equals(((AbstractFile) content).getKnown()); if (isKnown && KeywordSearchSettings.getSkipKnown()) { msg = Bundle.IndexedText_warningMessage_knownFile(); } } if (msg == null) { msg = Bundle.IndexedText_warningMessage_noTextAvailable(); } return msg; } int chunkId = currentPage; if (cachedString != null) { if (cachedChunk == chunkId) { return cachedString; } } String indexedText = solrServer.getSolrContent(this.objectId, chunkId); if (indexedText == null) { if (content instanceof AbstractFile) { return Bundle.IndexedText_errorMessage_errorGettingText(); } else { return Bundle.IndexedText_warningMessage_noTextAvailable(); } } else if (indexedText.isEmpty()) { return Bundle.IndexedText_warningMessage_noTextAvailable(); } cachedString = EscapeUtil.escapeHtml(indexedText).trim(); StringBuilder sb = new StringBuilder(cachedString.length() + 20); sb.append("<pre>").append(cachedString).append("</pre>"); cachedString = sb.toString(); cachedChunk = chunkId; return cachedString; }
Source:
<code>public void start() throws Exception { if (trace) { log.tracef("Starting StateTransferManager of cache %s on node %s", cacheName, rpcManager.getAddress()); } CacheJoinInfo joinInfo = new CacheJoinInfo(pickConsistentHashFactory(), configuration.clustering().hash().hash(), configuration.clustering().hash().numSegments(), configuration.clustering().hash().numOwners(), configuration.clustering().stateTransfer().timeout(), configuration.transaction().transactionProtocol().isTotalOrder(), configuration.clustering().cacheMode().isDistributed(), configuration.clustering().hash().capacityFactor(), persistentStateChecksum); CacheTopology initialTopology = localTopologyManager.join(cacheName, joinInfo, new CacheTopologyHandler() { @Override public void updateConsistentHash(CacheTopology cacheTopology) { doTopologyUpdate(cacheTopology, false); } @Override public void rebalance(CacheTopology cacheTopology) { doTopologyUpdate(cacheTopology, true); } }, partitionHandlingManager); if (trace) { <START> if (initialTopology != null) { <END> log.tracef("StateTransferManager of cache %s on node %s received initial topology %s", cacheName, rpcManager.getAddress(), initialTopology); } } }</code><technical_language>This check necessary</technical_language>

Target:
public void start() throws Exception { if (trace) { log.tracef("Starting StateTransferManager of cache %s on node %s", cacheName, rpcManager.getAddress()); } CacheJoinInfo joinInfo = new CacheJoinInfo(pickConsistentHashFactory(), configuration.clustering().hash().hash(), configuration.clustering().hash().numSegments(), configuration.clustering().hash().numOwners(), configuration.clustering().stateTransfer().timeout(), configuration.transaction().transactionProtocol().isTotalOrder(), configuration.clustering().cacheMode().isDistributed(), configuration.clustering().hash().capacityFactor(), localTopologyManager.getPersistentUUID(), persistentStateChecksum); CacheTopology initialTopology = localTopologyManager.join(cacheName, joinInfo, new CacheTopologyHandler() { @Override public void updateConsistentHash(CacheTopology cacheTopology) { doTopologyUpdate(cacheTopology, false); } @Override public void rebalance(CacheTopology cacheTopology) { doTopologyUpdate(cacheTopology, true); } }, partitionHandlingManager); if (trace) { log.tracef("StateTransferManager of cache %s on node %s received initial topology %s", cacheName, rpcManager.getAddress(), initialTopology); } }
Source:
<code>public String getUrl() { return <START> this.url; <END> }</code><technical_language>if gonna rebase this patch, please consider dropping this. prefixes getters</technical_language>

Target:
public String getUrl() { return url; }
Source:
<code><START> public ITmfTrace getActiveTrace() { <END> return fCurrentTrace; }</code><technical_language>Add synchronized this method</technical_language>

Target:
public synchronized ITmfTrace getActiveTrace() { return fCurrentTrace; }
Source:
<code>protected DataBuffer reallocate(DataBuffer buffer) { int newSize = (int) buffer.length() * 2; <START> DataBuffer newBuffer = null; <END> if (buffer instanceof DoubleBuffer){ newBuffer = new DoubleBuffer(newSize); newBuffer.setData(buffer.asDouble()); } else if (buffer instanceof IntBuffer) { newBuffer = new IntBuffer(newSize); newBuffer.setData(buffer.asInt()); }else if (buffer instanceof FloatBuffer) { newBuffer = new FloatBuffer(newSize); newBuffer.setData(buffer.asFloat()); } return newBuffer; }</code><technical_language>primitive types objects can</technical_language>

Target:
protected DataBuffer reallocate(DataBuffer buffer) { int newSize = (int) buffer.length() * 2; DataBuffer newBuffer = Nd4j.createBuffer(newSize); switch (buffer.dataType()) { case INT: newBuffer.setData(buffer.asInt()); break; case DOUBLE: newBuffer.setData(buffer.asDouble()); break; case FLOAT: newBuffer.setData(buffer.asFloat()); break; case HALF: throw new UnsupportedOperationException(); case COMPRESSED: throw new UnsupportedOperationException(); default: throw new UnsupportedOperationException(); } return newBuffer; }
Source:
<code>public static void setup() { UM7LT sensor = new UM7LT(Igneous.makeRS232_MXP(115200, "UM7-LT")); sensor.autoreportFaults.set(true); sensor.start(); pitch = sensor.pitch; yaw = sensor.yaw; roll = sensor.roll; pitchRate = sensor.pitchRate; yawRate = sensor.yawRate; rollRate = sensor.rollRate; zeroGyro = sensor.zeroGyro; absoluteYaw = FloatMixing.addition.of(FloatMixing.multiplication.of((FloatInput) accumulator, 360), yaw); Igneous.globalPeriodic.send(new EventOutput() { public void event() { float currentyaw = yaw.get(); float oldyaw = oldYaw.get(); if (Math.abs(currentyaw - oldyaw) > 180) { if (oldyaw > 180) { accumulator.set(accumulator.get() + 1); } else if (oldyaw < -180) { <START> accumulator.set(accumulator.get() - 1); <END> } } oldYaw.set(yaw.get()); } }); Cluck.publish("Accumulator", accumulator); Cluck.publish("Absolute Yaw", absoluteYaw); Cluck.publish(QuasarHelios.testPrefix + "Heading Sensor Zero", zeroGyro); Cluck.publish(QuasarHelios.testPrefix + "Heading Sensor Pitch", pitch); Cluck.publish(QuasarHelios.testPrefix + "Heading Sensor Yaw", yaw); Cluck.publish(QuasarHelios.testPrefix + "Heading Sensor Roll", roll); Cluck.publish(QuasarHelios.testPrefix + "Heading Sensor Pitch Rate", pitchRate); Cluck.publish(QuasarHelios.testPrefix + "Heading Sensor Yaw Rate", yawRate); Cluck.publish(QuasarHelios.testPrefix + "Heading Sensor Roll Rate", rollRate); }</code><technical_language>add multiples of 360 multiply</technical_language>

Target:
public static void setup() { UM7LT sensor = new UM7LT(Igneous.makeRS232_MXP(115200, "UM7-LT")); sensor.autoreportFaults.set(true); sensor.start(); pitch = sensor.pitch; yaw = sensor.yaw; roll = sensor.roll; pitchRate = sensor.pitchRate; yawRate = sensor.yawRate; rollRate = sensor.rollRate; zeroGyro = sensor.zeroGyro; absoluteYaw = FloatMixing.addition.of((FloatInput) accumulator, yaw); Igneous.globalPeriodic.send(new EventOutput() { float oldyaw = 0; public void event() { float currentyaw = yaw.get(); if (Math.abs(currentyaw - oldyaw) > 180) { if (oldyaw > 180) { accumulator.set(accumulator.get() + 360); } else if (oldyaw < -180) { accumulator.set(accumulator.get() - 360); } } oldyaw = yaw.get(); } }); Cluck.publish(QuasarHelios.testPrefix + "Heading Sensor Zero", zeroGyro); Cluck.publish(QuasarHelios.testPrefix + "Heading Sensor Reset Accumulator", resetAccumulator); Cluck.publish(QuasarHelios.testPrefix + "Heading Sensor Pitch", pitch); Cluck.publish(QuasarHelios.testPrefix + "Heading Sensor Yaw", yaw); Cluck.publish(QuasarHelios.testPrefix + "Heading Sensor Absolute Yaw", absoluteYaw); Cluck.publish(QuasarHelios.testPrefix + "Heading Sensor Roll", roll); Cluck.publish(QuasarHelios.testPrefix + "Heading Sensor Pitch Rate", pitchRate); Cluck.publish(QuasarHelios.testPrefix + "Heading Sensor Yaw Rate", yawRate); Cluck.publish(QuasarHelios.testPrefix + "Heading Sensor Roll Rate", rollRate); }
Source:
<code>public void validate(FailureCollector collector) { super.validate(collector); if (!containsMacro("username") && (Strings.isNullOrEmpty(username) ^ Strings.isNullOrEmpty(password))) { collector.addFailure("You must either set both username and password or neither username nor password.", <START> "Leave username and password fields empty or provide values for both fields") <END> .withConfigProperty("username").withConfigProperty("password"); } if (!containsMacro("sender")) { try { InternetAddress[] addresses = InternetAddress.parse(sender); if (addresses.length == 0) { collector.addFailure("Sender email was not specified.", "Provide a sender email address.") .withConfigProperty("sender"); } if (addresses.length > 1) { collector.addFailure(String.format( "%s is an invalid sender email address. Only one sender is supported.", sender), "Only specify one sender email address.").withConfigProperty("sender"); } } catch (AddressException e) { collector.addFailure(String.format("%s is an invalid sender email address. Reason: %s", sender, e.getMessage()), "").withConfigProperty("sender"); } } if (!containsMacro("recipients")) { try { InternetAddress.parse(recipients); } catch (AddressException e) { collector.addFailure(String.format("%s is an invalid list of recipient email addresses. Reason: %s", recipients, e.getMessage()), "").withConfigProperty("recipients"); } } }</code><technical_language>fix indentation match rest of project</technical_language>

Target:
public void validate(FailureCollector collector) { super.validate(collector); if (!containsMacro(USERNAME) && (Strings.isNullOrEmpty(username) ^ Strings.isNullOrEmpty(password))) { collector.addFailure("Both username and password must be given, or neither of them must be given.", "Leave username and password fields empty or provide values for both fields.") .withConfigProperty(USERNAME).withConfigProperty(PASSWORD); } if (!containsMacro(SENDER)) { try { InternetAddress[] addresses = InternetAddress.parse(sender); if (addresses.length == 0) { collector.addFailure("Sender email was not specified.", null).withConfigProperty(SENDER); } if (addresses.length > 1) { collector.addFailure( String.format("%s is an invalid sender email address. Only one sender is supported.", sender), "Only specify one sender email address.").withConfigProperty(SENDER); } } catch (AddressException e) { collector.addFailure(String.format("%s is an invalid sender email address. Reason: %s", sender, e.getMessage()), null).withConfigProperty(SENDER); } } if (!containsMacro(RECIPIENTS)) { try { InternetAddress.parse(recipients); } catch (AddressException e) { collector.addFailure(String.format("%s is an invalid list of recipient email addresses. Reason: %s", recipients, e.getMessage()), null) .withConfigProperty(RECIPIENTS); } } }
Source:
<code>public String getPromptMessage() { String message = "Updates to the script definitions are available. Updating your definitions may erase current scripts."; if (scriptGeneratorModel.isDirty()) { <START> message += "\n WARNING: There are uncommitted changes to the script defintions. These will be lost if you update."; <END> } return message; }</code><technical_language>suggestion message += "\n WARNING: uncommitted changes script definitions. lost if update.";</technical_language>

Target:
public String getPromptMessage() { String message = "Updates to the script definitions are available. Updating your definitions may erase current scripts."; if (scriptGeneratorModel.isDirty()) { message += "\n WARNING: There are uncommitted changes to the script definitions. These will be lost if you update."; } return message; }
Source:
<code>private List<Map<String, Object>> parseDisks(XmlDocument document, List<VmDevice> devices, Guid vmId) { List<VmDevice> dbDevices = filterDevices(devices, VmDeviceGeneralType.DISK); List<Map<String, Object>> result = new ArrayList<>(); for (XmlNode node : selectNodes(document, VmDeviceGeneralType.DISK)) { Map<String, Object> dev = new HashMap<>(); dev.put(VdsProperties.Type, VmDeviceGeneralType.DISK.getValue()); String diskType = parseAttribute(node, DEVICE); dev.put(VdsProperties.Device, diskType); dev.put(VdsProperties.Address, parseAddress(node)); dev.put(VdsProperties.Alias, parseAlias(node)); String path = parseDiskPath(node); VmDevice dbDev = dbDevices.stream() .filter(d -> d.getDevice().equals(diskType)) .filter(d -> { switch(diskType) { case "cdrom": String devicePath = (String) d.getSpecParams().get("path"); <START> return devicePath != null ? path.contains(devicePath) : true; <END> case "floppy": return true; default: return path.contains(d.getId().getDeviceId().toString()); } }) .findFirst() .orElse(null); if (dbDev == null) { log.warn("unmanaged disk with path '{}' is ignored", path); continue; } dbDevices.remove(dbDev); dev.put(VdsProperties.DeviceId, dbDev.getId().getDeviceId().toString()); dev.put(VdsProperties.SpecParams, dbDev.getSpecParams()); result.add(dev); } return result; }</code><technical_language>devicePath == null || path.contains(devicePath)</technical_language>

Target:
private List<Map<String, Object>> parseDisks(XmlDocument document, List<VmDevice> devices, Guid vmId) { List<VmDevice> dbDevices = filterDevices(devices, VmDeviceGeneralType.DISK); List<Map<String, Object>> result = new ArrayList<>(); for (XmlNode node : selectNodes(document, VmDeviceGeneralType.DISK)) { Map<String, Object> dev = new HashMap<>(); dev.put(VdsProperties.Type, VmDeviceGeneralType.DISK.getValue()); String diskType = parseAttribute(node, DEVICE); dev.put(VdsProperties.Device, diskType); dev.put(VdsProperties.Address, parseAddress(node)); dev.put(VdsProperties.Alias, parseAlias(node)); String path = parseDiskPath(node); VmDevice dbDev = dbDevices.stream() .filter(d -> d.getDevice().equals(diskType)) .filter(d -> { switch(diskType) { case "cdrom": String devicePath = (String) d.getSpecParams().get("path"); return devicePath == null || path.contains(devicePath); case "floppy": return true; default: return path.contains(d.getId().getDeviceId().toString()); } }) .findFirst() .orElse(null); if (dbDev == null) { log.warn("unmanaged disk with path '{}' is ignored", path); continue; } dbDevices.remove(dbDev); dev.put(VdsProperties.DeviceId, dbDev.getId().getDeviceId().toString()); dev.put(VdsProperties.SpecParams, dbDev.getSpecParams()); result.add(dev); } return result; }
Source:
<code>public SshCommand(String hostname, String[] execString) { super(execString); mHostName = hostname; <START> mCommand = new String[]{"bash", "-c", <END> String.format("ssh %s %s %s", ShellUtils.COMMON_SSH_OPTS, hostname, String.join(" ", execString))}; }</code><technical_language>this for super constructor? (and mCommand final)</technical_language>

Target:
public SshCommand(String hostname, String[] execString) { super(new String[]{"bash", "-c", String.format("ssh %s %s %s", ShellUtils.COMMON_SSH_OPTS, hostname, String.join(" ", execString))}); mHostName = hostname; }
Source:
<code>public void getsManagementChannel() { final Sender sender = mock(Sender.class); final Receiver receiver = mock(Receiver.class); final Record linkRecord = mock(Record.class); when(session.sender(any())).thenReturn(sender); when(session.receiver(any())).thenReturn(receiver); when(sender.attachments()).thenReturn(linkRecord); when(receiver.attachments()).thenReturn(linkRecord); when(handlerProvider.createReceiveLinkHandler(eq(CONNECTION_ID), eq(HOSTNAME), anyString(), anyString())) .thenReturn(new ReceiveLinkHandler(CONNECTION_ID, HOSTNAME, "receiver-name", "test-entity-path")); when(handlerProvider.createSendLinkHandler(eq(CONNECTION_ID), eq(HOSTNAME), anyString(), anyString())) .thenReturn(new SendLinkHandler(CONNECTION_ID, HOSTNAME, "sender-name", "test-entity-path")); final EventHubReactorAmqpConnection connection = new EventHubReactorAmqpConnection(CONNECTION_ID, connectionOptions, "event-hub-name", reactorProvider, handlerProvider, tokenManagerProvider, messageSerializer, product, clientVersion); StepVerifier.create(connection.getManagementNode()) .assertNext(node -> Assertions.assertTrue(node instanceof ManagementChannel)) .verifyComplete(); <START> StepVerifier.create(connection.createSendLink("send-name", "test-entity-path", new AmqpRetryOptions())) .verifyError(); StepVerifier.create(connection.createReceiveLink("receiver-name", "test-entity-path", EventPosition.latest(), new ReceiveOptions())) .verifyError(); <END> }</code><technical_language>error verifying here? assert expected error</technical_language>

Target:
public void getsManagementChannel() { final Sender sender = mock(Sender.class); final Receiver receiver = mock(Receiver.class); final Record linkRecord = mock(Record.class); when(session.sender(any())).thenReturn(sender); when(session.receiver(any())).thenReturn(receiver); when(sender.attachments()).thenReturn(linkRecord); when(receiver.attachments()).thenReturn(linkRecord); when(handlerProvider.createReceiveLinkHandler(eq(CONNECTION_ID), eq(HOSTNAME), anyString(), anyString())) .thenReturn(new ReceiveLinkHandler(CONNECTION_ID, HOSTNAME, "receiver-name", "test-entity-path")); when(handlerProvider.createSendLinkHandler(eq(CONNECTION_ID), eq(HOSTNAME), anyString(), anyString())) .thenReturn(new SendLinkHandler(CONNECTION_ID, HOSTNAME, "sender-name", "test-entity-path")); final EventHubReactorAmqpConnection connection = new EventHubReactorAmqpConnection(CONNECTION_ID, connectionOptions, "event-hub-name", reactorProvider, handlerProvider, tokenManagerProvider, messageSerializer, product, clientVersion); StepVerifier.create(connection.getManagementNode()) .assertNext(node -> Assertions.assertTrue(node instanceof ManagementChannel)) .verifyComplete(); }
Source:
<code>public static URL parseURL(String address, Map<String, String> defaults) { <START> return new URL(UrlUtils.parseURL(address, defaults)); <END> }</code><technical_language>org.apache.dubbo.xxx.UrlUtils</technical_language>

Target:
public static URL parseURL(String address, Map<String, String> defaults) { return new URL(org.apache.dubbo.common.utils.UrlUtils.parseURL(address, defaults)); }