auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
<code>private void setupCellTableWidgetProviderTooltip() { final ContactCellTable contactCellTable = new ContactCellTable(); final ContactDatabase contactDatabase = ContactDatabase.get(); contactDatabase.addDataDisplay(contactCellTable); ShowMorePagerPanel pagerPanel = new ShowMorePagerPanel(); pagerPanel.setDisplay(contactCellTable); pagerPanel.addStyleName("pagerLarge"); RootPanel.get("contactWidgetProvider").add(pagerPanel); TooltipOptions options = new TooltipOptions(); options.withContent(new TooltipOptions.TooltipWidgetContentProvider() { @Override public IsWidget getContent(Element element) { return createWidget(element); } <START> private IsWidget createWidget(Element element) { <END> int absoluteRowIndex = Integer.valueOf($(element).attr("__gwt_row")); int pageStartIndex = contactCellTable.getVisibleRange().getStart(); int relativeIndex = absoluteRowIndex - pageStartIndex; final ContactInfo contactInfo = contactCellTable.getVisibleItem(relativeIndex); Button deleteButton = new Button("Delete"); deleteButton.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { contactDatabase.remove(contactInfo); } }); return deleteButton; } }); options.withResources(ContactTooltipResources.INSTANCE); options.withPlacement(TooltipPlacement.LEFT); options.withSelector("tbody tr"); options.withContainer("element"); $(contactCellTable).as(Tooltip).tooltip(options); }</code><technical_language>do define a private method ? getContent method</technical_language>

Target:
private void setupCellTableWidgetProviderTooltip() { final ContactCellTable contactCellTable = new ContactCellTable(); final ContactDatabase contactDatabase = ContactDatabase.get(); contactDatabase.addDataDisplay(contactCellTable); ShowMorePagerPanel pagerPanel = new ShowMorePagerPanel(); pagerPanel.setDisplay(contactCellTable); pagerPanel.addStyleName("pagerLarge"); RootPanel.get("contactWidgetProvider").add(pagerPanel); TooltipOptions options = new TooltipOptions(); options.withContent(new TooltipOptions.TooltipWidgetContentProvider() { @Override public IsWidget getContent(Element element) { int absoluteRowIndex = Integer.valueOf($(element).attr("__gwt_row")); int pageStartIndex = contactCellTable.getVisibleRange().getStart(); int relativeIndex = absoluteRowIndex - pageStartIndex; final ContactInfo contactInfo = contactCellTable.getVisibleItem(relativeIndex); Button deleteButton = new Button("Delete"); deleteButton.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { contactDatabase.remove(contactInfo); } }); return deleteButton; } }); options.withResources(ContactTooltipResources.INSTANCE); options.withPlacement(TooltipPlacement.LEFT); options.withSelector("tbody tr"); options.withContainer("element"); $(contactCellTable).as(Tooltip).tooltip(options); }
Source:
<code>public List<ProjectBuildingResult> build( List<File> pomFiles, boolean recursive, ProjectBuildingRequest request ) throws ProjectBuildingException { List<ProjectBuildingResult> results = new ArrayList<>(); List<InterimResult> interimResults = new ArrayList<>(); ReactorModelPool modelPool = new ReactorModelPool(); InternalConfig config = new InternalConfig( request, modelPool, <START> useGlobalModelCache() ? getModelCache() : new ReactorModelCache() ); <END> Map<String, MavenProject> projectIndex = new HashMap<>( 256 ); boolean noErrors = build( results, interimResults, projectIndex, pomFiles, new LinkedHashSet<File>(), true, recursive, config ); populateReactorModelPool( modelPool, interimResults ); ClassLoader oldContextClassLoader = Thread.currentThread().getContextClassLoader(); try { noErrors = build( results, new ArrayList<MavenProject>(), projectIndex, interimResults, request, new HashMap<File, Boolean>() ) && noErrors; } finally { Thread.currentThread().setContextClassLoader( oldContextClassLoader ); } if ( !noErrors ) { throw new ProjectBuildingException( results ); } return results; }</code><technical_language>passing new ReactorModelCache() passing null 60 lines above</technical_language>

Target:
public List<ProjectBuildingResult> build( List<File> pomFiles, boolean recursive, ProjectBuildingRequest request ) throws ProjectBuildingException { List<ProjectBuildingResult> results = new ArrayList<>(); List<InterimResult> interimResults = new ArrayList<>(); ReactorModelPool modelPool = new ReactorModelPool(); InternalConfig config = new InternalConfig( request, modelPool, useGlobalModelCache() ? getModelCache() : new ReactorModelCache() ); Map<String, MavenProject> projectIndex = new HashMap<>( 256 ); boolean noErrors = build( results, interimResults, projectIndex, pomFiles, new LinkedHashSet<File>(), true, recursive, config ); populateReactorModelPool( modelPool, interimResults ); ClassLoader oldContextClassLoader = Thread.currentThread().getContextClassLoader(); try { noErrors = build( results, new ArrayList<MavenProject>(), projectIndex, interimResults, request, new HashMap<File, Boolean>(), config.session ) && noErrors; } finally { Thread.currentThread().setContextClassLoader( oldContextClassLoader ); } if ( !noErrors ) { throw new ProjectBuildingException( results ); } return results; }
Source:
<code>protected void addTaskBAMEventListener(final KModuleDeploymentUnit unit, final InternalKieContainer kieContainer) { final DeploymentDescriptor descriptor = getDeploymentDescriptor(unit, kieContainer); descriptor.getBuilder().addTaskEventListener( <START> new NamedObjectModel( <END> "mvel", "taskBAM", "new org.jbpm.services.task.lifecycle.listeners.BAMTaskEventListener(false)" ) ); unit.setDeploymentDescriptor(descriptor); }</code><technical_language>enough ObjectModel instead of NamedObjectModel named is for objects needs registred name work item handlers ir globals</technical_language>

Target:
protected void addTaskBAMEventListener(final KModuleDeploymentUnit unit, final InternalKieContainer kieContainer) { final DeploymentDescriptor descriptor = getDeploymentDescriptor(unit, kieContainer); descriptor.getBuilder().addTaskEventListener( new ObjectModel( "mvel", "new org.jbpm.services.task.lifecycle.listeners.BAMTaskEventListener(false)" ) ); unit.setDeploymentDescriptor(descriptor); }
Source:
<code>public Set<String> call() throws NoWorkTreeException, GitAPIException { Set<String> files = new TreeSet<String>(); try { StatusCommand command = new StatusCommand(repo); Status status = command.call(); Set<String> untrackedAndIgnoredFiles = new TreeSet<String>( status.getUntracked()); Set<String> untrackedAndIgnoredDirs = new TreeSet<String>( status.getUntrackedFolders()); FS fs = getRepository().getFS(); for (String p : status.getIgnoredNotInIndex()) { File f = new File(repo.getWorkTree(), p); if (fs.isFile(f) || fs.isSymLink(f)) untrackedAndIgnoredFiles.add(p); else if (fs.isDirectory(f)) untrackedAndIgnoredDirs.add(p); } Set<String> filtered = filterFolders(untrackedAndIgnoredFiles, untrackedAndIgnoredDirs); Set<String> notIgnoredFiles = filterIgnorePaths(filtered, status.getIgnoredNotInIndex(), true); Set<String> notIgnoredDirs = filterIgnorePaths( untrackedAndIgnoredDirs, status.getIgnoredNotInIndex(), false); for (String file : notIgnoredFiles) if (paths.isEmpty() || paths.contains(file)) { files = cleanPath(file, false, files); } if (directories) for (String dir : notIgnoredDirs) if (paths.isEmpty() || paths.contains(dir)) { File curDir = new File(repo.getWorkTree(), dir); <START> if (RepositoryCache.FileKey.isGitRepository(new File(curDir, DOT_GIT), fs)) { <END> if (force) { files = cleanPath(dir, true, files); } } else { files = cleanPath(dir, true, files); } } } catch (IOException e) { throw new JGitInternalException(e.getMessage(), e); } return files; }</code><technical_language>more careful here. git clean command doc clean folders a file folder named ".git". do "...isGitRepository()". do check for existance of .git only. this detection of git repos cleanPath()? A cleanPath(path,recurse,force,inFiles) do this</technical_language>

Target:
public Set<String> call() throws NoWorkTreeException, GitAPIException { Set<String> files = new TreeSet<String>(); try { StatusCommand command = new StatusCommand(repo); Status status = command.call(); Set<String> untrackedAndIgnoredFiles = new TreeSet<String>( status.getUntracked()); Set<String> untrackedAndIgnoredDirs = new TreeSet<String>( status.getUntrackedFolders()); FS fs = getRepository().getFS(); for (String p : status.getIgnoredNotInIndex()) { File f = new File(repo.getWorkTree(), p); if (fs.isFile(f) || fs.isSymLink(f)) untrackedAndIgnoredFiles.add(p); else if (fs.isDirectory(f)) untrackedAndIgnoredDirs.add(p); } Set<String> filtered = filterFolders(untrackedAndIgnoredFiles, untrackedAndIgnoredDirs); Set<String> notIgnoredFiles = filterIgnorePaths(filtered, status.getIgnoredNotInIndex(), true); Set<String> notIgnoredDirs = filterIgnorePaths( untrackedAndIgnoredDirs, status.getIgnoredNotInIndex(), false); for (String file : notIgnoredFiles) if (paths.isEmpty() || paths.contains(file)) { files = cleanPath(file, false, files); } if (directories) for (String dir : notIgnoredDirs) if (paths.isEmpty() || paths.contains(dir)) { files = cleanPath(dir, true, files); } } catch (IOException e) { throw new JGitInternalException(e.getMessage(), e); } return files; }
Source:
<code>public static String getKind(String uniqueId) { if (StringUtils.isEmpty(uniqueId)) { return null; } <START> String[] comps = uniqueId.split("@"); <END> if (comps.length == 2) { return ResourceKind.SERVICE; } else { return comps[1]; } }</code><technical_language>please reuse constant</technical_language>

Target:
public static String getKind(String uniqueId) { if (StringUtils.isEmpty(uniqueId)) { return null; } String[] comps = uniqueId.split(String.valueOf(UNIQUE_ID_PROJECT_NAME_DELIMITER)); if (comps.length == 2) { return ResourceKind.SERVICE; } else if (comps.length == 3) { return comps[1]; } else { return null; } }
Source:
<code>public void testCFStringRef() { String awesome = "ǝɯosǝʍɐ sı ∀Nſ"; CFStringRef cfAwesome = CFStringRef.createCFString(awesome); assertEquals(awesome.length(), CF.CFStringGetLength(cfAwesome).intValue()); assertEquals(awesome, cfAwesome.stringValue()); <START> Memory mem = new Memory(awesome.getBytes().length + 1); <END> mem.clear(); assertNotEquals(0, CF.CFStringGetCString(cfAwesome, mem, new CFIndex(mem.size()), CoreFoundation.kCFStringEncodingUTF8)); byte[] awesomeBytes = mem.getByteArray(0, (int) mem.size() - 1); byte[] awesomeArr = awesome.getBytes(); for (int i = 0; i < awesomeArr.length; i++) { assertEquals(awesomeArr[i], awesomeBytes[i]); } CFStringRef desc = CF.CFCopyDescription(cfAwesome); assertTrue(desc.stringValue().contains(awesome)); desc.release(); cfAwesome.release(); }</code><technical_language>awesome.getBytes("UTF-8"). JDK converge UTF-8 default, is yet</technical_language>

Target:
public void testCFStringRef() throws UnsupportedEncodingException { String awesome = "ǝɯosǝʍɐ sı ∀Nſ"; CFStringRef cfAwesome = CFStringRef.createCFString(awesome); assertEquals(awesome.length(), CF.CFStringGetLength(cfAwesome).intValue()); assertEquals(awesome, cfAwesome.stringValue()); assertEquals(CoreFoundation.STRING_TYPE_ID, cfAwesome.getTypeID()); byte[] awesomeArr = awesome.getBytes("UTF-8"); Memory mem = new Memory(awesomeArr.length + 1); mem.clear(); assertNotEquals(0, CF.CFStringGetCString(cfAwesome, mem, new CFIndex(mem.size()), CoreFoundation.kCFStringEncodingUTF8)); byte[] awesomeBytes = mem.getByteArray(0, (int) mem.size() - 1); assertArrayEquals(awesomeArr, awesomeBytes); CFStringRef desc = CF.CFCopyDescription(cfAwesome); assertTrue(desc.stringValue().contains(awesome)); desc.release(); cfAwesome.release(); }
Source:
<code>private List<Pool> filterPoolsForActKey(ActivationKey key, List<Pool> pools, boolean includeWarnings) { List<Pool> filteredPools = new LinkedList<>(); for (Pool p : pools) { ValidationResult result = activationKeyRules.runPoolValidationForActivationKey(key, p, null); <START> if (!result.hasErrorKeys() && (!result.hasWarnings() || includeWarnings)) { <END> filteredPools.add(p); } else if (log.isDebugEnabled()) { log.debug("Omitting pool due to failed rules: {}", p.getId()); if (result.hasErrors()) { log.debug("\tErrors: {}", result.getErrors()); } if (result.hasWarnings()) { log.debug("\tWarnings: {}", result.getWarnings()); } } } return filteredPools; }</code><technical_language>issue a new piece of data (errorKeys) added ValidationResult in addition errors, is account isSuccessful method. This work, I future-proof of isSuccessful method (which is elsewhere, in future move more code rules.js Java, bug too), leave this check simply alter ValidationResult.isSuccessful more correctly check errors errorKeys such: return !hasErrors() && !hasErrorKeys();</technical_language>

Target:
private List<Pool> filterPoolsForActKey(ActivationKey key, List<Pool> pools, boolean includeWarnings) { List<Pool> filteredPools = new LinkedList<>(); for (Pool p : pools) { ValidationResult result = activationKeyRules.runPoolValidationForActivationKey(key, p, null); if (result.isSuccessful() && (!result.hasWarnings() || includeWarnings)) { filteredPools.add(p); } else if (log.isDebugEnabled()) { log.debug("Omitting pool due to failed rules: {}", p.getId()); if (result.hasErrors()) { log.debug("\tErrors: {}", result.getErrors()); } if (result.hasWarnings()) { log.debug("\tWarnings: {}", result.getWarnings()); } } } return filteredPools; }
Source:
<code>public SeatmapResponse getSeatGroupByName(String groupname) { List<Seat> seatGroup = seatRepository.findBySeatGroupIgnoreCase(groupname); Map<String, List<Seat>> seatMapResponse = new HashMap<>(); <START> seatMapResponse.put(seatGroup.get(0).getSeatGroup(), seatGroup); <END> return new SeatmapResponse(seatMapResponse); }</code><technical_language>Border-case seatGroup is empty throws ArrayOutOfBounds error here. this is happen I undefined errors thrown</technical_language>

Target:
public SeatmapResponse getSeatGroupByName(String groupname) { List<Seat> seatGroup = seatRepository.findBySeatGroup(groupname); Map<String, List<Seat>> seatMapResponse = new HashMap<>(); seatMapResponse.put(groupname, seatGroup); return new SeatmapResponse(seatMapResponse); }
Source:
<code>private Collection<Address> getCommitNodes(TxInvocationContext ctx) { LocalTransaction localTx = (LocalTransaction) ctx.getCacheTransaction(); LocalizedCacheTopology cacheTopology = dm.getCacheTopology(); Collection<Address> affectedNodes = <START> isReplicated ? null : cacheTopology.getWriteOwners((Collection<Object>) ctx.getAffectedKeys()); <END> return localTx.getCommitNodes(affectedNodes, cacheTopology); }</code><technical_language>need cast</technical_language>

Target:
private Collection<Address> getCommitNodes(TxInvocationContext ctx) { LocalTransaction localTx = (LocalTransaction) ctx.getCacheTransaction(); LocalizedCacheTopology cacheTopology = dm.getCacheTopology(); Collection<Address> affectedNodes = isReplicated ? null : cacheTopology.getWriteOwners(ctx.getAffectedKeys()); return localTx.getCommitNodes(affectedNodes, cacheTopology); }
Source:
<code>protected boolean checkUserPasswordValid(Object credential) throws UserStoreException { if (!isSecureCall.get()) { Class argTypes[] = new Class[]{Object.class}; Object object = callSecure("checkUserPasswordValid", new Object[]{credential}, argTypes); return (Boolean) object; } if (credential == null) { return false; } Secret credentialObj; try { credentialObj = Secret.getSecret(credential); } catch (UnsupportedSecretTypeException e) { throw new UserStoreException("Unsupported credential type", e); } try { if (credentialObj.getChars().length < 1) { return false; } String regularExpression = realmConfig.getUserStoreProperty(UserCoreConstants.RealmConfig.PROPERTY_JAVA_REG_EX); if (regularExpression != null) { if (isFormatCorrect(regularExpression, credentialObj.getChars())) { return true; } else { if (log.isDebugEnabled()) { log.debug("Submitted password does not match with the regex " + regularExpression); } return false; } } <START> return regularExpression == null; <END> } finally { credentialObj.clear(); } }</code><technical_language>return true;. **if** statement return a result for null case, this point **regularExpression** null</technical_language>

Target:
protected boolean checkUserPasswordValid(Object credential) throws UserStoreException { if (!isSecureCall.get()) { Class argTypes[] = new Class[]{Object.class}; Object object = callSecure("checkUserPasswordValid", new Object[]{credential}, argTypes); return (Boolean) object; } if (credential == null) { return false; } Secret credentialObj; try { credentialObj = Secret.getSecret(credential); } catch (UnsupportedSecretTypeException e) { throw new UserStoreException("Unsupported credential type", e); } try { if (credentialObj.getChars().length < 1) { return false; } String regularExpression = realmConfig.getUserStoreProperty(UserCoreConstants.RealmConfig.PROPERTY_JAVA_REG_EX); if (regularExpression != null) { if (isFormatCorrect(regularExpression, credentialObj.getChars())) { return true; } else { if (log.isDebugEnabled()) { log.debug("Submitted password does not match with the regex " + regularExpression); } return false; } } return true; } finally { credentialObj.clear(); } }
Source:
<code>public void updateFile(final String bucket, final String key, final int startingLine) { final String etag = lockDao.acquire(key); if (etag == null) { logger.info("Failed to acquire lock for file " + key + ". Skipping it..."); return; } if (fileStatusDao.isCompleted(key)) { lockDao.release(key, etag); logger.info("File " + key + " already processed. Skipping it..."); return; } S3Object file = s3Client.getObject(bucket, key); try { repoUpdateService.update(file.getObjectContent(), key, startingLine, new UpdateFileCallback() { @Override public void call(UpdateResult result) { if (UpdateStatus.SUCCEEDED.equals(result.getStatus())) { fileStatusDao.setCompleted(key); } else { <START> fileStatusDao.setFailed(key, result.getLineCount()); <END> } } }, new UpdateRecordCallback() { @Override public void handle(WriteRecordResult result) { } }); } finally { try { file.close(); lockDao.release(key, etag); } catch (Exception e) { throw new RuntimeException(e); } } }</code><technical_language>remove update of failures file status dao. Failures dealt new UpdateRecordCallback</technical_language>

Target:
public void updateFile(final String bucket, final String key, final int startingLine) { final String etag = lockDao.acquire(key); if (etag == null) { logger.info("Failed to acquire lock for file " + key + ". Skipping it..."); return; } if (fileStatusDao.isCompleted(key)) { lockDao.release(key, etag); logger.info("File " + key + " already processed. Skipping it..."); return; } S3Object file = s3Client.getObject(bucket, key); try { repoUpdateService.update(file.getObjectContent(), key, startingLine, new UpdateFileCallback() { @Override public void call(UpdateResult result) { if (UpdateStatus.SUCCEEDED.equals(result.getStatus())) { fileStatusDao.setCompleted(key); } } }, new UpdateRecordCallback() { @Override public void handle(WriteRecordResult result) { failedRecordDao.put(result); } }); } finally { try { file.close(); lockDao.release(key, etag); } catch (Exception e) { throw new RuntimeException(e); } } }
Source:
<code><START> protected Color <END> createColor(IPreferenceStore store, String key, Display display) { RGB rgb= null; if (store.contains(key)) { if (store.isDefault(key)) rgb= PreferenceConverter.getDefaultColor(store, key); else rgb= PreferenceConverter.getColor(store, key); if (rgb != null) return new Color(display, rgb); } return null; }</code><technical_language>this is a breaking change. GO</technical_language>

Target:
private Color createColor(IPreferenceStore store, String key, Display display) { RGB rgb= null; if (store.contains(key)) { if (store.isDefault(key)) rgb= PreferenceConverter.getDefaultColor(store, key); else rgb= PreferenceConverter.getColor(store, key); if (rgb != null) return new Color(display, rgb); } return null; }
Source:
<code>public static Double distance(Object from, Object to) { String unpackedFrom = (String)FunctionUtils.unpack(from); String unpackedTo = (String)FunctionUtils.unpack(to); if (unpackedFrom == null || "".equals(unpackedFrom) || unpackedTo == null || "".equals(unpackedTo)) { return new Double(-1.0); } try { GeoPointData castedFrom = new GeoPointData().cast(new UncastData(unpackedFrom)); GeoPointData castedTo = new GeoPointData().cast(new UncastData(unpackedTo)); return new Double(GeoPointUtils.computeDistanceBetween(castedFrom, castedTo)); } catch (NumberFormatException e) { <START> throw new XPathTypeMismatchException("distance() function requires arguments containing numeric values only"); <END> } }</code><technical_language>useful display arguments in error message</technical_language>

Target:
public static Double distance(Object from, Object to) { String unpackedFrom = (String)FunctionUtils.unpack(from); String unpackedTo = (String)FunctionUtils.unpack(to); if (unpackedFrom == null || "".equals(unpackedFrom) || unpackedTo == null || "".equals(unpackedTo)) { return new Double(-1.0); } try { GeoPointData castedFrom = new GeoPointData().cast(new UncastData(unpackedFrom)); GeoPointData castedTo = new GeoPointData().cast(new UncastData(unpackedTo)); return new Double(GeoPointUtils.computeDistanceBetween(castedFrom, castedTo)); } catch (NumberFormatException e) { throw new XPathTypeMismatchException("distance() function requires arguments containing " + "numeric values only, but received arguments: " + unpackedFrom + " and " + unpackedTo); } }
Source:
<code>private MsgType getNextMsgType(Map<String, MsgType> msgTypes) { <START> try <END> { return msgTypes.values().iterator().next(); } catch(NoSuchElementException ex) { throw new RuntimeException("Message type not found. Check the MsgType.xml file.", ex); } }</code><technical_language>Code style: try { } catch { }</technical_language>

Target:
private MsgType getNextMsgType(Map<String, MsgType> msgTypes) { Iterator<MsgType> it = msgTypes.values().iterator(); if(it.hasNext()) { return it.next(); } else { throw new RuntimeException("Message type not found. Check the MsgType.xml file."); } }
Source:
<code>private void showRelatedIssueOrPR() { <START> TurboIssue issue = listView.getSelectedItem().get(); <END> Optional<String> relatedIssueNumber = listView.getSelectedItem().get().isPullRequest() ? GithubURLPageElements.extractIssueNumber(listView.getSelectedItem().get().getDescription()) : ui.getBrowserComponent().getPRNumberFromIssue(); if (relatedIssueNumber.isPresent()){ ui.triggerEvent( new IssueSelectedEvent(issue.getRepoId(), Integer.parseInt(relatedIssueNumber.get()), panelIndex, issue.isPullRequest()) ); } }</code><technical_language>check if is a selected item. This NPE otherwise</technical_language>

Target:
private void showRelatedIssueOrPR() { if (!listView.getSelectedItem().isPresent()) return; TurboIssue issue = listView.getSelectedItem().get(); Optional<Integer> relatedIssueNumber = listView.getSelectedItem().get().isPullRequest() ? GithubURLPageElements.extractIssueNumber(listView.getSelectedItem().get().getDescription()) : ui.getBrowserComponent().getPRNumberFromIssue(); if (!relatedIssueNumber.isPresent()) return; ui.triggerEvent( new IssueSelectedEvent(issue.getRepoId(), relatedIssueNumber.get(), panelIndex, issue.isPullRequest()) ); }
Source:
<code>private static void handleCounterAspect(ITmfEvent event, ITmfStateSystemBuilder ss, ITmfCounterAspect aspect, int rootQuark) { int quark = (aspect instanceof GroupedCounterAspect) ? <START> ss.getQuarkRelativeAndAdd(rootQuark, ((GroupedCounterAspect) <END> aspect).getGroupIds()) : rootQuark; quark = ss.getQuarkRelativeAndAdd(quark, aspect.getName()); Long resolve = aspect.resolve(event); ss.modifyAttribute(event.getTimestamp().toNanos(), resolve == null ? TmfStateValue.nullValue() : TmfStateValue.newValueLong(resolve), quark); }</code><technical_language>please move fix this commit</technical_language>

Target:
private static void handleCounterAspect(ITmfEvent event, ITmfStateSystemBuilder ss, ITmfCounterAspect aspect, int rootQuark) { int quark = (aspect instanceof GroupedCounterAspect) ? ss.getQuarkRelativeAndAdd(rootQuark, ((GroupedCounterAspect) aspect).getGroupIds()) : rootQuark; quark = ss.getQuarkRelativeAndAdd(quark, aspect.getName()); Long eventContent = aspect.resolve(event); ss.modifyAttribute(event.getTimestamp().toNanos(), eventContent == null ? TmfStateValue.nullValue() : TmfStateValue.newValueLong(eventContent), quark); }
Source:
<code>private String stringifyMRElement(JsonElement element) { <START> String s = element.toString(); <END> if (element.isJsonObject()) { return s; } else { return s.substring(1, s.length() - 1); } }</code><technical_language>this throw exception if element is null? Also, renaming variable s show variable holds string representation of JSON element</technical_language>

Target:
private String stringifyMRElement(JsonElement element) { if (element != null) { String stringifiedElement = element.toString(); if (element.isJsonPrimitive() && element.getAsJsonPrimitive().isString()) { return stringifiedElement.substring(1, stringifiedElement.length() - 1); } else { return stringifiedElement; } } else { return null; } }
Source:
<code>public <START> XYAxis(org.eclipse.swtchart.IAxis <END> axis) { fAxis = axis; }</code><technical_language>needed. Is a decouple more need pass o.e.swtchart class? Adapter, resolver, consumer, how</technical_language>

Target:
private XYAxis(org.eclipse.swtchart.IAxis axis) { fAxis = axis; }
Source:
<code>public boolean shouldProcessRequestedCashAdvancesFromSaeData() { <START> return (getConcurParameterValue(ConcurParameterConstants.CONCUR_PROCESS_CASH_ADVANCES_FROM_SAE_DATA_IND).equalsIgnoreCase(KFSConstants.ParameterValues.YES)); <END> }</code><technical_language>null safe here, I suggest stringutils.equalsignorecase start expression constant</technical_language>

Target:
public boolean shouldProcessRequestedCashAdvancesFromSaeData() { return (StringUtils.equalsIgnoreCase(getConcurParameterValue(ConcurParameterConstants.CONCUR_PROCESS_CASH_ADVANCES_FROM_SAE_DATA_IND), KFSConstants.ParameterValues.YES)); }
Source:
<code>public ServiceBusReceiverClient buildClient() { return new ServiceBusReceiverClient(buildAsyncClient(), retryOptions.getTryTimeout(), <START> ServiceBusConstants.SHORT_TIMEOUT_BETWEEN_MESSAGES); <END> }</code><technical_language>this is passed in a parameter. specific a type of algorithm</technical_language>

Target:
public ServiceBusReceiverClient buildClient() { return new ServiceBusReceiverClient(buildAsyncClient(), retryOptions.getTryTimeout()); }
Source:
<code>public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { HttpServletRequest request = (HttpServletRequest) req; String requestURI = request.getRequestURI(); if (requestURI.startsWith(openmrsPath + "/module/fhir/rest/swagger.json")) { <START> String newURI = requestURI.replace("/openmrs/module/fhir/rest/swagger.json", "/ms/fhir/fhirDocServelet"); <END> req.getRequestDispatcher(newURI).forward(req, res); } else { chain.doFilter(req, res); } }</code><technical_language>move this strings constants constant class</technical_language>

Target:
public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { HttpServletRequest request = (HttpServletRequest) req; String requestURI = request.getRequestURI(); if (requestURI.startsWith(openmrsPath + FHIROmodConstants.OPENMRS_FHIR_SWAGGER_SHORT_PATH)) { String newURI = requestURI.replace(FHIROmodConstants.OPENMRS_FHIR_SWAGGER_LONG_PATH, FHIROmodConstants.OPENMRS_FHIR_SWAGGER_ORG_PATH); req.getRequestDispatcher(newURI).forward(req, res); } else { chain.doFilter(req, res); } }
Source:
<code>private MeasurementVariable addTermIdColumn(final TermId TermId, final VariableType VariableType, final String name, final boolean factor) { final MeasurementVariable MeasurementVariable = new MeasurementVariable(); MeasurementVariable.setName(StringUtils.isBlank(name) ? TermId.name() : name); MeasurementVariable.setAlias(TermId.name()); MeasurementVariable.setTermId(TermId.getId()); MeasurementVariable.setVariableType(VariableType); <START> MeasurementVariable.setFactor(true); <END> return MeasurementVariable; }</code><technical_language>@cuenyad factor variable</technical_language>

Target:
private MeasurementVariable addTermIdColumn(final TermId TermId, final VariableType VariableType, final String name, final boolean factor) { final MeasurementVariable MeasurementVariable = new MeasurementVariable(); MeasurementVariable.setName(StringUtils.isBlank(name) ? TermId.name() : name); MeasurementVariable.setAlias(TermId.name()); MeasurementVariable.setTermId(TermId.getId()); MeasurementVariable.setVariableType(VariableType); MeasurementVariable.setFactor(factor); return MeasurementVariable; }
Source:
<code>public void finish(TimePeriod timeout) { log.info("Finish wizard"); new FinishButton(this).click(); new WaitUntil(new ShellHasChildrenOrIsNotAvailable(getShell())); if(!getShell().isDisposed()){ try { ShellIsAvailable serverShell = new ShellIsAvailable("Server"); <START> new WaitUntil(serverShell); <END> new OkButton(new DefaultShell(serverShell.getResult())).click(); new WaitWhile(serverShell); } catch (WaitTimeoutExpiredException exc) { } new WaitWhile(new WindowIsAvailable(this), timeout); } new WaitWhile(new JobIsRunning(), timeout); }</code><technical_language>WaitUntil(serverShell, TimePeriod.DEFAULT, false) if wait's result is null (meaning shell found) continue (click ok..)</technical_language>

Target:
public void finish(TimePeriod timeout) { log.info("Finish wizard"); new FinishButton(this).click(); new WaitUntil(new ShellHasChildrenOrIsNotAvailable(getShell())); if(!getShell().isDisposed()){ ShellIsAvailable serverShell = new ShellIsAvailable("Server"); new WaitUntil(serverShell, TimePeriod.DEFAULT, false); if (serverShell.getResult() != null) { new OkButton(new DefaultShell(serverShell.getResult())).click(); new WaitWhile(serverShell); } new WaitWhile(new WindowIsAvailable(this), timeout); } new WaitWhile(new JobIsRunning(), timeout); }
Source:
<code>public DecimalFormat decimalFormat() { <START> return DecimalFormat.valueOf(getString(DECIMAL_FORMAT_CONFIG).toUpperCase(Locale.ROOT)); <END> }</code><technical_language>This is expensive do time</technical_language>

Target:
public DecimalFormat decimalFormat() { return decimalFormat; }
Source:
<code>private Set<AccountGroup.Id> queryForGroups(final DirContext ctx, final String username, LdapQuery.Result account) throws NamingException, AccountException { final HashMap<String, String> params = new HashMap<String, String>(); params.put(USERNAME, username); if (groupNeedsAccount) { if (account == null) { account = findAccount(ctx, username); } for (final String name : groupMemberQueryList.get(0).getParameters()) { params.put(name, account.get(name)); } } final Set<AccountGroup.Id> actual = new HashSet<AccountGroup.Id>(); for (LdapQuery groupMemberQuery : groupMemberQueryList) { for (LdapQuery.Result r : groupMemberQuery.query(ctx, params)) { <START> NamingEnumeration groups = r.getAll(memberField).getAll(); <END> while (groups.hasMore()) { final String name = String.valueOf(groups.next()); final AccountGroup group = groupCache.lookup(name); if (group != null && isLdapGroup(group)) { actual.add(group.getId()); } } } } if (actual.isEmpty()) { return Collections.emptySet(); } else { return Collections.unmodifiableSet(actual); } }</code><technical_language>This sense, querying for groups user is a member of right here. wanted do. I wanted do this loop get memberOf attribute account LdapQuery.Result object for of results, get group DN in directory, fetch name. common name of group in Gerrit, full LDAP NAME></technical_language>

Target:
private Set<AccountGroup.Id> queryForGroups(final DirContext ctx, final String username, LdapQuery.Result account) throws NamingException, AccountException { final HashMap<String, String> params = new HashMap<String, String>(); params.put(USERNAME, username); if (groupNeedsAccount) { if (account == null) { account = findAccount(ctx, username); } for (final String name : groupMemberQueryList.get(0).getParameters()) { params.put(name, account.get(name)); } } final Set<AccountGroup.Id> actual = new HashSet<AccountGroup.Id>(); for (LdapQuery groupMemberQuery : groupMemberQueryList) { for (LdapQuery.Result r : groupMemberQuery.query(ctx, params)) { NamingEnumeration groups = r.getAll(memberField).getAll(); while (groups.hasMore()) { final String dn = String.valueOf(groups.next()); try { String attrs[] = { "displayName" }; Attributes ldapGroup = ctx.getAttributes(dn, attrs); String name = String.valueOf(ldapGroup.get("displayName")); name = name.replace("displayName: ", ""); final AccountGroup group = groupCache.lookup(name); if (group != null && isLdapGroup(group)) { actual.add(group.getId()); } } catch (NamingException e) { } } } } if (actual.isEmpty()) { return Collections.emptySet(); } else { return Collections.unmodifiableSet(actual); } }
Source:
<code>private PortSelection get(String springPropertyName, String namedPort) { <START> PortSelection portSelection = get(springPropertyName, springPropertyName, PortSource.FROM_SPRING_PROPERTY); <END> if (!portSelection.hasValue() || "-1".equals(portSelection.getPayload())) { if (isKubernetes(environment)) { portSelection = get(springPropertyName, namedPort, PortSource.FROM_PORT_NAMED); } else { portSelection = get(springPropertyName, "PORT" + portIndex, PortSource.FROM_PORT_ORDINAL); portIndex++; } } return portSelection; }</code><technical_language>NAMED PORT first, core port of this PR</technical_language>

Target:
private PortSelection get(String springPropertyName, String namedPort) { PortSelection portSelection; if (isKubernetes(environment)) { portSelection = get(springPropertyName, namedPort, PortSource.FROM_PORT_NAMED); if (!portSelection.hasValue()) { portSelection = get(springPropertyName, springPropertyName, PortSource.FROM_SPRING_PROPERTY); } } else { portSelection = get(springPropertyName, springPropertyName, PortSource.FROM_SPRING_PROPERTY); if (!portSelection.hasValue() || "-1".equals(portSelection.getPayload())) { final String ordinalPortName = "PORT" + allocateNewPort(springPropertyName); portSelection = get(springPropertyName, ordinalPortName, PortSource.FROM_PORT_ORDINAL); } } return portSelection; }
Source:
<code>public UseClauseTree GROUP_USE_CLAUSE() { return b.<UseClauseTree>nonterminal(PHPLexicalGrammar.GROUP_USE_CLAUSE).is( f.groupUseClause( b.optional( <START> b.firstOf( <END> b.token(PHPKeyword.CONST), b.token(PHPKeyword.FUNCTION))), NAMESPACE_NAME(), b.optional( f.newTuple55( b.token(PHPKeyword.AS), b.token(PHPLexicalGrammar.IDENTIFIER))))); }</code><technical_language>@vilchik-elena firstOf() appears in USE_STATEMENT in GROUP_USE_STATEMENT. improve that</technical_language>

Target:
public UseClauseTree GROUP_USE_CLAUSE() { return b.<UseClauseTree>nonterminal(PHPLexicalGrammar.GROUP_USE_CLAUSE).is( f.groupUseClause( b.optional(USE_TYPE()), NAMESPACE_NAME(), b.optional( f.newTuple55( b.token(PHPKeyword.AS), b.token(PHPLexicalGrammar.IDENTIFIER))))); }
Source:
<code><START> private void checkSupportedVersion(IProgressMonitor monitor) throws GerritException { <END> Version version = getVersion(monitor); if (GerritVersion.isVersion26OrLater(version)) { throw new GerritException(NLS.bind("Gerrit {0} or later is not supported yet.", GerritVersion.VERSION_2_6)); } }</code><technical_language>Move GerritConfiguration</technical_language>

Target:
private void checkSupportedVersion(IProgressMonitor monitor) throws GerritException { Version version = getVersion(monitor); if (GerritVersion.isVersion26OrLater(version)) { throw new GerritException( NLS.bind("Gerrit {0} or later is not supported yet.", GerritVersion.VERSION_2_6_0)); } }
Source:
<code>private Image getTargetImage(Entity e){ <START> if(bv == null){ return null; }else { if (e.isDestroyed()) { return bv.getTilesetManager().wreckMarkerFor(e, -1); } else { return bv.getTilesetManager().imageFor(e); } } <END> }</code><technical_language>if (bv == null) { return null; } else if (e.isDestroyed()) { return bv.getTilesetManager().wreckMarkerFor(e, -1); } else { return bv.getTilesetManager().imageFor(e); }</technical_language>

Target:
private Image getTargetImage(Entity e){ if (bv == null) { return null; } else if (e.isDestroyed()) { return bv.getTilesetManager().wreckMarkerFor(e, -1); } else { return bv.getTilesetManager().imageFor(e); } }
Source:
<code><START> private boolean hasPhone(SurveyDB survey) { <END> Context context = PreferencesState.getInstance().getContext(); for (ValueDB value : survey.getValueDBs()) { if (value.getQuestionDB().getCode().equals( context.getString(R.string.phone_ownership_qc))) { return !(value.getOptionDB().getCode().equals( context.getString(R.string.no_phone_oc))); } } return false; }</code><technical_language>@manuelplazaspalacio improve performance of this a join? Is reason for it</technical_language>

Target:
private boolean hasPhone(SurveyDB survey) { Context context = PreferencesState.getInstance().getContext(); return !(survey.getOptionSelectedForQuestionCode( context.getString(R.string.phone_ownership_qc)).getName().equals( context.getString(R.string.no_phone_on))); }
Source:
<code>public synchronized List<Transaction> addPendingTransactions(List<Transaction> transactions) { int unknownTx = 0; List<Transaction> newPending = new ArrayList<>(); for (Transaction tx : transactions) { if (addNewTxIfNotExist(tx)) { unknownTx++; if (addPendingTransactionImpl(tx)) { newPending.add(tx); } } } logger.debug("Wire transaction list added: total: {}, new: {}, valid (added to pending): (current #of known txs: {})", transactions.size(), unknownTx, newPending, receivedTxs.size()); if (!newPending.isEmpty()) { this.publisher <START> .publish(new PendingTransactionsReceivedEvent(newPending)) <END> .publish(new PendingStateChangedEvent(PendingStateImpl.this)); } return newPending; }</code><technical_language>This event is deprecated in EthereumListener. I a good time bury it</technical_language>

Target:
public synchronized List<Transaction> addPendingTransactions(List<Transaction> transactions) { int unknownTx = 0; List<Transaction> newPending = new ArrayList<>(); for (Transaction tx : transactions) { if (addNewTxIfNotExist(tx)) { unknownTx++; if (addPendingTransactionImpl(tx)) { newPending.add(tx); } } } logger.debug("Wire transaction list added: total: {}, new: {}, valid (added to pending): (current #of known txs: {})", transactions.size(), unknownTx, newPending, receivedTxs.size()); if (!newPending.isEmpty()) { listener.onPendingTransactionsReceived(newPending); listener.onPendingStateChanged(this); } return newPending; }
Source:
<code>public void update(Session session, Row oldRow, Row newRow) { <START> if (compareRows(oldRow, newRow ) != 0) { <END> super.update(session, oldRow, newRow); } }</code><technical_language>rows identical other, place in sorting order missing something? If this method wider this lead usage of values NUMERIC, VARCHAR_IGNORECASE, TIMESTAMP TIME ZONE, some other data type distinct values compareTo( ) == 0</technical_language>

Target:
public void update(Session session, Row oldRow, Row newRow) { if (!rowsAreEqual(oldRow, newRow)) { super.update(session, oldRow, newRow); } }
Source:
<code>private SubPlan buildFragment(PlanNode root, FragmentProperties properties, PlanFragmentId fragmentId) { <START> Set<Symbol> dependencies = SymbolsExtractor.extractUnique(root); <END> List<PlanNodeId> schedulingOrder = new SchedulingOrderVisitor().getSchedulingOrder(root); boolean equals = properties.getPartitionedSources().equals(ImmutableSet.copyOf(schedulingOrder)); checkArgument(equals, "Expected scheduling order (%s) to contain an entry for all partitioned sources (%s)", schedulingOrder, properties.getPartitionedSources()); PlanFragment fragment = new PlanFragment( fragmentId, root, Maps.filterKeys(types, in(dependencies)), properties.getPartitioningHandle(), schedulingOrder, properties.getPartitioningScheme()); return new SubPlan(fragment, properties.getChildren()); }</code><technical_language>equivalent</technical_language>

Target:
private SubPlan buildFragment(PlanNode root, FragmentProperties properties, PlanFragmentId fragmentId) { Set<Symbol> dependencies = SymbolsExtractor.extractAll(root); List<PlanNodeId> schedulingOrder = new SchedulingOrderVisitor().getSchedulingOrder(root); boolean equals = properties.getPartitionedSources().equals(ImmutableSet.copyOf(schedulingOrder)); checkArgument(equals, "Expected scheduling order (%s) to contain an entry for all partitioned sources (%s)", schedulingOrder, properties.getPartitionedSources()); PlanFragment fragment = new PlanFragment( fragmentId, root, Maps.filterKeys(types, in(dependencies)), properties.getPartitioningHandle(), schedulingOrder, properties.getPartitioningScheme()); return new SubPlan(fragment, properties.getChildren()); }
Source:
<code>public void writeCopy(File file, byte[] key) { if (file.isFile() && file.exists()) { throw new IllegalArgumentException("The destination file must not exist"); } <START> if (key != null && key.length != 64) { <END> throw new IllegalArgumentException("Realm AES keys must be 64 bytes long"); } nativeWriteCopy(nativePtr, file.getAbsolutePath(), key); }</code><technical_language>key length checked object store</technical_language>

Target:
public void writeCopy(File file, byte[] key) { if (file.isFile() && file.exists()) { throw new IllegalArgumentException("The destination file must not exist"); } nativeWriteCopy(nativePtr, file.getAbsolutePath(), key); }
Source:
<code>public void badValueThrowsException() throws Exception { final Throwable exn = catchThrowable(() -> new SizeParam("10 kelvins", "degrees")); assertThat(exn).isInstanceOf(WebApplicationException.class); final Response response = ((WebApplicationException) exn).getResponse(); assertThat(response.getStatus()).isEqualTo(400); assertThat((ErrorMessage) response.getEntity()) <START> .isEqualTo(new ErrorMessage(400, "degrees is not a valid duration.")); <END> }</code><technical_language>s/duration/size/</technical_language>

Target:
public void badValueThrowsException() throws Exception { final Throwable exn = catchThrowable(() -> new SizeParam("10 kelvins", "degrees")); assertThat(exn).isInstanceOf(WebApplicationException.class); final Response response = ((WebApplicationException) exn).getResponse(); assertThat(response.getStatus()).isEqualTo(400); assertThat((ErrorMessage) response.getEntity()) .isEqualTo(new ErrorMessage(400, "degrees is not a valid size.")); }
Source:
<code>public void onResume() { <START> EventBusExt.getDefault().register(this); <END> titleListener.setTitle("Hub"); super.onResume(); String publicId = getArguments().getString(EXTRA_ID, null); if(publicId != null) { TaskQueue.loadQueueDefault(getActivity()).execute(new GetUserTask(publicId)); } else { TaskQueue.loadQueueDefault(getActivity()).execute( new DbGetUserTask(AppPrefs.getInstance(getActivity()).getCurrentUserId())); } }</code><technical_language>FIXME: Crash if leave this screen back. "Subscriber class org.dosomething.letsdothis.ui.fragments.HubFragment registered"</technical_language>

Target:
public void onResume() { if(! EventBusExt.getDefault().isRegistered(this)) { EventBusExt.getDefault().register(this); } titleListener.setTitle("Hub"); super.onResume(); String publicId = getArguments().getString(EXTRA_ID, null); if(publicId != null) { TaskQueue.loadQueueDefault(getActivity()).execute(new GetUserTask(publicId, true)); } else { DatabaseHelper.defaultDatabaseQueue(getActivity()).execute( new DbGetUserTask(AppPrefs.getInstance(getActivity()).getCurrentUserId())); } }
Source:
<code>public Long getUuid() { <START> return new Long(user.getArtId()); <END> }</code><technical_language>Long.valueOf() instead of new Long() - for performance reasons</technical_language>

Target:
public Long getUuid() { return Long.valueOf(user.getArtId()); }
Source:
<code>public void testIsWithinHammingDistanceExceptions(final String s1, final String s2, final int maxHammingDistance) { <START> Assert.assertEquals(StringUtil.hammingDistance(s1, s2), 0); <END> Assert.assertEquals(StringUtil.isWithinHammingDistance(s1, s2, maxHammingDistance), true); }</code><technical_language>This check case if throws exception. tests for case, (and asserts, call method directly), calls this another. Assert.assertThrows(IllegalArgumentException.class, () -> {StringUtil.hammingDistance(s1, s2);});</technical_language>

Target:
public void testIsWithinHammingDistanceExceptions(final String s1, final String s2, final int maxHammingDistance) { StringUtil.isWithinHammingDistance(s1, s2, maxHammingDistance); }
Source:
<code>public void testOtherFieldsNotValidatedInImport() { ImportVmParameters parameters = createParameters(); <START> String stringOf5000Chars = <END> RandomUtils.instance().nextNameString(BusinessEntitiesDefinitions.GENERAL_MAX_SIZE + 1); parameters.getVm().setUserDefinedProperties(stringOf5000Chars); parameters.setImportAsNewEntity(true); ImportVmCommand command = new ImportVmCommand(parameters); Set<ConstraintViolation<ImportVmParameters>> validate = ValidationUtils.getValidator().validate(parameters, command.getValidationGroups().toArray(new Class<?>[0])); assertTrue(validate.isEmpty()); parameters.getVm().setUserDefinedProperties(stringOf5000Chars); parameters.setImportAsNewEntity(false); command = new ImportVmCommand(parameters); validate = ValidationUtils.getValidator().validate(parameters, command.getValidationGroups().toArray(new Class<?>[0])); assertTrue(validate.isEmpty()); }</code><technical_language>Please correct if wrong, generated string is of size GENERAL_MAX_SIZE, 5000 (and is 4000 check, matter)</technical_language>

Target:
public void testOtherFieldsNotValidatedInImport() { ImportVmParameters parameters = createParameters(); String tooLongString = RandomUtils.instance().nextPropertyString(BusinessEntitiesDefinitions.GENERAL_MAX_SIZE + 1); parameters.getVm().setUserDefinedProperties(tooLongString); parameters.setImportAsNewEntity(true); ImportVmCommand command = new ImportVmCommand(parameters); Set<ConstraintViolation<ImportVmParameters>> validate = ValidationUtils.getValidator().validate(parameters, command.getValidationGroups().toArray(new Class<?>[0])); assertTrue(validate.isEmpty()); parameters.getVm().setUserDefinedProperties(tooLongString); parameters.setImportAsNewEntity(false); command = new ImportVmCommand(parameters); validate = ValidationUtils.getValidator().validate(parameters, command.getValidationGroups().toArray(new Class<?>[0])); assertTrue(validate.isEmpty()); }
Source:
<code>EtcdMembersResponse( @JsonProperty("members") List<MemberInfo> members) { <START> this.members = members; <END> }</code><technical_language>Please Collections.unmodifiableList</technical_language>

Target:
EtcdMembersResponse( @JsonProperty("members") List<MemberInfo> members) { this.members = Collections.unmodifiableList(members); }
Source:
<code>private void teardown() { if (torndown) { return; } torndown = true; <START> serverHelperExecutor.submit(new Runnable() <END> { @Override public void run() { if (publisherChannels.containsValue(this)) { final Iterator<Entry<String, AbstractLengthPrependerClient>> i = publisherChannels.entrySet().iterator(); while (i.hasNext()) { if (i.next().getValue() == Publisher.this) { i.remove(); break; } } } ArrayList<LogicalNode> list = new ArrayList<>(); String publisherIdentifier = datalist.getIdentifier(); Iterator<LogicalNode> iterator = subscriberGroups.values().iterator(); while (iterator.hasNext()) { LogicalNode ln = iterator.next(); if (publisherIdentifier.equals(ln.getUpstream())) { list.add(ln); } } for (LogicalNode ln : list) { logger.debug("Booting logical node from publisher", ln); ln.boot(); } } }); }</code><technical_language>lambda () -></technical_language>

Target:
private void teardown() { if (torndown) { return; } torndown = true; serverHelperExecutor.submit(() -> { String publisherIdentifier = datalist.getIdentifier(); if (!publisherChannels.remove(publisherIdentifier, Publisher.this)) { logger.warn("{} could not be removed from channels", Publisher.this); } subscriberGroups.forEach((type, ln) -> { if (publisherIdentifier.equals(ln.getUpstream())) { logger.debug("Booting logical node from publisher", ln); ln.boot(); } }); }); }