auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
<code>private void resetIcons() { if (!firstRunThrough) { animationHasStarted = false; <START> style.removeLayer("symbol-layer-id"); <END> initLayerIcon(style); initAnimation(currentSelectedTimeInterpolator); } }</code><technical_language>put in a constant</technical_language>

Target:
private void resetIcons() { if (!firstRunThrough) { animationHasStarted = false; style.removeLayer(SYMBOL_LAYER_ID); initAnimation(currentSelectedTimeInterpolator); } }
Source:
<code>private void addHitsFromQuery(List<BibEntry> entryList, String queryURL) throws IOException, FetcherException { LOGGER.debug("Downloading from {}", queryURL); String content = new URLDownload(queryURL).asString(); if (needsCaptcha(content)) { throw new FetcherException("Fetching from Google Scholar failed: Captacha hit at " + queryURL + ".", Localization.lang("This might be caused by reaching the traffic limitation of Google Scholar (see 'Help' for details)."), null); } Matcher matcher = LINK_TO_SUBPAGE_PATTERN.matcher(content); if (!matcher.find()) { LOGGER.debug("No data-clk-atid found in html {}", content); return; } String infoPageUrl = BASIC_SEARCH_URL + "q=info:" + matcher.group(1) + ":scholar.google.com/&output=cite&scirp=0&hl=en"; LOGGER.debug("Using infoPageUrl {}", infoPageUrl); <START> URLDownload infoPageUrlDownload = new URLDownload(infoPageUrl); <END> LOGGER.debug("Downloading from {}", infoPageUrl); String infoPageContent = infoPageUrlDownload.asString(); matcher = LINK_TO_BIB_PATTERN.matcher(infoPageContent); boolean found = false; while (matcher.find()) { found = true; String citationsPageURL = matcher.group().replace("&amp;", "&"); LOGGER.debug("Using citationsPageURL {}", citationsPageURL); BibEntry newEntry = downloadEntry(citationsPageURL); entryList.add(newEntry); } if (!found) { LOGGER.debug("Did not found pattern in html {}", infoPageContent); } }</code><technical_language>If yu want reuse connection unirest jsoup</technical_language>

Target:
private void addHitsFromQuery(List<BibEntry> entryList, String queryURL) throws IOException, FetcherException { LOGGER.debug("Downloading from {}", queryURL); URLDownload urlDownload = new URLDownload(queryURL); obtainAndModifyCookie(urlDownload); String content = urlDownload.asString(); if (needsCaptcha(content)) { throw new FetcherException("Fetching from Google Scholar failed: Captcha hit at " + queryURL + ".", Localization.lang("This might be caused by reaching the traffic limitation of Google Scholar (see 'Help' for details)."), null); } extractEntriesFromContent(content, entryList); }
Source:
<code>public boolean shouldSwitch(ITrackSwitch switchTrack, EntityMinecart cart) { RoutingLogic logic = getLogic(); <START> if(logic != null) <END> return logic.matches(this, cart); else return false; }</code><technical_language>missing logic.isValid() check</technical_language>

Target:
public boolean shouldSwitch(ITrackSwitch switchTrack, EntityMinecart cart) { RoutingLogic logic = getLogic(); if(logic != null && logic.isValid()) return logic.matches(this, cart); else return false; }
Source:
<code>public boolean appliesTo(final Object selection) { boolean appliedConstraint = false; if (selection instanceof EStructuralFeature && UMLPackage.eINSTANCE.getMultiplicityElement_LowerValue().equals(selection)) { appliedConstraint = true; } else if (selection instanceof ValueSpecification) { final ValueSpecification valueSpecification = (ValueSpecification) selection; <START> if (null != valueSpecification.eContainer() && valueSpecification.eContainer() instanceof MultiplicityElement) { <END> final EObject parent = valueSpecification.eContainer(); final Object lowerValue = parent.eGet(UMLPackage.eINSTANCE.getMultiplicityElement_LowerValue()); appliedConstraint = valueSpecification.equals(lowerValue); } } return appliedConstraint; }</code><technical_language>verification, if variable is null, is "instanceof" statement this</technical_language>

Target:
public boolean appliesTo(final Object selection) { boolean appliedConstraint = false; if (selection instanceof EStructuralFeature && UMLPackage.eINSTANCE.getMultiplicityElement_LowerValue().equals(selection)) { appliedConstraint = true; } else if (selection instanceof ValueSpecification) { final ValueSpecification valueSpecification = (ValueSpecification) selection; if (valueSpecification.eContainer() instanceof MultiplicityElement) { final EObject parent = valueSpecification.eContainer(); final Object lowerValue = parent.eGet(UMLPackage.eINSTANCE.getMultiplicityElement_LowerValue()); appliedConstraint = valueSpecification.equals(lowerValue); } } return appliedConstraint; }
Source:
<code><START> public void stepSetRemoteExecutable(final RequestMonitor rm) { <END> if (fBackend.getSessionType() == SessionType.REMOTE && !fBackend.getIsAttachSession()) { if (!CDebugUtils.getAttribute( fAttributes, IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_REMOTE_MULTI, IGDBLaunchConfigurationConstants.DEBUGGER_REMOTE_MULTI_DEFAULT)) { rm.done(); return; } String remoteBinary = CDebugUtils.getAttribute( fAttributes, IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_REMOTE_BINARY, ""); if (remoteBinary.length() == 0) { rm.setStatus(new Status(IStatus.ERROR, GdbPlugin.PLUGIN_ID, "Binary on host is not specified")); rm.done(); return; } fGdbControl.queueCommand( fCommandFactory.createMIGDBSet( getContainerContext(), new String[] { "remote", "exec-file", remoteBinary, }), new ImmediateDataRequestMonitor<MIInfo>(rm)); } else { rm.done(); } }</code><technical_language>If support 'extended-remote' for remote-non-attach launch, need move this base class able start process. In fact, I putting in base class sense, applies older gdb's</technical_language>

Target:
public void stepSetRemoteExecutable(final RequestMonitor rm) { if (fBackend.getSessionType() == SessionType.REMOTE && fBackend.getIsAttachSession()) { String remoteBinary = CDebugUtils.getAttribute( fAttributes, IGDBLaunchConfigurationConstants.ATTR_DEBUGGER_REMOTE_BINARY, ""); if (remoteBinary.length() == 0) { rm.setStatus(new Status(IStatus.ERROR, GdbPlugin.PLUGIN_ID, "Binary on host is not specified")); rm.done(); return; } fGdbControl.queueCommand( fCommandFactory.createMIGDBSet( getContainerContext(), new String[] { "remote", "exec-file", remoteBinary, }), new ImmediateDataRequestMonitor<MIInfo>(rm)); } else { rm.done(); } }
Source:
<code>public void onException(SQLException e, OperationType operationType) { <START> if (e instanceof SQLTransientConnectionException || e instanceof BatchUpdateException) { <END> if (operationType == OperationType.Write) { metrics.writeFailureCount.inc(); } else if (operationType == operationType.Read) { metrics.readFailureCount.inc(); } else if (operationType == operationType.Copy) { metrics.copyFailureCount.inc(); } closeActiveConnection(); } }</code><technical_language>check if batch update exception nested SQLTransientConnectionException</technical_language>

Target:
public void onException(SQLException e, OperationType operationType) { if (e instanceof SQLTransientConnectionException) { if (operationType == OperationType.Write) { metrics.writeFailureCount.inc(); } else if (operationType == OperationType.Read) { metrics.readFailureCount.inc(); } else if (operationType == OperationType.Copy) { metrics.copyFailureCount.inc(); } closeActiveConnection(); } }
Source:
<code>public HostRestartConfirmationModel() { super(); setForceToMaintenance(new EntityModel<>()); getForceToMaintenance().setEntity(false); <START> getForceToMaintenance().setIsAvailable(true); <END> }</code><technical_language>default, need set it</technical_language>

Target:
public HostRestartConfirmationModel() { super(); setForceToMaintenance(new EntityModel<>()); getForceToMaintenance().setEntity(false); }
Source:
<code>public Stream<T> lazyStream() throws IllegalStateException { if (pagerStream == null) { synchronized (this) { if (pagerStream == null) { <START> } <END> currentPage = 0; pagerStream = StreamSupport.stream(new PagerSpliterator<T>(this), false); return (pagerStream); } } throw new IllegalStateException("Stream already issued"); }</code><technical_language>wrong brace position</technical_language>

Target:
public Stream<T> lazyStream() throws IllegalStateException { if (pagerStream == null) { synchronized (this) { if (pagerStream == null) { currentPage = 0; pagerStream = StreamSupport.stream(new PagerSpliterator<T>(this), false); return (pagerStream); } } } throw new IllegalStateException("Stream already issued"); }
Source:
<code>public int hashCode() { return HashUtil.combineHashCodes(super.hashCode(), <START> isAsync.hashCode()); <END> }</code><technical_language>Objects.hashCode</technical_language>

Target:
public int hashCode() { return HashUtil.combineHashCodes(super.hashCode(), Objects.hashCode(isAsync)); }
Source:
<code>public void purgeDeletedSecretWithResponseCodeSnippets() { SecretAsyncClient secretAsyncClient = getAsyncSecretClient(); secretAsyncClient.purgeDeletedSecretWithResponse("deletedSecretName") .subscriberContext(Context.of(key1, value1, key2, value2)) .subscribe(purgeResponse -> <START> System.out.printf("Purge Status response %d \n", purgeResponse.getStatusCode())); <END> END: com.azure.keyvault.secrets.secretclient.purgeDeletedSecretWithResponse#string }</code><technical_language>%n</technical_language>

Target:
public void purgeDeletedSecretWithResponseCodeSnippets() { SecretAsyncClient secretAsyncClient = getAsyncSecretClient(); secretAsyncClient.purgeDeletedSecretWithResponse("deletedSecretName") .subscriberContext(Context.of(key1, value1, key2, value2)) .subscribe(purgeResponse -> System.out.printf("Purge Status response %d %n", purgeResponse.getStatusCode())); END: com.azure.keyvault.secrets.secretclient.purgeDeletedSecretWithResponse#string }
Source:
<code>public void writeTestResultSummariesToFile(FileWriterWithEncoding fWriter) throws IOException, PMException, OperationCanceledException { ObjectMapper mapper = new ObjectMapper(); mapper.setSerializationInclusion(Include.NON_EMPTY); fWriter.append(StringConstants.LEFT_BRACKET); float size = TestResultSummaryPM.countOfTestResultSummaries( m_project, null); long to = (long) Math.ceil(size / PAGE_SIZE); int pos = 0; for (int i = 1; i <= to; i++) { m_ioHandle.checkCancel(m_monitor); List<ITestResultSummaryPO> summaries = TestResultSummaryPM.getTestResultSummaries( m_project, null, i, PAGE_SIZE); <START> <END> List<TestresultSummaryDTO> summaryDTOs = getTestResultSummaryDTOs(summaries); for (int k = 0; k < summaryDTOs.size(); k++) { pos++; TestresultSummaryDTO dto = summaryDTOs.get(k); StringBuffer buffer = new StringBuffer(); buffer.append(mapper.writeValueAsString(dto)); if (!(i == to && k == summaryDTOs.size() - 1)) { buffer.append(StringConstants.COMMA); } fWriter.append(buffer); m_monitor.worked(1); } m_monitor.subTask(Messages.ImportJsonImportResult + pos + StringConstants.SLASH + (int) size); } fWriter.append(StringConstants.RIGHT_BRACKET); fWriter.close(); }</code><technical_language>Please "i" "k" here. speaking names..</technical_language>

Target:
public void writeTestResultSummariesToFile(FileWriterWithEncoding fWriter) throws IOException, PMException, OperationCanceledException { ObjectMapper mapper = new ObjectMapper(); mapper.setSerializationInclusion(Include.NON_EMPTY); fWriter.append(StringConstants.LEFT_BRACKET); float size = TestResultSummaryPM.countOfTestResultSummaries( m_project, null); long lastPage = (long) Math.ceil(size / ImportExportUtil.PAGE_SIZE); int pos = 0; for (int countOfPage = 1; countOfPage <= lastPage; countOfPage++) { ImportExportUtil.checkCancel(m_monitor); List<ITestResultSummaryPO> summaries = TestResultSummaryPM.getTestResultSummaries( m_project, null, countOfPage, ImportExportUtil.PAGE_SIZE); List<TestresultSummaryDTO> summaryDTOs = getTestResultSummaryDTOs(summaries); for (int countOfItemInPage = 0; countOfItemInPage < summaryDTOs.size(); countOfItemInPage++) { pos++; TestresultSummaryDTO dto = summaryDTOs.get(countOfItemInPage); StringBuffer buffer = new StringBuffer(); buffer.append(mapper.writeValueAsString(dto)); if (!(countOfPage == lastPage && countOfItemInPage == summaryDTOs.size() - 1)) { buffer.append(StringConstants.COMMA); } fWriter.append(buffer); m_monitor.worked(1); } m_monitor.subTask(Messages.ImportJsonImportResult + pos + StringConstants.SLASH + (int) size); } fWriter.append(StringConstants.RIGHT_BRACKET); fWriter.close(); }
Source:
<code>public void waitUntilMessagesReceived(Long numberOfMessages) { boolean isRetryInProgress = true; while (isRetryInProgress) { Long count = consumerClient.getReceivedMessageCount(); if (count >= numberOfMessages) { <START> isRetryInProgress = false; <END> } AndesClientUtils.sleepForInterval(1000L); } }</code><technical_language>sense a while(true) loop a break if condition</technical_language>

Target:
public void waitUntilMessagesReceived(Long numberOfMessages) { while (true) { Long count = consumerClient.getReceivedMessageCount(); if (count >= numberOfMessages) { break; } AndesClientUtils.sleepForInterval(1000L); } }
Source:
<code>public List<String> getAffectedCodeSystemsForTeminology(final String terminologyId) { Preconditions.checkNotNull(terminologyId, "terminologyId"); if (!TERMINOLOGY_ID_TO_SHORTNAMES_CACHE.containsKey(terminologyId)) { final List<String> affectedCodeSystems = Lists.newArrayList(); for (final IConfigurationElement terminology : Platform.getExtensionRegistry().getConfigurationElementsFor(TERMINOLOGY_EXTENSION_POINT_ID)) { final String id = terminology.getAttribute(ID_ATTRIBUTE); <START> if (id.equals(terminologyId)) { <END> affectedCodeSystems.addAll( Arrays.stream(terminology.getChildren(DEPENDENCY_ATTRIBUTE)) .map(configurationElement -> configurationElement.getAttribute(SHORT_NAME_ATTRIBUTE)) .collect(Collectors.toList()) ); } } TERMINOLOGY_ID_TO_SHORTNAMES_CACHE.put(terminologyId, affectedCodeSystems); } return TERMINOLOGY_ID_TO_SHORTNAMES_CACHE.get(terminologyId); }</code><technical_language>reading of need</technical_language>

Target:
public SortedSet<String> getAffectedCodeSystemsForTeminology(final String terminologyId) { Preconditions.checkArgument(TERMINOLOGY_ID_TO_SHORTNAMES_CACHE.containsKey(terminologyId), "No terminology extension has been registered with the id: " + terminologyId); return TERMINOLOGY_ID_TO_SHORTNAMES_CACHE.get(terminologyId); }
Source:
<code>private boolean canRunActions(ArrayList<VdcReturnValueBase> returnValues) { if (getCommands().size() == 1) { CorrelationIdTracker.setCorrelationId(getCommands().get(0).getCorrelationId()); returnValues.add(getCommands().get(0).validateOnly()); } else { checkValidatesAsynchronously(returnValues); } <START> if (isRunOnlyIfAllValidatePass) { <END> for (VdcReturnValueBase value : returnValues) { if (!value.getValidate()) { return false; } } } return true; }</code><technical_language>isRunOnlyIfAllValidationPass</technical_language>

Target:
private boolean canRunActions(ArrayList<VdcReturnValueBase> returnValues) { if (getCommands().size() == 1) { CorrelationIdTracker.setCorrelationId(getCommands().get(0).getCorrelationId()); returnValues.add(getCommands().get(0).validateOnly()); } else { checkValidatesAsynchronously(returnValues); } if (isRunOnlyIfAllValidationPass) { for (VdcReturnValueBase value : returnValues) { if (!value.getValidate()) { return false; } } } return true; }
Source:
<code>public TabletMetadata next() { long sleepTime = 250; TabletMetadata currTablet = null; while (currTablet == null) { TabletMetadata tmp = source.next(); if (prevTablet == null) { if (tmp.sawPrevEndRow()) { Text prevRow = tmp.getExtent().getPrevEndRow(); Text prevMetaRow = null; if (prevRow != null) { prevMetaRow = TabletsSection.getRow(tmp.getExtent().getTableId(), prevRow); } if (prevRow == null || range.beforeStartKey(new Key(prevMetaRow))) { currTablet = tmp; } else { <START> log.info("First tablet prev end row falls within range, retrying ", prevMetaRow, <END> range); } } else { log.warn("Tablet has no prev end row " + tmp.getTableId() + " " + tmp.getEndRow()); } } else if (goodTransition(prevTablet, tmp)) { currTablet = tmp; } if (currTablet == null) { sleepUninterruptibly(sleepTime, TimeUnit.MILLISECONDS); resetSource(); sleepTime = Math.min(2 * sleepTime, 5000); } } prevTablet = currTablet; return currTablet; }</code><technical_language>debug</technical_language>

Target:
public TabletMetadata next() { long sleepTime = 250; TabletMetadata currTablet = null; while (currTablet == null) { TabletMetadata tmp = source.next(); if (prevTablet == null) { if (tmp.sawPrevEndRow()) { Text prevMetaRow = null; KeyExtent extent = tmp.getExtent(); if (extent.getPrevEndRow() != null) { prevMetaRow = TabletsSection.getRow(extent.getTableId(), extent.getPrevEndRow()); } if (prevMetaRow == null || range.beforeStartKey(new Key(prevMetaRow))) { currTablet = tmp; } else { log.debug( "First tablet seen provides evidence of earlier tablet in range, retrying ", prevMetaRow, range); } } else { log.warn("Tablet has no prev end row " + tmp.getTableId() + " " + tmp.getEndRow()); } } else if (goodTransition(prevTablet, tmp)) { currTablet = tmp; } if (currTablet == null) { sleepUninterruptibly(sleepTime, TimeUnit.MILLISECONDS); resetSource(); sleepTime = Math.min(2 * sleepTime, 5000); } } prevTablet = currTablet; return currTablet; }
Source:
<code>public void testPreloadingInTransactionalCache() throws Exception { assertTrue(cache.getCacheConfiguration().loaders().preload()); <START> assertNotInCacheAndStore(cache, cache, "k1", "k2", "k3", "k4"); <END> cache.put("k1", "v1"); cache.put("k2", "v2", lifespan, MILLISECONDS); cache.put("k3", "v3"); cache.put("k4", "v4", lifespan, MILLISECONDS); for (int i = 1; i < 5; i++) { if (i % 2 == 1) assertInCacheAndStore(cache, store, "k" + i, "v" + i); else assertInCacheAndStore(cache, store, "k" + i, "v" + i, lifespan); } DataContainer c = cache.getAdvancedCache().getDataContainer(); assertEquals(4, c.size()); cache.stop(); assertEquals(0, c.size()); cache.start(); assertTrue(cache.getCacheConfiguration().loaders().preload()); c = cache.getAdvancedCache().getDataContainer(); assertEquals(4, c.size()); store = TestingUtil.extractComponent(cache, CacheLoaderManager.class).getCacheStore(); for (int i = 1; i < 5; i++) { if (i % 2 == 1) assertInCacheAndStore(cache, store, "k" + i, "v" + i); else assertInCacheAndStore(cache, store, "k" + i, "v" + i, lifespan); } withTx(cache.getAdvancedCache().getTransactionManager(), new Callable<Void>() { @Override public Void call() throws Exception { assertEquals("v1", cache.get("k1")); cache.put("k1", "new-v1"); return null; } }); }</code><technical_language>assertNotInCacheAndStore(cache, store,...)? (note cache in parameters)</technical_language>

Target:
public void testPreloadingInTransactionalCache() throws Exception { assertTrue(cache.getCacheConfiguration().loaders().preload()); assertNotInCacheAndStore(cache, store, "k1", "k2", "k3", "k4"); cache.put("k1", "v1"); cache.put("k2", "v2", LIFESPAN, MILLISECONDS); cache.put("k3", "v3"); cache.put("k4", "v4", LIFESPAN, MILLISECONDS); for (int i = 1; i < 5; i++) { if (i % 2 == 1) assertInCacheAndStore(cache, store, "k" + i, "v" + i); else assertInCacheAndStore(cache, store, "k" + i, "v" + i, LIFESPAN); } DataContainer c = cache.getAdvancedCache().getDataContainer(); assertEquals(4, c.size()); cache.stop(); assertEquals(0, c.size()); cache.start(); assertTrue(cache.getCacheConfiguration().loaders().preload()); c = cache.getAdvancedCache().getDataContainer(); assertEquals(4, c.size()); store = TestingUtil.extractComponent(cache, CacheLoaderManager.class).getCacheStore(); for (int i = 1; i < 5; i++) { if (i % 2 == 1) assertInCacheAndStore(cache, store, "k" + i, "v" + i); else assertInCacheAndStore(cache, store, "k" + i, "v" + i, LIFESPAN); } withTx(cache.getAdvancedCache().getTransactionManager(), new Callable<Void>() { @Override public Void call() throws Exception { assertEquals("v1", cache.get("k1")); cache.put("k1", "new-v1"); return null; } }); }
Source:
<code>public void flatMapCompletableComplete() { TestSubscriber testSubscriber = new TestSubscriber(); Single.just(1).flatMapCompletable(new Func1<Integer, Completable>() { @Override public Completable call(final Integer integer) { <START> return Completable.complete(); <END> } }).subscribe(testSubscriber); testSubscriber.assertCompleted(); }</code><technical_language>test more complicated Completable, for example check some function invoked</technical_language>

Target:
public void flatMapCompletableComplete() { final AtomicInteger atomicInteger = new AtomicInteger(); TestSubscriber testSubscriber = TestSubscriber.create(); Single.just(1).flatMapCompletable(new Func1<Integer, Completable>() { @Override public Completable call(final Integer integer) { return Completable.fromAction(new Action0() { @Override public void call() { atomicInteger.set(5); } }); } }).subscribe(testSubscriber); testSubscriber.assertCompleted(); assertEquals(5, atomicInteger.get()); }
Source:
<code>private IStatus checkExpression(IValidationContext ctx, EObject target, EStructuralFeature feature) { IStatus returnStatus = ctx.createSuccessStatus(); String expression = (String) target.eGet(feature); if (!StringUtil.isEmpty(expression)) { IInterpreterContext context = SiriusInterpreterContextFactory.createInterpreterContext(target, feature); VariableType variableType = context.getTargetType(); if (isTypeIdentified(variableType)) { Optional<EStructuralFeature> optional = variableType.getPossibleTypes().stream().flatMap(type -> type.search(context.getAvailableEPackages()).stream()).filter(EClass.class::isInstance) .map(EClass.class::cast).flatMap(eClass -> eClass.getEAllStructuralFeatures().stream()).filter(f -> f.getName().equals(expression)).findFirst(); if (!optional.isPresent()) { <START> returnStatus = ctx.createFailureStatus(); <END> } } } else { returnStatus = ctx.createFailureStatus(); } return returnStatus; }</code><technical_language>invalid value, passed error message user is wrong. pass target type name. Instead of: "Invalid Feature Name" information, like: "Invalid fature name 'xxx' for type 'CCC'"</technical_language>

Target:
private IStatus checkExpression(IValidationContext ctx, EObject target, EStructuralFeature feature) { IStatus returnStatus = ctx.createSuccessStatus(); String expression = (String) target.eGet(feature); IInterpreterContext context = SiriusInterpreterContextFactory.createInterpreterContext(target, feature); VariableType variableType = context.getTargetType(); if (!StringUtil.isEmpty(expression)) { if (isTypeIdentified(variableType)) { Optional<EStructuralFeature> optional = variableType.getPossibleTypes().stream().flatMap(type -> type.search(context.getAvailableEPackages()).stream()).filter(EClass.class::isInstance) .map(EClass.class::cast).flatMap(eClass -> eClass.getEAllStructuralFeatures().stream()).filter(f -> f.getName().equals(expression)).findFirst(); if (!optional.isPresent()) { returnStatus = ctx.createFailureStatus(expression, variableType); } } } else { returnStatus = ctx.createFailureStatus(expression, variableType); } return returnStatus; }
Source:
<code>public static OcciContext validateCredentials(OcciCredentials occiCredentials) throws InvalidOcciCredentialsException { OcciContext context = new OcciContext(occiCredentials); File f = new File(context.getOcciCredentials().getUserCertificatePath()); if((!f.exists() || f.isDirectory())){ logger.info(String.format("Cert does not exist in provided path" + context.getOcciCredentials().getUserCertificatePath())); throw new InvalidOcciCredentialsException("Cert does not exist in provided path" + context.getOcciCredentials().getUserCertificatePath()); } f = new File(context.getOcciCredentials().getSystemCertDir()); if ((!f.exists() || !f.isDirectory())) { logger.info(String.format("Cert folder does not exist in provided path" + context.getOcciCredentials().getSystemCertDir())); <START> throw new InvalidOcciCredentialsException("Cert folder does not exist in provided path" + <END> context.getOcciCredentials().getSystemCertDir()); } return context; }</code><technical_language>I exception message needs a space character appended path explicitly spell "certificate" instead of "cert"</technical_language>

Target:
public static OcciContext validateCredentials(OcciCredentials occiCredentials) throws InvalidOcciCredentialsException { OcciContext context = new OcciContext(occiCredentials); File f = new File(context.getOcciCredentials().getUserCertificatePath()); if((!f.exists() || f.isDirectory())) { logger.info(String.format("Certificate does not exist in provided path " + context.getOcciCredentials().getUserCertificatePath())); throw new InvalidOcciCredentialsException("Certificate does not exist in provided path " + context.getOcciCredentials().getUserCertificatePath()); } f = new File(context.getOcciCredentials().getSystemCertDir()); if ((!f.exists() || !f.isDirectory())) { logger.info(String.format("Certificate folder does not exist in provided path " + context.getOcciCredentials().getSystemCertDir())); throw new InvalidOcciCredentialsException("Certificate folder does not exist in provided path " + context.getOcciCredentials().getSystemCertDir()); } return context; }
Source:
<code>public <T> T get(Object key, Callable<T> valueLoader) { long stamp = synchronousGetLock.readLock(); try { T value = (T) nativeCache.get(key); if (value == null) { <START> AtomicBoolean valueObtained = new AtomicBoolean(); <END> while (!valueObtained.get()) { long upgradedLockStamp = synchronousGetLock.tryConvertToWriteLock(stamp); if (upgradedLockStamp != 0) { stamp = upgradedLockStamp; value = (T) nativeCache.computeIfAbsent(key, keyToBeInserted -> { try { return valueLoader.call(); } catch (Exception e) { throw ValueRetrievalExceptionResolver.throwValueRetrievalException(key, valueLoader, e); } }); valueObtained.set(true); } else { synchronousGetLock.unlockRead(stamp); stamp = synchronousGetLock.writeLock(); } } } return value; } finally { synchronousGetLock.unlock(stamp); } }</code><technical_language>ByRef.Boolean</technical_language>

Target:
public <T> T get(Object key, Callable<T> valueLoader) { ReentrantLock lock = null; T value = (T) nativeCache.get(key); if (value == null) { lock = synchronousGetLocks.computeIfAbsent(key, k -> new ReentrantLock()); lock.lock(); try { if ((value = (T) nativeCache.get(key)) == null) { try { T newValue = valueLoader.call(); value = (T) nativeCache.putIfAbsent(key, newValue); if (value == null) { value = newValue; } } catch (Exception e) { throw ValueRetrievalExceptionResolver.throwValueRetrievalException(key, valueLoader, e); } } } finally { lock.unlock(); synchronousGetLocks.remove(key); } } return value; }
Source:
<code>public void shutdown() { isUp = false; try { <START> if (idConverter != null) { <END> idConverter.close(); idConverter = null; } if (securityService != null) { securityService.close(); securityService = null; } logger.info("AmbryBlobStorageService shutdown complete"); } catch (IOException e) { logger.error("Downstream service close failed", e); } }</code><technical_language>minor: shutdown in reverse order in started components. strict ordering in this context. uniform</technical_language>

Target:
public void shutdown() { isUp = false; try { if (securityService != null) { securityService.close(); securityService = null; } if (idConverter != null) { idConverter.close(); idConverter = null; } logger.info("AmbryBlobStorageService shutdown complete"); } catch (IOException e) { logger.error("Downstream service close failed", e); } }
Source:
<code>private void inbound(final SmppInboundMessageEntity request ) throws IOException { final ActorRef self = self(); String to = request.getSmppTo(); final IncomingPhoneNumbersDao numbersDao = storage.getIncomingPhoneNumbersDao(); List<IncomingPhoneNumber> numbers = numbersDao.getIncomingPhoneNumber(to); <START> IncomingPhoneNumber number = numbers.get(0); <END> if( redirectToHostedSmsApp(self,request, storage.getAccountsDao(), storage.getApplicationsDao(),to )){ if(logger.isInfoEnabled()) { logger.info("SMPP Message Accepted - A Restcomm Hosted App is Found for Number : " + number.getPhoneNumber() ); } return; } else { logger.warning("SMPP Message Rejected : No Restcomm Hosted App Found for inbound number : " + to ); } }</code><technical_language>@maria-farooq IncomingPhoneNumber number is for logging statement, if I missing something. remove lookup save resources</technical_language>

Target:
private void inbound(final SmppInboundMessageEntity request ) throws IOException { final ActorRef self = self(); String to = request.getSmppTo(); if( redirectToHostedSmsApp(self,request, storage.getAccountsDao(), storage.getApplicationsDao(),to )){ if(logger.isInfoEnabled()) { logger.info("SMPP Message Accepted - A Restcomm Hosted App is Found for Number : " + to ); } return; } else { logger.warning("SMPP Message Rejected : No Restcomm Hosted App Found for inbound number : " + to ); } }
Source:
<code>public Secrets(String host, int port, String token) throws VaultException { <START> this.vaultConfig = new VaultConfig(String.format("http://%s:%s", host, port), token); <END> this.vault = new Vault(this.vaultConfig); }</code><technical_language>placeholder for in format %d I believe</technical_language>

Target:
public Secrets(String host, int port, String token) throws VaultException { this.vaultConfig = new VaultConfig(String.format("http://%s:%d", host, port), token); this.vault = new Vault(this.vaultConfig); }
Source:
<code>public void verifyListenerAnnotationTransformerClass() { MySuiteListener.triggered = false; TestNG tng = new TestNG(); tng.setVerbose(0); tng.setAnnotationTransformer(new MyListenerTransformer()); tng.setTestClasses(new Class[]{AnnotationTransformerClassSampleTest.class}); tng.run(); <START> Assert.assertFalse(MySuiteListener.triggered); <END> }</code><technical_language>test stronger transformer set listeners another class assert this class called instead of testing original listener called</technical_language>

Target:
public void verifyListenerAnnotationTransformerClass() { MySuiteListener.triggered = false; MySuiteListener2.triggered = false; TestNG tng = new TestNG(); tng.setVerbose(0); tng.setAnnotationTransformer(new MyListenerTransformer()); tng.setTestClasses(new Class[]{AnnotationTransformerClassSampleTest.class}); tng.run(); Assert.assertFalse(MySuiteListener.triggered); Assert.assertTrue(MySuiteListener2.triggered); }
Source:
<code>public static boolean vmDeviceChanged(Guid vmId, VmDeviceGeneralType deviceType, boolean deviceEnabled) { <START> return vmDeviceChanged(vmId, null, deviceEnabled); <END> }</code><technical_language>s/vmId, null, deviceEnabled/vmId, deviceType, null, deviceEnabled</technical_language>

Target:
public static boolean vmDeviceChanged(Guid vmId, VmDeviceGeneralType deviceType, boolean deviceEnabled) { return vmDeviceChanged(vmId, deviceType, null, deviceEnabled); }
Source:
<code>public static void addOrUpdateTaskInDB(final SPMAsyncTask asyncTask) { try { if (asyncTask.getParameters().getDbAsyncTask() != null) { TransactionSupport.executeInScope(TransactionScopeOption.Required, new TransactionMethod<Void>() { @Override public Void runInTransaction() { addOrUpdateTaskInDB(asyncTask.getParameters().getDbAsyncTask()); Map<Guid, VdcObjectType> entitiesMap = asyncTask.getEntitiesMap(); <START> for (Entry<Guid, VdcObjectType> entry : entitiesMap.entrySet()) { <END> DbFacade.getInstance() .getAsyncTaskDao() .insertAsyncTaskEntity(asyncTask.getParameters().getDbAsyncTask().getTaskId(), entry.getKey(), entry.getValue()); } return null; } }); } } catch (RuntimeException e) { log.error(String.format( "Adding/Updating task %1$s to DataBase threw an exception.", asyncTask.getVdsmTaskId()), e); } }</code><technical_language>Is levels of nesting</technical_language>

Target:
public static void addOrUpdateTaskInDB(final SPMAsyncTask asyncTask) { try { if (asyncTask.getParameters().getDbAsyncTask() != null) { TransactionSupport.executeInScope(TransactionScopeOption.Required, new TransactionMethod<Void>() { @Override public Void runInTransaction() { addOrUpdateTaskInDB(asyncTask.getParameters().getDbAsyncTask()); Map<Guid, VdcObjectType> entitiesMap = asyncTask.getEntitiesMap(); for (Entry<Guid, VdcObjectType> entry : entitiesMap.entrySet()) { getAsyncTaskDao().insertAsyncTaskEntity(asyncTask.getParameters() .getDbAsyncTask().getTaskId(), entry.getKey(), entry.getValue()); } return null; } }); } } catch (RuntimeException e) { log.error(String.format( "Adding/Updating task %1$s to DataBase threw an exception.", asyncTask.getVdsmTaskId()), e); } }
Source:
<code>public void untilSubscriptionIsSuspended(Topic topic, String subscription) { untilSubscriptionHasState(topic, subscription, Subscription.State.SUSPENDED); <START> waitAtMost(adjust(Duration.ONE_MINUTE)).until(() -> <END> !endpoints.consumer().listSubscriptions().stream() .filter(sub -> sub.getQualifiedName().equals(topic.getQualifiedName() + "$" + subscription)) .findAny() .isPresent()); }</code><technical_language>is base for adjust minute? means adjusting waiting 3 minutes for subscription suspend, tests - i if a good idea</technical_language>

Target:
public void untilSubscriptionIsSuspended(Topic topic, String subscription) { untilSubscriptionHasState(topic, subscription, Subscription.State.SUSPENDED); waitAtMost(adjust(Duration.TEN_SECONDS)).until(() -> !endpoints.consumer().listSubscriptions().stream() .filter(sub -> sub.getQualifiedName().equals(topic.getQualifiedName() + "$" + subscription)) .findAny() .isPresent()); }
Source:
<code>public Object execute(ExecutionEvent event) throws ExecutionException { TransactionalEditingDomain editingDomain = getTableEditingDomain(); Table table = getTable(); if (null != editingDomain && null != table) { BooleanValueStyle autoResizeValue = (BooleanValueStyle) table.getNamedStyle(NattablestylePackage.eINSTANCE.getBooleanValueStyle(), NamedStyleConstants.AUTO_RESIZE_CELL_HEIGHT); if (null != autoResizeValue) { <START> Assert.isTrue(autoResizeValue.isBooleanValue()); <END> StyleUtils.deleteBooleanNamedStyle(editingDomain, table, NamedStyleConstants.AUTO_RESIZE_CELL_HEIGHT); } else { StyleUtils.initBooleanNamedStyle(editingDomain, table, NamedStyleConstants.AUTO_RESIZE_CELL_HEIGHT, true); } } return null; }</code><technical_language>so, reopening existing table activate AutoCellHieght, unactivate -> get a BooleanValueStyle false -> assert break all..</technical_language>

Target:
public Object execute(ExecutionEvent event) throws ExecutionException { TransactionalEditingDomain editingDomain = getTableEditingDomain(); Table table = getTable(); if (null != editingDomain && null != table) { BooleanValueStyle autoResizeValue = (BooleanValueStyle) table.getNamedStyle(NattablestylePackage.eINSTANCE.getBooleanValueStyle(), NamedStyleConstants.AUTO_RESIZE_CELL_HEIGHT); if (null != autoResizeValue) { if (autoResizeValue.isBooleanValue()) { StyleUtils.deleteBooleanNamedStyle(editingDomain, table, NamedStyleConstants.AUTO_RESIZE_CELL_HEIGHT); } else { StyleUtils.setBooleanNamedStyle(editingDomain, table, NamedStyleConstants.AUTO_RESIZE_CELL_HEIGHT, NamedStyleConstants.ENABLE_AUTO_RESIZE_CELL_HEIGHT); } } else { StyleUtils.initBooleanNamedStyle(editingDomain, table, NamedStyleConstants.AUTO_RESIZE_CELL_HEIGHT, NamedStyleConstants.ENABLE_AUTO_RESIZE_CELL_HEIGHT); } } return null; }
Source:
<code>protected GlobalLock getGlobalLock(final Connection connection, final String lockName, final ResetReentrantLockCallback resetCb) { try { ZooKeeper zooKeeper = new ZooKeeper("connectString", Long.valueOf(timeout).intValue(), new Watcher() { @Override public void process(final WatchedEvent event) { if (event.getState() == Watcher.Event.KeeperState.SyncConnected) { connectedSignal.countDown(); } } }); <START> return new ZooKeeperGlobalLock("ZooKeeper Lock", zooKeeper, zkPath + "<account_id>"); <END> } catch (IOException e) { return null; } }</code><technical_language>lockName instead (which contains actual account id)</technical_language>

Target:
protected GlobalLock getGlobalLock(final Connection connection, final String lockName, final ResetReentrantLockCallback resetCb) { return new ZooKeeperGlobalLock(connection, lockName, globalLockDao, resetCb); }
Source:
<code>public void doFilter( ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException { TreeSet<ServiceReference<Filter>> sortedFilterServiceReferences = null; final BundleContext bundleContext = getContext(); if (bundleContext == null) { throw new ServletException( "Unable to get BundleContext. No servlet Filters can be applied. Blocking the request processing."); } try { sortedFilterServiceReferences = new TreeSet<>(bundleContext.getServiceReferences(Filter.class, null)); } catch (InvalidSyntaxException ise) { <START> LOGGER.debug("Should never get this exception as there is no filter being passed."); <END> } if (!CollectionUtils.isEmpty(sortedFilterServiceReferences)) { LOGGER.debug("Found filter(s), now filtering...", sortedFilterServiceReferences.size()); final ProxyFilterChain chain = new ProxyFilterChain(filterChain); for (ServiceReference<Filter> filterServiceReference : sortedFilterServiceReferences) { final Filter filter = bundleContext.getService(filterServiceReference); if (!hasBeenInitialized(filterServiceReference, bundleContext)) { initializeFilter(bundleContext, filterServiceReference, filter); } chain.addFilter(filter); } chain.doFilter(servletRequest, servletResponse); } else { LOGGER.debug("Did not find any Filters. Acting as a pass-through filter..."); filterChain.doFilter(servletRequest, servletResponse); } }</code><technical_language>trace exception too</technical_language>

Target:
public void doFilter( ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException { if (!filterList.isEmpty()) { ProxyFilterChain chain = new ProxyFilterChain(filterChain); for (Filter filter : filterList) { chain.addFilter(filter); } chain.doFilter(servletRequest, servletResponse); } else { LOGGER.debug("Did not find any Filters. Acting as a pass-through filter..."); filterChain.doFilter(servletRequest, servletResponse); } }
Source:
<code>public void replicasOrderingTestOriginatingIsLocal() { initialize(); originatingDcName = localDcName; <START> RouterConfig routerConfig = getRouterConfig(localDcName, "true", "3", "3", "false", "6"); <END> OperationTracker ot = getOperationTracker(routerConfig.routerGetCrossDcEnabled, routerConfig.routerDeleteSuccessTarget, routerConfig.routerGetRequestParallelism, routerConfig.routerGetIncludeNonOriginatingDcReplicas, routerConfig.routerGetReplicasRequired); sendRequests(ot, 3, false); for (int i = 0; i < 3; i++) { ReplicaId replica = inflightReplicas.poll(); ot.onResponse(replica, true); assertEquals("Should be originating DC", originatingDcName, replica.getDataNodeId().getDatacenterName()); } assertEquals("Should have 0 replica in flight.", 0, inflightReplicas.size()); assertTrue("Operation should have succeeded", ot.hasSucceeded()); assertTrue("Operation should be done", ot.isDone()); }</code><technical_language>this is setting IncludeNonOriginatingDcReplicas false (whereas code replaces setting true). Is this intended? Also, tests set false. tests sets true</technical_language>

Target:
public void replicasOrderingTestOriginatingIsLocal() { initialize(); originatingDcName = localDcName; OperationTracker ot = getOperationTracker(true, 3, 3, false, 6); sendRequests(ot, 3, false); for (int i = 0; i < 3; i++) { ReplicaId replica = inflightReplicas.poll(); ot.onResponse(replica, true); assertEquals("Should be originating DC", originatingDcName, replica.getDataNodeId().getDatacenterName()); } assertEquals("Should have 0 replica in flight.", 0, inflightReplicas.size()); assertTrue("Operation should have succeeded", ot.hasSucceeded()); assertTrue("Operation should be done", ot.isDone()); }
Source:
<code>public void execute() { s_logger.info("VOLSS: createSnapshotCmd starts:" + System.currentTimeMillis()); CallContext.current().setEventDetails("Vm Snapshot Id: "+getVMSnapshotId()); Snapshot snapshot; try { <START> snapshot = _snapshotService.backupSnapshotFromVmSnapshot(getEntityId(), getVmId(), getVMSnapshotId()); <END> if (snapshot != null) { SnapshotResponse response = _responseGenerator.createSnapshotResponse(snapshot); response.setResponseName(getCommandName()); this.setResponseObject(response); } else { throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to create snapshot due to an internal error creating snapshot from vm snapshot " + getVMSnapshotId()); } } catch (Exception e) { s_logger.debug("Failed to create snapshot", e); throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to create snapshot due to an internal error creating snapshot from vm snapshot " + getVMSnapshotId()); } }</code><technical_language>@ustcweizhou Thanks for patch. getVmId() check if VM snapshot is valid. This NullPointerException, avoided</technical_language>

Target:
public void execute() { s_logger.info("CreateSnapshotFromVMSnapshotCmd with vm snapshot id:" + getVMSnapshotId() + " and snapshot id:" + getEntityId() + " starts:" + System.currentTimeMillis()); CallContext.current().setEventDetails("Vm Snapshot Id: "+ getVMSnapshotId()); Snapshot snapshot = null; try { snapshot = _snapshotService.backupSnapshotFromVmSnapshot(getEntityId(), getVmId(), getVolumeId(), getVMSnapshotId()); if (snapshot != null) { SnapshotResponse response = _responseGenerator.createSnapshotResponse(snapshot); response.setResponseName(getCommandName()); this.setResponseObject(response); } else { throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to create snapshot due to an internal error creating snapshot from vm snapshot " + getVMSnapshotId()); } } catch (InvalidParameterValueException ex) { throw ex; } catch (Exception e) { s_logger.debug("Failed to create snapshot", e); throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to create snapshot due to an internal error creating snapshot from vm snapshot " + getVMSnapshotId()); } finally { if (snapshot == null) { try { _snapshotService.deleteSnapshot(getEntityId()); } catch (Exception e) { s_logger.debug("Failed to clean failed snapshot" + getEntityId()); } } } }
Source:
<code>public String fromBytes(byte[] bytes) { final Properties props = new Properties(); props.put("serializer.encoding", encoding); final VerifiableProperties verifiableProperties = new VerifiableProperties(props); <START> return new kafka.serializer.StringDecoder(verifiableProperties).fromBytes(bytes); <END> }</code><technical_language>Do need a new decoder for fromBytes()? a single VerifiableProperties. strange create 3 objects for conversion</technical_language>

Target:
public String fromBytes(byte[] bytes) { return this.stringDecoder.fromBytes(bytes); }
Source:
<code>public List<Context> getSelectedContexts() { TreePath[] paths = treeContext.getSelectionPaths(); if (paths == null || paths.length == 0) return null; SiteNode[] nodes = Arrays.stream(paths) .map(p -> (SiteNode) p.getLastPathComponent()) .toArray(SiteNode[]::new); if (nodes.length == 1 && nodes[0].isRoot()) return null; Stream<Target> targets = Arrays.stream(nodes).map(n -> (Target) n.getUserObject()); <START> return targets == null <END> ? null : Arrays.asList(targets.map(t -> t.getContext()).toArray(Context[]::new)); }</code><technical_language>targets non-null here</technical_language>

Target:
public List<Context> getSelectedContexts() { TreePath[] paths = treeContext.getSelectionPaths(); if (paths == null || paths.length == 0) return Collections.emptyList(); SiteNode[] nodes = Arrays.stream(paths) .map(p -> (SiteNode) p.getLastPathComponent()) .toArray(SiteNode[]::new); if (nodes.length == 1 && nodes[0].isRoot()) return Collections.emptyList(); Stream<Target> targets = Arrays.stream(nodes).map(n -> (Target) n.getUserObject()); return Arrays.asList(targets.map(Target::getContext).toArray(Context[]::new)); }
Source:
<code>protected static Set<PersistentResource> filter(Class<? extends Annotation> permission, Set<PersistentResource> resources) { Set<PersistentResource> filteredSet = new LinkedHashSet<>(); for (PersistentResource resource : resources) { try { <START> boolean skipNew = resource.getRequestScope().isMutatingMultipleEntities(); <END> if (!skipNew || !resource.getRequestScope().getNewResources().contains(resource)) { resource.checkFieldAwarePermissions(permission); } filteredSet.add(resource); } catch (ForbiddenAccessException e) { } } if (resources instanceof SingleElementSet && resources.equals(filteredSet)) { return resources; } return filteredSet; }</code><technical_language>This variable name match checking. call isMutation that</technical_language>

Target:
protected static Set<PersistentResource> filter(Class<? extends Annotation> permission, Set<PersistentResource> resources) { Set<PersistentResource> filteredSet = new LinkedHashSet<>(); for (PersistentResource resource : resources) { try { boolean isMutation = resource.getRequestScope().isMutatingMultipleEntities(); if (!isMutation || !resource.getRequestScope().getNewResources().contains(resource)) { resource.checkFieldAwarePermissions(permission); } filteredSet.add(resource); } catch (ForbiddenAccessException e) { } } if (resources instanceof SingleElementSet && resources.equals(filteredSet)) { return resources; } return filteredSet; }
Source:
<code>public CourseCategoryDAO findCourseCategory(final String id) { List<Object> results = getHibernateTemplate().executeFind(new HibernateCallback() { public Object doInHibernate(Session session) { <START> Query query = session.createSQLQuery( <END> "select * from course_category " + "where categoryId = :id").addEntity(CourseCategoryDAO.class); query.setString("id", id); return query.list(); } }); if (!results.isEmpty()) { return (CourseCategoryDAO)results.get(0); } return null; }</code><technical_language>I loading a CourseCategoryDAO primary key session.get(Class, Serializable) return item</technical_language>

Target:
public CourseCategoryDAO findCourseCategory(final String id) { return (CourseCategoryDAO)getHibernateTemplate().execute(new HibernateCallback() { public CourseCategoryDAO doInHibernate(Session session) { return (CourseCategoryDAO)session.get(CourseCategoryDAO.class, id); } }); }
Source:
<code>public void update(List<ICodeMining> minings, IProgressMonitor monitor) { disposeMinings(); <START> minings.stream().forEach(m -> m.setProgressMonitor(monitor)); <END> fMinings.addAll(minings); }</code><technical_language>current monitor a field, passed a parameter resolve line 77</technical_language>

Target:
public void update(List<ICodeMining> minings, IProgressMonitor monitor) { disposeMinings(); fMonitor= monitor; fMinings.addAll(minings); }
Source:
<code>public static Properties defaultProperties() { Properties properties = BaseHttpApiMetadata.defaultProperties(); properties.put(TEMPLATE, <START> "osFamily=CENTOS,os64Bit=true,osVersionMatches=7.4,hardwareId=ecs.t5-lc2m1.nano,locationId=eu-central-1"); <END> properties.put(TIMEOUT_NODE_RUNNING, 900000); properties.put(TIMEOUT_NODE_SUSPENDED, 900000); return properties; }</code><technical_language>fix OS default. default location configured jclouds *Implicit Location Supplier*. default hardware is, default, smallest one</technical_language>

Target:
public static Properties defaultProperties() { Properties properties = BaseHttpApiMetadata.defaultProperties(); properties.put(TEMPLATE, "osFamily=CENTOS,os64Bit=true,osVersionMatches=7.4"); properties.put(TIMEOUT_NODE_RUNNING, 900000); properties.put(TIMEOUT_NODE_SUSPENDED, 900000); return properties; }