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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
RoaringBitmap__RoaringBitmap__519 | RoaringBitmap/RoaringBitmap | 519 | defect | 8e497e23adbc3575ea5e241c46cebb53cc98bd7b | bed4da7c2ade308cb9b02fbc3e8cd6d5b4e59eae | range bitmap | This is a data structure for range indexes (index things like time, normalised floating point numbers etc.).
Example usage:
```java
// index times before 13:00 UTC tomorrow
var appender = RangeBitmap.appender(LocalDateTime.of(2021, 9, 3, 13, 0, 0, 0).toInstant(ZoneOffset.UTC).getEpochSecond());
timestamps.f... | diff --git a/RoaringBitmap/src/main/java/org/roaringbitmap/RangeBitmap.java b/RoaringBitmap/src/main/java/org/roaringbitmap/RangeBitmap.java
new file mode 100644
index 000000000..0cbb5c02c
--- /dev/null
+++ b/RoaringBitmap/src/main/java/org/roaringbitmap/RangeBitmap.java
@@ -0,0 +1,478 @@
+package org.roaringbitmap;
+
... | 2 | 1 | 0 | [{"id": "G0", "claim": "The pull request introduces one new LGTM alert, for an implicit narrowing conversion in a compound assignment.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add some documentation (to the README or another file) describing R... | null |
RoaringBitmap__RoaringBitmap__57 | RoaringBitmap/RoaringBitmap | 57 | defect | 46de837df9036263c9482adb30388006df76fe67 | 0f134bdec61fcbf89980d561b509c8ceea9638ee | #36 andCardinality methods added to the Containers avoiding materialization | Hi this is the code to do the andCardinality without materializing the Containers. Which should be even faster. Again my apologies for messing up the code formatting. Hope this is useful.Before pulling could you have a look at the test cases to see if they make sense. I pulled them out of the or tests and added all aga... | diff --git a/src/main/java/org/roaringbitmap/ArrayContainer.java b/src/main/java/org/roaringbitmap/ArrayContainer.java
index 3dd3f4be9..5e9b1bffe 100644
--- a/src/main/java/org/roaringbitmap/ArrayContainer.java
+++ b/src/main/java/org/roaringbitmap/ArrayContainer.java
@@ -121,11 +121,26 @@ public ArrayContainer and(fin... | 5 | 5 | 1 | [{"id": "G0", "claim": "In BitmapContainer.andCardinality(final BitmapContainer value2), the if/else should be dropped and `newCardinality` returned directly.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In the added Container.andCardinality(C... | null |
RoaringBitmap__RoaringBitmap__639 | RoaringBitmap/RoaringBitmap | 639 | defect | 6040f823d2a561438cce185580608eaf6eb6b64b | 512ea65696ed1083c8abc4fb7cd0730d36b2d7bb | More performant LongUtils.compareHigh() | This issue was originally about optimized loop within `LongUtils.compareTo()` method as it ends with optimized outer method caller `LongUtils.compareHigh()` or its replacement by more simple and more performant `LongUtils.equalsHigh()` where possible. | diff --git a/RoaringBitmap/src/main/java/org/roaringbitmap/longlong/LongUtils.java b/RoaringBitmap/src/main/java/org/roaringbitmap/longlong/LongUtils.java
index 7de7234af..79d684938 100644
--- a/RoaringBitmap/src/main/java/org/roaringbitmap/longlong/LongUtils.java
+++ b/RoaringBitmap/src/main/java/org/roaringbitmap/lon... | 2 | 2 | 1 | [{"id": "G0", "claim": "The a == b reference-equality short-circuits in compareHigh and equalsHigh are unnecessary and a wasted effort when a == b is uncommon.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G4", "claim": "The pull request fails the project's tests... | null |
RoaringBitmap__RoaringBitmap__650 | RoaringBitmap/RoaringBitmap | 650 | defect | 2669c4f5a49ee7da5ff4cd70e18ee5520018d6a5 | 7fd4ced4ad78ad9e15a49786cfd233d0a3cb00b1 | Optimisation: Add zero-garbage deserialiser for ByteBuffer to RoaringBitmap | ### SUMMARY
- There is no direct way to convert a byte array or a ByteBuffer (representing an uncompressed bitmap) to a RoaringBitmap
- The best way is to create a BitSet first and then use: BitSetUtil.bitmapOf(bitset)
- This creates unnecessary heap garbage as, essentially, a full copy of the byte array is created... | diff --git a/RoaringBitmap/src/main/java/org/roaringbitmap/BitSetUtil.java b/RoaringBitmap/src/main/java/org/roaringbitmap/BitSetUtil.java
index acbce7695..e87b67146 100644
--- a/RoaringBitmap/src/main/java/org/roaringbitmap/BitSetUtil.java
+++ b/RoaringBitmap/src/main/java/org/roaringbitmap/BitSetUtil.java
@@ -1,7 +1,... | 5 | 4 | 1 | [{"id": "G0", "claim": "The bitmap-container copy in containerOf should copy the range (from, to) rather than (from, from + BLOCK_LENGTH), which over-copies and forces the thread-local block buffer to be zeroed after every use.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existin... | null |
RoaringBitmap__RoaringBitmap__665 | RoaringBitmap/RoaringBitmap | 665 | defect | 19acf34cc5871da9202240f56af4688b53b781aa | e62bf0eddb1b198024197a8f4ac0ecb2a31d9f0b | AdvanceIfNeeded on bitmap container optimized | ### SUMMARY
Action `advanceIfNeeded()` on bitmap container was not optimal as noted in source code - too complicated bit-wise iterating within one long value, where given limit value belongs to. Above that, when this long value (64-bit bitmap) is not zero and no value under / above limit was found, iterating is done b... | diff --git a/RoaringBitmap/src/main/java/org/roaringbitmap/BitmapContainer.java b/RoaringBitmap/src/main/java/org/roaringbitmap/BitmapContainer.java
index 9a114e1e2..e20a4711a 100644
--- a/RoaringBitmap/src/main/java/org/roaringbitmap/BitmapContainer.java
+++ b/RoaringBitmap/src/main/java/org/roaringbitmap/BitmapContai... | 1 | 1 | 1 | [{"id": "G0", "claim": "The benchmark's Math.abs(source.nextInt()) computes an incorrect absolute value for a signed random integer and is unnecessary; replace it with a bounded nextInt(int) call such as next = source.nextInt(1000000), which yields positive in-range values.", "category": "correctness", "verdict": "supp... | null |
RoaringBitmap__RoaringBitmap__686 | RoaringBitmap/RoaringBitmap | 686 | defect | 28482341ca11a62b24bd8b30a8889aa87f266289 | 190add7c48591946ba15e25e9c9163d78f7a8e44 | Optimized creation of bitmap by range | ### SUMMARY
Optimized creation of bitmap by range via factory method `Util.bitmapOf()`. There is a trade-off between performance and code is duplication, but it can be ignored as piece of duplicated code is already duplicated several times in class `RoaringBitmap`.
| Benchmark | (offset) | (bytes) | Mode | Cnt | ... | diff --git a/RoaringBitmap/src/main/java/org/roaringbitmap/RoaringBitmap.java b/RoaringBitmap/src/main/java/org/roaringbitmap/RoaringBitmap.java
index 9ae064da1..d615d5017 100644
--- a/RoaringBitmap/src/main/java/org/roaringbitmap/RoaringBitmap.java
+++ b/RoaringBitmap/src/main/java/org/roaringbitmap/RoaringBitmap.java... | 2 | 1 | 1 | [{"id": "G0", "claim": "The new benchmark may be misleading, and the author should explain why the optimized bitmapOfRange is actually faster than simply inlining the original add(min, max) code.", "category": "testing", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The same bit... | null |
RoaringBitmap__RoaringBitmap__689 | RoaringBitmap/RoaringBitmap | 689 | defect | 8dd4a5ec22531704ab834db66af89804c17fe37e | ea7f501259f7c60e777208145cd92f6674d4ea08 | unit test to expose batchiterator.advanceIfNeeded bug and fix | ### SUMMARY
Added unit test to expose batchiterator.advanceIfNeeded bug
### Automated Checks
- [x] I have run `./gradlew test` and made sure that my PR does not break any unit test.
- [x] I have run `./gradlew checkstyleMain` or the equivalent and corrected the formatting warnings reported.
| diff --git a/RoaringBitmap/src/main/java/org/roaringbitmap/buffer/RunBatchIterator.java b/RoaringBitmap/src/main/java/org/roaringbitmap/buffer/RunBatchIterator.java
index 1ba04f7ea..8e407c17d 100644
--- a/RoaringBitmap/src/main/java/org/roaringbitmap/buffer/RunBatchIterator.java
+++ b/RoaringBitmap/src/main/java/org/ro... | 2 | 2 | 0 | [{"id": "G0", "claim": "Move the `int offset = target - runStart;` declaration down below line 69 so it sits closer to where it is used.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Align the indentation of the bitmap construction and runOptim... | null |
RoaringBitmap__RoaringBitmap__713 | RoaringBitmap/RoaringBitmap | 713 | defect | dda04be1c1ff514b94875499476825daba4ed3dc | fbce977fa5f79b68aaf4438d8665a7a4fd120c6f | RoaringBitmap to BitSet/long[]/byte[] | ### SUMMARY
Add methods to allow direct conversion of a RoaringBitmap to a BitSet. This turned out to not be as simple as it first appeared, and the existing tests were a godsend.
This performs quite well too, I see over 5GB/s on my M1 MacBook Pro for 86,884 ops/s.
### Automated Checks
- [ x ] I have run `.... | diff --git a/RoaringBitmap/src/main/java/org/roaringbitmap/BitSetUtil.java b/RoaringBitmap/src/main/java/org/roaringbitmap/BitSetUtil.java
index 4d59b2bb4..12c59163b 100644
--- a/RoaringBitmap/src/main/java/org/roaringbitmap/BitSetUtil.java
+++ b/RoaringBitmap/src/main/java/org/roaringbitmap/BitSetUtil.java
@@ -14,7 +1... | 3 | 3 | 2 | [{"id": "G0", "claim": "A specialised implementation should be added so that converting a RoaringBitmap to a BitSet avoids the intermediate array allocation and copy (halving allocation pressure, e.g. via a presized BitSet updated one bit at a time).", "category": "performance", "verdict": "supported", "priority": "P2"... | null |
RoaringBitmap__RoaringBitmap__716 | RoaringBitmap/RoaringBitmap | 716 | defect | 9079e41f913842d4ce53eec4f36c0c14e41dd587 | ae1b08bf2c9996c511864a78822de2f753cd4b6c | Avoid intermediate arrays for other container types | ### SUMMARY
Another quick follow up to #713 to avoid `toBitmapContainer` as this has shown up on hot paths for us too.
### Automated Checks
- [x] I have run `./gradlew test` and made sure that my PR does not break any unit test.
- [x] I have run `./gradlew checkstyleMain` or the equivalent and corrected the f... | diff --git a/RoaringBitmap/src/main/java/org/roaringbitmap/ArrayContainer.java b/RoaringBitmap/src/main/java/org/roaringbitmap/ArrayContainer.java
index 0fe53625e..48d8605d1 100644
--- a/RoaringBitmap/src/main/java/org/roaringbitmap/ArrayContainer.java
+++ b/RoaringBitmap/src/main/java/org/roaringbitmap/ArrayContainer.... | 4 | 3 | 0 | [{"id": "G0", "claim": "The replacement of loadData with copyBitmapTo in ArrayContainer.toBitmapContainer is unjustified and should be reverted so loadData is kept in this PR, with any removal of loadData deferred to a separate PR.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}... | null |
RoaringBitmap__RoaringBitmap__720 | RoaringBitmap/RoaringBitmap | 720 | defect | 939748f6864deaace54e724f28b6b484dd56f03b | bde52ca19bd26fc3dec991e01d149d86dd1d8af1 | fix: formalize edge behaviour for nextAbsentValue and previousAbsentValue | The edge cases for nextAbsentValue and previousAbsentValue were undefined.
| diff --git a/RoaringBitmap/src/main/java/org/roaringbitmap/ImmutableBitmapDataProvider.java b/RoaringBitmap/src/main/java/org/roaringbitmap/ImmutableBitmapDataProvider.java
index 2a7502138..a4b1488a4 100644
--- a/RoaringBitmap/src/main/java/org/roaringbitmap/ImmutableBitmapDataProvider.java
+++ b/RoaringBitmap/src/main... | 2 | 2 | 0 | [{"id": "G0", "claim": "The literal 4294967296L would be easier to read written as 0x100000000 or 1L << 32.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The contains(-1) guard inside the 2^32 branch is unnecessary and should be removed.", "cat... | null |
RoaringBitmap__RoaringBitmap__725 | RoaringBitmap/RoaringBitmap | 725 | defect | c112860f2f2e09bbbc28eb4fa2cac198714c7088 | 99c306c72415e8f27fab7dbac267aa07db0120ad | [feature] Add a BitSet implementation based on RoaringBitmap | ### SUMMARY
Add a `BitSet` implementation based on RoaringBitmap to make users could migrate `BitSet` to `RoaringBitmap` easier.
### Automated Checks
- [x] I have run `./gradlew test` and made sure that my PR does not break any unit test.
- [x] I have run `./gradlew checkstyleMain` or the equivalent and corre... | diff --git a/RoaringBitmap/src/main/java/org/roaringbitmap/RoaringBitSet.java b/RoaringBitmap/src/main/java/org/roaringbitmap/RoaringBitSet.java
new file mode 100644
index 000000000..a26d573b0
--- /dev/null
+++ b/RoaringBitmap/src/main/java/org/roaringbitmap/RoaringBitSet.java
@@ -0,0 +1,235 @@
+package org.roaringbitm... | 5 | 4 | 1 | [{"id": "G0", "claim": "equals() accepts a plain BitSet as equal to a RoaringBitSet while hashCode() returns the RoaringBitmap's hash, so a RoaringBitSet and an equal BitSet do not produce the same hashCode, breaking the equals/hashCode contract.", "category": "correctness", "verdict": "supported", "priority": "P1", "s... | null |
RoaringBitmap__RoaringBitmap__740 | RoaringBitmap/RoaringBitmap | 740 | defect | 88292e088cac97aa283794c1a6c205210bc8a2a8 | 16522409a925d8f37e9ccf8b1bc704f6183ae093 | Fix an issue that may cause RoaringBSI's fountSet to not work | Fix an issue that may cause RoaringBSI's fountSet to not work ##correctly when doing LE and GE comparisons.
### SUMMARY
- A small change to [RoaringBitmapSliceIndex.java](https://github.com/RoaringBitmap/RoaringBitmap/compare/master...iszhangpch:fix-bsi-compare-issue?expand=1#diff-d48ea435f24454253ec7b2478435a8be0... | diff --git a/bsi/src/main/java/org/roaringbitmap/bsi/RoaringBitmapSliceIndex.java b/bsi/src/main/java/org/roaringbitmap/bsi/RoaringBitmapSliceIndex.java
index 29ce0ce64..e6b55db2a 100644
--- a/bsi/src/main/java/org/roaringbitmap/bsi/RoaringBitmapSliceIndex.java
+++ b/bsi/src/main/java/org/roaringbitmap/bsi/RoaringBitma... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request provides no test verifying the LE/GE foundSet issue it fixes, so it cannot be merged as-is.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
RoaringBitmap__RoaringBitmap__747 | RoaringBitmap/RoaringBitmap | 747 | defect | 966c40e25c0cd2adb9bda115d6e28833f6e88633 | 91df89fd378349c55bc1c956a17a230518009b06 | fix issue 743 | fixes https://github.com/RoaringBitmap/RoaringBitmap/issues/743
| diff --git a/RoaringBitmap/src/main/java/org/roaringbitmap/longlong/HighLowContainer.java b/RoaringBitmap/src/main/java/org/roaringbitmap/longlong/HighLowContainer.java
index 5986d1a13..917f12414 100644
--- a/RoaringBitmap/src/main/java/org/roaringbitmap/longlong/HighLowContainer.java
+++ b/RoaringBitmap/src/main/java/... | 1 | 1 | 0 | [{"id": "G0", "claim": "The line `byteBuffer.position();` added in HighLowContainer.serialize is useless and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
RoaringBitmap__RoaringBitmap__761 | RoaringBitmap/RoaringBitmap | 761 | defect | ad4143a6782ab047dcde8b5c8cf7b20e0fdd7a4c | ebbad34321bfa0837adf67732925f7960697430e | fix the bsi topk bug | ### SUMMARY
According to the [Bit-sliced index arithmetic](https://dl.acm.org/doi/10.1145/376284.375669), the topk if n too many rows in F, turn off n bits from E in F.
### Automated Checks
- [ ] I have run `./gradlew test` and made sure that my PR does not break any unit test.
| diff --git a/bsi/src/main/java/org/roaringbitmap/bsi/buffer/BitSliceIndexBase.java b/bsi/src/main/java/org/roaringbitmap/bsi/buffer/BitSliceIndexBase.java
index b835fdc74..7ed9200bb 100644
--- a/bsi/src/main/java/org/roaringbitmap/bsi/buffer/BitSliceIndexBase.java
+++ b/bsi/src/main/java/org/roaringbitmap/bsi/buffer/Bi... | 2 | 1 | 0 | [{"id": "G0", "claim": "The tail of topK should be restructured to remove surplus entries from E directly when gCardinality < k (and skip E when gCardinality >= k) so the unnecessary OR operation is avoided when gCardinality matches the target k.", "category": "performance", "verdict": "opposed", "priority": "P2", "sco... | null |
RoaringBitmap__RoaringBitmap__780 | RoaringBitmap/RoaringBitmap | 780 | defect | 462a9035375ff68e759efe45070f27cd7c6f17b9 | c26f00aa1a9f3a6630e78699907ab21ba2485282 | Implement copy on write roaring bitmaps | **Copy-on-Write Implementation for Roaring Bitmap**
**Overview**
This document provides a comprehensive explanation of the copy-on-write (CoW) implementation for Roaring Bitmap, specifically addressing GitHub [issue #193.](https://github.com/RoaringBitmap/RoaringBitmap/issues/193) The implementation enable... | diff --git a/roaringbitmap/src/main/java/org/roaringbitmap/buffer/CopyOnWriteRoaringBitmap.java b/roaringbitmap/src/main/java/org/roaringbitmap/buffer/CopyOnWriteRoaringBitmap.java
new file mode 100644
index 000000000..bcea05999
--- /dev/null
+++ b/roaringbitmap/src/main/java/org/roaringbitmap/buffer/CopyOnWriteRoaring... | 2 | 1 | 0 | [{"id": "G0", "claim": "Code scanning flags that the enhanced-for loop variable 'int value' in the iteration tests is never read (two occurrences in testIterationAfterCopyOnWrite).", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The pull request ... | null |
RoaringBitmap__RoaringBitmap__784 | RoaringBitmap/RoaringBitmap | 784 | defect | a71bb24d7df138949658826c89b8c536744d6045 | 9ff3d7da9a32a17747a2229c485386092326536f | use some junit methods to report errors more verbosely | publish test results
### SUMMARY
- Describe your changes, including rationale and design decisions
report errors better in junit
publish junit results in CI
no functional chnages in this PR
there are a coupe of chnages
- using the junit APIs to gett a better failure message whenthere is an issue, an some ... | diff --git a/.github/workflows/java-all-versions.yml b/.github/workflows/java-all-versions.yml
index ecfa7471d..70e951c55 100644
--- a/.github/workflows/java-all-versions.yml
+++ b/.github/workflows/java-all-versions.yml
@@ -21,9 +21,41 @@ jobs:
run: ./gradlew assemble
- name: Test with Java 8
... | 2 | 2 | 1 | [{"id": "G0", "claim": "Code scanning alert 810: the compound assignment in the insert helper's for-loop update (b+=2 on a byte) performs an implicit narrowing conversion from int to byte that should be made explicit.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"i... | null |
RoaringBitmap__RoaringBitmap__786 | RoaringBitmap/RoaringBitmap | 786 | defect | a71bb24d7df138949658826c89b8c536744d6045 | 04fe661e582d379fbcd12dda325655ba9ac45e9a | [64 bit bitmaps) Split non-leaf - BranchNode from leaf nodes (to reduce memory footprint) |
### SUMMARY
- Trim some retained memory fom Node
- Move branch-specific methods to BranchNode
- replace checks for LEAF_NODE with instanceof checks make some leaf-node-specific code conditional
On all nodes - remove NodeType - its hardly used anyway
Leaf nodes comprise > 50% of all Node (I believe), and there ... | diff --git a/roaringbitmap/src/main/java/org/roaringbitmap/art/AbstractShuttle.java b/roaringbitmap/src/main/java/org/roaringbitmap/art/AbstractShuttle.java
index c76935181..4a09125f1 100644
--- a/roaringbitmap/src/main/java/org/roaringbitmap/art/AbstractShuttle.java
+++ b/roaringbitmap/src/main/java/org/roaringbitmap/... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add @Override annotations to the methods that override Node's methods (serializeHeader(DataOutput), serializeHeader(ByteBuffer) and serializeHeaderSizeInBytes in BranchNode, serializeHeader(DataOutput) and serializeHeader(ByteBuffer) in LeafNode).", "category": "maintainability", "verdict": "sup... | null |
RoaringBitmap__RoaringBitmap__790 | RoaringBitmap/RoaringBitmap | 790 | defect | ea3bcaa86786ee1a7bf7d15060d0d74a90058594 | aeb9116680ee7dbfc25aa41ef7257d9052bae592 | fix memory leak in Node4.remove | ### SUMMARY
Node4 has a memory leak. The last node references is nulled
so if you have a node containing (a,b,c,d)
and then you remove(0), and remove (2)
The leak is caused by the fist remove, but only becomes a leaf on the second one
the node contains ((b,c), but the child array is (b,c,null, d)
I had a quic... | diff --git a/roaringbitmap/src/main/java/org/roaringbitmap/art/LeafNode.java b/roaringbitmap/src/main/java/org/roaringbitmap/art/LeafNode.java
index 5388f3085..9e7c26a6f 100644
--- a/roaringbitmap/src/main/java/org/roaringbitmap/art/LeafNode.java
+++ b/roaringbitmap/src/main/java/org/roaringbitmap/art/LeafNode.java
@@ ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new LeafNode.toString() method overrides Object.toString and should have an @Override annotation added.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
RoaringBitmap__RoaringBitmap__793 | RoaringBitmap/RoaringBitmap | 793 | defect | ea3bcaa86786ee1a7bf7d15060d0d74a90058594 | f828ea256707999d9ba1d08520ae4d74bf90404f | remove allocations from lookups | ### SUMMARY
- Describe your changes, including rationale and design decisions
Remove the allocations in the lookup path (other than the `ContainerAndIndex`, which would be removed by removing the `HighLowContainer` and is subject of a separate discussion)
These were byte array allocations to represent a key path, wh... | diff --git a/roaringbitmap/src/main/java/org/roaringbitmap/art/Art.java b/roaringbitmap/src/main/java/org/roaringbitmap/art/Art.java
index f43d0f41c..c74a15180 100644
--- a/roaringbitmap/src/main/java/org/roaringbitmap/art/Art.java
+++ b/roaringbitmap/src/main/java/org/roaringbitmap/art/Art.java
@@ -1,6 +1,7 @@
packag... | 1 | 1 | 0 | [{"id": "G0", "claim": "highPartOnly should mask with 0xFF_FF_FF_FF_FF_FF_00_00L instead of 0xFFffFFffFFff0000L, to be consistent with the underscore-grouped hex style used in this file.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
RoaringBitmap__RoaringBitmap__825 | RoaringBitmap/RoaringBitmap | 825 | defect | 6ff0e464163cfa9dfd5b8a03ac336477aa9c2ff4 | 8681d24f483f1d4efab65ad222e4750f12d241bb | Change LeafNode clone to copy the properties instead of using `getKey()` constructor | ### SUMMARY
- Existing clone function uses the `getKey()` method which results in the cloned `LeafNode` having different properties to the original object.
- Our usage involves using the clone method and was resulting in test failures when objects were compared.
### Automated Checks
- [x] I have run `./gradlew ... | diff --git a/roaringbitmap/src/main/java/org/roaringbitmap/art/LeafNode.java b/roaringbitmap/src/main/java/org/roaringbitmap/art/LeafNode.java
index bc1872936..b0b8f7dbf 100644
--- a/roaringbitmap/src/main/java/org/roaringbitmap/art/LeafNode.java
+++ b/roaringbitmap/src/main/java/org/roaringbitmap/art/LeafNode.java
@@ ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The clone method should be simplified to `return new LeafNode(getKey() << 16, containerIdx);` instead of the field-by-field copy through a new private no-arg constructor, which lemire thinks adds too much code for naught.", "category": "maintainability", "verdict": "supported", "priority": "P2",... | null |
RoaringBitmap__RoaringBitmap__829 | RoaringBitmap/RoaringBitmap | 829 | defect | 408d6bfe8f48e825252d516bf914bcd0d19be5c8 | eb0afd9cb82b6c6bb4366d64e8943e47430b07fd | Fix minHigh, add synchronized on cache-writing | ### SUMMARY
Fixes https://github.com/RoaringBitmap/RoaringBitmap/issues/828
Improves https://github.com/RoaringBitmap/RoaringBitmap/issues/773 (though the fix is not 100% clean, it *just* much improve the situation).
### Automated Checks
- [x] I have run `./gradlew test` and made sure that my PR does not break ... | diff --git a/roaringbitmap/src/main/java/org/roaringbitmap/longlong/Roaring64NavigableMap.java b/roaringbitmap/src/main/java/org/roaringbitmap/longlong/Roaring64NavigableMap.java
index 2122760da..1c98f2c1e 100644
--- a/roaringbitmap/src/main/java/org/roaringbitmap/longlong/Roaring64NavigableMap.java
+++ b/roaringbitmap... | 1 | 1 | 0 | [{"id": "G0", "claim": "The loop conditions compare an int counter against wider long expressions (`nbRuns` and `taskMultiplicator * concurrency`), which the code-scanning bot flags as a narrow-vs-wide comparison in loop conditions.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introd... | null |
RoaringBitmap__roaring-rs__106 | RoaringBitmap/roaring-rs | 106 | defect | caefca63d581eefdbec1df84cc4da0e26bc0b29f | 0fe06ef4dd267b08c834e42f00dacabf828fdc47 | Modify the from_sorted_iter and append methods to return a Result | This PR fixes #103, which means that the `from_sorted_iter` and `append` methods of the `RoaringBit/Treemap` types now return a `Result`. The `Err` value corresponds to the number of values that we appended to the set until we found an erroneous value, it eases debugging.
These two methods were containing bugs in th... | diff --git a/benchmarks/benches/lib.rs b/benchmarks/benches/lib.rs
index 69cb254ec..e6b4e403b 100644
--- a/benchmarks/benches/lib.rs
+++ b/benchmarks/benches/lib.rs
@@ -355,7 +355,7 @@ fn successive_and(c: &mut Criterion) {
let mut bitmaps: Vec<_> = parsed_numbers
.into_iter()
- .map(|(_, r)| r.m... | 2 | 2 | 0 | [{"id": "G0", "claim": "The doc comments of from_sorted_iter and append (on both RoaringBitmap and RoaringTreemap) should be reworded to read \"The values of the iterator must be ordered and strictly greater than the greatest value in the set. If a value in the iterator doesn't satisfy this requirement, it is not added... | null |
RoaringBitmap__roaring-rs__125 | RoaringBitmap/roaring-rs | 125 | defect | 0abd985cb8a42615d71c51be9adea2bc3e11ee4f | 478361a8ff60363e3c71c47842483a976c2aae54 | Speed up bitmap iteration | A low hanging fruit I found:
Bitmap iteration currently tests every bit for each non-zero element
This PR skips runs of zeros by inspecting the least significant bit, which can be computed with one instruction on most architectures.
```
iter bitmap 1..10_000 time: [48.602 us 48.787 us 48.978 us] ... | diff --git a/benchmarks/benches/lib.rs b/benchmarks/benches/lib.rs
index 7cd6269bd..60d89198d 100644
--- a/benchmarks/benches/lib.rs
+++ b/benchmarks/benches/lib.rs
@@ -245,17 +245,52 @@ fn insert_range_bitmap(c: &mut Criterion) {
}
fn iter(c: &mut Criterion) {
- c.bench_function("iter", |b| {
+ c.bench_funct... | 3 | 3 | 1 | [{"id": "G0", "claim": "The pull request's code should be formatted with cargo fmt.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The CI failure should be fixed by using a recent (latest or nightly) version of cargo fmt.", "category": "correctn... | null |
RoaringBitmap__roaring-rs__145 | RoaringBitmap/roaring-rs | 145 | defect | 2281993b0414042e15871bc362e26d11ca8dfb95 | c398a22d27cd04812e1230fb45eb71c0ba2d36be | Add rank | Implement `rank(x)` which returns the number of set bits <= x
Fixes #134 | diff --git a/benchmarks/benches/lib.rs b/benchmarks/benches/lib.rs
index 732244eaa..307593db7 100644
--- a/benchmarks/benches/lib.rs
+++ b/benchmarks/benches/lib.rs
@@ -94,6 +94,37 @@ fn len(c: &mut Criterion) {
});
}
+fn rank(c: &mut Criterion) {
+ let files = self::datasets_paths::WIKILEAKS_NOQUOTES_SRT;
+... | 2 | 2 | 2 | [{"id": "G0", "claim": "CI fails because the rank benchmark overflows: it ranks `1 << i` (reaching `1 << u32::MAX`-range shifts) while testing powers of 2 instead of multiples of 100, so the shift must be dropped (and the benchmark length narrowed with try_into) to make the build pass.", "category": "correctness", "ver... | null |
RoaringBitmap__roaring-rs__170 | RoaringBitmap/roaring-rs | 170 | defect | 6d2490696d3998500f1e8d85dcee6b38bd010d55 | 5cdf93c32ef65f7fef0f79342d4420b0141f9da6 | Add select | Closes #135 | diff --git a/src/bitmap/inherent.rs b/src/bitmap/inherent.rs
index 52e54096e..aad59318b 100644
--- a/src/bitmap/inherent.rs
+++ b/src/bitmap/inherent.rs
@@ -390,6 +390,41 @@ impl RoaringBitmap {
Err(i) => self.containers[..i].iter().map(|c| c.len()).sum(),
}
}
+
+ /// Returns the nth integ... | 1 | 1 | 0 | [{"id": "G0", "claim": "In Store::select, match on `self` with direct bindings instead of `*self` with explicit `ref` bindings.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
RoaringBitmap__roaring-rs__237 | RoaringBitmap/roaring-rs | 237 | defect | 4ae38cae6f838d02b94ab53a89c8485f4f65d47c | 583e1795b6e8af2fd133838b9204be4f605c0802 | contains_range / range_cardinality functions | Fixes #235 | diff --git a/src/bitmap/container.rs b/src/bitmap/container.rs
index d260270b..2e61dc48 100644
--- a/src/bitmap/container.rs
+++ b/src/bitmap/container.rs
@@ -94,6 +94,14 @@ impl Container {
self.store.contains(index)
}
+ pub fn contains_range(&self, range: RangeInclusive<u16>) -> bool {
+ sel... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a quickcheck/proptest test that inserts a random range plus extra values before and after it and asserts the range is contained, and one that removes random values inside the range and asserts it is no longer contained.", "category": "testing", "verdict": "supported", "priority": "P1", "scop... | null |
RoaringBitmap__roaring-rs__240 | RoaringBitmap/roaring-rs | 240 | defect | 281ec363a984b6cbec0ad6e5d263e35aafac60d5 | 19547e037287fe8535b722475073542a5384fc43 | Introduce `insert_range` for the `Treemap` | This is a follow-up of #222, I cleaned it up before merging it into the main branch.
Closes #198 | diff --git a/benchmarks/benches/lib.rs b/benchmarks/benches/lib.rs
index d12d67b3..8bdf014a 100644
--- a/benchmarks/benches/lib.rs
+++ b/benchmarks/benches/lib.rs
@@ -8,7 +8,7 @@ use criterion::{
Throughput,
};
-use roaring::{MultiOps, RoaringBitmap};
+use roaring::{MultiOps, RoaringBitmap, RoaringTreemap};
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The doc comment of the newly added `RoaringTreemap::full` method says it creates an empty `RoaringTreemap` and should be changed to say it creates a full one.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
RoaringBitmap__roaring-rs__243 | RoaringBitmap/roaring-rs | 243 | defect | e093767953343200dfc939cfa4c0dfcc22209e53 | d600bb52f2380bcf73d207034b70518d9328be48 | More off-by-one errors in bitmap contains_range | The CRoaring code uses an exclusive u32 range for the implementaiton of
a bitset container's `contains_range` function.
Had to think a bit about the best way to make it work, if you can think of a prettier way to write any of it, let me know.
Fixes #238 | diff --git a/src/bitmap/store/bitmap_store.rs b/src/bitmap/store/bitmap_store.rs
index 76e121e2..65bc238b 100644
--- a/src/bitmap/store/bitmap_store.rs
+++ b/src/bitmap/store/bitmap_store.rs
@@ -192,8 +192,15 @@ impl BitmapStore {
let (start_i, start_bit) = (key(start), bit(start));
let (end_i, end_bi... | 1 | 1 | 0 | [{"id": "G0", "claim": "The refactor of the key/bit helpers (usize::from/u32::from casts and bit() returning u32) is not a necessary change and should be removed from this PR.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
RoaringBitmap__roaring-rs__248 | RoaringBitmap/roaring-rs | 248 | defect | 35c4dc9acbf844f73d9e7fb39c3218bc9cf8e817 | dc3de79e9453fd67134fbe6d95b15c36c2179f0f | Implement from for arrays | This is some convenience methods to allow things like `RoaringBitmap::from([10])` and `RoaringTreemap::from([1,2,3])`. | diff --git a/src/bitmap/iter.rs b/src/bitmap/iter.rs
index 36098729..350fca13 100644
--- a/src/bitmap/iter.rs
+++ b/src/bitmap/iter.rs
@@ -131,6 +131,25 @@ impl IntoIterator for RoaringBitmap {
}
}
+impl From<u32> for RoaringBitmap {
+ fn from(value: u32) -> RoaringBitmap {
+ let mut rb = RoaringBitma... | 3 | 3 | 1 | [{"id": "G0", "claim": "The array From impl should not sort (or special-case N == 0 / unwrap); it should just be RoaringBitmap::from_iter(arr.into_iter()).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR should also add the same two From impls for ... | null |
RoaringBitmap__roaring-rs__253 | RoaringBitmap/roaring-rs | 253 | defect | 516cd80fbaa7e352e9e26fa152a3864e422f9c2f | ad195572b0015f2e4cfc89f0c7391c5c8aa927ab | Add `remove_front` and `remove_back` method | #### What does this PR do?
- added remove the first `n` elements method and remove the last `n` elements method | diff --git a/src/bitmap/container.rs b/src/bitmap/container.rs
index e6d0cf84..2dec2de7 100644
--- a/src/bitmap/container.rs
+++ b/src/bitmap/container.rs
@@ -94,6 +94,37 @@ impl Container {
result
}
+ pub fn remove_first(&mut self, n: usize) {
+ match &self.store {
+ Store::Bitmap(... | 13 | 12 | 7 | [{"id": "G0", "claim": "The second doctest example shadows the mutable binding `rb` with `rb = RoaringBitmap::from_iter([1, 3, 7, 9]);` instead of redeclaring it with `let mut rb`.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Removing more element... | null |
RoaringBitmap__roaring-rs__280 | RoaringBitmap/roaring-rs | 280 | defect | 3fa2e731dc773b6ce92968f50ee75cad80f546e5 | eb26e0dc3cb387f56e0d4fb1dfe72da58e957a1e | add dedicated fold and rfold impls for iterators | Fixes #277 | diff --git a/src/bitmap/iter.rs b/src/bitmap/iter.rs
index ac85fa33..60e1cb50 100644
--- a/src/bitmap/iter.rs
+++ b/src/bitmap/iter.rs
@@ -46,6 +46,15 @@ impl Iterator for Iter<'_> {
(usize::MAX, None)
}
}
+
+ #[inline]
+ fn fold<B, F>(self, init: B, f: F) -> B
+ where
+ Self:... | 1 | 1 | 0 | [{"id": "G0", "claim": "The f_with_hi helper closure adds unnecessary indirection and is copy-pasted across the fold/rfold impls, so the reviewer prefers a simpler approach — folding with a direct move closure — or moving the helper into treemap/util.rs.", "category": "maintainability", "verdict": "supported", "priorit... | null |
RoaringBitmap__roaring-rs__297 | RoaringBitmap/roaring-rs | 297 | defect | 958708225469b3222f78cd152ac33ba6e7b311f6 | 03682b54eecc8df5c76eb6bdc8c28c54a6446306 | implement range based iteration | Implement `bitmap.iter_range()` and `bitmap.into_iter_range()`, based on `advance_to()` and `advance_back_to()`. Closes #290.
Open questions:
- [x] ~~The equivalent to `.iter_range` for `BTreeSet` is called `.range()` (and so does #290). Is that a better name: `.range`/`.iter_range`? We also need an owning version,... | diff --git a/roaring/src/bitmap/iter.rs b/roaring/src/bitmap/iter.rs
index de14092a..766d7ea6 100644
--- a/roaring/src/bitmap/iter.rs
+++ b/roaring/src/bitmap/iter.rs
@@ -1,5 +1,6 @@
use alloc::vec;
use core::iter::FusedIterator;
+use core::ops::RangeBounds;
use core::slice;
use super::container::Container;
@@ -1... | 3 | 3 | 3 | [{"id": "G0", "claim": "The new methods should be named `range`/`into_range` instead of `iter_range`/`into_iter_range`, to match the standard library's `BTreeSet::range` naming.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The range API should panic wh... | null |
RoaringBitmap__roaring-rs__75 | RoaringBitmap/roaring-rs | 75 | defect | 1b0bedb6f1819bf02c07bbdc44f3b2c7b88ae60c | facce17e6599eb49bcf45cf9550d458f3be61a49 | bugfix:deserialize:cotainers max len should be 2^16+1 | Hello.
RoaringBitmap's cotainers max len should be ~u32::max_value()~ u16::max_value() + 1 rather then u16 in deserialize. | diff --git a/src/bitmap/serialization.rs b/src/bitmap/serialization.rs
index 3ecff3948..ef76bd723 100644
--- a/src/bitmap/serialization.rs
+++ b/src/bitmap/serialization.rs
@@ -130,7 +130,7 @@ impl RoaringBitmap {
}
};
- if size > u16::max_value() as usize {
+ if size > u16::max_va... | 2 | 2 | 1 | [{"id": "G0", "claim": "The deserialization container-count bound should not allow more than 2^16 containers, as the RoaringBitmap format specification caps the number of containers at 2^16 — maybe the relaxed check is wrong.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"},... | null |
RoaringBitmap__roaring-rs__92 | RoaringBitmap/roaring-rs | 92 | defect | 0af2b535f8c4eadea9c92d5738cdde2880858b24 | a5df8c5f34db0a05ec143b81b290b9baa404a542 | Rework the insert/remove_range functions with RangeBounds | This PR fixes #5 by reworking the `Bitmap::insert_range` and `Bitmap::remove_range` functions to accept any type that implement [the `RangeBounds` trait](https://doc.rust-lang.org/nightly/core/ops/trait.RangeBounds.html). Note that it is a breaking change and therefore involves bumping the crate version carefully.
T... | diff --git a/src/bitmap/inherent.rs b/src/bitmap/inherent.rs
index d72ef2015..8ed354ff2 100644
--- a/src/bitmap/inherent.rs
+++ b/src/bitmap/inherent.rs
@@ -1,8 +1,9 @@
+use std::ops::{Bound, RangeBounds};
+
use crate::RoaringBitmap;
use super::container::Container;
use super::util;
-use std::ops::Range;
impl R... | 5 | 4 | 1 | [{"id": "G0", "claim": "Use Option::unwrap_or for the checked_add fallback instead of the nested match with an early return.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "insert_range cannot insert u32::MAX when the range has an inclusive end bou... | null |
RoaringBitmap__roaring__237 | RoaringBitmap/roaring | 237 | defect | 988cb10bbe76e6671cfca6183aa2b2f6c1beadad | 3e9c24c92aba4b96f28a05b51543da0200bb1aca | Keep slice alive during unsafe operations | This is a new version of the stale PR https://github.com/RoaringBitmap/roaring/pull/226 which address @alldroll 's concerns.
I am hoping that @alldroll can review it. | diff --git a/serialization_littleendian.go b/serialization_littleendian.go
index 8b46844a..4d50d052 100644
--- a/serialization_littleendian.go
+++ b/serialization_littleendian.go
@@ -6,6 +6,7 @@ import (
"errors"
"io"
"reflect"
+ "runtime"
"unsafe"
)
@@ -30,8 +31,12 @@ func uint64SliceAsByteSlice(slice []uin... | 1 | 1 | 0 | [{"id": "G0", "claim": "The byteSliceAs* functions are buggy and should be rewritten per go101.org to transfer the data pointer into a fresh result slice (so the returned slice does not alias the reusable header), with runtime.KeepAlive keeping the input alive.", "category": "correctness", "verdict": "supported", "prio... | null |
RoaringBitmap__roaring__240 | RoaringBitmap/roaring | 240 | defect | 4676818d7478f72f5041418f5afbb15a5080dbb7 | a0b4ecf0cadb84ee23ae8858edad264200c3143a | Bitmap.AddOffset now accepts negative offset | This fixes review notices from #222. The older branch has merge conflicts that why I have decided to create a new branch with implementations and tests. | diff --git a/roaring.go b/roaring.go
index df58cc30..c9b2272f 100644
--- a/roaring.go
+++ b/roaring.go
@@ -474,42 +474,67 @@ func (rb *Bitmap) Equals(o interface{}) bool {
}
// AddOffset adds the value 'offset' to each and every value in a bitmap, generating a new bitmap in the process
-func AddOffset(x *Bitmap, of... | 1 | 1 | 1 | [{"id": "G0", "claim": "Changing the exported AddOffset signature from uint32 to int64 breaks backward compatibility for existing customers, so a separate function should be added instead, per the Go compatibility guidelines.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
RoaringBitmap__roaring__268 | RoaringBitmap/roaring | 268 | defect | 26053d35e754e8f8d9c8bdd159976aad158aee8d | 96d38aa5cccd44cee042000b2fdeec61524fc783 | Implement issue #260 BSI Add() method and other enhancements | New BSI Add() method added per issue #260. Also, added Clone() and new transpose method. Transpose methods are functional but not terribly performant. Need to perhaps re-work these to use SIMD SSE2 or similar.
@lemire @jacksonrnewhouse - Please review ASAP. Thanks.
Fixes https://github.com/RoaringBitmap/roa... | diff --git a/BitSliceIndexing/bsi.go b/BitSliceIndexing/bsi.go
index 74df5d1a..753a1125 100644
--- a/BitSliceIndexing/bsi.go
+++ b/BitSliceIndexing/bsi.go
@@ -1,11 +1,11 @@
package roaring
import (
+ "github.com/RoaringBitmap/roaring"
"math/bits"
"runtime"
"sync"
-
- "github.com/RoaringBitmap/roaring"
+ "sync... | 18 | 17 | 0 | [{"id": "G0", "claim": "The newly exported BSI.RunOptimize method in BitSliceIndexing/bsi.go needs to be documented if it is to be exported.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The newly exported BSI.HasRunCompression method in BitSlice... | null |
RoaringBitmap__roaring__300 | RoaringBitmap/roaring | 300 | defect | d626fcaa277d89a8f843afeb9ec85fd959d8e6dd | fa1a7c2a0355d8e919dd6d13706ec4e66998d7cb | Trimming the run containers so that they use less memory and are safer. | runContainer16.myOpts is subject to data races as indicated in PR https://github.com/RoaringBitmap/roaring/pull/299
It seems like this is an unnecessary component of the code that is better entirely removed. It is what the current PR does.
| diff --git a/roaring64/roaring64_test.go b/roaring64/roaring64_test.go
index b5d92ff1..f78f62cb 100644
--- a/roaring64/roaring64_test.go
+++ b/roaring64/roaring64_test.go
@@ -10,7 +10,6 @@ import (
"path/filepath"
"strconv"
"testing"
- "unsafe"
"github.com/RoaringBitmap/roaring"
"github.com/stretchr/testify... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request should not delete the TestRleRunSearch16 test case from runcontainer_test.go.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
RoaringBitmap__roaring__360 | RoaringBitmap/roaring | 360 | defect | 16dd346f22ee0b3b1fee3da665af5e80f3284cb3 | 500fba4f8209b678191e40e34faaf02447f34a8e | bugfix: return correct cardMinusOne in runArrayUnionToRuns | runArrayUnionToRuns had a bug where it was returning the cardinality, rather than one less than the cardinality. This caused #358, in particular the value returned at https://github.com/RoaringBitmap/roaring/blob/294097852484945d6bc34af513641f3ec5cb9767/runcontainer.go#L2157. This only led to incorrect _behavior_ when ... | diff --git a/runcontainer.go b/runcontainer.go
index 1ec8b235..4ce48a29 100644
--- a/runcontainer.go
+++ b/runcontainer.go
@@ -2281,7 +2281,7 @@ func runArrayUnionToRuns(rc *runContainer16, ac *arrayContainer) ([]interval16,
pos2++
}
}
- cardMinusOne += previousInterval.length + 1
+ cardMinusOne += previousInt... | 2 | 2 | 0 | [{"id": "G0", "claim": "The `length` field of interval16 should be renamed to `lengthMinusOne`, since it holds a length minus one and the misleading name made the cardMinusOne bug this PR fixes hard to spot.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ... | null |
RoaringBitmap__roaring__408 | RoaringBitmap/roaring | 408 | defect | c79926f24cdcf0dc5fa59f688c308f0045e3b182 | 4e45a46aeba92a17031fa00c82f7b8aeae5a8dc0 | roaring: implement ToDense and FromDense | This commit introduces ToDense and FromDense as methods in Bitmap. They make conversion to and from dense bitmaps like https://github.com/bits-and-blooms/bitset or https://github.com/kelindar/bitmap performant and simple.
```
name time/op
FromDense/bitmap-4097-10 ... | diff --git a/roaring.go b/roaring.go
index f7c1652b..6dfe5cd1 100644
--- a/roaring.go
+++ b/roaring.go
@@ -53,6 +53,133 @@ func (rb *Bitmap) ToBytes() ([]byte, error) {
return rb.highlowcontainer.toBytes()
}
+const wordSize = uint64(64)
+const log2WordSize = uint64(6)
+const capacity = ^uint64(0)
+const bitmapCont... | 2 | 2 | 2 | [{"id": "G0", "claim": "FromDense appends bitmap containers with arrayDefaultMaxSize elements or fewer, violating roaring's container invariant; the reviewer asked that the invalid bitmap containers be mapped to valid ones.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {... | null |
RoaringBitmap__roaring__417 | RoaringBitmap/roaring | 417 | defect | a550de606142731fe523b04e108bafcf8cb5f858 | 34fc2bfde5108956369769352cf99eb75bd54505 | Faster faster iandnot | Alternative to https://github.com/RoaringBitmap/roaring/pull/416
@neena please review. | diff --git a/arraycontainer.go b/arraycontainer.go
index a575caff..80fa676e 100644
--- a/arraycontainer.go
+++ b/arraycontainer.go
@@ -664,10 +664,54 @@ func (ac *arrayContainer) iandNot(a container) container {
}
func (ac *arrayContainer) iandNotRun16(rc *runContainer16) container {
- rcb := rc.toBitmapContainer()... | 1 | 1 | 0 | [{"id": "G0", "claim": "Rename the variable current_run in iandNotRun16 to something like current_run_idx for clarity.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
RoaringBitmap__roaring__418 | RoaringBitmap/roaring | 418 | defect | c99a0628bc56429222cba852db4e522f6226d5c2 | d3bf873e982a59cd06b3b39cb92f884c0474d645 | faster iandnot between bitmap containers and run containers | Rather than converting a run container to a bitmap container and then performing iandnot, call removeRange directly.
```
name old time/op new time/op delta
AndNot/inPlace=true/left=bitmap/right=run-10 6.71µs ±32% 3.08µs ±45% -54.05% (p=0.000 n=20+17)
``` | diff --git a/benchmark_test.go b/benchmark_test.go
index 7f2c016d..fad3c994 100644
--- a/benchmark_test.go
+++ b/benchmark_test.go
@@ -1176,55 +1176,59 @@ func BenchmarkAndNot(b *testing.B) {
}
for _, inPlace := range []bool{true, false} {
- for _, leftGen := range []generator{makeRunContainer, makeArrayContaine... | 2 | 1 | 1 | [{"id": "G0", "claim": "The new iandNotRun16 implementation appears to break something in a production workload, so the author asks lemire to hold off merging until the cause is found.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Lemire does not u... | null |
RoaringBitmap__roaring__436 | RoaringBitmap/roaring | 436 | defect | 5aca9677d8270ffec04f4535b092216796de2135 | d1ef9403e390d4744eb3125756c4ab727555f8e9 | Chore/test coverage | More test coverage.
@lemire
I'll probably add a few more tests in on some of the less covered files. You can leave this open if you like.
| diff --git a/bitmapcontainer_test.go b/bitmapcontainer_test.go
index d1feb0fc..fe94049a 100644
--- a/bitmapcontainer_test.go
+++ b/bitmapcontainer_test.go
@@ -485,3 +485,50 @@ func TestBitmapcontainerNextHasMany(t *testing.T) {
assert.Equal(t, 256, result)
})
}
+
+func TestBitmapcontainerOrArrayCardinality(t *tes... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new TestBitmapcontainerOrArrayCardinality case (populated bitmap, empty array) fails, which suggests orArrayCardinality has a bug.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}] | null |
RoaringBitmap__roaring__451 | RoaringBitmap/roaring | 451 | defect | 273d3419f2d821b7d518ab101d69dfe71f0c0ed9 | 733f9234ee6e97693e0bf0434416e1d8c611cf25 | BSI library expanded to include support for large arbitrary values via the big.Int library | There is no fundamental reason why the BSI library cannot support values exceeding 64 bits. Why is this necessary? It would now be possible to store values like UUID and 96 bit timestamps, as well as advanced string encodings in a BSI.
The BSI library has been modified to preserve the existing int64 interface an... | diff --git a/go.mod b/go.mod
index 2602690f..ec130a1b 100644
--- a/go.mod
+++ b/go.mod
@@ -1,9 +1,18 @@
module github.com/RoaringBitmap/roaring/v2
-go 1.14
+go 1.22.0
+
+toolchain go1.23.2
require (
github.com/bits-and-blooms/bitset v1.12.0
+ github.com/google/uuid v1.6.0
github.com/mschoch/smat v0.2.0
gith... | 2 | 2 | 2 | [{"id": "G0", "claim": "The go 1.22.0 syntax written into go.mod by this pull request makes some CI tests complain (the tests are failing).", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The author asks that the CI environment be updated to use at l... | null |
RoaringBitmap__roaring__475 | RoaringBitmap/roaring | 475 | defect | fb67118dd4dcf59f0ab7061809a48868a14b382b | 6e1cecf7cf5de642cfdac035680e9a8b3ef470c1 | Support 1.23 iterator in a backward-compatible way | Resolve #471
Provide two new functions:
- `Values`: An iterator in normal order
- `Backward`: An iterator in reverse order
Unit test:
- `iter123_test.go`: Test the 1.23 iterator by for-range
- `iter_test.go`: Test the iterator by call function way
# Design consideration
- I used a naming method similar to... | diff --git a/benchmark123_test.go b/benchmark123_test.go
new file mode 100644
index 00000000..effb89e5
--- /dev/null
+++ b/benchmark123_test.go
@@ -0,0 +1,164 @@
+//go:build go1.23
+// +build go1.23
+
+package roaring
+
+import (
+ "math/rand"
+ "testing"
+)
+
+func BenchmarkIterator123(b *testing.B) {
+ bm := NewBitma... | 3 | 2 | 1 | [{"id": "G0", "claim": "The pull request should add benchmarks for the new iterators, as in the referenced benchmark_test.go.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In iter123_test.go the MaxUint32 case may not be representable as an int and may... | null |
RoaringBitmap__roaring__492 | RoaringBitmap/roaring | 492 | defect | 64d53dfb72b8a7524318409bceef16cbc25f1de0 | fb89c43ec826c5b8f9588be1ca6cfe86a3078351 | fixing issue 22 : unset iterators | Fixes https://github.com/RoaringBitmap/roaring/issues/22 | diff --git a/iter.go b/iter.go
index c121ab76..0e2d68fb 100644
--- a/iter.go
+++ b/iter.go
@@ -27,3 +27,16 @@ func Backward(b *Bitmap) func(func(uint32) bool) {
}
}
}
+
+// Unset creates an iterator that yields values in the range [min, max] that are NOT contained in the bitmap.
+// The iterator becomes invalid i... | 4 | 4 | 1 | [{"id": "G0", "claim": "Initialize should not set hasNext = min <= max, because when min is itself set in the bitmap this briefly leaves hasNext true in an inconsistent state; it suggests initializing hasNext to false and letting updateHasNext() set it from the actual bitmap state.", "category": "correctness", "verdict... | null |
RoaringBitmap__roaring__501 | RoaringBitmap/roaring | 501 | defect | 45a0bacbf2a4dd6e18cacdd49754857ecf4eca75 | 9ebb1c38d80cfeda13ac84b9705cf0c6087b1202 | more efficient UnsetIterator implementation | This change aligns the efficiency of UnsetIterator with that of
Iterator: it runs in a time proportional to the number
of unset bits, not the number of set bits.
The benchmark added in this test ran at about 30s per iteration
previously and now runs in about 1.2ms.
Also add some property-based tests with a sma... | diff --git a/arraycontainer.go b/arraycontainer.go
index 32ebc6cd..a47c173a 100644
--- a/arraycontainer.go
+++ b/arraycontainer.go
@@ -62,6 +62,58 @@ func (ac *arrayContainer) getManyIterator() manyIterable {
return &shortIterator{ac.content, 0}
}
+type arrayContainerUnsetIterator struct {
+ content []uint16
+ pos... | 6 | 6 | 4 | [{"id": "G0", "claim": "The arrayContainerUnsetIterator code should be moved from arraycontainer.go to shortiterator.go, where the other iterator types are defined.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In advanceIfNeeded the skip loop ... | null |
RoaringBitmap__roaring__502 | RoaringBitmap/roaring | 502 | defect | 45a0bacbf2a4dd6e18cacdd49754857ecf4eca75 | c79435ab5a1f8d3ec963de122c5869ddd69a508c | small cleanups | I noticed some minor upgrades were possible now we've updated to Go 1.24.
This should be a pure refactoring, with no semantic changes, and no performance impact.
| diff --git a/iter.go b/iter.go
index 5b304b7a..1c43379e 100644
--- a/iter.go
+++ b/iter.go
@@ -1,9 +1,11 @@
package roaring
+import "iter"
+
// Values returns an iterator that yields the elements of the bitmap in
// increasing order. Starting with Go 1.23, users can use a for loop to iterate
// over it.
-func Val... | 1 | 1 | 0 | [{"id": "G0", "claim": "Remove the extra tab/space between 'defer' and 'fin.Close()' in roaring64/serialization_test.go, as the suggestion block proposes.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
Rob--W__cors-anywhere__77 | Rob--W/cors-anywhere | 77 | defect | 70400ab166515db9b8fd117f3d208b4960ee846a | 881392cfaf51f124d77c100249bbeb67e4b21047 | Allow caching of CORS headers by setting Access-Control-Max-Age header | Add maxAge config option. If set, an Access-Control-Max-Age header with this value (in seconds) will be added. This will allow the results of a preflight request to be cached by the browser, avoiding a preflight request being made for every request.
Defaults to not set.
Example: `createServer({ maxAge: 600 })`
All... | diff --git a/README.md b/README.md
index 11342f186..a5ec7f6ef 100644
--- a/README.md
+++ b/README.md
@@ -107,6 +107,8 @@ proxy requests. The following options are supported:
Example: `["cookie"]`
* dictionary of lowercase strings `setHeaders` - Set headers for the request (overwrites existing ones).
Example: `... | 5 | 5 | 0 | [{"id": "G0", "claim": "Pass the max-age value through the request state (e.g. read it from req.corsAnywhereRequestState) instead of adding an extra parameter to withCORS.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The maxAge option should default to... | null |
RobinTail__express-zod-api__1181 | RobinTail/express-zod-api | 1,181 | defect | fa47a91403ec7b70ec86c668c28dbab977e06b7d | 7a693af824d647d7ce9ea173e05e7c513c31586e | Feat: ability to customize the endpoint operationId in documentation | Hi!
First of all, thank you for your effort and time in this project!
I wrote a small change in this Pull Request so we can override the generated operationId for each endpoint, while maintaining the previous behavior.
This is not a final implementation; I actually would love some pointer into how to implement t... | diff --git a/src/documentation.ts b/src/documentation.ts
index b49f88af10..a2190a2236 100644
--- a/src/documentation.ts
+++ b/src/documentation.ts
@@ -13,8 +13,6 @@ import {
makeCleanId,
} from "./common-helpers";
import { CommonConfig } from "./config-type";
-import { mapLogicalContainer } from "./logical-contain... | 7 | 5 | 2 | [{"id": "G0", "claim": "The duplicate operationId failure should throw a DocumentationError instead of a plain Error, whose constructor also provides information on the endpoint that caused the issue.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "e... | null |
RobinTail__express-zod-api__2859 | RobinTail/express-zod-api | 2,859 | defect | a92c61087897e252323cae49499b36159217dd1e | 1dae667690aa6b3868a50725d2cea5fad295e95e | Removing body depiction from negative response to `HEAD` requests | Fixes #2858
Noticed by @coderabbitai in https://github.com/RobinTail/express-zod-api/pull/2857#issuecomment-3133952165
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **Documentation**
* Updated API documentation for several HEAD endpoints to remove detailed... | diff --git a/example/example.client.ts b/example/example.client.ts
index 819cd65a01..c2525d3e0c 100644
--- a/example/example.client.ts
+++ b/example/example.client.ts
@@ -54,12 +54,7 @@ interface HeadV1UserRetrievePositiveResponseVariants {
}
/** head /v1/user/retrieve */
-type HeadV1UserRetrieveNegativeVariant1 = ... | 3 | 2 | 0 | [{"id": "G0", "claim": "The new one-line doesImplyContent helper could perhaps be inlined instead of kept as a named export.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Lines 335-336 of the doesImplyContent test contain identical duplicate as... | null |
RobinTail__express-zod-api__2878 | RobinTail/express-zod-api | 2,878 | defect | eab3b15b2fa39cc52d99f5c88dd38a3328052c5c | 278241fdaaccf822906953674568b6c8cc1342b9 | feat(zod-plugin): Abstract methods `pack()` and `unpack()` | This should simplify creating more advanced branded schemas, such as function one.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New Features**
* Introduced utilities to associate and retrieve brand identifiers on Zod schemas at runtime.
* Added the abilit... | diff --git a/zod-plugin/brand-check.ts b/zod-plugin/brand-check.ts
deleted file mode 100644
index 1523b9ebc6..0000000000
--- a/zod-plugin/brand-check.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-import { z } from "zod";
-
-interface $EZBrandCheckDef extends z.core.$ZodCheckDef {
- check: "$EZBrandCheck";
- brand?: string | num... | 13 | 9 | 1 | [{"id": "G0", "claim": "R.renameKeys in remap() silently overwrites when two source keys map to the same destination, discarding a field without warning; consider detecting duplicate targets up-front and throwing, or documenting the behaviour.", "category": "correctness", "verdict": "supported", "priority": "P1", "scop... | null |
RobinTail__express-zod-api__2921 | RobinTail/express-zod-api | 2,921 | defect | ee3cf1b2e972eb736562500f02c94d675bc4558c | a90fa5576c4cbdb75c256f6d3f928116df8a635a | Organizing `zod-plugin` directories |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
- Chores
- Switch build/type entry points to source files and align package metadata resolution with project layout.
- Broaden lint ignore patterns to cover generated/dist and coverage output.
- Tests
- Point t... | diff --git a/eslint.config.js b/eslint.config.js
index 2670e3ebd2..2f7510c981 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -244,7 +244,7 @@ export default tsPlugin.config(
"express-zod-api/tests/*.ts",
"express-zod-api/vitest.setup.ts",
"migration/*.spec.ts",
- "zod-plugin/*.spec.ts... | 3 | 2 | 0 | [{"id": "G0", "claim": "Add zod-plugin/vitest.setup.ts to the tests/all lint group so the test rule relaxations apply to it consistently.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Mirror the ignore patterns for zod-plugin: ignore its covera... | null |
RobinTail__express-zod-api__3047 | RobinTail/express-zod-api | 3,047 | defect | ddaa900ef0956bc63b31a031a9329680679d4fd2 | fdf2f1a7b78ed85d226b77f77acb90e32ed0d992 | Add `afterRouting` hook | Closes #3006
Implementing `afterRouting` hook for generic convenience.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New Features**
* Added an additional server lifecycle hook (afterRouting) so custom logic can run after routing is set up and before erro... | diff --git a/express-zod-api/src/config-type.ts b/express-zod-api/src/config-type.ts
index fd1cbd7e02..c8febf0b61 100644
--- a/express-zod-api/src/config-type.ts
+++ b/express-zod-api/src/config-type.ts
@@ -135,7 +135,7 @@ interface GracefulOptions {
beforeExit?: () => void | Promise<void>;
}
-type BeforeRouting ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The JSDoc for beforeRouting and afterRouting should be polished to consistently use the @desc tag (the afterRouting description lacks it).", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The afterRouting JSDoc could add a @d... | null |
RobinTail__express-zod-api__3049 | RobinTail/express-zod-api | 3,049 | defect | 547b13f27a0c73ecf56717352641fbd10c822a6a | d4049cc0e265c795c13feec026d7435f255be488 | feat(v26): method only routes | Due to #2938
This will set us free from the requirement to write slash to the keys when we imply method depending routing.
Breaking change: `Integration` requires `config` parameter.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New Features**
* Adde... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index f7a46dae43..0950096f84 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,20 +4,25 @@
### v26.0.0
-- `DependsOnMethod` removed: use flat syntax with explicit method and a slash;
+- `DependsOnMethod` removed:
+ - You can now specify methods as direct keys of an assign... | 10 | 1 | 0 | [{"id": "G0", "claim": "Fix the typo in the CHANGELOG.md v26.0.0 entry: \"contstructor\" should read \"constructor\" in the line about the Integration argument object now requiring the config property.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":... | null |
RoboJackets__robocup-software__1303 | RoboJackets/robocup-software | 1,303 | defect | 6daea1b68345b575add25d1bcda255bfdd35b133 | cbd1f5b1c86be8e7fd5eb82ab1275aed6c454586 | Refactor systemstate context | First item on the checklist for #1301 (tracking issue).
This blocks all other items on that checklist.
This PR is almost 100% renaming things, with one small exception: the formatter ran into some python files that I changed that had tabs instead of spaces (yuck) and decided that it wanted to fix that file-wide i... | diff --git a/soccer/CMakeLists.txt b/soccer/CMakeLists.txt
index a086bc8211c..fee2aa14f3d 100644
--- a/soccer/CMakeLists.txt
+++ b/soccer/CMakeLists.txt
@@ -79,7 +79,7 @@ set(ROBOCUP_LIB_SRC
"vision/util/VisionFilterConfig.cpp"
"vision/VisionFilter.cpp"
"WindowEvaluator.cpp"
-)
+ Context.hpp)
... | 3 | 3 | 0 | [{"id": "G0", "claim": "The tabbing of the `Context.hpp` entry added to soccer/CMakeLists.txt is off.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Delete the copy constructor, copy assignment and move constructor (and move assignment) from Con... | null |
RoboJackets__robocup-software__1364 | RoboJackets/robocup-software | 1,364 | defect | 4043a7f9590d02f617d8e9a762697e4aaa27f1a6 | 50da0ce02a4b7fc10b5db1f7d65a79ad1b4969bb | Refactor Vision to use Pose and Twist | ## Description
Refactoring of Kalman filter to use Pose and Twist
## Associated Issue
Issue #1317
| diff --git a/soccer/vision/filter/KalmanFilter3D.cpp b/soccer/vision/filter/KalmanFilter3D.cpp
index 17cc0433f25..d69a87f35d5 100644
--- a/soccer/vision/filter/KalmanFilter3D.cpp
+++ b/soccer/vision/filter/KalmanFilter3D.cpp
@@ -20,17 +20,17 @@ void KalmanFilter3D::createConfiguration(Configuration* cfg) {
KalmanFil... | 2 | 1 | 1 | [{"id": "G0", "claim": "The Pose/Twist refactor should cover the remaining vision classes too: CameraRobot should use Pose internally, WorldRobot should use Pose/Twist classes as well, and in general every Point-for-position/velocity paired with a double-for-heading/angular-velocity should be replaced with a Pose or a ... | null |
RoboJackets__robocup-software__1547 | RoboJackets/robocup-software | 1,547 | defect | eabf32a86dd766240c2627d98c6358c33e81bb23 | 9b3e5a2e7e3d0397ef24f7d38e616b74f6981776 | ROS2 parameter library | ## Description
This PR creates a parameter library `rj_param_utils` for easy parameter declarations.
Closes #1529.
## Steps to test
### Sim still works
1. Launch sim
Expected result: Everything still works. | diff --git a/CMakeLists.txt b/CMakeLists.txt
index cecda506f80..0310463cb6f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -85,6 +85,7 @@ add_rosidl_subdirectory(rj_msgs)
# This is manually topologically sorted because we're not using colcon
+add_subdirectory(rj_param_utils)
add_subdirectory(external)
add_s... | 8 | 5 | 1 | [{"id": "G0", "claim": "The doc comment on Param::Update (\"@throws std::runtime_error if the type is set.\") is confusing and does not make sense and should be fixed or removed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment for t... | null |
RoboJackets__robocup-software__1551 | RoboJackets/robocup-software | 1,551 | defect | 51ac9627496142ba66b8304cb8cb75ab5c69b6a6 | 86da0f491ddb8a41c34e95ad29396cd616b1e284 | Add more messages + conversions | ## Description
This PR adds pose, twist and `BlueTeam` messages, as well as conversion to / from them. | diff --git a/Geometry2d/include/Geometry2d/Pose.hpp b/Geometry2d/include/Geometry2d/Pose.hpp
index 20cc0fb0cc2..7933ca219a4 100644
--- a/Geometry2d/include/Geometry2d/Pose.hpp
+++ b/Geometry2d/include/Geometry2d/Pose.hpp
@@ -1,6 +1,9 @@
#pragma once
#include <ostream>
+#include <rj_geometry_msgs/msg/detail/pose__bu... | 6 | 6 | 1 | [{"id": "G0", "claim": "The RobotState.msg header comment should not say the message carries which camera the robot was seen by — if it is vision-filter output it should have just pose/time/visible.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "G... | null |
RoboJackets__robocup-software__1563 | RoboJackets/robocup-software | 1,563 | defect | bbed968e14366dcebec2f6d00e05221464952bd2 | e36bbc2380074694ae14425fbc9498b008524aef | Use ROS converters everywhere | ## Description
Implement ROS converters for most of our regular message types, and remove the implicit conversions.
In the process, accidentally fixes #1470.
## Associated Issue
Closes #1560.
## Design Documents
See #1560
## Steps to test
No functional changes, covered by unit tests. | diff --git a/Geometry2d/CMakeLists.txt b/Geometry2d/CMakeLists.txt
index 4d2bb73f574..a071ba4cbf6 100644
--- a/Geometry2d/CMakeLists.txt
+++ b/Geometry2d/CMakeLists.txt
@@ -32,7 +32,8 @@ set(GEOMETRY2D_DEPS_INCLUDE_DIRS
set(GEOMETRY2D_DEPS_LIBRARIES
rj_protos
- rj_constants)
+ rj_constants
+ rj_convert... | 5 | 2 | 0 | [{"id": "G0", "claim": "The Field_Dimensions to_ros converter should use the ROS message builder instead of assigning each field, so that changing the message definition causes a compiler error instead of a silently unconverted field.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "... | null |
RoboJackets__robocup-software__1596 | RoboJackets/robocup-software | 1,596 | defect | ca8ce05708875fa106109bfadd752f9f73c4cab3 | 929df3b9535fb83248fbf8c693089da5e64a14a9 | Reenable tests in Geometry2d::Rect | ## Description
Reenable tests in Geometry2d::Rect
## Associated Issue
Issue #1571
## Design Documents
## Steps to test
Expected result:
| diff --git a/Geometry2d/include/Geometry2d/Rect.hpp b/Geometry2d/include/Geometry2d/Rect.hpp
index 856cf2036d3..3ec77056f72 100644
--- a/Geometry2d/include/Geometry2d/Rect.hpp
+++ b/Geometry2d/include/Geometry2d/Rect.hpp
@@ -2,6 +2,7 @@
#include <rj_geometry_msgs/msg/rect.hpp>
+#include <gtest/gtest.h>
#include "... | 7 | 2 | 1 | [{"id": "G0", "claim": "The newly re-enabled tests fail to build because Rect::CohenSutherlandOutCode is private, so the Rect class needs FRIEND_TEST declarations (and rect.hpp must include <gtest/gtest.h>) to give the tests access.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introd... | null |
RoboJackets__robocup-software__1621 | RoboJackets/robocup-software | 1,621 | defect | 79d664c2f5aad4c39f7091e48b55e6c0c98aeabd | 44e9c0d7ea7b975fc7ae5f2dca0366bc3673316c | Global Parameter Server | ## Description
A parameter provider for a global parameter server node. Uses a parameter client to listen for new/changed parameters on the global parameter server and updates the local parameter values accordingly.
## Associated Issue
Issue #1586
## Steps to test
### Automated test cases
- Covers basic fun... | diff --git a/rj_param_utils/include/rj_param_utils/global_param.hpp b/rj_param_utils/include/rj_param_utils/global_param.hpp
new file mode 100644
index 00000000000..c49352c29ab
--- /dev/null
+++ b/rj_param_utils/include/rj_param_utils/global_param.hpp
@@ -0,0 +1,61 @@
+/** @file */
+#pragma once
+
+#include <rclcpp/rcl... | 5 | 5 | 3 | [{"id": "G0", "claim": "The global parameter node creation should live in a main() function in its own source file (e.g. global_param_server.cpp), since for now each ROS node is a separate binary.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The explic... | null |
RoboJackets__robocup-software__1836 | RoboJackets/robocup-software | 1,836 | defect | 9c12423b55cb333e0faa7b6ab4b24830e078c5b9 | 4a803309c2b3be050e3b1e80693d7bb1bda8779c | Delete trajectory test that no longer works | Because of recent changes to prevent a crash from trajectory splicing in the settle planner, there is a test here that is no longer applicable to our current code. For now, we have commented it out. | diff --git a/soccer/src/soccer/planning/tests/trajectory_test.cpp b/soccer/src/soccer/planning/tests/trajectory_test.cpp
index dfc11d30a05..aa9b8b2026c 100644
--- a/soccer/src/soccer/planning/tests/trajectory_test.cpp
+++ b/soccer/src/soccer/planning/tests/trajectory_test.cpp
@@ -223,5 +223,19 @@ TEST(Trajectory, Combi... | 1 | 1 | 0 | [{"id": "G0", "claim": "The style formatter complains about the new lines, so the author should run `make pretty-lines` to fix the formatting.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
RoboJackets__robocup-software__1911 | RoboJackets/robocup-software | 1,911 | defect | 0e2ac61c8750d3879722f645df4141c281f2d4cc | 9427f4be815ee4ba704aa7d97072aff8b51c71e3 | Is done planners | ## Description
Adds is_done methods to each planner, which return true if the planner is done with its job and false otherwise. This sets the groundwork for more advanced planner behavior (e.g. ball placement #1904 ) on the C++ side.
Also tuned the capture skill for ER-force simulator. Did not tune other skills as ... | diff --git a/config/plays.txt b/config/plays.txt
index 1c629311306..f57a1167198 100644
--- a/config/plays.txt
+++ b/config/plays.txt
@@ -8,4 +8,5 @@ penalty_defense.PenaltyDefense()
penalty_offense.PenaltyOffense()
test_motion_planning.OneRobot()
test_motion_planning.AllBots()
+test_motion_planning.KickBall()
None
... | 7 | 5 | 0 | [{"id": "G0", "claim": "All of the new is_done methods should be made constexpr to offload work to compile time, which requires moving to C++20 and so could be done in a different PR.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "GitHub Actions complain... | null |
RoboJackets__robocup-software__2204 | RoboJackets/robocup-software | 2,204 | defect | 2743ca07047444ddf1d20b309313ebee5b003ab7 | ebe07a8b95f972565b0b3f559cf452c8029491d1 | Offense fsm skel | ## Description
Rewrite of offensive state machine.
## Associated / Resolved Issue
Resolves [ClickUp card](https://app.clickup.com/t/86az44dwx)
## Design Documents
[Link](https://docs.google.com/document/d/1IxgdJri9OlgGYz51mvHroTIlRiRT9FikDSPtfiEp5tA/edit#heading=h.4zxyh9l3eawp)
## Steps to Test
### Test Ca... | diff --git a/CMakeLists.txt b/CMakeLists.txt
index 349e4443b47..a04557178f1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -66,19 +66,19 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
# Because we use ninja, we have to explicitly turn on color output for the compiler
if("${CMAKE_CXX_COMPILER_ID}... | 6 | 2 | 0 | [{"id": "G0", "claim": "Including pivoting in line_kick was started but never completed, so the committed PivotPathPlanner member in LineKickPathPlanner should be removed (\"uncommitted\") unless it is going to do something.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"... | null |
RoboJackets__robocup-software__2240 | RoboJackets/robocup-software | 2,240 | defect | 224b72cee35756ee6a53113f05ecc67ea33ac36d | 205910a12cfc7be10fd923273468f03532b562c9 | Creates line pivot path planner | ## Description
Describe your pull request.
## Associated / Resolved Issue
Resolves # or [ClickUp card](link-to-clickup-card)
## Design Documents
[Link](link-to-design-doc)
## Steps to Test
### Test Case 1
1. Step 1
2. Step 2
3. Step 3
**Expected result:**???
## Key Files to Review
Group 1
* Fil... | diff --git a/soccer/src/soccer/CMakeLists.txt b/soccer/src/soccer/CMakeLists.txt
index 42413708786..dc62ac4bed1 100644
--- a/soccer/src/soccer/CMakeLists.txt
+++ b/soccer/src/soccer/CMakeLists.txt
@@ -39,6 +39,7 @@ set(ROBOCUP_LIB_SRC
planning/planner/line_kick_path_planner.cpp
planning/planner/path_target_pa... | 10 | 10 | 6 | [{"id": "G0", "claim": "The IS_DONE_ANGLE_CHANGE_THRESH member should be declared as a static constexpr double initialized with braces (static constexpr double IS_DONE_ANGLE_CHANGE_THRESH {1.0};) instead of a non-const double.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduc... | null |
RoboJackets__robocup-software__2270 | RoboJackets/robocup-software | 2,270 | defect | c8f2dddcb1d49803f14caa0f876c4e4e6ea13a45 | 3170833a511b0903aa3194f4c253e26fe0a61ac5 | Update to ubuntu 22.04 | ## Description
Updates the stack to be dependent on ROS2 Humble (which is associated with Ubuntu 24)
## Associated / Resolved Issue
Resolves # or [ClickUp card](link-to-clickup-card)
## Design Documents
[Link](link-to-design-doc)
## Steps to Test
### Test Case 1
1. Step 1
2. Step 2
3. Step 3
**Expected result:**???... | diff --git a/CMakeLists.txt b/CMakeLists.txt
index a04557178f1..309774445c7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -67,7 +67,7 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
# Because we use ninja, we have to explicitly turn on color output for the compiler
if("${CMAKE_CXX_COMPILER_ID}" MA... | 3 | 1 | 1 | [{"id": "G0", "claim": "It is questionable whether the changelog.txt file should be included in the repository as part of this pull request.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The installation docs (docs/source/installation.rst) are not updat... | null |
RoboJackets__robocup-software__2307 | RoboJackets/robocup-software | 2,307 | defect | ba4465c11506d83c42c26be17e2d61e07da255ca | 2fe51e93bbd55821a9fcad6057c8a0c4f5e34c7a | Valid intermediate Points | Passes in field dimensions into the create path so that the chosen intermediate point is within the field borders so we dont get stuck | diff --git a/soccer/src/soccer/planning/global_state.cpp b/soccer/src/soccer/planning/global_state.cpp
index e89a4acc979..e4e53c24667 100644
--- a/soccer/src/soccer/planning/global_state.cpp
+++ b/soccer/src/soccer/planning/global_state.cpp
@@ -74,6 +74,10 @@ GlobalState::GlobalState(rclcpp::Node* node) {
auto loc... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new GlobalState::field_dimensions() accessor should return a reference/pointer like the world_state() accessor does instead of returning the struct by value.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
RoboJackets__robocup-software__2509 | RoboJackets/robocup-software | 2,509 | defect | 17e205b8a89cbd37b542f87a849930782faf44f1 | a84e1f4be2703d813ab017453c543c8711f2c769 | Upgrade line test functionality | ## Description
Modifies Line Test so that now user can specify which points they want the robot to toggle between and which robot to test with.
| diff --git a/src/rj_msgs/CMakeLists.txt b/src/rj_msgs/CMakeLists.txt
index c29683dd72..5073269bbc 100644
--- a/src/rj_msgs/CMakeLists.txt
+++ b/src/rj_msgs/CMakeLists.txt
@@ -36,6 +36,7 @@ rosidl_generate_interfaces(
msg/MatchState.msg
msg/MotionSetpoint.msg
msg/Latency.msg
+ msg/LineTest.msg
msg/LinearM... | 4 | 4 | 2 | [{"id": "G0", "claim": "The large commented-out 'Old Code: Deprecated' block left inside Line::derived_get_task should be removed if it is deprecated.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The change check in line_direction_callback com... | null |
RoboJackets__robocup-software__280 | RoboJackets/robocup-software | 280 | defect | 03ff07da924fffcf89e50714b39127060743cbb1 | 5039553954207bca4186a37726a8cdeee8249f32 | Albert/composite path | Finish CompositePath and refactor InterpolatedPath
| diff --git a/soccer/Robot.cpp b/soccer/Robot.cpp
index d3c7a916f94..7ec2cd4470d 100644
--- a/soccer/Robot.cpp
+++ b/soccer/Robot.cpp
@@ -13,7 +13,7 @@
#include <stdexcept>
#include <QString>
#include <cmath>
-
+#include <utility>
using namespace std;
using namespace Geometry2d;
@@ -578,8 +578,6 @@ void OurRobot:... | 18 | 17 | 5 | [{"id": "G0", "claim": "Remove all the commented-out old code in Robot.cpp replanIfNeeded() before merging.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Doxygen comments should not be copied from the header file into CompositePath.cpp because ... | null |
RoboJackets__robocup-software__424 | RoboJackets/robocup-software | 424 | defect | 4756adc59f1e483bc7dd05b9e6e68c51dbbe3ba9 | 3194f1b3023dae5b81725715a0abb7d672dcb1b8 | Refactored replanning and created IndependentMultiRobotPathPlanner | Should be merged after #421.
- Planning is now run by the Processor
- Processor has a single MultiRobotPathPlanner that handles planning for all robots
- Robots no longer store a reference to their Planner
- IndependentMultiRobotPathPlanner is a subclass of MultiRobotPathPlanner that runs a SingleRobotPathPlanner for e... | diff --git a/common/Geometry2d/CompositeShape.hpp b/common/Geometry2d/CompositeShape.hpp
index 88a82f434a7..ba667a85bce 100644
--- a/common/Geometry2d/CompositeShape.hpp
+++ b/common/Geometry2d/CompositeShape.hpp
@@ -37,7 +37,7 @@ class CompositeShape : public Shape {
/// adds @compShape's subshapes to the receive... | 6 | 3 | 2 | [{"id": "G0", "claim": "Something seems wrong with the new planning/replanning behaviour for capture (weird replanning is going on).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The newly added pure-virtual Path::valid() method is unnecessary and ... | null |
RoboJackets__robocup-software__439 | RoboJackets/robocup-software | 439 | defect | 82eeecb03d136a531ef4c81927976744d3175467 | 4dbcc2f9ca167886613c48761425cfd165296e0d | Added TargetVelPathPlanner | - TargetVelPathPlanner now creates a Path for target world velocity commands, as used in `Capture` and other behaviors.
- TargetVelPathPlanner respects obstacles, so it should no longer be possible to accidentally crash or enter goal zones when using target world velocity.
- removed backoff state from Capture that wa... | diff --git a/common/Geometry2d/ShapeSet.hpp b/common/Geometry2d/ShapeSet.hpp
index 4c59307aa0d..2fcb5c91e94 100644
--- a/common/Geometry2d/ShapeSet.hpp
+++ b/common/Geometry2d/ShapeSet.hpp
@@ -25,7 +25,11 @@ class ShapeSet {
std::vector<std::shared_ptr<Shape>> shapes() { return _shapes; }
const std::vector<st... | 8 | 3 | 0 | [{"id": "G0", "claim": "ShapeSet::add could use an assert instead of throwing std::runtime_error for a null shape.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The commented-out TrapezoidalMotion block in MotionControl::run() has weird formatt... | null |
RoboJackets__robocup-software__515 | RoboJackets/robocup-software | 515 | defect | 38f77108cdec6a44dadcda9449e3b3c15aae8277 | 5ab585ebf6ebfea7ec6d5ebf59b5ce374bf9da8c | Initial implementation of Angles in Paths | Adds ability to add angle functions to paths as well as paths being able to return angle positions.
Closes #490.
| diff --git a/common/Geometry2d/Arc.cpp b/common/Geometry2d/Arc.cpp
index 6ddfa587dbc..39fa2f3c8ef 100644
--- a/common/Geometry2d/Arc.cpp
+++ b/common/Geometry2d/Arc.cpp
@@ -31,7 +31,9 @@ vector<Point> Arc::intersects(const Line& line) const {
// One point
Point p{det * dy / drsq + cx, -det * dx / drsq... | 4 | 2 | 1 | [{"id": "G0", "claim": "AngleInstant's angle and angleVel members should not be boost::optional since AngleInstant itself is already optional inside RobotInstant.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doxygen comment on angleFunctionPath is ... | null |
RoboJackets__robocup-software__534 | RoboJackets/robocup-software | 534 | defect | ca0fb6878ec9d8f68b0d8ef55b7bc9175198132e | bee0fe04604482ef2f21cf9d1a9398f7f492d278 | Created tests for basic Geometry2d classes. Audited and Refactored Point, Segment, Line | Changes makefile to allow the execution of a subsection of all tests with TEST=\* or TEST=Point\* notation.
Added comprehensive tests to Point Class.
Added more tests to Line and Segment Class.
Refactored Segment to not be a subclass of Line.
Added nearlyEquals method in Geometry2d::Utils for float comparisons.
Fixed, ... | diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt
index f1506c64d4d..17297d8c35b 100644
--- a/common/CMakeLists.txt
+++ b/common/CMakeLists.txt
@@ -10,6 +10,7 @@ set(COMMON_SRC
"Geometry2d/Rect.cpp"
"Geometry2d/TransformMatrix.cpp"
"Geometry2d/CompositeShape.cpp"
+ "Geometry2d/Point.cpp"
... | 15 | 8 | 0 | [{"id": "G0", "claim": "The copy constructor of Line should not be marked `explicit`, since copy constructors usually omit it.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Keep the transform method on Line rather than commenting it out, even though it ... | null |
RoboJackets__robocup-software__595 | RoboJackets/robocup-software | 595 | defect | 315017f7a6e6c6ead0aa0930adee3a35c21f69de | d5fc4c0368cf3ee1971dd60b1bfee452285b4f45 | Made Geometry2d::Point's x, y methods | This allows syntax compatibility with Eigen::Vector2f. Code (such as the rrt repo) that is templated to allow for different point classes can use `Point` anywhere it can use `Eigen::Vector2f`.
- [x] for some reason, these changes seem to break path planning in some cases. need to investigate
| diff --git a/common/Geometry2d/Arc.cpp b/common/Geometry2d/Arc.cpp
index 2cc6d06f63a..abca79c72f4 100644
--- a/common/Geometry2d/Arc.cpp
+++ b/common/Geometry2d/Arc.cpp
@@ -10,13 +10,13 @@ namespace Geometry2d {
vector<Point> Arc::intersects(const Line& line) const {
// http://mathworld.wolfram.com/Circle2d-Lin... | 4 | 2 | 0 | [{"id": "G0", "claim": "Add the `inline` specifier to the trivial Point accessor methods, in case the compiler does not inline them for some reason.", "category": "performance", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Coordinate access in Point.hpp is inconsistent, mixing ... | null |
RoboJackets__robocup-software__693 | RoboJackets/robocup-software | 693 | defect | 96111932a10e501e1d30cc154949ca25dddd5b25 | 075ebb4a8ba978b7d510d2efd99d83ff4195d319 | Implements Pivot Planner | Closes #446. Implements Pivot Planner. Refactors PathPlanners to take in structs to make parameter changes easier while the api fluctuates. Add Robot Constraints class. Add Robot Constraints to Parameters.
| diff --git a/soccer/Processor.cpp b/soccer/Processor.cpp
index 8a8e86374d5..4f31da3f85a 100644
--- a/soccer/Processor.cpp
+++ b/soccer/Processor.cpp
@@ -448,7 +448,7 @@ void Processor::run() {
requests[r->shell()] = Planning::PlanRequest(
Planning::MotionInstant(r->pos, r->vel),
... | 2 | 1 | 0 | [{"id": "G0", "claim": "The Pivot/radius config value should perhaps default to Robot_Radius rather than 1.0.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "It would be nice to add a description string to the Pivot/radius config value.", "category": "maint... | null |
RoboJackets__robocup-software__697 | RoboJackets/robocup-software | 697 | defect | 26a50704746a4065e8c83e763db53b0c466b76c1 | b099863651f4ef2e3f9fc3a27aa166af0d7f00ac | Switch to RoboJackets RRT library | This isn't quite done yet, but is fairly close. This ideally shouldn't affect behavior or performance much at all and is mostly a swap-in replacement. After this is merged, I'd like to look into enabling and making use of some of the more advanced features this rrt library provides, such as ~goal-biased growth~, wayp... | diff --git a/.gitmodules b/.gitmodules
index 3aafee9c22d..32adf2a0008 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -13,3 +13,6 @@
[submodule "common"]
path = common
url = https://github.com/RoboJackets/robocup-common.git
+[submodule "external/rrt"]
+ path = external/rrt
+ url = https://github.com/robojackets/rrt
... | 6 | 3 | 2 | [{"id": "G0", "claim": "The PR's switch of the submodule setup calls to `submodule update --init --recursive` breaks CI builds because the old git on the CircleCI host stores the nested submodule gitdir links with absolute paths, and any fix must also keep working when builds are cached.", "category": "correctness", "v... | null |
RoboJackets__robocup-software__846 | RoboJackets/robocup-software | 846 | defect | d3a308f117e60652eb9c1d203521243001ed2039 | a0c0bb4410218b108b2ce0fb13ffd5f4183b7799 | Merge SinglePlanRequest and PlanRequest structs. | PlanRequest encapsulates all of the information in a SinglePlanRequest making these two structs redundant. This removes SinglePlanRequest in favor of PlanRequest.
It also refactors PlanRequest into its own header since it's being used in a more generic way now.
closes #843 | diff --git a/soccer/planning/DirectTargetPathPlanner.cpp b/soccer/planning/DirectTargetPathPlanner.cpp
index 40cb1cd9bf2..3357ea704f5 100644
--- a/soccer/planning/DirectTargetPathPlanner.cpp
+++ b/soccer/planning/DirectTargetPathPlanner.cpp
@@ -3,15 +3,15 @@
namespace Planning {
-std::unique_ptr<Path> DirectTarget... | 3 | 3 | 0 | [{"id": "G0", "claim": "The commented-out line `// WorldVelTargetCommand cmd(Point(0, 1));` in TargetVelPathPlannerTest.cpp can probably be deleted.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Since PlanRequest.hpp is the new replacement stru... | null |
RoboJackets__robocup-software__915 | RoboJackets/robocup-software | 915 | defect | c5ded672ebf4f02077efeed674b565b245416fac | 3da5f51ccdc077cc6ef19ed58f296af2d6d107c5 | Combine Window Eval and Kick Eval | Closes #298 #892 #902
Would close PR #896 too
I found a closed form solution that should combine the two.
The idea is that there are 3 main probability / score distributions that need to be used to evaluate this.
1. Where the robot might be
2. What consists of a good kick
3. Our kick distribution
Distributi... | diff --git a/soccer/CMakeLists.txt b/soccer/CMakeLists.txt
index ce6faf246d1..52cffa0b7a8 100644
--- a/soccer/CMakeLists.txt
+++ b/soccer/CMakeLists.txt
@@ -36,6 +36,7 @@ set(ROBOCUP_LIB_SRC
"joystick/GamepadController.cpp"
"joystick/GamepadJoystick.cpp"
"joystick/SpaceNavJoystick.cpp"
+ "KickEvaluato... | 14 | 10 | 1 | [{"id": "G0", "claim": "The pull request fails to build with cmake, which says it cannot find a file (a referenced source file was not committed).", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The std::function member does not need to be stored as ... | null |
RoboJackets__robocup-software__958 | RoboJackets/robocup-software | 958 | defect | 336e7924ba75b88ae388bee1d0a9e9d61f82aa73 | d4d2f917159a11120f2a7109803bc8966cb704b9 | Adaptive formation | Will close #822
I'm still working on this, but I'm getting close to the point of being ready to merge.
- [x] Put the final touches on the defense
- [x] Clean up a few bugs
- [x] Lots of code cleanup | diff --git a/common b/common
index 75cfcfc6b3e..6f32ae3196d 160000
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit 75cfcfc6b3e221ab06c97f3343bf6841b5416968
+Subproject commit 6f32ae3196d57733e4bb3965063ffd93d5155f35
diff --git a/soccer/CMakeLists.txt b/soccer/CMakeLists.txt
index 52cffa0b7a8..bb3349bd451 10064... | 24 | 20 | 7 | [{"id": "G0", "claim": "The fine-approach multiplier probably needs a lot of tuning once things work on real robots, and it would be nice to optimize everything at that point.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer could not... | null |
RoboJackets__robocup-software__977 | RoboJackets/robocup-software | 977 | defect | 52bb898820ec6bad3e689970ec8d9ecc95f3afd3 | d23721e47045eef19628dea22910ccdaf4be27ee | Better way of finding the best point in passing / one touch | This is an addition to the adaptive formation stuff. I split it up since this is could cause some major stability problems since it bridges the python / cpp in a weird way and the setup in adaptive formation works ok for now.
- [x] Finish up python interface
- [x] Clean up code / comments
- [x] Implement for passi... | diff --git a/doc/Mathematical_Optimization.md b/doc/Mathematical_Optimization.md
new file mode 100644
index 00000000000..f9f1276f50c
--- /dev/null
+++ b/doc/Mathematical_Optimization.md
@@ -0,0 +1,46 @@
+
+# Mathematical Optimization
+
+Mathematical optimization involves the maximization or minimization of a function t... | 6 | 3 | 1 | [{"id": "G0", "claim": "The PyObject* python callback stored in the std::function is called later by the C++ side, so its reference count needs to be incremented to keep the python function alive.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The n... | null |
RoboSats__robosats__1326 | RoboSats/robosats | 1,326 | defect | daf9ce4d3f1009acd9b443ba0e743f113cec9641 | 1bea1e97a11556005aaca9874d80474cba00e7a0 | Add cancel_status param to the cancel order action | ## What does this PR do?
Fixes #1311
This PR adds the `cancel_status` parameter to the `POST /api/order` endpoint for users to specify the status in which an order should be for the cancellation to take place.
## Checklist before merging
- [x] Install [pre-commit](https://pre-commit.com/#installation) and initi... | diff --git a/api/logics.py b/api/logics.py
index 7049e21ce..f5d347d15 100644
--- a/api/logics.py
+++ b/api/logics.py
@@ -991,7 +991,7 @@ def is_penalized(user):
return False, None
@classmethod
- def cancel_order(cls, order, user, state=None):
+ def cancel_order(cls, order, user, cancel_status=None... | 9 | 8 | 0 | [{"id": "G0", "claim": "The explanatory doc text added to api-latest.yaml will likely be lost because that file is auto-generated; the comments should be added to oas_schemas.py (as in #1325) so the regenerated yaml always has this text.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": ... | null |
RoboSats__robosats__1347 | RoboSats/robosats | 1,347 | defect | 10f88e3b5d6a72ed56c742aa5f68bc0269ebff9b | 53a5c847ef33dd119572a7b83c51a75eacb02bec | Notifications api endpoint | ## What does this PR do?
This PR introduces a new API endpoint for the robot to fetch all notifications sent to it. To reduce bandwidth it allows to filter by the creation date.
A new table Notification has been created to have a place to store these notifications.
## Checklist before merging
- [x] Install [pre... | diff --git a/api/management/commands/telegram_watcher.py b/api/management/commands/telegram_watcher.py
index 40e3cb4cb..44ce5c69e 100644
--- a/api/management/commands/telegram_watcher.py
+++ b/api/management/commands/telegram_watcher.py
@@ -6,7 +6,7 @@
from django.db import transaction
from api.models import Robot
... | 1 | 1 | 0 | [{"id": "G0", "claim": "get_notifications() stores its response in trade.response, so tests should keep the latest notification in a separate attribute (e.g. trade.notification) instead of overwriting the latest order response.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introdu... | null |
RoboSats__robosats__2038 | RoboSats/robosats | 2,038 | defect | 0763b5812b5b6cebbbd7d49ccc5fee9f26b20884 | e90701a0e9bbb3506359667cc4efd64b127a6da1 | add option for routing_budget_ppm in /api/rewards | ## What does this PR do?
This PR uniforms the `/api/rewards` with the `/api/order` `update_invoice` (changed in #326), adding the option `routing_budget_ppm` in `/api/rewards`, and thus fixing #1382 for the backend.
An other pull request implementing it in the frontend is needed (maybe to be incorporated in #1973). T... | diff --git a/.env-sample b/.env-sample
index 64b12a5aa..3d1fa601e 100644
--- a/.env-sample
+++ b/.env-sample
@@ -139,7 +139,6 @@ EXP_TAKER_BOND_INVOICE = 200
# Proportional routing fee limit (fraction of total payout: % / 100)
PROPORTIONAL_ROUTING_FEE_LIMIT = 0.001
# Base flat limit fee for routing in Sats (used onl... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a new test that sends a custom routing_budget_ppm value instead of leaving only the existing test with a hard-coded 0.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
RoboSats__robosats__2127 | RoboSats/robosats | 2,127 | defect | 7885937601f60275435aef247295e31068d71353 | e305cf6d08f85c9798ca6342ef0b3440060e9dcb | Error responses codes | ## What does this PR do?
Fixes https://github.com/RoboSats/robosats/issues/1383
This PR introduces error codes into the API and chat to simplify error handling and the debugging of the code.
There should be no functional changes apart from the new `error_code` field in 400 status code responses.
> [!Note]
> ... | diff --git a/api/errors.py b/api/errors.py
new file mode 100644
index 000000000..2a60340d8
--- /dev/null
+++ b/api/errors.py
@@ -0,0 +1,117 @@
+ERRORS = {
+ # 1000 - Bad request
+ 1000: "You are already maker of an active order",
+ 1001: "You are already taker of an active order",
+ 1002: "You are already t... | 2 | 1 | 1 | [{"id": "G0", "claim": "The error codes in robosats/middleware.py are misaligned with the codes defined in api/errors.py: the invalid-token response should use 7000 instead of 7001, the missing-pubkey/keys response should use 7001 instead of 7002, and the invalid-keys response should use 7002 instead of 7003.", "catego... | null |
RoboSats__robosats__2164 | RoboSats/robosats | 2,164 | defect | 962d2e68a269fdbf13515ed45870e7d47e7d611e | 8d4c8329fbdfb591c3c9c702d5c0a3192b0d856d | Replace API values with frontend orders aggregation | ## What does this PR do?
Fixes https://github.com/RoboSats/robosats/issues/2051.
This PR changes the way in which the number of similar orders and premium percentile is calculated.
### Tests
<details><summary>Best premium</summary>
<img width="767" height="589" alt="premium" src="https://github.com/user-at... | diff --git a/api/serializers.py b/api/serializers.py
index dc10ac25a..d51fd5bd5 100644
--- a/api/serializers.py
+++ b/api/serializers.py
@@ -237,14 +237,6 @@ class OrderDetailSerializer(serializers.ModelSerializer):
premium_now = serializers.FloatField(
required=False, help_text="Premium over the CEX pric... | 1 | 1 | 0 | [{"id": "G0", "claim": "Use the `federationUpdatedAt` field as the useMemo dependency here and below, instead of `federation.book`, in PublicWait.tsx.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
RoboSats__robosats__2304 | RoboSats/robosats | 2,304 | defect | babfde0cc8a186a760e0810c3adbd77cc2e9e2fa | ac7f7fd00f758358ef67cf6921ea150382e8a270 | change escrow duration from 8 - 10 hrs | ## What does this PR do?
Fixes # https://github.com/RoboSats/robosats/issues/2234
This pr increases the maximum allowed escrow time from 8 to 10 hours
## Checklist before merging
- [ ] Install [pre-commit](https://pre-commit.com/#installation) and initialize it: `pip install pre-commit`, then `pre-commit instal... | diff --git a/api/models/order.py b/api/models/order.py
index 7e825bce4..612486fdd 100644
--- a/api/models/order.py
+++ b/api/models/order.py
@@ -125,7 +125,7 @@ class ExpiryReasons(models.IntegerChoices):
null=False,
validators=[
MinValueValidator(60 * 30), # Min is 30 minutes
- ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The frontend Maker form was not tested and likely needs modifications to reflect the new escrow duration.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The change should be reflected in tests/test_trade_pipeline.py, specific... | null |
RoboSats__robosats__2368 | RoboSats/robosats | 2,368 | defect | fb0f138e9f9efbf8aed767be66f3558ed63bb6df | f01b5bb640be8d4e1e5ccbe614367b9484b557b4 | fix:return 200 OK on successful order cancel | ## What does this PR do?
Fixes #1245
### What was happening?
When a user successfully cancelled their order, the API was returning a confusing `400 Bad Request` error — even though the cancellation actually worked! This happened because after cancelling, the code fell through to `self.get()`, which sees "oh, this ... | diff --git a/api/views.py b/api/views.py
index 8bfaf9f3e..2c8e7c264 100644
--- a/api/views.py
+++ b/api/views.py
@@ -558,6 +558,15 @@ def take_update_confirm_dispute_cancel(self, request, format=None):
if not valid:
return Response(context, status.HTTP_400_BAD_REQUEST)
+ order... | 2 | 2 | 2 | [{"id": "G0", "claim": "Add checks for the cancel status (200 OK response) in tests/test_trade_pipeline.py, since the new success path is untested.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new 200 OK cancel response no longer includes the `bad... | null |
RoboVerseOrg__RoboVerse__275 | RoboVerseOrg/RoboVerse | 275 | defect | 8107a726122e53068819efaae156039dc95e1e60 | 71d00b03439766095c4145bb33b6e08fe9c8779e | [add] skillblender:Reaching & h1_wrist_cfg | 1. fix https://github.com/RoboVerseOrg/RoboVerse/issues/268 in isaacgym, no tasks require calling the `set_actor_scale` function on the robot. It can tested with command described in that issue.
2. add task `skillblender:Reaching`
3. add robot `h1_wrist_cfg.py` with [pr in dataset](https://huggingface.co/datasets/Ro... | diff --git a/docs/source/roboverse_learn/reinforcement_learning/skillblender_rl.md b/docs/source/roboverse_learn/reinforcement_learning/skillblender_rl.md
index d28efb62c..ea653a75b 100644
--- a/docs/source/roboverse_learn/reinforcement_learning/skillblender_rl.md
+++ b/docs/source/roboverse_learn/reinforcement_learnin... | 3 | 2 | 2 | [{"id": "G0", "claim": "Removing self.gym.simulate(self.sim) from set_states may leave the simulation state inconsistent after setting states, so the reviewer suggests keeping the line.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull request... | null |
RobotLocomotion__drake__21014 | RobotLocomotion/drake | 21,014 | defect | 9450b456edd2727f7dee2518e8496a7e5c39c6ca | 65e9368c91375d270f364a8f0e2a1a7237f95277 | Return bindings from KinematicTrajectoryOptimization Add* methods. | Resolves #20894.
+@nepfaff for feature review, please.
<!-- Reviewable:start -->
- - -
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/RobotLocomotion/drake/21014)
<!-- Reviewable:end -->
| diff --git a/planning/trajectory_optimization/kinematic_trajectory_optimization.cc b/planning/trajectory_optimization/kinematic_trajectory_optimization.cc
index a7699d58d1d3..d09c971671ca 100644
--- a/planning/trajectory_optimization/kinematic_trajectory_optimization.cc
+++ b/planning/trajectory_optimization/kinematic_... | 3 | 3 | 0 | [{"id": "G0", "claim": "The name `t` for what AddL2NormCostUsingConicConstraint returns is confusing enough that the reviewer had to look up the function docs, and suggests using a structured binding (or a clearer name) instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introd... | null |
RobotLocomotion__drake__22199 | RobotLocomotion/drake | 22,199 | defect | cbaecbab0df1c3b55aff45d4f756c6f89f6db899 | 3835c9c24b56f750d779fea64730138237efd249 | Add Generic Binding<Cost> and Binding<Constraint> to vertices and edges within a GcsTrajectoryOptimization::EdgesBetweenSubgraphs | Closes #21981.
This PR builds off of #22179, so let's hold off on feature review until that lands. (I'll update this branch based on any changes made to that PR before it merges.)
<!-- Reviewable:start -->
- - -
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Re... | diff --git a/bindings/pydrake/planning/planning_py_trajectory_optimization.cc b/bindings/pydrake/planning/planning_py_trajectory_optimization.cc
index 8152f4e6bfd8..3e50ece74de2 100644
--- a/bindings/pydrake/planning/planning_py_trajectory_optimization.cc
+++ b/bindings/pydrake/planning/planning_py_trajectory_optimizat... | 1 | 1 | 0 | [{"id": "G0", "claim": "The documentation for the EdgesBetweenSubgraphs AddEdgeCost(Binding<Cost>) overload should still mention that the binding can only use the placeholder variables, since they enter the edges slightly differently.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "in... | null |
RobotLocomotion__drake__22220 | RobotLocomotion/drake | 22,220 | defect | cbaecbab0df1c3b55aff45d4f756c6f89f6db899 | 29b87ea4cd550bcc8a3862575278d2d408c3e3dc | Compute Minimal Representation of Degenerate VPolytopes | Closes #22218.
+@hongkai-dai for feature review if you're avaiable?
<!-- Reviewable:start -->
- - -
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/RobotLocomotion/drake/22220)
<!-- Reviewable:end -->
| diff --git a/bindings/pydrake/geometry/geometry_py_optimization.cc b/bindings/pydrake/geometry/geometry_py_optimization.cc
index 43adbfb77db4..c5b79a786e00 100644
--- a/bindings/pydrake/geometry/geometry_py_optimization.cc
+++ b/bindings/pydrake/geometry/geometry_py_optimization.cc
@@ -526,7 +526,7 @@ void DefineConvex... | 4 | 4 | 0 | [{"id": "G0", "claim": "The one-dimensional single-point test should use a non-zero value instead of 0 to make the initialization non-trivial.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test could use vertices().row(0).minCoeff()/maxCoeff() inst... | null |
RobotLocomotion__drake__22260 | RobotLocomotion/drake | 22,260 | defect | 4b762d11a0d4b0442888b61f53632a440c061a58 | 233811c9b99cba594a514668ba3f3f70858b2558 | update individual entry in A/b of some costs. | Including LInfNormCost, L1NormCost, PerspectiveQuadraticCost.
Resolves #22131
<!-- Reviewable:start -->
- - -
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/RobotLocomotion/drake/22260)
<!-- Reviewable:end -->
| diff --git a/bindings/pydrake/solvers/solvers_py_evaluators.cc b/bindings/pydrake/solvers/solvers_py_evaluators.cc
index 471225311153..5d4973486317 100644
--- a/bindings/pydrake/solvers/solvers_py_evaluators.cc
+++ b/bindings/pydrake/solvers/solvers_py_evaluators.cc
@@ -691,7 +691,11 @@ void BindEvaluatorsAndBindings(p... | 2 | 1 | 0 | [{"id": "G0", "claim": "The doc comments of the new update_A_entry/update_b_entry methods should document that they throw when i (or j) is an invalid index, applying to all the new entry methods and using the @throws wording.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"... | null |
RobotLocomotion__drake__22262 | RobotLocomotion/drake | 22,262 | defect | e03af3303cbe537319178a9c83c4c252a51879ef | d78e83a0b4ed284e692b7b084e3e70e3dce3fcea | Support (opt-in) derivatives in FunctionHandleTrajectory. | Resolves #22076.
+@cohnt for feature review, please.
<!-- Reviewable:start -->
- - -
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/RobotLocomotion/drake/22262)
<!-- Reviewable:end -->
| diff --git a/bindings/pydrake/test/trajectories_test.py b/bindings/pydrake/test/trajectories_test.py
index 1acd57842b37..af8e190622d6 100644
--- a/bindings/pydrake/test/trajectories_test.py
+++ b/bindings/pydrake/test/trajectories_test.py
@@ -215,12 +215,12 @@ def test_exponential_plus_piecewise_polynomial(self):
... | 6 | 5 | 1 | [{"id": "G0", "claim": "The derivative callback's output shape should be validated (a throw, or at least a DRAKE_ASSERT in debug builds), or failing that the requirement that the output shape match the shape of value should be documented, since a poorly-defined callback otherwise causes very hard-to-diagnose segfaults.... | null |
RobotLocomotion__drake__22369 | RobotLocomotion/drake | 22,369 | defect | 3cffc1e6d285fe16d0015c96b7233963b33aa1dc | f741e6cb459663d9be445a0852989c8cfd3efd81 | Makes GCS clonable and implements ImplicitGcsFromExplicit | Resolves #22307.
+@shaoyuancc for feature review, please.
<!-- Reviewable:start -->
- - -
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/RobotLocomotion/drake/22369)
<!-- Reviewable:end -->
| diff --git a/bindings/pydrake/geometry/geometry_py_optimization.cc b/bindings/pydrake/geometry/geometry_py_optimization.cc
index a982ade6a2e1..f525acdf189a 100644
--- a/bindings/pydrake/geometry/geometry_py_optimization.cc
+++ b/bindings/pydrake/geometry/geometry_py_optimization.cc
@@ -978,12 +978,30 @@ void DefineGrap... | 12 | 9 | 0 | [{"id": "G0", "claim": "The implicit-GCS tests should also include a test, like the one in graph_of_convex_sets_test.cc, that checks that costs and constraints are correctly cloned.", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In AddVertexFromTemplate (... | null |
RobotLocomotion__drake__22456 | RobotLocomotion/drake | 22,456 | defect | d958145386302bac6524fec7b04dc3ae4638d9a1 | 595060ccf190b1c85584db1b18f9bfb530b3cb34 | [workspace] Disable unwanted highway targets globally | This reduces the risk of accidental ODR violations.
Also tidies up some other highway residue:
- Upgrade the boxes_overlap_test to loop through all targets.
- Finish renaming the pose functions file.
Closes #21850.
<!-- Reviewable:start -->
- - -
This change is [<img src="https://reviewable.io/review_button.sv... | diff --git a/common/BUILD.bazel b/common/BUILD.bazel
index edc144be6097..30c9bcfa62e8 100644
--- a/common/BUILD.bazel
+++ b/common/BUILD.bazel
@@ -387,44 +387,6 @@ drake_cc_library(
"hwy_dynamic.h",
"hwy_dynamic_impl.h",
],
- defines = [
- # Highway automatically compiles our code that ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The explanatory paragraph (and the hwy_dynamic.h include) should live in drake/hwy_test_util.h, which would also be a nice place to document the pattern for instantiating highway tests, since the parameterized-test incantation requires careful documentation — the test is parameterized without an... | null |
RobotLocomotion__drake__22497 | RobotLocomotion/drake | 22,497 | defect | 88e24c74156b84ab3a3da65684faa90b29c17aff | 7a0ebb24b81ac744d903eb62d58e13690aa99d63 | Fix "ref" attribute handling in mujoco parser | Resolves #22462 (and the extensive discussion therein). MuJoCo's ref doesn't change the posture of the model, it says that the posture in the mjcf should be treated not as zero, but as ref.
+@joemasterjohn for feature review, please.
<img width="351" alt="image" src="https://github.com/user-attachments/assets/355... | diff --git a/multibody/parsing/detail_mujoco_parser.cc b/multibody/parsing/detail_mujoco_parser.cc
index 5fd02eb61f37..911882b6de0c 100644
--- a/multibody/parsing/detail_mujoco_parser.cc
+++ b/multibody/parsing/detail_mujoco_parser.cc
@@ -35,6 +35,7 @@ namespace multibody {
namespace internal {
using drake::interna... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment describing the slide-joint ref handling says \"translating the joint origin by -ref*axis\" while the code applies a plus-signed RigidTransformd(ref*axis), so the comment or the code should be rephrased so it does not look like a missed minus sign (and likewise in the hinge stanza).",... | null |
RobotLocomotion__drake__22552 | RobotLocomotion/drake | 22,552 | defect | f0491123241fe89401adb45ca715b7fd61950d11 | 146c4130367a5cc386078a3b4acb944ad9d6df37 | Convert kintrajopt to use AsLinearInControlPoints | Resolves #22533.
This includes a small breaking change. The vector<vector<Binding>> return types for KinematicTrajectoryOptimization AddAccelerationBounds and AddJerkBounds are now vector<Bindings>.
+@cohnt for feature review, please? This cleaning things up significantly, imo.
<!-- Reviewable:start -->
- - -
T... | diff --git a/planning/trajectory_optimization/kinematic_trajectory_optimization.cc b/planning/trajectory_optimization/kinematic_trajectory_optimization.cc
index d593eb8509b2..23c7d3da302b 100644
--- a/planning/trajectory_optimization/kinematic_trajectory_optimization.cc
+++ b/planning/trajectory_optimization/kinematic_... | 8 | 6 | 0 | [{"id": "G0", "claim": "The @returns documentation for the new binding-returning methods (AddVelocityBounds/AddAccelerationBounds/AddJerkBounds) is unclear about what \"position\" means and what the interleaving order is, and should explain the convex hull property that lets constraining control points enforce the boun... | null |
RobotLocomotion__drake__22599 | RobotLocomotion/drake | 22,599 | defect | 1c496a395ea95e6cc9d8d2ddccd4fa098d8323bd | a59ff520e0a07347dd91d3c33d63194900a1ff19 | KinematicTrajectoryOptimization adds velocity linear constraint. | Use the placeholder variable in the constraint binding. Adds a linear constraint on the decision variable when the user wants lb <= A * qdot(s * T) <= ub.
Also resolves #22532
<!-- Reviewable:start -->
- - -
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="R... | diff --git a/planning/trajectory_optimization/kinematic_trajectory_optimization.cc b/planning/trajectory_optimization/kinematic_trajectory_optimization.cc
index 77320a1ee2fb..2bcc55aa93b9 100644
--- a/planning/trajectory_optimization/kinematic_trajectory_optimization.cc
+++ b/planning/trajectory_optimization/kinematic_... | 8 | 5 | 1 | [{"id": "G1", "claim": "The docstring for AddVelocityConstraintAtNormalizedTime should include a two-line code example and reference the renamed qdot() accessor instead of the stale placeholder_qdot_vars().", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "cl... | null |
RobotLocomotion__drake__22640 | RobotLocomotion/drake | 22,640 | defect | 3d05cc0f71304358066e60215c2830a304c5f04f | 1e49c640a5ecb87a687b3a9cf14b36231e78e4fa | Implements hydro box mesh with faces split into four triangles | Closes #22213.
As discussed in #22213, our hydro boxes customized to discretize the MA with a minimum number of tetrahedra do not play well with discrete schemes.
The solution proposed in #22213 is a custom box mesh that respects the MA, uses a coarse discretization of the box, but that it splits each face into fou... | diff --git a/geometry/proximity/hydroelastic_internal.cc b/geometry/proximity/hydroelastic_internal.cc
index bc2d816b8a10..b474528ac2de 100644
--- a/geometry/proximity/hydroelastic_internal.cc
+++ b/geometry/proximity/hydroelastic_internal.cc
@@ -458,7 +458,7 @@ std::optional<SoftGeometry> MakeSoftRepresentation(
... | 6 | 6 | 1 | [{"id": "G0", "claim": "Move the closing `} // namespace` in make_box_mesh.cc below the newly added generator functions so they stay local to the file and cannot cause linker errors for Drake users.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Th... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.