auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
<code>private String loadProjectStructureFromTargets( @NotNull Consumer<String> statusConsumer, @Nullable ProcessAdapter processAdapter ) throws IOException, ExecutionException { final File outputFile = FileUtil.createTempFile("pants_depmap_run", ".out"); final GeneralCommandLine command = getCommand(outputFile, statusConsumer); statusConsumer.consume("Exporting Pants project into IDEA format..."); PantsMetrics.markExportStart(); <START> final ProcessOutput processOutput = getProcessOutput(command); <END> PantsMetrics.markExportEnd(); if (processOutput.getStdout().contains("no such option")) { throw new ExternalSystemException("Pants doesn't have necessary APIs. Please upgrade your pants!"); } if (processOutput.checkSuccess(LOG)) { return FileUtil.loadFile(outputFile); } else { throw new PantsExecutionException("Failed to update the project!", command.getCommandLineString("pants"), processOutput); } }</code><technical_language>reason removing processAdapter</technical_language>

Target:
private String loadProjectStructureFromTargets( @NotNull Consumer<String> statusConsumer, @Nullable ProcessAdapter processAdapter ) throws IOException, ExecutionException { final File outputFile = FileUtil.createTempFile("pants_depmap_run", ".out"); final GeneralCommandLine command = getCommand(outputFile, statusConsumer); statusConsumer.consume("Resolving dependencies..."); PantsMetrics.markExportStart(); final ProcessOutput processOutput = getProcessOutput(command); PantsMetrics.markExportEnd(); if (processOutput.getStdout().contains("no such option")) { throw new ExternalSystemException("Pants doesn't have necessary APIs. Please upgrade your pants!"); } if (processOutput.checkSuccess(LOG)) { return FileUtil.loadFile(outputFile); } else { throw new PantsExecutionException("Failed to update the project!", command.getCommandLineString("pants"), processOutput); } }
Source:
<code>public boolean configureAndStart(MediaFormat format, TestSurface surface) { mSurface = surface; Log.i(TAG, "configure(" + format + ", " + mSurface.getSurface() + ")"); try{ mCodec.configure(format, mSurface.getSurface(), null , 0 ); } catch (Exception e){ Log.i(TAG, "Unsupported Codec"); return false; } Log.i(TAG, "start"); mCodec.start(); mInputBuffers = mCodec.getInputBuffers(); mOutputBuffers = mCodec.getOutputBuffers(); Log.i(TAG, "configured " + mInputBuffers.length + " input[" + mInputBuffers[0].capacity() + "] and " + mOutputBuffers.length + "output[" + (mOutputBuffers[0] == null ? null : mOutputBuffers[0].capacity()) + "]"); mQueuedEos = false; <START> return true; <END> }</code><technical_language>set true</technical_language>

Target:
public boolean configureAndStart(MediaFormat format, TestSurface surface) { mSurface = surface; Log.i(TAG, "configure(" + format + ", " + mSurface.getSurface() + ")"); try{ mCodec.configure(format, mSurface.getSurface(), null , 0 ); } catch (Exception e){ Log.i(TAG, "Unsupported Codec"); return false; } Log.i(TAG, "start"); mCodec.start(); mInputBuffers = mCodec.getInputBuffers(); mOutputBuffers = mCodec.getOutputBuffers(); Log.i(TAG, "configured " + mInputBuffers.length + " input[" + mInputBuffers[0].capacity() + "] and " + mOutputBuffers.length + "output[" + (mOutputBuffers[0] == null ? null : mOutputBuffers[0].capacity()) + "]"); mQueuedEos = false; mConfigured = true; return true; }
Source:
<code>public static String getSamtoolsBin() { <START> final String samtoolsPath = System.getenv(SAMTOOLS_BIN_PROPERTY); <END> return samtoolsPath == null ? "/usr/local/bin/samtools" : samtoolsPath; }</code><technical_language>docs excludes executable name, doesn't</technical_language>

Target:
public static String getSamtoolsBin() { final String samtoolsPath = System.getenv(SAMTOOLS_BINARY_ENV_VARIABLE); return samtoolsPath == null ? "/usr/local/bin/samtools" : samtoolsPath; }
Source:
<code>private MessageActionDTO handleAction_Process(UserDTO actingUser, BuddyInfoChangeMessage messageEntity, MessageActionDTO requestPayload) { if (messageEntity.getRelatedUserAnonymizedID().isPresent()) { <START> buddyService.updateBuddyInfo(actingUser.getID(), messageEntity.getRelatedUserAnonymizedID().get(), <END> messageEntity.getNewNickname()); } messageEntity = updateMessageStatusAsProcessed(messageEntity); return MessageActionDTO.createInstanceActionDone(theDTOFactory.createInstance(actingUser, messageEntity)); }</code><technical_language>call this updateNickname, does</technical_language>

Target:
private MessageActionDTO handleAction_Process(UserDTO actingUser, BuddyInfoChangeMessage messageEntity, MessageActionDTO requestPayload) { if (messageEntity.getRelatedUserAnonymizedID().isPresent()) { buddyService.updateBuddyUserInfo(actingUser.getID(), messageEntity.getRelatedUserAnonymizedID().get(), messageEntity.getNewNickname()); } messageEntity = updateMessageStatusAsProcessed(messageEntity); return MessageActionDTO.createInstanceActionDone(theDTOFactory.createInstance(actingUser, messageEntity)); }
Source:
<code>public void onViewStateRestored(Bundle savedInstanceState) { String stopId = savedInstanceState.getString(MapParams.STOP_ID); if (stopId == null) { float mapZoom = savedInstanceState.getFloat(MapParams.ZOOM, MapParams.DEFAULT_ZOOM); if (mapZoom != MapParams.DEFAULT_ZOOM) { mFragment.getMapView().setZoom(mapZoom); } double lat = savedInstanceState.getDouble(MapParams.CENTER_LAT); double lon = savedInstanceState.getDouble(MapParams.CENTER_LON); <START> if (lat != 0d && lon != 0d) { <END> Location location = LocationUtils.makeLocation(lat, lon); mFragment.getMapView().setMapCenter(location, true, false); } } }</code><technical_language>This be: if (lat != 0.0d && lon != 0.0d) { Android docs for Bundle say: > Returns key, 0.0 if mapping of desired type exists for key. equivalent, sure... :)</technical_language>

Target:
public void onViewStateRestored(Bundle savedInstanceState) { String stopId = savedInstanceState.getString(MapParams.STOP_ID); if (stopId == null) { float mapZoom = savedInstanceState.getFloat(MapParams.ZOOM, MapParams.DEFAULT_ZOOM); if (mapZoom != MapParams.DEFAULT_ZOOM) { mFragment.getMapView().setZoom(mapZoom); } double lat = savedInstanceState.getDouble(MapParams.CENTER_LAT); double lon = savedInstanceState.getDouble(MapParams.CENTER_LON); if (lat != 0.0d && lon != 0.0d) { Location location = LocationUtils.makeLocation(lat, lon); mFragment.getMapView().setMapCenter(location, false, false); } } }
Source:
<code>public void shouldReturnNotEnrolledWhenWrongLookupNameForProgramEnrollment() { String className = ProgramEnrollment.class.getSimpleName(); Map<String, String> lookupFields = new HashMap<>(); lookupFields.put(PATIENT_UUID, DEFAULT_UUID); lookupFields.put(PROGRAM_NAME, PROGRAM_DEFAULT_NAME); Object object = taskDataProvider.lookup(className + '-' + CONFIG_NAME, "wrongLookupName", lookupFields); <START> assertEquals(false, ((ProgramEnrollment) object).isEnrolled()); <END> assertEquals(ProgramEnrollment.NOT_ENROLLED, ((ProgramEnrollment) object).getEnrolledString()); verifyZeroInteractions(programEnrollmentService); }</code><technical_language>assertFalse</technical_language>

Target:
public void shouldReturnNotEnrolledWhenWrongLookupNameForProgramEnrollment() { String className = ProgramEnrollment.class.getSimpleName(); Map<String, String> lookupFields = new HashMap<>(); lookupFields.put(PATIENT_UUID, DEFAULT_UUID); lookupFields.put(PROGRAM_NAME, PROGRAM_DEFAULT_NAME); Object object = taskDataProvider.lookup(className + '-' + CONFIG_NAME, "wrongLookupName", lookupFields); assertTrue(object instanceof ProgramEnrollment); ProgramEnrollment actual = (ProgramEnrollment) object; assertFalse(actual.isEnrolled()); assertEquals(ProgramEnrollment.NOT_ENROLLED, actual.getEnrolledString()); assertNull(actual.getCurrentState()); verifyZeroInteractions(programEnrollmentService); }
Source:
<code><START> public QueryWithParams(Query query, Object[] params) { <END> this(query, params, null); }</code><technical_language>Do public methods</technical_language>

Target:
QueryWithParams(Query query, Object[] params) { this(query, params, null); }
Source:
<code>public InstanceProcess createProcess(Command command, String outputChannel) throws MachineException { final Integer pid = pidSequence.getAndIncrement(); <START> final InstanceProcess process = dockerMachineFactory.createProcess(container, <END> command.getName(), command.getCommandLine(), command.getType(), outputChannel, String.format(PID_FILE_TEMPLATE, pid), pid); machineProcesses.put(pid, process); return process; }</code><technical_language>Command instead of separate parameters</technical_language>

Target:
public InstanceProcess createProcess(Command command, String outputChannel) throws MachineException { final Integer pid = pidSequence.getAndIncrement(); final InstanceProcess process = dockerMachineFactory.createProcess(command, container, outputChannel, String.format(PID_FILE_TEMPLATE, pid), pid); machineProcesses.put(pid, process); return process; }
Source:
<code>public Attribute mergeAttributeValue(PerunSession sess, Member member, Attribute attribute) throws InternalErrorException, WrongAttributeValueException, WrongReferenceAttributeValueException, WrongAttributeAssignmentException { if (attribute.getType().equals(ArrayList.class.getName()) || attribute.getType().equals(BeansUtils.largeArrayListClassName)) { Attribute storedAttribute = null; try { storedAttribute = getPerunBl().getAttributesManagerBl().getAttribute(sess, member, attribute.getName()); } catch (AttributeNotExistsException e) { throw new ConsistencyErrorException(e); } convertEmptyAttrValueToNull(attribute); if(attribute.getValue() == null) return storedAttribute; <START> if (storedAttribute != null) { <END> ArrayList<String> updatedList = (ArrayList<String>) storedAttribute.getValue(); if (updatedList != null) { for (String value : ((ArrayList<String>) attribute.getValue())) { if (!updatedList.contains(value)) { updatedList.add(value); } } attribute.setValue(updatedList); } else { attribute.setValue(attribute.getValue()); } } getPerunBl().getAttributesManagerBl().setAttribute(sess, member, attribute); } else if (attribute.getType().equals(LinkedHashMap.class.getName())) { Attribute storedAttribute = null; try { storedAttribute = getPerunBl().getAttributesManagerBl().getAttribute(sess, member, attribute.getName()); } catch (AttributeNotExistsException e) { throw new ConsistencyErrorException(e); } if(attribute.getValue() == null) return storedAttribute; if (storedAttribute != null) { LinkedHashMap<String, String> updatedMap = (LinkedHashMap<String, String>) storedAttribute.getValue(); LinkedHashMap<String, String> receivedMap = (LinkedHashMap<String, String>) attribute.getValue(); if (updatedMap != null) { if (receivedMap != null) { updatedMap.putAll(receivedMap); attribute.setValue(updatedMap); } } else { attribute.setValue(receivedMap); } } getPerunBl().getAttributesManagerBl().setAttribute(sess, member, attribute); } else { getPerunBl().getAttributesManagerBl().setAttribute(sess, member, attribute); } return attribute; }</code><technical_language>is storedAttribute null</technical_language>

Target:
public Attribute mergeAttributeValue(PerunSession sess, Member member, Attribute attribute) throws InternalErrorException, WrongAttributeValueException, WrongReferenceAttributeValueException, WrongAttributeAssignmentException { return this.mergeAttributeValue(sess, attribute, member); }
Source:
<code>protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException { MatchResult matcher = this.redirectMatcher.matcher(request); if (!matcher.isMatch()) { filterChain.doFilter(request, response); return; } String registrationId = matcher.getVariables().get("registrationId"); RelyingPartyRegistration relyingParty = this.relyingPartyRegistrationRepository.findByRegistrationId(registrationId); if (relyingParty == null) { <START> response.sendError(HttpServletResponse.SC_NOT_FOUND); <END> return; } if (this.logger.isDebugEnabled()) { this.logger.debug(format("Creating SAML2 SP Authentication Request for IDP[%s]", relyingParty.getRegistrationId())); } Saml2AuthenticationRequestContext authnRequestCtx = createRedirectAuthenticationRequestContext(relyingParty, request); if (relyingParty.getIdpSsoConfiguration().getBinding() == Saml2MessageBinding.REDIRECT) { sendRedirect(response, authnRequestCtx); } else { sendPost(response, authnRequestCtx); } }</code><technical_language>I this a 401 mitigate enumeration. Further, I find a place in Spring Security returns a 404 in similar circumstances</technical_language>

Target:
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException { MatchResult matcher = this.redirectMatcher.matcher(request); if (!matcher.isMatch()) { filterChain.doFilter(request, response); return; } String registrationId = matcher.getVariables().get("registrationId"); RelyingPartyRegistration relyingParty = this.relyingPartyRegistrationRepository.findByRegistrationId(registrationId); if (relyingParty == null) { response.sendError(HttpServletResponse.SC_UNAUTHORIZED); return; } if (this.logger.isDebugEnabled()) { this.logger.debug(format("Creating SAML2 SP Authentication Request for IDP[%s]", relyingParty.getRegistrationId())); } Saml2AuthenticationRequestContext authnRequestCtx = createRedirectAuthenticationRequestContext(relyingParty, request); if (relyingParty.getProviderDetails().getBinding() == Saml2MessageBinding.REDIRECT) { sendRedirect(response, authnRequestCtx); } else { sendPost(response, authnRequestCtx); } }
Source:
<code>protected String[] getGDBCommandLineArray() { List<String> gdbCommandLine = new ArrayList<String>(); gdbCommandLine.add(getGDBPath().toOSString()); gdbCommandLine.add("--interpreter"); gdbCommandLine.add("mi2"); gdbCommandLine.add("--nx"); <START> return gdbCommandLine.toArray(new String[gdbCommandLine.size()]); <END> }</code><technical_language>I easily avoid a list here. about: protected String[] getGDBCommandLineArray() { // goal is options absolute minimum. // configuration done in final launch sequence // allow for more flexibility. return new String[] { getGDBPath().toOSString(), // This spaces "--interpreter", //$NON-NLS-1$ // currently work MI version 2. 'mi' // points latest MI version, while want mi2 specifically. "mi2", //$NON-NLS-1$ // read gdbinit file here. is read explicitly in // LaunchSequence easier customize. "--nx"}; //$NON-NLS-1$ }</technical_language>

Target:
protected String[] getGDBCommandLineArray() { return new String[] { getGDBPath().toOSString(), "--interpreter", "mi2", "--nx" }; }
Source:
<code>public void shouldReturnNotEnrolledWhenProgramEnrollmentNotFoundForLookupByMotechIdAndProgramName() { String className = ProgramEnrollment.class.getSimpleName(); Map<String, String> lookupFields = new HashMap<>(); lookupFields.put(PATIENT_MOTECH_ID, DEFAULT_MOTECH_ID); lookupFields.put(PROGRAM_NAME, PROGRAM_ANOTHER_NAME); when(programEnrollmentService.getProgramEnrollmentByPatientMotechId(eq(CONFIG_NAME), eq(DEFAULT_MOTECH_ID))) .thenReturn(prepareProgramEnrollments()); Object object = taskDataProvider.lookup(className + '-' + CONFIG_NAME, BY_MOTECH_ID_AND_PROGRAM_NAME, lookupFields); verify(programEnrollmentService).getProgramEnrollmentByPatientMotechId(eq(CONFIG_NAME), eq(DEFAULT_MOTECH_ID)); <START> assertEquals(false, ((ProgramEnrollment) object).isEnrolled()); <END> assertEquals(ProgramEnrollment.NOT_ENROLLED, ((ProgramEnrollment) object).getEnrolledString()); }</code><technical_language>assertFalse</technical_language>

Target:
public void shouldReturnNotEnrolledWhenProgramEnrollmentNotFoundForLookupByMotechIdAndProgramName() { String className = ProgramEnrollment.class.getSimpleName(); Map<String, String> lookupFields = new HashMap<>(); lookupFields.put(PATIENT_MOTECH_ID, DEFAULT_MOTECH_ID); lookupFields.put(PROGRAM_NAME, PROGRAM_ANOTHER_NAME); when(programEnrollmentService.getProgramEnrollmentByPatientMotechId(eq(CONFIG_NAME), eq(DEFAULT_MOTECH_ID))) .thenReturn(prepareProgramEnrollments()); Object object = taskDataProvider.lookup(className + '-' + CONFIG_NAME, BY_MOTECH_ID_AND_PROGRAM_NAME, lookupFields); verify(programEnrollmentService).getProgramEnrollmentByPatientMotechId(eq(CONFIG_NAME), eq(DEFAULT_MOTECH_ID)); assertTrue(object instanceof ProgramEnrollment); ProgramEnrollment actual = (ProgramEnrollment) object; assertFalse(actual.isEnrolled()); assertEquals(ProgramEnrollment.NOT_ENROLLED, actual.getEnrolledString()); assertNull(actual.getCurrentState()); }
Source:
<code>public void run() { <START> LOG.trace("BacklogMetricEmitter running for entities"); <END> executor = new ScheduledThreadPoolExecutor(10); List<Future> futures = new ArrayList<>(); try { for (Entity entity : entityBacklogs.keySet()) { futures.add(executor.submit(new BacklogCalcService(entity, entityBacklogs.get(entity)))); } waitForFuturesToComplete(futures); } finally { executor.shutdown(); } }</code><technical_language>Intentional change. originial</technical_language>

Target:
public void run() { LOG.debug("BacklogMetricEmitter running for entities"); executor = new ScheduledThreadPoolExecutor(10); List<Future> futures = new ArrayList<>(); try { for (Entity entity : entityBacklogs.keySet()) { futures.add(executor.submit(new BacklogCalcService(entity, entityBacklogs.get(entity)))); } waitForFuturesToComplete(futures); } finally { executor.shutdown(); } }
Source:
<code>public void start(Job project, boolean newInstance) { logger.debug("Start project: {}", project); super.start(project, newInstance); initializeServerName(); initializeTriggerOnEvents(); try { addThisTriggerAsListener(project); } catch (IllegalStateException e) { logger.error("I am too early!", e); } if (dynamicTriggerConfiguration) { <START> updateTriggerConfigURL(); <END> gerritTriggerTimerTask = new GerritTriggerTimerTask(this); } GerritProjectList.removeTriggerFromProjectList(this); }</code><technical_language>This severely increase Jenkins startup job save times. need find a approach solving this problem. For example adding a flag dynamicGerritProjects is updated isInteresting wait for flag clear</technical_language>

Target:
public void start(Job project, boolean newInstance) { logger.debug("Start project: {}", project); super.start(project, newInstance); initializeServerName(); initializeTriggerOnEvents(); try { addThisTriggerAsListener(project); } catch (IllegalStateException e) { logger.error("I am too early!", e); } if (dynamicTriggerConfiguration) { logger.debug("Start project: {}; dynamic project list; setting latch to 1", project); projectListIsReady = new CountDownLatch(1); gerritTriggerTimerTask = new GerritTriggerTimerTask(this); } else { logger.debug("Start project: {}; static project list; setting latch to 0", project); projectListIsReady = new CountDownLatch(0); } GerritProjectList.removeTriggerFromProjectList(this); }
Source:
<code>public RealmResults<E> freeze() { if (!isValid()) { <START> throw new IllegalStateException("Only valid, managed RealmLists can be frozen."); <END> } BaseRealm frozenRealm = realm.freeze(); OsResults frozenResults = osResults.freeze(); if (className != null) { return new RealmResults<>(frozenRealm, frozenResults, className); } else { return new RealmResults<>(frozenRealm, frozenResults, classSpec); } }</code><technical_language>suggestion throw new IllegalStateException("Only valid, managed RealmResults frozen.");</technical_language>

Target:
public RealmResults<E> freeze() { if (!isValid()) { throw new IllegalStateException("Only valid, managed RealmResults can be frozen."); } BaseRealm frozenRealm = realm.freeze(); OsResults frozenResults = osResults.freeze(frozenRealm.sharedRealm); if (className != null) { return new RealmResults<>(frozenRealm, frozenResults, className); } else { return new RealmResults<>(frozenRealm, frozenResults, classSpec); } }
Source:
<code>private String toJSONString() { JSONStringer js = new JSONStringer(); try { js.object(); js.key(JSON_TOKENCOUNT_KEY).value(m_tokenCount); js.key(JSON_TOKENPARTITION_KEY).object(); for (Map.Entry<Integer, Integer> entry : m_tokensMap.get().entrySet()) { js.key(entry.getKey().toString()).value(entry.getValue()); } js.endObject().endObject(); <START> }catch (JSONException e) { <END> throw new RuntimeException("Failed to serialized Hashinator Configuration to JSON.", e); } return js.toString(); }</code><technical_language>Nitpick: missing a space catch</technical_language>

Target:
private String toJSONString() { JSONStringer js = new JSONStringer(); try { js.object(); for (Map.Entry<Integer, Integer> entry : m_tokensMap.get().entrySet()) { js.key(entry.getKey().toString()).value(entry.getValue()); } js.endObject(); } catch (JSONException e) { throw new RuntimeException("Failed to serialize Hashinator Configuration to JSON.", e); } return js.toString(); }
Source:
<code>public boolean match(int endFlag) { if (endFlag == '"') { quoting = !quoting; } if (!quoting) { boolean started = equalsIgnoreCase(codeReader.peek(startChars.length), startChars); if (started) { nesting++; } else { <START> boolean ended = ArrayUtils.isEquals(codeReader.peek(endChars.length), endChars); <END> if (ended) { nesting--; return nesting < 0; } } } return false; }</code><technical_language>ArrayUtils.isEquals equalsIgnoreCase in line 111</technical_language>

Target:
public boolean match(int endFlag) { boolean result = false; if (endFlag == '"') { quoting = !quoting; } if (!quoting) { if (equalsIgnoreCase(codeReader.peek(startChars.length), startChars)) { nesting++; } else if (equalsIgnoreCase(codeReader.peek(endChars.length), endChars)) { nesting--; result = nesting < 0; } } return result; }
Source:
<code>public Result apply(AggregationNode aggregation, Captures captures, Context context) { Lookup lookup = context.getLookup(); PlanNodeIdAllocator idAllocator = context.getIdAllocator(); Session session = context.getSession(); Optional<PlanNode> rewrittenSource = recurseToPartial(lookup.resolve(aggregation.getSource()), lookup, idAllocator); if (!rewrittenSource.isPresent()) { return Result.empty(); } PlanNode source = rewrittenSource.get(); if (getTaskConcurrency(session) > 1) { source = ExchangeNode.partitionedExchange( idAllocator.getNextId(), ExchangeNode.Scope.LOCAL, source, new PartitioningScheme(Partitioning.create(FIXED_ARBITRARY_DISTRIBUTION, ImmutableList.of()), source.getOutputSymbols())); source = new AggregationNode( idAllocator.getNextId(), source, inputsAsOutputs(aggregation.getAggregations()), aggregation.getGroupingSets(), AggregationNode.Step.INTERMEDIATE, aggregation.getHashSymbol(), aggregation.getGroupIdSymbol()); source = ExchangeNode.gatheringExchange(idAllocator.getNextId(), ExchangeNode.Scope.LOCAL, source); } <START> return Result.replace(aggregation.replaceChildren(ImmutableList.of(source))); <END> }</code><technical_language>Result.replace a bit "replace result" while means "result replaces". Result.replacement</technical_language>

Target:
public Result apply(AggregationNode aggregation, Captures captures, Context context) { Lookup lookup = context.getLookup(); PlanNodeIdAllocator idAllocator = context.getIdAllocator(); Session session = context.getSession(); Optional<PlanNode> rewrittenSource = recurseToPartial(lookup.resolve(aggregation.getSource()), lookup, idAllocator); if (!rewrittenSource.isPresent()) { return Result.empty(); } PlanNode source = rewrittenSource.get(); if (getTaskConcurrency(session) > 1) { source = ExchangeNode.partitionedExchange( idAllocator.getNextId(), ExchangeNode.Scope.LOCAL, source, new PartitioningScheme(Partitioning.create(FIXED_ARBITRARY_DISTRIBUTION, ImmutableList.of()), source.getOutputSymbols())); source = new AggregationNode( idAllocator.getNextId(), source, inputsAsOutputs(aggregation.getAggregations()), aggregation.getGroupingSets(), AggregationNode.Step.INTERMEDIATE, aggregation.getHashSymbol(), aggregation.getGroupIdSymbol()); source = ExchangeNode.gatheringExchange(idAllocator.getNextId(), ExchangeNode.Scope.LOCAL, source); } return Result.ofPlanNode(aggregation.replaceChildren(ImmutableList.of(source))); }
Source:
<code>public void start(Stage primaryStage) throws Exception { Pane root = new Pane(); <START> root.setPrefSize(800, 600); <END> primaryStage.setResizable(false); primaryStage.setTitle("mmm))"); InputStream iStream = null; iStream = Files.newInputStream(Paths.get("res/images/pic.png")); Image img = new Image(iStream); iStream.close(); ImageView imgView = new ImageView(img); imgView.setFitWidth(800); imgView.setFitHeight(600); mainGameMenu = new GameMenu(); root.getChildren().addAll(imgView, mainGameMenu); Scene scene = new Scene(root); primaryStage.setScene(scene); primaryStage.show(); }</code><technical_language>final</technical_language>

Target:
public void start(Stage primaryStage) throws Exception { Pane root = new Pane(); root.setPrefSize(X_RESOLUTION, Y_RESOLUTION); primaryStage.setResizable(false); primaryStage.setTitle("mmm))"); InputStream iStream = null; iStream = Files.newInputStream(Paths.get("res/images/pic.png")); Image img = new Image(iStream); iStream.close(); ImageView imgView = new ImageView(img); imgView.setFitWidth(X_RESOLUTION); imgView.setFitHeight(Y_RESOLUTION); mainGameMenu = new GameMenu(); root.getChildren().addAll(imgView, mainGameMenu); Scene scene = new Scene(root); primaryStage.setScene(scene); primaryStage.show(); }
Source:
<code>public void onNext(final FailedContext failedContext) { <START> LOG.log(Level.INFO, "FailedContext: {0}", failedContext); <END> final String contextId = failedContext.getId(); handleFinishedContext(contextId, failedContext.getParentContext()); }</code><technical_language>I users relieved if mention in message FailedContexts handled in ClosedContext</technical_language>

Target:
public void onNext(final FailedContext failedContext) { LOG.log(Level.INFO, "Handle FailedContext in the same way as ClosedContext. FailedContext: {0}", failedContext); final String contextId = failedContext.getId(); handleFinishedContext(contextId, failedContext.getParentContext()); }
Source:
<code>private void updateMemberDomainsFormat(StorageFormatType targetFormat) { Guid spId = getStoragePool().getId(); StorageDomainStaticDAO sdStatDao = DbFacade.getInstance().getStorageDomainStaticDAO(); List<storage_domain_static> domains = sdStatDao.getAllForStoragePool(spId); for (storage_domain_static domain : domains) { StorageDomainType sdType = domain.getstorage_domain_type(); <START> <END> log.infoFormat("Updating storage domain {0} (type {1}) to format {2}", domain.getId(), sdType, targetFormat); if (sdType != StorageDomainType.Data && sdType != StorageDomainType.Master) { continue; } domain.setStorageFormat(targetFormat); sdStatDao.update(domain); } }</code><technical_language>Log written update is perfomed</technical_language>

Target:
private void updateMemberDomainsFormat(StorageFormatType targetFormat) { Guid spId = getStoragePool().getId(); StorageDomainStaticDAO sdStatDao = DbFacade.getInstance().getStorageDomainStaticDAO(); List<storage_domain_static> domains = sdStatDao.getAllForStoragePool(spId); for (storage_domain_static domain : domains) { StorageDomainType sdType = domain.getstorage_domain_type(); if (sdType == StorageDomainType.Data || sdType == StorageDomainType.Master) { log.infoFormat("Updating storage domain {0} (type {1}) to format {2}", domain.getId(), sdType, targetFormat); domain.setStorageFormat(targetFormat); sdStatDao.update(domain); } } }
Source:
<code>public void CreateVirtualMachineImageFromExistingVM() { String id = String.format("/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Compute/virtualMachines/myVM", getSubscriptionId(), resourceGroupName); <START> ImageProperties properties = ImageProperties.builder() <END> .sourceVirtualMachine(ImageProperties.SourceVirtualMachine.create(id)) .build(); Image image = api().createOrUpdate(imageName, LOCATION, properties); assertTrue(stateReached("Succeeded"), "start operation did not complete in the configured timeout"); assertTrue(id.equals(image.properties().sourceVirtualMachine().id())); }</code><technical_language>[minor] start lowercase</technical_language>

Target:
public void CreateVirtualMachineImageFromExistingVM() { String id = String.format("/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Compute/virtualMachines/myVM", getSubscriptionId(), resourceGroupName); ImageProperties properties = ImageProperties.builder() .sourceVirtualMachine(ImageProperties.SourceVirtualMachine.create(id)) .build(); Image image = api().createOrUpdate(imageName, LOCATION, properties); assertTrue(waitUntilAvailable(imageName), "creation operation did not complete in the configured timeout"); assertTrue(id.equals(image.properties().sourceVirtualMachine().id())); }
Source:
<code>public void testCreateAlias() throws Exception { methodWatcher.executeUpdate("create alias t2 for t1"); methodWatcher.executeUpdate("drop alias t2"); <START> <END> }</code><technical_language>Thanks @wb14123</technical_language>

Target:
public void testCreateAlias() throws Exception { methodWatcher.executeUpdate("create alias t3 for t1"); ResultSet rs = methodWatcher.executeQuery("select c1 from t3"); rs.next(); assertEquals(1, rs.getInt("C1")); rs.close(); methodWatcher.executeUpdate("drop alias t3"); }
Source:
<code>private boolean identifyAPI(API api, MessageContext synCtx, List defaultStrategyApiSet) { API defaultAPI = null; api.setLogSetterValue(); if ("/".equals(api.getContext())) { defaultAPI = api; } else if (api.getVersionStrategy().getClass().getName().equals(DefaultStrategy.class.getName())) { defaultStrategyApiSet.add(api); } else if (api.getVersionStrategy().getClass().getName().equals(ContextVersionStrategy.class.getName()) || api.getVersionStrategy().getClass().getName().equals(URLBasedVersionStrategy.class.getName())) { api.setLogSetterValue(); if (api.canProcess(synCtx)) { if (log.isDebugEnabled()) { log.debug("Located specific API: " + api.getName() + " for processing message"); } apiProcessNonDefaultStrategy(synCtx, api); return true; } } else if (api.canProcess(synCtx)) { if (log.isDebugEnabled()) { log.debug("Located specific API: " + api.getName() + " for processing message"); } <START> synCtx.setProperty(RESTConstants.PROCESSED_API, api); <END> api.process(synCtx); return true; } return false; }</code><technical_language>move this process() method of API need set cases</technical_language>

Target:
private boolean identifyAPI(API api, MessageContext synCtx, List defaultStrategyApiSet) { API defaultAPI = null; api.setLogSetterValue(); if ("/".equals(api.getContext())) { defaultAPI = api; } else if (api.getVersionStrategy().getClass().getName().equals(DefaultStrategy.class.getName())) { defaultStrategyApiSet.add(api); } else if (api.getVersionStrategy().getClass().getName().equals(ContextVersionStrategy.class.getName()) || api.getVersionStrategy().getClass().getName().equals(URLBasedVersionStrategy.class.getName())) { api.setLogSetterValue(); if (api.canProcess(synCtx)) { if (log.isDebugEnabled()) { log.debug("Located specific API: " + api.getName() + " for processing message"); } apiProcessNonDefaultStrategy(synCtx, api); return true; } } else if (api.canProcess(synCtx)) { if (log.isDebugEnabled()) { log.debug("Located specific API: " + api.getName() + " for processing message"); } api.process(synCtx); return true; } return false; }
Source:
<code>public PolyglotScriptEngine(PhoenicisSandbox phoenicisSandbox, String language, Map<String, String> options) { super(); <START> this.phoenicisSandbox = phoenicisSandbox; <END> this.errorHandlers = new ArrayList<>(); this.language = language; this.context = Context.newBuilder(language) .allowExperimentalOptions(true) .allowHostClassLookup(phoenicisSandbox::isSafe) .options(options).allowHostAccess(true).build(); }</code><technical_language>This moved a lines break formatting</technical_language>

Target:
public PolyglotScriptEngine(PhoenicisSandbox phoenicisSandbox, String language, Map<String, String> options) { super(); this.errorHandlers = new ArrayList<>(); this.language = language; this.context = Context.newBuilder(language) .allowExperimentalOptions(true) .allowHostClassLookup(phoenicisSandbox::isSafe) .options(options).allowHostAccess(true).build(); }
Source:
<code>protected void selectedItemsChanged() { <START> super.onSelectedItemChanged(); <END> updateActionAvailability(); }</code><technical_language>this changed super.selectedItemsChanged()</technical_language>

Target:
protected void selectedItemsChanged() { super.selectedItemsChanged(); updateActionAvailability(); }
Source:
<code>public String toString() { StringBuilder sb = new StringBuilder("interpret_args("); boolean first = true; sb.append("noteId:"); if (this.noteId == null) { sb.append("null"); } else { sb.append(this.noteId); } first = false; if (!first) sb.append(", "); sb.append("className:"); if (this.className == null) { sb.append("null"); } else { sb.append(this.className); } first = false; if (!first) sb.append(", "); <START> sb.append("st:\n"); <END> if (this.st == null) { sb.append("null"); } else { sb.append(this.st); } first = false; if (!first) sb.append(", "); sb.append("interpreterContext:"); if (this.interpreterContext == null) { sb.append("null"); } else { sb.append(this.interpreterContext); } first = false; sb.append(")"); return sb.toString(); }</code><technical_language>Is intended change? this file is autogenerated file RemoteInterpreterService.thrift</technical_language>

Target:
public String toString() { StringBuilder sb = new StringBuilder("interpret_args("); boolean first = true; sb.append("noteId:"); if (this.noteId == null) { sb.append("null"); } else { sb.append(this.noteId); } first = false; if (!first) sb.append(", "); sb.append("className:"); if (this.className == null) { sb.append("null"); } else { sb.append(this.className); } first = false; if (!first) sb.append(", "); sb.append("st:"); if (this.st == null) { sb.append("null"); } else { sb.append(this.st); } first = false; if (!first) sb.append(", "); sb.append("interpreterContext:"); if (this.interpreterContext == null) { sb.append("null"); } else { sb.append(this.interpreterContext); } first = false; sb.append(")"); return sb.toString(); }
Source:
<code>public SegmentRef toRef() { <START> return new SegmentRef(checkNotNull(this.getId().toString(), <END> "Can't create reference for segment without ID")); }</code><technical_language>this is a bit weird, is calling toString method right do</technical_language>

Target:
public SegmentRef toRef() { return new SegmentRef(checkNotNull(this.getId(), "Can't create reference for segment without ID")); }
Source:
<code>private static Talk example(final Repo repo, final Issue issue) <START> throws IOException { <END> final Talk result = new Talk.InFile(); result.modify( new Directives().xpath("/talk").add("wire") .add("href").set("http://test").up() .add("github-repo").set(repo.coordinates().toString()).up() .add("github-issue").set(Integer.toString(issue.number())).up() .up() .add("request").attr("id", "1") .add("msec").set("1234567").up() .add("success").set("true").up() .add("type").set("something").up() .add("args") ); return result; }</code><technical_language>@xupyprmv please move indentation 4 characters</technical_language>

Target:
private static Talk example(final Repo repo, final Issue issue) throws IOException { final Talk result = new Talk.InFile(); result.modify( new Directives().xpath("/talk").add("wire") .add("href").set("http://test").up() .add("github-repo").set(repo.coordinates().toString()).up() .add("github-issue").set(Integer.toString(issue.number())).up() .up() .add("request").attr("id", "1") .add("msec").set(DURATION).up() .add("success").set("true").up() .add("type").set("something").up() .add("args") ); return result; }
Source:
<code>public Response suggest(String vocabularyId, String input, @DefaultValue("10") int maxResults, String sort, String customFilter) { if (StringUtils.isEmpty(input) || StringUtils.isEmpty(vocabularyId)) { throw new WebApplicationException(Response.Status.BAD_REQUEST); } Vocabulary vocabulary = this.vm.getVocabulary(vocabularyId); if (vocabulary == null) { throw new WebApplicationException(Response.Status.NOT_FOUND); } List<VocabularyTerm> termSuggestions = vocabulary.search(input, maxResults, sort, customFilter); JSONObject rep = new JSONObject(); JSONArray trms = new JSONArray(); for (VocabularyTerm term : termSuggestions) { JSONObject trm = term.toJSON(); <START> trm.put("links", this.autolinker.get().forSecondaryResource(VocabularyTermResource.class, this.uriInfo)); <END> trms.put(trm); } rep.put("rows", trms); rep.put("links", this.autolinker.get().forResource(getClass(), this.uriInfo).build()); return Response.ok(rep, MediaType.APPLICATION_JSON_TYPE).build(); }</code><technical_language>I forgot .build()</technical_language>

Target:
public Response suggest(String vocabularyId, String input, @DefaultValue("10") int maxResults, String sort, String customFilter) { if (StringUtils.isEmpty(input) || StringUtils.isEmpty(vocabularyId)) { throw new WebApplicationException(Response.Status.BAD_REQUEST); } Vocabulary vocabulary = this.vm.getVocabulary(vocabularyId); if (vocabulary == null) { throw new WebApplicationException(Response.Status.NOT_FOUND); } List<VocabularyTerm> termSuggestions = vocabulary.search(input, maxResults, sort, customFilter); JSONObject rep = new JSONObject(); JSONArray trms = new JSONArray(); for (VocabularyTerm term : termSuggestions) { JSONObject trm = term.toJSON(); trm.put("links", this.autolinker.get().forSecondaryResource(VocabularyTermResource.class, this.uriInfo).build()); trms.put(trm); } rep.put("rows", trms); rep.put("links", this.autolinker.get().forResource(getClass(), this.uriInfo).build()); return Response.ok(rep, MediaType.APPLICATION_JSON_TYPE).build(); }
Source:
<code>public static BooleanExpression isFilePresentForSelectedEntry(StateManager stateManager, PreferencesService preferencesService) { <START> List<LinkedFile> files = stateManager.getSelectedEntries().get(0).getFiles(); <END> return Bindings.createBooleanBinding(() -> { if ((files.size() > 0) && stateManager.getActiveDatabase().isPresent()) { return FileHelper.expandFilename( stateManager.getActiveDatabase().get(), files.get(0).getLink(), preferencesService.getFilePreferences()).isPresent(); } else { return false; } }, stateManager.getSelectedEntries().get(0).getFieldBinding(StandardField.FILE)); }</code><technical_language>I current code runs similar problems in a PR @stefan-kolb: if currently selected entry changes, binding is updated. Here, this easy fix: EasyBind.flatMap(stateManager.getSelectedEntries().getValueAt(0), entry -> entry.getFiles()) .map(files -> boolean) getFiles methods needs changed return observable list. This done current code a EasyBind.map(getFieldBinding(FILE), ... parse)</technical_language>

Target:
public static BooleanExpression isFilePresentForSelectedEntry(StateManager stateManager, PreferencesService preferencesService) { return Bindings.createBooleanBinding(() -> { List<LinkedFile> files = stateManager.getSelectedEntries().get(0).getFiles(); if ((files.size() > 0) && stateManager.getActiveDatabase().isPresent()) { Optional<Path> filename = FileHelper.expandFilename( stateManager.getActiveDatabase().get(), files.get(0).getLink(), preferencesService.getFilePreferences()); return filename.isPresent(); } else { return false; } }, stateManager.getSelectedEntries(), stateManager.getSelectedEntries().get(0).getFieldBinding(StandardField.FILE)); }
Source:
<code>public void process(WatchedEvent event) { ReplyHeader h = new ReplyHeader(-1, -1L, 0); if (LOG.isTraceEnabled()) { ZooTrace.logTraceMessage(LOG, ZooTrace.EVENT_DELIVERY_TRACE_MASK, "Deliver event " + event + " to 0x" + Long.toHexString(this.sessionId) + " through " + this); } WatcherEvent e = event.getWrapper(); try { sendResponse(h, e, "notification"); } catch (IOException ex) { LOG.debug("Problem sending to " + getRemoteSocketAddress(), ex); <START> close(); <END> } }</code><technical_language>this is interesting change -- how/when closing connection before</technical_language>

Target:
public void process(WatchedEvent event) { ReplyHeader h = new ReplyHeader(-1, -1L, 0); if (LOG.isTraceEnabled()) { ZooTrace.logTraceMessage(LOG, ZooTrace.EVENT_DELIVERY_TRACE_MASK, "Deliver event " + event + " to 0x" + Long.toHexString(this.sessionId) + " through " + this); } WatcherEvent e = event.getWrapper(); try { sendResponse(h, e, "notification"); } catch (IOException ex) { LOG.debug("Problem sending to " + getRemoteSocketAddress(), ex); } }
Source:
<code><START> public static Economy getEconomy() { <END> return econ; }</code><technical_language>I this static, I feel plugin is static</technical_language>

Target:
public Economy getEconomy() { return econ; }
Source:
<code><START> public static String getReplPolicyIdString(Database db) { <END> if (db != null) { Map<String, String> m = db.getParameters(); if ((m != null) && (m.containsKey(SOURCE_OF_REPLICATION))) { String replPolicyId = m.get(SOURCE_OF_REPLICATION); LOG.debug("repl policy for database is {}", db.getName(), replPolicyId); return replPolicyId; } LOG.info("Repl policy is not set for database ", db.getName()); } return null; }</code><technical_language>check if works case for key. I mean, set property name in upper case create Db alter db try if able read here</technical_language>

Target:
public static String getReplPolicyIdString(Database db) { if (db != null) { Map<String, String> m = db.getParameters(); if ((m != null) && (m.containsKey(SOURCE_OF_REPLICATION))) { String replPolicyId = m.get(SOURCE_OF_REPLICATION); LOG.debug("repl policy for database is {}", db.getName(), replPolicyId); return replPolicyId; } LOG.debug("Repl policy is not set for database ", db.getName()); } return null; }
Source:
<code>void onGetBlobError(Exception e, GetBlobOptions options) { GetOperationType type = options != null && options.getGetOperationType() != null ? options.getGetOperationType() : GetOperationType.All; switch (type) { case All: case Data: onGetBlobDataError(e, options); break; case BlobInfo: onGetBlobInfoError(e); break; <START> } <END> }</code><technical_language>I guarantee options.getOperationType is non-null in GetBlobOptions constructor - range, operation operation type. avoid null check above. This simpler I think: java if (options != null && options.getOperationType() == GetBlobOptions.OperationType.BlobInfo) { onGetBlobInfoError(e); } else { onGetBlobDataError(e, options); }</technical_language>

Target:
void onGetBlobError(Exception e, GetBlobOptions options) { if (options.getOperationType() == GetBlobOptions.OperationType.BlobInfo) { onGetBlobInfoError(e); } else { onGetBlobDataError(e, options); } }
Source:
<code>public void findActions() throws DotDataException, DotSecurityException { List<WorkflowStep> steps = workflowAPI.findSteps(workflowScheme3); assertNotNull(steps); assertEquals(2, steps.size()); List<WorkflowAction> actions = workflowAPI.findActions(steps, user); assertNotNull(actions); assertEquals(3, actions.size()); User contributorUser = roleAPI.findUsersForRole(contributor).get(0); assertTrue(null != contributorUser && UtilMethods.isSet(contributorUser.getUserId())); actions = workflowAPI.findActions(steps, contributorUser); assertTrue(null != actions && actions.size() == 1); User reviewerUser = roleAPI.findUsersForRole(reviewer).get(0); assertTrue(null != contributorUser && UtilMethods.isSet(contributorUser.getUserId())); actions = workflowAPI.findActions(steps, reviewerUser); assertTrue(null != actions && actions.size() == 2); actions = workflowAPI.findActions(workflowScheme1Step2, reviewer); <START> assertTrue(null != actions && actions.size() == 1); <END> actions = workflowAPI.findActions(workflowScheme3Step2, contributor); assertTrue(null != actions && actions.size() == 1); }</code><technical_language>this kind of is separated assert assertNotNull assertEquals (2, actions.size); Give more info is error</technical_language>

Target:
public void findActions() throws DotDataException, DotSecurityException { List<WorkflowStep> steps = workflowAPI.findSteps(workflowScheme3); assertNotNull(steps); assertEquals(2, steps.size()); List<WorkflowAction> actions = workflowAPI.findActions(steps, user); assertNotNull(actions); assertEquals(3, actions.size()); User contributorUser = roleAPI.findUsersForRole(contributor).get(0); assertTrue(null != contributorUser && UtilMethods.isSet(contributorUser.getUserId())); actions = workflowAPI.findActions(steps, contributorUser); assertTrue(null != actions && actions.size() == 1); User reviewerUser = roleAPI.findUsersForRole(reviewer).get(0); assertTrue(null != contributorUser && UtilMethods.isSet(contributorUser.getUserId())); actions = workflowAPI.findActions(steps, reviewerUser); assertTrue(null != actions && actions.size() == 2); actions = workflowAPI.findActions(workflowScheme1Step2, reviewer); assertNotNull(actions); assertTrue(actions.size() == 1); actions = workflowAPI.findActions(workflowScheme3Step2, contributor); assertNotNull(actions); assertTrue(actions.size() == 1); }
Source:
<code>public void storeWorkerMetrics(final String workerId, final WorkerMetrics metrics) { if (metricCollectionEnabled) { final int numDataBlocksOnWorker = metrics.getNumDataBlocks(); if (numBlockByEvalIdForWorker != null && numBlockByEvalIdForWorker.containsKey(workerId)) { final int numDataBlocksOnDriver = numBlockByEvalIdForWorker.get(workerId); if (numDataBlocksOnWorker == numDataBlocksOnDriver) { final DataInfo dataInfo = new DataInfoImpl(numDataBlocksOnWorker); final EvaluatorParameters evaluatorParameters = new WorkerEvaluatorParameters(workerId, dataInfo, metrics); synchronized (workerEvalParams) { if (!workerEvalParams.containsKey(workerId)) { workerEvalParams.put(workerId, new ArrayList<>()); } workerEvalParams.get(workerId).add(evaluatorParameters); } } else { LOG.log(Level.FINE, "{0} contains {1} blocks, driver says {2} blocks. Dropping metric.", new Object[]{workerId, numDataBlocksOnWorker, numDataBlocksOnDriver}); } } else { LOG.log(Level.FINE, "No information about {0}. Dropping metric.", workerId); } } else { LOG.log(Level.FINE, "Metric collection disabled. Dropping metric from {0}", workerId); } if (this.dashboardEnabled) { try { metricsRequestQueue.put(String.format("id=%s&metrics=%s&time=%d", workerId, metrics, System.currentTimeMillis())); } catch (InterruptedException e) { <START> LOG.log(Level.WARNING, "Dashboard: Interrupted while taking metrics to send from the queue - ", e); <END> } } }</code><technical_language>separating dashboard MetricManager, need prepend 'Dashboard:' front of logging messages</technical_language>

Target:
public void storeWorkerMetrics(final String workerId, final WorkerMetrics metrics) { if (metricCollectionEnabled) { final int numDataBlocksOnWorker = metrics.getNumDataBlocks(); if (numBlockByEvalIdForWorker != null && numBlockByEvalIdForWorker.containsKey(workerId)) { final int numDataBlocksOnDriver = numBlockByEvalIdForWorker.get(workerId); if (numDataBlocksOnWorker == numDataBlocksOnDriver) { final DataInfo dataInfo = new DataInfoImpl(numDataBlocksOnWorker); final EvaluatorParameters evaluatorParameters = new WorkerEvaluatorParameters(workerId, dataInfo, metrics); synchronized (workerEvalParams) { if (!workerEvalParams.containsKey(workerId)) { workerEvalParams.put(workerId, new ArrayList<>()); } workerEvalParams.get(workerId).add(evaluatorParameters); } } else { LOG.log(Level.FINE, "{0} contains {1} blocks, driver says {2} blocks. Dropping metric.", new Object[]{workerId, numDataBlocksOnWorker, numDataBlocksOnDriver}); } } else { LOG.log(Level.FINE, "No information about {0}. Dropping metric.", workerId); } } else { LOG.log(Level.FINE, "Metric collection disabled. Dropping metric from {0}", workerId); } if (dashboardSetupStatus.dashboardEnabled) { try { metricsRequestQueue.put(String.format("id=%s&metrics=%s&time=%d", workerId, metrics, System.currentTimeMillis())); } catch (InterruptedException e) { LOG.log(Level.WARNING, "Dashboard: Interrupted while taking metrics to send from the queue.", e); } } }