auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
<code>public FreemarkerViewProcessor(final javax.ws.rs.core.Configuration config, final ServiceLocator serviceLocator, @Optional final ServletContext servletContext) { super(config, servletContext, "freemarker", "ftl"); <START> ; <END> this.factory = getTemplateObjectFactory(serviceLocator, FreemarkerConfigurationFactory.class, new Value<FreemarkerConfigurationFactory>() { @Override public FreemarkerConfigurationFactory get() { Configuration configuration = getTemplateObjectFactory(serviceLocator, Configuration.class, new Value<Configuration>() { @Override public Configuration get() { return null; } }); if (configuration == null) { return new FreemarkerDefaultConfigurationFactory(servletContext); } else { return new FreemarkerSuppliedConfigurationFactory(configuration); } } }); }</code><technical_language>Remove ;</technical_language>

Target:
public FreemarkerViewProcessor(final javax.ws.rs.core.Configuration config, final ServiceLocator serviceLocator, @Optional final ServletContext servletContext) { super(config, servletContext, "freemarker", "ftl"); this.factory = getTemplateObjectFactory(serviceLocator, FreemarkerConfigurationFactory.class, new Value<FreemarkerConfigurationFactory>() { @Override public FreemarkerConfigurationFactory get() { Configuration configuration = getTemplateObjectFactory(serviceLocator, Configuration.class, Values.<Configuration>empty()); if (configuration == null) { return new FreemarkerDefaultConfigurationFactory(servletContext); } else { return new FreemarkerSuppliedConfigurationFactory(configuration); } } }); }
Source:
<code>private void logError(final Throwable t) { requestSpan.setStatus(Status.INTERNAL); requestSpan.putAttribute("event", AttributeValue.stringAttributeValue("error")); <START> requestSpan.putAttributes(environmentMetadata.toAttributes()); <END> requestSpan.addAnnotation(t.toString()); }</code><technical_language>metadata attach a request throws error. move span start of - request span, resource span, request span created</technical_language>

Target:
private void logError(final Throwable t) { requestSpan.setStatus(Status.INTERNAL); requestSpan.putAttribute("event", AttributeValue.stringAttributeValue("error")); requestSpan.addAnnotation(t.toString()); }
Source:
<code>public Optional<String> validate(final String dateTime) { try { <START> java.time.LocalDate.parse(dateTime, ISO_OFFSET_DATE_TIME); <END> final Matcher matcher = pattern.matcher(dateTime); if (matcher.matches()) { return Optional.empty(); } else { return error; } } catch (final DateTimeParseException e) { return error; } }</code><technical_language>if a difference, this OffsetDateTime.parse instead, ISO_OFFSET_DATE_TIME default format</technical_language>

Target:
public Optional<String> validate(final String dateTime) { try { OffsetDateTime.parse(dateTime, ISO_OFFSET_DATE_TIME); final Matcher matcher = pattern.matcher(dateTime); if (matcher.matches()) { return Optional.empty(); } else { return error; } } catch (final DateTimeParseException e) { return error; } }
Source:
<code>private Map readMapValue(ObjectMapper mapper, String messagePayload) { Map context; try { context = mapper.readValue(messagePayload, Map.class); } catch (IOException ioe) { <START> throw new InvalidPayloadFormatException(ioe); <END> } return context; }</code><technical_language>a lot of out of creating / throwing more specific exception? If this coming in wire, out HTTP 500. FWIW do some more general purpose exceptions in kork-exceptions exception handlers convert reasonable status codes bodies. able get of those. Also, is in logging including actual messagePayload failed deserialized a Map</technical_language>

Target:
private Map readMapValue(ObjectMapper mapper, String messagePayload) { Map context; try { context = mapper.readValue(messagePayload, Map.class); } catch (IOException ioe) { log.error(messagePayload); throw new InvalidRequestException(ioe); } return context; }
Source:
<code>public PasswordBasedEncryptionUtil build() throws GeneralSecurityException { if (picketBoxCompatibility && alphabet != Alphabet.PICKETBOX_COMPATIBILITY) { alphabet = Alphabet.PICKETBOX_COMPATIBILITY; usePadding = false; keyAlgorithm = DEFAULT_PICKETBOX_ALGORITHM; <START> password = DEFAULT_PICKETBOX_INITIAL_KEY_MATERIAL.toCharArray(); <END> } if (iteration <= -1) { throw log.iterationCountNotSpecified(); } if (salt == null) { throw log.saltNotSpecified(); } if (password == null || password.length == 0) { throw log.initialKeyNotSpecified(); } if (keyAlgorithm == null) { keyAlgorithm = DEFAULT_PBE_ALGORITHM; } if (transformation == null) { transformation = keyAlgorithm; } if (parametersAlgorithm == null) { parametersAlgorithm = keyAlgorithm; } if (cipherSalt == null) { cipherSalt = salt; } if (cipherIteration == -1) { cipherIteration = iteration; } if (ivSpec == null && encodedIV != null) { ByteIterator byteIterator = isBase64(alphabet) ? CodePointIterator.ofString(encodedIV).base64Decode(getAlphabet64(alphabet)) : CodePointIterator.ofString(encodedIV).base32Decode(getAlphabet32(alphabet)); ivSpec = new IvParameterSpec(byteIterator.drain()); } return new PasswordBasedEncryptionUtil(createAndInitCipher(deriveSecretKey()), algorithmParameters, alphabet, usePadding, picketBoxCompatibility); }</code><technical_language>Is correct usePadding etc. is set alphabet wrong</technical_language>

Target:
public PasswordBasedEncryptionUtil build() throws GeneralSecurityException { if (picketBoxCompatibility) { alphabet = Alphabet.PICKETBOX_COMPATIBILITY; usePadding = false; keyAlgorithm = DEFAULT_PICKETBOX_ALGORITHM; password = DEFAULT_PICKETBOX_INITIAL_KEY_MATERIAL.toCharArray(); } if (iteration <= -1) { throw log.iterationCountNotSpecified(); } if (salt == null) { throw log.saltNotSpecified(); } if (password == null || password.length == 0) { throw log.initialKeyNotSpecified(); } if (keyAlgorithm == null) { keyAlgorithm = DEFAULT_PBE_ALGORITHM; } if (transformation == null) { transformation = keyAlgorithm; } if (parametersAlgorithm == null) { parametersAlgorithm = keyAlgorithm; } if (cipherSalt == null) { cipherSalt = salt; } if (cipherIteration == -1) { cipherIteration = iteration; } if (ivSpec == null && encodedIV != null) { ByteIterator byteIterator = isBase64(alphabet) ? CodePointIterator.ofString(encodedIV).base64Decode(getAlphabet64(alphabet)) : CodePointIterator.ofString(encodedIV).base32Decode(getAlphabet32(alphabet)); ivSpec = new IvParameterSpec(byteIterator.drain()); } return new PasswordBasedEncryptionUtil(createAndInitCipher(deriveSecretKey()), algorithmParameters, alphabet, usePadding, picketBoxCompatibility); }
Source:
<code>public GitHubSource(String organization, String project, HttpClient httpClient, GitHubLastUpdateCache gitHubLastUpdateCache) { this.httpClient = httpClient; this.projectUrl = String.format("<LINK_0>", organization, project); this.uniqueKey = organization + "@" + project; <START> this.gson = new Gson(); END> this.cache = gitHubLastUpdateCache; }</code><technical_language>TODO if a field Yeah, I asking thing. technically, wrong it. some investigation good - if multiple creations of new instances of Gson some performance impact not... Another question is if Gson instance is changed method fromJson is called</technical_language>

Target:
public GitHubSource(String organization, String project, HttpClient httpClient, GitHubLastUpdateCache gitHubLastUpdateCache) { this.httpClient = httpClient; this.projectUrl = String.format("<LINK_0>", organization, project); this.uniqueKey = organization + "@" + project; this.cache = gitHubLastUpdateCache; }
Source:
<code>private ILaunchConfiguration getRunningLaunchConfiguration( IProgressMonitor monitor) { final ILaunchConfiguration[] lc = new ILaunchConfiguration[1]; try { ModalContext.run(new IRunnableWithProgress() { public void run(IProgressMonitor m) throws InvocationTargetException, InterruptedException { Set<IProject> projects = new HashSet<IProject>(Arrays .asList(ProjectUtil.getProjects(repository))); ILaunchManager launchManager = DebugPlugin.getDefault() .getLaunchManager(); ILaunch[] launches = launchManager.getLaunches(); m.beginTask( UIText.BranchOperationUI_SearchLaunchConfiguration, launches.length); for (ILaunch launch : launches) { m.worked(1); if (launch.isTerminated()) continue; ISourceLocator locator = launch.getSourceLocator(); if (locator instanceof ISourceLookupDirector) { ISourceLookupDirector director = (ISourceLookupDirector) locator; ISourceContainer[] containers = director .getSourceContainers(); if (isAnyProjectInSourceContainers(containers, projects)) { lc[0] = launch.getLaunchConfiguration(); return; } } } } }, true, monitor, Display.getDefault()); } catch <START> (@SuppressWarnings("unused") InvocationTargetException <END> e) { } catch (@SuppressWarnings("unused") InterruptedException e) { } return lc[0]; }</code><technical_language>I get a warning "Unnecessary @SuppressWarnings("unused")"</technical_language>

Target:
private ILaunchConfiguration getRunningLaunchConfiguration( IProgressMonitor monitor) { final ILaunchConfiguration[] lc = new ILaunchConfiguration[1]; try { ModalContext.run(new IRunnableWithProgress() { public void run(IProgressMonitor m) throws InvocationTargetException, InterruptedException { Set<IProject> projects = new HashSet<IProject>(Arrays .asList(ProjectUtil.getProjects(repository))); ILaunchManager launchManager = DebugPlugin.getDefault() .getLaunchManager(); ILaunch[] launches = launchManager.getLaunches(); m.beginTask( UIText.BranchOperationUI_SearchLaunchConfiguration, launches.length); for (ILaunch launch : launches) { m.worked(1); if (launch.isTerminated()) continue; ISourceLocator locator = launch.getSourceLocator(); if (locator instanceof ISourceLookupDirector) { ISourceLookupDirector director = (ISourceLookupDirector) locator; ISourceContainer[] containers = director .getSourceContainers(); if (isAnyProjectInSourceContainers(containers, projects)) { lc[0] = launch.getLaunchConfiguration(); return; } } } } }, true, monitor, Display.getDefault()); } catch (InvocationTargetException e) { } catch (InterruptedException e) { } return lc[0]; }
Source:
<code>private DateTimeFormatter getFormatter(){ switch (this){ case days: return DateTimeFormat.forPattern("yyyy-MM-dd"); case months: return DateTimeFormat.forPattern("yyyy/MM"); case weeks: return DateTimeFormat.forPattern("yyyy/ww"); case years: return DateTimeFormat.forPattern("yyyy"); case quarters: return DateTimeFormat.forPattern("yyyy"); case simpleSum: <START> break; <END> } return null; }</code><technical_language>Constant simpleSum removed this constant is this class</technical_language>

Target:
private DateTimeFormatter getFormatter(){ switch (this){ case days: return DateTimeFormat.forPattern("yyyy-MM-dd"); case months: return DateTimeFormat.forPattern("yyyy/MM"); case weeks: return DateTimeFormat.forPattern("yyyy/ww"); case years: return DateTimeFormat.forPattern("yyyy"); case quarters: return DateTimeFormat.forPattern("yyyy"); } return null; }
Source:
<code><START> private boolean connectHostToPool() { <END> setStoragePool(null); final Guid masterDomainIdFromDb = getMasterDomainIdFromDb(); final VDS vds = getVds(); final storage_pool storagePool = getStoragePool(); EventResult result = ((EventQueue) EjbUtils.findBean(BeanType.EVENTQUEUE_MANAGER, BeanProxyType.LOCAL)).submitEventSync(new Event(storagePool.getId(), masterDomainIdFromDb, vds.getId(), EventType.VDSCONNECTTOPOOL), new Callable<EventResult>() { @Override public EventResult call() { return runConnectHostToPoolEvent(masterDomainIdFromDb, vds, storagePool); } }); if (result != null) { return result.isSuccess(); } return false; }</code><technical_language>I load data event execution - prevent races, events executed order..but data loading is done separately outdated event is executed additional reconstruct reconstruct finished succesfully</technical_language>

Target:
private boolean connectHostToPool() { final VDS vds = getVds(); EventResult result = ((EventQueue) EjbUtils.findBean(BeanType.EVENTQUEUE_MANAGER, BeanProxyType.LOCAL)).submitEventSync(new Event(getStoragePool().getId(), null, vds.getId(), EventType.VDSCONNECTTOPOOL), new Callable<EventResult>() { @Override public EventResult call() { return runConnectHostToPoolEvent(getStoragePool().getId(), vds); } }); if (result != null) { return result.isSuccess(); } return false; }
Source:
<code>private List<IBuildPlan> getPlans(Object parent, List<IBuildPlan> plans) { List<IBuildPlan> children = new ArrayList<IBuildPlan>(plans.size()); for (IBuildPlan plan : plans) { <START> if (isSelectedOnly() && !plan.isSelected()) { <END> continue; } if (isNestPlansEnabled() && plan.getParent() != null && plan.getParent() != parent) { continue; } plan.getChildren().forEach(child -> { IBuildPlan childParent = child.getParent(); child.setServer(childParent.getServer()); IBuild childParentBuild = childParent.getLastBuild(); if (childParentBuild != null) { child.setLastBuild(childParentBuild); } child.setSelected(child.getParent().isSelected()); }); children.add(plan); } return children; }</code><technical_language>instead of checking plan.isSelected() a method isSelected(plan){ if (plan.isSelected()) { return true; } if (plan.getParent() != null) { return isSelected(plan.getParent()); } return false; }</technical_language>

Target:
private List<IBuildPlan> getPlans(Object parent, List<IBuildPlan> plans) { List<IBuildPlan> children = new ArrayList<IBuildPlan>(plans.size()); for (IBuildPlan plan : plans) { if (isSelectedOnly() && !plan.isSelected()) { continue; } if (isNestPlansEnabled() && plan.getParent() != null && plan.getParent() != parent) { continue; } children.add(plan); } return children; }
Source:
<code>public static Fragment get(final Type type, final Bundle data) { switch (type) { case ACCOUNT_PROFILE: return AccountProfileFragment.newInstance(data); case BATTLE_FEED: return BattleFeedFragment.newInstance(data); case PLATOON_PROFILE: return PlatoonProfileFragment.newInstance(data); case SOLDIER_OVERVIEW: return SoldierOverviewFragment.newInstance(data); case SOLDIER_STATS: return SoldierStatsFragment.newInstance(data); <START> case WEAPON_STATS: <END> return WeaponStatsFragment.newInstance(); case NEWS_LISTING: return NewsListingFragment.newInstance(data); case NEWS_ITEM: return NewsArticleFragment.newInstance(data); case BATTLE_FEED_POSTING: return BattleFeedPostingFragment.newInstance(data); case FORUM_LISTING: return ForumListingFragment.newInstance(data); case THREAD_LISTING: return ThreadListingFragment.newInstance(data); case THREAD_CREATING: return ThreadCreationFragment.newInstance(data); case POST_LISTING: return PostListingFragment.newInstance(data); case POST_CREATING: return PostCreationFragment.newInstance(data); case NOTIFICATION: return NotificationFragment.newInstance(data); case BATTLE_REPORT: return BattleReportFragment.newInstance(data); case BATTLE_REPORT_LISTING: return BattleReportListingFragment.newInstance(data); default: throw new TypeNotPresentException("" + type, null); } }</code><technical_language>forget pass data</technical_language>

Target:
public static Fragment get(final Type type, final Bundle data) { switch (type) { case ACCOUNT_PROFILE: return AccountProfileFragment.newInstance(data); case BATTLE_FEED: return BattleFeedFragment.newInstance(data); case PLATOON_PROFILE: return PlatoonProfileFragment.newInstance(data); case SOLDIER_OVERVIEW: return SoldierOverviewFragment.newInstance(data); case SOLDIER_STATS: return SoldierStatsFragment.newInstance(data); case WEAPON_STATS: return WeaponStatsFragment.newInstance(data); case NEWS_LISTING: return NewsListingFragment.newInstance(data); case NEWS_ITEM: return NewsArticleFragment.newInstance(data); case BATTLE_FEED_POSTING: return BattleFeedPostingFragment.newInstance(data); case FORUM_LISTING: return ForumListingFragment.newInstance(data); case THREAD_LISTING: return ThreadListingFragment.newInstance(data); case THREAD_CREATING: return ThreadCreationFragment.newInstance(data); case POST_LISTING: return PostListingFragment.newInstance(data); case POST_CREATING: return PostCreationFragment.newInstance(data); case NOTIFICATION: return NotificationFragment.newInstance(data); case BATTLE_REPORT: return BattleReportFragment.newInstance(data); case BATTLE_REPORT_LISTING: return BattleReportListingFragment.newInstance(data); default: throw new TypeNotPresentException("" + type, null); } }
Source:
<code>public static String extractDisplayNameFromGenerated(String generatedDisplayName) { <START> if (generatedDisplayName.matches("^.*(" + ITERATIONS_SAMPLES + "|Latency, sec|" + SUCCESS_RATE + ").*")) { <END> return removePattern(generatedDisplayName, " (Latency, sec|" + ITERATIONS_SAMPLES + "|" + SUCCESS_RATE + ") \\[.*\\]"); } return null; }</code><technical_language>please existing constants. LATENCY_SEC is for :)</technical_language>

Target:
public static String extractDisplayNameFromGenerated(String generatedDisplayName) { if (generatedDisplayName.matches(DISPLAY_NAME_REGEXP)) { return removePattern(generatedDisplayName, " (" + LATENCY_SEC + "|" + ITERATIONS_SAMPLES + "|" + SUCCESS_RATE + ") \\[.*\\]"); } log.warn("Generated display name '{}' doesn't match regexp '{}'. Will return null.", generatedDisplayName, DISPLAY_NAME_REGEXP); return null; }
Source:
<code>public void testGobbleStream() throws Exception { byte[] bytes = new byte[] {'a','b','c'}; InputStream stream = new ByteArrayInputStream(bytes); ByteArrayOutputStream out = new ByteArrayOutputStream(); StreamGobbler gobbler = new StreamGobbler(stream, out, null); gobbler.start(); try { <START> gobbler.join(1000*1000); <END> assertFalse(gobbler.isAlive()); assertEquals(new String(out.toByteArray()), "abc" + NL); } finally { gobbler.close(); gobbler.interrupt(); } }</code><technical_language>a long wait? more 30 seconds, if is windows takes? this in Integration group if seconds</technical_language>

Target:
public void testGobbleStream() throws Exception { byte[] bytes = new byte[] {'a','b','c'}; InputStream stream = new ByteArrayInputStream(bytes); ByteArrayOutputStream out = new ByteArrayOutputStream(); StreamGobbler gobbler = new StreamGobbler(stream, out, null); gobbler.start(); try { gobbler.join(10*1000); assertFalse(gobbler.isAlive()); assertEquals(new String(out.toByteArray()), "abc" + NL); } finally { gobbler.close(); gobbler.interrupt(); } }
Source:
<code>public PlanWithProperties visitSort(SortNode node, Context context) { PlanWithProperties child = planChild(node, context.withPreferredProperties(PreferredProperties.undistributed())); if (child.getProperties().isSingleNode()) { List<LocalProperty<Symbol>> desiredProperties = new ArrayList<>(); for (Symbol symbol : node.getOrderingScheme().getOrderBy()) { desiredProperties.add(new SortingProperty<>(symbol, node.getOrderingScheme().getOrdering(symbol))); } if (LocalProperties.match(child.getProperties().getLocalProperties(), desiredProperties).stream() .noneMatch(Optional::isPresent)) { return child; } } if (isDistributedSortEnabled(session)) { PlanNode source = child.getNode(); <START> if (isRedistributeSort(session)) { <END> source = roundRobinExchange(idAllocator.getNextId(), REMOTE, source); } return withDerivedProperties( mergingExchange( idAllocator.getNextId(), REMOTE, new SortNode( idAllocator.getNextId(), source, node.getOrderingScheme()), node.getOrderingScheme()), child.getProperties()); } if (!child.getProperties().isSingleNode()) { child = withDerivedProperties( gatheringExchange(idAllocator.getNextId(), REMOTE, child.getNode()), child.getProperties()); } return rebaseAndDeriveProperties(node, child); }</code><technical_language>this belong commit</technical_language>

Target:
public PlanWithProperties visitSort(SortNode node, Context context) { PlanWithProperties child = planChild(node, context.withPreferredProperties(PreferredProperties.undistributed())); if (child.getProperties().isSingleNode()) { List<LocalProperty<Symbol>> desiredProperties = new ArrayList<>(); for (Symbol symbol : node.getOrderingScheme().getOrderBy()) { desiredProperties.add(new SortingProperty<>(symbol, node.getOrderingScheme().getOrdering(symbol))); } if (LocalProperties.match(child.getProperties().getLocalProperties(), desiredProperties).stream() .noneMatch(Optional::isPresent)) { return child; } } if (isDistributedSortEnabled(session)) { child = planChild(node, context.withPreferredProperties(PreferredProperties.any())); PlanNode source = child.getNode(); if (isRedistributeSort(session)) { source = roundRobinExchange(idAllocator.getNextId(), REMOTE, source); } return withDerivedProperties( mergingExchange( idAllocator.getNextId(), REMOTE, new SortNode( idAllocator.getNextId(), source, node.getOrderingScheme()), node.getOrderingScheme()), child.getProperties()); } if (!child.getProperties().isSingleNode()) { child = withDerivedProperties( gatheringExchange(idAllocator.getNextId(), REMOTE, child.getNode()), child.getProperties()); } return rebaseAndDeriveProperties(node, child); }
Source:
<code>public void setUp() throws Exception { URL resource = getClass().getResource("/projects/defaultSpringProjectWithDifferentTypeOfFiles"); <START> blankWorkspace = testWorkspaceProvider.createWorkspace(defaultTestUser, 2, DEFAULT); <END> javaWorkspace = testWorkspaceProvider.createWorkspace(defaultTestUser, 3, UBUNTU_JDK8); blankWorkspace.await(); javaWorkspace.await(); testProjectServiceClient.importProject( javaWorkspace.getId(), Paths.get(resource.toURI()), "web-java-spring", MAVEN_SPRING); expectedBlankItem = new Workspaces.WorkspaceListItem( defaultTestUser.getName(), blankWorkspace.getName(), BLANK_WS_MB, BLANK_WS_PROJECTS_COUNT); expectedJavaItem = new Workspaces.WorkspaceListItem( defaultTestUser.getName(), javaWorkspace.getName(), JAVA_WS_MB, JAVA_WS_PROJECTS_COUNT); expectedNewestWorkspaceItem = new Workspaces.WorkspaceListItem( defaultTestUser.getName(), NEWEST_CREATED_WORKSPACE_NAME, BLANK_WS_MB, BLANK_WS_PROJECTS_COUNT); dashboard.open(); }</code><technical_language>Please, @InjectTestWorkspace inject test workspace</technical_language>

Target:
public void setUp() throws Exception { URL resource = getClass().getResource("/projects/defaultSpringProjectWithDifferentTypeOfFiles"); testProjectServiceClient.importProject( javaWorkspace.getId(), Paths.get(resource.toURI()), "web-java-spring", MAVEN_SPRING); expectedBlankItem = new Workspaces.WorkspaceListItem( defaultTestUser.getName(), blankWorkspace.getName(), BLANK_WS_MB, BLANK_WS_PROJECTS_COUNT); expectedJavaItem = new Workspaces.WorkspaceListItem( defaultTestUser.getName(), javaWorkspace.getName(), JAVA_WS_MB, JAVA_WS_PROJECTS_COUNT); expectedNewestWorkspaceItem = new Workspaces.WorkspaceListItem( defaultTestUser.getName(), NEWEST_CREATED_WORKSPACE_NAME, BLANK_WS_MB, BLANK_WS_PROJECTS_COUNT); dashboard.open(); }
Source:
<code>public Map<String, Serializable> getParameters(String key) { StorageEntry entry = getStorageEntry(key); if (entry == null) { return null; } <START> <END> Map<String, Serializable> res = new LinkedHashMap<>(entry.getParams()); if (log.isDebugEnabled()) { log.debug(String.format("Fetched parameters from StorageEntry stored at key %s: %s", key, res)); } return res; }</code><technical_language>add extra empty lines</technical_language>

Target:
public Map<String, Serializable> getParameters(String key) { StorageEntry entry = getStorageEntry(key); if (entry == null) { return null; } Map<String, Serializable> res = new HashMap<>(entry.getParams()); if (log.isDebugEnabled()) { log.debug(String.format("Fetched parameters from StorageEntry stored at key %s: %s", key, res)); } return res; }
Source:
<code>private StopReplicaRequest(StopReplicaRequestData data, short version) { super(ApiKeys.STOP_REPLICA, version, data.controllerId(), data.controllerEpoch(), data.brokerEpoch()); this.data = data; Stream<TopicPartition> partitionStream; if (version == 0) { partitionStream = data.partitionsV0().stream() .map(tp -> new TopicPartition(tp.topicName(), tp.partitionIndex())); } else { partitionStream = data.topics().stream().flatMap(topic -> topic.partitionIndexes().stream().map(partitionIndex -> new TopicPartition(topic.name(), partitionIndex)) ); } topicPartitions = Collections.unmodifiableList(partitionStream.collect(Collectors.toList())); <START> } <END></code><technical_language>Hmm,. create topicPartitions needed? I StopReplicaRequest#topicPartitions needs this level of optimization, duplicating stuff is frustrating</technical_language>

Target:
private StopReplicaRequest(StopReplicaRequestData data, short version) { super(ApiKeys.STOP_REPLICA, version); this.data = data; }
Source:
<code>public void handle(ResourcePackRequest resourcePackRequest) throws Exception { <START> ResourcePackRequestEvent requestEvent = new ResourcePackRequestEvent( <END> con, resourcePackRequest.getHash(), resourcePackRequest.getUrl() ); if ( con.getResourcePackHash() != null && resourcePackRequest.getHash().equals( con.getResourcePackHash() ) ) { requestEvent.setCancelled( true ); } if ( bungee.getPluginManager().callEvent( requestEvent ).isCancelled() ) { throw CancelSendSignal.INSTANCE; } else { con.setRequestedResourcePackHash( resourcePackRequest.getHash() ); } }</code><technical_language>need break lines</technical_language>

Target:
public void handle(ResourcePackRequest resourcePackRequest) throws Exception { ResourcePackRequestEvent requestEvent = new ResourcePackRequestEvent( con, con.getServer(), con, resourcePackRequest.getHash(), resourcePackRequest.getUrl() ); if ( con.getResourcePackHash() != null && resourcePackRequest.getHash().equals( con.getResourcePackHash() ) ) { requestEvent.setCancelled( true ); } if ( bungee.getPluginManager().callEvent( requestEvent ).isCancelled() ) { throw CancelSendSignal.INSTANCE; } con.setRequestedResourcePackHash( resourcePackRequest.getHash() ); }
Source:
<code>public TableAsyncBatch createBatch(String partitionKey) { <START> if (partitionKey == null || partitionKey.isEmpty()) { <END> throw logger.logExceptionAsError( new IllegalArgumentException("The partition key must not be null or empty.")); } return new TableAsyncBatch(partitionKey, this); }</code><technical_language>CoreUtils.isnullorEmpty</technical_language>

Target:
public TableAsyncBatch createBatch(String partitionKey) { if (CoreUtils.isNullOrEmpty(partitionKey)) { throw logger.logExceptionAsError( new IllegalArgumentException("The partition key must not be null or empty.")); } return new TableAsyncBatch(partitionKey, this); }
Source:
<code>private CharSequence getDatabaseContents(Content source, AbstractReader reader) { try { Map<String, String> tables = reader.getTableSchemas(); Collection<String> databaseStorage = new LinkedList<>(); Integer charactersCopied = loadDatabaseIntoCollection(databaseStorage, <START> tables, reader, source); <END> return toCharSequence(databaseStorage, charactersCopied); } catch (AbstractReader.FileReaderException ex) { logger.log(Level.WARNING, String.format( "Error attempting to get tables from file: " + "[%s] (id=%d).", source.getName(), source.getId()), ex); } return EMPTY_CHARACTER_SEQUENCE; }</code><technical_language>reason 'tables' obtained 'reader' in loadDatabaseIntoCollection()? parameter pass</technical_language>

Target:
private CharSequence getDatabaseContents(Content source, AbstractReader reader) throws FileReaderException { Collection<String> databaseStorage = new LinkedList<>(); Integer charactersCopied = loadDatabaseIntoCollection(databaseStorage, reader, source); return toCharSequence(databaseStorage, charactersCopied); }
Source:
<code>public BasicLabelStyleDescription createBasicLabelStyleDescription() { <START> BasicLabelStyleDescriptionImpl basicLabelStyleDescription = new BasicLabelStyleDescriptionImpl(); <END> return basicLabelStyleDescription; }</code><technical_language>in review of patch set 2: not-generated code missed</technical_language>

Target:
public BasicLabelStyleDescription createBasicLabelStyleDescription() { BasicLabelStyleDescriptionImpl basicLabelStyleDescription = new BasicLabelStyleDescriptionImpl(); new DefaultColorStyleDescription().setDefaultColors(basicLabelStyleDescription); return basicLabelStyleDescription; }
Source:
<code>public void clearPartition(boolean onShutdown, boolean onStorageDestroy) { <START> clearOtherResourcesThanStorage(onStorageDestroy); <END> if (onShutdown) { if (hasPooledMemoryAllocator()) { destroyStorage(true, true); } else { clearAndDestroyStorage(true, true); } } else { if (onStorageDestroy) { clearAndDestroyStorage(false, false); } else { clearStorage(false); } } }</code><technical_language>Comparing effects of destroy. Previously this invoked: java clearMapStore(); clearLockStore(); clearIndexedData(true); NodeEngine nodeEngine = mapServiceContext.getNodeEngine(); NativeMemoryConfig nativeMemoryConfig = nodeEngine.getConfig().getNativeMemoryConfig(); boolean shouldClear = (nativeMemoryConfig != null && nativeMemoryConfig.getAllocatorType() != POOLED); if (shouldClear) { storage.clear(true); mutationObserver.onClear(); } storage.destroy(true); mutationObserver.onDestroy(true); storage.destroy(false); mutationObserver.onDestroy(false); this is invoked: java clearMapStore(); clearLockStore(); clearIndexedData(true); storage.clear(false); mutationObserver.onClear(); storage.destroy(false); mutationObserver.onDestroy(false); I guess now, instead of conditionally clearing destroying twice, clear (even if allocator is POOLED) destroy. Is this right</technical_language>

Target:
public void clearPartition(boolean onShutdown, boolean onStorageDestroy) { clearLockStore(); clearOtherDataThanStorage(onStorageDestroy); if (onShutdown) { if (hasPooledMemoryAllocator()) { destroyStorageImmediate(true, true); } else { destroyStorageAfterClear(true, true); } } else { if (onStorageDestroy) { destroyStorageAfterClear(false, false); } else { clearStorage(false); } } }
Source:
<code>public void initializeUnityAds(Context context, String gameId, IUnityAdsInitializationListener initializationListener) { if (!UnityAds.isSupported()) { String errorMessage = "Unity Ads cannot be initialized: current device is not supported."; <START> initializationListener.onInitializationFailed(UnityAds.UnityAdsInitializationError.INTERNAL_ERROR, errorMessage); <END> } if (UnityAds.isInitialized()) { initializationListener.onInitializationComplete(); } MediationMetaData mediationMetaData = new MediationMetaData(context); mediationMetaData.setName("AdMob"); mediationMetaData.setVersion(BuildConfig.VERSION_NAME); mediationMetaData.set("adapter_version", UnityAds.getVersion()); mediationMetaData.commit(); UnityAds.initialize(context, gameId, false, true, initializationListener); }</code><technical_language>return; this statement. This is causing UnityAds attempt initialize</technical_language>

Target:
public void initializeUnityAds(Context context, String gameId, IUnityAdsInitializationListener initializationListener) { if (UnityAds.isInitialized()) { initializationListener.onInitializationComplete(); return; } MediationMetaData mediationMetaData = new MediationMetaData(context); mediationMetaData.setName("AdMob"); mediationMetaData.setVersion(BuildConfig.VERSION_NAME); mediationMetaData.set("adapter_version", UnityAds.getVersion()); mediationMetaData.commit(); UnityAds.initialize(context, gameId, false, true, initializationListener); }
Source:
<code>public Binder build(Annotation annotation) { return new Binder<BindMap, Object>() { @Override public void bind(SQLStatement q, BindMap bind, Object arg) { final String prefix; if (BindBean.BARE_BINDING.equals(bind.prefix())) { prefix = ""; } else { prefix = bind.prefix() + "."; } final Set<String> allowedKeys = new HashSet<String>(Arrays.asList(bind.value())); final Map<String, Object> map = (Map<String, Object>) arg; try { for (Entry e : map.entrySet()) { final Object keyObj = e.getKey(); final String key; if (bind.implicitKeyStringConversion() || (keyObj instanceof String)) { key = keyObj.toString(); } else { throw new IllegalArgumentException("Key " + keyObj + " (of " + keyObj.getClass() + ") must be a String"); } if (allowedKeys.isEmpty() || allowedKeys.remove(key)) { q.bind(prefix + key, e.getValue()); } } for (String key : allowedKeys) { final Object val = map.get(key); if (val != null) { throw new IllegalStateException("Internal error: map iteration missed key " + key); } q.bind(prefix + key, val); } } catch (Exception e) { <START> throw new IllegalStateException("Unable to bind map properties", e); <END> } } }; }</code><technical_language>rethrow IllegalArgumentException (better yet, rethrow RuntimeExceptions wrapping)</technical_language>

Target:
public Binder build(Annotation annotation) { return new Binder<BindMap, Object>() { @SuppressWarnings("unchecked") @Override public void bind(SQLStatement q, BindMap bind, Object arg) { final String prefix; if (BindBean.BARE_BINDING.equals(bind.prefix())) { prefix = ""; } else { prefix = bind.prefix() + "."; } final Set<String> allowedKeys = new HashSet<String>(Arrays.asList(bind.value())); final Map<String, Object> map = (Map<String, Object>) arg; for (Entry e : map.entrySet()) { final Object keyObj = e.getKey(); final String key; if (bind.implicitKeyStringConversion() || (keyObj instanceof String)) { key = keyObj.toString(); } else { throw new IllegalArgumentException("Key " + keyObj + " (of " + keyObj.getClass() + ") must be a String"); } if (allowedKeys.isEmpty() || allowedKeys.remove(key)) { q.bind(prefix + key, e.getValue()); } } for (String key : allowedKeys) { final Object val = map.get(key); if (val != null) { throw new IllegalStateException("Internal error: map iteration missed key " + key); } q.bind(prefix + key, (Object) null); } } }; }
Source:
<code>public int getIconRes(Context context) { <START> if (context instanceof MapActivity) { <END> final OsmandApplication application = (OsmandApplication) (context).getApplicationContext(); final MapPoiTypes poiTypes = application.getPoiTypes(); final Map<String, PoiType> allTranslatedNames = poiTypes.getAllTranslatedNames(true); PoiCategory category = getCategory(allTranslatedNames); if (category != null) { category.getIconKeyName(); String res = category.getIconKeyName(); if (res instanceof String && RenderingIcons.containsBigIcon(res)) { return RenderingIcons.getBigIconResourceId(res); } else { return super.getIconRes(); } } } return super.getIconRes(); }</code><technical_language>do need this check</technical_language>

Target:
public int getIconRes(Context context) { PoiCategory category = getCategory(getAllTranslatedNames(context)); if (category != null) { category.getIconKeyName(); String res = category.getIconKeyName(); if (res != null && RenderingIcons.containsBigIcon(res)) { return RenderingIcons.getBigIconResourceId(res); } } return super.getIconRes(); }
Source:
<code>protected WorkDefinitionMatch getWorkDefinitionForPeerToPeerReview(IAtsPeerToPeerReview review) throws OseeCoreException { <START> Conditions.notNull(review); <END> WorkDefinitionMatch match = getWorkDefinitionFromArtifactsAttributeValue(review); if (!match.isMatched()) { match = getDefaultPeerToPeerWorkflowDefinitionMatch(); } return match; }</code><technical_language>add name of object get a exception message this method</technical_language>

Target:
protected WorkDefinitionMatch getWorkDefinitionForPeerToPeerReview(IAtsPeerToPeerReview review) throws OseeCoreException { Conditions.notNull(review, getClass().getSimpleName()); WorkDefinitionMatch match = getWorkDefinitionFromArtifactsAttributeValue(review); if (!match.isMatched()) { match = getDefaultPeerToPeerWorkflowDefinitionMatch(); } return match; }
Source:
<code><START> public synchronized int read() throws IOException { <END> if (ensureBytes(1)) { return buffer[index++] & 0xFF; } return -1; }</code><technical_language>remove synchronization this class</technical_language>

Target:
public int read() throws IOException { if (ensureBytes(1)) { return buffer[index++] & 0xFF; } return -1; }
Source:
<code>private byte[] getFileAsByteArray (File tarFile, String fileName) { byte[] data = null; <START> LOG.info("Getting file " + fileName + " from " + tarFile); <END> try (BufferedInputStream bis = new BufferedInputStream(new FileInputStream(tarFile)); TarArchiveInputStream tarArchiveInputStream = new TarArchiveInputStream(bis)) { TarArchiveEntry tarArchiveEntry = tarArchiveInputStream.getNextTarEntry(); while (tarArchiveEntry != null) { if (tarArchiveEntry.getName().equals(fileName)) { data = IOUtils.toByteArray(tarArchiveInputStream); break; } tarArchiveEntry = tarArchiveInputStream.getNextTarEntry(); } } catch (IOException e) { LOG.warn("Exception occured while getting file: " + fileName + " from " + tarFile, e); } return data; }</code><technical_language>LOG.info("Getting file {}", fileName, tarFile);</technical_language>

Target:
private byte[] getFileAsByteArray (File tarFile, String fileName) { byte[] data = null; LOG.info("Getting file from {}", fileName, tarFile); try (BufferedInputStream bis = new BufferedInputStream(new FileInputStream(tarFile)); TarArchiveInputStream tarArchiveInputStream = new TarArchiveInputStream(bis)) { TarArchiveEntry tarArchiveEntry = tarArchiveInputStream.getNextTarEntry(); while (tarArchiveEntry != null) { if (tarArchiveEntry.getName().equals(fileName)) { data = IOUtils.toByteArray(tarArchiveInputStream); break; } tarArchiveEntry = tarArchiveInputStream.getNextTarEntry(); } } catch (IOException e) { LOG.warn("Exception occured while getting file: " + fileName + " from " + tarFile, e); } return data; }
Source:
<code>public List<ServiceExtension> getServiceExtensions() { if (this.serviceExtensions == null) { this.serviceExtensions = new ArrayList<ServiceExtension>(); for (ServiceExtension serviceExtension : ServicesExtensionPoint.getDefault().getServiceExtensions()) { if (serviceExtension.getServiceTypeId().equals(this.id)) { this.serviceExtensions.add(serviceExtension); } } } <START> Collections.sort(this.serviceExtensions, new Comparator<ServiceExtension>() { @Override public int compare(ServiceExtension o1, ServiceExtension o2) { return o2.getPriority() - o1.getPriority(); } }); <END> return this.serviceExtensions; }</code><technical_language>o1.getPriority().compareTo(o2.getPriority()) please</technical_language>

Target:
public List<ServiceExtension> getServiceExtensions() { if (this.serviceExtensions == null) { this.serviceExtensions = new ArrayList<ServiceExtension>(); for (ServiceExtension serviceExtension : ServicesExtensionPoint.getDefault().getServiceExtensions()) { if (serviceExtension.getServiceTypeId().equals(this.id)) { this.serviceExtensions.add(serviceExtension); } } } Collections.sort(this.serviceExtensions, new Comparator<ServiceExtension>() { @Override public int compare(ServiceExtension o1, ServiceExtension o2) { return Integer.compare(o2.getPriority(), o1.getPriority()); } }); return this.serviceExtensions; }
Source:
<code><START> public void testCustomSignerOverride() throws AssertionError { <END> LOG.debug("Inside createConfiguration..."); assertTrue(assertIsCustomSignerLoaded()); }</code><technical_language>Please a testing principle in test: Arrange, Act, Assert - <LINK_0></technical_language>

Target:
public void testCustomSignerOverride() throws AssertionError { assertIsCustomSignerLoaded(); }
Source:
<code>public void shouldCreateVisitWithRequiredGivenParameters() { Patient patient = new Patient(); patient.setUuid("10"); DateTime startDateTime = new DateTime("2010-01-10T07:22:05Z"); DateTime endDateTime = new DateTime("2012-08-01T07:22:05Z"); Visit visit = new Visit(startDateTime.toDate(), endDateTime.toDate(), patient, new VisitType("testVisitType")); doReturn(patient).when(patientService).getPatientByUuid(eq(CONFIG_NAME), eq(patient.getUuid())); openMRSActionProxyService.createVisit(CONFIG_NAME, patient.getUuid(), new DateTime(visit.getStartDatetime()), <START> new DateTime(visit.getEndDatetime()), visit.getVisitType().getDisplay(), null); <END> verify(visitService).createVisit(eq(CONFIG_NAME), visitCaptor.capture()); assertEquals(visit, visitCaptor.getValue()); }</code><technical_language>do send visitType display</technical_language>

Target:
public void shouldCreateVisitWithRequiredGivenParameters() { Patient patient = new Patient(); patient.setUuid("10"); DateTime startDateTime = new DateTime("2010-01-10T07:22:05Z"); DateTime endDateTime = new DateTime("2012-08-01T07:22:05Z"); Visit visit = new Visit(startDateTime.toDate(), endDateTime.toDate(), patient, new VisitType("ee1b6117-e40b-4082-8880-96aca7ea1472")); doReturn(patient).when(patientService).getPatientByUuid(eq(CONFIG_NAME), eq(patient.getUuid())); openMRSActionProxyService.createVisit(CONFIG_NAME, patient.getUuid(), new DateTime(visit.getStartDatetime()), new DateTime(visit.getStopDatetime()), visit.getVisitType().getUuid(), null); verify(visitService).createVisit(eq(CONFIG_NAME), visitCaptor.capture()); assertEquals(visit, visitCaptor.getValue()); }
Source:
<code>public void testNumConnectionsMetricHttp() throws Exception { String text = "hello"; ByteArrayOutputStream out = new ByteArrayOutputStream(); try (GZIPOutputStream gzipOutputStream = new GZIPOutputStream(out)) { gzipOutputStream.write(text.getBytes(Charset.defaultCharset())); } Request request = new Request(HttpMethod.POST, new URL("http://localhost:" + port + "/slow/hello")); request.setHeader("Content-Encoding", "gzip"); request.setContent(MediaType.TEXT_PLAIN, out.toByteArray()); JettyServerModule jsm = inj.getInstance(JettyServerModule.class); Assert.assertEquals(0, jsm.getActiveConnections()); ListenableFuture<InputStream> go = client.go( request, new InputStreamResponseHandler() ); <START> Thread.sleep(100); <END> Assert.assertEquals(1, jsm.getActiveConnections()); go.get(); Thread.sleep(1000); Assert.assertEquals(0, jsm.getActiveConnections()); }</code><technical_language>is some for waiting sleeping.. do java while (jsm.getActiveConnections() == 0) { Thread.sleep(100); } Assert.assertEquals(1, jsm.getActiveConnections()); go.get();</technical_language>

Target:
public void testNumConnectionsMetricHttp() throws Exception { String text = "hello"; ByteArrayOutputStream out = new ByteArrayOutputStream(); try (GZIPOutputStream gzipOutputStream = new GZIPOutputStream(out)) { gzipOutputStream.write(text.getBytes(Charset.defaultCharset())); } Request request = new Request(HttpMethod.GET, new URL("http://localhost:" + port + "/latched/hello")); request.setHeader("Content-Encoding", "gzip"); request.setContent(MediaType.TEXT_PLAIN, out.toByteArray()); JettyServerModule jsm = injector.getInstance(JettyServerModule.class); latchedRequestState.reset(); Assert.assertEquals(0, jsm.getActiveConnections()); ListenableFuture<InputStream> go = client.go( request, new InputStreamResponseHandler() ); latchedRequestState.clientWaitForServerToStartRequest(); Assert.assertEquals(1, jsm.getActiveConnections()); latchedRequestState.clientReadyToFinishRequest(); go.get(); waitForJettyServerModuleActiveConnectionsZero(jsm); Assert.assertEquals(0, jsm.getActiveConnections()); }
Source:
<code>public ImmutableRoaringBitmap getDocIds(long h3IndexId) { SoftReference<ImmutableRoaringBitmap>[] bitmapArrayReference = null; int dictId = _dictionary.indexOf(String.valueOf(h3IndexId)); if (dictId < 0) { return new MutableRoaringBitmap(); } if (_bitmaps != null) { bitmapArrayReference = _bitmaps.get(); if (bitmapArrayReference != null) { SoftReference<ImmutableRoaringBitmap> bitmapReference = bitmapArrayReference[dictId]; if (bitmapReference != null) { ImmutableRoaringBitmap value = bitmapReference.get(); if (value != null) { return value; } } } else { bitmapArrayReference = new SoftReference[_numBitmaps]; _bitmaps = new SoftReference<SoftReference<ImmutableRoaringBitmap>[]>(bitmapArrayReference); <START> } <END> } else { bitmapArrayReference = new SoftReference[_numBitmaps]; _bitmaps = new SoftReference<SoftReference<ImmutableRoaringBitmap>[]>(bitmapArrayReference); } synchronized (this) { ImmutableRoaringBitmap value; if (bitmapArrayReference[dictId] == null || bitmapArrayReference[dictId].get() == null) { value = buildRoaringBitmapForIndex(dictId); bitmapArrayReference[dictId] = new SoftReference<ImmutableRoaringBitmap>(value); } else { value = bitmapArrayReference[dictId].get(); } return value; } }</code><technical_language>nan</technical_language>

Target:
public ImmutableRoaringBitmap getDocIds(long h3IndexId) { SoftReference<ImmutableRoaringBitmap>[] bitmapArrayReference; int dictId = _dictionary.indexOf(String.valueOf(h3IndexId)); if (dictId < 0) { return new MutableRoaringBitmap(); } if (_bitmaps != null) { bitmapArrayReference = _bitmaps.get(); if (bitmapArrayReference != null) { SoftReference<ImmutableRoaringBitmap> bitmapReference = bitmapArrayReference[dictId]; if (bitmapReference != null) { ImmutableRoaringBitmap value = bitmapReference.get(); if (value != null) { return value; } } } else { bitmapArrayReference = new SoftReference[_numBitmaps]; _bitmaps = new SoftReference<>(bitmapArrayReference); } } else { bitmapArrayReference = new SoftReference[_numBitmaps]; _bitmaps = new SoftReference<>(bitmapArrayReference); } synchronized (this) { ImmutableRoaringBitmap value; if (bitmapArrayReference[dictId] == null || bitmapArrayReference[dictId].get() == null) { value = buildRoaringBitmapForIndex(dictId); bitmapArrayReference[dictId] = new SoftReference<>(value); } else { value = bitmapArrayReference[dictId].get(); } return value; } }
Source:
<code>public String renderArticle(HttpServletRequest request, Model model, @SiteParam Site site, @RequestParam("id") String articleId) <START> throws IOException, ParserConfigurationException, SAXException, XmlContentException { <END> Map<?, ?> articleMetaData = addCommonModelAttributes(request, model, site, articleId); validateArticleVisibility(site, articleMetaData); requireNonemptyParameter(articleId); RenderContext renderContext = new RenderContext(site); renderContext.setArticleId(articleId); XmlContent xmlContent = getXmlContent(renderContext); model.addAttribute("references", xmlContent.references); model.addAttribute("article", articleMetaData); model.addAttribute("articleText", xmlContent.html); model.addAttribute("amendments", fillAmendments(site, articleMetaData)); return site + "/ftl/article/article"; }</code><technical_language>I necessary, of catch block line 1053</technical_language>

Target:
public String renderArticle(HttpServletRequest request, Model model, @SiteParam Site site, @RequestParam("id") String articleId) throws IOException { Map<?, ?> articleMetaData = addCommonModelAttributes(request, model, site, articleId); validateArticleVisibility(site, articleMetaData); requireNonemptyParameter(articleId); RenderContext renderContext = new RenderContext(site); renderContext.setArticleId(articleId); XmlContent xmlContent = getXmlContent(renderContext); model.addAttribute("references", xmlContent.references); model.addAttribute("article", articleMetaData); model.addAttribute("articleText", xmlContent.html); model.addAttribute("amendments", fillAmendments(site, articleMetaData)); return site + "/ftl/article/article"; }
Source:
<code>public DynamicArrayStore( File fileName, Config configuration, IdType idType, IdGeneratorFactory idGeneratorFactory, PageCache pageCache, LogProvider logProvider, int dataSizeFromConfiguration, RecordFormats recordFormats, OpenOption... openOptions ) { super( fileName, configuration, idType, idGeneratorFactory, pageCache, logProvider, TYPE_DESCRIPTOR, dataSizeFromConfiguration, recordFormats.dynamic(), recordFormats.storeVersion(), openOptions ); <START> allowStorePointsAndTemporal = recordFormats.hasCapability( Capability.POINT_PROPERTIES ); <END> }</code><technical_language>forget add recordFormats.hasCapability( Capability.TEMPORAL_PROPERTIES )</technical_language>

Target:
public DynamicArrayStore( File fileName, Config configuration, IdType idType, IdGeneratorFactory idGeneratorFactory, PageCache pageCache, LogProvider logProvider, int dataSizeFromConfiguration, RecordFormats recordFormats, OpenOption... openOptions ) { super( fileName, configuration, idType, idGeneratorFactory, pageCache, logProvider, TYPE_DESCRIPTOR, dataSizeFromConfiguration, recordFormats.dynamic(), recordFormats.storeVersion(), openOptions ); allowStorePointsAndTemporal = recordFormats.hasCapability( Capability.POINT_PROPERTIES ) && recordFormats.hasCapability( Capability.TEMPORAL_PROPERTIES ); }