auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
<code>private void testBCFCustomVersionCompatibility() throws IOException { final BCF2Codec bcfCodec = new BCF2Codec() { @Override protected void validateVersionCompatibility(final BCFVersion supportedVersion, final BCFVersion actualVersion) { <START> Assert.assertNotEquals(supportedVersion, actualVersion); <END> Assert.assertTrue(actualVersion.majorVersion == BCF2Codec.ALLOWED_MAJOR_VERSION && actualVersion.minorVersion != BCF2Codec.ALLOWED_MINOR_VERSION); } }; try (final FileInputStream fis = new FileInputStream(new File(TEST_DATA_DIR, "BCFVersion22Uncompressed.bcf")); final PositionalBufferedStream pbs = new PositionalBufferedStream(fis)) { bcfCodec.readHeader(pbs); } }</code><technical_language>I extract this line a separate test</technical_language>

Target:
private void testBCFCustomVersionCompatibility() throws IOException { final BCF2Codec bcfCodec = new BCF2Codec() { @Override protected void validateVersionCompatibility(final BCFVersion supportedVersion, final BCFVersion actualVersion) { return; } }; try (final FileInputStream fis = new FileInputStream(new File(TEST_DATA_DIR, "BCFVersion22Uncompressed.bcf")); final PositionalBufferedStream pbs = new PositionalBufferedStream(fis)) { final FeatureCodecHeader featureCodecHeader = (FeatureCodecHeader) bcfCodec.readHeader(pbs); final VCFHeader vcfHeader = (VCFHeader) featureCodecHeader.getHeaderValue(); Assert.assertNotEquals(vcfHeader.getMetaDataInInputOrder().size(), 0); } }
Source:
<code>public void doPolling(Guid cmdId, List<Guid> childCmdIds) { DestroyImageCommand<DestroyImageParameters> command = commandCoordinatorUtil.retrieveCommand(cmdId); Set<Guid> taskIds = new HashSet<>(command.getReturnValue().getVdsmTaskIdList()); Map<Guid, AsyncTaskStatus> idToStatusMap = commandCoordinatorUtil.pollTasks(taskIds); for (Map.Entry<Guid, AsyncTaskStatus> idToStatus : idToStatusMap.entrySet()) { <START> final Guid <END> id = idToStatus.getKey(); final AsyncTaskStatus status = idToStatus.getValue(); if (status.getTaskIsRunning()) { log.info("Waiting on destroy image command to complete the task (taskId = {})", id); return; } } List<Guid> failed = new ArrayList<>(); for (Map.Entry<Guid, AsyncTaskStatus> idToStatus : idToStatusMap.entrySet()) { final Guid id = idToStatus.getKey(); final AsyncTaskStatus status = idToStatus.getValue(); if (!status.getTaskEndedSuccessfully()) { failed.add(id); } } if (failed.isEmpty()) { command.setSucceeded(true); command.setCommandStatus(CommandStatus.SUCCEEDED); command.persistCommand(command.getParameters().getParentCommand()); log.info("Destroy image command has completed successfully for images '{}' with async tasks '{}'.", command.getParameters().getImageList(), taskIds); } else { command.setSucceeded(false); command.setCommandStatus(CommandStatus.FAILED); log.info("Destroy image command has failed for images '{}' with async tasks '{}'.", command.getParameters().getImageList(), failed); } command.persistCommand(command.getParameters().getParentCommand()); }</code><technical_language>final need here</technical_language>

Target:
public void doPolling(Guid cmdId, List<Guid> childCmdIds) { DestroyImageCommand<DestroyImageParameters> command = commandCoordinatorUtil.retrieveCommand(cmdId); Set<Guid> taskIds = new HashSet<>(command.getReturnValue().getVdsmTaskIdList()); Map<Guid, AsyncTaskStatus> idToTaskStatusMap = commandCoordinatorUtil.pollTasks(taskIds); for (Map.Entry<Guid, AsyncTaskStatus> idToTaskStatus : idToTaskStatusMap.entrySet()) { Guid id = idToTaskStatus.getKey(); AsyncTaskStatus status = idToTaskStatus.getValue(); if (status.getTaskIsRunning()) { log.info("Waiting on destroy image command to complete the task (taskId = {})", id); return; } } List<Guid> failedTasks = new ArrayList<>(); for (Map.Entry<Guid, AsyncTaskStatus> idToStatus : idToTaskStatusMap.entrySet()) { Guid id = idToStatus.getKey(); AsyncTaskStatus status = idToStatus.getValue(); if (!status.getTaskEndedSuccessfully()) { failedTasks.add(id); } } if (failedTasks.isEmpty()) { command.setSucceeded(true); command.setCommandStatus(CommandStatus.SUCCEEDED); command.persistCommand(command.getParameters().getParentCommand()); log.info("Destroy image command has completed successfully for images '{}' with async tasks '{}'.", command.getParameters().getImageList(), taskIds); } else { command.setSucceeded(false); command.setCommandStatus(CommandStatus.FAILED); log.info("Destroy image command has failed for images '{}' with async tasks '{}'.", command.getParameters().getImageList(), failedTasks); } command.persistCommand(command.getParameters().getParentCommand()); }
Source:
<code><START> static String getEngineSSHPublicKey() { <END> final String keystoreFile = Config.<String>GetValue(ConfigValues.keystoreUrl); final String alias = Config.<String>GetValue(ConfigValues.CertAlias); final char[] password = Config.<String>GetValue(ConfigValues.keystorePass).toCharArray(); InputStream in = null; try { in = new FileInputStream(keystoreFile); KeyStore ks = KeyStore.getInstance("PKCS12"); ks.load(in, password); final Certificate cert = ks.getCertificate(alias); if (cert == null) { Enumeration<String> aliases = ks.aliases(); log.info("Alias with name '"+alias+"' not found in "+keystoreFile); StringBuilder aliaslist = new StringBuilder(); while(aliases.hasMoreElements()) { if(aliaslist.length() != 0) { aliaslist.append(", "); } aliaslist.append(aliases.nextElement()); } log.info("aliases: " + aliaslist.toString()); throw new KeyStoreException( String.format( "Failed to find certificate store '%1$s' using alias '%2$s'", keystoreFile, alias ) ); } return OpenSSHUtils.getKeyString( cert.getPublicKey(), Config.<String>GetValue(ConfigValues.SSHKeyAlias) ); } catch (Exception e) { throw new RuntimeException( String.format( "Failed to decode own public key from store '%1$s' using alias '%2$s'", keystoreFile, alias ), e ); } finally { Arrays.fill(password, '*'); if (in != null) { try { in.close(); } catch(IOException e) { log.error("Cannot close key store", e); } } } }</code><technical_language>'protected' modifier</technical_language>

Target:
protected static String getEngineSSHPublicKey() { final String keystoreFile = Config.<String>GetValue(ConfigValues.keystoreUrl); final String alias = Config.<String>GetValue(ConfigValues.CertAlias); final char[] password = Config.<String>GetValue(ConfigValues.keystorePass).toCharArray(); InputStream in = null; try { in = new FileInputStream(keystoreFile); KeyStore ks = KeyStore.getInstance("PKCS12"); ks.load(in, password); final Certificate cert = ks.getCertificate(alias); if (cert == null) { Enumeration<String> aliases = ks.aliases(); log.info("Alias with name '"+alias+"' not found in "+keystoreFile); StringBuilder aliaslist = new StringBuilder(); while(aliases.hasMoreElements()) { if(aliaslist.length() != 0) { aliaslist.append(", "); } aliaslist.append(aliases.nextElement()); } log.info("aliases: " + aliaslist.toString()); throw new KeyStoreException( String.format( "Failed to find certificate store '%1$s' using alias '%2$s'", keystoreFile, alias ) ); } return OpenSSHUtils.getKeyString( cert.getPublicKey(), Config.<String>GetValue(ConfigValues.SSHKeyAlias) ); } catch (Exception e) { throw new RuntimeException( String.format( "Failed to decode own public key from store '%1$s' using alias '%2$s'", keystoreFile, alias ), e ); } finally { Arrays.fill(password, '*'); if (in != null) { try { in.close(); } catch(IOException e) { log.error("Cannot close key store", e); } } } }
Source:
<code>protected AbstractTreeElement setupFixtureData(ExternalDataInstance instance) { String ref = instance.getReference(); String userId = ""; User u = mSandbox.getLoggedInUser(); if (u != null) { userId = u.getUniqueId(); } String refId = ref.substring(ref.lastIndexOf('/') + 1, ref.length()); try { String key = refId + userId; TreeElement root = fixtureBases.retrieve(key); if (root == null) { FormInstance fixture = SandboxUtils.loadFixture(mSandbox, refId, userId); if (fixture == null) { throw new FixtureInitializationException(ref); } root = fixture.getRoot(); fixtureBases.register(key, root); <START> } <END> root.setParent(instance.getBase()); return root; } catch (IllegalStateException ise) { throw new FixtureInitializationException(ref); } }</code><technical_language>nice lift this logic a helper loadFixtureRoot</technical_language>

Target:
protected AbstractTreeElement setupFixtureData(ExternalDataInstance instance) { String ref = instance.getReference(); String userId = ""; User u = mSandbox.getLoggedInUser(); if (u != null) { userId = u.getUniqueId(); } TreeElement fixtureRoot = loadFixtureRoot(ref, userId); fixtureRoot.setParent(instance.getBase()); return fixtureRoot; }
Source:
<code>public void noQuorum(PaxosValue value) { leaderLog.warn("The most recent known information says this server is the leader," <START> + " but there is no quorum right now {}", <END> SafeArg.of("value", value)); noQuorum.mark(); }</code><technical_language>statement doesnt sense if parameter is logged end. Lets have, information this server is leader, is quorum right now. paxos is {}</technical_language>

Target:
public void noQuorum(PaxosValue value) { leaderLog.warn("The most recent known information says this server is the leader," + " but there is no quorum right now. The paxos value is {}", SafeArg.of("value", value)); noQuorum.mark(); }
Source:
<code>public Command onFound() { return () -> highlightHelper() .withMinX(getMinX()) .withMinY(getMinY()) <START> .withPaddingX(200) <END> .withPaddingY(100) .highlight(row, column); }</code><technical_language>please explain arbitrary padding values</technical_language>

Target:
public Command onFound() { return () -> { double paddingX = getPaddingX(column); double paddingY = getPaddingY(row); highlightHelper() .withMinX(getMinX()) .withMinY(getMinY()) .withPaddingX(paddingX) .withPaddingY(paddingY) .highlight(row, column); }; }
Source:
<code>public Object execute(ExecutionEvent event) throws ExecutionException { List<RepositoryTreeNode> selectedNodes = getSelectedNodes(event); if (selectedNodes == null || selectedNodes.isEmpty()) { <START> MessageDialog.openError(Display.getDefault().getActiveShell(), <END> UIText.ImportProjectsWrongSelection, UIText.ImportProjectsSelectionInRepositoryRequired); return null; } if (!(((List) selectedNodes).get(0) instanceof RepositoryTreeNode)) { MessageDialog.openError(Display.getDefault().getActiveShell(), UIText.ImportProjectsWrongSelection, UIText.ImportProjectsSelectionInRepositoryRequired); return null; } RepositoryTreeNode node = selectedNodes.get(0); String path; switch (node.getType()) { case REPO: case WORKINGDIR: path = node.getRepository().getWorkTree().toString(); break; case FOLDER: path = ((FolderNode) node).getObject().getPath().toString(); break; default: MessageDialog.openError(Display.getDefault().getActiveShell(), UIText.ImportProjectsWrongSelection, UIText.ImportProjectsSelectionInRepositoryRequired); return null; } ImportProjectsWizardDialog dlg = new ImportProjectsWizardDialog( getShell(event), new GitCreateProjectViaWizardWizard( node.getRepository(), path)); dlg.setHelpAvailable(false); dlg.open(); return null; }</code><technical_language>remove this unrelated formatting change</technical_language>

Target:
public Object execute(ExecutionEvent event) throws ExecutionException { List<RepositoryTreeNode> selectedNodes = getSelectedNodes(event); if (selectedNodes == null || selectedNodes.isEmpty()) { MessageDialog .openError(Display.getDefault().getActiveShell(), UIText.ImportProjectsWrongSelection, UIText.ImportProjectsSelectionInRepositoryRequired); return null; } if (!(((List) selectedNodes).get(0) instanceof RepositoryTreeNode)) { MessageDialog.openError(Display.getDefault().getActiveShell(), UIText.ImportProjectsWrongSelection, UIText.ImportProjectsSelectionInRepositoryRequired); return null; } RepositoryTreeNode node = selectedNodes.get(0); String path; switch (node.getType()) { case REPO: case WORKINGDIR: path = node.getRepository().getWorkTree().toString(); break; case FOLDER: path = ((FolderNode) node).getObject().getPath().toString(); break; default: MessageDialog.openError(Display.getDefault().getActiveShell(), UIText.ImportProjectsWrongSelection, UIText.ImportProjectsSelectionInRepositoryRequired); return null; } WizardDialog dlg = new WizardDialog( getShell(event), new GitCreateProjectViaWizardWizard(node.getRepository(), path)) { @Override protected IDialogSettings getDialogBoundsSettings() { return Activator.getDefault().getDialogSettings(); } }; dlg.setHelpAvailable(false); dlg.open(); return null; }
Source:
<code>public JobFailureAndKillHandlerLogicTask(@NotNull final Registry registry) { super(registry); <START> this.timerId = registry.createId("genie.jobs.tasks.jobFailureAndKillHandlerLogicTask.timer"); <END> }</code><technical_language>getter</technical_language>

Target:
public JobFailureAndKillHandlerLogicTask(@NotNull final Registry registry) { super(registry); this.timerId = getRegistry().createId("genie.jobs.tasks.jobFailureAndKillHandlerLogicTask.timer"); }
Source:
<code>public void shouldHaveOrderedSpliterator() { <START> assertThat(Lazy.of(() -> 1).spliterator().hasCharacteristics(Spliterator.ORDERED | Spliterator.SORTED)); <END> }</code><technical_language>assertion .isTrue() missing</technical_language>

Target:
public void shouldHaveOrderedSpliterator() { assertThat(Lazy.of(() -> 1).spliterator().hasCharacteristics(Spliterator.ORDERED)).isTrue(); }
Source:
<code>public static KeyStore loadKeystore(final byte[] ksData, final String storePassword) throws KeyStoreException, CertificateException, NoSuchAlgorithmException, IOException { <START> assert ksData != null; <END> final KeyStore ks = KeyStore.getInstance("JKS"); try (final ByteArrayInputStream is = new ByteArrayInputStream(ksData)) { ks.load(is, storePassword != null ? storePassword.toCharArray() : null); } return ks; }</code><technical_language>run assertions enabled, please consider converting assert Preconditions.checkArgument</technical_language>

Target:
public static KeyStore loadKeystore(final byte[] ksData, final String storePassword) throws KeyStoreException, CertificateException, NoSuchAlgorithmException, IOException { Preconditions.checkNotNull(ksData, "Keystore data cannot be null"); final KeyStore ks = KeyStore.getInstance("JKS"); try (final ByteArrayInputStream is = new ByteArrayInputStream(ksData)) { ks.load(is, storePassword != null ? storePassword.toCharArray() : null); } return ks; }
Source:
<code>public void setChangeInfo(GerritRepository gerritRepository, ChangeInfo element) { filesTab.setGerritRepository(gerritRepository); fChangeInfo.reset(); <START> setFilesCommentStats(gerritRepository, <END> element.getChange_id(), element.getCurrentRevision(), new NullProgressMonitor()); fChangeInfo.setNumber(element.get_number()); fChangeInfo.setId(element.getId()); fChangeInfo.setChange_id(element.getChange_id()); fChangeInfo.setStatus(element.getStatus()); fChangeInfo.setProject(element.getProject()); fChangeInfo.setBranch(element.getBranch()); fChangeInfo.setUpdated(element.getUpdated()); fChangeInfo.setTopic(element.getTopic()); fChangeInfo.setCodeReviewedTally(element.getCodeReviewedTally()); fChangeInfo.setVerifiedTally(element.getVerifiedTally()); setCurrentRevisionAndMessageTab(gerritRepository, element.getChange_id()); summaryTab.setTabs(gerritRepository, element); buttonEnablement(); }</code><technical_language>This call done set initial datya received. Also, this call done FilesTabView class</technical_language>

Target:
public void setChangeInfo(GerritRepository gerritRepository, ChangeInfo element) { filesTab.setGerritRepository(gerritRepository); fChangeInfo.reset(); filesTab.setFileStat(gerritRepository, element.getChange_id(), element.getCurrentRevision(), new NullProgressMonitor()); fChangeInfo.setNumber(element.get_number()); fChangeInfo.setId(element.getId()); fChangeInfo.setChange_id(element.getChange_id()); fChangeInfo.setStatus(element.getStatus()); fChangeInfo.setProject(element.getProject()); fChangeInfo.setBranch(element.getBranch()); fChangeInfo.setUpdated(element.getUpdated()); fChangeInfo.setTopic(element.getTopic()); fChangeInfo.setCodeReviewedTally(element.getCodeReviewedTally()); fChangeInfo.setVerifiedTally(element.getVerifiedTally()); setCurrentRevisionAndMessageTab(gerritRepository, element.getChange_id()); summaryTab.setTabs(gerritRepository, element); buttonEnablement(); }
Source:
<code>public SmartBanner scrollDown() { PageObjectLogging.logInfo("Smart banner is visible"); wait.forElementVisible(smartBannerComponent); PageObjectLogging.logInfo("Scroll down"); jsActions.scrollBy(0, 100); <START> PageObjectLogging.logInfo("Smart banner position is fixed at the top"); <END> wait.forElementPresent(smartBannerComponent); Assertion.assertFalse( driver.findElement(smartBannerComponent).getLocation().getY() == SMART_BANNER_POS_Y, "Smart banner position is not fixed at the top" ); return this; }</code><technical_language>fixed not? :D (per line 56)</technical_language>

Target:
public SmartBanner scrollDown() { PageObjectLogging.logInfo("Smart banner is visible"); wait.forElementVisible(smartBannerComponent); PageObjectLogging.logInfo("Scroll down"); jsActions.scrollBy(0, 100); PageObjectLogging.logInfo("Smart banner position is not fixed at the top"); wait.forElementPresent(smartBannerComponent); Assertion.assertFalse( driver.findElement(smartBannerComponent).getLocation().getY() == SMART_BANNER_POS_Y, "Smart banner position is not fixed at the top" ); return this; }
Source:
<code>protected void setUp() { request = new MockHttpServletRequest(); response = new MockHttpServletResponse(); rssViewer = new RssViewer(); rssViewer.setContentType("application/rss+xml;charset=UTF-8"); rssViewerMock = mock(RssViewer.class); channel = new Channel(); model = new HashMap<>(); modelWithSpecChars = new HashMap<>(); List<Topic> topics = new ArrayList<>(); JCUser user = new JCUser("username", "email", "password"); user.setSignature("Signature"); Post post = new Post(user, "sagjalighjh eghjwhjslhjsdfhdfhljdfh"); topic = new Topic(user, ""); topic.addPost(post); topic.setId(1L); topics.add(topic); topics.add(topic); model.put("topics", topics); <START> List<Topic> topicsWithSpecChars = new ArrayList<>(); <END> Post postWithSpecChars = new Post(user, "����\u000F���"); topicWithSpecChars = new Topic(user, ""); topicWithSpecChars.addPost(postWithSpecChars); topicWithSpecChars.setId(2L); topicsWithSpecChars.add(topicWithSpecChars); modelWithSpecChars.put("topics", topicsWithSpecChars); }</code><technical_language>this code needs moved test, belong precondition. encapsulate some of private methods ObjectsFactory test clean</technical_language>

Target:
protected void setUp() { request = new MockHttpServletRequest(); response = new MockHttpServletResponse(); rssViewer = new RssViewer(); rssViewer.setContentType("application/rss+xml;charset=UTF-8"); rssViewerMock = mock(RssViewer.class); channel = new Channel(); newsComponents = getNewsComponents(); }
Source:
<code>public Health[] allowedHealthstates() { <START> return Health.values(); <END> }</code><technical_language>Health.RED major problems repository. Reject requests repositories in this state</technical_language>

Target:
public RepositoryInfo.Health[] allowedHealthstates() { return new RepositoryInfo.Health[] { RepositoryInfo.Health.RED }; }
Source:
<code>public static @Nullable LoggingInfo getLogging(GeoServerResourceLoader loader) throws IOException { Resource f= loader.get( "logging.xml" ); if ( f != null ) { XStreamPersister xp = new XStreamPersisterFactory().createXMLPersister(); <START> BufferedInputStream in = new BufferedInputStream( f.in() ); <END> try { LoggingInfo loginfo = xp.load(in,LoggingInfo.class); return loginfo; } finally { in.close(); } } else { return null; } }</code><technical_language>Justin spaces</technical_language>

Target:
public static @Nullable LoggingInfo getLogging(GeoServerResourceLoader loader) throws IOException { Resource f= loader.get( "logging.xml" ); if ( f != null ) { XStreamPersister xp = new XStreamPersisterFactory().createXMLPersister(); try (BufferedInputStream in = new BufferedInputStream(f.in())) { LoggingInfo loginfo = xp.load(in,LoggingInfo.class); return loginfo; } } else { return null; } }
Source:
<code>public Collection<com.datatorrent.api.Partitioner.Partition<AbstractJdbcPollInputOperator<T>>> definePartitions( Collection<Partition<AbstractJdbcPollInputOperator<T>>> partitions, PartitioningContext context) { List<Partition<AbstractJdbcPollInputOperator<T>>> newPartitions = new ArrayList<>( getPartitionCount()); final List<KeyValPair<Integer, Integer>> partitionRanges; try { store.connect(); dslContext = createDSLContext(); if (getPartitionCount() > 0) { partitionRanges = getPartitionedQueryRanges(getPartitionCount()); } else { partitionRanges = new ArrayList<>(0); <START> } <END> } catch (SQLException e) { LOG.error("Exception in initializing the partition range", e); throw new RuntimeException(e); } finally { store.disconnect(); } KryoCloneUtils<AbstractJdbcPollInputOperator<T>> cloneUtils = KryoCloneUtils.createCloneUtils(this); int pollOffset = 0; for (KeyValPair<Integer, Integer> range : partitionRanges) { AbstractJdbcPollInputOperator<T> jdbcPoller = cloneUtils.getClone(); jdbcPoller.rangeQueryPair = range; jdbcPoller.lastEmittedRow = range.getKey(); jdbcPoller.isPollerPartition = false; newPartitions.add(new DefaultPartition<>(jdbcPoller)); pollOffset = range.getValue(); } AbstractJdbcPollInputOperator<T> jdbcPoller = cloneUtils.getClone(); jdbcPoller.rangeQueryPair = new KeyValPair<>(pollOffset, null); jdbcPoller.lastEmittedRow = pollOffset; jdbcPoller.isPollerPartition = true; newPartitions.add(new DefaultPartition<>(jdbcPoller)); return newPartitions; }</code><technical_language>if this check is moved getPartitionedQueryRanges; function more robust avoiding divide-by-zero errors in future maintenance changes</technical_language>

Target:
public Collection<com.datatorrent.api.Partitioner.Partition<AbstractJdbcPollInputOperator<T>>> definePartitions( Collection<Partition<AbstractJdbcPollInputOperator<T>>> partitions, PartitioningContext context) { List<Partition<AbstractJdbcPollInputOperator<T>>> newPartitions = new ArrayList<>( getPartitionCount()); final List<KeyValPair<Integer, Integer>> partitionRanges; try { store.connect(); dslContext = createDSLContext(); partitionRanges = getPartitionedQueryRanges(getPartitionCount()); } catch (SQLException e) { LOG.error("Exception in initializing the partition range", e); throw new RuntimeException(e); } finally { store.disconnect(); } KryoCloneUtils<AbstractJdbcPollInputOperator<T>> cloneUtils = KryoCloneUtils.createCloneUtils(this); int pollOffset = 0; for (KeyValPair<Integer, Integer> range : partitionRanges) { AbstractJdbcPollInputOperator<T> jdbcPoller = cloneUtils.getClone(); jdbcPoller.rangeQueryPair = range; jdbcPoller.lastEmittedRow = range.getKey(); jdbcPoller.isPollerPartition = false; newPartitions.add(new DefaultPartition<>(jdbcPoller)); pollOffset = range.getValue(); } AbstractJdbcPollInputOperator<T> jdbcPoller = cloneUtils.getClone(); jdbcPoller.rangeQueryPair = new KeyValPair<>(pollOffset, null); jdbcPoller.lastEmittedRow = pollOffset; jdbcPoller.isPollerPartition = true; newPartitions.add(new DefaultPartition<>(jdbcPoller)); return newPartitions; }
Source:
<code>public String changeSessionId() { String oldId = delegate.getId(); String id = delegate.changeSessionId(); RBatch batch = redisson.createBatch(BatchOptions.defaults()); batch.getBucket(getExpiredKey(oldId)).remainTimeToLiveAsync(); batch.getBucket(getExpiredKey(oldId)).deleteAsync(); batch.getMap(map.getName(), map.getCodec()).readAllMapAsync(); batch.getMap(map.getName()).deleteAsync(); BatchResult<?> res = batch.execute(); List<?> list = res.getResponses(); Long remainTTL = (Long) list.get(0); Map<String, Object> oldState = (Map<String, Object>) list.get(2); <START> if (remainTTL == -2) { <END> remainTTL = delegate.getMaxInactiveInterval().toMillis(); } if (remainTTL > 0) { redisson.getBucket(getExpiredKey(id)).setAsync("", remainTTL, TimeUnit.MILLISECONDS); } map = redisson.getMap(keyPrefix + id, map.getCodec()); map.putAll(oldState); return id; }</code><technical_language>Please RBatch object</technical_language>

Target:
public String changeSessionId() { String oldId = delegate.getId(); String id = delegate.changeSessionId(); RBatch batch = redisson.createBatch(BatchOptions.defaults()); batch.getBucket(getExpiredKey(oldId)).remainTimeToLiveAsync(); batch.getBucket(getExpiredKey(oldId)).deleteAsync(); batch.getMap(map.getName(), map.getCodec()).readAllMapAsync(); batch.getMap(map.getName()).deleteAsync(); BatchResult<?> res = batch.execute(); List<?> list = res.getResponses(); Long remainTTL = (Long) list.get(0); Map<String, Object> oldState = (Map<String, Object>) list.get(2); if (remainTTL == -2) { remainTTL = delegate.getMaxInactiveInterval().toMillis(); } RBatch batchNew = redisson.createBatch(); batchNew.getMap(keyPrefix + id, map.getCodec()).putAllAsync(oldState); if (remainTTL > 0) { batchNew.getBucket(getExpiredKey(id)).setAsync("", remainTTL, TimeUnit.MILLISECONDS); } batchNew.execute(); map = redisson.getMap(keyPrefix + id, map.getCodec()); return id; }
Source:
<code>public LongArray newLongArray( long length, long defaultValue, long base ) { LongArray array = newDynamicLongArray( fractionOf( length ), defaultValue ); <START> array.at( length - 1 ); <END> return array; }</code><technical_language>rely side effects of magic at</technical_language>

Target:
public LongArray newLongArray( long length, long defaultValue, long base ) { return newDynamicLongArray( fractionOf( length ), defaultValue ); }
Source:
<code>public ListenableFuture<?> processFor(Duration duration) { checkLockNotHeld("Can not process for a duration while holding the driver lock"); requireNonNull(duration, "duration is null"); <START> if (!previousDriverBlockedFuture.isDone()) { <END> return previousDriverBlockedFuture; } long maxRuntime = duration.roundTo(TimeUnit.NANOSECONDS); Optional<ListenableFuture<?>> result = tryWithLock(100, TimeUnit.MILLISECONDS, () -> { driverContext.startProcessTimer(); driverContext.getYieldSignal().setWithDelay(maxRuntime, driverContext.getYieldExecutor()); try { long start = System.nanoTime(); do { ListenableFuture<?> future = processInternal(); if (!future.isDone()) { previousDriverBlockedFuture = wakeUpOnRevokeRequest(future); return previousDriverBlockedFuture; } } while (System.nanoTime() - start < maxRuntime && !isFinishedInternal()); } finally { driverContext.getYieldSignal().reset(); driverContext.recordProcessed(); } return NOT_BLOCKED; }); return result.orElse(NOT_BLOCKED); }</code><technical_language>I do get this. is processFor is called if previously returned future is not-done (blocked). idea of returning ListenableFuture processFor, execution engine (TaskExecutor.run) Driver is longer blocked sense resume processing</technical_language>

Target:
public ListenableFuture<?> processFor(Duration duration) { checkState(initialized.get(), "Driver is not initialized"); checkLockNotHeld("Can not process for a duration while holding the driver lock"); requireNonNull(duration, "duration is null"); SettableFuture<?> blockedFuture = driverBlockedFuture.get(); if (!blockedFuture.isDone()) { return blockedFuture; } long maxRuntime = duration.roundTo(TimeUnit.NANOSECONDS); Optional<ListenableFuture<?>> result = tryWithLock(100, TimeUnit.MILLISECONDS, () -> { driverContext.startProcessTimer(); driverContext.getYieldSignal().setWithDelay(maxRuntime, driverContext.getYieldExecutor()); try { long start = System.nanoTime(); do { ListenableFuture<?> future = processInternal(); if (!future.isDone()) { return updateDriverBlockedFuture(future); } } while (System.nanoTime() - start < maxRuntime && !isFinishedInternal()); } finally { driverContext.getYieldSignal().reset(); driverContext.recordProcessed(); } return NOT_BLOCKED; }); return result.orElse(NOT_BLOCKED); }
Source:
<code>public DefaultDescriptionPreprocessorWithFiltering(Class<SIRIUS> descriptionClass, Collection<EStructuralFeature> featuresToFilter, Collection<EStructuralFeature> featuresToCopy) { super(descriptionClass); <START> this.featuresToCopy = featuresToCopy; this.featuresToFilter = featuresToFilter; <END> }</code><technical_language>addAll</technical_language>

Target:
public DefaultDescriptionPreprocessorWithFiltering(Class<SIRIUS> descriptionClass, Collection<EStructuralFeature> featuresToFilter, Collection<EStructuralFeature> featuresToCopy) { super(descriptionClass); this.featuresToCopy.addAll(featuresToCopy); this.featuresToFilter.addAll(featuresToFilter); }
Source:
<code><START> public synchronized void onDescriptorsUpdated(DescriptorProvider descriptorProvider) { <END> final TreeNode root = (TreeNode) getModel().getRoot(); final DefaultMutableTreeNode libraryNode = (DefaultMutableTreeNode) root.getChildAt(1); libraryNode.removeAllChildren(); createLibrary(libraryNode); final DefaultTreeModel model = (DefaultTreeModel) getModel(); model.reload(libraryNode); expandStandardPaths(); }</code><technical_language>I doubt this is related issue solve actually. _if_ want a fix for this here, synchronized is right way. potential issue facing is a non-AWT thread is invoking this method (since a listener method - invoked descriptor provider monitoring thread). changes AWT (and Swing) happen in AWT dispatcher thread. instead WidgetUtils.invokeSwingAction(...)</technical_language>

Target:
public void onDescriptorsUpdated(DescriptorProvider descriptorProvider) { final TreeNode root = (TreeNode) getModel().getRoot(); final DefaultMutableTreeNode libraryNode = (DefaultMutableTreeNode) root.getChildAt(1); libraryNode.removeAllChildren(); createLibrary(libraryNode); final DefaultTreeModel model = (DefaultTreeModel) getModel(); model.reload(libraryNode); expandStandardPaths(); }
Source:
<code>private ColumnSet queryColumnsRemotely(QueryModel queryModel) { String json = client.resource(root) .path("query") .path("columns") .type(MediaType.APPLICATION_JSON_TYPE) .post(String.class, queryModel); JsonObject object = new Gson().fromJson(json, JsonObject.class); int numRows = object.getAsJsonPrimitive("rows").getAsInt(); Map<String, ColumnView> columnMap = new HashMap<>(); for (Map.Entry<String, JsonElement> column : object.getAsJsonObject("columns").entrySet()) { JsonObject columnValue = column.getValue().getAsJsonObject(); String storage = columnValue.getAsJsonPrimitive("storage").getAsString(); <START> switch (storage) { <END> case "array": columnMap.put(column.getKey(), new ColumnViewWrapper(numRows, columnValue.getAsJsonArray("values"))); break; default: throw new UnsupportedOperationException(storage); } } return new ColumnSet(numRows, columnMap); }</code><technical_language>![MINOR](<LINK_1> Replace this "switch" statement "if" statements increase readability. [![rule](<LINK_2>](<LINK_0></technical_language>

Target:
private ColumnSet queryColumnsRemotely(QueryModel queryModel) { String json = client.resource(root) .path("query") .path("columns") .type(MediaType.APPLICATION_JSON_TYPE) .post(String.class, queryModel); JsonObject object = new Gson().fromJson(json, JsonObject.class); int numRows = object.getAsJsonPrimitive("rows").getAsInt(); Map<String, ColumnView> columnMap = new HashMap<>(); for (Map.Entry<String, JsonElement> column : object.getAsJsonObject("columns").entrySet()) { JsonObject columnValue = column.getValue().getAsJsonObject(); String storage = columnValue.getAsJsonPrimitive("storage").getAsString(); switch (storage) { case "array": columnMap.put(column.getKey(), new ColumnViewWrapper(numRows, columnValue.getAsJsonArray("values"))); break; case "coordinates": columnMap.put(column.getKey(), parseCoordinates(columnValue.getAsJsonArray("coordinates"))); break; case "empty": columnMap.put(column.getKey(), parseEmpty(numRows, columnValue)); break; default: throw new UnsupportedOperationException(storage); } } return new ColumnSet(numRows, columnMap); }
Source:
<code>public void connect(InetSocketAddress address, int timeoutMillis) throws IOException { try { checkNotNull(address, "address"); checkNotNegative(timeoutMillis, "timeoutMillis can't be negative"); socketChannel.configureBlocking(true); try { if (timeoutMillis > 0) { socketChannel.socket().connect(address, timeoutMillis); } else { socketChannel.connect(address); } } catch (SocketException ex) { SocketException newEx = new SocketException(ex.getMessage() + " to address " + address); newEx.setStackTrace(ex.getStackTrace()); throw newEx; } if (logger.isFinestEnabled()) { logger.finest("Successfully connected to: " + address + " using socket " + socketChannel.socket()); } } catch (RuntimeException e) { <START> close(); <END> throw e; } catch (IOException e) { close(); throw e; } }</code><technical_language>catch exception thrown while closing? lose original exception if is another exception while closing channel</technical_language>

Target:
public void connect(InetSocketAddress address, int timeoutMillis) throws IOException { try { checkNotNull(address, "address"); checkNotNegative(timeoutMillis, "timeoutMillis can't be negative"); socketChannel.configureBlocking(true); try { if (timeoutMillis > 0) { socketChannel.socket().connect(address, timeoutMillis); } else { socketChannel.connect(address); } } catch (SocketException ex) { SocketException newEx = new SocketException(ex.getMessage() + " to address " + address); newEx.setStackTrace(ex.getStackTrace()); throw newEx; } if (logger.isFinestEnabled()) { logger.finest("Successfully connected to: " + address + " using socket " + socketChannel.socket()); } } catch (RuntimeException e) { IOUtil.closeResource(this); throw e; } catch (IOException e) { IOUtil.closeResource(this); throw e; } }
Source:
<code>public void testWrongClass() throws SQLException { Statement s = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE); ResultSet rs = null; try { s.executeUpdate("INSERT INTO table1(" + columnName + ") VALUES(" + originalValue + ")"); rs = s.executeQuery(TestUtil.selectSQL("table1", "table1_id, " + columnName)); rs.next(); rs.updateObject(2, 23); rs.updateRow(); rs.close(); <START> fail("should have thrown an Exception"); <END> } catch (PSQLException e) { assertEquals(PSQLState.DATATYPE_MISMATCH.getState(), e.getSQLState()); } finally { if (rs != null) { rs.close(); } s.close(); } }</code><technical_language>one</technical_language>

Target:
public void testWrongClass() throws SQLException { Statement s = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE); ResultSet rs = null; try { s.executeUpdate("INSERT INTO table1(" + columnName + ") VALUES(" + originalValue + ")"); rs = s.executeQuery(TestUtil.selectSQL("table1", "table1_id, " + columnName)); rs.next(); rs.updateObject(2, 23); rs.updateRow(); rs.close(); fail("should have thrown an PSQLException because integers can't represent the date"); } catch (PSQLException e) { assertEquals("Should have thrown an DATATYPE_MISMATCH error, since integers can't represent the date", PSQLState.DATATYPE_MISMATCH.getState(), e.getSQLState()); } finally { TestUtil.closeQuietly(rs); TestUtil.closeQuietly(s); } }
Source:
<code>public double estimateVariance() { <START> final double[] variancesPerSegment = new double[numSegments]; <END> for (int segment = 0; segment < numSegments; segment++) { variancesPerSegment[segment] = new Variance().evaluate(Doubles.toArray(getCoveragesInSegment(segment))); } return new Mean().evaluate(variancesPerSegment); }</code><technical_language>java return IntStream.range(0, numSegments) .mapToDouble(s -> new Variance().evaluate(Doubles.toArray(getCoveragesInSegment(s)))) .average();</technical_language>

Target:
public double estimateVariance() { return IntStream.range(0, numSegments) .mapToDouble(s -> new Variance().evaluate(Doubles.toArray(getIndexedCoveragesInSegment(s).stream().map(IndexedCoverage::getCoverage).collect(Collectors.toList())))) .average().getAsDouble(); }
Source:
<code>public void testGetChangedAttributesWithAttachments() { TaskAttribute attributeAttachment = newData.getRoot().createAttribute("custom"); attributeAttachment.setValue("1"); attributeAttachment.getMetaData().setType(TaskAttribute.TYPE_ATTACHMENT); TaskDataDiff diff = manager.createDiff(newData, oldData, new NullProgressMonitor()); <START> assertEquals(diff.getNewAttachments(), Collections.singleton(attributeAttachment)); <END> }</code><technical_language>Expected first</technical_language>

Target:
public void testGetChangedAttributesWithAttachments() { TaskAttribute attributeAttachment = newData.getRoot().createAttribute("custom"); attributeAttachment.setValue("1"); attributeAttachment.getMetaData().setType(TaskAttribute.TYPE_ATTACHMENT); TaskDataDiff diff = manager.createDiff(newData, oldData, new NullProgressMonitor()); assertEquals(Collections.singleton(attributeAttachment), diff.getNewAttachments()); }
Source:
<code>private static String getPath(ConstraintViolation cv) { <START> return new PropertyPathTranslator().translate(cv.getPropertyPath().toString()); <END> }</code><technical_language>translate a static method? is - state</technical_language>

Target:
private static String getPath(ConstraintViolation cv) { return translate(cv.getPropertyPath().toString()); }
Source:
<code>private void populatePostList() { if (getThreadListTask != null) { getThreadListTask.cancel(true); } getThreadListTask = new GetThreadListTask( getActivity(), courseData.getCourse().getId(), <START> isAllTopics() ? new ArrayList<String>() : discussionTopic.getAllTopicIds(), <END> postsFilter, postsSort, discussionPostsAdapter.getPagination() ) { @Override public void onSuccess(TopicThreads topicThreads) { if (topicThreads != null) { logger.debug("registration success=" + topicThreads); boolean hasMore = topicThreads.next != null && topicThreads.next.length() > 0; discussionPostsAdapter.addPage(topicThreads.getResults(), hasMore); refreshListViewOnDataChange(); } discussionPostsAdapter.setVoteCountsEnabled(postsSort == DiscussionPostsSort.VoteCount); discussionPostsAdapter.notifyDataSetChanged(); checkNoResultView(); } @Override public void onException(Exception ex) { logger.error(ex); } }; getThreadListTask.execute(); }</code><technical_language>pass null API for List parameter? If not, replace new empty ArrayList Collections.EMPTY_LIST avoid creating a new unused object</technical_language>

Target:
private void populatePostList() { if (getThreadListTask != null) { getThreadListTask.cancel(true); } getThreadListTask = new GetThreadListTask( getActivity(), courseData.getCourse().getId(), isAllTopics() ? Collections.EMPTY_LIST : discussionTopic.getAllTopicIds(), postsFilter, postsSort, discussionPostsAdapter.getPagination() ) { @Override public void onSuccess(TopicThreads topicThreads) { if (topicThreads != null) { logger.debug("registration success=" + topicThreads); boolean hasMore = topicThreads.next != null && topicThreads.next.length() > 0; discussionPostsAdapter.addPage(topicThreads.getResults(), hasMore); refreshListViewOnDataChange(); } discussionPostsAdapter.setVoteCountsEnabled(postsSort == DiscussionPostsSort.VoteCount); discussionPostsAdapter.notifyDataSetChanged(); checkNoResultView(); } @Override public void onException(Exception ex) { logger.error(ex); } }; getThreadListTask.execute(); }
Source:
<code>private static void logInQueueTime(CheckpointTriggerRequest request) { if (LOG.isDebugEnabled()) { long timeInQueue = request.timestamp - currentTimeMillis(); <START> if (timeInQueue > LOG_TIME_IN_QUEUE_THRESHOLD_MS) { LOG.debug("checkpoint request time in queue: {}", timeInQueue); } <END> } }</code><technical_language>bump 100ms log INFO? DEBUG visible in cases, (for example users reporting checkpoints triggered)</technical_language>

Target:
private static void logInQueueTime(CheckpointTriggerRequest request) { if (LOG.isInfoEnabled()) { long timeInQueue = request.timestamp - currentTimeMillis(); if (timeInQueue > LOG_TIME_IN_QUEUE_THRESHOLD_MS) { LOG.info("checkpoint request time in queue: {}", timeInQueue); } } }
Source:
<code>public void setParameter(String name, String value) { if(name == null) { throw new NullPointerException("parameter name is null ! "); } if(value == null) { removeParameter(name); return; } if(isModifiable == ModifiableRule.NotModifiable) { throw new IllegalStateException("it is forbidden to modify the parameters"); } if(name.equalsIgnoreCase("tag") && (isModifiable == ModifiableRule.From || isModifiable == ModifiableRule.To)) { throw new IllegalStateException("it is forbidden to set the tag parameter on To or From Header"); } if(name.equalsIgnoreCase("branch") && isModifiable == ModifiableRule.Via) { throw new IllegalStateException("it is forbidden to set the branch parameter on the Via Header"); } this.parameters.put(name.toLowerCase(), value); if(header != null) { boolean isQuotableParameter = false; SipContext context = SipApplicationSessionCreationThreadLocal.lookupContext(); if (context != null){ Object object = context.getServletContext().getAttribute("org.restcomm.servlets.sip.QUOTABLE_PARAMETER"); if (object != null){ String quotableParameters = object.toString(); if (!quotableParameters.isEmpty()){ <START> String[] parameters = quotableParameters.split(","); <END> for (int i = 0; i < parameters.length; i++){ if (parameters[i].trim().equalsIgnoreCase(name)){ isQuotableParameter = true; break; } } } } } try { if (isQuotableParameter && header instanceof ParametersExt){ ((ParametersExt) header).setQuotedParameter(name, value); }else{ header.setParameter(name, "".equals(value) ? null : value); } } catch (ParseException e) { throw new IllegalArgumentException("Problem setting parameter",e); } } }</code><technical_language>isolate this logic in a private method, isQutoableParam()</technical_language>

Target:
public void setParameter(String name, String value) { if(name == null) { throw new NullPointerException("parameter name is null ! "); } if(value == null) { removeParameter(name); return; } if(isModifiable == ModifiableRule.NotModifiable) { throw new IllegalStateException("it is forbidden to modify the parameters"); } if(name.equalsIgnoreCase("tag") && (isModifiable == ModifiableRule.From || isModifiable == ModifiableRule.To)) { throw new IllegalStateException("it is forbidden to set the tag parameter on To or From Header"); } if(name.equalsIgnoreCase("branch") && isModifiable == ModifiableRule.Via) { throw new IllegalStateException("it is forbidden to set the branch parameter on the Via Header"); } this.parameters.put(name.toLowerCase(), value); if(header != null) { try { if (isQuotableParam(name) && (header instanceof ParametersExt)){ ((ParametersExt) header).setQuotedParameter(name, value); }else{ header.setParameter(name, "".equals(value) ? null : value); } } catch (ParseException e) { throw new IllegalArgumentException("Problem setting parameter",e); } } }
Source:
<code>private Uri getOutputUri() { Uri outputUri = getIntent().getParcelableExtra(MediaStore.EXTRA_OUTPUT); if (outputUri == null) { File outDir = new File(Environment.getExternalStorageDirectory(), SOUND_DIR); <START> if (!outDir.exists()) <END> outDir.mkdir(); else if (!outDir.isDirectory()) { outDir = getExternalCacheDir(); } SimpleDateFormat s = new SimpleDateFormat("yyyyMMdd_hhmmss"); String format = s.format(new Date()); outputUri = Uri.fromFile(new File(outDir, "SND_" + format + ".3gp")); } return outputUri; }</code><technical_language>Formatter</technical_language>

Target:
private Uri getOutputUri() { Uri outputUri = getIntent().getParcelableExtra(MediaStore.EXTRA_OUTPUT); if (outputUri == null) { File outDir = new File(Environment.getExternalStorageDirectory(), SOUND_DIR); if (!outDir.exists()) { outDir.mkdir(); } else if (!outDir.isDirectory()) { outDir = getExternalCacheDir(); } SimpleDateFormat s = new SimpleDateFormat("yyyyMMdd_hhmmss"); String format = s.format(new Date()); outputUri = Uri.fromFile(new File(outDir, "SND_" + format + ".3gp")); } return outputUri; }
Source:
<code>private VariantAnnotation mapAnnotationJson(String variant, String annotationJSON) throws IOException { List<VariantAnnotation> list = Transformer.mapJsonToInstance( <START> annotationJSON, VariantAnnotation.class, new ExternalSourceObjectMapper()); <END> VariantAnnotation vepVariantAnnotation = list.get(0); vepVariantAnnotation.setVariant(variant); return vepVariantAnnotation; }</code><technical_language>if Object Mappers singleton beans, instead of creating a new time new</technical_language>

Target:
private VariantAnnotation mapAnnotationJson(String variant, String annotationJSON) throws IOException { List<VariantAnnotation> list = this.externalResourceTransformer.transform( annotationJSON, VariantAnnotation.class); VariantAnnotation vepVariantAnnotation = list.get(0); vepVariantAnnotation.setVariant(variant); return vepVariantAnnotation; }
Source:
<code>public void testLiteralWhile() throws Exception { final DefaultConfiguration configurationTestLiteralWhile = createCheckConfig(WhitespaceAfterCheck.class); configurationTestLiteralWhile.addAttribute("tokens", "LITERAL_WHILE"); final String[] expected = { "39:14: " + getCheckMessage(MSG_WS_NOT_FOLLOWED, "while"), }; <START> verify(configurationTestLiteralWhile, getPath("InputWhitespaceAfterConditions.java"), <END> expected); }</code><technical_language>Please separate input file for test</technical_language>

Target:
public void testLiteralWhile() throws Exception { final DefaultConfiguration configurationTestLiteralWhile = createCheckConfig(WhitespaceAfterCheck.class); configurationTestLiteralWhile.addAttribute("tokens", "LITERAL_WHILE"); final String[] expected = { "39:14: " + getCheckMessage(MSG_WS_NOT_FOLLOWED, "while"), }; verify(configurationTestLiteralWhile, getPath("InputWhitespaceAfterLiteralWhile.java"), expected); }
Source:
<code>public static PaxosUseCase fromString(String string) { switch(string) { case PaxosTimeLockConstants.LEADER_PAXOS_NAMESPACE: return LEADER; case PaxosTimeLockConstants.CLIENT_PAXOS_NAMESPACE: return TIMESTAMP; default: <START> throw new SafeIllegalArgumentException("unrecognized used case"); <END> } }</code><technical_language>nit: Exception message case</technical_language>

Target:
public static PaxosUseCase fromString(String string) { switch(string) { case PaxosTimeLockConstants.LEADER_PAXOS_NAMESPACE: return LEADER; case PaxosTimeLockConstants.CLIENT_PAXOS_NAMESPACE: return TIMESTAMP; default: throw new SafeIllegalArgumentException("unrecognized use case"); } }
Source:
<code><START> public CrossGammaMultiCurveCalculator(final double shift, <END> final InstrumentDerivativeVisitor<MulticurveProviderInterface, MultipleCurrencyMulticurveSensitivity> curveSensitivityCalculator) { _psc = new ParameterSensitivityParameterCalculator<>(curveSensitivityCalculator); _shift = shift; }</code><technical_language>This constructor appears used? Please write a test asserting behaviour is correct remove it</technical_language>

Target:
public CrossGammaMultiCurveCalculator(final double shift, final InstrumentDerivativeVisitor<MulticurveProviderInterface, MultipleCurrencyMulticurveSensitivity> curveSensitivityCalculator) { ArgumentChecker.notNull(curveSensitivityCalculator, "sensitivity calculator"); ArgumentChecker.isTrue(Math.abs(shift) > 1.0E-10, "shift should not be larger in absolute value than 1.0E-10"); _psc = new ParameterSensitivityParameterCalculator<>(curveSensitivityCalculator); _shift = shift; }
Source:
<code><START> private IDPProperties(){ <END> }</code><technical_language>Formatting issues. Please fix</technical_language>

Target:
private IDPProperties() { throw new AssertionError("Must not initiate an object of IDPProperties class"); }