auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected Collection<? extends FieldAccessorFactory> createAccessorFactories() { return Arrays.<FieldAccessorFactory>asList( new IdFieldAccessorFactory(template), new TransientFieldAccessorFactory(), new LabelFieldAccessorFactory(template), new TraversalFieldAccessorFactory(template), new QueryFieldAccessorFactory(template), new PropertyFieldAccessorFactory(template), new ConvertingNodePropertyFieldAccessorFactory(template), new GenericNodePropertyFieldAccessorFactory(template), new RelatedToSingleFieldAccessorFactory(template), new RelatedToCollectionFieldAccessorFactory(template), new ReadOnlyRelatedToCollectionFieldAccessorFactory(template), new RelatedToViaCollectionFieldAccessorFactory(template), new RelatedToViaSingleFieldAccessorFactory(template), new DynamicPropertiesFieldAccessorFactory(template) ); }

Target:
protected Collection<? extends FieldAccessorFactory> createAccessorFactories() { return Arrays.<FieldAccessorFactory>asList( new IdFieldAccessorFactory(template), new TransientFieldAccessorFactory(), new LabelFieldAccessorFactory(template), new TraversalFieldAccessorFactory(template), new QueryFieldAccessorFactory(template), new PropertyFieldAccessorFactory(template), new ConvertingNodePropertyFieldAccessorFactory(template), new RelatedToSingleFieldAccessorFactory(template), new RelatedToCollectionFieldAccessorFactory(template), new ReadOnlyRelatedToCollectionFieldAccessorFactory(template), new RelatedToViaCollectionFieldAccessorFactory(template), new RelatedToViaSingleFieldAccessorFactory(template), new DynamicPropertiesFieldAccessorFactory(template), new GenericNodePropertyFieldAccessorFactory(template) ); }
Source:
public static DimensionHandler getHandlerFromCapabilities( String dimensionName, ColumnCapabilities capabilities, MultiValueHandling multiValueHandling ) { if (capabilities == null) { return new StringDimensionHandler(dimensionName, multiValueHandling); } if (dimensionName.equals(Column.TIME_COLUMN_NAME)) { return new StringDimensionHandler(Column.TIME_COLUMN_NAME, MultiValueHandling.ARRAY); } multiValueHandling = multiValueHandling == null ? MultiValueHandling.ofDefault() : multiValueHandling; if (capabilities.getType() == ValueType.STRING) { if (!capabilities.isDictionaryEncoded() || !capabilities.hasBitmapIndexes()) { throw new IAE("String column must have dictionary encoding and bitmap index."); } return new StringDimensionHandler(dimensionName, multiValueHandling); } return new StringDimensionHandler(dimensionName, multiValueHandling); }

Target:
public static DimensionHandler getHandlerFromCapabilities( String dimensionName, ColumnCapabilities capabilities, MultiValueHandling multiValueHandling ) { if (capabilities == null) { return new StringDimensionHandler(dimensionName, multiValueHandling); } multiValueHandling = multiValueHandling == null ? MultiValueHandling.ofDefault() : multiValueHandling; if (capabilities.getType() == ValueType.STRING) { if (!capabilities.isDictionaryEncoded() || !capabilities.hasBitmapIndexes()) { throw new IAE("String column must have dictionary encoding and bitmap index."); } return new StringDimensionHandler(dimensionName, multiValueHandling); } return new StringDimensionHandler(dimensionName, multiValueHandling); }
Source:
private Map<String, String> getVersionStrings() { final Script command = new Script(_versionstringpath, _timeout.getMillis(), s_logger); final KeyValueInterpreter kvi = new KeyValueInterpreter(); final String result = command.execute(kvi); if (result == null) { return kvi.getKeyValues(); } else { return new HashMap<String, String>(1); } }

Target:
private Map<String, String> getVersionStrings() { final Script command = new Script(_versionstringpath, _timeout, s_logger); final KeyValueInterpreter kvi = new KeyValueInterpreter(); final String result = command.execute(kvi); if (result == null) { return kvi.getKeyValues(); } else { return new HashMap<String, String>(1); } }
Source:
public CommandTaskNew() { super(); }

Target:
private CommandTaskNew() { super(); }
Source:
public static void dumpDiagnosticsForAll(@Nonnull PrintWriter w) { for (Ref ref : ACTIVE_CHANNELS.values().toArray(new Ref[0])) { Channel ch = ref.channel(); if (ch != null) { try { ch.dumpDiagnostics(w); } catch (Throwable ex) { if (ex instanceof Error) { throw (Error)ex; } logger.log(Level.WARNING, String.format("Cannot dump diagnostics for the channel %s", ch.getName()), ex); } } } }

Target:
public static void dumpDiagnosticsForAll(@Nonnull PrintWriter w) { final Ref[] channels = ACTIVE_CHANNELS.values().toArray(new Ref[0]); int processedCount = 0; for (Ref ref : channels) { if (w.checkError()) { logger.log(Level.WARNING, String.format("Cannot dump diagnostics for all channels, because output stream encountered an error. " + "Processed %d of %d channels, first unprocessed channel reference is %s.", processedCount, channels.length, ref )); break; } final Channel ch = ref.channel(); if (ch != null) { try { ch.dumpDiagnostics(w); } catch (Throwable ex) { if (ex instanceof Error) { throw (Error)ex; } w.printf("Cannot dump diagnostics for the channel %s. %s. See Error stacktrace in system logs", ch.getName(), ex.getMessage()); logger.log(Level.WARNING, String.format("Cannot dump diagnostics for the channel %s", ch.getName()), ex); } } processedCount++; } }
Source:
public Note get(String noteId, String revId, AuthenticationInfo subject) { Note revisionNote = null; try { if (isDefaultRepoGit()) { revisionNote = ((NotebookRepoWithVersionControl) getRepo(0)).get(noteId, revId, subject); } } catch (IOException e) { LOG.error("Failed to get revision of note {}", revId, noteId, e); } return revisionNote; }

Target:
public Note get(String noteId, String revId, AuthenticationInfo subject) { Note revisionNote = null; try { if (isRevisionSupportedInDefaultRepo()) { revisionNote = ((NotebookRepoWithVersionControl) getRepo(0)).get(noteId, revId, subject); } } catch (IOException e) { LOG.error("Failed to get revision of note {}", revId, noteId, e); } return revisionNote; }
Source:
public String getDialectFromPath(String uriPath) { if (uriPath == null) return UNKNOWN_DIALECT_VALUE; if (uriPath.startsWith("/w/api.php")) return UNKNOWN_DIALECT_VALUE; if (uriPath.equals("/") || uriPath.equals("/wiki") || uriPath.equals("/w") || uriPath.startsWith("/wiki/") || uriPath.startsWith("/w/")) return DEFAULT_DIALECT_VALUE; int startIdx = uriPath.indexOf("/"); startIdx = (startIdx >= 0)?(startIdx + 1):startIdx; int middleIdx = uriPath.indexOf("-", startIdx); int endIdx = uriPath.indexOf("/", startIdx); endIdx = (endIdx > 0)?endIdx:(uriPath.length()); if ((startIdx >= 0) && (startIdx < endIdx)) { if ((middleIdx > 0) && (middleIdx < endIdx)) return uriPath.substring(startIdx, endIdx); else return DEFAULT_DIALECT_VALUE; } return UNKNOWN_DIALECT_VALUE; }

Target:
public String getDialectFromPath(String uriPath) { String normPath = normalizeUriPath(uriPath); if (normPath.startsWith("/w/api.php")) return UNKNOWN_DIALECT_VALUE; if (normPath.equals("/") || normPath.equals("/wiki") || normPath.equals("/w") || normPath.startsWith("/wiki/") || normPath.startsWith("/w/")) return DEFAULT_DIALECT_VALUE; int startIdx = normPath.indexOf("/"); startIdx = (startIdx >= 0) ? (startIdx + 1) : startIdx; int middleIdx = normPath.indexOf("-", startIdx); int endIdx = normPath.indexOf("/", startIdx); endIdx = (endIdx > 0) ? endIdx : (normPath.length()); if ((startIdx >= 0) && (startIdx < endIdx)) { if ((middleIdx > 0) && (middleIdx < endIdx)) return normPath.substring(startIdx, endIdx); else return DEFAULT_DIALECT_VALUE; } return UNKNOWN_DIALECT_VALUE; }
Source:
public boolean verifyAllResultsPanelBodyVisibility(boolean visible){ int numOfQns = browser.driver.findElements(By.cssSelector(".panel-heading+.panel-collapse")).size(); assertTrue(numOfQns > 0); ThreadHelper.waitFor(numOfQns * 50); for(WebElement e : browser.driver.findElements(By.cssSelector(".panel-heading+.panel-collapse"))){ if(e.isDisplayed() != visible){ return false; } } return true; }

Target:
public boolean verifyAllResultsPanelBodyVisibility(boolean visible){ int numOfQns = browser.driver.findElements(By.cssSelector(".panel-heading+.panel-collapse")).size(); assertTrue(numOfQns > 0); ThreadHelper.waitFor((numOfQns * 50) + 1000); for(WebElement e : browser.driver.findElements(By.cssSelector(".panel-heading+.panel-collapse"))){ if(e.isDisplayed() != visible){ return false; } } return true; }
Source:
public void startProxy() throws Exception { mProxyProcess = ProxyProcess.Factory.create(); Runnable runProxy = () -> { try { mProxyProcess.start(); } catch (InterruptedException e) { } catch (Exception e) { LOG.error("Start proxy error", e); throw new RuntimeException(e + " \n Start Proxy Error \n" + e.getMessage(), e); } }; mProxyThread = new Thread(runProxy); mProxyThread.setName("ProxyThread-" + System.identityHashCode(mProxyThread)); mProxyThread.start(); TestUtils.waitForReady(mProxyProcess); }

Target:
private void startProxy() throws Exception { mProxyProcess = ProxyProcess.Factory.create(); Runnable runProxy = () -> { try { mProxyProcess.start(); } catch (InterruptedException e) { } catch (Exception e) { LOG.error("Start proxy error", e); throw new RuntimeException(e + " \n Start Proxy Error \n" + e.getMessage(), e); } }; mProxyThread = new Thread(runProxy); mProxyThread.setName("ProxyThread-" + System.identityHashCode(mProxyThread)); mProxyThread.start(); TestUtils.waitForReady(mProxyProcess); }
Source:
protected void clickOk() { WebElement okButton = getDriver().findElement(By.id("ok")); if (okButton != null) { okButton.click(); } else { throw new IllegalArgumentException("Ok button is not available to click"); } }

Target:
protected void clickOk() { WebElement okButton = getDriver().findElement(By.id("ok")); okButton.click(); }
Source:
public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException { if (mode == DirectoryListMode.ALL || mode == DirectoryListMode.DIRS_ONLY) { paths.add(dir); } return FileVisitResult.CONTINUE; }

Target:
public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException { if (mode.contains(ListDirectoryMode.DIRS)) { paths.add(dir); } return FileVisitResult.CONTINUE; }
Source:
public Action<?, ?> finsihedAction() { return new AbstractChangePrimaryGatewayAction<>(StackEvent.class) { @Inject private OperationService operationService; @Override protected void doExecute(ChangePrimaryGatewayContext context, StackEvent payload, Map<Object, Object> variables) { Stack stack = context.getStack(); SuccessDetails successDetails = new SuccessDetails(stack.getEnvironmentCrn()); if (isFinalChain(variables)) { stackStatusCheckerJob.syncAStack(stack); } else { stackUpdater.updateStackStatus(stack.getId(), getChangePrimaryGatewayCompleteStatus(variables), "Finished changing the primary gateway"); } if (isFinalChain(variables)) { successDetails.getAdditionalDetails().put("DownscaleHosts", getDownscaleHosts(variables)); successDetails.getAdditionalDetails().put("UpscaleHosts", getUpscaleHosts(variables)); operationService.completeOperation(stack.getAccountId(), getOperationId(variables), List.of(successDetails), Collections.emptyList()); } sendEvent(context, CHANGE_PRIMARY_GATEWAY_FINISHED_EVENT.selector(), new StackEvent(stack.getId())); } }; }

Target:
public Action<?, ?> finsihedAction() { return new AbstractChangePrimaryGatewayAction<>(StackEvent.class) { @Inject private OperationService operationService; @Override protected void doExecute(ChangePrimaryGatewayContext context, StackEvent payload, Map<Object, Object> variables) { Stack stack = context.getStack(); SuccessDetails successDetails = new SuccessDetails(stack.getEnvironmentCrn()); if (isFinalChain(variables)) { stackStatusCheckerJob.syncAStack(stack); successDetails.getAdditionalDetails().put("DownscaleHosts", getDownscaleHosts(variables)); successDetails.getAdditionalDetails().put("UpscaleHosts", getUpscaleHosts(variables)); operationService.completeOperation(stack.getAccountId(), getOperationId(variables), List.of(successDetails), Collections.emptyList()); } else { stackUpdater.updateStackStatus(stack.getId(), DetailedStackStatus.REPAIR_IN_PROGRESS, "Finished changing the primary gateway"); } sendEvent(context, CHANGE_PRIMARY_GATEWAY_FINISHED_EVENT.selector(), new StackEvent(stack.getId())); } }; }
Source:
public void activate(Object operatorID) { Long count = datastore.entityCount(OperatorEntity.class, Filter.where("_id").is(operatorID)); if (count == 0) { throw new OperatorException("Operator is undefined!"); } datastore.update(OperatorEntity.class, Filter.where("_id").is(operatorID), UpdateStatement.update("state").toBe(OperatorState.ACTIVE.name())); }

Target:
public void activate(Object operatorID) { Long count = datastore.entityCount(OperatorEntity.class, Filter.where("_id").is(operatorID)); if (count == 0) { throw new NotFoundException("Operator is undefined!"); } datastore.update(OperatorEntity.class, Filter.where("_id").is(operatorID), UpdateStatement.update("state").toBe(OperatorState.ACTIVE.name())); }
Source:
public Set<OperatingSystem> listImages() { Set<OperatingSystem> result = Sets.newHashSet(); Set<SoftwareDescription> unfiltered = api.getSoftwareDescriptionApi().getAllObjects(); Set<OperatingSystem> osAvailable = createObjectOptionsSupplier.get().getVirtualGuestOperatingSystems(); for (OperatingSystem os : osAvailable) { final String operatingSystemReferenceCode = os.getOperatingSystemReferenceCode(); result.addAll( FluentIterable.from(unfiltered) .filter(new Predicate<SoftwareDescription>() { @Override public boolean apply(SoftwareDescription input) { return input.getOperatingSystem() == 1 && input.getReferenceCode().equals (operatingSystemReferenceCode); } }) .transform(new Function<SoftwareDescription, OperatingSystem>() { @Override public OperatingSystem apply(SoftwareDescription input) { return OperatingSystem.builder() .id(input.getName()) .softwareLicense(SoftwareLicense.builder().softwareDescription(input).build()) .build(); } }) .toSet() ); } return result; }

Target:
public Set<OperatingSystem> listImages() { Set<OperatingSystem> result = Sets.newHashSet(); Set<SoftwareDescription> unfiltered = api.getSoftwareDescriptionApi().getAllObjects(); Set<OperatingSystem> operatingSystemsAvailable = createObjectOptionsSupplier.get() .getVirtualGuestOperatingSystems(); for (OperatingSystem os : operatingSystemsAvailable) { final String osReferenceCode = os.getOperatingSystemReferenceCode(); final String osId = os.getId(); result.addAll(FluentIterable.from(unfiltered) .filter(new Predicate<SoftwareDescription>() { @Override public boolean apply(SoftwareDescription input) { return isOperatingSystem(input) && input.getReferenceCode().equals(osReferenceCode); } }) .transform(new SoftwareDescriptionToOperatingSystem(osId, osReferenceCode)) .toSet() ); } Set<VirtualGuestBlockDeviceTemplateGroup> privateImages = api.getAccountApi().getBlockDeviceTemplateGroups(); Map<String, SoftwareDescription> privateImagesSoftwareDescriptions = extractSoftwareDescriptions(privateImages); for (Map.Entry<String, SoftwareDescription> entry : privateImagesSoftwareDescriptions.entrySet()) { OperatingSystem os = getOperatingSystem(entry); if (os != null) { result.add(os); } } if (includePublicImages) { Set<VirtualGuestBlockDeviceTemplateGroup> publicImages = api.getVirtualGuestBlockDeviceTemplateGroupApi().getPublicImages(); Map<String, SoftwareDescription> publicImagesSoftwareDescriptions = extractSoftwareDescriptions(publicImages); for (Map.Entry<String, SoftwareDescription> entry : publicImagesSoftwareDescriptions.entrySet()) { OperatingSystem os = getOperatingSystem(entry); if (os != null) { result.add(os); } } } return result; }
Source:
public Map<ContainerKeyPrefix, Integer> getKeyPrefixesForContainer( long containerId) throws IOException { return getKeyPrefixesForContainer(containerId, ""); }

Target:
public Map<ContainerKeyPrefix, Integer> getKeyPrefixesForContainer( long containerId) throws IOException { return getKeyPrefixesForContainer(containerId, StringUtils.EMPTY); }
Source:
public Organization buildObject(Result source, Oaf resolvedOafObject) throws UnsupportedEncodingException { Preconditions.checkNotNull(resolvedOafObject); Preconditions.checkNotNull(source); OafEntity oafEntity = resolvedOafObject.getEntity(); if (!isDataCorrect(source, oafEntity)) { return null; } eu.dnetlib.data.proto.OrganizationProtos.Organization srcOrganization = oafEntity.getOrganization(); Organization.Builder orgBuilder = Organization.newBuilder(); orgBuilder.setId(oafEntity.getId()); Metadata srcOrgMetadata = srcOrganization.getMetadata(); orgBuilder.setName(srcOrgMetadata.getLegalname().getValue()); orgBuilder.setShortName(srcOrgMetadata.getLegalshortname().getValue()); orgBuilder.setCountryName(srcOrgMetadata.getCountry().getClassname()); orgBuilder.setCountryCode(srcOrgMetadata.getCountry().getClassid()); orgBuilder.setWebsiteUrl(srcOrgMetadata.getWebsiteurl().getValue()); return orgBuilder.build(); }

Target:
public Organization buildObject(Result source, Oaf resolvedOafObject) throws UnsupportedEncodingException { Preconditions.checkNotNull(resolvedOafObject); OafEntity oafEntity = resolvedOafObject.getEntity(); if (!isDataCorrect(oafEntity)) { return null; } eu.dnetlib.data.proto.OrganizationProtos.Organization srcOrganization = oafEntity.getOrganization(); Organization.Builder orgBuilder = Organization.newBuilder(); orgBuilder.setId(oafEntity.getId()); Metadata srcOrgMetadata = srcOrganization.getMetadata(); orgBuilder.setName(srcOrgMetadata.getLegalname().getValue()); orgBuilder.setShortName(srcOrgMetadata.getLegalshortname().getValue()); orgBuilder.setCountryName(srcOrgMetadata.getCountry().getClassname()); orgBuilder.setCountryCode(srcOrgMetadata.getCountry().getClassid()); orgBuilder.setWebsiteUrl(srcOrgMetadata.getWebsiteurl().getValue()); return orgBuilder.build(); }
Source:
TestRow(String someString, Integer someInteger, Double someDouble, String someDate, Boolean someBoolean) { this.stringField = someString; this.integerField = someInteger; this.doubleField = (someDouble == null) ? null : WrappedBigDecimal.fromDouble(someDouble); this.dateField = WebUtils.parseDate(someDate); this.booleanField = someBoolean; }

Target:
TestRow(String someString, Integer someInteger, Double someDouble, String someDate, Boolean someBoolean) { stringField = someString; integerField = someInteger; doubleField = (someDouble == null) ? null : WrappedBigDecimal.fromDouble(someDouble); dateField = WebUtils.parseDate(someDate); booleanField = someBoolean; }
Source:
protected boolean canDoAction() { boolean returnValue = true; if (isAttachDetachAllowedForVmStatus(getVm().getstatus())) { setVdsId(getVm().getrun_on_vds().getValue()); if (isHotPlugNicAllowedForVmStatus(getVm().getstatus())) { returnValue = canPerformHotPlug(); } } else { addCanDoActionMessage(VdcBllMessages.HOT_PLUG_NIC_VM_STATUS_ILLEGAL); returnValue = false; } if (returnValue) { vmDevice = getVmDeviceDao().get(new VmDeviceId(getParameters().getNicId(), getParameters().getVmId())); if (vmDevice == null) { returnValue = false; addCanDoActionMessage(VdcBllMessages.VM_INTERFACE_NOT_EXIST); } } return returnValue; }

Target:
protected boolean canDoAction() { boolean returnValue = true; if (isActivateDeactivateAllowedForVmStatus(getVm().getstatus())) { setVdsId(getVm().getrun_on_vds().getValue()); if (VmHandler.isHotPlugNicAllowedForVmStatus(getVm().getstatus())) { returnValue = canPerformHotPlug(); } } else { addCanDoActionMessage(VdcBllMessages.HOT_PLUG_NIC_VM_STATUS_ILLEGAL); returnValue = false; } if (returnValue) { vmDevice = getVmDeviceDao().get(new VmDeviceId(getParameters().getNicId(), getParameters().getVmId())); if (vmDevice == null) { returnValue = false; addCanDoActionMessage(VdcBllMessages.VM_INTERFACE_NOT_EXIST); } } return returnValue; }
Source:
private boolean isAcceptedConfigurationAdminEntry(ImportMigrationConfigurationAdminEntry entry) { if (ACCEPTED_ENTRY_PIDS.contains(entry.getPid())) { return true; } if (entry.getFactoryPid() != null) { if (ACCEPTED_ENTRY_FACTORY_PIDS.contains(entry.getFactoryPid()) || StringUtils.containsIgnoreCase(entry.getFactoryPid(), "source") || StringUtils.containsIgnoreCase(entry.getFactoryPid(), "service")) { return true; } } return false; }

Target:
private boolean isAcceptedConfigurationAdminEntry(ImportMigrationConfigurationAdminEntry entry) { return (ACCEPTED_ENTRY_PIDS.contains(entry.getPid()) || ACCEPTED_ENTRY_FACTORY_PIDS.contains(entry.getFactoryPid()) || isASource(entry.getFactoryPid())); }
Source:
private void registerStoreStatistics(ServerStoreImpl store, String storeName) throws InvalidStoreException { STAT_STORE_METHOD_REFERENCES.entrySet().stream().forEach((entry)-> registerStatistic(store, storeName, entry.getKey(), STATISTICS_STORE_TAG, PROPERTY_STORE_KEY, new Callable<Number>() { @Override public Number call() throws Exception { return entry.getValue().apply(store); } }) ); }

Target:
private void registerStoreStatistics(ServerStoreImpl store, String storeName) throws InvalidStoreException { STAT_STORE_METHOD_REFERENCES.entrySet().stream().forEach((entry)-> registerStatistic(store, storeName, entry.getKey(), STATISTICS_STORE_TAG, PROPERTY_STORE_KEY, () -> entry.getValue().apply(store) )); }
Source:
public ExecutorComparator(Map<String,Integer> comparatorList) { if (null == comparatorList|| comparatorList.size() == 0){ logger.error("failed to initialize executor comparator as the passed comparator list is invalid or empty."); throw new IllegalArgumentException("filterList"); } for (Entry<String,Integer> entry : comparatorList.entrySet()){ if (comparatorCreatorRepository.containsKey(entry.getKey())){ this.registerFactorComparator(comparatorCreatorRepository. get(entry.getKey()). create(entry.getValue())); } else { logger.error(String.format("failed to initialize executor comparator as the comparator implementation for requested factor '%s' doesn't exist.", entry.getKey())); throw new IllegalArgumentException("comparatorList"); } } }

Target:
public ExecutorComparator(Map<String,Integer> comparatorList) { if (null == comparatorList|| comparatorList.size() == 0){ throw new IllegalArgumentException("failed to initialize executor comparator" + "as the passed comparator list is invalid or empty."); } for (Entry<String,Integer> entry : comparatorList.entrySet()){ if (comparatorCreatorRepository.containsKey(entry.getKey())){ this.registerFactorComparator(comparatorCreatorRepository. get(entry.getKey()). create(entry.getValue())); } else { throw new IllegalArgumentException(String.format("failed to initialize executor comparator " + "as the comparator implementation for requested factor '%s' doesn't exist.", entry.getKey())); } } }
Source:
public PrimitiveStringifier valueStringifier(PrimitiveType primitiveType) { throw new UnsupportedOperationException("Stringifier is not supported for the logical type: " + this); }

Target:
PrimitiveStringifier valueStringifier(PrimitiveType primitiveType) { throw new UnsupportedOperationException("Stringifier is not supported for the logical type: " + this); }
Source:
public void invalidIntReturnIs500() throws NoSuchMethodException { Set<ConstraintViolation<ConstraintViolationsTest>> violations = execValidator.validateReturnValue( new ConstraintViolationsTest(), ConstraintViolationsTest.class.getMethod("theIntTest", Integer.class), 4 ); assertThat(violations).hasSize(1); Set<ConstraintViolation<?>> copy = ConstraintViolations.copyOf(violations); assertThat(ConstraintViolations.determineStatus(copy)).isEqualTo(500); }

Target:
public void invalidIntReturnIs500() { Set<ConstraintViolation<ConstraintViolationsTest>> violations = execValidator.validateReturnValue( this, getAccessibleMethod(getClass(), "theIntTest", Integer.class), 4 ); assertThat(violations).hasSize(1); assertThat(ConstraintViolations.determineStatus(violations)).isEqualTo(500); }
Source:
public String lineProtocol(final TimeUnit precision) { final StringBuilder sb = CACHED_STRINGBUILDERS.get(); sb.setLength(0); escapeKey(sb, measurement); concatenatedTags(sb); concatenatedFields(sb); if (precision != null) { formatedTime(sb, precision); } else { formatedTime(sb); } return sb.toString(); }

Target:
public String lineProtocol(final TimeUnit precision) { StringBuilder sb = CACHED_STRINGBUILDERS.get(); sb.setLength(0); escapeKey(sb, measurement); concatenatedTags(sb); concatenatedFields(sb); formatedTime(sb, precision); return sb.toString(); }
Source:
synchronized boolean tryAcquirePersistentLock() { Preconditions.checkState(!isShutDown, "This PersistentLockManager is shut down, and cannot be used to acquire locks."); try { lockId = persistentLockService.acquireBackupLock("Sweep"); referenceCount++; log.info("Successfully acquired persistent lock for sweep: {}", SafeArg.of("lockId", lockId)); return true; } catch (CheckAndSetException e) { List<byte[]> actualValues = e.getActualValues(); if (!actualValues.isEmpty()) { LockEntry actualEntry = LockEntry.fromStoredValue(actualValues.get(0)); log.info("CAS failed on lock acquire. We thought the lockId was {}, and the database has {}", SafeArg.of("lockId", lockId), SafeArg.of("actualEntry", actualEntry)); if (lockId != null && actualEntry.instanceId().equals(lockId.value())) { referenceCount++; log.info("Attempted to acquire the a new lock when we already held a lock." + " The acquire failed, but our lock is still valid, so we still hold the lock."); return true; } else { referenceCount = 0; lockId = null; } } lockFailureMeter.mark(); log.warn("Failed to acquire persistent lock for sweep. Waiting and retrying."); return false; } catch (NotInitializedException e) { log.info("The LockStore is not initialized yet. Waiting and retrying."); return false; } }

Target:
synchronized boolean tryAcquirePersistentLock() { Preconditions.checkState(!isShutDown, "This PersistentLockManager is shut down, and cannot be used to acquire locks."); try { lockId = persistentLockService.acquireBackupLock("Sweep"); referenceCount++; log.info("Successfully acquired persistent lock for sweep: {}", SafeArg.of("lockId", lockId)); return true; } catch (CheckAndSetException e) { List<byte[]> actualValues = e.getActualValues(); if (!actualValues.isEmpty()) { LockEntry actualEntry = LockEntry.fromStoredValue(actualValues.get(0)); log.info("CAS failed on lock acquire. We thought the lockId was {}, and the database has {}", SafeArg.of("lockId", lockId), SafeArg.of("actualEntry", actualEntry)); if (lockId != null && actualEntry.instanceId().equals(lockId.value())) { referenceCount++; log.info("Attempted to acquire a new lock when we already held a lock." + " The acquire failed, but our lock is still valid, so we still hold the lock."); return true; } else { referenceCount = 0; lockId = null; } } lockFailureMeter.mark(); log.warn("Failed to acquire persistent lock for sweep. Waiting and retrying."); return false; } catch (NotInitializedException e) { log.info("The LockStore is not initialized yet. Waiting and retrying."); return false; } }
Source:
public boolean canBeInstantiated() { return (this.modifiers & (ClassFileConstants.AccAbstract | ClassFileConstants.AccInterface | ClassFileConstants.AccEnum | ClassFileConstants.AccAnnotation | ExtraCompilerModifiers.AccRecord)) == 0; }

Target:
public boolean canBeInstantiated() { return (this.modifiers & (ClassFileConstants.AccAbstract | ClassFileConstants.AccInterface | ClassFileConstants.AccEnum | ClassFileConstants.AccAnnotation)) == 0; }
Source:
public Iterable<Hardware> listHardwareProfiles() { Set<Hardware> hardware = Sets.newLinkedHashSet(); hardware.add(new HardwareBuilder().ids("micro").hypervisor("lxc").name("micro").ram(512).build()); hardware.add(new HardwareBuilder().ids("small").hypervisor("lxc").name("small").ram(1024).build()); hardware.add(new HardwareBuilder().ids("medium").hypervisor("lxc").name("medium").ram(2048).build()); hardware.add(new HardwareBuilder().ids("large").hypervisor("lxc").name("large").ram(3072).build()); return hardware; }

Target:
public Iterable<Hardware> listHardwareProfiles() { Set<Hardware> hardware = Sets.newLinkedHashSet(); hardware.add(new HardwareBuilder().ids("micro").hypervisor("lxc").name("micro").processor(new Processor(1, 1)).ram(512).build()); hardware.add(new HardwareBuilder().ids("small").hypervisor("lxc").name("small").processor(new Processor(1, 1)).ram(1024).build()); hardware.add(new HardwareBuilder().ids("medium").hypervisor("lxc").name("medium").processor(new Processor(1, 1)).ram(2048).build()); hardware.add(new HardwareBuilder().ids("large").hypervisor("lxc").name("large").processor(new Processor(1, 1)).ram(3072).build()); return hardware; }
Source:
public void run() { CompletableFuture.runAsync(super::run, executorService); }

Target:
public void run() { executorService.submit(internalLeaderElector::run); }
Source:
public void beginProcessing(String charset) { final Builder builder = DetectorOptions.newBuilder() .reporter(this) .format(format) .message(message) .minimum(minimum) .maximum(maximum) .ignoreCase(ignoreCase); if (matchAcrossLines) { builder.compileFlags(Pattern.DOTALL); } else { builder.compileFlags(Pattern.MULTILINE); } final DetectorOptions options = builder.build(); detector = new MultilineDetector(options); }

Target:
public void beginProcessing(String charset) { final DetectorOptions options = DetectorOptions.newBuilder() .reporter(this) .compileFlags(getRegexCompileFlags()) .format(format) .message(message) .minimum(minimum) .maximum(maximum) .ignoreCase(ignoreCase) .build(); detector = new MultilineDetector(options); }
Source:
public void start() throws Exception { if (serializedExecutor == null) { LOG.debug("{} Starting leadership controller...", logPrefix()); serializedExecutor = Executors.newSingleThreadScheduledExecutor(); leaderNotifier = new TimedLeaderNotifier(this.eventHandler); leaderNotifier.start(); serializedExecutor.execute(this::refreshStatus); } }

Target:
public void start() throws Exception { if (serializedExecutor == null) { LOG.debug("{} Starting leadership controller...", logPrefix()); serializedExecutor = camelContext.getExecutorServiceManager().newSingleThreadScheduledExecutor(this, "CamelKubernetesLeadershipController"); leaderNotifier = new TimedLeaderNotifier(this.camelContext, this.eventHandler); leaderNotifier.start(); serializedExecutor.execute(this::refreshStatus); } }
Source:
public ExprEval apply(List<Expr> args, Expr.ObjectBinding bindings) { if (args.size() != 3) { throw new IAE("function '%s' needs 3 arguments", name()); } final String arg = args.get(0).eval(bindings).asString(); final int index = args.get(1).eval(bindings).asInt(); final ExprEval lengthExprEval = args.get(2).eval(bindings); final int end = lengthExprEval.asInt() >= 0 ? index + lengthExprEval.asInt() : -1; if (arg == null) { return ExprEval.of(null); } if (index < arg.length()) { if (end > 0) { return ExprEval.of(arg.substring(index, Math.min(end, arg.length()))); } else { return ExprEval.of(arg.substring(index)); } } else { return ExprEval.of(null); } }

Target:
public ExprEval apply(List<Expr> args, Expr.ObjectBinding bindings) { if (args.size() != 3) { throw new IAE("Function[%s] needs 3 arguments", name()); } final String arg = args.get(0).eval(bindings).asString(); if (arg == null) { return ExprEval.of(null); } final int index = args.get(1).eval(bindings).asInt(); final int length = args.get(2).eval(bindings).asInt(); if (index < arg.length()) { if (length >= 0) { return ExprEval.of(arg.substring(index, Math.min(index + length, arg.length()))); } else { return ExprEval.of(arg.substring(index)); } } else { return ExprEval.of(null); } }
Source:
public void onResume() { super.onResume(); if (mBlog != null && !mBlogTitleTextView.getText().equals(mBlog.getBlogName())) { mBlogTitleTextView.setText(mBlog.getBlogName()); } if (ServiceUtils.isServiceRunning(getActivity(), StatsService.class)) { getActivity().stopService(new Intent(getActivity(), StatsService.class)); } long delayMs = getResources().getInteger(R.integer.fab_animation_delay); new Handler().postDelayed(new Runnable() { @Override public void run() { if (isAdded() && mBlog != null && (mFabView.getVisibility() != View.VISIBLE || mFabView.getTranslationY() != 0)) { AniUtils.showFab(mFabView, true); } } }, delayMs); }

Target:
public void onResume() { super.onResume(); final Blog blog = WordPress.getBlog(mBlogLocalId); refreshBlogDetails(blog); if (ServiceUtils.isServiceRunning(getActivity(), StatsService.class)) { getActivity().stopService(new Intent(getActivity(), StatsService.class)); } long delayMs = getResources().getInteger(R.integer.fab_animation_delay); new Handler().postDelayed(new Runnable() { @Override public void run() { if (isAdded() && blog != null && (mFabView.getVisibility() != View.VISIBLE || mFabView.getTranslationY() != 0)) { AniUtils.showFab(mFabView, true); } } }, delayMs); }
Source:
public void testWriteAndReadVCFHeaderless(final String extension) throws IOException { final File fakeVCFFile = File.createTempFile("testWriteAndReadVCFHeaderless.", extension, tempDir); if (".vcf.gz".equals(extension)) { new File(fakeVCFFile.getAbsolutePath() + ".tbi"); } else { Tribble.indexFile(fakeVCFFile); } metaData = new HashSet<VCFHeaderLine>(); additionalColumns = new HashSet<String>(); final SAMSequenceDictionary sequenceDict = createArtificialSequenceDictionary(); final VCFHeader header = createFakeHeader(metaData, additionalColumns, sequenceDict); try (final VariantContextWriter writer = new VariantContextWriterBuilder() .setOutputFile(fakeVCFFile).setReferenceDictionary(sequenceDict) .setOptions(EnumSet.of(Options.ALLOW_MISSING_FIELDS_IN_HEADER, Options.INDEX_ON_THE_FLY)) .build()) { writer.setVCFHeader(header); writer.add(createVC(header)); writer.add(createVC(header)); } final VCFCodec codec = new VCFCodec(); codec.setVCFHeader(header, VCFHeaderVersion.VCF4_2); try (BlockCompressedInputStream bcis = new BlockCompressedInputStream(fakeVCFFile); FileInputStream fis = new FileInputStream(fakeVCFFile)) { AsciiLineReaderIterator iterator; if (".vcf.gz".equals(extension)) { iterator = new AsciiLineReaderIterator(new AsciiLineReader(bcis)); } else { iterator = new AsciiLineReaderIterator(new AsciiLineReader(fis)); } int counter = 0; while (iterator.hasNext()) { VariantContext context = codec.decode(iterator.next()); counter++; } Assert.assertEquals(counter, 2); } }

Target:
public void testWriteAndReadVCFHeaderless(final String extension) throws IOException { final File fakeVCFFile = File.createTempFile("testWriteAndReadVCFHeaderless.", extension, tempDir); fakeVCFFile.deleteOnExit(); if (".vcf.gz".equals(extension)) { new File(fakeVCFFile.getAbsolutePath() + ".tbi"); } else { Tribble.indexFile(fakeVCFFile).deleteOnExit(); } metaData = new HashSet<>(); additionalColumns = new HashSet<>(); final SAMSequenceDictionary sequenceDict = createArtificialSequenceDictionary(); final VCFHeader header = createFakeHeader(metaData, additionalColumns, sequenceDict); try (final VariantContextWriter writer = new VariantContextWriterBuilder() .setOutputFile(fakeVCFFile).setReferenceDictionary(sequenceDict) .setOptions(EnumSet.of(Options.ALLOW_MISSING_FIELDS_IN_HEADER, Options.INDEX_ON_THE_FLY)) .build()) { writer.setVCFHeader(header); writer.add(createVC(header)); writer.add(createVC(header)); } final VCFCodec codec = new VCFCodec(); codec.setVCFHeader(header, VCFHeaderVersion.VCF4_2); try (BlockCompressedInputStream bcis = new BlockCompressedInputStream(fakeVCFFile); FileInputStream fis = new FileInputStream(fakeVCFFile)) { AsciiLineReaderIterator iterator = new AsciiLineReaderIterator(new AsciiLineReader(".vcf.gz".equals(extension) ? bcis : fis)); int counter = 0; while (iterator.hasNext()) { VariantContext context = codec.decode(iterator.next()); counter++; } Assert.assertEquals(counter, 2); } }
Source:
public boolean hasPendingMigrationsWork(long vmId) { List<HaWorkVO> haWorks = _haDao.listPendingMigrationsForVm(vmId); for (HaWorkVO work : haWorks) { if (work.getTimesTried() < _maxRetries) { return true; } } return false; }

Target:
public boolean hasPendingMigrationsWork(long vmId) { List<HaWorkVO> haWorks = _haDao.listPendingMigrationsForVm(vmId); for (HaWorkVO work : haWorks) { if (work.getTimesTried() <= _maxRetries) { return true; } else { s_logger.warn("HAWork Job of migration type " + work + " found in database which has max " + "retries more than " + _maxRetries + " but still not in Done, Cancelled, or Error State"); } } return false; }
Source:
private Boolean isInMutualCategory(ThrottleJobProperty jobBeingChecked, ThrottleJobProperty executingJob) { for (String category: jobBeingChecked.getCategories()) { if (executingJob.getCategories().contains(category)) { return true; } } return false; }

Target:
private boolean isInMutualCategory(ThrottleJobProperty jobBeingChecked, ThrottleJobProperty executingJob) { if (jobBeingChecked != null && executingJob != null) { for (String category : jobBeingChecked.getCategories()) { if (executingJob.getCategories().contains(category)) { return true; } } } return false; }
Source:
private static BuildConfig mergeConfig(BuildConfig primary, BuildConfig secondary) { Map<String, List<BuildCommand>> cmds = primary.getCmds().isEmpty() ? secondary.getCmds() : primary.getCmds(); Map<String, String> env = new LinkedHashMap<>(); env.putAll(secondary.getEnv()); env.putAll(primary.getEnv()); List<String> buildDeps = Lists.newArrayList(Iterables.concat(secondary.getBuildDeps(), primary.getBuildDeps())); List<String> webhooks = Lists.newArrayList(Iterables.concat(secondary.getWebhooks(), primary.getWebhooks())); List<String> cache = Lists.newArrayList(Iterables.concat(secondary.getCache(), primary.getCache())); return new BuildConfig(cmds, env, buildDeps, webhooks, cache, Optional.<GitInfo>absent()); }

Target:
private static BuildConfig mergeConfig(BuildConfig primary, BuildConfig secondary) { List<BuildStep> steps = primary.getSteps().isEmpty() ? secondary.getSteps() : primary.getSteps(); Map<String, String> env = new LinkedHashMap<>(); env.putAll(secondary.getEnv()); env.putAll(primary.getEnv()); List<String> buildDeps = Lists.newArrayList(Iterables.concat(secondary.getBuildDeps(), primary.getBuildDeps())); List<String> webhooks = Lists.newArrayList(Iterables.concat(secondary.getWebhooks(), primary.getWebhooks())); List<String> cache = Lists.newArrayList(Iterables.concat(secondary.getCache(), primary.getCache())); return new BuildConfig(steps, env, buildDeps, webhooks, cache, Optional.<GitInfo>absent()); }
Source:
public DefaultDevToolsFactory(final Config config) { _chromePath = config.getString("path"); _chromeArgs = ImmutableMap.copyOf(config.getObject("args").unwrapped()); _executor = createExecutorService(config.hasPath("executor") ? config.getConfig("executor") : ConfigFactory.empty()); _service = Suppliers.memoize(this::createService); try { _originConfigs = ObjectMapperFactory.createInstance().readValue( ConfigurationHelper.toJson(config, "origins"), ORIGIN_CONFIG_MAP_TYPE ); } catch (final IOException e) { throw new IllegalArgumentException(e); } }

Target:
DefaultDevToolsFactory(final Config config) { this(config, ObjectMapperFactory.createInstance()); }
Source:
public static Properties readTDConf() { Properties p = new Properties(); File file = new File(System.getProperty("user.home", "./"), String.format(".td/td.conf")); if (!file.exists()) { logger.debug(String.format("config file %s is not found", file)); return p; } return readTDConf(file); }

Target:
public static Properties readTDConf() { Properties p = new Properties(); File file = new File(System.getProperty("user.home", "./"), String.format(".td/td.conf")); if (!file.exists()) { logger.warn(String.format("config file %s is not found", file)); return p; } return readTDConf(file); }
Source:
public static QualifiedName create(NamespaceNameTree nameTree) { ImmutableList.Builder<String> newName = ImmutableList.builder(); nameTree.namespaces().stream().map(NameIdentifierTree::text).forEach(newName::add); newName.add(nameTree.name().text()); return new QualifiedName(newName.build()); }

Target:
public static QualifiedName create(NamespaceNameTree nameTree) { List<String> namespaces = nameTree.namespaces().stream().map(NameIdentifierTree::text).collect(Collectors.toList()); return new QualifiedName(namespaces, nameTree.name().text()); }
Source:
private static boolean expiring(Date expiry) { long timeRemaining = expiry.getTime() - System.currentTimeMillis(); return timeRemaining < (60 * 1000); }

Target:
private static boolean expiring(Date expiry) { long timeRemaining = expiry.getTime() - System.currentTimeMillis(); return timeRemaining < EXPIRY_TIME_MILLIS; }
Source:
public <R extends PhotonRequest> R create(Request webRequest) throws BadRequestException { String language = webRequest.queryParams("lang"); language = language == null ? "en" : language; languageChecker.apply(language); String query = webRequest.queryParams("q"); if (query == null) throw new BadRequestException(400, "missing search term 'q': /?q=berlin"); Integer limit; try { limit = Integer.valueOf(webRequest.queryParams("limit")); } catch (NumberFormatException e) { limit = 15; } Point locationForBias = null; try { Double lon = Double.valueOf(webRequest.queryParams("lon")); Double lat = Double.valueOf(webRequest.queryParams("lat")); locationForBias = new GeometryFactory(new PrecisionModel(), 4326).createPoint(new Coordinate(lon, lat)); } catch (Exception nfe) { } QueryParamsMap tagFiltersQueryMap = webRequest.queryMap("osm_tag"); if (!new CheckIfFilteredRequest().execute(tagFiltersQueryMap)) { return (R) new PhotonRequest(query, limit, locationForBias, language); } FilteredPhotonRequest photonRequest = new FilteredPhotonRequest(query, limit, locationForBias, language); String[] tagFilters = tagFiltersQueryMap.values(); setUpTagFilters(photonRequest, tagFilters); return (R) photonRequest; }

Target:
public <R extends PhotonRequest> R create(Request webRequest) throws BadRequestException { String language = webRequest.queryParams("lang"); language = language == null ? "en" : language; languageChecker.apply(language); String query = webRequest.queryParams("q"); if (query == null) throw new BadRequestException(400, "missing search term 'q': /?q=berlin"); Integer limit; try { limit = Integer.valueOf(webRequest.queryParams("limit")); } catch (NumberFormatException e) { limit = 15; } Point locationForBias = null; try { Double lon = Double.valueOf(webRequest.queryParams("lon")); Double lat = Double.valueOf(webRequest.queryParams("lat")); locationForBias = geometryFactory.createPoint(new Coordinate(lon, lat)); } catch (Exception nfe) { } QueryParamsMap tagFiltersQueryMap = webRequest.queryMap("osm_tag"); if (!new CheckIfFilteredRequest().execute(tagFiltersQueryMap)) { return (R) new PhotonRequest(query, limit, locationForBias, language); } FilteredPhotonRequest photonRequest = new FilteredPhotonRequest(query, limit, locationForBias, language); String[] tagFilters = tagFiltersQueryMap.values(); setUpTagFilters(photonRequest, tagFilters); return (R) photonRequest; }
Source:
public void setInSlot(Object slot, PresenterWidget<?> content) { super.setInSlot(slot, content); if (slot == tabContentSlot) { try { Presenter<?, ?> presenter = (Presenter<?, ?>) content; Proxy<?> proxy = (Proxy<?>) presenter.getProxy(); if (proxy instanceof TabContentProxy) { getView().setActiveTab(((TabContentProxy<?>) proxy).getTab()); getView().setActiveTabHistoryToken(((TabContentProxy<?>) proxy).getTargetHistoryToken()); } } catch (Exception e) { logger.log(Level.SEVERE, "Error while updating tab view", e); } } }

Target:
public void setInSlot(Object slot, PresenterWidget<?> content) { super.setInSlot(slot, content); if (slot == tabContentSlot) { try { Presenter<?, ?> presenter = (Presenter<?, ?>) content; TabContentProxy<?> proxy = (TabContentProxy<?>) presenter.getProxy(); getView().setActiveTab(proxy.getTab()); getView().setActiveTabHistoryToken(proxy.getTargetHistoryToken()); } catch (Exception e) { logger.log(Level.SEVERE, "Error while updating tab view", e); } } }
Source:
public void stop(BundleContext bundleContext) throws Exception { logger.info("Stopping JigasiBundleActivator"); sipGateway.stop(); }

Target:
public void stop(BundleContext bundleContext) throws Exception { logger.info("Stopping JigasiBundleActivator"); sipGateway.stop(); transcriptionGateway.stop(); }
Source:
public void execute() throws Exception { if (backupRestoreConfig.getSnapshotMetaServiceCronExpression().equalsIgnoreCase("-1")) { logger.info( "Not executing the Verification Service for backups as V2 backups are not enabled."); return; } if (instanceState.getRestoreStatus() != null && instanceState.getRestoreStatus().getStatus() != null && instanceState.getRestoreStatus().getStatus() == Status.STARTED) { logger.info( "Not executing the Verification Service for backups as Priam is in restore mode."); return; } DateRange dateRange = new DateRange( DateUtil.getInstant() .minus( backupRestoreConfig.getBackupVerificationSLOInHours(), ChronoUnit.HOURS), DateUtil.getInstant()); List<BackupVerificationResult> verificationResults = backupVerification.verifyAllBackups( BackupVersion.SNAPSHOT_META_SERVICE, false, dateRange); if (verificationResults.isEmpty() || verificationResults .stream() .filter(r -> r.valid) .collect(Collectors.toList()) .isEmpty()) { logger.error( "Not able to find any snapshot which is valid in our SLO window: hours", backupRestoreConfig.getBackupVerificationSLOInHours()); backupMetrics.incrementBackupVerificationFailure(); } else { verificationResults .stream() .forEach( r -> { logger.info( "Sending message for backup: {}", AbstractBackupPath.BackupFileType.SNAPSHOT_VERIFIED, r.snapshotInstant); backupNotificationMgr.notify(r); }); } }

Target:
public void execute() throws Exception { if (backupRestoreConfig.getSnapshotMetaServiceCronExpression().equalsIgnoreCase("-1")) { logger.info( "Not executing the Verification Service for backups as V2 backups are not enabled."); return; } if (instanceState.getRestoreStatus() != null && instanceState.getRestoreStatus().getStatus() != null && instanceState.getRestoreStatus().getStatus() == Status.STARTED) { logger.info( "Not executing the Verification Service for backups as Priam is in restore mode."); return; } DateRange dateRange = new DateRange( DateUtil.getInstant() .minus( backupRestoreConfig.getBackupVerificationSLOInHours(), ChronoUnit.HOURS), DateUtil.getInstant()); List<BackupVerificationResult> verificationResults = backupVerification.verifyAllBackups(BackupVersion.SNAPSHOT_META_SERVICE, dateRange); if (verificationResults.isEmpty() || verificationResults .stream() .filter(backupVerificationResult -> backupVerificationResult.valid) .count() == 0) { logger.error( "Not able to find any snapshot which is valid in our SLO window: hours", backupRestoreConfig.getBackupVerificationSLOInHours()); backupMetrics.incrementBackupVerificationFailure(); } else { verificationResults .stream() .forEach( backupVerificationResult -> { logger.info( "Sending message for backup: {}", AbstractBackupPath.BackupFileType.SNAPSHOT_VERIFIED, backupVerificationResult.snapshotInstant); backupNotificationMgr.notify(backupVerificationResult); }); } }