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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Minestom__Minestom__1426 | Minestom/Minestom | 1,426 | defect | b37bef427f956270e6e10ed5905ead88bd1bbfcc | 2d076b2b4a137a74e878e76aaa931f99d5d3096e | Velocity packet fix | Aiming to fix the issue #1413 I pointed out about a week ago, here's what this PR does:
- When an entity has no velocity, and the latest sent velocity update corresponds to this same state, we no longer send another packet to notify the client of an inexistent change.
If however the entity has velocity, even if tha... | diff --git a/src/main/java/net/minestom/server/entity/Entity.java b/src/main/java/net/minestom/server/entity/Entity.java
index 61959a508f7..91fab8c455a 100644
--- a/src/main/java/net/minestom/server/entity/Entity.java
+++ b/src/main/java/net/minestom/server/entity/Entity.java
@@ -86,6 +86,8 @@
public class Entity impl... | 3 | 1 | 1 | [{"id": "G0", "claim": "Make the velocity update interval changeable via system properties.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The update interval should at least be changeable (or have a default value) on a per-entity-type basis instead of b... | null |
Minestom__Minestom__1670 | Minestom/Minestom | 1,670 | defect | 0488915fdaff4b51c4375da27be2dcf79215435d | e932017a111b35dd52e4e8e851001090712b9e84 | Use MinestomDataGenerator updated for 1.19.3 | This PR updates the MinestomDataGenerator dependency to the one updated for 1.19.3. | diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
index cbd857821bc..5f11fa724dc 100644
--- a/gradle/libs.versions.toml
+++ b/gradle/libs.versions.toml
@@ -7,7 +7,8 @@ adventure = "4.11.0"
kotlin = "1.6.20"
hydrazine = "1.7.2"
dependencyGetter = "v1.0.1"
-minestomData = "76da04ca1d"
+minestomData = ... | 2 | 2 | 1 | [{"id": "G0", "claim": "Do not use snapshot builds for the minestomData dependency (1.19.3-SNAPSHOT); pin a concrete version instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The commented-out previous minestomData version line should not be added ... | null |
Minestom__Minestom__2060 | Minestom/Minestom | 2,060 | defect | f09d3db9995f779166549c63fc1d26d98cd981d7 | 4f6eb81ea06bca56973c6947bad3fb77229c0576 | feat: proper passenger position handling for most entities, fix passengers not always being applied to the client, don't sync passengers | Fix description: Passengers would get their updateNewViewer() forcibly called by the passenger loop in Entity#updateNewViewer, this applies the required packets correctly in theory. However, after this loop runs, the viewer engine still adds all the entities automatically which calls updateNewViewer again: sends a new ... | diff --git a/src/main/java/net/minestom/server/entity/Entity.java b/src/main/java/net/minestom/server/entity/Entity.java
index 2434f61c29f..abbaa59e5b1 100644
--- a/src/main/java/net/minestom/server/entity/Entity.java
+++ b/src/main/java/net/minestom/server/entity/Entity.java
@@ -577,7 +577,7 @@ public void tick(long t... | 1 | 1 | 0 | [{"id": "G0", "claim": "The passenger position mutation should be done in a single withCoord call like before, since the chained version is not more readable and does one more allocation.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Minestom__Minestom__2201 | Minestom/Minestom | 2,201 | defect | 0f81bc31ff04eed997c92431e1c42a28a230b4cc | d632017a541665748c5df8b43e95ac289ac5176e | Autogenerate Feature Flags | Do not pull until MinestomDataGenerator 1.21-rc2 is released; this depends on a JSON generated by it and has that version set in the `libs.versions.toml`. Without it __this code will not work__.
Adds autogeneration of Feature Flags into a static constant file at `net.minestom.server.FeatureFlags`.
~~TODO: Check if... | diff --git a/code-generators/src/main/java/net/minestom/codegen/FeatureFlagGenerator.java b/code-generators/src/main/java/net/minestom/codegen/FeatureFlagGenerator.java
new file mode 100644
index 00000000000..fe35c349108
--- /dev/null
+++ b/code-generators/src/main/java/net/minestom/codegen/FeatureFlagGenerator.java
@@... | 4 | 3 | 0 | [{"id": "G0", "claim": "Add a factory method to FeatureFlag so people (mods) can create their own feature flags instead of being restricted to entries declared in the registry JSON.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The FeatureFlagGenerator ma... | null |
Minestom__Minestom__228 | Minestom/Minestom | 228 | defect | 2606f2b291df2436f399b8a9332d1d7b4e00c366 | dfae6ad5f8dd07dc4608f5babd7676767237b1a0 | Add ArgumentMap | This adds ArgumentMap, along with the functional interface ArgumentMapper, to simplify processing of complex objects in commands. | diff --git a/src/main/java/net/minestom/server/command/builder/ArgumentMapper.java b/src/main/java/net/minestom/server/command/builder/ArgumentMapper.java
new file mode 100644
index 00000000000..07b944fd317
--- /dev/null
+++ b/src/main/java/net/minestom/server/command/builder/ArgumentMapper.java
@@ -0,0 +1,26 @@
+packa... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new ArgumentMapper interface may be unnecessary — why not just use a Function for the mapping lambda?", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new Argument.map method should be annotated with @Beta since an alternate... | null |
Minestom__Minestom__2294 | Minestom/Minestom | 2,294 | defect | 1f34e60ea634d992bdaf98079053d99955f92a43 | 82ee4f8b009157c2366f752cbf3641ea6ba034c9 | Remove cursor items from individual inventories | Each inventory, as well as the player inventory, having its own inventory was rather complicated. Now, only player inventories have a cursor item.
Breaking changes:
- Removed a few functions from `Inventory`
- Clearing an `Inventory` no longer clears the cursor item (you must clear the player inventory for that)
... | diff --git a/src/main/java/net/minestom/server/entity/Player.java b/src/main/java/net/minestom/server/entity/Player.java
index 1b57ef3e2ef..9e3a16a1154 100644
--- a/src/main/java/net/minestom/server/entity/Player.java
+++ b/src/main/java/net/minestom/server/entity/Player.java
@@ -1785,14 +1785,9 @@ public void closeInv... | 2 | 2 | 1 | [{"id": "G0", "claim": "The removed Inventory cursor methods getCursorItem and setCursorItem should come back as deprecated methods that proxy to the player inventory.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The clear() override in Inventory is no... | null |
Minestom__Minestom__2325 | Minestom/Minestom | 2,325 | defect | 461c56e7495b472d6c6a5f3d0c7b5abe4866adc9 | 41ff55ce249556b1a639b10f506feaf573f69375 | Add EquipmentSlot.BODY | Vanilla recently added `EquipmentSlot.BODY`, and since the equipment packet works by using enum ordinals, it has to be present in the Minestom enum as well.
This new equipment slot is in vanilla only used by horses, wolfs and llama's, but it is still generalized and every living entity except for players can have eq... | diff --git a/src/main/java/net/minestom/server/entity/EquipmentSlot.java b/src/main/java/net/minestom/server/entity/EquipmentSlot.java
index 79bd82afe8f..cabb3cc285c 100644
--- a/src/main/java/net/minestom/server/entity/EquipmentSlot.java
+++ b/src/main/java/net/minestom/server/entity/EquipmentSlot.java
@@ -12,7 +12,8 ... | 1 | 1 | 0 | [{"id": "G0", "claim": "isHand() should be implemented as `this == MAIN_HAND || this == OFF_HAND` instead of `!armor && this != BODY`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Minestom__Minestom__2340 | Minestom/Minestom | 2,340 | defect | dd96c907d98bb6a75d42c45a3fa318408cf97a5f | b27ce1809a9a20ffe49e423489e482570047c4f9 | Fix Instamine | WIP to fix instamine issues.
At this point this contains the breaking speed calculation.
At this time uses a custom version of the data generator, which is published on [my repo](https://nexus.darkcube.eu/repository/dasbabypixel/).
These changes are gonna have to be dropped when this is ready to merge, and the offic... | diff --git a/build.gradle.kts b/build.gradle.kts
index b9b55a567d6..f9d81fc885c 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -24,6 +24,7 @@ allprojects {
repositories {
mavenCentral()
+ maven("https://nexus.darkcube.eu/repository/dasbabypixel")
}
configurations.all {
diff -... | 11 | 9 | 1 | [{"id": "G0", "claim": "The commented-out attribute-toggle debug block in demo PlayerInit can just be deleted.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the ' Packet Start Digging' debug print from startDigging.", "category": "mainta... | null |
Minestom__Minestom__2484 | Minestom/Minestom | 2,484 | defect | bb7acc2e774944fb77f8b9d0dd4b23728408a920 | feb3ec12691a636876e1f1b5cf57b426f8ee5f3f | Implement transfer intent | Resolves #2196, closes #2473.
- Adds `OutgoingTransferEvent`.
- Adds `PlayerConnection#transfer(String, int)`.
- Adds `PlayerConnection#wasTransferred()`.
- Adds `/transfer` command to the demo project.
- I'm unsure about the Bungee comment in #2473. Needs to be tested. | diff --git a/demo/src/main/java/net/minestom/demo/Main.java b/demo/src/main/java/net/minestom/demo/Main.java
index 087ca866b76..0e05748b648 100644
--- a/demo/src/main/java/net/minestom/demo/Main.java
+++ b/demo/src/main/java/net/minestom/demo/Main.java
@@ -81,6 +81,7 @@ public static void main(String[] args) {
... | 8 | 7 | 2 | [{"id": "G0", "claim": "The instanceof condition in HandshakeListener.listener can be inverted into an early return to reduce nesting.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The Javadoc on PlayerConnection.wasTransferred() is not very he... | null |
Minestom__Minestom__2590 | Minestom/Minestom | 2,590 | defect | 1d0f512256d03eec6cc350a9e7b9c728771a293f | cc13a4238e4d4c1297f937b4bc68dd68ddbd5269 | Remove reset of values from PaletteIndirect | Currently, PaletteIndirect resets the values at the end of the constructor. This is unexpected behaviour given the values are passed as a constructor parameter and results in incorrect reading of palettes from NetworkBuffer. | diff --git a/src/main/java/net/minestom/server/instance/palette/PaletteIndirect.java b/src/main/java/net/minestom/server/instance/palette/PaletteIndirect.java
index 3cd3aa2e209..eff381467ca 100644
--- a/src/main/java/net/minestom/server/instance/palette/PaletteIndirect.java
+++ b/src/main/java/net/minestom/server/insta... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a test covering the constructor behaviour (the values reset this PR removes) to prevent the mistake from recurring.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
Minestom__Minestom__2607 | Minestom/Minestom | 2,607 | defect | f8e052b05cf690113d0de18ab0f9dac2b7f42e43 | 221712fdd11ac6e7ad433744c75f059a10f4ae7e | Update ClientVehicleMovePacket to 1.21.4 | When riding a boat, I got the following message from the demo server on the 1.21.4 branch:
`23:28:56.872 [] WARN net.minestom.server.network.packet.PacketReading - WARNING: Packet (ClientVehicleMovePacket) 0x20 not fully read (NetworkBuffer{r34|w35->16383, registries=true, autoResize=true, readOnly=false})`
It seem... | diff --git a/src/main/java/net/minestom/server/network/packet/client/play/ClientVehicleMovePacket.java b/src/main/java/net/minestom/server/network/packet/client/play/ClientVehicleMovePacket.java
index f72a18d96a3..74aba880dfe 100644
--- a/src/main/java/net/minestom/server/network/packet/client/play/ClientVehicleMovePac... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a JUnit5 test for the ClientVehicleMovePacket change so the topic does not regress further.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
Minestom__Minestom__2621 | Minestom/Minestom | 2,621 | defect | 1d0f512256d03eec6cc350a9e7b9c728771a293f | 01b3007d92fb64818e418bdc24467eea377cd0f6 | refactor: move from getUniqueId() to getUuid() and related | This PR solves #1616. See that issue for more details.
closes #1616
CHANGE: Public API of Instance has changed! getUniqueId() -> getUuid()
Old version is deprecated | diff --git a/src/main/java/net/minestom/server/instance/Instance.java b/src/main/java/net/minestom/server/instance/Instance.java
index df2ae7b6877..f26b22051e7 100644
--- a/src/main/java/net/minestom/server/instance/Instance.java
+++ b/src/main/java/net/minestom/server/instance/Instance.java
@@ -103,7 +103,7 @@ public ... | 4 | 2 | 1 | [{"id": "G0", "claim": "Keep the old getUniqueId() method, deprecated, instead of removing it, since it is trivial to maintain backwards compatibility for a grace period.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add forRemoval to the deprecation an... | null |
Minestom__Minestom__2718 | Minestom/Minestom | 2,718 | defect | 99d5eca2865499f6de4f42ce8a9030c7cea369ae | 0603d7763708f39f689f3dace1b192b8df2a42c1 | feat: add basic bed and sleep functionality | ## Proposed changes
This PR introduces a basic implementation of bed interaction in Minestom. It allows players to interact with bed blocks and simulates entering the sleeping state. This lays the groundwork for future support of Minecraft’s sleep mechanics and potential multiplayer sleep synchronization.
## Type... | diff --git a/demo/src/main/java/net/minestom/demo/Main.java b/demo/src/main/java/net/minestom/demo/Main.java
index deb7ae45921..4df9edccb22 100644
--- a/demo/src/main/java/net/minestom/demo/Main.java
+++ b/demo/src/main/java/net/minestom/demo/Main.java
@@ -6,6 +6,7 @@
import net.kyori.adventure.text.format.TextColor;
... | 1 | 1 | 0 | [{"id": "G0", "claim": "An enterBed or sleep method taking a position should be added to LivingEntity to mimic leaveBed, instead of callers reaching into the entity meta to set the sleeping position.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Minestom__Minestom__2768 | Minestom/Minestom | 2,768 | defect | 23b480cc646deb59049d201fdd4e6a62473362ce | a9f423c887d0301dcdafa5693a6b544d085711b6 | Prepare for the removal of TagStringIOExt | ## Proposed changes
Adventure 4.22.0 now has TagStringIOExt upstreamed; they might be more verbose, but they are accessible now.
## Types of changes
What types of changes does your code introduce to this project?
_Put an `x` in the boxes that apply_
- [x] Bugfix (non-breaking change which fixes an issue)
... | diff --git a/src/main/java/net/kyori/adventure/nbt/TagStringIOExt.java b/src/main/java/net/kyori/adventure/nbt/TagStringIOExt.java
index 41052ccee1f..59b560e0d90 100644
--- a/src/main/java/net/kyori/adventure/nbt/TagStringIOExt.java
+++ b/src/main/java/net/kyori/adventure/nbt/TagStringIOExt.java
@@ -7,12 +7,28 @@
//... | 3 | 3 | 2 | [{"id": "G0", "claim": "A single TagStringIO constant should be defined with heterogeneous lists enabled, since the targeted Minecraft version supports them and they should be the assumed default.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "ArgumentIt... | null |
Minestom__Minestom__2780 | Minestom/Minestom | 2,780 | defect | f9506f6821d0a940c8a0d6a8aa511ab70b0f01a6 | 4ed483d051f4bae65182fccc7588a96181570a36 | Palette API cleanup | Single implementation for the sealed Palette interface.
`AdaptivePalette` was sort of a mistake, added a lot of unnecessary code and redirection.
Added a newly exposed `Palette#optimize` (I welcome name suggestions for the enum)
Opening as draft as I may want to add some more low-level methods and perhaps ensu... | diff --git a/jmh-benchmarks/src/jmh/java/net/minestom/server/instance/palette/PaletteGetBenchmark.java b/jmh-benchmarks/src/jmh/java/net/minestom/server/instance/palette/PaletteGetBenchmark.java
index 5373ee47516..868577679e5 100644
--- a/jmh-benchmarks/src/jmh/java/net/minestom/server/instance/palette/PaletteGetBenchm... | 3 | 1 | 0 | [{"id": "G0", "claim": "The dimension/palette-bits constants (e.g. BLOCK_DIMENSION) should be pulled out of PaletteImpl and into the Palette interface.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The author should check and report the memory footprint... | null |
Minestom__Minestom__2794 | Minestom/Minestom | 2,794 | defect | b39badc77b89c2622f12790da403268669933e99 | 2e3623471dfc9dfc7d3a29c3256156d96a11a042 | feat(process): Dont start disptacher threads until server start | It should allow GraalVM native to build this path during build time, as it's not constrained by the Thread#start
## Types of changes
What types of changes does your code introduce to this project?
_Put an `x` in the boxes that apply_
- [ ] Bugfix (non-breaking change which fixes an issue)
- [ ] New feature (no... | diff --git a/src/main/java/net/minestom/server/MinecraftServer.java b/src/main/java/net/minestom/server/MinecraftServer.java
index 30f89901573..4dfc07a39e9 100644
--- a/src/main/java/net/minestom/server/MinecraftServer.java
+++ b/src/main/java/net/minestom/server/MinecraftServer.java
@@ -323,6 +323,7 @@ public static S... | 1 | 1 | 0 | [{"id": "G0", "claim": "The isAlive method in ThreadDispatcher should not use a stream (replace the stream implementation with a plain loop).", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
Minestom__Minestom__2796 | Minestom/Minestom | 2,796 | defect | a40d7115d44a230068432031c7fc04a62d7bde90 | 1a427a720937e9aca216eec7aa8a6e768ef23681 | Validate input key format in DialogInput records | This pull request introduces validation for input keys in various `DialogInput` record types within the `src/main/java/net/minestom/server/dialog/DialogInput.java` file. The validation ensures that input keys follow a specific pattern (`^[a-z0-9_]+) to maintain consistency and prevent invalid keys.
### Key Validatio... | diff --git a/src/main/java/net/minestom/server/dialog/DialogInput.java b/src/main/java/net/minestom/server/dialog/DialogInput.java
index 7575664ba29..bef9ee1f31a 100644
--- a/src/main/java/net/minestom/server/dialog/DialogInput.java
+++ b/src/main/java/net/minestom/server/dialog/DialogInput.java
@@ -31,6 +31,7 @@ recor... | 3 | 2 | 1 | [{"id": "G0", "claim": "The purpose of the new runtime-exception validation is unclear, and runtime exceptions feel more like an annoyance than a safety guard.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The key-validation rule should be the same as van... | null |
Minestom__Minestom__2821 | Minestom/Minestom | 2,821 | defect | 1eae168d9865a956e1fb3bfe24b0b26a462b4633 | 239f73b2c89905a1c4bdf59e00410671ed693775 | Slight event cleanup | Dont reinvent `Function`
Avoid anonymous listener impl
Recursive test seems to somehow pass now | diff --git a/src/main/java/net/minestom/server/event/EventHandler.java b/src/main/java/net/minestom/server/event/EventHandler.java
index b662f8f2743..f8af7f668f5 100644
--- a/src/main/java/net/minestom/server/event/EventHandler.java
+++ b/src/main/java/net/minestom/server/event/EventHandler.java
@@ -1,13 +1,10 @@
pack... | 2 | 1 | 1 | [{"id": "G0", "claim": "Renaming EventListener.run to apply (by making EventListener extend Function) is a relevant breaking change for code implementing EventListener on a class, and should be reverted by keeping the run method (or the PR moved to the next breaking branch).", "category": "design", "verdict": "supporte... | null |
Minestom__Minestom__2826 | Minestom/Minestom | 2,826 | defect | 4645394177ef1b5203446e309c464c91736c7d97 | 26efdb4a59c261c13b8db9b6256f43bd095edb93 | Split block occlusion and collision shapes | ## Proposed changes
This PR separates the occlusion and collision shapes of blocks. Previously, those were linked together in the `ShapeImpl` object.
For example, `ShapeImpl#isOccluded` would perform an occlusion check using the _occlusion shape_, but `ShapeImpl#relativeStart` (on the same shape) would return the... | diff --git a/src/main/java/net/minestom/server/collision/BlockCollision.java b/src/main/java/net/minestom/server/collision/BlockCollision.java
index 0925aa9a47b..54c414f0c15 100644
--- a/src/main/java/net/minestom/server/collision/BlockCollision.java
+++ b/src/main/java/net/minestom/server/collision/BlockCollision.java... | 1 | 1 | 0 | [{"id": "G0", "claim": "In parseCollisionShape the shape string can be hashed (used as the cache key) directly instead of wrapping it in a single-field ShapeEntry record.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Minestom__Minestom__2829 | Minestom/Minestom | 2,829 | defect | ecc5fd486fb7666e3d67d60e2da0e5bda32fbd8e | 1d6d2f1552bce0d867a0e70e053e42be98c764d8 | Send InventoryCloseEvent on player inventory close | ## Proposed changes
Fixes the event not previously being sent due to it relying on having a non-player inventory open.
## Types of changes
What types of changes does your code introduce to this project?
_Put an `x` in the boxes that apply_
- [x] Bugfix (non-breaking change which fixes an issue)
- [ ] New ... | diff --git a/src/main/java/net/minestom/server/entity/Player.java b/src/main/java/net/minestom/server/entity/Player.java
index 5b67e9c535b..9c054875166 100644
--- a/src/main/java/net/minestom/server/entity/Player.java
+++ b/src/main/java/net/minestom/server/entity/Player.java
@@ -1765,7 +1765,7 @@ public void closeInve... | 1 | 1 | 1 | [{"id": "G0", "claim": "Closing any window would trigger a player-inventory close because the change treats a null open inventory as the player inventory in every case, when only a close-window-0 packet from the client should indicate that.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope":... | null |
Minestom__Minestom__2834 | Minestom/Minestom | 2,834 | defect | 80da455fcc537e56796a3dde0e3f3fb6085c4bbb | bf60eef764d45c93e8b3fe7284fa57ea057f35b8 | BlockVec canonical constructor should take ints | Current implementation forces 3 flooring calls and require casting to retrieve block coordinates. Overhead should be moved to the case where doubles are explicitly provided.
This should be non-breaking in regard to `Point` but may still affect hash code and perhaps reflection.
I doubt it, but probably require rev... | diff --git a/src/main/java/net/minestom/server/collision/BlockCollision.java b/src/main/java/net/minestom/server/collision/BlockCollision.java
index 0925aa9a47b..43f6cf25c04 100644
--- a/src/main/java/net/minestom/server/collision/BlockCollision.java
+++ b/src/main/java/net/minestom/server/collision/BlockCollision.java... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new Point conversion method should be named asPos() instead of asPosition(), to line up with the other converters while the old fromPoint usage is being deprecated.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The @Deprecate... | null |
Minestom__Minestom__2840 | Minestom/Minestom | 2,840 | defect | 33d1fffa1aa915a89e4e419b75f67477e183810a | e6d71f308a47c970ee64f2f88d70eae93d3b131a | Anvil loader optimization | Tests going from 12sec to 4 (or 8 to 3 without the chunk lock)
Didn't do any additional check so perhaps there should be more tests. | diff --git a/src/main/java/net/minestom/server/instance/anvil/AnvilLoader.java b/src/main/java/net/minestom/server/instance/anvil/AnvilLoader.java
index daf8501ac6e..1259b225c69 100644
--- a/src/main/java/net/minestom/server/instance/anvil/AnvilLoader.java
+++ b/src/main/java/net/minestom/server/instance/anvil/AnvilLoa... | 3 | 2 | 0 | [{"id": "G0", "claim": "The pull request should come with more tests — the reviewer would feel better with additional test coverage for the changes.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "BlockLight and SkyLight copy the light array unconditiona... | null |
Minestom__Minestom__2852 | Minestom/Minestom | 2,852 | defect | b448f060a6e5d323d47e29d2eadb96908e78f1eb | 8dde23157b788a9011c1d2a5d0727df448239f57 | Fix block break speed being incorrect for instant break blocks and zero mining speed | ## Proposed changes
This fixes the issue with breaking a block that has zero hardness still instamines it even if the player has zero mining speed.
This fixes #2851.
## Types of changes
What types of changes does your code introduce to this project?
_Put an `x` in the boxes that apply_
- [X] Bugfix (non-b... | diff --git a/src/main/java/net/minestom/server/utils/block/BlockBreakCalculation.java b/src/main/java/net/minestom/server/utils/block/BlockBreakCalculation.java
index 1a11708bc5c..857d22da2ef 100644
--- a/src/main/java/net/minestom/server/utils/block/BlockBreakCalculation.java
+++ b/src/main/java/net/minestom/server/ut... | 3 | 3 | 1 | [{"id": "G0", "claim": "The zero-multiplier and zero-hardness checks should be moved above the calculation of `double damage = speedMultiplier / blockHardness;` instead of sitting after it.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The change t... | null |
Minestom__Minestom__2858 | Minestom/Minestom | 2,858 | defect | e33dda59cee6824a8029cf50234a26295650ee6c | 8cf7fd4eaef3f75ad3e98f371129a606d0025002 | feat: Player gamemode switcher (F3+F4) event | ## Proposed changes
I have added an event for the previously unhandled `ClientChangeGameModePacket` so that it can be used by servers.
## Types of changes
What types of changes does your code introduce to this project?
_Put an `x` in the boxes that apply_
- [ ] Bugfix (non-breaking change which fixes an is... | diff --git a/src/main/java/net/minestom/server/event/player/PlayerGameModeSwitcherEvent.java b/src/main/java/net/minestom/server/event/player/PlayerGameModeSwitcherEvent.java
new file mode 100644
index 00000000000..d1d46341b04
--- /dev/null
+++ b/src/main/java/net/minestom/server/event/player/PlayerGameModeSwitcherEven... | 4 | 4 | 0 | [{"id": "G0", "claim": "The event should be named PlayerGameModeRequestEvent instead of PlayerGameModeSwitcherEvent.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The listener class should be made final and renamed to PlayerChangeGameModeListener.", "ca... | null |
Minestom__Minestom__2866 | Minestom/Minestom | 2,866 | defect | 2341c1dec2e1c866267b9ac48a331501e090f4eb | 1494fa04d232de3fd1b1a2069a0ba0ae7a1e474b | Block entity incorrectly saving fix | ## Proposed changes
This fixes block entities not loading correctly if they aren't in the zeroth section of the chunk. The y level was saved as the section y level and not the actual y level. The change that caused this is here [https://github.com/Minestom/Minestom/commit/dbd342bac44525359c61aed99a4e83a530fb4af5#dif... | diff --git a/src/main/java/net/minestom/server/instance/anvil/AnvilLoader.java b/src/main/java/net/minestom/server/instance/anvil/AnvilLoader.java
index beb30ad3846..6052489ab6e 100644
--- a/src/main/java/net/minestom/server/instance/anvil/AnvilLoader.java
+++ b/src/main/java/net/minestom/server/instance/anvil/AnvilLoa... | 2 | 2 | 1 | [{"id": "G0", "claim": "In AnvilLoader.saveSectionData the saved block entity Y should be computed as `y + globalSectionY` instead of re-capturing sectionY and multiplying by CHUNK_SECTION_SIZE.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The loa... | null |
Minestom__Minestom__2867 | Minestom/Minestom | 2,867 | defect | 2341c1dec2e1c866267b9ac48a331501e090f4eb | e8d14bd0a5264d91bf26c3321160f1751bc57082 | Fix AnvilLoader not closing the region file if chunks weren't originally loaded by AnvilLoader | ## Proposed changes
This fixes `AnvilLoader` not closing region files if chunks weren't originally loaded by `AnvilLoader`. This can happen when generating a new instance and then saving the chunks. Then if you unregister the instance or unload the chunks, the region files are not closed.
## Types of changes
W... | diff --git a/src/main/java/net/minestom/server/instance/anvil/AnvilLoader.java b/src/main/java/net/minestom/server/instance/anvil/AnvilLoader.java
index beb30ad3846..3788cff91eb 100644
--- a/src/main/java/net/minestom/server/instance/anvil/AnvilLoader.java
+++ b/src/main/java/net/minestom/server/instance/anvil/AnvilLoa... | 4 | 4 | 2 | [{"id": "G0", "claim": "The fix will fail because the chunk coordinates are only added to perRegionLoadedChunks when the MCA file does not already exist, so after a region file has been created the tracking has to be pulled out and done for every saveChunk call.", "category": "correctness", "verdict": "supported", "pri... | null |
Minestom__Minestom__2881 | Minestom/Minestom | 2,881 | defect | 7620f3320988e766cb8e34dd640b5a23911fa7e8 | d6fe0877dc23e5d912f40ae12cceb284c7114cd8 | Use the BlocksAttacks component in UseItemListener | ## Proposed changes
The blocking animation does not properly show on other clients if you aren't using a shield, due to only checking for the shield material rather than the component.
Additionally also fixes a minor bug in the BlocksAttacks component where the Sound Events in the network serializer were not mark... | diff --git a/src/main/java/net/minestom/server/listener/UseItemListener.java b/src/main/java/net/minestom/server/listener/UseItemListener.java
index 540c580e9ff..b88d729c26b 100644
--- a/src/main/java/net/minestom/server/listener/UseItemListener.java
+++ b/src/main/java/net/minestom/server/listener/UseItemListener.java... | 2 | 2 | 1 | [{"id": "G0", "claim": "The shield branch should be keyed off the item having the BlocksAttacks component (itemStack.has(DataComponents.BLOCKS_ATTACKS)) rather than on the retrieved blocksAttacks value being non-null.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",... | null |
Minestom__Minestom__2892 | Minestom/Minestom | 2,892 | defect | dd7aebde2c2ecf2f64103bd9ea73b221ff2bdde5 | dc33bcbaa3753282f373af9300540241bc7b7abf | Update Chunk View Distance | Bumps the effective view distance of players by 1 to resolve #2455, and adds per-instance view distance to resolve #2485.
## Proposed changes
Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request.
If it fixes a bug or resolves a feature request, be... | diff --git a/src/main/java/net/minestom/server/ServerFlag.java b/src/main/java/net/minestom/server/ServerFlag.java
index 7f07a7d993d..7b9732f75b4 100644
--- a/src/main/java/net/minestom/server/ServerFlag.java
+++ b/src/main/java/net/minestom/server/ServerFlag.java
@@ -14,7 +14,7 @@ public final class ServerFlag {
... | 2 | 2 | 1 | [{"id": "G0", "claim": "Deprecate ClientSettings.effectiveViewDistance() instead of deleting it, so the change is not a breaking change.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Read the instance once into a local variable and return the minimum pl... | null |
Minestom__Minestom__2932 | Minestom/Minestom | 2,932 | defect | 7a7a6d13a168a367f5b66160003957e547d02d7e | 86e8f8ae9729c23ad7512fa2fb1f7ebdf77fbae4 | Fix command condition bypass bug | In `GraphImpl.java`, when a command had a condition and you added a zero-argument syntax without its own condition, the syntax's null condition would overwrite the command's condition. This let anyone bypass permission checks and run admin-only commands.
I also added some utilities like `setCondition(Predicate<Comma... | diff --git a/src/main/java/net/minestom/server/command/GraphImpl.java b/src/main/java/net/minestom/server/command/GraphImpl.java
index 101ff7793f4..2819fbe3d00 100644
--- a/src/main/java/net/minestom/server/command/GraphImpl.java
+++ b/src/main/java/net/minestom/server/command/GraphImpl.java
@@ -121,7 +121,13 @@ static... | 3 | 3 | 3 | [{"id": "G0", "claim": "The new varargs setCondition(CommandCondition...) is breaking because a null argument would NPE; it should check `if (conditions == null || conditions.length == 0)` to keep the old non-breaking behaviour.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced... | null |
Minestom__Minestom__2944 | Minestom/Minestom | 2,944 | defect | d721bd11a8b8e5fa29cb5895a09f4e437d114d21 | c629e6be3385dc13eafc21d64925e3689274faf9 | Use default entity attributes from vanilla | Loads the default `LivingEntity` attributes from vanilla Minecraft for each entity type. For example, currently spawning an iron golem in Minestom would cause it to look "damaged" due to the max health not being the correct value. Requires the data generator PR to be merged.
~~I also fixed the max health attribute n... | diff --git a/src/main/java/net/minestom/server/entity/LivingEntity.java b/src/main/java/net/minestom/server/entity/LivingEntity.java
index 591568ee018..df0b2833cc3 100644
--- a/src/main/java/net/minestom/server/entity/LivingEntity.java
+++ b/src/main/java/net/minestom/server/entity/LivingEntity.java
@@ -10,6 +10,7 @@
... | 5 | 5 | 2 | [{"id": "G0", "claim": "The default attributes should be added to the entity type registry instead of a separate DefaultAttributes class.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G4", "claim": "The default-attribute loop in the LivingEntity constructor should be ... | null |
Minestom__Minestom__2961 | Minestom/Minestom | 2,961 | defect | 197bda3cdbae6f636d20ee63feceb952536e2b4e | 6f1a2c0fb258d29a8968286abd407e6e72943733 | fix: Ignored empty compound serialisation flag | ## Proposed changes
Fixes a logic issue in the `TagHandlerImpl.Node` class. It now properly acknowledges the `SERIALIZE_EMPTY_COMPOUND` flag. Fixes #2912.
## Types of changes
What types of changes does your code introduce to this project?
_Put an `x` in the boxes that apply_
- [x] Bugfix (non-breaking chan... | diff --git a/src/main/java/net/minestom/server/tag/TagHandlerImpl.java b/src/main/java/net/minestom/server/tag/TagHandlerImpl.java
index 6cb74467145..3f1e01c1fd8 100644
--- a/src/main/java/net/minestom/server/tag/TagHandlerImpl.java
+++ b/src/main/java/net/minestom/server/tag/TagHandlerImpl.java
@@ -281,7 +281,7 @@ Com... | 1 | 1 | 1 | [{"id": "G0", "claim": "Doesn't seem to fix the outlined issue: using the provided test, the empty compound is still ignored.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
Minestom__Minestom__2962 | Minestom/Minestom | 2,962 | defect | 197bda3cdbae6f636d20ee63feceb952536e2b4e | 2aaad47d625e158ed15f416e4f135d89a62606a4 | fix: ensure the item stack size of non-air-items is always >0 in ItemStack#withMaterial | ## Proposed changes
Fixes the bug shown in [this](https://gist.github.com/Bloeckchengrafik/a29c90e19d7c219ddfc55e5460117739) notebook with which a non-air-item can become 0-amounted. That results in the client disconnecting. Also fix a related bug ensuring 0 amount for air
## Types of changes
What types of cha... | diff --git a/src/main/java/net/minestom/server/item/ItemStack.java b/src/main/java/net/minestom/server/item/ItemStack.java
index bc84149f483..ea3dfc10d46 100644
--- a/src/main/java/net/minestom/server/item/ItemStack.java
+++ b/src/main/java/net/minestom/server/item/ItemStack.java
@@ -130,6 +130,14 @@ static ItemStack f... | 3 | 3 | 1 | [{"id": "G0", "claim": "When the material is AIR, withMaterial should just return the air instance rather than constructing an ItemStackImpl with amount 0.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The serializer's IllegalArgumentException should in... | null |
Minestom__Minestom__2979 | Minestom/Minestom | 2,979 | defect | bb7cdc8232d549cd04191ce83e3086d5751f6926 | 9f5f342d44fa28720db7c5a3938f62f3557eae91 | fix: don't include null players in `SetImpl::size()` (as in `iterator()`) | ## Proposed changes
Properly accounts for viewers not returned by the iterator, which could cause the `SetImpl`'s `size()` and `iterator()` to be of different lengths. Should fix #2629
## Types of changes
What types of changes does your code introduce to this project?
_Put an `x` in the boxes that apply_
... | diff --git a/src/main/java/net/minestom/server/entity/EntityView.java b/src/main/java/net/minestom/server/entity/EntityView.java
index 622ef4ab71e..9e51c11de05 100644
--- a/src/main/java/net/minestom/server/entity/EntityView.java
+++ b/src/main/java/net/minestom/server/entity/EntityView.java
@@ -299,7 +299,13 @@ public... | 1 | 1 | 1 | [{"id": "G0", "claim": "A test should be added in EntityViewIntegrationTest to ensure the set's size is correct when players are removed.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
Minestom__Minestom__2981 | Minestom/Minestom | 2,981 | defect | 197bda3cdbae6f636d20ee63feceb952536e2b4e | 471e4002f46cdbf5a2608b917e8e9eb7879f5327 | feat(block-batch): implement consumer for block batch apply callback | ## Proposed changes
passes the inverse block batch into the callback (if inverse is calculated), change AbsoluteBlockBatch and RelativeBlockBatch to extend Batch<Consumer<AbsoluteBlockBatch>>
Adds Nullable annotation to the apply methods (which returned null, just didn't declare it)
## Types of changes
- [ ] ... | diff --git a/src/main/java/net/minestom/server/instance/batch/AbsoluteBlockBatch.java b/src/main/java/net/minestom/server/instance/batch/AbsoluteBlockBatch.java
index e13fdef8469..7a50a7fae85 100644
--- a/src/main/java/net/minestom/server/instance/batch/AbsoluteBlockBatch.java
+++ b/src/main/java/net/minestom/server/in... | 7 | 6 | 3 | [{"id": "G0", "claim": "The PR added stray blank lines (at the end of Batch.java and after RelativeBlockBatch#apply(Instance, Point, Consumer)) that should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "@Nullable on the new batch app... | null |
Minestom__Minestom__3000 | Minestom/Minestom | 3,000 | defect | d34c45fbb83c437bc367315b6dfa4195256f738a | 98adfdca72584b4ee7588cbf22a5838d8e81f8e3 | Fix off-by-one error in villager level encoding | ## Proposed changes
Villager levels were previously encoded using enum ordinal values `0` to `4` via `NetworkBuffer.Enum`. However, the Minecraft protocol defines villager level values as `1` to `5`. This mismatch caused the encoded metadata to differ from the protocol specification.
This PR fixes an off by one e... | diff --git a/src/main/java/net/minestom/server/entity/metadata/villager/VillagerMeta.java b/src/main/java/net/minestom/server/entity/metadata/villager/VillagerMeta.java
index 38e1517db23..4f6debe389b 100644
--- a/src/main/java/net/minestom/server/entity/metadata/villager/VillagerMeta.java
+++ b/src/main/java/net/minest... | 2 | 2 | 0 | [{"id": "G0", "claim": "Level.values() is copied on every decode, so the enum values array should be held in a private constant instead.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The methods encode/decode should be renamed to something clearer ... | null |
Minestom__Minestom__3008 | Minestom/Minestom | 3,008 | defect | 89731bcc918da6d65b41366e538cd9d12d8872a0 | 13615722c7abcafdcc658a44ae8984fe4aff54bc | Fix wrong alpha color codec being used in environment attributes | ## Proposed changes
Environment attributes used RGBA-formatted strings instead of ARGB, which caused clouds and other alpha color-based properties to be improperly sent to clients.
This splits the string codec into RGBA and ARGB variants and fixes their usages. I have confirmed that existing alpha color usages, spe... | diff --git a/src/main/java/net/minestom/server/color/AlphaColor.java b/src/main/java/net/minestom/server/color/AlphaColor.java
index 61ae9809ccf..6fb6e4a6e43 100644
--- a/src/main/java/net/minestom/server/color/AlphaColor.java
+++ b/src/main/java/net/minestom/server/color/AlphaColor.java
@@ -1,12 +1,13 @@
package net.... | 5 | 5 | 1 | [{"id": "G0", "claim": "The pull request should keep the original STRING_CODEC instead of deleting it, but mark it deprecated for removal with javadoc pointing to the new codecs.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "fromARGBHexString should par... | null |
Minestom__Minestom__3015 | Minestom/Minestom | 3,015 | defect | a0407860b08c17039bcda2e2c1eb04ecc657857d | 29c9b3bbf0699ea032024a7b2dc401a0bd1d8089 | replace chunk synchronized with RW-Lock | ## Proposed changes
Replace the synchronized keyword for chunks with a ReentrantReadWriteLock.
This allows future features like Area-Locks, or performance optimizations with multiple readers for a chunk at the same time (e.g. parallelize lighting calculations across Y-axis).
Also allows future APIs like tryLock(),... | diff --git a/demo/build.gradle.kts b/demo/build.gradle.kts
index 7d1238b3d9a..42e401e0552 100644
--- a/demo/build.gradle.kts
+++ b/demo/build.gradle.kts
@@ -12,6 +12,7 @@ dependencies {
application {
mainClass.set("net.minestom.demo.Main")
+ applicationDefaultJvmArgs += "-ea"
}
tasks.withType<ShadowJar> ... | 6 | 3 | 0 | [{"id": "G0", "claim": "Question why a read-write lock was chosen over a plain ReentrantLock for the chunk lock.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Palettes are not thread-safe, so concurrent readers holding only the read-lock could observe wei... | null |
Minestom__Minestom__3025 | Minestom/Minestom | 3,025 | defect | fb5342901cf467b5fafca3f71b6a9ce27494695e | 9c8e5316ba889435d1405de023d0bf31bed69aab | feat: add player input event | ## Proposed changes
Adds a `PlayerInputEvent` that is fired when the player sends the `ClientInputPacket`, the event contains methods indicating if the player has a key held down, if they have just released a key, or if they have just pressed a key. Also deprecates the previous `PlayerStartSneakingEvent` and `Player... | diff --git a/src/main/java/net/minestom/server/entity/Player.java b/src/main/java/net/minestom/server/entity/Player.java
index 965851b37e5..787f62b0f9d 100644
--- a/src/main/java/net/minestom/server/entity/Player.java
+++ b/src/main/java/net/minestom/server/entity/Player.java
@@ -2207,16 +2207,24 @@ public void clearIt... | 9 | 6 | 1 | [{"id": "G0", "claim": "In Player.refreshInput the seven new local variables should be declared as boolean instead of var.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The Key suffix on the event's methods (isHoldingForwardKey, hasPressedForwa... | null |
Minestom__Minestom__3044 | Minestom/Minestom | 3,044 | defect | f453f6441b6381b89c180ca12ed12abe742d7d0f | 3161872470463a4764e78d0687bc0be25277c6a4 | feat: Entity physics getter and setter | ## Proposed changes
Allow people to better control what calculations are running on their entities without having to extend Entity.
## Types of changes
What types of changes does your code introduce to this project?
_Put an `x` in the boxes that apply_
- [ ] Bugfix (non-breaking change which fixes an issue... | diff --git a/src/main/java/net/minestom/server/entity/Entity.java b/src/main/java/net/minestom/server/entity/Entity.java
index c82a51b5f34..d764d9b8d20 100644
--- a/src/main/java/net/minestom/server/entity/Entity.java
+++ b/src/main/java/net/minestom/server/entity/Entity.java
@@ -755,6 +755,19 @@ public UUID getUuid() ... | 2 | 2 | 1 | [{"id": "G0", "claim": "Add documentation (javadoc) for the newly added public physics getter and setter methods.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a test covering the newly public physics toggle behaviour.", "category": "testing"... | null |
Minestom__Minestom__3085 | Minestom/Minestom | 3,085 | defect | 41fa18f83cb653fa324358c4fcec664c741be7f9 | 3791d21836ea2a82767adfefdc5bee31952d6bfd | fix: findOnlinePlayer getting least similar result | ## Proposed changes
findOnlinePlayer would work fine with only one player online, but if there were two people online it would sort improperly.
## Types of changes
What types of changes does your code introduce to this project?
_Put an `x` in the boxes that apply_
- [x] Bugfix (non-breaking change which fi... | diff --git a/src/main/java/net/minestom/server/network/ConnectionManager.java b/src/main/java/net/minestom/server/network/ConnectionManager.java
index 35db5ac2f05..daaa61b0f7d 100644
--- a/src/main/java/net/minestom/server/network/ConnectionManager.java
+++ b/src/main/java/net/minestom/server/network/ConnectionManager.... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a test to ensure the findOnlinePlayer similarity fix does not regress, and make sure it fails on master without the patch applied.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
Minestom__Minestom__3089 | Minestom/Minestom | 3,089 | defect | 6e0b90badac6d2088b012f9ec2bcf5d6fb493f7a | e8f9708d30f2ae4725497c5ca769cec862c2bd0c | Metadata fix | ## Proposed changes
This solves the so-called sprinting bug and possibly more bugs regarding metadata changes.
## Types of changes
What types of changes does your code introduce to this project?
_Put an `x` in the boxes that apply_
- [x] Bugfix (non-breaking change which fixes an issue)
- [ ] New feature ... | diff --git a/src/main/java/net/minestom/server/entity/MetadataHolder.java b/src/main/java/net/minestom/server/entity/MetadataHolder.java
index b4d5bb22bb8..6d85ee2e818 100644
--- a/src/main/java/net/minestom/server/entity/MetadataHolder.java
+++ b/src/main/java/net/minestom/server/entity/MetadataHolder.java
@@ -87,6 +8... | 2 | 2 | 2 | [{"id": "G0", "claim": "The new comparison should deal with null values more gracefully: setting a null value to null again still passes the `current != null` check and re-sets the metadata.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A test shou... | null |
Minestom__Minestom__861 | Minestom/Minestom | 861 | defect | 26a293e51bda83fa6dd083b9c4c638bf9da2f4f9 | 933f7eeacd4c3d61ed32534646310fd344466638 | Fix bad conversion of block index using negative Y | Fixes issue #808.
We got the same problem and I debugged everything.
I found out that the NBT is sent right but the X/Y/Z coordinates inside the ChunkData packet is wrong:

The expected coordinates for ... | diff --git a/src/main/java/net/minestom/server/utils/chunk/ChunkUtils.java b/src/main/java/net/minestom/server/utils/chunk/ChunkUtils.java
index 4666b352698..8b4bcf1b19d 100644
--- a/src/main/java/net/minestom/server/utils/chunk/ChunkUtils.java
+++ b/src/main/java/net/minestom/server/utils/chunk/ChunkUtils.java
@@ -198... | 4 | 2 | 2 | [{"id": "G0", "claim": "The commented line `int index = x & 0xF; // 4 bits` in getBlockIndex is not needed.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The Y extraction in getBlockPosition should not mask the index to 8 bits (`index >>> 4 & 0xFF`) b... | null |
Minestom__Minestom__935 | Minestom/Minestom | 935 | defect | c7bb9e14e5e4735821de14c63816aaa62585ac0e | e207abb2f3b2b47bdbd244a364fe9711e7e0add0 | Item metadata fixes | This pull request fixes a few issues with item metadata and tags:
- Default values for primitive and always present metadata
- Nullable annotation for optional metadata
- Exception when reading a mapped tag with default value null | diff --git a/src/main/java/net/minestom/server/item/metadata/CrossbowMeta.java b/src/main/java/net/minestom/server/item/metadata/CrossbowMeta.java
index 47df6d3634f..9132c248bc8 100644
--- a/src/main/java/net/minestom/server/item/metadata/CrossbowMeta.java
+++ b/src/main/java/net/minestom/server/item/metadata/CrossbowM... | 5 | 3 | 3 | [{"id": "G0", "claim": "CrossbowMeta's PROJECTILES tag should also have a default of List.of(), since getProjectiles() is declared @NotNull but the tag has no default value.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "WrittenBookMeta.isResolved()... | null |
Minestom__Minestom__945 | Minestom/Minestom | 945 | defect | f0fa81b71239d864d200da9c0b1843b25c38bd4a | ec32dd8af3d7edf3d71310142c2a86d895124f64 | Add Pos#withLookAt | Add a withLookAt method to Pos based on code from Entity#lookAt | diff --git a/src/main/java/net/minestom/server/coordinate/Pos.java b/src/main/java/net/minestom/server/coordinate/Pos.java
index 27e43b1e761..71734de89ef 100644
--- a/src/main/java/net/minestom/server/coordinate/Pos.java
+++ b/src/main/java/net/minestom/server/coordinate/Pos.java
@@ -2,6 +2,7 @@
import net.minestom.... | 4 | 2 | 0 | [{"id": "G0", "claim": "The Entity lookAt unit tests are almost the same as the new Pos ones, so they should perhaps be changed or removed.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The author is unsure the new unit test names are right, so the nam... | null |
Minestom__Minestom__962 | Minestom/Minestom | 962 | defect | 057109c94e288de9d92a43d8211fa03d9560359c | f4aac61cc7e7a44388bc3948fa83f679260347b1 | Fix #942 | The bug was caused because the list of changes was cleared before it was sent to the players. It will now get cleared after it is sent. | diff --git a/src/main/java/net/minestom/server/entity/Metadata.java b/src/main/java/net/minestom/server/entity/Metadata.java
index afbaf5c611f..ef25dd8109c 100644
--- a/src/main/java/net/minestom/server/entity/Metadata.java
+++ b/src/main/java/net/minestom/server/entity/Metadata.java
@@ -214,13 +214,13 @@ public void s... | 3 | 3 | 2 | [{"id": "G0", "claim": "The PR should include a test case covering the bug fix for #942.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new notification test should be put in a dedicated EntityMetaIntegrationTest file, allowing the changes to the ex... | null |
MinishLab__model2vec-rs__33 | MinishLab/model2vec-rs | 33 | defect | c7d323d88b51b9bbee9f1dd614761010b7dd94f0 | e992ae04d7769d8deb05f454b86a277f09193030 | feat: Add `from_borrowed()` constructor | Adds `from_raw_parts()` for constructing models from pre-parsed components, `from_pretrained()` now delegates to it.
Also fixes a bug where loading would fail if the tokenizer doesn't define an `unk_token` (not all tokenizers have one). | diff --git a/src/model.rs b/src/model.rs
index d695bb9..dff1a8a 100644
--- a/src/model.rs
+++ b/src/model.rs
@@ -64,32 +64,12 @@ impl StaticModel {
// Load the tokenizer
let tokenizer = Tokenizer::from_file(&tok_path).map_err(|e| anyhow!("failed to load tokenizer: {e}"))?;
- // Median-token-l... | 3 | 3 | 2 | [{"id": "G0", "claim": "Silently ignoring a tokenizer's declared unk_token that is missing from the vocab is too permissive; the middleground should be: None when unk_token is absent, an error when it is present but not in the vocab, and use of the unk_token when present and in the vocab.", "category": "correctness", "... | null |
MinishLab__model2vec-rs__35 | MinishLab/model2vec-rs | 35 | defect | 52635d9f650404b1977a35c546b10f8ea7acc033 | b6f778123354910b6a8beaed7bfe6a358acfd8ee | Add in-memory model loading API | This PR adds a small, self-contained loading improvement that makes Model2Vec easier to embed in runtimes that already fetch model assets as bytes.
## What changes
- adds `StaticModel::from_bytes(...)` for loading a model from in-memory `tokenizer.json`, `model.safetensors`, and `config.json` bytes
- extracts `resolv... | diff --git a/src/model.rs b/src/model.rs
index a4e22e9..3f130fb 100644
--- a/src/model.rs
+++ b/src/model.rs
@@ -20,60 +20,41 @@ pub struct StaticModel {
unk_token_id: Option<usize>,
}
+#[derive(Debug, Clone)]
+pub struct ModelFiles {
+ pub tokenizer: std::path::PathBuf,
+ pub model: std::path::PathBuf,
+... | 3 | 3 | 2 | [{"id": "G0", "claim": "The module-level `use std::fs;` duplicates an inner `use std::fs;` in `test_from_borrowed`, causing lint noise; remove one of them and import consistently.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "`ModelFiles` is a ... | null |
MinishLab__model2vec-rs__36 | MinishLab/model2vec-rs | 36 | defect | 35333ffb4f60ff17df1490587be9d6f12da7ce9f | 77cc9f50d30fdc832858934e04c96a0a60c8bc28 | Split optional hf-hub loading feature | This keeps the default behavior unchanged while separating remote model downloads from the tokenizer backend features.
Changes:
- add an explicit optional `hf-hub` feature and keep it in the default feature set
- stop pulling `tokenizers/http` through `onig` and `fancy-regex`
- gate Hugging Face Hub imports and remote... | diff --git a/Cargo.toml b/Cargo.toml
index 4f1b27e..c9f7f0e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,22 +14,21 @@ categories = ["science", "text-processing"]
exclude = ["tests/*"]
[features]
-default = ["onig"]
+default = ["onig", "hf-hub"]
+hf-hub = ["dep:hf-hub"]
onig = ["tokenizer... | 2 | 2 | 0 | [{"id": "G0", "claim": "The unconditional env::set_var(\"HF_HUB_TOKEN\", ...) mutates process-wide state and leaves the token set after from_pretrained() returns, potentially leaking credentials or racing between threads; scope it to the remote-loading branch and restore the previous value afterwards (or pass the token... | null |
MinishLab__model2vec-rs__37 | MinishLab/model2vec-rs | 37 | defect | d6cdc4cf5a5997326ffc408cd1bf14d1a3a24ae6 | 02a85090f95e1c83feee1cca259237c546957c6d | Add minimal wasm and local-only feature support | ## Summary
- add `local-only` and `wasm` feature flags
- document the minimal `wasm32-unknown-unknown` check command
- keep wasm support scoped to local and in-memory model loading
## Details
This keeps the change intentionally small:
- `local-only` is an explicit feature for builds that should avoid remote model down... | diff --git a/Cargo.lock b/Cargo.lock
index d82f790..170e389 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -473,9 +473,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "26145e563e54f2cadc477553f1ec5ee650b00862f0a58bcd12cbdc5f0ea2d2f4"
dependencies = [
"cfg-if",
+ "js-sys",
"libc",
... | 3 | 3 | 2 | [{"id": "G0", "claim": "Enabling `local-only` alongside `hf-hub` still allows remote model downloads because `local-only` is a marker feature with no code-level effect, contradicting the README; the restriction should be enforced in code and a test should verify remote `from_pretrained` fails under `local-only` even wi... | null |
MinishLab__semble__118 | MinishLab/semble | 118 | defect | a5a233428aa10b59dbdcdbb05d5cd3b748d585c7 | 76959a8a873d77c7099a59056bb917304e3714dd | feat: Support more subagents via semble init, add more installation docs | This PR adds a `semble init` for any harness that supports it, which resolves https://github.com/MinishLab/semble/issues/117. The install docs are also updated with more popular harnesses. | diff --git a/README.md b/README.md
index 588124530..c2d7a1e44 100644
--- a/README.md
+++ b/README.md
@@ -38,7 +38,7 @@ Add Semble to Claude Code (requires [uv](https://docs.astral.sh/uv/getting-start
claude mcp add semble -s user -- uvx --from "semble[mcp]" semble
```
-Using Codex, OpenCode, or Cursor? See [MCP Ser... | 4 | 4 | 0 | [{"id": "G0", "claim": "The --agent choices should be sorted so they do not appear in a weird (dict-order-dependent) sequence in the CLI.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The coding-agent parameter should be an enum instead of a plain strin... | null |
MinishLab__semble__122 | MinishLab/semble | 122 | defect | 57d8f5b35a6a9cdca436735b7b31d4d2348595ed | d39e86f7d6e2334b388847f709894896b0138182 | feat: check depth and chunk bounds to prevent recursion errors | This PR checks the depth of the tree when chunking as well as a lower bound on chunk length. Shows an admittedly uninformative warning when the limit is hit, so the user is aware.
No change in scores, runtime or indexing time, so this is a just a fix for degenerate cases.
Fixes #121 | diff --git a/src/semble/chunking/core.py b/src/semble/chunking/core.py
index 539916a25..f7dadb6b1 100644
--- a/src/semble/chunking/core.py
+++ b/src/semble/chunking/core.py
@@ -69,12 +69,21 @@ def _merge_adjacent_chunks(
return merged
-def _merge_node_inner(node: Node, desired_length: int) -> list[ChunkBoundar... | 1 | 1 | 0 | [{"id": "G0", "claim": "The hard-coded 500 and 50 values in _merge_node_inner should be made private globals or arguments, though the reviewer notes it is not super important since they look sensible.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
MinishLab__semble__63 | MinishLab/semble | 63 | defect | 0a05dac6475f8714263bf2ebef4740bb3792049e | d629e990b26a096915365927b2fb2ae808ba3fae | feat: Add automatic reindexing for local paths | When semble is started against a local directory, it now watches for file changes and automatically rebuilds the index in the background using `watchfiles`. This does do a full rebuild each time, which is fine since semble is extremely fast. This is safe on rapid file changes as well since `watchfiles` automatically b... | diff --git a/README.md b/README.md
index c47686ba9..0484d6a98 100644
--- a/README.md
+++ b/README.md
@@ -68,7 +68,7 @@ result.chunk.content # "def save_pretrained(self, path: PathLike, ..."
## MCP Server
-Semble can run as an MCP server so agents can search any codebase directly. Repos are cloned and indexed o... | 5 | 4 | 1 | [{"id": "G0", "claim": "If evict finds no cache entry to evict that may signal something going wrong, so it may be useful to show a warning there.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "If rebuilding the index after a file change raises an... | null |
MinishLab__semble__76 | MinishLab/semble | 76 | defect | 62ecab2a730beceb349dc36b9c83fa363c639910 | 1737c4c31d2b2217f089d51e5578206306e42331 | feat: Add "semble savings" command | This PR adds `semble savings`, a CLI command that tracks and displays token savings across all searches. Stats are recorded automatically to `~/.semble/savings.jsonl` on every search. There's also a verbose output that shows the calls per call type but it's not that interesting (yet) since we only have `search` and `f... | diff --git a/README.md b/README.md
index 53f382f6a..b7de7024d 100644
--- a/README.md
+++ b/README.md
@@ -54,6 +54,8 @@ uv add semble # Or install with uv
To update Semble, see [Updating](#updating).
+Curious how many tokens Semble has saved you? Run `semble savings` to see. See [Savings](#savings) for detail... | 8 | 7 | 5 | [{"id": "G0", "claim": "The file-size computation at index construction should not be a staticmethod bolted on after construction: call it as `self._compute_file_sizes` inside `__init__` (or as a property if fast enough), and keep the root path on the SembleIndex itself.", "category": "design", "verdict": "supported", ... | null |
MinishLab__semble__84 | MinishLab/semble | 84 | defect | b759f4c7489f6679b2c16869138689a51e9f0650 | d26009f6004d84f1afbdf5330021a91eb862a0ad | feat: add chunking module, remove chonkie | This PR removes [chonkie](https://github.com/chonkie-inc/chonkie) from semble. One of Chonkie's direct dependencies, [tokie](https://github.com/chonkie-inc/tokie), was causing installation failures for users on python 3.14. As `uvx` defaults to the latest stable release of python, users without a pre-existing python en... | diff --git a/pyproject.toml b/pyproject.toml
index 6ea03b10b..988403406 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -30,8 +30,9 @@ dependencies = [
"vicinity>=0.4.4",
"numpy>=1.24.0",
"bm25s>=0.2.0",
- "chonkie[code]!=1.6.3",
"pathspec>=0.12",
+ "tree-sitter>=0.25",
+ "tree-sitter-l... | 3 | 3 | 0 | [{"id": "G0", "claim": "_merge_adjacent_chunks should return list[ChunkBoundary] instead of list[tuple[int, int]], like _merge_node_inner does.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "_merge_node should return list[ChunkBoundary] instead ... | null |
MinishLab__semhash__64 | MinishLab/semhash | 64 | defect | 1d8095f5c9da89c476dc8416532359c7b9a38d13 | a4a869ecc2619e57e5dc56e019ceb7c0a0e04e68 | feat: Added selected_with_duplicates functionality | This PR adds a `selected_with_duplicates` property that can be used to easily see which duplicates were removed for a selected record. Example usage:
```python
from semhash import SemHash
data = [
{"id": 0, "text": "hello"},
{"id": 1, "text": "hello"},
{"id": 2, "text": "helllo"},
]
semhash = Se... | diff --git a/semhash/datamodels.py b/semhash/datamodels.py
index 4c5f32a..8b47065 100644
--- a/semhash/datamodels.py
+++ b/semhash/datamodels.py
@@ -1,8 +1,9 @@
import warnings
+from collections import defaultdict
from dataclasses import dataclass, field
-from typing import Generic, TypeVar
+from typing import Any, G... | 4 | 4 | 2 | [{"id": "G0", "claim": "Use the existing records.py helper instead of duplicating dict-to-hashable conversion logic in selected_with_duplicates.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "selected_with_duplicates does not work when a dict re... | null |
Mintplex-Labs__anything-llm__4134 | Mintplex-Labs/anything-llm | 4,134 | defect | cc38edeb58527a4b12ba1f0cbc8b151de4856354 | 96977bfab8c70fdb1b0daef476ed6515d6f4d023 | Add option to enable encryption on MSSQL Server db | ### Pull Request Type
<!-- For change type, change [ ] to [x]. -->
- [x] ✨ feat
- [ ] 🐛 fix
- [ ] ♻️ refactor
- [ ] 💄 style
- [ ] 🔨 chore
- [ ] 📝 docs
### Relevant Issues
<!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" -->
resolves #4073
### What is... | diff --git a/frontend/src/pages/Admin/Agents/SQLConnectorSelection/NewConnectionModal.jsx b/frontend/src/pages/Admin/Agents/SQLConnectorSelection/NewConnectionModal.jsx
index 1d781894ce7..e2a8b313298 100644
--- a/frontend/src/pages/Admin/Agents/SQLConnectorSelection/NewConnectionModal.jsx
+++ b/frontend/src/pages/Admin... | 1 | 1 | 0 | [{"id": "G0", "claim": "Write a series of test cases for the connection string parser, whose upkeep has become burdensome.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}] | null |
Mintplex-Labs__anything-llm__4434 | Mintplex-Labs/anything-llm | 4,434 | defect | 9466f671620366272228cfcc43d015aa7251a28d | 47c8679ca0874deea4de8be11aabeb3470e584e1 | Sanitize Metadata Before PG Vector Database Insertion | ### Pull Request Type
<!-- For change type, change [ ] to [x]. -->
- [ ] ✨ feat
- [x] 🐛 fix
- [ ] ♻️ refactor
- [ ] 💄 style
- [ ] 🔨 chore
- [ ] 📝 docs
### Relevant Issues
<!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" -->
resolves #4339
### What is... | diff --git a/server/utils/vectorDbProviders/pgvector/index.js b/server/utils/vectorDbProviders/pgvector/index.js
index 057f1b799d6..b95ecf9c0d7 100644
--- a/server/utils/vectorDbProviders/pgvector/index.js
+++ b/server/utils/vectorDbProviders/pgvector/index.js
@@ -51,6 +51,55 @@ const PGVector = {
console.log(`\x1... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a test suite for `sanitizeForJsonb` to `server/__tests__/utils/vectorDbProviders/pgvector/index.js` so it can be validated against known valid/invalid cases.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
Mintplex-Labs__anything-llm__4730 | Mintplex-Labs/anything-llm | 4,730 | defect | b96988aae991038a715813134d6da872d8e0b5eb | ff83ea63bc303e9135464fcc88b60c6f372e74cc | Migrate PGVector to class | ### Pull Request Type
<!-- For change type, change [ ] to [x]. -->
- [ ] ✨ feat
- [ ] 🐛 fix
- [x] ♻️ refactor
- [ ] 💄 style
- [ ] 🔨 chore
- [ ] 📝 docs
### Relevant Issues
<!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" -->
resolves #xxx
- Migrate PGVec... | diff --git a/server/__tests__/utils/vectorDbProviders/pgvector/index.test.js b/server/__tests__/utils/vectorDbProviders/pgvector/index.test.js
index 33d6266ac49..bcac005ab39 100644
--- a/server/__tests__/utils/vectorDbProviders/pgvector/index.test.js
+++ b/server/__tests__/utils/vectorDbProviders/pgvector/index.test.js... | 2 | 2 | 0 | [{"id": "G0", "claim": "connectionString, tableName and validateConnection should be static methods on the PGVector class so callers do not have to instantiate a new instance each time.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The SQL constants and... | null |
Mintplex-Labs__anything-llm__4775 | Mintplex-Labs/anything-llm | 4,775 | defect | 664f466e3f4c0c780b27ff0808bf10938113b718 | bfa344ddfb9904cad631a0c1807c9ea64e0e0fe0 | Refactor localWhisper to use custom FFMPEGWrapper class | ### Pull Request Type
<!-- For change type, change [ ] to [x]. -->
- [ ] ✨ feat
- [ ] 🐛 fix
- [x] ♻️ refactor
- [ ] 💄 style
- [ ] 🔨 chore
- [ ] 📝 docs
### Relevant Issues
<!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" -->
resolves #4774
### What is... | diff --git a/collector/__tests__/utils/WhisperProviders/ffmpeg/index.test.js b/collector/__tests__/utils/WhisperProviders/ffmpeg/index.test.js
new file mode 100644
index 00000000000..7e5f744317a
--- /dev/null
+++ b/collector/__tests__/utils/WhisperProviders/ffmpeg/index.test.js
@@ -0,0 +1,60 @@
+process.env.STORAGE_DIR... | 6 | 6 | 1 | [{"id": "G0", "claim": "The test's downloaded input and converted output files should always be cleaned up on pass, fail or crash (e.g. with afterEach teardown), not only at the end of the happy path.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The F... | null |
MiragePrivacy__azoth__138 | MiragePrivacy/azoth | 138 | defect | a2fb87e4d8d5b9e623f0ad9721786080dc4af79b | 13b57997b5d913e51fe75ddab6729fd45f796ab3 | fix(transforms): handle immutable variables and inherited contract patterns | the `test_obfuscated_function_calls` e2e test began failing with `InvalidJump` after i updated escrow contract [EscrowERC20 + EscrowBase (inheritance)]. the inherited contract introduced two patterns the obfuscation pipeline didn't handle:
1. immutable variables — base contract stores token address, arbiter, and own... | diff --git a/crates/core/src/cfg_ir/mod.rs b/crates/core/src/cfg_ir/mod.rs
index 580e61da..cb86008f 100644
--- a/crates/core/src/cfg_ir/mod.rs
+++ b/crates/core/src/cfg_ir/mod.rs
@@ -751,6 +751,216 @@ impl CfgIrBundle {
Ok(())
}
+ /// Remap return-address PUSH instructions in Solidity internal functi... | 1 | 1 | 0 | [{"id": "G0", "claim": "In the future, patch passes like this one should retain metadata across invocations so that later transformations can detect unaccounted-for patches and re-patch them; acceptable for now since it follows the pattern already in place.", "category": "maintainability", "verdict": "supported", "prio... | null |
MiragePrivacy__azoth__62 | MiragePrivacy/azoth | 62 | defect | d36ad4e5c574bc3e15d4a45e995c0d50d7b58c19 | b9c2be4583ed0f91aad45b3d33bcdc1efcbd853b | chore(dispatcher): rewrite dispatcher transform logic | consider this example bytecode: `0x60003560e01c80637ff36ab514601a578063a9059cbb14602157600080fd5b600080fd5b600080fd`
**Original Exposed Structure:**
```assembly
PUSH1 0x00 // calldata offset
CALLDATALOAD // load 32 bytes from calldata
PUSH1 0xe0 // 224 bits to shift right
SHR ... | diff --git a/crates/core/src/cfg_ir.rs b/crates/core/src/cfg_ir.rs
index a806edd..b3c6299 100644
--- a/crates/core/src/cfg_ir.rs
+++ b/crates/core/src/cfg_ir.rs
@@ -3,9 +3,9 @@
///
/// This module builds a CFG from decoded EVM instructions, representing the program's control
/// flow as a graph of basic blocks conne... | 3 | 2 | 1 | [{"id": "G0", "claim": "Add fake paths that resolve to noops and/or loops between the correct tokens, and explore moving the function dispatcher to different parts of the bytecode (a honeypot dispatcher with many fake selector tokens, one of which is a legitimate token that yields the real dispatcher).", "category": "d... | null |
MisterTea__EternalTerminal__142 | MisterTea/EternalTerminal | 142 | defect | e4a29825776787a62801377b8753e0a490516d1a | 5449a5328427ac8f8d55768953618bd355f6f3ef | Fix unit tests | Sadly this didn't expose any bug in ET to fix, but the unit tests are passing now. | diff --git a/src/base/BackedReader.cpp b/src/base/BackedReader.cpp
index ab4f3678d..64c729d1e 100644
--- a/src/base/BackedReader.cpp
+++ b/src/base/BackedReader.cpp
@@ -25,9 +25,6 @@ int BackedReader::read(string* buf) {
if (socketFd < 0) {
// The socket is dead, return 0 bytes until it returns
VLOG(1) << ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The reviewer is unsure whether the refactor still resolves the EAGAIN case that sometimes shows up during reconnect, which the removed retry loop in Connection::read was added to address, and plans to test the branch in his environment after merge.", "category": "correctness", "verdict": "suppor... | null |
MisterTea__EternalTerminal__22 | MisterTea/EternalTerminal | 22 | defect | d82839d0e34f226f51cd1a3308304ed6cfe581b8 | 72eb54a5b9f9274cd3f64d92080c0968d2be262c | Portability | This has various fixes for portability, correctness, and unused code that I discovered while trying to make ET work on FreeBSD. I've removed most of the Linux- and OSX-isms, and it should be easy to get ET running on most POSIX OSes now.
| diff --git a/CMakeLists.txt b/CMakeLists.txt
index 565c4a136..5d7f30b7f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -27,17 +27,8 @@ find_package(Threads REQUIRED)
find_package(Glog REQUIRED)
find_package(GFlags REQUIRED)
find_package(Protobuf REQUIRED)
-set(CURSES_NEED_NCURSES TRUE)
-find_package(Curses REQU... | 3 | 1 | 0 | [{"id": "G0", "claim": "The pull request removes the documented [:port] suffix from the launcher's help and usage text and the ET_PORT parsing, which should be kept.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Travis config pins an old version of li... | null |
MisterTea__EternalTerminal__249 | MisterTea/EternalTerminal | 249 | defect | e03d9d7b9101797b04aa0c71402b542bb42c3621 | 8cdb0a379cc5115b46860903ffcf4753044c0281 | Add CLI flag for SSH socket to forward and config file parsing | Adds a CLI flag to specify the SSH agent socket to forward. Although the
socket held in `SSH_AUTH_SOCK` is the default, multiple agents may run
and this allows forwarding a specific agent.
Both SSH agent forwarding and a specific SSH agent socket to use may be
specified in `ssh_config` or `~/.ssh/config`, using t... | diff --git a/src/terminal/ParseConfigFile.hpp b/src/terminal/ParseConfigFile.hpp
index 23cd4e97a..992d3e185 100644
--- a/src/terminal/ParseConfigFile.hpp
+++ b/src/terminal/ParseConfigFile.hpp
@@ -73,6 +73,8 @@ enum ssh_config_opcode_e {
SOC_GSSAPIDELEGATECREDENTIALS,
SOC_INCLUDE,
SOC_PROXYJUMP,
+ SOC_FORWARD... | 2 | 1 | 1 | [{"id": "G0", "claim": "The ssh-socket fallback string(sshConfigOptions.identity_agent) can construct a std::string from a NULL char* when --ssh-socket is not given and the ssh config sets no IdentityAgent, which is invalid and can throw or terminate the client.", "category": "correctness", "verdict": "supported", "pri... | null |
MisterTea__EternalTerminal__479 | MisterTea/EternalTerminal | 479 | defect | ed44e806ef0315b2374242a8624f3574ad85ef01 | 9357e2c00110b5dd289b3e878ecda1b6e209103c | add configurable client keep-alive duration | hello! thanks for a great tool. this PR (should) make the client keep-alive duration configurable.
i created this because i noticed that reconnection times seemed to be slow sometimes (especially when compared to mosh) and am suffering frequently from lost keys. i realize that UDP is probably better suited for cases... | diff --git a/src/base/Headers.hpp b/src/base/Headers.hpp
index 77d4ce660..3d9c58ff4 100644
--- a/src/base/Headers.hpp
+++ b/src/base/Headers.hpp
@@ -161,8 +161,8 @@ const string SYSTEM_SSH_CONFIG_PATH = "/etc/ssh/ssh_config";
const string USER_SSH_CONFIG_PATH = "/.ssh/config";
// Keepalive configs
-const int CLIENT... | 1 | 1 | 0 | [{"id": "G0", "claim": "The client keep-alive duration should use a signed integer instead of uint32_t (cxxopts option value, constructor parameter and member), per the maintainer's preference to stick with signed integers unless unsigned is really needed.", "category": "design", "verdict": "supported", "priority": "P2... | null |
MithrilJS__mithril.js__1249 | MithrilJS/mithril.js | 1,249 | defect | a3c273f802e9cb386ca170a3276df93981a402a9 | d2d9f550f92469cf6428111f1b856493faced361 | Add `m.fragment()` | As announced in #1241, I've also added `./hyperscript`, which combines `render/hyperscript`, `render.raw` and `render.fragment`.
| diff --git a/hyperscript.js b/hyperscript.js
new file mode 100644
index 000000000..32bd05239
--- /dev/null
+++ b/hyperscript.js
@@ -0,0 +1,6 @@
+var hyperscript = require("./render/hyperscript")
+hyperscript.trust = require("./render/trust")
+hyperscript.fragment = require("./render/fragment")
+
+
+module.exports = hyp... | 4 | 3 | 1 | [{"id": "G0", "claim": "The line `var attrs, children, childrenIndex = 0` in the new render/fragment.js carries a doubled, space-based indentation that looks weird.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Consider exposing `m.fragment` as... | null |
MithrilJS__mithril.js__1492 | MithrilJS/mithril.js | 1,492 | defect | bc01dad847f02aa1636fe1aba6057d6b338f02d6 | f4084671bccdc6efe3638512166515307e0b5f36 | Back button on default route | Fixes #1491, but will break the tests (if merged). | diff --git a/api/router.js b/api/router.js
index ccfccb94c..6f805de2a 100644
--- a/api/router.js
+++ b/api/router.js
@@ -15,7 +15,7 @@ module.exports = function($window, redrawService) {
if (render != null) redrawService.render(root, render(Vnode(component, attrs.key, attrs)))
}
var bail = function() {
- ro... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new assertion `o($window.location.pathname).equals(\"/a\")` is wrong because location.pathname is not necessarily \"/a\" across the 12 routing prefix modes (e.g. \"/#!/a\" or \"/foo/a\"), so the test should be `o(route.get()).equals(\"/a\")`.", "category": "testing", "verdict": "supported", ... | null |
MithrilJS__mithril.js__1592 | MithrilJS/mithril.js | 1,592 | defect | e3b0861b8a494e0f121b61e754cd744a87ff6e97 | 521a4fc6faa02686efd5d28ccffdf9402de8806d | Make m.redraw() purely asynchronous, add m.redraw.sync() | Not sure if it is welcome, but several people in the chat (recently) and elsewhere (less recently) mentioned that they'd prefer always-async redraws...
There they are.
Mounting is still synchronous for both routed and non-routed components (unless the user opts out of synchrony by using `onmatch`). Setting the ro... | diff --git a/api/mount.js b/api/mount.js
index 0cebfcf66..d9b8c31e8 100644
--- a/api/mount.js
+++ b/api/mount.js
@@ -16,6 +16,6 @@ module.exports = function(redrawService) {
redrawService.render(root, Vnode(component))
}
redrawService.subscribe(root, run)
- redrawService.redraw()
+ run()
}
}
diff --git a... | 6 | 1 | 1 | [{"id": "G0", "claim": "Revert the conversion of `var run = function() {...}` to a `function run()` declaration in api/router.js, as it is just diff noise.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Question why the closure returned by throttl... | null |
MithrilJS__mithril.js__1928 | MithrilJS/mithril.js | 1,928 | defect | 771dcd4738ff21468489cff015ae293b63b31777 | 67b404a3f93e949100b6450402efd71d176090fc | support promise return in ospec | Support promise returns in ospec as alternative to `done` callback. Also supports `async/await` automatically
## Description
Currently ospec does not support returning promises or using `async/await` without wrapper. This PR tries to add support for that.
## Motivation and Context
async/await is the future for ... | diff --git a/ospec/ospec.js b/ospec/ospec.js
index 26d5c1959..b8ff98471 100644
--- a/ospec/ospec.js
+++ b/ospec/ospec.js
@@ -84,23 +84,34 @@ module.exports = new function init(name) {
if (cursor === fns.length) return
var fn = fns[cursor++]
+ var timeout = 0, delay = 200, s = new Date
+ var isDone = f... | 6 | 4 | 3 | [{"id": "G0", "claim": "Returning a promise may be unnecessary since `aPromise.then(done)` / `await aPromise; done()` already covers async tests, so the pull request may not be needed.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `nextTickish()` call... | null |
MithrilJS__mithril.js__1942 | MithrilJS/mithril.js | 1,942 | defect | b59ab50ba3c6936ae382fc02af89c0d254614857 | c041eac123d1675eccd4164d25dfe10b2af4a9b5 | Handle shared attributes object in hyperscript | Possible fix for **Shared attributes for different component results in concatenated class names** #1941
Mithril modifies passed attributes object to store classname derived from selector. I suggest we make a copy so there will no unexpected side-effects.
btw, I'm using custom shallow copy instead of `Object.as... | diff --git a/render/hyperscript.js b/render/hyperscript.js
index 5b5fda294..05e7599c5 100644
--- a/render/hyperscript.js
+++ b/render/hyperscript.js
@@ -78,6 +78,11 @@ function hyperscript(selector) {
} else if (typeof attrs !== "object" || attrs.tag != null || Array.isArray(attrs)) {
attrs = {}
start = 1
+ } e... | 3 | 2 | 1 | [{"id": "G0", "claim": "The shared-attrs copying in hyperscript() should use a (hasOwnProperty-guarded) for...in loop instead of a closure-creating reduce, and should only be done in execSelector, preferably only when state.attrs there is non-empty, because it sits in a performance-critical path.", "category": "perform... | null |
MithrilJS__mithril.js__1966 | MithrilJS/mithril.js | 1,966 | defect | 12d9085fe7d75961c225763cb4248163efc76af1 | 220bb3a1ceb6a5c424718274826a764218d6955a | Add support for `timeout` to `m.request` | <!--- Provide a general summary of your changes in the Title above -->
## Description
Add support for `timeout` to `m.request`.
## Motivation and Context
I think it's obvious that `timeout` is a thing you want to set to an xhr.
## How Has This Been Tested?
Added a test that verifies xhr setting
## ... | diff --git a/docs/change-log.md b/docs/change-log.md
index f8f29e030..08753e2d5 100644
--- a/docs/change-log.md
+++ b/docs/change-log.md
@@ -22,6 +22,7 @@
#### News
- API: Introduction of `m.redraw.sync()` ([#1592](https://github.com/MithrilJS/mithril.js/pull/1592))
+- API: `m.request` supports `timeout` as attr - ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request should add tests (and mock updates) covering the new `timeout` option before it lands.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
MithrilJS__mithril.js__1977 | MithrilJS/mithril.js | 1,977 | defect | e36a8db9d43205752c0556c6b7b95c81469a3d50 | 5aae43d2af74fb00a458608c00ec3c6dd3bc50ca | Remove support for `vnode.state = ...` | <!--- Provide a general summary of your changes in the Title above -->
## Description
<!--- Describe your changes in detail -->
As previously discussed, this removes the `vnode._state` internal member added in #1746 to avoid breaking existing object components. Now that we're shooting for a semver-major update, le... | diff --git a/docs/change-log.md b/docs/change-log.md
index 722d5975a..e53fecbf7 100644
--- a/docs/change-log.md
+++ b/docs/change-log.md
@@ -18,6 +18,7 @@
- API: `m.redraw()` is always asynchronous ([#1592](https://github.com/MithrilJS/mithril.js/pull/1592))
- API: `m.mount()` will only render its own root when cal... | 2 | 1 | 0 | [{"id": "G0", "claim": "The change-log entry is not clear enough; it should instead say something like \"Assigning a new object to `vnode.state` (`vnode.state = ...`) is no longer supported\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "State o... | null |
MithrilJS__mithril.js__2004 | MithrilJS/mithril.js | 2,004 | defect | 327c3bc46fe03b54c7c76ba3b6f51ec827295d02 | 0736f848cb19778b980fe93ef428c4cc2957efde | Update eslint rules for ospec | ospec needs global-require suppressed so it can use `require('util')`.
~~test-ospec needs `ecmaVersion: 2017` so it can use `async`/`await`.~~
Removed async/await from test-ospec; just return Promise instead.
## Description
Modified `ospec.js`, `test-ospec.js`
## Motivation and Context
Mithril's test scri... | diff --git a/.eslintrc.js b/.eslintrc.js
index c14d01194..4eeef4931 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -4,7 +4,10 @@ module.exports = {
"commonjs": true,
"es6": true,
"node": true
- },
+ },
+ "parserOptions": {
+ "ecmaVersion": 2017,
+ },
"extends": "eslint:recommended",... | 1 | 1 | 0 | [{"id": "G0", "claim": "Instead of adding ecmaVersion 2017 parser options to .eslintrc.js to allow async/await in test-ospec.js, change the awaited function in ospec/tests/test-ospec.js to return what is being awaited, which would be better than the eslintrc change.", "category": "design", "verdict": "supported", "prio... | null |
MithrilJS__mithril.js__2021 | MithrilJS/mithril.js | 2,021 | defect | 021b11eff070bfcdf97b8f6eb061beb407b59dc7 | df027f4f18dc0d74c9369f966efa12d4d2bcc381 | Fix updateNodes() (mostly vdom diffing logic). | Edit: this is done AFAICT
Fix for #1990, #1991 and #2003
The logic in updateNodes will still need some love for fragments (the last commit is actually sub-optimal, skipping `insertNode` when the vnode is a fragment would be better since the children of the fragment will have been inserted at that point. That's a ... | diff --git a/render/render.js b/render/render.js
index 4fabfc458..541bfd557 100644
--- a/render/render.js
+++ b/render/render.js
@@ -161,86 +161,98 @@ module.exports = function($window) {
}
//update
- function updateNodes(parent, old, vnodes, recycling, hooks, nextSibling, ns) {
- if (old === vnodes || old == nu... | 5 | 3 | 0 | [{"id": "G0", "claim": "The new test for pooled elements misspells \"unkeyed\" as \"uneyed\" in its title.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The rewritten updateNodes code should be sprinkled with more explanatory comments while the design ... | null |
MithrilJS__mithril.js__2075 | MithrilJS/mithril.js | 2,075 | defect | b9f65c2fdd4ae7040e80b4e9a0e57ab2c524e257 | 865a6cb9c02a0ec9feb6b259032ecf465cd945a3 | Access document.activeElement through a function that eats errors for IE | <!--- Provide a general summary of your changes in the Title above -->
## Description
Accessing `document.activeElement` when inside an iframe throws an error for Internet Explorer versions 9 through 11 (at least). Catch this error and return `document.body` instead in these cases. I'm not sure what the ramificatio... | diff --git a/docs/change-log.md b/docs/change-log.md
index e99fcea03..c446d0cf1 100644
--- a/docs/change-log.md
+++ b/docs/change-log.md
@@ -13,6 +13,13 @@
---
+### v1.1.7
+
+#### Bug fixes
+
+- core: Workaround for [Internet Explorer bug](https://www.tjvantoll.com/2013/08/30/bugs-with-document-activeelement-in-in... | 2 | 2 | 2 | [{"id": "G0", "claim": "The error path of the new activeElement() helper returns document.body, which the reviewer doubted could ever equal a live node, and asked the author to verify by testing and then to return null instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"... | null |
MithrilJS__mithril.js__2097 | MithrilJS/mithril.js | 2,097 | defect | e25f086061ab0495ea099593f931be0620925f63 | 5fcc74330b55881f5aeab364fd5add6c5452275b | Trust svg | Add support for SVG in `m.trust()` strings, and some `DOMParser` support in the mocks.
## Description
This leverages the `DOMParser` API (IE 10+) to enable users to use `m.trust()` to create raw SVG fragments.
## How Has This Been Tested?
I've added corresponding tests for `render` and the mocks.
The [mock... | diff --git a/docs/change-log.md b/docs/change-log.md
index f49329ec9..552f56ca7 100644
--- a/docs/change-log.md
+++ b/docs/change-log.md
@@ -29,7 +29,8 @@
- API: Event handlers may also be objects with `handleEvent` methods ([#1939](https://github.com/MithrilJS/mithril.js/issues/1939)).
- API: `m.route.link` accepts ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The SVG trust string can be parsed without the DOMParser API using `temp.innerHTML = \"<svg>\" + value + \"</svg>\"; temp = temp.firstChild`, so the PR should not be merged yet and will be updated to that approach.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "intro... | null |
MithrilJS__mithril.js__2130 | MithrilJS/mithril.js | 2,130 | defect | ec43ca089c67b1af3bc3f729d18dd5eaa283ea53 | 27a9f52c5f05a1dab5a9d6dc87eab7f00ef71898 | Fix 2128 | This fixes #2128, a DOM mocks bug that I discovered while fixing #2128, and removes quite a bit of code.
Change log item coming as soon as I have the PR number.
## Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
- [x] Bug fix (non-breaking chang... | diff --git a/docs/change-log.md b/docs/change-log.md
index efd51c4b1..e0278c04d 100644
--- a/docs/change-log.md
+++ b/docs/change-log.md
@@ -36,18 +36,19 @@
#### Bug fixes
- API: `m.route.set()` causes all mount points to be redrawn ([#1592](https://github.com/MithrilJS/mithril.js/pull/1592))
-- API: Using style ob... | 3 | 2 | 0 | [{"id": "G0", "claim": "In the map-based keyed diff, replacing `o.skip = true` with `old[oldIndex] = null` would work as well and save a vnode slot, so asks whether there is a reason not to mutate the old children list (which would allow dropping the `.skip` field from vnodes).", "category": "design", "verdict": "uncer... | null |
MithrilJS__mithril.js__2255 | MithrilJS/mithril.js | 2,255 | defect | e7c71f6ba2adabd7a37d2576d42de308c68deefb | 4168d49e2f49f65115e77c50a4aae24c388ce314 | Add 'throws'/'notThrows' assertion to Ospec for error reporting | ## Description
This adds two assertions to Ospec:
- o(Function).throws(Object)
- o(Function).notThrows(Object)
These assertions test whether the provided Function throws the correct type of Error. For example:
```
o(function(){"ayy".foo()}).throws(TypeError)
```
## Motivation and Context
**Edit (isiahmea... | diff --git a/ospec/README.md b/ospec/README.md
index e8fb7398a..3ec2c633f 100644
--- a/ospec/README.md
+++ b/ospec/README.md
@@ -427,7 +427,7 @@ If an argument is defined for the `assertions` function, the test is deemed to b
### Assertion o(any value)
-Starts an assertion. There are four types of assertion: `equa... | 3 | 3 | 0 | [{"id": "G0", "claim": "Revise the README descriptions of .throws and .notThrows to say that a function throws an instance of the provided constructor.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a change-log entry mentioning this PR and th... | null |
MithrilJS__mithril.js__2266 | MithrilJS/mithril.js | 2,266 | defect | 0e6223da73b9f9c13d3faae9d5b4134fe1245a56 | 67f75c9e68ded3122b5ca30c03f62df50fab3e16 | Store normalized vnodes in the dom element. Add render tests. | ## Description
Ensures that vnodes are normalized before being stored in the dom element (in `m.render()`).
## Motivation and Context
Fixes #2264
## How Has This Been Tested?
Existing tests pass, added tests to cover this case.
## Types of changes
- [x] Bug fix (non-breaking change which fixes an issue)
... | diff --git a/render/render.js b/render/render.js
index 9d4f1cf4a..d4598a24a 100644
--- a/render/render.js
+++ b/render/render.js
@@ -865,8 +865,8 @@ module.exports = function($window) {
// First time rendering into a node clears it out
if (dom.vnodes == null) dom.textContent = ""
- if (!Array.isArray(vnodes)) ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The pull request needs a changelog entry.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
MithrilJS__mithril.js__2312 | MithrilJS/mithril.js | 2,312 | defect | 42919cdf91ea0d66c396a901028e545bdc7f1954 | 4bcc0a81668ebd776f2cd7e5d4c6bde596c21102 | Fix style updates to avoid unnecessary allocation | <!--- Provide a general summary of your changes in the Title above -->
## Description
<!--- Describe your changes in detail -->
Fix style updates to avoid an unnecessary intermediate object. I recast it locally and had the code ready prior to #2311, which should explain why it's a little less surgical.
- Driv... | diff --git a/render/render.js b/render/render.js
index d197a0dd6..2842c84a7 100644
--- a/render/render.js
+++ b/render/render.js
@@ -255,7 +255,7 @@ module.exports = function($window) {
// When the list is being traversed top-down, at any index, the DOM nodes up to the previous
// vnode reflect the content of the n... | 2 | 2 | 1 | [{"id": "G0", "claim": "The `element.style.cssText = \"\"` line in the `old`-missing/string branch sits above the explanatory comment in a way that reads confusingly, so it should maybe be moved below the comment.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ... | null |
MithrilJS__mithril.js__2352 | MithrilJS/mithril.js | 2,352 | defect | eaa1c13664b2eb9114cdd8c14553a28e419e24e3 | 5b259e101d8cf3a654fa66c264c66210f5d772a7 | Handle `[` fragment selector. Fixes #2349 | ## Description
Handles `[` fragment selector.
## Motivation and Context
Fixes [2349](https://github.com/MithrilJS/mithril.js/issues/2349).
## Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
- [x] Bug fix (non-breaking change which fixes an iss... | diff --git a/render/hyperscript.js b/render/hyperscript.js
index c62054106..7bd0a5cf3 100644
--- a/render/hyperscript.js
+++ b/render/hyperscript.js
@@ -88,8 +88,12 @@ function hyperscript(selector) {
}
var vnode = hyperscriptVnode.apply(1, arguments)
-
- if (typeof selector === "string") {
+
+ if (selector =... | 3 | 2 | 0 | [{"id": "G0", "claim": "Simplify hyperscript by folding the \"[\" fragment special case into the string-selector branch as suggested, instead of the added three-way if/else chain.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Prefer a function ... | null |
MithrilJS__mithril.js__2405 | MithrilJS/mithril.js | 2,405 | defect | 982fdf573722c1f903fddf3dc2bf0f17d5856908 | b8b15e364c17af8cd236b8f49a35122f1975e06f | Fix assertion descriptions | <!--- Provide a general summary of your changes in the Title above -->
## Description
<!--- Describe your changes in detail -->
I moved the return statement to the end of define() so that it returns even if the comparison fails.
## Motivation and Context
<!--- Why is this change required? What problem does it ... | diff --git a/docs/change-log.md b/docs/change-log.md
index 863a1bef5..49d0fcaeb 100644
--- a/docs/change-log.md
+++ b/docs/change-log.md
@@ -61,6 +61,7 @@
#### Bug fixes
- API: `m.route.set()` causes all mount points to be redrawn ([#1592](https://github.com/MithrilJS/mithril.js/pull/1592))
+- ospec: Fix assertion ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request's change to how assertion descriptions are returned needs tests.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
MithrilJS__mithril.js__2523 | MithrilJS/mithril.js | 2,523 | defect | 8d30578b9ea6c44a06849b80ac2b2b26c74ea51a | 9184c8a7210199c00b8030399700ccfcb105ec51 | Prevent prototype pollution while parsing query strings on V1 | <!--- Provide a general summary of your changes in the Title above -->
## Description
<!--- Describe your changes in detail -->
This PR ports the changes made in https://github.com/MithrilJS/mithril.js/pull/2494 for Mithril 2.x and above to Mithril 1.1.x.
## Motivation and Context
<!--- Why is this change re... | diff --git a/docs/change-log.md b/docs/change-log.md
index c446d0cf1..9da3af6b5 100644
--- a/docs/change-log.md
+++ b/docs/change-log.md
@@ -19,6 +19,8 @@
- core: Workaround for [Internet Explorer bug](https://www.tjvantoll.com/2013/08/30/bugs-with-document-activeelement-in-internet-explorer/) when running in an ifr... | 1 | 1 | 0 | [{"id": "G0", "claim": "Fix the malformed changelog line by adding the missing opening parenthesis and properly crediting @Hunter-Dolan for the 1.1.x port.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
MithrilJS__mithril.js__255 | MithrilJS/mithril.js | 255 | defect | be9032eb8f587bf7eea79df0142bbc8f9dd09b2b | 9ae6d0ede18c7987d7aacb1603d2f269863b4da8 | Created common functions for typeof | As I mentioned in #251 I'd been thinking about some refactoring of the type functions, and a little code golf.
This PR moves most of the type checking to separate functions, and pulls out the "[object Object]" and "[object Array]" constants.
Code size savings (not sure why the compression isn't as good):
| File | Bef... | diff --git a/mithril.js b/mithril.js
index 24cc7581c..1f9aac4e1 100644
--- a/mithril.js
+++ b/mithril.js
@@ -1,5 +1,9 @@
Mithril = m = new function app(window, undefined) {
- var type = function(obj) {return {}.toString.call(obj)}
+ var sObj = "[object Object]", sArr = "[object Array]";
+ function type(obj) {return {}... | 4 | 3 | 0 | [{"id": "G0", "claim": "The trailing semicolon on the new sObj/sArr declaration breaks the file's semicolon-free style.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The type helpers could be replaced by one parameterised type function with bou... | null |
MithrilJS__mithril.js__2695 | MithrilJS/mithril.js | 2,695 | defect | f1c6a5794a7fc1318c76df6142c79587563d528c | 3d1b3689dec14c5534fc527ffe406ff21ebaad07 | Send URLSearchParams as request body without extra configuration | <!--- Provide a general summary of your changes in the Title above -->
This PR fixes an oddity I noticed in the way `m.request` handles `URLSearchParams` object. It now handles it in the same sort of way XHR and Fetch do it.
## Description
- I added an additional clause to `assumeJSON` check in `m.request` to ma... | diff --git a/docs/changelog.md b/docs/changelog.md
index bbea1913f..74c89761b 100644
--- a/docs/changelog.md
+++ b/docs/changelog.md
@@ -37,6 +37,7 @@ PSA: changes to [`mithril/stream`](stream.md) are now specified in this changelo
- Make changes to file inputs gracefully handled, and don't break if the current value ... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a test covering the new behaviour of sending URLSearchParams as a request body.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
MithrilJS__mithril.js__2985 | MithrilJS/mithril.js | 2,985 | defect | 50c580b1e67f4d7863dba39a0e71d8b913d0be23 | 9bb0d98cdc6b69c4e0a974522b06a5bafdf07d04 | [refactor] Performance improvement of updateStyle() | This is a refactoring to improve the performance of `updateStyle()`.
## Description
In this PR, `style.setProperty()` in `updateStyle()` is used only when there is a dash "-" in the key. This seems to improve performance and reduce code size by eliminating `normalizeKey()` and `toLowerCase()`.
The benchmark "mut... | diff --git a/render/render.js b/render/render.js
index a31d19346..e6723c938 100644
--- a/render/render.js
+++ b/render/render.js
@@ -778,13 +778,6 @@ module.exports = function() {
}
//style
- var uppercaseRegex = /[A-Z]/g
- function toLowerCase(capital) { return "-" + capital.toLowerCase() }
- function normalizeK... | 5 | 4 | 1 | [{"id": "G0", "claim": "Run the benchmarks in a real browser using the internal test page in /performance/index.html, since DOM property updates cost considerably more in the browser and a better idea of the real-world effect is wanted.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "in... | null |
MithrilJS__mithril.js__2988 | MithrilJS/mithril.js | 2,988 | defect | af65b2d430bfdea2f5b1665ad94f695c24e7a0f9 | 2ae7003f5492d4187b86244419dfb4e01f033141 | Improve handling of is-elements and Fix tiny bugs of setAttr()/updateStyle() | <!--- Provide a general summary of your changes in the Title above -->
Fixes a few tiny bugs in attributes and style properties updates, and improves handling of is-elements in updateNode().
## Description
<!--- Describe your changes in detail -->
- removes `key === "is"` from `setAttr()` to fix 2799 https://gith... | diff --git a/render/render.js b/render/render.js
index 6888d06f5..3e06418d5 100644
--- a/render/render.js
+++ b/render/render.js
@@ -676,7 +676,7 @@ module.exports = function() {
}
}
function setAttr(vnode, key, old, value, ns) {
- if (key === "key" || key === "is" || value == null || isLifecycleMethod(key) || ... | 9 | 7 | 4 | [{"id": "G0", "claim": "The diff algorithm needs to compare `is` values for non-custom-element vnodes — replacing, adding, or changing `is` should remove and re-create the element.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The isEmpty() rewrite... | null |
MithrilJS__mithril.js__2991 | MithrilJS/mithril.js | 2,991 | defect | af65b2d430bfdea2f5b1665ad94f695c24e7a0f9 | 36158fed725fe094b57224e06925902deb15d5a3 | updateStyle(): use setProperty() when css vars and dashed-properties, fixes #2989 | <!--- Provide a general summary of your changes in the Title above -->
## Description
<!--- Describe your changes in detail -->
This PR changes updateStyle() to use setProperty() for dashed-properties.
## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->
<!--- If it f... | diff --git a/render/render.js b/render/render.js
index 6888d06f5..6ecb38ee5 100644
--- a/render/render.js
+++ b/render/render.js
@@ -794,7 +794,7 @@ module.exports = function() {
for (var key in style) {
var value = style[key]
if (value != null) {
- if (key[0] === "-" && key[1] === "-") element.style.... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a test spying on a style setter to make sure the style update path only uses camelCase setters.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
MithrilJS__mithril.js__3005 | MithrilJS/mithril.js | 3,005 | defect | e57011cfb8c3e966a53eda27ccc5d7053e9c6d81 | 92c5073e1ca04360385aeb862e636c980ee05a27 | render: wrap stateResult and attrsResult in Promise.resolve(), fix #2592 | <!--- Provide a general summary of your changes in the Title above -->
## Description
<!--- Describe your changes in detail -->
This PR wraps the return value of onbeforeremove in Promise.resolve(). This ensures that thenable objects are also always processed asynchronously.
## Motivation and Context
<!--- Why... | diff --git a/render/render.js b/render/render.js
index 674a8266a..91689fc1f 100644
--- a/render/render.js
+++ b/render/render.js
@@ -614,7 +614,7 @@ module.exports = function() {
generation = currentRender
for (var dom of domFor(vnode)) delayedRemoval.set(dom, generation)
if (stateResult != null) {
- sta... | 2 | 1 | 0 | [{"id": "G0", "claim": "The onbeforeremove section of removeNode should be cleaned up and restructured (split into tryBlockRemove/tryResumeRemove around a counter) to exploit the fact the callback is only ever called once.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}... | null |
MithrilJS__mithril.js__3030 | MithrilJS/mithril.js | 3,030 | defect | a4d2ef1d067179f13597f71a20bad843c27bd7b2 | a5e0975cf86474ac67504c0078dfe3ae629d1118 | router: delay mounting RouterRoot until the first route is resolved (fixes #2621) | <!--- Provide a general summary of your changes in the Title above -->
## Description
<!--- Describe your changes in detail -->
This PR delays the initial mounting of the router component until after the route has been resolved.
Since the component that displays nothing is no longer mounted first, the following i... | diff --git a/api/router.js b/api/router.js
index 6d8bf2f01..bc4643f76 100644
--- a/api/router.js
+++ b/api/router.js
@@ -28,20 +28,24 @@ module.exports = function($window, mountRedraw) {
var ready = false
var hasBeenResolved = false
- var compiled, fallbackRoute
+ var dom, compiled, fallbackRoute
var currentR... | 3 | 3 | 3 | [{"id": "G0", "claim": "The pull request's new behavior (delaying the mount of RouterRoot until the first route is resolved) should have tests.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Tests should confirm that a route resolver's `render` method e... | null |
MithrilJS__mithril.js__3055 | MithrilJS/mithril.js | 3,055 | defect | 952846b057108bc09abb91867d76804402978550 | d3870d5f98a0f517af8c0f416900499661688185 | Make `vnode.domSize` assignment consistent between create and update. | <!--- Provide a general summary of your changes in the Title above -->
This PR makes the code and behavior of create and update processes more consistent.
## Description
<!--- Describe your changes in detail -->
- `vnode.domSize` in `updateFragment` is now always set to an integer and not left `undefined`.
- I... | diff --git a/render/render.js b/render/render.js
index e85c5bf6a..716777005 100644
--- a/render/render.js
+++ b/render/render.js
@@ -93,7 +93,6 @@ module.exports = function() {
}
vnode.dom = temp.firstChild
vnode.domSize = temp.childNodes.length
- // Capture nodes to remove, so we don't confuse them.
var f... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add new tests to verify the vnode.domSize behavior change, since it is a bug fix and tests are needed to make sure it doesn't regress further.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
MithrilJS__mithril.js__3059 | MithrilJS/mithril.js | 3,059 | defect | 0984c9865caa5496fca80236b20e73c8e019e7b2 | 7179aca526a29c26621f3d41b5150b22f67c9f12 | Fix `nextSibling` bugs and refactor `updateNodes()` and its fuzzer | <!--- Provide a general summary of your changes in the Title above -->
This PR fixes `nextSibling`-related bugs in `updateNodes()` and updates updateNodesFuzzer to better cover these cases. It also refactors `updateNodes()` to simplify the logic and improve maintainability.
## Description
<!--- Describe your chang... | diff --git a/render/render.js b/render/render.js
index 716777005..ce0f5ceb7 100644
--- a/render/render.js
+++ b/render/render.js
@@ -274,32 +274,32 @@ module.exports = function() {
else {
var isOldKeyed = old[0] != null && old[0].key != null
var isKeyed = vnodes[0] != null && vnodes[0].key != null
- var st... | 4 | 4 | 1 | [{"id": "G0", "claim": "Reviewer asks to initialize `oldIndices` with `new Int32Array(end - start + 1).fill(-1)` instead of the two-line declaration-plus-loop, or to say whether that would be slower.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Re... | null |
MithrilJS__mithril.js__853 | MithrilJS/mithril.js | 853 | defect | edc5dca238a46270167169377238a6f573d950a1 | 90701a4cbbe3191be77a4311fd84497f90f43f80 | Isolate m.prop() and m.deferred() implementations (mostly) | This mostly isolates the implementations for both of these. Now, everything
here calls the method itself, not any of the external methods.
Few driveby fixes as well:
1. Git now ignores archive/ again (it's a build artifact, and can be removed
when updating `master`)
2. Since I had to rewrite most of the Deferred im... | diff --git a/.gitignore b/.gitignore
index 3c3629e64..aeab5a029 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
node_modules
+archive
diff --git a/mithril.js b/mithril.js
index 9a70070c0..13fb9e5a2 100644
--- a/mithril.js
+++ b/mithril.js
@@ -1193,9 +1193,52 @@ void (function (global, factory) { // eslint-disab... | 2 | 1 | 0 | [{"id": "G0", "claim": "m.prop() no longer returns a Mithril promise when wrapping a third-party promise, which could break code depending on that behavior.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The callback parameter is misspelled `fufill` a... | null |
MmgTools__mmg__123 | MmgTools/mmg | 123 | defect | 0b6d864bd1fe0d0d8d38de124cf8d62600ed82a3 | d072115b8ac39561992a5c81107a102477b801a7 | Hotfix/parallel triangles modification | Points at the interface of a MG_BDY and a MG_PARBDY face where moving: we should skip MG_PARBDY points when seen from a non-required face but also MG_PARBDYBDY points. | diff --git a/cmake/modules/mmg3d.cmake b/cmake/modules/mmg3d.cmake
index 6c8cb09af..d75f13ec1 100644
--- a/cmake/modules/mmg3d.cmake
+++ b/cmake/modules/mmg3d.cmake
@@ -208,6 +208,7 @@ IF ( BUILD_TESTING )
SET(TEST_API3D_EXEC0 ${EXECUTABLE_OUTPUT_PATH}/test_api3d_0)
SET(TEST_API3D_DOMSEL ${EXECUTABLE_OUTP... | 2 | 1 | 1 | [{"id": "G0", "claim": "The Doxygen remarks added in hash.c and analys_3d.c misstate the MG_BDY semantics: the MG_BDY tag can also be used on internal parallel (geometrical) triangles to tag edges at their intersection with purely parallel (non-geometrical) triangles, not only inside non-parallel triangles.", "category... | null |
MmgTools__mmg__280 | MmgTools/mmg | 280 | defect | 2263f92c032a26672c2625230a0689e29e8d96c6 | 3f3d720f2f17b6306c6ce5667fdb9947ba51c136 | Change tag type (int -> uint) and add the tag MG_OVERLAP (for ParMmg) | 1. The type of tag was signed integer `int`, and in now unsigned integer `uint`. This was needed to be able to add extra tags if wanted.
2. In the file `common/mmgcommon_private.h`: add the tag `MG_OVERLAP` useful to create and delete the overlap in ParMmg.
3. In the file `mmg3d/hash_3d.c`, function `MMG5_bdrySet`: ... | diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json
index e69de29bb..a25a72751 100644
--- a/.vscode/c_cpp_properties.json
+++ b/.vscode/c_cpp_properties.json
@@ -0,0 +1,25 @@
+{
+ "configurations": [
+ {
+ "name": "Linux",
+ "includePath": [
+ "${wor... | 3 | 2 | 1 | [{"id": "G0", "claim": "The .vscode/c_cpp_properties.json file should not be added to the commit, as it has no link with the pull request and contains private paths.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The function is not covered by t... | null |
MoarVM__MoarVM__1224 | MoarVM/MoarVM | 1,224 | defect | eb13ccad1395688a32e4f9c2de1a5ba2c0acc61e | 4a83fccad844bae70df15942d3b1a493cb3e9db2 | Fix compiler warnings | NQP builds ok and passes `make m-test` and Rakudo builds ok and passes `make m-test m-spectest`. | diff --git a/src/platform/memmem32.c b/src/platform/memmem32.c
index 870824d7b4..35f027d980 100644
--- a/src/platform/memmem32.c
+++ b/src/platform/memmem32.c
@@ -149,7 +149,7 @@ static char *twoway_memmem_uint32(const uint32_t *h, const uint32_t *z, const ui
/* Search loop */
for (;;) {
/* If remainder of hayst... | 2 | 2 | 1 | [{"id": "G0", "claim": "The reviewer asks in what case lag_last_accept_pos can actually be used uninitialized as the compiler warns and why initializing it to 0 is the right fix compared to changing the algorithm.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1"... | null |
MoarVM__MoarVM__1278 | MoarVM/MoarVM | 1,278 | defect | 9bb7a185071e6c8cd43806f0dfe9b86f91130646 | 0bb34430fb26dcd9b6de18cecdef516b18fe417c | Fix some compiler warnings | By adding some casts and using correct sized format string directives. | diff --git a/src/6model/reprs/P6opaque.c b/src/6model/reprs/P6opaque.c
index 656af50d55..4fb9daf71e 100644
--- a/src/6model/reprs/P6opaque.c
+++ b/src/6model/reprs/P6opaque.c
@@ -840,7 +840,7 @@ static void compose(MVMThreadContext *tc, MVMSTable *st, MVMObject *info_hash) {
/* C structure needs careful al... | 3 | 3 | 1 | [{"id": "G0", "claim": "cur_alloc_addr should be declared as a proper MVMuint64 instead of casting its address to MVMuint64* at the align_to call sites.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Both %llu and %lu are platform-dependent and wrong for... | null |
MoarVM__MoarVM__1344 | MoarVM/MoarVM | 1,344 | defect | 590bac47edc30d16acb8665dbb6b0ec0dfbd7574 | c852ce359085b0704084936067c7701356126ccf | Convert MVMSpeshCandidate to a REPR | This will allow them to be safely removed if desired (e.g., there were too many deopts for a candidate).
NQP builds ok and passes `make m-test` and Rakudo builds ok and passes `make m-test m-spectest`. | diff --git a/build/Makefile.in b/build/Makefile.in
index cd334f7763..0578777626 100644
--- a/build/Makefile.in
+++ b/build/Makefile.in
@@ -198,7 +198,6 @@ OBJECTS2 = src/6model/reprs/MVMDLLSym@obj@ \
src/spesh/dump@obj@ \
src/spesh/graph@obj@ \
src/spesh/codegen@obj@ \
- src/sp... | 7 | 7 | 3 | [{"id": "G0", "claim": "MVM_ASSIGN_REF does the assignment itself, so the preceding plain store 'new_candidate_list[spesh->body.num_spesh_candidates] = candidate;' is redundant and can be removed.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If no... | null |
MoarVM__MoarVM__1412 | MoarVM/MoarVM | 1,412 | defect | b8663f53ae118256b9d02ff37a7ce558d046402e | 5e031c917587f8b36591e8170f864e13ff2c0df9 | Get MoarVM building on Solaris | Currently only tested as 32 bit with gcc and gmake on Solaris 11. | diff --git a/Configure.pl b/Configure.pl
index 051485b5a5..b2d1ced178 100755
--- a/Configure.pl
+++ b/Configure.pl
@@ -491,6 +491,7 @@ sub uniq {
build::auto::detect_cross(\%config, \%defaults);
build::probe::static_inline_cross(\%config, \%defaults);
build::probe::thread_local_cross(\%config, \%defaults... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `#ifndef MVM_HAS_SUBSTANDARD_POW` guard added around `case MVM_OP_pow_n: return pow;` in op_to_func is strictly not needed, since op_to_func will never be called on this op given the change to consume_ins below.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scop... | null |
MoarVM__MoarVM__1413 | MoarVM/MoarVM | 1,413 | defect | 78f4f1d9e9de42bca98d4dfd06980ad4ea2d5d28 | 84844ad8fe5ef0be39532f44b4023615a097e305 | Refactor the C compiler probe code, and add a probe for log() for negative values. | Solaris `log()` (and `log10()`) aren't POSIX conformant for the same circumstances as `pow()` | diff --git a/Configure.pl b/Configure.pl
index b2d1ced178..47617f0813 100755
--- a/Configure.pl
+++ b/Configure.pl
@@ -555,16 +555,15 @@ sub uniq {
. "\t\$(CP) 3rdparty/msinttypes/*.h \"\$(DESTDIR)\$(PREFIX)/include/msinttypes\"\n";
}
+if ($^O eq 'aix' && $config{ld} =~ /xlc/ && $config{ptr_... | 1 | 1 | 0 | [{"id": "G0", "claim": "The AIX condition should match $config{ld} with a tightened regex like m!/xlc, since $config{ld} can be a path and the linker command can be xlc_v6, xlc128 or the like.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.