instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
OpenFreeEnergy__openfe__1530 | OpenFreeEnergy/openfe | 1,530 | defect | 7584efec668de2581d4522ea47494075b1bd9b70 | 9cd2b74d7da67213156c7fbed4635bd4816e8b35 | Change the default atom mapping in the CLI to Kartograf | <!--
Thank you for pull request.
Below are a few things we ask you kindly to self-check before getting a review. Remove checks that are not relevant.
-->
<!--
Please note any issues this fixes using [closing keywords]( https://help.github.com/articles/closing-issues-using-keywords/ ):
-->
<!--
see https://r... | diff --git a/openfecli/commands/plan_rbfe_network.py b/openfecli/commands/plan_rbfe_network.py
index c7b5d12e2..2af59b201 100644
--- a/openfecli/commands/plan_rbfe_network.py
+++ b/openfecli/commands/plan_rbfe_network.py
@@ -167,8 +167,9 @@ def plan_rbfe_network(
By default, this tool makes the following choices... | 3 | 2 | 1 | [{"id": "G0", "claim": "No test covers the CLI's network planning defaults after the mapper change (is there a long test that checks the network generation?), so the new default atom mapper went unnoticed by the suite.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1... | null |
OpenFreeEnergy__openfe__1536 | OpenFreeEnergy/openfe | 1,536 | defect | 68de78850220e7adfa49caf54608e447872b489f | 79e1d9394803b333a3679023032744c9ca662a86 | Septop pydantic v2 | NOTE: this targets the `to_pydantic_v2` branch so that I can get @hannahbaumann's review on just the septop pydanticv2 updates.
| diff --git a/openfe/protocols/openmm_md/plain_md_methods.py b/openfe/protocols/openmm_md/plain_md_methods.py
index caa9ce948..1942d2a7a 100644
--- a/openfe/protocols/openmm_md/plain_md_methods.py
+++ b/openfe/protocols/openmm_md/plain_md_methods.py
@@ -31,8 +31,10 @@
ChemicalSystem,
SmallMoleculeComponent,
)... | 4 | 3 | 2 | [{"id": "G0", "claim": "Whether the default pressure should stay 1 bar or become 1 atm (gufe v1.7.0 now converts pressures to atm) is left open by a TODO in _default_settings.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The openmm units still used in ... | null |
OpenFreeEnergy__openfe__1576 | OpenFreeEnergy/openfe | 1,576 | defect | ec229cc590cf8686ad27fec6af6489d3895a3acf | e71eb2950b1336cfcf65fcc630fbfe47d7c16e72 | Make CUDA the default compute platform | TODO:
- Fix tests for limiting the compute platforms
- Add news entry
Checklist
* [x] Added a ``news`` entry
## Developers certificate of origin
- [x] I certify that this contribution is covered by the MIT License [here](https://github.com/OpenFreeEnergy/openfe/blob/main/LICENSE) and the **Developer Certifica... | diff --git a/openfe/protocols/openmm_utils/omm_settings.py b/openfe/protocols/openmm_utils/omm_settings.py
index 12ee31060..e3d3bc7ea 100644
--- a/openfe/protocols/openmm_utils/omm_settings.py
+++ b/openfe/protocols/openmm_utils/omm_settings.py
@@ -314,10 +314,13 @@ class OpenMMEngineSettings(SettingsBaseModel):
*... | 4 | 3 | 0 | [{"id": "G0", "claim": "In the AHFE tests, protocol_repeats = 1 should be set once in the protocol_dry_settings fixture instead of repeated in most of the tests that use the fixture.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In the RFE test... | null |
OpenFreeEnergy__openfe__1585 | OpenFreeEnergy/openfe | 1,585 | defect | 36481541e9ae2426b9a69066d3574a3c624c072d | 5a10e5803591c6325576de8a768fad592b8b0c67 | Add logging control | <!--
Thank you for pull request.
Below are a few things we ask you kindly to self-check before getting a review. Remove checks that are not relevant.
-->
<!--
Please note any issues this fixes using [closing keywords]( https://help.github.com/articles/closing-issues-using-keywords/ ):
-->
<!--
see https://r... | diff --git a/docs/conf.py b/docs/conf.py
index 4c2070952..bdaf6fe36 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -61,7 +61,7 @@
"python": ("https://docs.python.org/3.9", None),
"numpy": ("https://numpy.org/doc/stable", None),
"scikit.learn": ("https://scikit-learn.org/stable", None),
- "openmm": ("... | 3 | 3 | 0 | [{"id": "G0", "claim": "The logging control should be plain module-level functions instead of a class with staticmethods, since the class adds no state and the module-qualified call is just as clear.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The tro... | null |
OpenFreeEnergy__openfe__1638 | OpenFreeEnergy/openfe | 1,638 | defect | a7c68fdfc325cdd274c3c30a9c5912864b4b44f2 | 6a83550322a9629d68c9c8d28875ad2c3432cb79 | feat: support `openfe gather` for septop | <!--
Thank you for pull request.
Below are a few things we ask you kindly to self-check before getting a review. Remove checks that are not relevant.
-->
soon to be followed by abfe support once we mock up a way to handle results networks
<!--
Please note any issues this fixes using [closing keywords]( https://... | diff --git a/openfecli/commands/gather.py b/openfecli/commands/gather.py
index 4d99a6898a..5ca2c38499 100644
--- a/openfecli/commands/gather.py
+++ b/openfecli/commands/gather.py
@@ -316,7 +316,7 @@ def _get_ddgs(legs: dict, allow_partial=False) -> None:
return DDGs
-def _generate_ddg(legs: dict, allow_partial... | 6 | 3 | 1 | [{"id": "G0", "claim": "Consider adding some warning (or similar) for the case where a result JSON is skipped because its names/simtype could not be determined.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Splitting the unit name on ',' would break for... | null |
OpenFreeEnergy__openfe__1691 | OpenFreeEnergy/openfe | 1,691 | defect | 36481541e9ae2426b9a69066d3574a3c624c072d | 1783242e32045030cf75ca4614a40aa9d03bcb47 | Feat/improve names gathering | <!--
Thank you for pull request.
Below are a few things we ask you kindly to self-check before getting a review. Remove checks that are not relevant.
-->
May fix https://github.com/OpenFreeEnergy/openfe/issues/1689, but we've been meaning to do this for a while anyway.
This PR makes use of gufe `ChemicalSystem`... | diff --git a/openfecli/commands/gather.py b/openfecli/commands/gather.py
index 65da35fe0..1bff9bb9d 100644
--- a/openfecli/commands/gather.py
+++ b/openfecli/commands/gather.py
@@ -7,6 +7,7 @@
from typing import List, Literal
import click
+import gufe
import pandas as pd
from openfecli import OFECommandPlugin
@... | 3 | 2 | 0 | [{"id": "G0", "claim": "jthorton asks why gather does not load the ProtocolResult as its corresponding object at a higher level and work with the API throughout, instead of pulling the dicts apart in the helpers.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla... | null |
OpenFreeEnergy__openfe__1710 | OpenFreeEnergy/openfe | 1,710 | defect | 44a3f7df3b8a09a09f6339ba77738e184718d849 | 9b79152f3521fd830008f0d6845207c733050738 | feat: experimental `openfe gather-septop` & `openfe gather-abfe` support | <!--
Thank you for pull request.
Below are a few things we ask you kindly to self-check before getting a review. Remove checks that are not relevant.
-->
<!--
Please note any issues this fixes using [closing keywords]( https://help.github.com/articles/closing-issues-using-keywords/ ):
-->
<!--
see https://r... | diff --git a/openfecli/commands/gather_abfe.py b/openfecli/commands/gather_abfe.py
new file mode 100644
index 000000000..ede82fc38
--- /dev/null
+++ b/openfecli/commands/gather_abfe.py
@@ -0,0 +1,301 @@
+import os
+import pathlib
+import sys
+import warnings
+from typing import List, Literal
+
+import click
+import guf... | 4 | 3 | 1 | [{"id": "G0", "claim": "The ligand-name helpers should read the name directly from the solvent data dict (e.g. molprops ofe-name), as done for the ligand atom mapping, instead of paying the cost of constructing a gufe.ProtocolUnitResult.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "i... | null |
OpenFreeEnergy__openfe__1742 | OpenFreeEnergy/openfe | 1,742 | defect | 3e2976c61e93754821e1194b64af2919caf1f7d1 | 60e5323d43086712549b0c069289f82b0afb5972 | Add AbsoluteFactory options to AlchemicalSettings | Checklist
* [x] All new code is appropriately documented (user-facing code _must_ have complete docstrings).
* [x] Added a ``news`` entry, or the changes are not user-facing.
* [x] Ran pre-commit by making a comment with `pre-commit.ci autofix` before requesting review.
Manual Tests: these are slow so don't need ... | diff --git a/news/absolute_settings.rst b/news/absolute_settings.rst
new file mode 100644
index 000000000..dc4d715c1
--- /dev/null
+++ b/news/absolute_settings.rst
@@ -0,0 +1,27 @@
+**Added:**
+
+* New options have been added to the ``AlchemicalSettings``
+ of the ``SepTopProtocol``, ``AbsoluteSolvationProtocol``
+ a... | 2 | 1 | 0 | [{"id": "G0", "claim": "It would be worth parameterizing test_alchemical_settings_dry_run_vacuum over a few of the new alchemical settings and verifying they are updated as expected.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Something in this pull ... | null |
OpenFreeEnergy__openfe__1788 | OpenFreeEnergy/openfe | 1,788 | defect | 0b060be994ac2ec71d0e7f8b02f5d5d9c6b1342c | c2388cbf17fec2e892e2b5e71c775cbe2b3bd32b | [WIP] fixing cli test for protocol refactor | <!--
Thank you for pull request.
Below are a few things we ask you kindly to self-check before getting a review. Remove checks that are not relevant.
-->
<!--
Please note any issues this fixes using [closing keywords]( https://help.github.com/articles/closing-issues-using-keywords/ ):
-->
<!--
see https://r... | diff --git a/openfe/protocols/openmm_rfe/hybridtop_units.py b/openfe/protocols/openmm_rfe/hybridtop_units.py
index d4c1dd149..588ce3151 100644
--- a/openfe/protocols/openmm_rfe/hybridtop_units.py
+++ b/openfe/protocols/openmm_rfe/hybridtop_units.py
@@ -1262,7 +1262,6 @@ def _execute(
**inputs,
) -> dict[s... | 1 | 1 | 1 | [{"id": "G0", "claim": "The hardcoded \"inputs\" -> \"setup_results\" -> \"inputs\" nesting added to _get_names and _get_type in openfecli/commands/gather.py only fits the new data shape, so the inputs for the other tests have to be regenerated (old-shape results are left unhandled).", "category": "correctness", "verdi... | null |
OpenFreeEnergy__openfe__1848 | OpenFreeEnergy/openfe | 1,848 | defect | 89d194889436e42a9ca8fd3a768ea9a7667a62f3 | a61598e79bfdabbdd12215b03fad2cdc1b3d8f72 | Modify quickrun to allow resuming | Minimal changes to quickrun in order to allow resuming by serializing ProtocolDAGs.
Related to & requires https://github.com/OpenFreeEnergy/gufe/pull/738/
Checklist
* [x] All new code is appropriately documented (user-facing code _must_ have complete docstrings).
* [x] Added a ``news`` entry, or the changes are n... | diff --git a/environment.yml b/environment.yml
index c45d8102a..f74301b03 100644
--- a/environment.yml
+++ b/environment.yml
@@ -53,7 +53,7 @@ dependencies:
# Control blas/openmp threads
- threadpoolctl
- pip:
- - git+https://github.com/OpenFreeEnergy/gufe@main
+ - git+https://github.com/OpenFreeEnergy/g... | 1 | 1 | 1 | [{"id": "G0", "claim": "Resuming should be opt-in via a --resume flag (which warns and runs when no checkpoint exists and errors on a corrupted checkpoint), rather than automatically resuming whenever a checkpoint file exists, and quickrun without --resume should error out when a checkpoint exists.", "category": "desig... | null |
OpenFreeEnergy__openfe__1862 | OpenFreeEnergy/openfe | 1,862 | defect | d0cc4c7938c84b92640dd4382dcb13d704efb329 | 3d6f9801d6b56f12978e6a1a6d80d476783c4840 | update abfe test data | <!--
Thank you for pull request.
Below are a few things we ask you kindly to self-check before getting a review. Remove checks that are not relevant.
-->
resolves https://github.com/OpenFreeEnergy/openfe/issues/1804
<!--
Please note any issues this fixes using [closing keywords]( https://help.github.com/articles/... | diff --git a/src/openfecli/data/_registry.py b/src/openfecli/data/_registry.py
index f9b811f73..4b2b3a9ab 100644
--- a/src/openfecli/data/_registry.py
+++ b/src/openfecli/data/_registry.py
@@ -19,9 +19,9 @@
known_hash="md5:ff7313e14eb6f2940c6ffd50f2192181",
)
zenodo_abfe_data = dict(
- base_url="doi:10.5281/z... | 1 | 1 | 1 | [{"id": "G0", "claim": "The single-repeat expected output should not have changed to 'std dev uncertainty' with new values (and the old data should still be tested), since a single repeat should be unaffected.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
OpenFreeEnergy__openfe__1890 | OpenFreeEnergy/openfe | 1,890 | defect | ec44cce38db69ecf0987b20c9105161d172b6e82 | c983ef16603bc21e88423e6475a7d465e744e969 | include output json in caching hash | <!--
Thank you for pull request.
Below are a few things we ask you kindly to self-check before getting a review. Remove checks that are not relevant.
-->
this is a first pass at how we could implement what I described here: https://github.com/OpenFreeEnergy/openfe/pull/1848#discussion_r2977178286
<!--
Please ... | diff --git a/src/openfecli/commands/quickrun.py b/src/openfecli/commands/quickrun.py
index 7f1928a10..1747530b9 100644
--- a/src/openfecli/commands/quickrun.py
+++ b/src/openfecli/commands/quickrun.py
@@ -1,6 +1,7 @@
# This code is part of OpenFE and is licensed under the MIT license.
# For details, see https://githu... | 1 | 1 | 1 | [{"id": "G0", "claim": "cache_basedir would need to use the hashed_key, otherwise two executions sharing the same work_dir could end up with infringing unit results.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
OpenFreeEnergy__openfe__1896 | OpenFreeEnergy/openfe | 1,896 | defect | 7959cc6e74db80c7aec73276088b603964305797 | 7d09cb2711e3fb1abd989d98f465ef68bc62e35c | membrane CLI support | <!--
Thank you for pull request.
Below are a few things we ask you kindly to self-check before getting a review. Remove checks that are not relevant.
-->
<!--
Please note any issues this fixes using [closing keywords]( https://help.github.com/articles/closing-issues-using-keywords/ ):
-->
<!--
see https://r... | diff --git a/src/openfe/tests/conftest.py b/src/openfe/tests/conftest.py
index 9ff40e1e43..3885d38553 100644
--- a/src/openfe/tests/conftest.py
+++ b/src/openfe/tests/conftest.py
@@ -279,11 +279,14 @@ def benzene_transforms():
@pytest.fixture(scope="session")
-def T4_protein_component():
+def T4_protein_component_... | 8 | 7 | 4 | [{"id": "G0", "claim": "The docstring sentence for the protein parameter in plan_rbfe_network_main is left unfinished ('If a ProteinMembraneComponent is used, the') and should be completed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Protein/me... | null |
OpenGamma__Strata__1424 | OpenGamma/Strata | 1,424 | defect | 2c8949e99dae0c5e54030bb41b1e42e920c53522 | c4c7a7754d307b2ab712585dcc6162190b36c5fa | Allow base sensitivity to be split | Add combine/split concept to base sensitivity classes
Fixes #1423 | diff --git a/modules/market/src/main/java/com/opengamma/strata/market/param/CurrencyParameterSensitivities.java b/modules/market/src/main/java/com/opengamma/strata/market/param/CurrencyParameterSensitivities.java
index 12312808c7..dd51cfad25 100644
--- a/modules/market/src/main/java/com/opengamma/strata/market/param/Cu... | 2 | 2 | 0 | [{"id": "G0", "claim": "ParameterSize is very similar to the existing CurveParameterSize, so the reviewer asks whether both objects are needed or the pull request can be merged with the two similar names.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th... | null |
OpenGamma__Strata__1554 | OpenGamma/Strata | 1,554 | defect | 9162c8a6b385ebd2276d903084a2ec80252c766e | 1b240db3580ae9b700eceafd340033fe06794f54 | Parameterised data point shifts | * Generic point shifts for any `ParameterizedData`.
* Required changes to `MarketDataFilter`.
* Test the generic shifts with SABR swaption volatilities. | diff --git a/examples/src/main/java/com/opengamma/strata/examples/finance/HistoricalScenarioExample.java b/examples/src/main/java/com/opengamma/strata/examples/finance/HistoricalScenarioExample.java
index 316d4da9f0..67e4eb8ee8 100644
--- a/examples/src/main/java/com/opengamma/strata/examples/finance/HistoricalScenario... | 3 | 3 | 1 | [{"id": "G0", "claim": "The Javadoc of IdFilter needs to document the extra generic type parameter added by this pull request.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The old CurvePointShifts class should be deprecated rather than deleted."... | null |
OpenGamma__Strata__1581 | OpenGamma/Strata | 1,581 | defect | 84dd0b1069e5682505ed2bb268ef79e2ee9c4ece | d1854e25d6fc08ecb4b60b94f1d49ae7532e6acb | Provide the ability to control payment periods | Add firstRegularStartDate and lastRegularEndDate to PaymentSchedule
Update FpML and CSV trade parser | diff --git a/modules/basics/src/main/java/com/opengamma/strata/basics/schedule/Schedule.java b/modules/basics/src/main/java/com/opengamma/strata/basics/schedule/Schedule.java
index 4bfe401daa..068f214825 100644
--- a/modules/basics/src/main/java/com/opengamma/strata/basics/schedule/Schedule.java
+++ b/modules/basics/sr... | 2 | 2 | 0 | [{"id": "G0", "claim": "The getUnadjustedDates() method re-implements the logic of getUnadjustedStartDate() and could call that method directly instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The javadoc on getUnadjustedDates() describes... | null |
OpenGamma__Strata__1584 | OpenGamma/Strata | 1,584 | defect | 374aa52d10be7fca427626ca29ce7a112e8e521c | 84a7ed5512317338b9252bef2a463b76b1aa3c15 | Extend position CSV parsing | Add mode whereby ETD positions can be parsed as `SecurityPosition` without using reference data
`CsvLoaderUtils` is existing code that has been moved. | diff --git a/modules/loader/src/main/java/com/opengamma/strata/loader/csv/CsvLoaderUtils.java b/modules/loader/src/main/java/com/opengamma/strata/loader/csv/CsvLoaderUtils.java
new file mode 100644
index 0000000000..a5d615e4d0
--- /dev/null
+++ b/modules/loader/src/main/java/com/opengamma/strata/loader/csv/CsvLoaderUti... | 1 | 1 | 1 | [{"id": "G0", "claim": "The Javadoc of parseEtdFuturePosition doesn't match its EtdFuturePosition return type; the method should perhaps return Position like the method below.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
OpenGamma__Strata__1649 | OpenGamma/Strata | 1,649 | defect | 56b605ef7cd49010d4b86f78a90a91796a1d966e | ad8080546e7588fb52ea13937c3ade76df1156ef | Introducing a Messages.formatWithAttributes() method + unit tests | This new method will not only return the formatted message with values instead of placeholders but also a map of attributes. | diff --git a/modules/collect/src/main/java/com/opengamma/strata/collect/Messages.java b/modules/collect/src/main/java/com/opengamma/strata/collect/Messages.java
index 20632277dc..1ebe2663d8 100644
--- a/modules/collect/src/main/java/com/opengamma/strata/collect/Messages.java
+++ b/modules/collect/src/main/java/com/open... | 8 | 7 | 2 | [{"id": "G0", "claim": "Use Matcher.appendReplacement() to simplify the manual template-splicing logic.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The formatWithAttributes Javadoc does not make clear enough what the method does and should in... | null |
OpenGamma__Strata__1651 | OpenGamma/Strata | 1,651 | defect | 958bc74f09584d186a585702df899c14476ff0c1 | 473dae4a020e80794733e260987c70838af7521c | Add structured logging to FailureItem | Making changes to FailureItem in order to use structured logging, provided by `Messages.formatWithAttributes()`.
Added a unit test for this use case. | diff --git a/modules/collect/src/main/java/com/opengamma/strata/collect/result/FailureItem.java b/modules/collect/src/main/java/com/opengamma/strata/collect/result/FailureItem.java
index bcee21b613..e418585d70 100644
--- a/modules/collect/src/main/java/com/opengamma/strata/collect/result/FailureItem.java
+++ b/modules/... | 6 | 6 | 2 | [{"id": "G0", "claim": "The Javadoc sentence 'If the placeholder is name, it will be added to the attributes map' contains a typo and should be reworded to say that if the placeholder has a name, its value is added to the attributes map with the name as the key.", "category": "documentation", "verdict": "supported", "p... | null |
OpenGamma__Strata__1800 | OpenGamma/Strata | 1,800 | defect | 27b2a3d80616d72f823bf5cc3f8774e9bafd683b | b0f1e2dc2761790b120e8dfcee790d0210f04ee6 | Map based sensitivity | Provide methods to convert sensitivity to and from a map | diff --git a/modules/market/src/main/java/com/opengamma/strata/market/param/CurrencyParameterSensitivity.java b/modules/market/src/main/java/com/opengamma/strata/market/param/CurrencyParameterSensitivity.java
index 90892293bf..0aa36dc0d8 100644
--- a/modules/market/src/main/java/com/opengamma/strata/market/param/Curren... | 1 | 1 | 0 | [{"id": "G0", "claim": "The Javadoc on the two new conversion methods belongs to the preceding method rather than the one it describes, so it should be attached to the method above.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
OpenGamma__Strata__1816 | OpenGamma/Strata | 1,816 | defect | 60d764319f38060e78a18e62386bc06540109f0e | 994ca59877bd6d6548324bc5d9a979d1f9de8f34 | Add CSV loader for sensitivities | Provides the ability to load sensitivities in two formats
Leniently handles some older formats | diff --git a/modules/loader/src/main/java/com/opengamma/strata/loader/csv/SensitivityCsvInfoResolver.java b/modules/loader/src/main/java/com/opengamma/strata/loader/csv/SensitivityCsvInfoResolver.java
new file mode 100644
index 0000000000..01b68df40b
--- /dev/null
+++ b/modules/loader/src/main/java/com/opengamma/strata... | 7 | 5 | 0 | [{"id": "G0", "claim": "The list-format documentation bullet is missing the closing quote after 'Reference'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The grid-format documentation seems odd because it starts talking about references again.",... | null |
OpenGamma__Strata__1824 | OpenGamma/Strata | 1,824 | defect | a5c8b34a44265f3db17d641b2a7b3489a2b60fdf | aa0f8fd3adc432ecd83deb936fa15c83f313c3eb | Enhance MapStream | Add `toMapGrouping` that provides more control over the terminal group | diff --git a/modules/collect/src/main/java/com/opengamma/strata/collect/MapStream.java b/modules/collect/src/main/java/com/opengamma/strata/collect/MapStream.java
index c0608f66ef..154d9999f9 100644
--- a/modules/collect/src/main/java/com/opengamma/strata/collect/MapStream.java
+++ b/modules/collect/src/main/java/com/o... | 3 | 2 | 1 | [{"id": "G0", "claim": "The values() method should get a similar javadoc note to keys()' about duplicates (may require Stream.distinct()), or the reviewer asks whether that is intentional.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new toMap... | null |
OpenGamma__Strata__1841 | OpenGamma/Strata | 1,841 | defect | 4739b58117b4ab4afcce9b3fac60e1d8da1d1a6c | fb64caae315e73c16e36a143df4dede096f667c6 | Named ThreadFactory convenience methods | Not sure how much value they provide, any thoughts?
I can see the class one potentially being useful. | diff --git a/modules/collect/src/main/java/com/opengamma/strata/collect/Guavate.java b/modules/collect/src/main/java/com/opengamma/strata/collect/Guavate.java
index 63827f69c1..0605936567 100644
--- a/modules/collect/src/main/java/com/opengamma/strata/collect/Guavate.java
+++ b/modules/collect/src/main/java/com/opengam... | 1 | 1 | 1 | [{"id": "G0", "claim": "The namedThreadFactory convenience methods offer no way to set daemon/priority/handler/underlying, so maybe they should return a ThreadFactoryBuilder instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
OpenGamma__Strata__1864 | OpenGamma/Strata | 1,864 | defect | a626bf5db9e97cb1b1542477926e85b8fccc1a8b | 2eabfd2d6863b8b4b2ef76fc0ac5086b77b0c5ad | ValueWithFailures.combiningValues(BinaryOperator<T>) function for Stream reductions | There's a `ValueWithFailures.toValueWithFailures(T, BinaryOperator<T>)` for `Stream` collection but that doesn't allow you to get an `Optional<ValueWithFailures<T>>` like a `Stream.reduce()` operation allows you to, and additionally doesn't help if you already have a `ValueWithFailures<T>` and want to append results on... | diff --git a/modules/collect/src/main/java/com/opengamma/strata/collect/result/ValueWithFailures.java b/modules/collect/src/main/java/com/opengamma/strata/collect/result/ValueWithFailures.java
index 2270b178bc..5a134a117e 100644
--- a/modules/collect/src/main/java/com/opengamma/strata/collect/result/ValueWithFailures.j... | 3 | 2 | 0 | [{"id": "G0", "claim": "The new combiningValues(BinaryOperator) method may be unnecessary because vwf.combinedWith(vwf, concatToList()) already provides this, and the reviewer is not a fan of the optional-returning reduce on Stream.", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "introduced"... | null |
OpenGamma__Strata__1866 | OpenGamma/Strata | 1,866 | defect | a626bf5db9e97cb1b1542477926e85b8fccc1a8b | 18610c3a656fb2f86611e91911b1a2d7cfac66e8 | Add convenience methods for working with CompletableFuture<Void> | Ran into this with a `Stream<CompletableFuture<Void>>` and wanting to collect it.
If you use `Guavate.toCombinedFuture()` then it'll throw a `NullPointerException` when collecting the results into an `ImmutableList` | diff --git a/modules/collect/src/main/java/com/opengamma/strata/collect/Guavate.java b/modules/collect/src/main/java/com/opengamma/strata/collect/Guavate.java
index d12e22447a..53147fee0a 100644
--- a/modules/collect/src/main/java/com/opengamma/strata/collect/Guavate.java
+++ b/modules/collect/src/main/java/com/opengam... | 2 | 1 | 0 | [{"id": "G0", "claim": "The void-specific overloads are unnecessary: since nothing in the signature requires ImmutableList, combineFuturesAsList could allow null (Void) results so that combineFuturesAsVoid could just be its default implementation.", "category": "design", "verdict": "supported", "priority": "P2", "scope... | null |
OpenGamma__Strata__1867 | OpenGamma/Strata | 1,867 | defect | 287210bbd68df145e776d7e3e7b0c453a9d67ce8 | c25f725987e61255f36400a6e3b07ecf0e77efde | Add Guavate filtering/casting | Helper methods for streams that allow filtering and casting by type | diff --git a/modules/collect/src/main/java/com/opengamma/strata/collect/Guavate.java b/modules/collect/src/main/java/com/opengamma/strata/collect/Guavate.java
index fb1b5871dc..802ee443aa 100644
--- a/modules/collect/src/main/java/com/opengamma/strata/collect/Guavate.java
+++ b/modules/collect/src/main/java/com/opengam... | 3 | 3 | 1 | [{"id": "G0", "claim": "The Javadoc example for filtering() should read `stream.filter(Foo.class::isInstance).map(Foo.class::cast)` instead of the non-existent `stream.filtering(...)`.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test_castin... | null |
OpenGamma__Strata__1923 | OpenGamma/Strata | 1,923 | defect | b7e2d850e229b10a59254b0c34a61a188ca09072 | 9bc77a7d02cc8f0faca5382acaaac6f6b2e587b9 | Added ESTER overnight index | Added ESTER in OvernightIndexData and OvernightIndices.
Closes #1918 | diff --git a/modules/basics/src/main/java/com/opengamma/strata/basics/index/OvernightIndices.java b/modules/basics/src/main/java/com/opengamma/strata/basics/index/OvernightIndices.java
index 0861fa8c5f..3167891c01 100644
--- a/modules/basics/src/main/java/com/opengamma/strata/basics/index/OvernightIndices.java
+++ b/mo... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a constant for the new EUR-ESTER index to `FloatingRateNames` and add tests around line 60 of `FloatingRateNameTest` covering it.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
OpenGamma__Strata__1976 | OpenGamma/Strata | 1,976 | defect | 35da05faf4d158f98540d91795c1a0eb2b2c5938 | 4e6728de422507beb03c3bb4a5467e2994bdd92e | Synthetic calibrator extended to support Cross-currency swaps. | Synthetic calibrator did not support the cross-currency instruments (FX swaps and XCcy swaps) because the way the FxRateId was treated. Code has been improved to deal with QuoteId and FxRateId separetely. | diff --git a/modules/pricer/src/main/java/com/opengamma/strata/pricer/curve/SyntheticRatesCurveCalibrator.java b/modules/pricer/src/main/java/com/opengamma/strata/pricer/curve/SyntheticRatesCurveCalibrator.java
index 952ba00ac7..044dd2d7d9 100644
--- a/modules/pricer/src/main/java/com/opengamma/strata/pricer/curve/Synt... | 1 | 1 | 1 | [{"id": "G0", "claim": "The map used to build MarketData for CurveNode trade generation must contain the exact FxRateIds for all possible currency pairs, because cross-currency products are calibrated without a MarketDataFxRateProvider and FX crosses are not generated for them.", "category": "correctness", "verdict": "... | null |
OpenGamma__Strata__1980 | OpenGamma/Strata | 1,980 | defect | e7809d7c47431fc4e7049f73e0d00469b1389881 | 936ec7d40b8ce2bfdc7bf468df022acfc30c3efa | Adding two methods on Result: ifSuccess and ifFailure | The consumer in `ifSuccess` will receive the value of the Result. It will only execute if the Result is successful.
The BiConsumer in `ifFailure` will receive both the value and the failure of the Result. It will only execute if the Result has a failure. | diff --git a/modules/collect/src/main/java/com/opengamma/strata/collect/result/Result.java b/modules/collect/src/main/java/com/opengamma/strata/collect/result/Result.java
index 2386b8cd9c..435d1da56a 100644
--- a/modules/collect/src/main/java/com/opengamma/strata/collect/result/Result.java
+++ b/modules/collect/src/mai... | 2 | 2 | 1 | [{"id": "G0", "claim": "Remove the unnecessary 'This is the opposite of {@link ...}' javadoc sentences on ifSuccess and ifFailure, which are self-explanatory (and would need a <p> tag if kept).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "ifFail... | null |
OpenGamma__Strata__1984 | OpenGamma/Strata | 1,984 | defect | 90f3e1ea8d07163c00afb40e2fad61e02268ddce | 92eef75626e153eab71c9f16d9fd47dca8ab458f | Add helper methods to CsvOutput to bridge writing CSV Files and Iterators | Sometimes you already have an instance of a CsvFile or CsvIterator that you want to write out somewhere. This PR adds some static helper methods to CsvOutput to help support that. | diff --git a/modules/collect/src/main/java/com/opengamma/strata/collect/io/CsvOutput.java b/modules/collect/src/main/java/com/opengamma/strata/collect/io/CsvOutput.java
index eedc307ef5..d53e12b367 100644
--- a/modules/collect/src/main/java/com/opengamma/strata/collect/io/CsvOutput.java
+++ b/modules/collect/src/main/j... | 3 | 3 | 1 | [{"id": "G0", "claim": "The row-writing methods should be placed after the line methods, grouping all the lines methods, then all the rows methods, then all the cell methods, then the file/iterator ones — writeRows in particular should sit next to writeRow after writeLine.", "category": "maintainability", "verdict": "s... | null |
OpenGamma__Strata__2004 | OpenGamma/Strata | 2,004 | defect | 0895623c3b9fa1f2de44c050dc92cf07ba9b6a7e | 424583d5c030d997ac5add0b698937f3b8e17429 | Add Attributes.containsAttribute() shorthand method | Add a simple helper method to Attributes - `thing.hasAttribute(foo)` reads more clearly than `thing.findAttribute(foo).isPresent()` and is also nicer to use in functional code. | diff --git a/modules/product/src/main/java/com/opengamma/strata/product/Attributes.java b/modules/product/src/main/java/com/opengamma/strata/product/Attributes.java
index f1a8e0b810..ad6f8df87a 100644
--- a/modules/product/src/main/java/com/opengamma/strata/product/Attributes.java
+++ b/modules/product/src/main/java/co... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new method should be named containsAttribute instead of hasAttribute, to follow the codebase's existing containsXxx() naming convention for such methods.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
OpenGamma__Strata__2031 | OpenGamma/Strata | 2,031 | defect | d1ddef87a1acf70b6d4e32ab078493f86a33570a | f7670f3e9c37578fdb935976cf74342c4dc989f0 | Remove N^2 uniqueness checks in interpolators | Not sure this is the best implementation - still seems a little boilerplatey.
Could definitely be streamlined with more ArgChecker methods, potentially ones that assert that a double array is sorted, unique, and doesn't contain NaN or infinity, but maybe that's overstepping what ArgChecker is responsible for. | diff --git a/modules/collect/src/main/java/com/opengamma/strata/collect/ArgChecker.java b/modules/collect/src/main/java/com/opengamma/strata/collect/ArgChecker.java
index 54bd423594..f58df9883f 100644
--- a/modules/collect/src/main/java/com/opengamma/strata/collect/ArgChecker.java
+++ b/modules/collect/src/main/java/co... | 5 | 4 | 0 | [{"id": "G0", "claim": "The DoubleStream.of(argument).distinct().count() used to detect duplicates in the new ArgChecker.noDuplicates is probably not that fast.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The inRange message in reorderedCopy shou... | null |
OpenGamma__Strata__2086 | OpenGamma/Strata | 2,086 | defect | 34773e7a604e832eeac1beda6e18dc1efc59fa30 | 91ee9ced2d9fac64cdc92dd1da68f837d6eaf3b3 | Short-circuit lookups via ScenarioFxRateProvider | Short-circuit lookups via the ScenarioFxRateProvider interface to avoid fetching/constructing the underlying FxRateProvider unnecessarily. | diff --git a/modules/data/src/main/java/com/opengamma/strata/data/scenario/ScenarioFxRateProvider.java b/modules/data/src/main/java/com/opengamma/strata/data/scenario/ScenarioFxRateProvider.java
index a7aed062d9..c54879541e 100644
--- a/modules/data/src/main/java/com/opengamma/strata/data/scenario/ScenarioFxRateProvide... | 1 | 1 | 1 | [{"id": "G0", "claim": "Please add tests for the short-circuit behaviour added to ScenarioFxRateProvider (same-currency convert and fxRate), since Strata has high test coverage in cases like this.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
OpenGamma__Strata__2087 | OpenGamma/Strata | 2,087 | defect | c36fc4bd4c5703ae5b2e98fd345925ddb9746296 | caa5696c2266065e127b4558aeaff21c95031943 | Risky annuity for single name CDS and CDS index | * Added public risky annuity method, which was internally calculated.
* This is a prerequisite for default swaptions. | diff --git a/modules/pricer/src/main/java/com/opengamma/strata/pricer/credit/IsdaCdsProductPricer.java b/modules/pricer/src/main/java/com/opengamma/strata/pricer/credit/IsdaCdsProductPricer.java
index 663f7bb839..daf2c915f5 100644
--- a/modules/pricer/src/main/java/com/opengamma/strata/pricer/credit/IsdaCdsProductPrice... | 4 | 3 | 1 | [{"id": "G0", "claim": "riskyAnnuitySensitivity throws an exception when the CDS has already expired; it would be better to return an empty sensitivity, and in either case that case should be documented in the Javadoc.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1"... | null |
OpenGamma__Strata__2112 | OpenGamma/Strata | 2,112 | defect | 69b20f88b9b58bd455f63335cdb2c8d8e849a734 | df15b9a9087760961b34ea96038122c824f91085 | LazyFxRateProvider | Add a LazyFxRateProvider for just-in-time construction of a delegate FxRateProvider. | diff --git a/modules/basics/pom.xml b/modules/basics/pom.xml
index e15a1c5c7f..c41ad204bf 100644
--- a/modules/basics/pom.xml
+++ b/modules/basics/pom.xml
@@ -42,6 +42,11 @@
<artifactId>assertj-core</artifactId>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>org.mockito</groupId>... | 3 | 3 | 0 | [{"id": "G0", "claim": "The Javadoc of the static factory method should not say \"Create a new\" — Strata factory methods use \"Obtains\" or \"Returns\" instead.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The private field and private construc... | null |
OpenGamma__Strata__2116 | OpenGamma/Strata | 2,116 | defect | d7873cc5f96df3b1054bca2e693967f5d028f347 | c5a7be48d6756e2dfd62d16af28ecc8a8ee578b9 | Add name to byte source | Access to the name of the underlying file is useful functionality | diff --git a/modules/collect/src/main/java/com/opengamma/strata/collect/io/ArrayByteSource.java b/modules/collect/src/main/java/com/opengamma/strata/collect/io/ArrayByteSource.java
index 68d303074c..f0195f31b5 100644
--- a/modules/collect/src/main/java/com/opengamma/strata/collect/io/ArrayByteSource.java
+++ b/modules/... | 3 | 2 | 2 | [{"id": "G0", "claim": "The fileName field on ArrayByteSource seems like a separate concern; the file name should perhaps be carried by another class instead.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new dispatch to load() for any BeanByteSource ... | null |
OpenGamma__Strata__2132 | OpenGamma/Strata | 2,132 | defect | 2cfda8958c6c17534d2dda9536239060ab1ffd30 | 5809261c9ff38d731f0192a3786ad24876dcd457 | Add optional getters to IniFile and PropertySet | Optional configuration turns out to be quite common | diff --git a/modules/collect/src/main/java/com/opengamma/strata/collect/io/IniFile.java b/modules/collect/src/main/java/com/opengamma/strata/collect/io/IniFile.java
index ff2fdf4b51..728788ba14 100644
--- a/modules/collect/src/main/java/com/opengamma/strata/collect/io/IniFile.java
+++ b/modules/collect/src/main/java/co... | 2 | 1 | 1 | [{"id": "G0", "claim": "Add a case in test_of_multimap asserting that findValue throws IllegalArgumentException when the key has multiple values.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Concatenating multiple values into a comma-separated string ... | null |
OpenGamma__Strata__2173 | OpenGamma/Strata | 2,173 | defect | 15c8d299f556d74e6b0d6efd92639880cb80245c | bee0d3d41935b3024dfcb7dc41478dcbf1965773 | Add method to stream Results | Results could previously only be accessed by index
Now a column is available as a Stream | diff --git a/modules/calc/src/main/java/com/opengamma/strata/calc/Results.java b/modules/calc/src/main/java/com/opengamma/strata/calc/Results.java
index 5198fb7151..b46473c65d 100644
--- a/modules/calc/src/main/java/com/opengamma/strata/calc/Results.java
+++ b/modules/calc/src/main/java/com/opengamma/strata/calc/Result... | 2 | 1 | 0 | [{"id": "G0", "claim": "Add a Javadoc comment on Guavate#zipWithIndex noting that MapStream#zipWithIndex also exists, for people who prefer that API and don't care about the boxing overhead.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Conside... | null |
OpenGamma__Strata__2210 | OpenGamma/Strata | 2,210 | defect | 2f7d83deef8e4e6ed3bdd1a7c2e64b6138562ea8 | 28227b8c24ed7161d233609c491e85b09ff08baf | Support complex date sequences | Support "every three months with every month for the first 6 month".
Define the base sequence as "every three months".
and the full sequence as all known dates.
Add `SequenceDate` to capture the more complex state. | diff --git a/modules/basics/src/main/java/com/opengamma/strata/basics/date/DateSequence.java b/modules/basics/src/main/java/com/opengamma/strata/basics/date/DateSequence.java
index d5035c17a5..b3f8dc7487 100644
--- a/modules/basics/src/main/java/com/opengamma/strata/basics/date/DateSequence.java
+++ b/modules/basics/sr... | 3 | 3 | 0 | [{"id": "G0", "claim": "The 'Quarterly-IMM-4-Serial' javadoc is contradictory — it says the sequence has 4 additional serial non-quarterly months but also that the full sequence consists of six serial months before joining the base quarterly sequence — and asks whether that means 4 non-quarterly plus 2 quarterly months... | null |
OpenGamma__Strata__2249 | OpenGamma/Strata | 2,249 | defect | 1cfdee4a3194da9dfb4effe5b203ff596b340479 | 3a78abd6d87079cead856de2466e2c29dc596502 | Don't set roll convention when creating accrual periods for CNY indices with 1W reset frequency. | * When considering CNY indices with a 1W reset frequency don't set the roll convention, this results in an appropriate weekly roll convention being selected for each sub-schedule. | diff --git a/modules/measure/src/test/java/com/opengamma/strata/measure/swap/SwapPricingTest.java b/modules/measure/src/test/java/com/opengamma/strata/measure/swap/SwapPricingTest.java
index 92ad06431e..b67901d9f9 100644
--- a/modules/measure/src/test/java/com/opengamma/strata/measure/swap/SwapPricingTest.java
+++ b/mo... | 2 | 2 | 2 | [{"id": "G0", "claim": "The special case should be more general: use `accrualSchedule.getFrequency().isMonthBased()` and `rp.getResetFrequency().isWeekBased()` instead of the hard-coded CNY currency and P1W reset-frequency check.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, ... | null |
OpenGamma__Strata__2255 | OpenGamma/Strata | 2,255 | defect | 7472915ad580a4e848d8bae9669750f87895405a | 06690c8606369c43c2973d8fd389c10bb08faba8 | Add the ability to combine schedule periods if requested. | * Add a field to PeriodicSchedule to provide the ability to remove duplicated adjusted dates.
* Use this in the `IborRateCalculation` when we consider week based reset frequencies (to deal with cases like China's Golden Week). | diff --git a/modules/basics/src/main/java/com/opengamma/strata/basics/schedule/PeriodicSchedule.java b/modules/basics/src/main/java/com/opengamma/strata/basics/schedule/PeriodicSchedule.java
index dd1717a076..785f917d56 100644
--- a/modules/basics/src/main/java/com/opengamma/strata/basics/schedule/PeriodicSchedule.java... | 2 | 2 | 2 | [{"id": "G0", "claim": "Changing SchedulePeriod.subSchedule to take an extra boolean combinePeriodIfNecessary parameter breaks Strata's backwards compatibility, so an overload preserving the original signature should be provided instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introd... | null |
OpenGamma__Strata__2263 | OpenGamma/Strata | 2,263 | defect | 8fc244b2ff3b2d537bf606034e93f7d2b1d514e1 | fb9590eb57bbf0981e6f2f636a41fc781db39648 | Adjust vega by appropriate volatility. | * Multiply the vega sensitivites by the appropriate volatility amount. | diff --git a/modules/measure/src/main/java/com/opengamma/strata/measure/Measures.java b/modules/measure/src/main/java/com/opengamma/strata/measure/Measures.java
index c8d6fd73b9..7c2550ae4c 100644
--- a/modules/measure/src/main/java/com/opengamma/strata/measure/Measures.java
+++ b/modules/measure/src/main/java/com/open... | 2 | 2 | 0 | [{"id": "G0", "claim": "The indentation of the added PARAMETER_METADATA stream chain in SwaptionNormalVolatilityDataSets.java doesn't look right.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The test should use CurrencyParameterSensitivities.t... | null |
OpenGamma__Strata__2285 | OpenGamma/Strata | 2,285 | defect | 0f6b84fc1201f05f7b632e2daac4d9238e548e7a | 3150f25b3ab727de733f9d6f9043f7fabeebaf41 | Add a plugin for Position CSV parsing | Allow application code to plugin their own products
Approach is more standard than the resolver used up to now | diff --git a/modules/loader/src/main/java/com/opengamma/strata/loader/csv/EtdFuturePositionCsvPlugin.java b/modules/loader/src/main/java/com/opengamma/strata/loader/csv/EtdFuturePositionCsvPlugin.java
new file mode 100644
index 0000000000..a4196f92ec
--- /dev/null
+++ b/modules/loader/src/main/java/com/opengamma/strata... | 1 | 1 | 1 | [{"id": "G0", "claim": "The JavaDoc of the four position CSV plugin classes all wrongly say they handle CDS index trades and should be corrected.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
OpenGamma__Strata__2301 | OpenGamma/Strata | 2,301 | defect | 444f36a52879c19eb20270c1f4ce0e8f3bccbba5 | b00b87a8b8784b0c94d5c74c673f5ba284aeb127 | Provides access to parameters used in the pricer. | Swap pricer and parameters underlying the CMS pricer were not accessible from outside. Create getters. | diff --git a/modules/pricer/src/main/java/com/opengamma/strata/pricer/cms/SabrExtrapolationReplicationCmsPeriodPricer.java b/modules/pricer/src/main/java/com/opengamma/strata/pricer/cms/SabrExtrapolationReplicationCmsPeriodPricer.java
index 477edc584e..074d103f8d 100644
--- a/modules/pricer/src/main/java/com/opengamma/... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new accessor methods should be named with `getXxx` prefixes and located after the constructor, to be consistent with other pricers.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
OpenGamma__Strata__2326 | OpenGamma/Strata | 2,326 | defect | 0da285a0f23a40090c41b427f5a12f4b06af632e | 5179f5014b7fe851cb43ab51490d0907f1a81fcf | Update CDS Fpml parser to use the indexId element | indexId, if provided, is a better option to indentify the CDS Index than
the free form index name.
We re-use the index scheme if provided, but default to
StandardSchemes.RED9_SCHEME if not. (This is probably what the id is, as
it's the de facto standard for CDS indices.) | diff --git a/modules/loader/src/main/java/com/opengamma/strata/loader/impl/fpml/CdsFpmlParserPlugin.java b/modules/loader/src/main/java/com/opengamma/strata/loader/impl/fpml/CdsFpmlParserPlugin.java
index 1b550dfde3..d3092bb381 100644
--- a/modules/loader/src/main/java/com/opengamma/strata/loader/impl/fpml/CdsFpmlParse... | 1 | 1 | 1 | [{"id": "G0", "claim": "The indexId parsing logic should be: if the id is 9 characters long, set it as RED9; else if the indexIdScheme attribute is set, use it; else return Optional.empty, instead of always defaulting to the RED9 scheme when the attribute is absent.", "category": "correctness", "verdict": "supported", ... | null |
OpenGamma__Strata__2354 | OpenGamma/Strata | 2,354 | defect | 9064e436a0cbec7042d7af2589c3396366a97fc2 | 36743ceecfcdf403410a1c07707ce8df2e362341 | Swaption Bermudan/American exercise | Provide mechanism to store Bermudan/American swaptions and exercise them to create a simple European one | diff --git a/modules/basics/src/main/java/com/opengamma/strata/basics/date/AdjustableDates.java b/modules/basics/src/main/java/com/opengamma/strata/basics/date/AdjustableDates.java
index 637db52835..9768ead504 100644
--- a/modules/basics/src/main/java/com/opengamma/strata/basics/date/AdjustableDates.java
+++ b/modules/... | 1 | 1 | 1 | [{"id": "G0", "claim": "Exercising a Bermudan (or vanilla) swaption should yield the underlying swap rather than a swaption, so the exercise function should return a Swap.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
OpenGamma__Strata__2355 | OpenGamma/Strata | 2,355 | defect | 9064e436a0cbec7042d7af2589c3396366a97fc2 | 4db79bf4d198b18650acb4a165fb962ffb45b384 | Fix time-series merge to correctly handle weekends | The merge method did not set the `containsWeekends` flag
This caused an exception on building | diff --git a/modules/collect/src/main/java/com/opengamma/strata/collect/timeseries/LocalDateDoubleTimeSeriesBuilder.java b/modules/collect/src/main/java/com/opengamma/strata/collect/timeseries/LocalDateDoubleTimeSeriesBuilder.java
index 6ad7e4ca3d..44b2b021ce 100644
--- a/modules/collect/src/main/java/com/opengamma/str... | 1 | 1 | 1 | [{"id": "G0", "claim": "Restore the ArgChecker.notNull(point, \"point\") guard in merge(LocalDateDoublePoint, DoubleBinaryOperator), which this pull request's refactor to delegation dropped and which the equivalent put(LocalDateDoublePoint) keeps before delegating.", "category": "correctness", "verdict": "supported", "... | null |
OpenGamma__Strata__2356 | OpenGamma/Strata | 2,356 | defect | e68c4248b0e58f0e58e3a59aa3c9a21bfe0dd203 | 26c4136ca500a1bc9564653676e74324dcc00fad | Enhance IborCapFloorTrade pricer | - Add implied volatility and forward rate calculations to IBOR cap/floor trade, product, leg and period pricers.
- For the trade, product and leg pricers, a map is returned of the implied volatility / forward rate per individual caplet/floorlet. | diff --git a/modules/pricer/src/main/java/com/opengamma/strata/pricer/capfloor/VolatilityIborCapFloorLegPricer.java b/modules/pricer/src/main/java/com/opengamma/strata/pricer/capfloor/VolatilityIborCapFloorLegPricer.java
index 367e433fe6..b114ae6f74 100644
--- a/modules/pricer/src/main/java/com/opengamma/strata/pricer/... | 2 | 1 | 0 | [{"id": "G0", "claim": "It would be worth adding tests covering the floor/floorlet side, as the new pricer methods are only tested with cap fixtures.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A bean should represent the Map<IborCapletFloorletPeriod... | null |
OpenGamma__Strata__2361 | OpenGamma/Strata | 2,361 | defect | c613c7939d2e90ee24b46cd59fabcab7a9007219 | cd6a9780a4c07397861c9816c64f8ce8917e64f6 | More IborCapFloorTrade pricer enhancements | - Change forward rate calculations to filter caplet/floorlet periods which have expired, consistent with implied volatility calculations
- Add method to get the present value for the caplet/floorlet periods. This method ignores any present value calculations for the product pay leg or the trade premium.
- Add currenc... | diff --git a/modules/pricer/src/main/java/com/opengamma/strata/pricer/capfloor/IborCapletFloorletPeriodAmounts.java b/modules/pricer/src/main/java/com/opengamma/strata/pricer/capfloor/IborCapletFloorletPeriodAmounts.java
index 893334a972..19c8e2285f 100644
--- a/modules/pricer/src/main/java/com/opengamma/strata/pricer/... | 3 | 2 | 2 | [{"id": "G0", "claim": "IborCapletFloorletPeriodAmounts should be split into two separate beans rather than one bean holding both the double-amount map and the currency-amount map.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "impliedVolatilities should... | null |
OpenGamma__Strata__2372 | OpenGamma/Strata | 2,372 | defect | 0599321a086eb8f1faa0a79bea56081271d4c159 | 91154725037ba0da39f54ce4a49baa4ed97c67e6 | Correct bug for negative forward price in NormalFormulaRepository | Change starting point and maxChange in implied volatility computation to deal with negative forwards. | diff --git a/modules/pricer/src/main/java/com/opengamma/strata/pricer/impl/option/NormalFormulaRepository.java b/modules/pricer/src/main/java/com/opengamma/strata/pricer/impl/option/NormalFormulaRepository.java
index c6d8a5375e..7584243b19 100644
--- a/modules/pricer/src/main/java/com/opengamma/strata/pricer/impl/optio... | 1 | 1 | 0 | [{"id": "G0", "claim": "The initial sigma line could be written using Math.min instead of the ternary.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
OpenGamma__Strata__2381 | OpenGamma/Strata | 2,381 | defect | e04f688a647ced1f005676acf86e06bb60b6a1a8 | ba0c85a4ce1d26eb3176290cb60aa4dfa8b8f7a3 | Allow Setting and Loading of SettlementType for Physically Settled Options | This code allows us to tag Physically Settled Options with a settlement type of 'Physical' and then gives us the option to filter these positions from the Eurex Time to Expiry Adjustment Calc. | diff --git a/modules/loader/src/main/java/com/opengamma/strata/loader/csv/CsvLoaderUtils.java b/modules/loader/src/main/java/com/opengamma/strata/loader/csv/CsvLoaderUtils.java
index 2ab3247d1a..bd6dd0c50a 100644
--- a/modules/loader/src/main/java/com/opengamma/strata/loader/csv/CsvLoaderUtils.java
+++ b/modules/loader... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new hardcoded factory `ofPhysicallySettledOption()` should instead be expressed as a parameterised `ofMonthly(EtdSettlementType)` overload placed next to `ofMonthly()` in the file.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
OpenGamma__Strata__2383 | OpenGamma/Strata | 2,383 | defect | e04f688a647ced1f005676acf86e06bb60b6a1a8 | a6d6c065eccb96c9733dfe910b12ad2bc71c021b | Adding term rates descriptions for GBP, JPY and USD. | References on those rates can be found at
* https://www.cmegroup.com/market-data/files/cme-term-sofr-reference-rates-faq.pdf
* https://www.theice.com/iba/risk-free-rates
* https://corporate.quick.co.jp/en/torf
Rates added in the csv data files but not (yet) in the Java constant. | diff --git a/modules/basics/src/main/java/com/opengamma/strata/basics/index/IborIndex.java b/modules/basics/src/main/java/com/opengamma/strata/basics/index/IborIndex.java
index a0b2d2dc06..d1fed52256 100644
--- a/modules/basics/src/main/java/com/opengamma/strata/basics/index/IborIndex.java
+++ b/modules/basics/src/main... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new term-rate identifiers in IborIndexData.csv are inconsistently and ambiguously named: the entries should be named similarly to one another and the overnight-linked term rates should carry the term rate provider in the name (e.g. USD-SOFRCMETERM-1M) to avoid confusion when several provider... | null |
OpenGamma__Strata__2384 | OpenGamma/Strata | 2,384 | defect | e04f688a647ced1f005676acf86e06bb60b6a1a8 | 87da090583282bb41e6a78472626c96e54c0f5c6 | SABR formula for in-arrears overnight cap/floor (Asian style options) | SABR effective parameters for in-arrears cap/floors.
Using formulas from Willems, Sander. SABR smiles for RFR caplets. August 2020. Electronic copy available at: https://ssrn.com/abstract=3567655 (Theorem 4.1 and Theorem 4.2) | diff --git a/modules/pricer/src/main/java/com/opengamma/strata/pricer/impl/volatility/smile/SabrInarrearsVolatilityFunction.java b/modules/pricer/src/main/java/com/opengamma/strata/pricer/impl/volatility/smile/SabrInarrearsVolatilityFunction.java
new file mode 100644
index 0000000000..0a8cc4a8d6
--- /dev/null
+++ b/mod... | 3 | 3 | 1 | [{"id": "G0", "claim": "The new public class should be named SabrInArrearsVolatilityFunction (camel-case 'Arrears') instead of SabrInarrearsVolatilityFunction.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Javadoc of the effective-parameter... | null |
OpenGamma__Strata__2395 | OpenGamma/Strata | 2,395 | defect | 6b3f6084f982c27a37a9b41eab91f9800710568b | 7d7eef47ab4766901614d7d4b4cfac9719b32c5d | Trade model: caplet/floorlet on overnight in arrears | Caplet/floorlet period on overnight compounded in arrears, i.e. Asian style option on short term rate. | diff --git a/modules/product/src/main/java/com/opengamma/strata/product/capfloor/OvernightInarrearsCapletFloorletPeriod.java b/modules/product/src/main/java/com/opengamma/strata/product/capfloor/OvernightInarrearsCapletFloorletPeriod.java
new file mode 100644
index 0000000000..558b5e4a02
--- /dev/null
+++ b/modules/pro... | 1 | 1 | 0 | [{"id": "G0", "claim": "Rename the class OvernightInarrearsCapletFloorletPeriod to OvernightInArrearsCapletFloorletPeriod, fixing the misspelling of \"Arrears\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
OpenGamma__Strata__2426 | OpenGamma/Strata | 2,426 | defect | 35977685ca258b60b35770a14454204137d829f9 | f24b730d9d82414f2a1a7e8f65b7023f99138f8b | Handle combined holiday calendars correctly in HolidaySafeReferenceData | - Fix JavaDocs for `HolidayCalendar.combinedWith()` and `HolidayCalendar.linkedWith()`
- If a combined/linked holiday calendar ID is not present in the reference data used for `HolidaySafeReferenceData`, don't default to creating an `ImmutableHolidayCalender` when `queryValueOrNull()` and `tryDefaultValue()` are calle... | diff --git a/modules/basics/src/main/java/com/opengamma/strata/basics/date/HolidayCalendar.java b/modules/basics/src/main/java/com/opengamma/strata/basics/date/HolidayCalendar.java
index 3a58d732f5..f63276b646 100644
--- a/modules/basics/src/main/java/com/opengamma/strata/basics/date/HolidayCalendar.java
+++ b/modules/... | 2 | 2 | 2 | [{"id": "G0", "claim": "The pull request's Javadoc correction to combinedWith is wrong: combinedWith is where a business day only happens if both calendars agree it is a business day, so the line should say 'both', not 'either'.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduc... | null |
OpenGamma__Strata__2448 | OpenGamma/Strata | 2,448 | defect | 04bfb7c5aa3bda7e12a6d8b9ab2333e9cdd6950b | 0876218795d83394a65f33d1df1c6d7c8fa1dc29 | Enhance failure management | * New exception types `FailureItemException` and `ParseFailureException`
* Alter Result to capture failure exception types
* Alter ValueWithFailures to capture failure exception types
* Provide ability to recreate the message template | diff --git a/modules/collect/src/main/java/com/opengamma/strata/collect/Messages.java b/modules/collect/src/main/java/com/opengamma/strata/collect/Messages.java
index de093d562b..66fb3686cc 100644
--- a/modules/collect/src/main/java/com/opengamma/strata/collect/Messages.java
+++ b/modules/collect/src/main/java/com/open... | 5 | 5 | 0 | [{"id": "G0", "claim": "The javadoc of the new Failure.from(Throwable) says it recognizes FailureException and FailureItemException but omits ParseFailureException, which the new code also catches and converts.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",... | null |
OpenGamma__Strata__2449 | OpenGamma/Strata | 2,449 | defect | 269566d4f8606f7ada18e5cb4088b514b6ea48ea | de22ae987905ccde15ad8e8b1b110815c49b00c8 | Enhance failure exceptions | * Ensure that `FailureItem` captures underlying failures
* This avoids losing failure information within wrapped exceptions | diff --git a/modules/collect/src/main/java/com/opengamma/strata/collect/Messages.java b/modules/collect/src/main/java/com/opengamma/strata/collect/Messages.java
index cf6be7ceac..bdfbde1a9b 100644
--- a/modules/collect/src/main/java/com/opengamma/strata/collect/Messages.java
+++ b/modules/collect/src/main/java/com/open... | 2 | 2 | 1 | [{"id": "G0", "claim": "Fix the typo 'legth' in the Javadoc of mergeTemplateLocations so it reads 'length'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Failure attributes might get overridden when combining two or more failure items; the review... | null |
OpenGamma__Strata__2456 | OpenGamma/Strata | 2,456 | defect | eb83131988384162795b6959ee12960070cd3acd | 4c294e3d6f4aac8f6dc30c725b6d5755b2cf6fc8 | Enhance parse exceptions | * Use ParseFailureException
* Capture more detail on failures | diff --git a/modules/collect/src/main/java/com/opengamma/strata/collect/io/CharSources.java b/modules/collect/src/main/java/com/opengamma/strata/collect/io/CharSources.java
index a3f071ce9b..6de8634ccc 100644
--- a/modules/collect/src/main/java/com/opengamma/strata/collect/io/CharSources.java
+++ b/modules/collect/src/... | 1 | 1 | 1 | [{"id": "G0", "claim": "The Javadoc for the public methods of FpmlDocument needs updating to say whether they throw FpmlParseException or ParseFailureException.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
OpenGamma__Strata__2539 | OpenGamma/Strata | 2,539 | defect | 126056bbcf9f464170d2743b5f331c0524662d28 | 1c918927ffb782c6746a5595237db88414e9473b | Market quote calculations for bond and bill | * Prerequisite for bond curve calibrator
* Added price sensitivity method for bill
* Public method for calculating settlement date, accessing underlying product pricers - these will be used when pricing a trade created from a curve node
* First order derivatives for price-yield conversion | diff --git a/modules/data/src/main/java/com/opengamma/strata/data/FieldName.java b/modules/data/src/main/java/com/opengamma/strata/data/FieldName.java
index e2aad93799..dfd12fe764 100644
--- a/modules/data/src/main/java/com/opengamma/strata/data/FieldName.java
+++ b/modules/data/src/main/java/com/opengamma/strata/data/... | 3 | 2 | 1 | [{"id": "G0", "claim": "Document in the settlementDate javadoc of the bill and fixed-coupon-bond trade pricers that the valuation date is returned when the trade has no settlement details.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add tests f... | null |
OpenGamma__Strata__2581 | OpenGamma/Strata | 2,581 | defect | d76f43c8898ae22b93623549d28010f2b237ff37 | daf2c0d488eda0fdc8564e6a9ec0bd65af71dcd2 | Yield and Price Derivatives for Inflation Bonds | * Added derivative calculations for price-yield conversions for inflation bond
* Added FieldName
* Added isRealPrice method to the yield conventions | diff --git a/modules/data/src/main/java/com/opengamma/strata/data/FieldName.java b/modules/data/src/main/java/com/opengamma/strata/data/FieldName.java
index dfd12fe764..d22307395d 100644
--- a/modules/data/src/main/java/com/opengamma/strata/data/FieldName.java
+++ b/modules/data/src/main/java/com/opengamma/strata/data/... | 3 | 3 | 0 | [{"id": "G0", "claim": "The new field name constant REAL_YIELD should be named REAL_YIELD_TO_MATURITY for consistency with the existing YIELD_TO_MATURITY constant.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new field name constant NOMINA... | null |
OpenGamma__Strata__2602 | OpenGamma/Strata | 2,602 | defect | 7bf764e2a18eca67b9b421f72a368c9aedd15b41 | f5ead7f818e502678f4bb1b5b093594a08433b84 | Nodal Recovery Rates | * Added an implementation of RecoveryRates to handle non-constant recovery rates | diff --git a/modules/pricer/src/main/java/com/opengamma/strata/pricer/credit/NodalRecoveryRates.java b/modules/pricer/src/main/java/com/opengamma/strata/pricer/credit/NodalRecoveryRates.java
new file mode 100644
index 0000000000..ab925ac21f
--- /dev/null
+++ b/modules/pricer/src/main/java/com/opengamma/strata/pricer/cr... | 2 | 2 | 0 | [{"id": "G0", "claim": "Add a blank line between the recoveryRate and findData methods (above the findData @Override).", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Use bean definition style \"light\" or \"minimal\" depending on whether a builder is need... | null |
OpenGamma__Strata__2603 | OpenGamma/Strata | 2,603 | defect | 6b83478b6e1d39af3ef38736af08a2c2f81ca557 | 84aabd2e088f7ef62570744440af637fc72259e4 | Fix for duplicate dates removal if combinePeriodsIfNecessary is set to true | Fix for duplicate dates removal if combinePeriodsIfNecessary is set to true
Issue was reported before in below bug:
https://github.com/OpenGamma/Strata/issues/2597 | diff --git a/modules/basics/src/main/java/com/opengamma/strata/basics/schedule/PeriodicSchedule.java b/modules/basics/src/main/java/com/opengamma/strata/basics/schedule/PeriodicSchedule.java
index c49d6dcb62..f798bf5ead 100644
--- a/modules/basics/src/main/java/com/opengamma/strata/basics/schedule/PeriodicSchedule.java... | 1 | 1 | 1 | [{"id": "G0", "claim": "Simplify the bond part by dropping the extra public resolve(ReferenceData, boolean) overload that delegates with false, and instead make resolve(ReferenceData) pass true to createSchedule directly, since combining periods is the behaviour most users would expect.", "category": "design", "verdict... | null |
OpenGamma__Strata__2616 | OpenGamma/Strata | 2,616 | defect | d15c39dacd602e6d7b7ec75159dd12f3dff8fd4a | 1b055e9dd2d8247c5de99b9e3c1a47e2e44456a9 | Implied vol for intrinsic value close to 0. | Due to Java handling of double, in some cases the calculated intrinsic price of options is negative even if they should be 0 in theory.
Added some threshold such that when the price is below it, it is considered as 0. Used 1.0E-16 * forward. | diff --git a/modules/pricer/src/main/java/com/opengamma/strata/pricer/impl/option/BlackFormulaRepository.java b/modules/pricer/src/main/java/com/opengamma/strata/pricer/impl/option/BlackFormulaRepository.java
index b3832ab6f0..81b38121ae 100644
--- a/modules/pricer/src/main/java/com/opengamma/strata/pricer/impl/option/... | 1 | 1 | 0 | [{"id": "G0", "claim": "The test method name's 'intrinsic' should be capitalized or separated with underscore, i.e. 'impliedVol_nearintrinsic' should be named 'impliedVol_near_intrinsic'.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
OpenGamma__Strata__2645 | OpenGamma/Strata | 2,645 | defect | 2c097d0bf95aaf0dc9b8e2d8a0a29715fddd36bd | f5e8908c4de2efcfeceec0b250093a53c03d2f49 | Added Result of optional method |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
- **New Features**
- Introduced methods to handle optional values with custom failure messages in the `Result` class.
- **Tests**
- Added tests to verify the behaviour of `Result` with optional values, including... | diff --git a/modules/collect/src/main/java/com/opengamma/strata/collect/result/Result.java b/modules/collect/src/main/java/com/opengamma/strata/collect/result/Result.java
index d164e7cdb2..8f2bd53253 100644
--- a/modules/collect/src/main/java/com/opengamma/strata/collect/result/Result.java
+++ b/modules/collect/src/mai... | 2 | 2 | 0 | [{"id": "G0", "claim": "The javadoc of ofOptional should read \"containing the value if present\" instead of the ungrammatical \"containing the value is present\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The single-argument ofOptional signa... | null |
OpenGamma__Strata__2720 | OpenGamma/Strata | 2,720 | defect | 3a31fbf333b35b7ce3e3cd121a99ef7fdcf66336 | 48120ce35e0fd345871a13363ae9530d55ad1b69 | Smile Adjusted Delta for FX Options | * Add smile adjusted delta method and adjusted currency exposure method for FX vanilla options
* Bug fix for firstPartialDerivatives in BlackFxOptionSmileVolatilities
* Extended unit tests | diff --git a/modules/pricer/src/main/java/com/opengamma/strata/pricer/fxopt/BlackFxOptionFlatVolatilities.java b/modules/pricer/src/main/java/com/opengamma/strata/pricer/fxopt/BlackFxOptionFlatVolatilities.java
index 0aa54344ab..089bda4a6a 100644
--- a/modules/pricer/src/main/java/com/opengamma/strata/pricer/fxopt/Blac... | 4 | 4 | 2 | [{"id": "G0", "claim": "In smileAdjustedDelta the redundant second `option.getPutCall().isCall()` should be replaced by the already computed `isCall` variable.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Javadoc of partialFirstDerivatives... | null |
OpenGamma__Strata__2769 | OpenGamma/Strata | 2,769 | defect | d43533c753e712924df71c88c574a2a7bf1f5cfe | 35cd92ce8daec784e5b90475fc7731f1ffb1dad4 | Calculation Functions for Future Options | * Adding new calculation function and extending existing calculation function for future options | diff --git a/modules/measure/src/main/java/com/opengamma/strata/measure/StandardComponents.java b/modules/measure/src/main/java/com/opengamma/strata/measure/StandardComponents.java
index 05d787aba5..3b32c76193 100644
--- a/modules/measure/src/main/java/com/opengamma/strata/measure/StandardComponents.java
+++ b/modules/... | 2 | 2 | 0 | [{"id": "G0", "claim": "The return statement in pv01MarketQuoteSum should be reformatted as MARKET_QUOTE_SENS.sensitivity(parameterSensitivity, discountingProvider) with .total() and .multipliedBy(ONE_BASIS_POINT) chained on separate lines, which the reviewer finds clearer to read.", "category": "maintainability", "ver... | null |
OpenGenus__cosmos__2963 | OpenGenus/cosmos | 2,963 | defect | 0cbd79120b541f2042acbbd50a27c32af1df0f10 | 837287b77b6ff3609087d96266ecb70bf18a26ff | Add tree node policy and tree comparer in c++ | **Fixes issue:**
**Changes:**
1. add tree node policy (normal and derivative version for binary tree)
2. add tree comparer and its test (the test file need replace if #2961 is merged)
note: the "tree_serializer.cpp" file hasn't test file, I will push it later or tomorrow.. | diff --git a/code/data_structures/tree/tree_comparer/test_tree_comparer.cpp b/code/data_structures/tree/tree_comparer/test_tree_comparer.cpp
new file mode 100644
index 0000000000..bb23945bbf
--- /dev/null
+++ b/code/data_structures/tree/tree_comparer/test_tree_comparer.cpp
@@ -0,0 +1,102 @@
+#ifndef TEST_TREE_COMPARER
... | 7 | 6 | 1 | [{"id": "G0", "claim": "The space between the closing angle brackets in `std::shared_ptr<TreeNode<int> >` is unnecessary in C++11 and should be removed.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The test file should explicitly include the standard he... | null |
OpenGenus__cosmos__2979 | OpenGenus/cosmos | 2,979 | defect | fe42a25aa3af8719227062a3c104f34e30830d8a | 0f3e99988b675fd5e00c4da1396569d13e2cf798 | add path sum of binary tree | **Fixes issue:**
**Changes:**
1. add path sum (whole and part path) of binary tree
2. add tests | diff --git a/code/data_structures/tree/path_sum/path_sum.cpp b/code/data_structures/tree/path_sum/path_sum.cpp
new file mode 100644
index 0000000000..f60b0ba310
--- /dev/null
+++ b/code/data_structures/tree/path_sum/path_sum.cpp
@@ -0,0 +1,91 @@
+/*
+ Part of Cosmos by OpenGenus Foundation
+ */
+
+#ifndef path_sum_cpp
... | 2 | 2 | 0 | [{"id": "G0", "claim": "Add spacing between the operands and the operator, e.g. write `if (root!=nullptr)` as `if (root != nullptr)` in getPathsOfSumUp.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Whenever using braces, always have a space af... | null |
OpenGenus__cosmos__3007 | OpenGenus/cosmos | 3,007 | defect | 2006c2485eaf090132886f06c8df8b484f66069e | d98850186764f520c86c46bba81201cb7a6081c3 | implement template palindrom checker in cpp | **Fixes issue:**
**Changes:**
1. add common utitlity folder
2. implement template palindrom checker | diff --git a/code/utility/palindrome/palindrome_check/palindrom_check.cpp b/code/utility/palindrome/palindrome_check/palindrom_check.cpp
new file mode 100644
index 0000000000..0f32008dbc
--- /dev/null
+++ b/code/utility/palindrome/palindrome_check/palindrom_check.cpp
@@ -0,0 +1,93 @@
+#include <iterator>
+#include <typ... | 6 | 5 | 1 | [{"id": "G0", "claim": "Remove the unnecessary braces around the single-statement inner if in the recursive and iterative implementations.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Use braces around the while-loop body in the iterative implementation... | null |
OpenGenus__cosmos__3054 | OpenGenus/cosmos | 3,054 | defect | 4ac9498128545cee6a8c2e47cd16d1a9dab280be | 6008c57ed5e9cbc933e8c0c3e2db7337faa659ec | Add fibonacci search | **Fixes issue:**
#3048
**Changes:**
1. rename files that is conflict
2. fix coding style for some file
3. implement fibonacci search in c++ | diff --git a/code/search/binary_search/binary_search.cpp b/code/search/binary_search/binary_search.cpp
index 5dfb0215a9..b0dc7231c6 100644
--- a/code/search/binary_search/binary_search.cpp
+++ b/code/search/binary_search/binary_search.cpp
@@ -1,9 +1,9 @@
/*
- Part of Cosmos by OpenGenus Foundation
+ Part of Cosmos ... | 2 | 2 | 2 | [{"id": "G0", "claim": "The trailing semicolon in '#define InputIteratorContainer;' should not be there.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "With '#define SearchFunc fibonacciSearch;', each use 'vsf = SearchFunc;' expands to a stray extra... | null |
OpenGenus__cosmos__3098 | OpenGenus/cosmos | 3,098 | defect | a921670f29525a1bed5f6e3dde359bddcec1af71 | 9c72c9fcf1e9b29838de156e2e8bdbd221dfdd20 | Generalize sort algorithms and update test file | **Fixes issue:**
**Changes:**
- [x] generalize insertion/selection/bubble sort
- [x] improve sorting test
- [x] remove unnecessary template parameter | diff --git a/code/sorting/bubble_sort/bubble_sort.cpp b/code/sorting/bubble_sort/bubble_sort.cpp
index d6f4d92637..ff0e4a497f 100644
--- a/code/sorting/bubble_sort/bubble_sort.cpp
+++ b/code/sorting/bubble_sort/bubble_sort.cpp
@@ -1,82 +1,50 @@
-/* Part of Cosmos by OpenGenus Foundation */
-//Sorting array element (The... | 4 | 2 | 0 | [{"id": "G0", "claim": "Use `if (!swapped)` instead of `if (swapped == false)` in bubble_sort.cpp.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Improve the readability of the 3-elems test section's repeated `*++stdContainer.begin()` checks, with... | null |
OpenGenus__cosmos__3105 | OpenGenus/cosmos | 3,105 | defect | 9bcd6b959e180ef39c576e6332a5a47cfb3d75ac | 67865517708389d4226478f98f16d8a1ca27a269 | Update subset | **Fixes issue:** #[Mention the issue number it fixes or add the details of the changes if it doesn't has a specific issue.]
**Changes:**
1. separate test file
2. substitute algorithm
3. remove coupling of container and algorithm | diff --git a/code/dynamic_programming/subset_sum/subset_sum.cpp b/code/dynamic_programming/subset_sum/subset_sum.cpp
index 01f7b2c11d..75dd967f7b 100644
--- a/code/dynamic_programming/subset_sum/subset_sum.cpp
+++ b/code/dynamic_programming/subset_sum/subset_sum.cpp
@@ -1,44 +1,76 @@
/* Part of Cosmos by OpenGenus Fou... | 2 | 1 | 0 | [{"id": "G0", "claim": "arnavb asks for the reasoning behind using a 2D raw array (`bool subset[2][sum + 1]`) in the O(sum) space subset-sum routine, questioning the implementation choice.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "arnavb objects to ... | null |
OpenGenus__cosmos__3444 | OpenGenus/cosmos | 3,444 | defect | f1e9f59ea22c9b9234950df415b73cdd6374b01b | e998c97b689200384a694c0ab7caf092bee9bdbf | Added baconian_test.cpp, baconian test directory, and baconian.cpp | **Fixes issue:**
<!-- [Mention the issue number it fixes or add the details of the changes if it doesn't has a specific issue. -->
None.
**Changes:**
<!-- Add here what changes were made in this pull request. -->
Added baconian.cpp and included an algorithm to generate a baconian map. Also added baconian_test fi... | diff --git a/code/cryptography/src/baconian_cipher/baconian.cpp b/code/cryptography/src/baconian_cipher/baconian.cpp
new file mode 100644
index 0000000000..054086c0a6
--- /dev/null
+++ b/code/cryptography/src/baconian_cipher/baconian.cpp
@@ -0,0 +1,81 @@
+#include <map>
+#include <string>
+
+#define VALUE_LENGTH 5 // T... | 9 | 9 | 0 | [{"id": "G0", "claim": "Use a constant variable or a function parameter for the value length instead of the global `#define VALUE_LENGTH` macro.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The global `cipher` map is bad; pass the map around instead of... | null |
OpenGenus__cosmos__3987 | OpenGenus/cosmos | 3,987 | defect | 562559ed6e4c70d2210e0f6c2ad1606c2f7d75f6 | e2676f991ab05e4c2bb5b488a372e3e911ce041c | Push relabel | **Changes:**
<!-- Add here what changes were made in this pull request. -->
Adding the **push_relabel** algorithm for maximum flow.
(And later use it to add the **min_s_t_cut** algorithm).
<!-- Make sure to look at the Style Guide for your language in guides/coding_style/language_name:
https://github.co... | diff --git a/code/graph_algorithms/src/push_relabel/push_relabel.cpp b/code/graph_algorithms/src/push_relabel/push_relabel.cpp
new file mode 100644
index 0000000000..149fca98f7
--- /dev/null
+++ b/code/graph_algorithms/src/push_relabel/push_relabel.cpp
@@ -0,0 +1,191 @@
+#include <vector>
+#include <queue>
+#include <c... | 7 | 7 | 0 | [{"id": "G0", "claim": "The push-relabel functions should pass the matrices by reference instead of pointers where modification is necessary.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new push_relabel.cpp should follow the coding conven... | null |
OpenGenus__cosmos__4090 | OpenGenus/cosmos | 4,090 | defect | f60ffb200996aaae2dea29a7d5d68a0f36950038 | c069cebca514d91b6b3a33336d064175f2d0a732 | Bag Data Structure in C++ | **Fixes issue:**
#4085
**Changes:**
-Implemented bag data structure in C++
-Created a test for the bag data structure in C++
| diff --git a/code/data_structures/src/bag/bag.cpp b/code/data_structures/src/bag/bag.cpp
new file mode 100644
index 0000000000..97d9644f26
--- /dev/null
+++ b/code/data_structures/src/bag/bag.cpp
@@ -0,0 +1,85 @@
+//Needed for random and vector
+#include <vector>
+#include <string>
+#include <cstdlib>
+
+using std... | 2 | 2 | 1 | [{"id": "G0", "claim": "The test file should be able to run without any modifications required, so the `class Bag` should be in that file as well.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The decorative banner comment blocks are not required in the... | null |
OpenGeoscience__geojs__1058 | OpenGeoscience/geojs | 1,058 | defect | 5e1df3126ec556902ee64e8eab5c68942ccf4644 | 764b93e1cc96b8bd28a7859b899e2b82f6002fb0 | cancelOnMove distance settings | `cancelOnMove` was modified so that it would accept a non-negative number as a distance that the mouse can be moved while held down. With cancelOnMove being true by default it was difficult to do fast selection of multiple objects. This allows the objects to have some variance when a user is moving the mouse. That ... | diff --git a/.travis.yml b/.travis.yml
index b1707a9bce..b4cd8b252d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -71,6 +71,11 @@ after_failure:
- find _build/images -name '*-test.png' -exec python scripts/upload_travis_results.py {} \+ || true
# Upload build artifacts
- find dist/built -type f -exec python sc... | 1 | 1 | 0 | [{"id": "G0", "claim": "The jsdoc for `click.cancelOnMove` should be changed to say \"If `true`, don't generate click events...\" instead of \"If truthy\", since the code only cancels on any movement when the value is exactly true.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "intro... | null |
OpenGeoscience__geojs__1100 | OpenGeoscience/geojs | 1,100 | defect | a43e385f85cb6882090ed91f7bda29baf46a558b | 09f66a057922f8760288c75c599ff66360f5fe68 | feat: Allow sharing queues between tile layers. | Although you could sort of share the fetch queue between tile layers, it wouldn't really share properly without a custom needed function. This explicitly supports sharing a fetch queue between tile layers.
This allows, for instance, multiple layers that access the same server to have a single fetch queue so that th... | diff --git a/src/tile.js b/src/tile.js
index 531d003082..99912225cc 100644
--- a/src/tile.js
+++ b/src/tile.js
@@ -17,10 +17,10 @@ var $ = require('jquery');
/**
* This class defines the raw interface for a "tile" on a map. A tile is
- * defined as a rectangular section of a map. The base implementation
- * is i... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new queue setter's layer-bookkeeping logic needs an explanatory comment, as the reviewer could only partly tell why it is necessary.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
OpenGeoscience__geojs__177 | OpenGeoscience/geojs | 177 | defect | 10a565971e385ff45eb4a192e5144bd36d2a1da0 | 0924070cd245b04091de5b0e90c5f9e869473c41 | Fix gl plane feature | Fixed GL plane feature not respecting the GCS along with some other fixes.
| diff --git a/CMakeLists.txt b/CMakeLists.txt
index 667e368f45..885f77977d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -470,7 +470,7 @@ if(BUILD_TESTING)
# JSLint tests.
if(${JS_HINT_TESTS})
-
+
add_custom_target(
jshint-binary
ALL
diff --git a/examples/glFeatureDelete.html b/examp... | 3 | 3 | 1 | [{"id": "G0", "claim": "The modulo-based length checks in handleArrayCoordinates misdetect coordinate shape — an even-length flat array of (x,y,z) triplets passes the % 2 test, and the length alone cannot express the caller's intent — so the checks should use exact length equality plus an explicit component count inste... | null |
OpenGeoscience__geojs__212 | OpenGeoscience/geojs | 212 | defect | 5759490372157c1cade15b97d5a6b552e314f5ae | 1a0deafea13b6907d2296252f362268d2439976c | Fix json reader for lines | It may not provide a perfect solution but it works for our sample demo app.
| diff --git a/src/core/jsonReader.js b/src/core/jsonReader.js
index 4c18b28798..dea67f56c8 100644
--- a/src/core/jsonReader.js
+++ b/src/core/jsonReader.js
@@ -23,7 +23,7 @@ geo.jsonReader = function (arg) {
var m_this = this, m_style = arg.style || {};
geo.fileReader.call(this, arg);
-
+
this.canRead = fun... | 2 | 1 | 1 | [{"id": "G0", "claim": "The md5 file for the sample data used by the new d3 geojson test needs to be added at testing/test-data.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The naming in the new test (e.g. the generic 'sample.json' data it loads) cou... | null |
OpenGeoscience__geojs__231 | OpenGeoscience/geojs | 231 | defect | 0bd3189e3d848c9471396de5d1697769b0185f2d | 9ca53090f80c4197eac3775bfa18e6abe7e0973d | Widget infrastructure and zoom slider | See [here](http://opengeoscience.github.io/geojs/examples/ui.html) to test it out. The style is the best my meager graphic design skills could come up with. I would be happy to hear ideas about how to improve it.
For now, the slider is not enabled by default. To add the slider:
``` javascript
map.createLayer('ui')... | diff --git a/Gruntfile.js b/Gruntfile.js
index 64d476daed..15655b728f 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -31,7 +31,8 @@ module.exports = function (grunt) {
util: moduleFiles('geo.util'),
core: moduleFiles('geo.core'),
gl: moduleFiles('geo.gl'),
- d3: moduleFiles('geo.d3')
+ d3: moduleF... | 5 | 4 | 1 | [{"id": "G0", "claim": "The fuzzy backlight effect behind the slider is confusing to the eye and leaves a negative afterimage when the pointer moves away, so it should be removed for a clean, crisp look.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The... | null |
OpenGeoscience__geojs__428 | OpenGeoscience/geojs | 428 | defect | c750256d9b9384adcfe43500776564dc50412526 | c8240e57a0e21d9069dc7736f69c66d46146bcb4 | Add a wrapLongitude option to the contourFeature. | I am defaulting this to true, such that if stride positioning is used (x0, y0, dx, dy), if the data spans 180 degrees (plus or minus), it will be wrapped around so that part of the contour is at negative longitude and part is at positive longitude. If the grid appears to span 360 degrees, join the ends (but only if wr... | diff --git a/src/core/contourFeature.js b/src/core/contourFeature.js
index 9ac8e9341e..acf5b67ba5 100644
--- a/src/core/contourFeature.js
+++ b/src/core/contourFeature.js
@@ -173,10 +173,14 @@ geo.contourFeature = function (arg) {
rangeValues = contour.get('rangeValues')(),
valueFunc = m_this.style.ge... | 3 | 3 | 0 | [{"id": "G0", "claim": "The wrapping logic should be a general function reusable across the plane, graph, contour, and polygon features.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The wrapLongitude option documentation misspells \"degrees\" as \"dgre... | null |
OpenGeoscience__geojs__451 | OpenGeoscience/geojs | 451 | defect | 024895672083d9302c73bb16e47c6159778604a6 | 0c72153dbd0286f504fd89dc36aa4b3cd34e622e | Add the ability to control the display order of layers | The does the simplest possible thing (changing the `z-index` property). Leaflet has a similar interface for layer order.
| diff --git a/src/core/layer.js b/src/core/layer.js
index 99dbe1ff23..569766ff81 100644
--- a/src/core/layer.js
+++ b/src/core/layer.js
@@ -4,11 +4,13 @@
* @extends geo.sceneObject
* @param {Object?} arg An options argument
* @param {string} arg.attribution An attribution string to display
+ * @param {number} arg.... | 4 | 2 | 0 | [{"id": "G0", "claim": "The API should give users a way to control layer display order (e.g. moveToTop/moveToBottom, or a generic moveUp(n)/moveDown(n)) instead of making them set raw z-index values directly.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":... | null |
OpenGeoscience__geojs__524 | OpenGeoscience/geojs | 524 | defect | 58871493dae2157efcfcce100f6e54b7ac99ea56 | 2695e2188813faeb14c61123edabaa15e1b29c27 | Iss311 add more marker styles | New styles are 'point', 'wedge', and 'bar'. These styles are set using the style properties 'originStyle' and 'endStyle'. I've also made it so that for a set of vectors in a Vector feature, there can only be two marker styles, but the marker DOM elements are no longer related to the number of data points in the vector ... | diff --git a/examples/vectors/example.json b/examples/vectors/example.json
new file mode 100644
index 0000000000..1f112810fc
--- /dev/null
+++ b/examples/vectors/example.json
@@ -0,0 +1,9 @@
+{
+ "path": "vectors",
+ "title": "Vectors",
+ "exampleCss": ["main.css"],
+ "exampleJs": ["main.js"],
+ "about": {
+ "t... | 8 | 4 | 2 | [{"id": "G0", "claim": "Giving each data point its own markers will lead to performance issues, especially for the webgl implementation, so the refactor may not be necessary.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new marker style value ... | null |
OpenGeoscience__geojs__535 | OpenGeoscience/geojs | 535 | defect | e3a918097f00ebb75fb36f54c226111bd7292efe | 5e9140a71bd419223915ebed10826316358a55a0 | Add canvas renderer | Still needs testing and opacity. Also, there is an issue with rendering order. I believe quad features need to be sorted so low res are rendered before high res tiles.
| diff --git a/Gruntfile.js b/Gruntfile.js
index d1006e1b41..1c4af96930 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -34,6 +34,7 @@ module.exports = function (grunt) {
util: moduleFiles('geo.util'),
core: moduleFiles('geo.core'),
gl: moduleFiles('geo.gl'),
+ canvas: moduleFiles('geo.canvas'),
d3... | 10 | 9 | 6 | [{"id": "G0", "claim": "The @returns JSDoc tag on the new canvas renderer constructor is a typo: it says {geo.gl.canvasRenderer} and should say {geo.canvas.canvasRenderer}.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new m_this.ccl_layer = ... | null |
OpenGeoscience__geojs__606 | OpenGeoscience/geojs | 606 | defect | fde443fffd4479c5a22ead74c9a0e5e85d2a6138 | d81cd0414f48f01743c0ffcde34a3123f5c74809 | Allow showing partial tiles on the edges of an image or map. | If the tileLayer tilesMaxBounds function is defined, some tiles may be cropped. Tile cropping is implemented in the gl, canvas, and null renderers (but not d3).
This fixes issue #544.
| diff --git a/examples/tiles/main.js b/examples/tiles/main.js
index 83c4922da3..dd452e31e6 100644
--- a/examples/tiles/main.js
+++ b/examples/tiles/main.js
@@ -167,6 +167,10 @@ $(function () {
y: Math.ceil(h / (layerParams.tileHeight || 256) / scale)
};
};
+ layerParams.tilesMaxBounds = function ... | 2 | 1 | 1 | [{"id": "G0", "claim": "The fragment shader should use discard instead of an early return to skip cropped fragments, since the return path leaves gl_FragColor unwritten.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The PR only crops tiles towards ... | null |
OpenGeoscience__geojs__616 | OpenGeoscience/geojs | 616 | defect | c15bceebef7ac1af76179e33f748a06e08896d30 | 079dcaaa876ab95fe0e730fa591135656d1dea52 | Add an annotation registry. | Let renderers be selected based on the annotations that will be used.
Also, there were a bunch of TODO statements asking to send a warning if items were re-registered. These have been addressed.
| diff --git a/examples/annotations/main.js b/examples/annotations/main.js
index 4b9a900dc1..655d39dde6 100644
--- a/examples/annotations/main.js
+++ b/examples/annotations/main.js
@@ -46,7 +46,7 @@ $(function () {
// create an annotation layer
layer = map.createLayer('annotation', {
renderer: query.renderer ?... | 1 | 1 | 0 | [{"id": "G0", "claim": "The feature keys passed to registerAnnotation are not visible anywhere else, so a visible list of them should be created (e.g. at the top) so callers can say something like annotation.point: true.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
OpenGeoscience__geojs__635 | OpenGeoscience/geojs | 635 | defect | 7a90503e348c3bf13a3eac5588c853a8682ccbca | 736016665f89fc1bd5de9d43e44f63309c116c60 | Report where in a quad a point is located. | When a point search is performed on a quad feature, in addition to determining if the point is in a quad, determine where it is within the quad.
| diff --git a/src/feature.js b/src/feature.js
index 6c76fa8de7..9c96636e03 100644
--- a/src/feature.js
+++ b/src/feature.js
@@ -138,12 +138,13 @@ var feature = function (arg) {
var mouse = m_this.layer().map().interactor().mouse(),
data = m_this.data(),
over = m_this.pointSearch(mouse.geo),
- ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Some explanatory comments should be added to the new point-in-quad coordbasis logic in src/quadFeature.js.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
OpenGeoscience__geojs__664 | OpenGeoscience/geojs | 664 | defect | 7ca9c4b94f6a204030dd994d55a40dc56c592820 | dd6da796ff06ac87a7a8958c178f45665f42f1b6 | Improve some errors and some coverage of map.js. | Throw errors, not strings.
Increase tests for the map class.
The map.fileReader function was documented in the geoJSON example as taking a fileReader instance, but it actually took a string and called createFileReader. This function now can take either and has tests.
Change where coverage reports are written ... | diff --git a/karma-cov.conf.js b/karma-cov.conf.js
index 35f525ee14..8ce9b22fee 100644
--- a/karma-cov.conf.js
+++ b/karma-cov.conf.js
@@ -10,16 +10,27 @@ function browser(b) {
return b.toLowerCase().split(/[ /-]/)[0];
}
+function subdir_name(b) {
+ var subdir = browser(b);
+ if (process.env.GEOJS_TEST_CASE) {
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The regex added in subdir_name in karma-cov.conf.js should have a comment describing what it does.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
OpenGeoscience__geojs__665 | OpenGeoscience/geojs | 665 | defect | edebe10ee1a229751e43bf03d05bdaf5e3519bbb | 3860594ec4dcf2eb2807df8d17714dd6c0a38e96 | Add a map.screenshot() function. | This returns either a data url or an HTMLCanvasElement.
You do not need to preserve drawing buffers for this to work -- that doesn't alway work in Chrome in any case, so WebGL layers are rerendered as part of the screenshot process.
This needs testing. | diff --git a/src/map.js b/src/map.js
index 8889d3c15e..fe78a64b3c 100644
--- a/src/map.js
+++ b/src/map.js
@@ -899,7 +899,11 @@ var map = function (arg) {
throw new Error('Map require DIV node');
}
+ if (m_node.data('data-geojs-map') && $.isFunction(m_node.data('data-geojs-map').exit)) {
+ m_node.... | 2 | 1 | 1 | [{"id": "G0", "claim": "The screenshot compositing needs to take the layer's opacity, which is set on the layer's containing div, into account; the initial implementation forgot to do that.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "It would be ... | null |
OpenGeoscience__geojs__687 | OpenGeoscience/geojs | 687 | defect | ac3de629d8ce9a3d3cc8501834dbcdb418f7d376 | 0530e3621b4682a43d26bfc93a4cf321da667b71 | Update styles from arrays. | This allows a convenient way to animate across styles, and also provides a way where, if appropriate, rerendering can be optimized based on just what has changed.
Per-vertex styles can be set on lines and polygons by passing an array of arrays.
Some styles on points and contours were being queried via functions o... | diff --git a/examples/animation/example.json b/examples/animation/example.json
new file mode 100644
index 0000000000..f0b5164922
--- /dev/null
+++ b/examples/animation/example.json
@@ -0,0 +1,9 @@
+{
+ "path": "animation",
+ "title": "Animate Features",
+ "exampleCss": ["main.css"],
+ "exampleJs": ["main.js"],
+ "... | 3 | 2 | 0 | [{"id": "G0", "claim": "The public API documentation for updateStyleFromArray references the private _subcomponentStyles API, which could confuse users.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The color fallback defaults defined inline in u... | null |
OpenGeoscience__geojs__702 | OpenGeoscience/geojs | 702 | defect | e57e648621d3f170a468adb3f693978e39a4ce53 | e39c16127213ca8b4fa5013406c69a8130511f60 | Remove the map.resize method. | We marked the `map.resize` method as deprecated in version 0.6 (commit 27e6b36). We completely ignore the `x` and `y` coordinates passed to it. This change removes the resize and the internal `m_x` and `m_y` variables, moving the necessary functionality to the size method.
This also modifies the resize event by re... | diff --git a/src/event.js b/src/event.js
index 40706a07a3..45e719ea99 100644
--- a/src/event.js
+++ b/src/event.js
@@ -109,8 +109,6 @@ geo_event.pan = 'geo_pan';
* @event geo.event.resize
* @type {object}
* @property {object} target The map that was resized.
- * @property {number} x The new horizontal offset in p... | 2 | 1 | 0 | [{"id": "G0", "claim": "The deprecated map.resize method ignores its x and y parameters, so we should either remove the function or address the parameter handling.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The new code that stores and restore... | null |
OpenGeoscience__geojs__723 | OpenGeoscience/geojs | 723 | defect | 6798308408a6f6a63a31b2afa40c2dafaf9babe9 | 5fa53b7034a5167a73662b9f30472b3051638cfd | Add isObject utility function. Use Array.isArray. | Fix jsdocs on all touched files. Add tests.
Prior to this, we were using `instanceof Object` and `instanceof Array`. For testing the upcoming tutorials branch, it is handy to be able to pass an object created in a parent window to a map running in an iframe. However, `<parent object> instanceof Object` returned f... | diff --git a/src/gl/polygonFeature.js b/src/gl/polygonFeature.js
index 3d156f9942..14dd4d5194 100644
--- a/src/gl/polygonFeature.js
+++ b/src/gl/polygonFeature.js
@@ -3,10 +3,12 @@ var registerFeature = require('../registry').registerFeature;
var polygonFeature = require('../polygonFeature');
/**
- * Create a new i... | 2 | 1 | 0 | [{"id": "G0", "claim": "The PR should confirm that all instanceof Object/Array occurrences were searched for and replaced across the codebase.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The long single-line condition in transform.js could be wrapp... | null |
OpenGeoscience__geojs__738 | OpenGeoscience/geojs | 738 | defect | cb4ea546693d143679738e4c4dd2facc0149d6da | 86c6590c8f9e13ac015c7f4e6e412dde33c2ec0f | Improve jsdoc documentation. | This fixes the jsdoc linting errors for several files and improves the auto-generated documentation. | diff --git a/src/camera.js b/src/camera.js
index 53528b9e5a..4afb0aac72 100644
--- a/src/camera.js
+++ b/src/camera.js
@@ -310,8 +310,10 @@
Object.defineProperty(this, 'viewport', {
get: function () {
return {
- width: this._viewport.width, height: this._viewport.height,
- left: t... | 4 | 4 | 0 | [{"id": "G0", "claim": "The public doc for the exposed camera view function should note the units of the size and center parameters and carry the explanation of what the function does, which the private function has but the generated API docs currently lack.", "category": "documentation", "verdict": "supported", "prior... | null |
OpenGeoscience__geojs__761 | OpenGeoscience/geojs | 761 | defect | 3d262dae72dbcda3a2db5f7b56eb8bd85c31b115 | bff9e1aa980758436c7643aaf6f0058610e3bec6 | Use the average perimeter as the center of a polygon or line. | When a polygon has many points near each other in one area and few along the opposite part of the perimeter, this produces a nicer center. | diff --git a/src/annotation.js b/src/annotation.js
index 0cf9e0b16c..2ead4bbcb1 100644
--- a/src/annotation.js
+++ b/src/annotation.js
@@ -137,20 +137,7 @@ var annotation = function (type, args) {
* or `undefined` if no such position exists.
*/
this._labelPosition = function () {
- var coor = this._coo... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment on the new centerFromPerimeter function should describe, in words, the math that the code performs.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
OpenGeoscience__geojs__834 | OpenGeoscience/geojs | 834 | defect | 05b534b92e03cd3ca7d182b303a86000df91d3f5 | e8151a46ca2b02247e062d5b084c20011aaf9080 | Add a parameter to the text feature to limit what gets rendered. | If specified, this skips rendering text that is outside of the current viewport by a specified distance. If you have very large text or text with offsets, this could fail to render the text. However, in well-formed cases, this can skip rendering text that would not be visible in any case. | diff --git a/src/canvas/textFeature.js b/src/canvas/textFeature.js
index e85930182c..dd0aeeda3a 100644
--- a/src/canvas/textFeature.js
+++ b/src/canvas/textFeature.js
@@ -99,11 +99,13 @@ var canvas_textFeature = function (arg) {
this._renderOnCanvas = function (context2d, map) {
var data = m_this.data(),
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The name `renderedZone` does not truly reflect the intention; the reviewer asks to rename it to something like `renderThreshold` or `viewportThreshold`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
OpenHFT__Chronicle-Bytes__233 | OpenHFT/Chronicle-Bytes | 233 | defect | e4af694a5ee17904ac789674e0732d65a05a0c2f | 6aed84f456a69bb99f6357b8d9f1026ca1ccb642 | Enable JU5 while retaining backwards compatibility with JU4 | This PR introduces the ability to write new tests in either JUnit4 or JUnit5, whichever is deemed most favorable for the issue at hand.
Old JUnit4 test can be migrated to JUnit5 now, later or never.
As @nicktindall indicated, there is a "vintage" dependency that makes this process trivial.
| diff --git a/pom.xml b/pom.xml
index 84153a2d22e..b5ba6f566f4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -77,15 +77,17 @@
</dependency>
<!-- test dependencies -->
+
<dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
+ <groupId>org.junit.jupi... | 3 | 1 | 0 | [{"id": "G0", "claim": "The changes to BytesTestCommon may be unnecessary; perhaps only the change to pom.xml is required.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new JUnit dependency version numbers should be added to third-party-bom now and ... | null |
OpenHFT__Chronicle-Bytes__269 | OpenHFT/Chronicle-Bytes | 269 | defect | f665c2b156aa414b4daa0e4a1f6ca81b2e7a2254 | 93597c30365988f92c6238bd2fb525cd9bf4cbff | Issue/266 | This PR adds more than 600 tests and fixes hundreds of issues related to closed resources. | diff --git a/pom.xml b/pom.xml
index 42ee7f01624..9f01fa17dc1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -26,7 +26,7 @@
</parent>
<artifactId>chronicle-bytes</artifactId>
- <version>2.22ea11-SNAPSHOT</version>
+ <version>2.22ea12-SNAPSHOT</version>
<name>OpenHFT/Chronicle-Bytes</name>
<descriptio... | 2 | 1 | 0 | [{"id": "G0", "claim": "RobAustin asks why the JavaDoc example was changed to wrap the annotation as {@literal @}FieldGroup(\"p\") with braces.", "category": "documentation", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "JerryShea asks why the pom version was changed from 2.22ea... | null |
OpenHFT__Chronicle-Bytes__270 | OpenHFT/Chronicle-Bytes | 270 | defect | f665c2b156aa414b4daa0e4a1f6ca81b2e7a2254 | d19f891367f20dcf605e7e4dd9ef8725d9737710 | Issue/268 | Expose an internal compare method and add doc and tests | diff --git a/pom.xml b/pom.xml
index 42ee7f01624..9f01fa17dc1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -26,7 +26,7 @@
</parent>
<artifactId>chronicle-bytes</artifactId>
- <version>2.22ea11-SNAPSHOT</version>
+ <version>2.22ea12-SNAPSHOT</version>
<name>OpenHFT/Chronicle-Bytes</name>
<descriptio... | 5 | 3 | 0 | [{"id": "G0", "claim": "The empty `//` comment line inside BytesInitialInfo is unexplained and should not be there.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The test should use a static import for NamedConsumer rather than qualifying each ... | null |
OpenHFT__Chronicle-Bytes__295 | OpenHFT/Chronicle-Bytes | 295 | defect | 9b109583985663c11f320d014fb6de0d6a125e9d | 3bba0ddbd4b3aa5f7e6fe213e7d924a53945f7b0 | Issue/293 Hoist out boundary checking | This PR introduces a concept of packet private `UncheckedRandomDataInput` that, in turn, allows for hoisting out boundary checks from the inner loop.
Two methods are using this concept in this pr: `BytesInternal::contentEqual` and `BytesInternal::writeFully`. These utility methods are used by several other methods.... | diff --git a/microbenchmarks/src/main/java/net/openhft/chronicle/bytes/microbenchmarks/jmh/ElasticBenchmarkRunner.java b/microbenchmarks/src/main/java/net/openhft/chronicle/bytes/microbenchmarks/jmh/ElasticBenchmarkRunner.java
new file mode 100644
index 00000000000..0e39ad58224
--- /dev/null
+++ b/microbenchmarks/src/m... | 11 | 5 | 3 | [{"id": "G0", "claim": "The depgraph-maven-plugin added to pom.xml should be moved to the third-party BOM (or otherwise not live in this pom).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "BytesInternal.contentEqual in AbstractBytes.equals coul... | null |
OpenHFT__Chronicle-Bytes__301 | OpenHFT/Chronicle-Bytes | 301 | defect | 95b70e00d90bd6b8993379e8b7aa880efdeb51d9 | 777489d70237b4979059f61320ea3773704a6fe2 | Take readPosition into account when copying to readLimit | fixes #300 | diff --git a/src/main/java/net/openhft/chronicle/bytes/Bytes.java b/src/main/java/net/openhft/chronicle/bytes/Bytes.java
index cc7afc98e1b..17c406f590d 100644
--- a/src/main/java/net/openhft/chronicle/bytes/Bytes.java
+++ b/src/main/java/net/openhft/chronicle/bytes/Bytes.java
@@ -913,7 +913,7 @@ default long realCapaci... | 2 | 1 | 0 | [{"id": "G0", "claim": "The readPosition() call could be moved out of the inner loop of copyTo(byte[]) instead of being evaluated on every iteration.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new testCopyAfterSkip assertion is confusing: si... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.