auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
<code>public void onPrepareOptionsMenu(Menu menu) { <START> super.onPrepareOptionsMenu(menu); <END> List<Integer> toHide = new ArrayList<Integer>(); MenuItem item = null; for (int i : toHide) { item = (MenuItem) menu.findItem(i); if (item != null) { item.setVisible(false); item.setEnabled(false); } } }</code><technical_language>for PreviewImageFragment</technical_language>

Target:
public void onPrepareOptionsMenu(Menu menu) { super.onPrepareOptionsMenu(menu); if (!getFile().isShareByLink()) { MenuItem item = menu.findItem(R.id.action_unshare_file); item.setVisible(false); item.setEnabled(false); } }
Source:
<code>public void getUserCardByIdShouldReturnTheRequest() throws Exception { final AtomicReference<Request> bodyRef = new AtomicReference<>(); final CountDownLatch latch = new CountDownLatch(1); final RestAdapter adapter = new RestAdapter.Builder().setEndpoint(MOCK_URL).setClient(new Client() { @Override public Response execute(Request request) throws IOException { bodyRef.set(request); latch.countDown(); <START> return null; <END> } }).build(); final UserCardService userCardService = adapter.create(UserCardService.class); userCardService.getUserCardById("foobar", new RetrofitPromise<Card>()); latch.await(); Assert.assertEquals(bodyRef.get().getUrl(), String.format("%s/v0/me/cards/%s", MOCK_URL, "foobar")); Assert.assertEquals(bodyRef.get().getMethod(), "GET"); }</code><technical_language>Add newline return</technical_language>

Target:
public void getUserCardByIdShouldReturnTheRequest() throws Exception { final AtomicReference<Request> bodyRef = new AtomicReference<>(); final CountDownLatch latch = new CountDownLatch(1); final RestAdapter adapter = new RestAdapter.Builder().setEndpoint(MOCK_URL).setClient(new Client() { @Override public Response execute(Request request) throws IOException { bodyRef.set(request); latch.countDown(); return null; } }).build(); final UserCardService userCardService = adapter.create(UserCardService.class); userCardService.getUserCardById("foobar", new RetrofitPromise<Card>()); latch.await(); Assert.assertEquals(bodyRef.get().getMethod(), "GET"); Assert.assertEquals(bodyRef.get().getUrl(), String.format("%s/v0/me/cards/%s", MOCK_URL, "foobar")); }
Source:
<code><START> public boolean isDone() { <END> assert !holdsLock(lock); synchronized (lock) { switch (state) { case WAITING: { return false; } case CANCEL_REQ: case READY: case FAILED: case CANCELLED: case DONE: case CONSUMING: case DISCARDED: { return true; } default: throw new IllegalStateException(); } } }</code><technical_language>intend this public</technical_language>

Target:
boolean isDone() { assert !holdsLock(lock); synchronized (lock) { switch (state) { case WAITING: { return false; } case CANCEL_REQ: case READY: case FAILED: case CANCELLED: case DONE: case CONSUMING: case DISCARDED: { return true; } default: throw new IllegalStateException(); } } }
Source:
<code>public ObjectProperty<ContainerDTO> selectedContainerProperty() { <START> return selectedContainer; <END> }</code><technical_language>this</technical_language>

Target:
public ObjectProperty<ContainerDTO> selectedContainerProperty() { return this.selectedContainer; }
Source:
<code>public void persist(ConfigItem<ConnectorDescription> config) throws PersistenceException, InvalidConfigurationException { LOGGER.debug("persisting ConnectorConfiguration"); Preconditions.checkArgument( supports((Class<? extends ConfigItem<?>>) config.getClass()), "Argument type not supported"); Preconditions.checkNotNull(config, "Config must not be null"); Preconditions.checkNotNull(config.getMetaData().get(Constants.CONNECTOR_PERSISTENT_ID), "No id set!"); Preconditions.checkNotNull(config.getContent(), "Invalid content"); List<ConnectorConfigurationJPAEntity> oldEntities = searchForMetadata(config .getMetaData()); if (oldEntities.size() > 1) { throw new PersistenceException( "Unexpected error: Found more than 1 object fitting the metadata!"); } ConnectorConfigurationJPAEntity entity = ConnectorConfigurationJPAEntity .generateFromConfigItem(config); if (oldEntities.size() == 1) { ConnectorConfigurationJPAEntity old = oldEntities.get(0); old.setConnectorType(entity.getConnectorType()); old.setDomainType(entity.getDomainType()); old.setAttributes(entity.getAttributes()); old.setProperties(entity.getProperties()); try { entityManager.merge(old); } catch (Exception ex) { throw new PersistenceException(ex); } LOGGER.info("updated ConnectorConfiguration"); <START> } <END> if (oldEntities.size() == 0) { try { entityManager.persist(entity); } catch (Exception ex) { throw new PersistenceException(ex); } LOGGER.info("inserted ConnectorConfiguration"); } }</code><technical_language>replace "if (oldEntities.size() == 0)" else if statement? size possibility left checked for >1 ==1 : )</technical_language>

Target:
public void persist(ConfigItem<ConnectorDescription> config) throws PersistenceException, InvalidConfigurationException { LOGGER.debug("persisting ConnectorConfiguration"); Preconditions.checkArgument( supports((Class<? extends ConfigItem<?>>) config.getClass()), "Argument type not supported"); Preconditions.checkNotNull(config, "Config must not be null"); Preconditions.checkNotNull(config.getMetaData().get(Constants.CONNECTOR_PERSISTENT_ID), "No id set!"); Preconditions.checkNotNull(config.getContent(), "Invalid content"); List<ConnectorConfigurationJPAEntity> oldEntities = searchForMetadata(config .getMetaData()); if (oldEntities.size() > 1) { throw new PersistenceException( "Unexpected error: Found more than 1 object fitting the metadata!"); } ConnectorConfigurationJPAEntity entity = ConnectorConfigurationJPAEntity .generateFromConfigItem(config); if (oldEntities.size() == 1) { ConnectorConfigurationJPAEntity old = oldEntities.get(0); old.setConnectorType(entity.getConnectorType()); old.setDomainType(entity.getDomainType()); old.setAttributes(entity.getAttributes()); old.setProperties(entity.getProperties()); try { synchronized (entityManager) { entityManager.merge(old); } } catch (Exception ex) { throw new PersistenceException(ex); } LOGGER.info("updated ConnectorConfiguration"); } else { try { synchronized (entityManager) { entityManager.persist(entity); } } catch (Exception ex) { throw new PersistenceException(ex); } LOGGER.info("inserted ConnectorConfiguration"); } }
Source:
<code>public void queryTable() { TableServiceAsyncClient tableServiceAsyncClient = new TableServiceClientBuilder() .connectionString("connectionString") .buildAsyncClient(); <START> QueryOptions queryOptions = new QueryOptions(); <END> queryOptions.setFilter("TableName eq OfficeSupplies"); tableServiceAsyncClient.queryTables(queryOptions).subscribe(azureTable -> { logger.info(azureTable.getName()); }, error -> { logger.error("There was an error querying the service. Error: " + error); }); }</code><technical_language>Highlight usage of fluent model. var queryOptions = new QueryOptions().setFilter("TableName eq OfficeSupplies");</technical_language>

Target:
public void queryTable() { TableServiceAsyncClient tableServiceAsyncClient = new TableServiceClientBuilder() .connectionString("connectionString") .buildAsyncClient(); QueryOptions queryOptions = new QueryOptions().setFilter("TableName eq OfficeSupplies"); tableServiceAsyncClient.queryTables(queryOptions).subscribe(azureTable -> { System.out.println(azureTable.getName()); }, error -> { System.err.println("There was an error querying the service. Error: " + error); }); }
Source:
<code>public PoolConfig() { maxIdleTimeMillis = DEFAULT_MAX_IDLE_TIME_MILLIS; <START> idleConnCleanupTicker = Observable.interval(maxIdleTimeMillis, TimeUnit.MILLISECONDS); <END> idleConnectionsHolder = new FIFOIdleConnectionsHolder<>(); limitDeterminationStrategy = UnboundedPoolLimitDeterminationStrategy.INSTANCE; }</code><technical_language>Sorry, more. This initial delay try clean immediately. important creation, if errors emitting right failure. This means a failure triggering fast instead of maxIdleTimeMillis. idleConnCleanupTicker = Observable.interval(maxIdleTimeMillis, maxIdleTimeMillis, TimeUnit.MILLISECONDS);</technical_language>

Target:
public PoolConfig() { maxIdleTimeMillis = DEFAULT_MAX_IDLE_TIME_MILLIS; idleConnCleanupTicker = Observable.interval(maxIdleTimeMillis, maxIdleTimeMillis, TimeUnit.MILLISECONDS); idleConnectionsHolder = new FIFOIdleConnectionsHolder<>(); limitDeterminationStrategy = UnboundedPoolLimitDeterminationStrategy.INSTANCE; }
Source:
<code>public synchronized void setMemoryPool(MemoryPool pool) { requireNonNull(pool, "pool is null"); if (memoryPool == pool) { return; } <START> MemoryPool originalPool = memoryPool; <END> memoryPool = pool; ListenableFuture<?> memoryFuture = pool.reserve(queryId, reserved); originalPool.free(queryId, reserved); ListenableFuture<?> revocableMemoryFuture = pool.reserveRevocable(queryId, revocableReserved); originalPool.freeRevocable(queryId, revocableReserved); Futures.allAsList(memoryFuture, revocableMemoryFuture).addListener(() -> { taskContexts.values().forEach(TaskContext::moreMemoryAvailable); }, directExecutor()); }</code><technical_language>This listener TaskContext::moreMemoryAvailable called *both* memoryFuture revocableMemoryFuture completed. TaskContext::moreMemoryAvailable eventually completes OperatorContext.memoryFuture, is for user memory. is a separate revocableMemoryFuture in OperatorContext for revocable memory. do need revocableMemoryFuture complete for completing OperatorContext.memoryFuture, is future for user memory</technical_language>

Target:
public synchronized void setMemoryPool(MemoryPool pool) { requireNonNull(pool, "pool is null"); if (memoryPool == pool) { return; } MemoryPool originalPool = memoryPool; long originalReserved = queryMemoryContext.getUserMemory(); long originalRevocableReserved = queryMemoryContext.getRevocableMemory(); memoryPool = pool; ListenableFuture<?> future = pool.reserve(queryId, originalReserved); originalPool.free(queryId, originalReserved); pool.reserveRevocable(queryId, originalRevocableReserved); originalPool.freeRevocable(queryId, originalRevocableReserved); future.addListener(() -> { taskContexts.values().forEach(TaskContext::moreMemoryAvailable); }, directExecutor()); }
Source:
<code>void handleResponse(ResponseInfo responseInfo) { int correlationId = ((DeleteRequest) responseInfo.getRequest()).getCorrelationId(); DeleteOperation deleteOperation = correlationIdToDeleteOperation.remove(correlationId); if (deleteOperations.contains(deleteOperation)) { deleteOperation.handleResponse(responseInfo, false); if (deleteOperation.isOperationComplete() && deleteOperations.remove(deleteOperation)) { onComplete(deleteOperation); } } else { <START> deleteOperation.handleResponse(responseInfo, true); <END> } }</code><technical_language>Do ignore a response of metrics? care metrics of a response do care about? a metric for responses - is number of responses in operation completes</technical_language>

Target:
void handleResponse(ResponseInfo responseInfo) { int correlationId = ((DeleteRequest) responseInfo.getRequest()).getCorrelationId(); DeleteOperation deleteOperation = correlationIdToDeleteOperation.remove(correlationId); if (deleteOperations.contains(deleteOperation)) { deleteOperation.handleResponse(responseInfo); if (deleteOperation.isOperationComplete() && deleteOperations.remove(deleteOperation)) { onComplete(deleteOperation); } } else { routerMetrics.ignoredResponseCount.inc(); } }
Source:
<code>private String formatDate(InvocationOnMock invocation) { Date date = invocation.getArgument(0); <START> SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd-HH-mm-ss-S"); <END> return dateFormat.format(date); }</code><technical_language>If rebuilding this date format invocation is causing slow-down, I suggest moving this date format instance variable</technical_language>

Target:
private String formatDate(InvocationOnMock invocation) { Date date = invocation.getArgument(0); return DATE_FORMAT.format(date); }
Source:
<code>public void process() { PerformanceMonitor.startActivity("rendering/prePostComposite"); <START> sceneReflectiveRefractive = displayResolutionDependentFBOs.get(REFLECTIVE_REFRACTIVE); <END> glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); renderFullscreenQuad(); bindDisplay(); setViewportToSizeOf(READ_ONLY_GBUFFER); displayResolutionDependentFBOs.swapReadWriteBuffers(); READ_ONLY_GBUFFER.attachDepthBufferTo(sceneReflectiveRefractive); PerformanceMonitor.endActivity(); }</code><technical_language>move this line READ_ONLY_GBUFFER.attachDepthBufferTo</technical_language>

Target:
public void process() { PerformanceMonitor.startActivity("rendering/prePostComposite"); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); renderFullscreenQuad(); displayResolutionDependentFBOs.swapReadWriteBuffers(); sceneReflectiveRefractive = displayResolutionDependentFBOs.get(REFLECTIVE_REFRACTIVE); READ_ONLY_GBUFFER.attachDepthBufferTo(sceneReflectiveRefractive); PerformanceMonitor.endActivity(); }
Source:
<code>public int hashCode() { int hash = 0; <START> hash = (hash * 397) ^ (this.regionsContacted == null ? 0 : this.regionsContacted.hashCode()); <END> hash = (hash * 397) ^ (this.greaterThan1Kb == null ? 0 : this.greaterThan1Kb.hashCode()); hash = (hash * 397) ^ (this.consistency == null ? 0 : this.consistency.hashCode()); hash = (hash * 397) ^ (this.databasesName == null ? 0 : this.databasesName.hashCode()); hash = (hash * 397) ^ (this.containerName == null ? 0 : this.containerName.hashCode()); hash = (hash * 397) ^ (this.operation == null ? 0 : this.operation.hashCode()); hash = (hash * 397) ^ (this.resource == null ? 0 : this.resource.hashCode()); hash = (hash * 397) ^ (this.metricInfo == null ? 0 : this.metricInfo.getMetricsName() == null ? 0 : this.metricInfo.getMetricsName().hashCode()); return hash; }</code><technical_language>notion of 397 is - in hashCode() a prime number generate hashCode. I suggest it. please check IntelliJ generates generate hashCode</technical_language>

Target:
public int hashCode() { int hash = 0; hash = (hash * 397) ^ (this.regionsContacted == null ? 0 : this.regionsContacted.hashCode()); hash = (hash * 397) ^ (this.greaterThan1Kb == null ? 0 : this.greaterThan1Kb.hashCode()); hash = (hash * 397) ^ (this.consistency == null ? 0 : this.consistency.hashCode()); hash = (hash * 397) ^ (this.databaseName == null ? 0 : this.databaseName.hashCode()); hash = (hash * 397) ^ (this.containerName == null ? 0 : this.containerName.hashCode()); hash = (hash * 397) ^ (this.operation == null ? 0 : this.operation.hashCode()); hash = (hash * 397) ^ (this.resource == null ? 0 : this.resource.hashCode()); hash = (hash * 397) ^ (this.metricInfo == null ? 0 : this.metricInfo.getMetricsName() == null ? 0 : this.metricInfo.getMetricsName().hashCode()); return hash; }
Source:
<code>private void assertValidAudienceClaim(List<String> audience, List<String> value) { if (audience == null || !audience.containsAll(value)) { <START> throw new InvalidClaimException(String.format("The Claim '%s' value doesn't contain the required audience.", PublicClaims.AUDIENCE)); <END> } }</code><technical_language>this method is dedicated audience claim, this change is redundant. Please rollback</technical_language>

Target:
private void assertValidAudienceClaim(List<String> audience, List<String> value) { if (audience == null || !audience.containsAll(value)) { throw new InvalidClaimException("The Claim 'aud' value doesn't contain the required audience."); } }
Source:
<code>private CommandManager() { CacheManager manager = CacheManager.create(); <START> manager.addCache(initGetCache(EXECUTION_CONTEXT_NAME)); <END> executionContextMap = new EhcacheWrapper<NGuid, ExecutionContext>(manager, EXECUTION_CONTEXT_NAME); }</code><technical_language>I if more separation cache provider (ehcache) CommandManager. For example - consider CacheProviderFactory return CacheWrapper, if needed - add more methods CacheWrapper. a DataGrid/Cache JSRs? them? In addition, I prefer read cache initialization info configuration</technical_language>

Target:
private CommandManager() { executionContextMap = new EhcacheWrapper<NGuid, ExecutionContext>(CacheProviderFactory.getCache(EXECUTION_CONTEXT_MAP_NAME)); commandMap = new EhcacheWrapper<NGuid, CommandEntity>(CacheProviderFactory.getCache(COMMAND_MAP_NAME)); }
Source:
<code>private TeamException getTeamException(final Throwable throwable) { Throwable current = throwable; <START> while (current.getCause() != null) { <END> current = current.getCause(); } return new TeamException(current.getMessage(), current); }</code><technical_language>style nit: remove curly brackets</technical_language>

Target:
private TeamException getTeamException(final Throwable throwable) { Throwable current = throwable; while (current.getCause() != null) current = current.getCause(); return new TeamException(current.getMessage(), current); }
Source:
<code>private static String toReadWriteStoreKey(SystemStreamPartition ssp, TaskName taskName) { <START> return new String(new JsonSerdeV2<>().toBytes(new StartpointKey(ssp, taskName))); <END> }</code><technical_language>Is JsonSerdeV2 guaranteed ordering of keys JVMs? For example, {"ssp": "ssp_value", "taskName": "taskName_value"} is semantic key {"taskName": "taskName_value", "ssp": "ssp_value"}, byte representation is different</technical_language>

Target:
private static String toReadWriteStoreKey(SystemStreamPartition ssp, TaskName taskName) { Preconditions.checkArgument(ssp != null, "SystemStreamPartition should be defined"); Preconditions.checkArgument(StringUtils.isNotBlank(ssp.getSystem()), "System should be defined"); Preconditions.checkArgument(StringUtils.isNotBlank(ssp.getStream()), "Stream should be defined"); Preconditions.checkArgument(ssp.getPartition() != null, "Partition should be defined"); String storeKey = ssp.getSystem() + "." + ssp.getStream() + "." + String.valueOf(ssp.getPartition().getPartitionId()); if (taskName != null) { storeKey += "." + taskName.getTaskName(); } return storeKey; }
Source:
<code>protected final void startZoomThread(long startTime, long endTime) { try (FlowScopeLog log = new FlowScopeLogBuilder(LOGGER, Level.FINE, "TimeGraphView:ZoomThreadCreated").setCategory(getViewId()).build()) { long clampedStartTime = (fStartTime == Long.MAX_VALUE ? startTime : Math.min(Math.max(startTime, fStartTime), fEndTime)); long clampedEndTime = (fEndTime == Long.MIN_VALUE ? endTime : Math.max(Math.min(endTime, fEndTime), fStartTime)); fDirty.incrementAndGet(); boolean restart = false; ZoomThread zoomThread = fZoomThread; if (zoomThread != null) { zoomThread.cancel(); if (zoomThread.fZoomStartTime == clampedStartTime && zoomThread.fZoomEndTime == clampedEndTime) { restart = true; } } <START> long resolution = Long.max(1, (clampedEndTime - clampedStartTime) / getTimeGraphViewer().getTimeSpace()); <END> zoomThread = createZoomThread(clampedStartTime, clampedEndTime, resolution, restart); fZoomThread = zoomThread; if (zoomThread != null) { zoomThread.setScopeId(log.getId()); synchronized (fZoomThreadResultLock) { zoomThread.start(); fDirty.incrementAndGet(); } } } finally { if (fDirty.decrementAndGet() < 0) { Activator.getDefault().logError(DIRTY_UNDERFLOW_ERROR, new Throwable()); } } }</code><technical_language>java.lang.ArithmeticException: / zero For example occurs view is minimized</technical_language>

Target:
protected final void startZoomThread(long startTime, long endTime) { try (FlowScopeLog log = new FlowScopeLogBuilder(LOGGER, Level.FINE, "TimeGraphView:ZoomThreadCreated").setCategory(getViewId()).build()) { long clampedStartTime = (fStartTime == Long.MAX_VALUE ? startTime : Math.min(Math.max(startTime, fStartTime), fEndTime)); long clampedEndTime = (fEndTime == Long.MIN_VALUE ? endTime : Math.max(Math.min(endTime, fEndTime), fStartTime)); fDirty.incrementAndGet(); boolean restart = false; ZoomThread zoomThread = fZoomThread; if (zoomThread != null) { zoomThread.cancel(); if (zoomThread.fZoomStartTime == clampedStartTime && zoomThread.fZoomEndTime == clampedEndTime) { restart = true; } } int timeSpace = getTimeGraphViewer().getTimeSpace(); if (timeSpace > 0) { long resolution = Long.max(1, (clampedEndTime - clampedStartTime) / timeSpace); zoomThread = createZoomThread(clampedStartTime, clampedEndTime, resolution, restart); } else { zoomThread = null; } fZoomThread = zoomThread; if (zoomThread != null) { zoomThread.setScopeId(log.getId()); synchronized (fZoomThreadResultLock) { zoomThread.start(); fDirty.incrementAndGet(); } } } finally { if (fDirty.decrementAndGet() < 0) { Activator.getDefault().logError(DIRTY_UNDERFLOW_ERROR, new Throwable()); } } }
Source:
<code>public void apply(DirCacheEntry ent) { ObjectInserter inserter = repo.newObjectInserter(); if (ent.getFileMode() != FileMode.REGULAR_FILE) ent.setFileMode(FileMode.REGULAR_FILE); ent.setLastModified(System.currentTimeMillis()); try { Attributes attr = LfsFactory.getAttributesForPath(repo, ent.getPathString()); try (LfsInputStream lfs = LfsFactory.getInstance() <START> .applyCleanFilter(repo, <END> new ByteArrayInputStream(content.array(), 0, content.limit()), content.limit(), attr.get(Constants.ATTR_MERGE))) { ent.setLength(lfs.getLength()); ent.setObjectId(inserter.insert(Constants.OBJ_BLOB, lfs.getLength(), lfs)); inserter.flush(); } } catch (IOException ex) { throw new RuntimeException(ex); } }</code><technical_language>this interact clean filter CR-LF translations applied in setIndexEntryContents() above</technical_language>

Target:
public void apply(DirCacheEntry ent) { ObjectInserter inserter = repo.newObjectInserter(); if (ent.getFileMode() != FileMode.REGULAR_FILE) ent.setFileMode(FileMode.REGULAR_FILE); ent.setLength(content.limit()); ent.setLastModified(System.currentTimeMillis()); try { ByteArrayInputStream in = new ByteArrayInputStream( content.array(), 0, content.limit()); ent.setObjectId( inserter.insert(Constants.OBJ_BLOB, content.limit(), in)); inserter.flush(); } catch (IOException ex) { throw new RuntimeException(ex); } }
Source:
<code>public List<TmfAnalysisOutputElement> getAvailableOutputs() { List<TmfAnalysisOutputElement> list = new ArrayList<TmfAnalysisOutputElement>(); IAnalysisModuleHelper helper = TmfAnalysisManager.getAnalysisModule(fAnalysisId); if (helper == null) { return list; } IPath path = getProject().getTracesFolder().getPath(); if (fResource instanceof IFolder) { path = ((IFolder) fResource).getFullPath(); } ITmfProjectModelElement parent = getParent(); if (parent instanceof TmfTraceElement) { ITmfTrace trace = ((TmfTraceElement) parent).getTrace(); if (trace != null) { IAnalysisModule module = trace.getAnalysisModule(fAnalysisId); <START> for (IAnalysisOutput output : module.getOutputs()) { <END> if (fResource instanceof IFolder) { IFolder newresource = ResourcesPlugin.getWorkspace().getRoot().getFolder(path.append(output.getName())); TmfAnalysisOutputElement out = new TmfAnalysisOutputElement(output.getName(), newresource, this, output); list.add(out); } } } } return list; }</code><technical_language>If change trace type of a trace is opened, get a NullPointerException (module == null) called refreshTraceType / refreshAnalysis trace closed SelectTraceTypeHandler</technical_language>

Target:
public List<TmfAnalysisOutputElement> getAvailableOutputs() { List<TmfAnalysisOutputElement> list = new ArrayList<TmfAnalysisOutputElement>(); IAnalysisModuleHelper helper = TmfAnalysisManager.getAnalysisModule(fAnalysisId); if (helper == null) { return list; } IPath path = getProject().getTracesFolder().getPath(); if (fResource instanceof IFolder) { path = ((IFolder) fResource).getFullPath(); } ITmfProjectModelElement parent = getParent(); if (parent instanceof TmfTraceElement) { ITmfTrace trace = ((TmfTraceElement) parent).getTrace(); if (trace == null) { return list; } IAnalysisModule module = trace.getAnalysisModule(fAnalysisId); if (module == null) { return list; } for (IAnalysisOutput output : module.getOutputs()) { if (fResource instanceof IFolder) { IFolder newresource = ResourcesPlugin.getWorkspace().getRoot().getFolder(path.append(output.getName())); TmfAnalysisOutputElement out = new TmfAnalysisOutputElement(output.getName(), newresource, this, output); list.add(out); } } } return list; }
Source:
<code>public boolean configure(StaplerRequest req, JSONObject json) throws hudson.model.Descriptor.FormException { Jenkins j = Jenkins.getInstance(); j.checkPermission(Jenkins.ADMINISTER); j.setDisableRememberMe(json.optBoolean("disableRememberMe", false)); <START> j.setSecurityRealm(SecurityRealm.all().newInstanceFromRadioList(json, "realm")); <END> j.setAuthorizationStrategy(AuthorizationStrategy.all().newInstanceFromRadioList(json, "authorization")); if (json.has("markupFormatter")) { j.setMarkupFormatter(req.bindJSON(MarkupFormatter.class, json.getJSONObject("markupFormatter"))); } else { j.setMarkupFormatter(null); } if (!isSlaveAgentPortEnforced()) { try { j.setSlaveAgentPort(new ServerTcpPort(json.getJSONObject("slaveAgentPort")).getPort()); } catch (IOException e) { throw new hudson.model.Descriptor.FormException(e, "slaveAgentPortType"); } } Set<String> agentProtocols = new TreeSet<>(); if (json.has("agentProtocol")) { Object protocols = json.get("agentProtocol"); if (protocols instanceof JSONArray) { for (int i = 0; i < ((JSONArray) protocols).size(); i++) { agentProtocols.add(((JSONArray) protocols).getString(i)); } } else { agentProtocols.add(protocols.toString()); } } j.setAgentProtocols(agentProtocols); boolean result = true; for(Descriptor<?> d : Functions.getSortedDescriptorsForGlobalConfig(FILTER)){ result &= configureDescriptor(req,json,d); } return result; }</code><technical_language>easy lock oneself out choosing security realm, authorization strategy. check security realm is set realm, if so, call disableSecurity()? Form validation dependent fields nice, if (don't remember right now)</technical_language>

Target:
public boolean configure(StaplerRequest req, JSONObject json) throws hudson.model.Descriptor.FormException { Jenkins j = Jenkins.get(); j.checkPermission(Jenkins.ADMINISTER); j.setDisableRememberMe(json.optBoolean("disableRememberMe", false)); j.setSecurityRealm(SecurityRealm.all().newInstanceFromRadioList(json, "realm")); j.setAuthorizationStrategy(AuthorizationStrategy.all().newInstanceFromRadioList(json, "authorization")); if (json.has("markupFormatter")) { j.setMarkupFormatter(req.bindJSON(MarkupFormatter.class, json.getJSONObject("markupFormatter"))); } else { j.setMarkupFormatter(null); } if (!isSlaveAgentPortEnforced()) { try { j.setSlaveAgentPort(new ServerTcpPort(json.getJSONObject("slaveAgentPort")).getPort()); } catch (IOException e) { throw new hudson.model.Descriptor.FormException(e, "slaveAgentPortType"); } } Set<String> agentProtocols = new TreeSet<>(); if (json.has("agentProtocol")) { Object protocols = json.get("agentProtocol"); if (protocols instanceof JSONArray) { for (int i = 0; i < ((JSONArray) protocols).size(); i++) { agentProtocols.add(((JSONArray) protocols).getString(i)); } } else { agentProtocols.add(protocols.toString()); } } j.setAgentProtocols(agentProtocols); boolean result = true; for(Descriptor<?> d : Functions.getSortedDescriptorsForGlobalConfig(FILTER)){ result &= configureDescriptor(req,json,d); } return result; }
Source:
<code>public Collection<KeyValueAnnotation> requestAnnotations() { KeyValueAnnotation uriAnnotation = KeyValueAnnotation.create( <START> "http.uri", serverRequest.getUri().toString()); <END> return Arrays.asList(uriAnnotation); }</code><technical_language>"http.url" is current name, query parameters present (which I this is..)</technical_language>

Target:
public Collection<KeyValueAnnotation> requestAnnotations() { KeyValueAnnotation uriAnnotation = KeyValueAnnotation.create( TraceKeys.HTTP_URL, serverRequest.getUri().toString()); return Arrays.asList(uriAnnotation); }
Source:
<code>public boolean onTouch(View v, MotionEvent event) { if (scrollView != null) { fixScrollEventY(event); scrollView.onTouchEvent(event); } <START> return false; <END> }</code><technical_language>@manuelplazaspalacio I a doubt here. This Listener is in main affects rest of variants. returning false rest of variants stop working? feature concerned is previous/next swipe in Laos, for example. I guess need create a Strategy here, moving common behavior a common method separating difference a per-variant answer</technical_language>

Target:
public boolean onTouch(View v, MotionEvent event) { return mSwipeTouchListenerStrategy.onTouch(scrollView, gestureDetector, event); }
Source:
<code>protected FileHeader getNewHeader( FileHeader oldHeader ) { FileHeader result = new FileHeader(); FileHeader newHeader = getFileHeader(); FileHeaderTransformer transformer = getTransformer(); boolean modified = false; result.setDescription( oldHeader.getDescription() ); result.setCopyright( new Copyright( oldHeader.getCopyright() ) ); result.setLicense( oldHeader.getLicense() ); if ( isUpdateDescription() && !transformer.isDescriptionEquals( oldHeader, newHeader ) ) { LOG.debug( "description has changed from to [{}]", oldHeader.getDescription(), newHeader.getDescription() ); modified = true; result.setDescription( newHeader.getDescription() ); } if ( isUpdateCopyright() && !transformer.isCopyrightEquals( oldHeader, newHeader ) ) { LOG.debug( "copyright has changed from to []", <START> oldHeader.getCopyright(), <END> newHeader.getCopyright() ); modified = true; result.setCopyright( new Copyright( newHeader.getCopyright() ) ); } if ( isUpdateLicense() && !transformer.isLicenseEquals( oldHeader, newHeader ) ) { LOG.debug( "license has changed from to [{}]", oldHeader.getLicense(), newHeader.getLicense() ); modified = true; result.setLicense( newHeader.getLicense() ); } if ( !modified ) { result = null; } return result; }</code><technical_language>Missing []</technical_language>

Target:
protected FileHeader getNewHeader( FileHeader oldHeader ) { FileHeader result = new FileHeader(); FileHeader newHeader = getFileHeader(); FileHeaderTransformer transformer = getTransformer(); boolean modified = false; result.setDescription( oldHeader.getDescription() ); result.setCopyright( new Copyright( oldHeader.getCopyright() ) ); result.setLicense( oldHeader.getLicense() ); if ( isUpdateDescription() && !transformer.isDescriptionEquals( oldHeader, newHeader ) ) { LOG.debug( "description has changed from to [{}]", oldHeader.getDescription(), newHeader.getDescription() ); modified = true; result.setDescription( newHeader.getDescription() ); } if ( isUpdateCopyright() && !transformer.isCopyrightEquals( oldHeader, newHeader ) ) { LOG.debug( "copyright has changed from to [{}]", oldHeader.getCopyright(), newHeader.getCopyright() ); modified = true; result.setCopyright( new Copyright( newHeader.getCopyright() ) ); } if ( isUpdateLicense() && !transformer.isLicenseEquals( oldHeader, newHeader ) ) { LOG.debug( "license has changed from to [{}]", oldHeader.getLicense(), newHeader.getLicense() ); modified = true; result.setLicense( newHeader.getLicense() ); } if ( !modified ) { result = null; } return result; }
Source:
<code>public static AnalyzedTokenInfo map(com.azure.search.documents.implementation.models.AnalyzedTokenInfo obj) { if (obj == null) { return null; } AnalyzedTokenInfo analyzedTokenInfo = new AnalyzedTokenInfo(); <START> int _endOffset = obj.getEndOffset(); <END> PrivateFieldAccessHelper.set(analyzedTokenInfo, "endOffset", _endOffset); int _startOffset = obj.getStartOffset(); PrivateFieldAccessHelper.set(analyzedTokenInfo, "startOffset", _startOffset); int _position = obj.getPosition(); PrivateFieldAccessHelper.set(analyzedTokenInfo, "position", _position); String _token = obj.getToken(); PrivateFieldAccessHelper.set(analyzedTokenInfo, "token", _token); return analyzedTokenInfo; }</code><technical_language>nit: remove underscores local variable names</technical_language>

Target:
public static AnalyzedTokenInfo map(com.azure.search.documents.implementation.models.AnalyzedTokenInfo obj) { if (obj == null) { return null; } AnalyzedTokenInfo analyzedTokenInfo = new AnalyzedTokenInfo(); int endOffset = obj.getEndOffset(); PrivateFieldAccessHelper.set(analyzedTokenInfo, "endOffset", endOffset); int startOffset = obj.getStartOffset(); PrivateFieldAccessHelper.set(analyzedTokenInfo, "startOffset", startOffset); int position = obj.getPosition(); PrivateFieldAccessHelper.set(analyzedTokenInfo, "position", position); String token = obj.getToken(); PrivateFieldAccessHelper.set(analyzedTokenInfo, "token", token); return analyzedTokenInfo; }
Source:
<code><START> default <U> Validation<E, U> ap(Validation<E, ? extends Function<? super T, ? extends U>> validation) { <END> Objects.requireNonNull(validation, "validation is null"); if (isValid()) { if (validation.isValid()) { final Function<? super T, ? extends U> f = validation.get(); final U u = f.apply(this.get()); return valid(u); } else { final Seq<? extends E> errors = validation.getErrors(); return invalid(errors); } } else { if (validation.isValid()) { final Seq<? extends E> errors = this.getErrors(); return invalid(errors); } else { final Seq<? extends E> errors1 = validation.getErrors(); final Seq<? extends E> errors2 = this.getErrors(); Seq<E> specificErrors = List.ofAll(errors1); Seq<E> finalErrors = specificErrors.appendAll(errors2); return invalid(finalErrors); } } }</code><technical_language>do needs ap(Validation<? super E, ...> validation) in general case</technical_language>

Target:
default <U> Validation<E, U> ap(Validation<E, ? extends Function<? super T, ? extends U>> validation) { Objects.requireNonNull(validation, "validation is null"); if (isValid()) { if (validation.isValid()) { final Function<? super T, ? extends U> f = validation.get(); final U u = f.apply(this.get()); return valid(u); } else { final Seq<E> errors = validation.getErrors(); return invalid(errors); } } else { if (validation.isValid()) { final Seq<E> errors = this.getErrors(); return invalid(errors); } else { Seq<E> specificErrors = List.ofAll(validation.getErrors()); Seq<E> finalErrors = specificErrors.appendAll(this.getErrors()); return invalid(finalErrors); } } }
Source:
<code>private File createWindowsGitSSH(File key, String user) throws IOException { File ssh = createTempFile("ssh", ".bat"); File sshexe = getSSHExecutable(); <START> <END> try (PrintWriter w = new PrintWriter(ssh, this.encoding)) { w.println("@echo off"); w.println("\"" + sshexe.getAbsolutePath() + "\" -i \"" + key.getAbsolutePath() +"\" -l \"" + user + "\" -o StrictHostKeyChecking=no %* "); } ssh.setExecutable(true, true); return ssh; }</code><technical_language>trailing white space lines</technical_language>

Target:
private File createWindowsGitSSH(File key, String user) throws IOException { File ssh = createTempFile("ssh", ".bat"); File sshexe = getSSHExecutable(); try (PrintWriter w = new PrintWriter(ssh, encoding)) { w.println("@echo off"); w.println("\"" + sshexe.getAbsolutePath() + "\" -i \"" + key.getAbsolutePath() +"\" -l \"" + user + "\" -o StrictHostKeyChecking=no %* "); } ssh.setExecutable(true, true); return ssh; }
Source:
<code>public int hashCode() { <START> final int prime = 31; int result = 1; result = prime * result + ((m_nodeId == null) ? 0 : m_nodeId.hashCode()); result = prime * result + ((getNamespace() == null) ? 0 : getNamespace().hashCode()); return result; <END> }</code><technical_language>If touch this, please Objects.hash(m_nodeId, m_namespace) instead</technical_language>

Target:
public int hashCode() { return Objects.hash(m_nodeId, m_namespace); }
Source:
<code>private boolean needPack(Collection<ReceiveCommand> commands) { for <START> (final ReceiveCommand <END> cmd : commands) { if (cmd.getType() != ReceiveCommand.Type.DELETE) return true; } return false; }</code><technical_language>I 'final' in this place anymore</technical_language>

Target:
private boolean needPack(Collection<ReceiveCommand> commands) { for (ReceiveCommand cmd : commands) { if (cmd.getType() != ReceiveCommand.Type.DELETE) return true; } return false; }
Source:
<code>public void transform(StructuredRecord in, Emitter<StructuredRecord> emitter) throws Exception { StructuredRecord.Builder builder = StructuredRecord.builder(outSchema); Schema inSchema = in.getSchema(); List<Field> inFields = inSchema.getFields(); for (Field field : inFields) { String name = field.getName(); if (!outSchemaMap.containsKey(name)) { continue; } Schema.Type outFieldType = outSchemaMap.get(name); if (!deCompMap.containsKey(name) || deCompMap.get(name) == DecompressorType.NONE) { builder.set(name, in.get(name)); } else { byte[] obj = new byte[0]; if (field.getSchema().getType() == Schema.Type.BYTES) { obj = in.get(name); } else { <START> LOG.error("Input field '" + name + "' should be of type BYTES to decompress. It's currently of type" + <END> "'" + field.getSchema().getType().toString()); break; } byte[] outValue = new byte[0]; DecompressorType type = deCompMap.get(name); if (type == DecompressorType.SNAPPY) { outValue = Snappy.uncompress(obj); } else if (type == DecompressorType.ZIP) { outValue = unzip(obj); } else if (type == DecompressorType.GZIP) { outValue = ungzip(obj); } if (outValue != null) { if (outFieldType == Schema.Type.BYTES) { builder.set(name, outValue); } else if (outFieldType == Schema.Type.STRING) { builder.set(name, new String(outValue, "UTF-8")); } } } } emitter.emit(builder.build()); }</code><technical_language>This statement needs some spaces closing quote (top line length is 116): LOG.error("Input field '" + name + "' of type BYTES decompress. is currently of type " + "'" + field.getSchema().getType().toString()) + "'";</technical_language>

Target:
public void transform(StructuredRecord in, Emitter<StructuredRecord> emitter) throws Exception { StructuredRecord.Builder builder = StructuredRecord.builder(outSchema); Schema inSchema = in.getSchema(); List<Field> inFields = inSchema.getFields(); for (Field field : inFields) { String name = field.getName(); if (!outSchemaMap.containsKey(name)) { continue; } Schema.Type outFieldType = outSchemaMap.get(name); if (!deCompMap.containsKey(name) || deCompMap.get(name) == DecompressorType.NONE) { builder.set(name, in.get(name)); } else { byte[] obj = new byte[0]; if (field.getSchema().getType() == Schema.Type.BYTES) { obj = in.get(name); } else { LOG.error("Input field '" + name + "' should be of type BYTES to decompress. It is currently of type " + "'" + field.getSchema().getType().toString() + "'"); break; } byte[] outValue = new byte[0]; DecompressorType type = deCompMap.get(name); if (type == DecompressorType.SNAPPY) { outValue = Snappy.uncompress(obj); } else if (type == DecompressorType.ZIP) { outValue = unzip(obj); } else if (type == DecompressorType.GZIP) { outValue = ungzip(obj); } if (outValue != null) { if (outFieldType == Schema.Type.BYTES) { builder.set(name, outValue); } else if (outFieldType == Schema.Type.STRING) { builder.set(name, new String(outValue, "UTF-8")); } } } } emitter.emit(builder.build()); }
Source:
<code>public void testRunStreamTask() throws Exception { final Map<String, String> config = new HashMap<>(); config.put(ApplicationConfig.APP_PROCESSOR_ID_GENERATOR_CLASS, UUIDGenerator.class.getName()); config.put(TaskConfig.TASK_CLASS(), "org.apache.samza.test.processor.IdentityStreamTask"); LocalApplicationRunner runner = new LocalApplicationRunner(new MapConfig(config)); StreamProcessor sp = mock(StreamProcessor.class); ArgumentCaptor<StreamProcessorLifecycleListener> captor = ArgumentCaptor.forClass(StreamProcessorLifecycleListener.class); doAnswer(i -> { StreamProcessorLifecycleListener listener = captor.getValue(); listener.onStart(); listener.onShutdown(); return null; }).when(sp).start(); LocalApplicationRunner spy = spy(runner); doReturn(sp).when(spy).createStreamProcessor(anyObject(), anyObject(), captor.capture()); <START> spy.run(null); <END> assertEquals(ApplicationStatus.SuccessfulFinish, spy.status(null)); }</code><technical_language>testing spy.runTask here</technical_language>

Target:
public void testRunStreamTask() throws Exception { final Map<String, String> config = new HashMap<>(); config.put(ApplicationConfig.APP_PROCESSOR_ID_GENERATOR_CLASS, UUIDGenerator.class.getName()); config.put(TaskConfig.TASK_CLASS(), "org.apache.samza.test.processor.IdentityStreamTask"); LocalApplicationRunner runner = new LocalApplicationRunner(new MapConfig(config)); StreamProcessor sp = mock(StreamProcessor.class); ArgumentCaptor<StreamProcessorLifecycleListener> captor = ArgumentCaptor.forClass(StreamProcessorLifecycleListener.class); doAnswer(i -> { StreamProcessorLifecycleListener listener = captor.getValue(); listener.onStart(); listener.onShutdown(); return null; }).when(sp).start(); LocalApplicationRunner spy = spy(runner); doReturn(sp).when(spy).createStreamProcessor(anyObject(), anyObject(), captor.capture()); spy.runTask(); assertEquals(ApplicationStatus.SuccessfulFinish, spy.status(null)); }
Source:
<code>public void lowerBound() { Map<String, TrackingToken> newTokens = new HashMap<>(); newTokens.put("token1", new GlobalSequenceTrackingToken(1)); newTokens.put("token2", new GlobalSequenceTrackingToken(2)); Map<String, TrackingToken> expectedTokens = new HashMap<>(); expectedTokens.put("token1", new GlobalSequenceTrackingToken(0)); expectedTokens.put("token2", new GlobalSequenceTrackingToken(0)); <START> ; <END> MultiSourceTrackingToken newMultiToken = (MultiSourceTrackingToken) testSubject .lowerBound(new MultiSourceTrackingToken(newTokens)); assertEquals(new MultiSourceTrackingToken(expectedTokens), newMultiToken); }</code><technical_language>Nit: this ; necessary I think</technical_language>

Target:
public void lowerBound() { Map<String, TrackingToken> newTokens = new HashMap<>(); newTokens.put("token1", new GlobalSequenceTrackingToken(1)); newTokens.put("token2", new GlobalSequenceTrackingToken(2)); Map<String, TrackingToken> expectedTokens = new HashMap<>(); expectedTokens.put("token1", new GlobalSequenceTrackingToken(0)); expectedTokens.put("token2", new GlobalSequenceTrackingToken(0)); MultiSourceTrackingToken newMultiToken = (MultiSourceTrackingToken) testSubject .lowerBound(new MultiSourceTrackingToken(newTokens)); assertEquals(new MultiSourceTrackingToken(expectedTokens), newMultiToken); }
Source:
<code>public GlusterServer mapRow(ResultSet rs, int rowNum) throws SQLException { GlusterServer glusterServer = new GlusterServer(); glusterServer.setId(getGuidDefaultEmpty(rs, "server_id")); glusterServer.setGlusterServerUuid(getGuidDefaultEmpty(rs, "gluster_server_uuid")); String knownAddresses = rs.getString("known_addresses"); <START> if (!StringUtils.isBlank(knownAddresses)) { <END> String[] knownAddressArray = knownAddresses.split(","); ArrayList<String> knownAddressList = new ArrayList<>(); for (String addr : knownAddressArray) { knownAddressList.add(addr); } glusterServer.setKnownAddresses(knownAddressList); } return glusterServer; }</code><technical_language>StringUtils.isNotBlank()</technical_language>

Target:
public GlusterServer mapRow(ResultSet rs, int rowNum) throws SQLException { GlusterServer glusterServer = new GlusterServer(); glusterServer.setId(getGuidDefaultEmpty(rs, "server_id")); glusterServer.setGlusterServerUuid(getGuidDefaultEmpty(rs, "gluster_server_uuid")); String knownAddresses = rs.getString("known_addresses"); if (StringUtils.isNotBlank(knownAddresses)) { String[] knownAddressArray = knownAddresses.split(","); ArrayList<String> knownAddressList = new ArrayList<>(); for (String addr : knownAddressArray) { knownAddressList.add(addr); } glusterServer.setKnownAddresses(knownAddressList); } return glusterServer; }
Source:
<code>public Scan getScan() { <START> return scan; <END> }</code><technical_language>Changes returned scan object effective visible caller. Clone return</technical_language>

Target:
public Scan getScan() { try { return new Scan(scan); } catch(IOException e) { throw new AssertionError("Scan should not throw IOException anymore", e); } }
Source:
<code>public void testAdd() throws OseeCoreException { <START> MockJoinAccessor joinAccessor = new MockJoinAccessor(); <END> TransactionJoinQuery join = new TransactionJoinQuery(joinAccessor, -1L, 999); Assert.assertEquals(0, join.size()); Assert.assertEquals(true, join.isEmpty()); join.add(1234L, 5678); Assert.assertEquals(1, join.size()); Assert.assertEquals(false, join.isEmpty()); join.add(1234L, 5678); Assert.assertEquals(1, join.size()); Assert.assertEquals(false, join.wasStored()); join.store(); Assert.assertEquals(true, join.wasStored()); Assert.assertNull(joinAccessor.getConnection()); Assert.assertEquals(999, joinAccessor.getQueryId()); List<Object[]> data = joinAccessor.getDataList(); Assert.assertEquals(1, data.size()); Object[] entry = data.get(0); Assert.assertEquals(3, entry.length); Assert.assertEquals(999, entry[0]); Assert.assertEquals(1234L, entry[1]); Assert.assertEquals(5678, entry[2]); }</code><technical_language>1L constant</technical_language>

Target:
public void testAdd() throws OseeCoreException { MockJoinAccessor joinAccessor = new MockJoinAccessor(); TransactionJoinQuery join = new TransactionJoinQuery(joinAccessor, -1L, 999); Assert.assertEquals(0, join.size()); Assert.assertEquals(true, join.isEmpty()); join.add(1234L, 5678); Assert.assertEquals(1, join.size()); Assert.assertEquals(false, join.isEmpty()); join.add(1234L, 5678); Assert.assertEquals(1, join.size()); Assert.assertEquals(false, join.wasStored()); join.store(); Assert.assertEquals(true, join.wasStored()); Assert.assertNull(joinAccessor.getConnection()); Assert.assertEquals(999, joinAccessor.getQueryId()); List<Object[]> data = joinAccessor.getDataList(); Assert.assertEquals(1, data.size()); Object[] entry = data.get(0); Assert.assertEquals(4, entry.length); Assert.assertEquals(999, entry[0]); Assert.assertEquals(1234L, entry[1]); Assert.assertEquals(5678, entry[2]); Assert.assertEquals(SQL3DataType.BIGINT, entry[3]); }
Source:
<code>public void testFailJoiningNodeDifferentSchemasOnDynamicIndexes() throws Exception { prepareTestGrid(); IgniteEx ig = startGrid(1); ig.cluster().state(ClusterState.ACTIVE); createTable(ig.cache(POI_CACHE_NAME), WRONG_SCHEMA_NAME); try { startGrid(0); fail("Node should start with fail"); } catch (Exception e) { <START> assertThat(X.cause(e, IgniteSpiException.class).getMessage(), containsString("Failed to join node to the active cluster")); <END> } }</code><technical_language>Typo: line long. assert error message contains correct error description schema 'DOMAIN' joining node differs 'DOMAIN_1'</technical_language>

Target:
public void testFailJoiningNodeDifferentSchemasOnDynamicIndexes() throws Exception { prepareTestGrid(); IgniteEx ig = startGrid(1); ig.cluster().state(ClusterState.ACTIVE); createTable(ig.cache(POI_CACHE_NAME), WRONG_SCHEMA_NAME, CacheConfiguration.DFLT_QUERY_PARALLELISM); try { startGrid(0); fail("Node should start with fail"); } catch (Exception e) { assertThat(X.cause(e, IgniteSpiException.class).getMessage(), containsString("schema 'DOMAIN' from joining node differs to 'DOMAIN_1'")); } }