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
Uberi__speech_recognition__625
Uberi/speech_recognition
625
defect
ae1d88dc468e3c082468e2d1a924d395657ab4ff
282402b8384e30ec98c2964d09599f91aac11782
[feat(whisper)] Add recognize_whisper
Solve https://github.com/Uberi/speech_recognition/issues/624 by adding recognize_whisper to Recognizer. This works by writing in a tempfile, due to the format whisper asks for. Usage example: ```python import speech_recognition as sr # obtain audio from the microphone r = sr.Recognizer() with sr.Micropho...
diff --git a/README.rst b/README.rst index cfb898a2..cacc916c 100644 --- a/README.rst +++ b/README.rst @@ -38,6 +38,7 @@ Speech recognition engine/API support: * `Snowboy Hotword Detection <https://snowboy.kitt.ai/>`__ (works offline) * `Tensorflow <https://www.tensorflow.org/>`__ * `Vosk API <https://github.com/a...
6
4
3
[{"id": "G0", "claim": "test_whisper_chinese only passes with model=\"small\": with the default model=\"base\", Whisper misrecognizes the Chinese audio and the test fails.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The README's new inline code m...
null
Uberi__speech_recognition__845
Uberi/speech_recognition
845
defect
c75c86d48186e0a889e0d67cf2cad3235391c2f9
c223be4405cf313e2d2dbb5c6d829f53da783175
Add verbose parameter to recognize_vosk()
Close https://github.com/Uberi/speech_recognition/pull/592
diff --git a/reference/library-reference.rst b/reference/library-reference.rst index 823ce3f6..d4e29001 100644 --- a/reference/library-reference.rst +++ b/reference/library-reference.rst @@ -280,8 +280,8 @@ Returns the most likely transcription if ``show_all`` is false (the default). Ot Raises a ``speech_recognition...
6
2
0
[{"id": "G0", "claim": "The `recognizer` parameter is declared but unused in the function body and could confuse readers; rename it to `_recognizer` (or add a brief comment explaining it is required for interface consistency).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduc...
null
Uberi__speech_recognition__889
Uberi/speech_recognition
889
defect
9589eeb5040b70c8061af81b53282d6e80b7e9a5
56a0cc4ad243a3ac8685270e94bc4fcefa0fb8be
feat: Add Cohere Transcribe API support (recognize_cohere_api)
Implement speech_recognition.recognizers.cohere_api using cohere.ClientV2 and audio.transcriptions.create, with optional extra cohere-api (PyPI cohere>=5.21.0). Wire Recognizer.recognize_cohere_api, extend CI extras for resolver checks with openai/groq, add tests and document CO_API_KEY in README and library reference...
diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index aeb40309..e7a99e79 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -46,16 +46,16 @@ jobs: - name: Install Python dependencies (Ubuntu, <=3.12) if: matrix.os == 'ubuntu-latest' && ma...
1
1
0
[{"id": "G0", "claim": "The module entrypoint name `recognize_cohere_api` is inconsistent with the recognizer module pattern; consider renaming it to `recognize` (keeping the public method `Recognizer.recognize_cohere_api`) and updating the `__init__.py` wiring and library reference target to keep recognizer modules un...
null
Ulauncher__Ulauncher__1319
Ulauncher/Ulauncher
1,319
defect
aedb64cc426250726f952ee449d2856adec5b62f
3cd8a708cad40768eba92f7318ce725a83ec8cd6
Search for preinstalled (read-only) extensions in XDG_DATA_DIRS
I've changed the code to search through all `$XDG_DATA_DIRS` for extensions that are read-only. Writes and edits are still done only to `$XDG_DATA_HOME`. It will help me a lot with packaging extensions on Nix as often it symlinks plugins/extensions into the package dir itself and/or augments binaries' standard envir...
diff --git a/tests/modes/apps/extensions/test_extension_finder.py b/tests/modes/apps/extensions/test_extension_finder.py index 6481c5e40..8ec5c6a85 100644 --- a/tests/modes/apps/extensions/test_extension_finder.py +++ b/tests/modes/apps/extensions/test_extension_finder.py @@ -1,10 +1,10 @@ import os -from ulauncher....
16
11
6
[{"id": "G0", "claim": "The locate_extension API is confusing: call sites pass different directory arguments (PATHS.EXTENSIONS_ALL in most places but PATHS.EXTENSIONS in ExtensionController.py), the `default` parameter is never passed by any caller, and `default_first` misleadingly suggests the default is used first.",...
null
Ulauncher__Ulauncher__1493
Ulauncher/Ulauncher
1,493
defect
2e25bfb71d7f8ac9ac7b325f3e18d7dfaa15a31c
3e89f63da5fe81bf412fcfe616b4591231fbea8c
perf: defer loading mode handler until after UI has loaded
Mode handler contains all the stuff that's slow to load. I did previously deferr loading it, but I broke this in recent changes (or maybe in less recent changes too). Additionally, the event I previously used to load the deferred logic now runs before the window is shows and blocks it from showing. I'm not sure if G...
diff --git a/ulauncher/modes/query_handler.py b/ulauncher/modes/query_handler.py index 424468f6b..ffe92a61e 100644 --- a/ulauncher/modes/query_handler.py +++ b/ulauncher/modes/query_handler.py @@ -17,11 +17,12 @@ class QueryHandler: query: Query = Query(None, "") triggers: list[Result] = [] trigger_mode_...
4
1
0
[{"id": "G0", "claim": "The `update` method only returns early or does nothing, and it should call `self.parse(query_str)` and then `self.handle_change()` so that query parsing and result handling actually occur.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "...
null
Ulauncher__Ulauncher__1553
Ulauncher/Ulauncher
1,553
defect
a647e73e04b9f94e1bce93c46a675dff52d4df7a
ae4117984b7c71a3ea36435926501ab25417732b
refactor: follow single responsibility principle in the extension module, use explicit in-memory extension registry
The main reason I need this is to have an in-memory extension registry. It will allow registering temporary (preview) extensions. Other changes are to make the related classes cleaner.
diff --git a/tests/modes/apps/extensions/test_extension_mode.py b/tests/modes/apps/extensions/test_extension_mode.py index bcb22e158..bf7f6ce48 100644 --- a/tests/modes/apps/extensions/test_extension_mode.py +++ b/tests/modes/apps/extensions/test_extension_mode.py @@ -8,9 +8,19 @@ from ulauncher.modes.extensions.exten...
5
5
1
[{"id": "G0", "claim": "The non-managed-fallback handling in remove() cannot work as written — the old controller is not popped before loading the new one and the fallback controller is never added to the registry — so this should be moved completely to the extension_registry.removed listener (or a new listener added),...
null
Ulauncher__Ulauncher__1579
Ulauncher/Ulauncher
1,579
defect
d68b1e57c1763adf89c948618f9034047da6e56b
447666a9d3a32a833ffdc79ac5ccaaed02fec59c
refactor: extension custom exception handling rewrite
### Simplified/improved custom error handling 1. Made all exceptions inherit from one ExtensionError, so we can choose to catch that instead of multiple specific ones, or worse: catching "Exception". 1. Created module that defines all extension exceptions, so we don't have to import the error from the class it's th...
diff --git a/tests/modes/apps/extensions/test_extension_manifest.py b/tests/modes/apps/extensions/test_extension_manifest.py index 6db23a602..f0730bd35 100644 --- a/tests/modes/apps/extensions/test_extension_manifest.py +++ b/tests/modes/apps/extensions/test_extension_manifest.py @@ -4,11 +4,8 @@ import pytest -fr...
1
1
1
[{"id": "G0", "claim": "The exception handler in update() catches only (ext_exceptions.ExtensionError, ValueError), so failures that install() -> remote.download() can still raise unwrapped (subprocess.CalledProcessError from git operations, HTTPError/URLError from urlretrieve, TarError/OSError from untar) would bypass...
null
Ulauncher__Ulauncher__1583
Ulauncher/Ulauncher
1,583
defect
0c3fee1a5ae63536acf321c5b5f3c4a05584b7f0
85db6735f4648de5ddb6b709a2035fb4e2b6d6c9
fix: rewrite core/modes to handle async better
Refactors the query handling architecture to use callbacks instead of return values, and fixes a race condition where slow outdated extension responses could override the correct current result if the query changed to not match any extensions. ## The problem The previous synchronous return-based API had limitatio...
diff --git a/tests/modes/calc/test_calc_mode.py b/tests/modes/calc/test_calc_mode.py index 704e4e819..5483133a1 100644 --- a/tests/modes/calc/test_calc_mode.py +++ b/tests/modes/calc/test_calc_mode.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from decimal import Decimal from unittest.mock import MagicMock...
3
2
2
[{"id": "G0", "claim": "The `_callbacks` dict stores callbacks keyed by `query_change_id` but `_get_callback_for_response` uses `.get()` instead of `.pop()`, so callback entries are never removed and accumulate indefinitely as queries are processed (potential memory leak).", "category": "performance", "verdict": "suppo...
null
Ulauncher__Ulauncher__1586
Ulauncher/Ulauncher
1,586
defect
ffea5c5fa894a326fc0d93ab1eec0c833f5fa7e1
4389dc3373ca27b3909e49dbe8cbc8edaeafbcb7
refactor: make action message type stricter (again)
It used to be stricter when we used python pickle as the serialization format and actually sent class instances. That was bad for a number of reasons so we switched to (untyped) json, which was a bit messy, which is what this PR aims to improve. In addition the shortcuts to return python language primitives made thi...
diff --git a/tests/modes/calc/test_calc_mode.py b/tests/modes/calc/test_calc_mode.py index 5483133a1..0b43dc2b9 100644 --- a/tests/modes/calc/test_calc_mode.py +++ b/tests/modes/calc/test_calc_mode.py @@ -6,6 +6,7 @@ import pytest from pytest_mock import MockerFixture +from ulauncher.internals import actions from ...
4
1
1
[{"id": "G0", "claim": "Fix the TypedDict union syntax for Python <3.10 compatibility: the `|` operator on TypedDicts fails at module import time on older Python, so ActionMessage should use typing.Union.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim"...
null
Ulauncher__Ulauncher__1606
Ulauncher/Ulauncher
1,606
defect
8f4d5c65d31b87c7cf2849ec46cbecb36fb18637
4e2b6893703d575ed7c9dc19465f7f96afb98d3e
refactor(modes): centralize handling of keyword triggers
We don't need to run these via the modes. It's easier to handle them directly in core. This aligns better with upcoming changed needed for #931 (I want triggers to not need to use "actions", but work separately from them, so we don't need to give names to what it means to activate a trigger, and show a list of (one)...
diff --git a/tests/modes/shortcuts/test_shortcut_mode.py b/tests/modes/shortcuts/test_shortcut_mode.py index 53bdfe3b0..a7be28a78 100644 --- a/tests/modes/shortcuts/test_shortcut_mode.py +++ b/tests/modes/shortcuts/test_shortcut_mode.py @@ -6,10 +6,9 @@ import pytest from pytest_mock import MockerFixture -from ulau...
1
1
1
[{"id": "G0", "claim": "Fix the type inference of the props dict in get_triggers(): the type checker infers dict[str, str | None], which conflicts with Result.__init__'s bool | None parameters (compact, highlightable, searchable) when unpacked via **props, causing pipeline type-check failures; annotate the dict or pass...
null
Ulauncher__Ulauncher__1614
Ulauncher/Ulauncher
1,614
defect
cc40150e8a1eabf6b929295abe29f6399e2f0c89
d0738b92c796a6f3b228703c2dbf9b51de679b49
fix: enhance HTML rendering of <code> blocks in labels in ExtensionsView
Fixes #1602
diff --git a/tests/ui/windows/__init__.py b/tests/ui/windows/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/ui/windows/preferences/__init__.py b/tests/ui/windows/preferences/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/ui/windows/preferences/utils/__init...
1
1
1
[{"id": "G0", "claim": "The regex _CODE_TAG_RE uses \\\\s in a raw string, which matches a literal backslash instead of whitespace, so <code> tags with attributes (e.g. <code class=\"highlight\">) are not converted to Pango markup; the pattern should use \\s and the test suite should add a case covering code tags with ...
null
Ulauncher__Ulauncher__1624
Ulauncher/Ulauncher
1,624
defect
851a18c57d1b835af3043b8c2081f8b28201a28f
f9a626e0a504cf170a86082f07f0fa65065cc943
refactor: move and split up effect_handler
* Moved all utils from effects, effect_handler and effect_input to effect_utils module * Split handle_effect into two methods * The new should_close methods will be useful elsewhere * Added tests for should_close * Added more minor improvements
diff --git a/tests/internals/__init__.py b/tests/internals/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/internals/test_effects.py b/tests/internals/test_effects.py new file mode 100644 index 000000000..1af3198fa --- /dev/null +++ b/tests/internals/test_effects.py @@ -0,0 +1,82 @@ +from...
5
5
2
[{"id": "G0", "claim": "The should_close function, as a public API with non-obvious closing rules, should get a concise docstring explaining when the window closes.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Recursive handle() calls for LEGACY...
null
Ulauncher__Ulauncher__1626
Ulauncher/Ulauncher
1,626
defect
8724eccbfe8d00066324647e1b000fa009cde146
e473eee1dead2cd789964955af346d73ea3ee6e8
feat: move non-effects from effects namespace to extension class
closes #1622 (more info in this ticket for why) * moved copy effect into extension class method (renamed to `clipboard_store` to avoid confusion with internal python memory `copy` method or custom extension method) * added `notify` method * rewrote RunScriptAction not to use effects at all (it can run in the exten...
diff --git a/tests/internals/test_effect_utils.py b/tests/internals/test_effect_utils.py index 59f22e33d..3da416f5d 100644 --- a/tests/internals/test_effect_utils.py +++ b/tests/internals/test_effect_utils.py @@ -29,54 +29,3 @@ def test_open_closes_window(self) -> None: """OPEN effect should close the window."...
11
8
2
[{"id": "G0", "claim": "Rename the RunScriptAction parameter `args` to `arg` for consistency with the callee in ulauncher/modes/shortcuts/run_script.py.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The calc mode test only verifies utils.copy i...
null
Ulauncher__Ulauncher__1657
Ulauncher/Ulauncher
1,657
defect
02ab2e6ca9d0e1e5fbbb7f129fe159aeca72448d
660b0103cecec632c914ad19bdb9754844099e61
refactor: rewrite extension manifest validation
Avoid assertions in app code and nested error handling (re-throwing errors) Also fixes some minor issues and adds tests <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Rewrote extension manifest validation to remove assertions and nested error handling. Validation now raises ...
diff --git a/ulauncher/modes/extensions/extension_manifest.py b/ulauncher/modes/extensions/extension_manifest.py index be0cfc457..007fc20fc 100644 --- a/ulauncher/modes/extensions/extension_manifest.py +++ b/ulauncher/modes/extensions/extension_manifest.py @@ -97,50 +97,50 @@ def validate(self) -> None: er...
4
4
2
[{"id": "G0", "claim": "The truthiness check on the checkbox default (`and default`) lets invalid falsy values like `0` and `\"\"` bypass the boolean default_value validation.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Because bool is a subclass...
null
Ulauncher__Ulauncher__1660
Ulauncher/Ulauncher
1,660
defect
915596dec7e0bb6ced16eeaf2e69b16bc51fb348
6b783c7759f82fdb3b320179a4324352231ecde4
fix: harden run_script behavior and tests
Mainly avoid predictable path in world-writable directory: The temp-file name is derived from `time.time()`, making it predictable within a narrow window. On a world-writable `/tmp`, a racing local process that knows the approximate timestamp could create a symlink at that path before the `chmod` + `check_output` sequ...
diff --git a/ulauncher/modes/shortcuts/run_script.py b/ulauncher/modes/shortcuts/run_script.py index bcc0933dc..458421887 100644 --- a/ulauncher/modes/shortcuts/run_script.py +++ b/ulauncher/modes/shortcuts/run_script.py @@ -3,7 +3,6 @@ import shlex import subprocess import tempfile -import time from ulauncher.ut...
2
2
2
[{"id": "G0", "claim": "If tmp.write(script) raises, the temp file created with delete=False is never cleaned up because the try/finally sits outside the with block, and file_path should be assigned before the write so the path is available for cleanup.", "category": "correctness", "verdict": "supported", "priority": "...
null
Ullaakut__cameradar__372
Ullaakut/cameradar
372
defect
5931bf3e7e9d9c13ce3b2fb1a4d2aec37a0b37d2
fb17b83e58cf5bd4e33ac2480680c8858737c1d1
Fix RTSP double slash URLs and connection error handling
Fixes #370 ## Changes - Doesn't give false positive results - Fixed double slash in RTSP URLs (e.g., rtsp://ip:554// → rtsp://ip:554/) - Added Accept: application/sdp header for DESCRIBE requests - Added protection against infinite loops when server blocks requests - Stops after 5 consecutive connection failure...
diff --git a/attack.go b/attack.go index 7f08e02c..e40165ee 100644 --- a/attack.go +++ b/attack.go @@ -9,10 +9,11 @@ import ( // HTTP responses. const ( - httpOK = 200 - httpUnauthorized = 401 - httpForbidden = 403 - httpNotFound = 404 + httpOK = 200 + httpUnauthorized = 401 + h...
3
3
1
[{"id": "G0", "claim": "routeAttack and the other methods that can return a connection error should return a single error value — wrapping connection failures in an ErrConnection sentinel — instead of returning a boolean alongside the error.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "in...
null
Ullaakut__cameradar__391
Ullaakut/cameradar
391
defect
777bd2a488138a71badec0fd4d0707e76135b181
749f07505f5c37a8a694b958cec5ac96bc473611
fix: no longer give up on detecting auth type when getting a 401
## Goal of this PR Fixes [#390](https://github.com/Ulaakut/cameradar/issues/390) This PR fixes the issue where cameradar fails to detect authentication types when receiving a 401 Unauthorized response without a proper response object, causing the tool to give up. ### Changes * Adds AuthUnknown enum value to...
diff --git a/internal/attack/attacker.go b/internal/attack/attacker.go index be2dcee3..c34ef5b0 100644 --- a/internal/attack/attacker.go +++ b/internal/attack/attacker.go @@ -305,7 +305,7 @@ func (a Attacker) detectAuthMethods(ctx context.Context, targets []cameradar.Str case cameradar.AuthDigest: authMethod = "...
3
2
0
[{"id": "G0", "claim": "When a 401 response arrives with no response object, AuthenticationType is left at its zero value rather than explicitly assigned, so the correct behaviour silently depends on AuthUnknown staying the first iota constant; an explicit else-assignment would make it robust.", "category": "maintainab...
null
Ullaakut__cameradar__394
Ullaakut/cameradar
394
defect
af41fc6cb8c035b965043608bbc5360aef6c2d3b
93e484f081edab3f5d77194db06ab0de17a0c763
feat: small UI improvements
## Goal of this PR Fixes [#393](https://github.com/Ulaakut/cameradar/issues/393) Fixes [#392](https://github.com/Ulaakut/cameradar/issues/392) ### Changes * Added build metadata support (version, commit, date) with display methods * Implemented startup configuration logging for plain/debug mode * Added Ctrl...
diff --git a/.goreleaser.yml b/.goreleaser.yml index dbe2bf5a..e746c565 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -46,21 +46,21 @@ archives: dockers: - image_templates: - - "ullaakut/{{ .ProjectName }}:{{ .Version }}-amd64" + - "ullaakut/{{ .ProjectName }}:v{{ .Version }}-amd64" - "ul...
3
2
0
[{"id": "G0", "claim": "The .goreleaser.yml configuration does not include ldflags to inject the newly added `commit` and `date` build variables, so they will always have their default values (\"none\" and \"unknown\"), and an ldflags configuration should be added to the builds section.", "category": "correctness", "ve...
null
Ullaakut__cameradar__397
Ullaakut/cameradar
397
defect
f192139cc33164e0ebc66b1c1707be3e11786f1e
ede2fdc2540df8ad59f8d12d9073b9b3f29f18eb
fix: always add leading slash to routes
## Goal of this PR Fixes #396 This PR ensures we always add a leading slash to the RTSP route. It also adds unit tests to check related edge cases. ## How did I test it? Unit tests.
diff --git a/internal/attack/rtsp.go b/internal/attack/rtsp.go index 64c4b73..7686205 100644 --- a/internal/attack/rtsp.go +++ b/internal/attack/rtsp.go @@ -166,10 +166,7 @@ func headerValues(header base.Header, name string) base.HeaderValue { func buildRTSPURL(stream cameradar.Stream, route, username, password stri...
1
1
1
[{"id": "G0", "claim": "The same leading-slash fix should be applied to the two other RTSP URL formatters (internal/output/m3u.go:formatRTSPURL and internal/ui/summary.go:formatRTSPURL), which still use the old pattern so user-facing URLs stay inconsistent with the fixed internal ones.", "category": "correctness", "ver...
null
Ullaakut__cameradar__403
Ullaakut/cameradar
403
defect
fd0d948c168e4a934d050f58cac8ddb1d8388238
5a0875fafbd7dbe24014b4518d0b53ba617247a4
feat: add masscan discovery backend
## Goal of this PR Fixes [#303](https://github.com/Ulaakut/cameradar/issues/303) This PR adds [masscan](https://github.com/robertdavidgraham/masscan) as an alternative discovery backend for Cameradar, while keeping [nmap](https://nmap.org/) as the default. It introduces scanner selection via CLI/config, integrat...
diff --git a/Dockerfile b/Dockerfile index 0da1a9b..efeda06 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,10 @@ FROM alpine RUN apk --update add --no-cache nmap \ nmap-nselibs \ - nmap-scripts + nmap-scripts \ + masscan \ + libpcap \ + libpcap-dev WORKDIR /app/cameradar diff --git a/RE...
3
2
2
[{"id": "G0", "claim": "The libpcap-dev package provides only compile-time headers not needed at runtime, so it should be removed from the Dockerfile to reduce image size and attack surface, keeping only libpcap.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim...
null
UltimateHackingKeyboard__firmware__1362
UltimateHackingKeyboard/firmware
1,362
defect
7591ff715dbde43402589c776158f4075d81af25
1bad8dd95dfa4c8e9c2d1853c553dfed4223efa7
Fix UHK60 backlight sleep mode.
Closes #1176 Reproduction steps: - set backlight fade timeout on a UHK60 to say 4 seconds - connect uhk60 into a dumb usb charger (the older, the better) - observe that after four seconds it doesn't turn its backlight of - in case it does, tap some key (a one that has a scancode mapped) - again observe that af...
diff --git a/right/src/main.c b/right/src/main.c index 28d090234..6ef5f7ab9 100644 --- a/right/src/main.c +++ b/right/src/main.c @@ -83,7 +83,8 @@ static void initConfig() static void sendFirstReport() { bool success = false; - while (!success) { + // Wait until sending a report is successful, but don't bl...
6
3
2
[{"id": "G0", "claim": "The style of the new resend code — static variables whose pointers are passed into function calls, and updating statics at all — looks redundant and unsafe.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "USB report sending/...
null
UltimateHackingKeyboard__firmware__1392
UltimateHackingKeyboard/firmware
1,392
defect
97fecec2c631e71f735c3781ab9a905afac9eb23
7f17c9a67c01d98e97974046d718b8598ce4696a
Rst btn hunt2
Closes #1380
diff --git a/right/src/main.c b/right/src/main.c index c46113588..27b17243f 100644 --- a/right/src/main.c +++ b/right/src/main.c @@ -206,7 +206,7 @@ int main(void) { Trace_Init(); if (StateWormhole_IsOpen()) { - if (StateWormhole.wasReboot || Trace_LooksLikeNaturalCauses()) { + if (StateWormhol...
5
5
2
[{"id": "G0", "claim": "The pull request adds a duplicate include of config_manager.h in right/src/peripherals/reset_button.c; remove the added duplicate include.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request adds a duplicate i...
null
UltimateHackingKeyboard__firmware__1393
UltimateHackingKeyboard/firmware
1,393
defect
d63833f05b7258d7a664ef6def363955c24599a5
8bab772548e5f7727f3bc5b3fec2465c10c1901b
Firngrod/primary from same half
I did try my best to keep to the repository guidelines. Let me know if anything is out of place. I elected not to make it exclusive to advanced strategy as it could also be useful for simple strategy.
diff --git a/doc-dev/reference-manual.md b/doc-dev/reference-manual.md index 2a1660203..83eca2dc4 100644 --- a/doc-dev/reference-manual.md +++ b/doc-dev/reference-manual.md @@ -145,11 +145,12 @@ COMMAND = set module.touchpad.pinchZoomDivisor <1-100 (FLOAT)> COMMAND = set module.touchpad.pinchZoomMode NAVIGATION_MODE ...
11
10
5
[{"id": "G0", "claim": "The new same-half helper functions might not have to be utils functions (they should perhaps not be moved to utils until needed elsewhere).", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "IsRightHalfOrModule should be static and drom...
null
UltimateHackingKeyboard__firmware__1394
UltimateHackingKeyboard/firmware
1,394
defect
d63833f05b7258d7a664ef6def363955c24599a5
ddfe7fe9cee5f3036ac80be37ce430ebb141aec8
Finrgrod/Secondary role minimum hold time
What the title says, essentially. I haven't explicitly tested this on it's own, only on top of the same half stuff, but it should be okay.
diff --git a/doc-dev/reference-manual.md b/doc-dev/reference-manual.md index 2a1660203..11ff43974 100644 --- a/doc-dev/reference-manual.md +++ b/doc-dev/reference-manual.md @@ -151,6 +151,7 @@ COMMAND = set secondaryRole.advanced.safetyMargin <ms, higher value adjusts sens COMMAND = set secondaryRole.advanced.triggerB...
1
1
0
[{"id": "G0", "claim": "The new reference-manual line for `set secondaryRole.advanced.minimumHoldTime` should end in `(INT)` like the neighbouring command entries, as the reviewer's suggestion block proposes.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
UltimateHackingKeyboard__firmware__1414
UltimateHackingKeyboard/firmware
1,414
defect
9c350e90688d3fe0f8077fc22102ac007cd0b59a
60b655b0a3671f02554d1c08a7b3cd2e1a2350df
Max-style bluetooth slot handling
Changelog: - Assign newly paired bluetooth connections into regular host slots. - Don't unpair unknown devices upon config saves. - Show bluetooth relevant events on the oled screen. - If native switch connection action is held for 3 seconds, unpair the connection and free its slot for other devices. - Add `un...
diff --git a/device/src/bt_conn.c b/device/src/bt_conn.c index 714d8497e..b43afa208 100644 --- a/device/src/bt_conn.c +++ b/device/src/bt_conn.c @@ -35,6 +35,8 @@ #include "trace.h" #include "right/src/bt_defs.h" #include "bt_health.h" +#include "macros/status_buffer.h" + LOG_MODULE_REGISTER(Bt, LOG_LEVEL_INF); ...
15
3
2
[{"id": "G0", "claim": "The unpairHost documentation uses \"in User Configuration\" without clearly explaining what it means or how users can determine which connection types are in it.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The unpair tim...
null
UltimateHackingKeyboard__firmware__1418
UltimateHackingKeyboard/firmware
1,418
defect
3c9f0c7a22215435ea087e850999ca2bfe3cc36e
b7fb0e3145e2e50c3633449191dfc6a27469e8ce
Firngrod/timeout noop option
The biggest change in this PR is how the caching of resolutions of secondary key state is handled. Now the fact that a key needs a new resolution is explicitly set for new presses both in the case of secondary role keys and macros. The big difference here is that a macro will only allow this resolution to run once fo...
diff --git a/doc-dev/reference-manual.md b/doc-dev/reference-manual.md index 06ab80263..1673a4fe7 100644 --- a/doc-dev/reference-manual.md +++ b/doc-dev/reference-manual.md @@ -146,7 +146,7 @@ COMMAND = set module.touchpad.pinchZoomMode NAVIGATION_MODE COMMAND = set module.touchpad.holdContinuationTimeout <0-65535 (IN...
2
2
0
[{"id": "G0", "claim": "The resetting of the secondary role resolution cache should be done by a direct variable write from usb_report_updater.c under the `actionCache[slotId][keyId].modifierLayerMask = 0;` line, rather than through the SecondaryRoles_ResetResolution function the PR adds.", "category": "design", "verdi...
null
UltimateHackingKeyboard__firmware__1420
UltimateHackingKeyboard/firmware
1,420
defect
c6198af112e8dd10ed64745cdcaa9f6c18ab2036
ff31d57d79e73dd2a7d3147aabd049db77492730
Firngrod/improved same half logic
This improves upon the same half secondary logic in that it no longer actively triggers primary from same half activations, but rather just prevents same half keys from triggering secondary role. While there are a number of edge case changes from this, none are what I would call bugs, and I think the benefits outweigh...
diff --git a/doc-dev/reference-manual.md b/doc-dev/reference-manual.md index 06ab80263..c7da81f97 100644 --- a/doc-dev/reference-manual.md +++ b/doc-dev/reference-manual.md @@ -154,7 +154,7 @@ COMMAND = set secondaryRole.advanced.triggerByMouse <trigger secondary role imme COMMAND = set secondaryRole.advanced.minimumH...
7
3
1
[{"id": "G0", "claim": "The predicate indirection in the postponer search functions costs readability and performance (a premature generalization), and the same-half logic should be baked into the search functions instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": ...
null
UltimateHackingKeyboard__firmware__1477
UltimateHackingKeyboard/firmware
1,477
defect
20602a2962f91922b5b5a2cc5e7cd63ed777ae65
9ec68508b787f411d831ac5e23702855da34cd38
Firngrod/global doubletap handling
Running this now, seems to work fine. I want to run it for a bit to make sure. I only propagated the press as far as it needed to go down the tree in `usb_report_updater.c`. I think maybe the sequence number for macros should go into the key press info. Do you have a procedure for remembering to remove removed co...
diff --git a/doc-dev/reference-manual.md b/doc-dev/reference-manual.md index d566c8e27..a90df3856 100644 --- a/doc-dev/reference-manual.md +++ b/doc-dev/reference-manual.md @@ -160,7 +160,6 @@ COMMAND = set secondaryRole.advanced.triggeringEvent { press | release | none } COMMAND = set secondaryRole.advanced.triggerBy...
7
6
2
[{"id": "G0", "claim": "The activation time, the activation sequence number and the secondary role state should become part of key_press_info_t (including replacing the macro state's separate keyActivationSeq field) instead of living as separate fields.", "category": "design", "verdict": "supported", "priority": "P2", ...
null
UltimateHackingKeyboard__firmware__18
UltimateHackingKeyboard/firmware
18
defect
1f8fc560e450b7e2d5a4ef84789c3a52d6375b36
265988ee25bc7d62e99d354116b4bd574b51b33b
Big Keymap Restructure
This changes the keymap layout to be as described in #17, and updates the default layout to follow. (Also adds the missing Space and Mod keys on the two keys below the bottom row) The layout itself was considerably simplified by introducing a few local macros to hide some of the uglier details. Also includes #16,...
diff --git a/right/src/default_layout.c b/right/src/default_layout.c index e9db51efd..0a53a158a 100644 --- a/right/src/default_layout.c +++ b/right/src/default_layout.c @@ -1,77 +1,56 @@ #include "default_layout.h" -KEYBOARD_LAYOUT(defaultKeyboardLayout)={ - {{.type = UHK_KEY_SIMPLE, .simple = { .key = HID_KE...
6
6
3
[{"id": "G0", "claim": "The S/L shorthand macros in default_layout.c should not be used; the factory keymap should be written out so its structure is directly visible.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "UHK_KEY_TRANSPARENT (the TRNS ...
null
UltimateHackingKeyboard__firmware__23
UltimateHackingKeyboard/firmware
23
defect
cbdb0139772cf42ee4e58b5918eed5ac88837f5f
2a7edbce6f74ce396ba85164c3ff148d075df43c
Light up LEDs on the display when switching layers
When switching layers, light up the appropriate LED on the display. For this purpose, start `led_display.[ch]`, which as a start, has a function to set the brightness of a layer led. The function will also turn all other LEDs off, and turn all of them off when on the base layer.
diff --git a/right/src/keyboard_layout.c b/right/src/keyboard_layout.c index 5a459a9a7..75bf2d7c9 100644 --- a/right/src/keyboard_layout.c +++ b/right/src/keyboard_layout.c @@ -1,5 +1,5 @@ #include "keyboard_layout.h" -#include "led_driver.h" +#include "led_display.h" #include "layer.h" static uint8_t keyMasks[SLO...
1
1
0
[{"id": "G0", "claim": "Replace the hardcoded 0xff brightness with a global LedDisplayBrightness value (remove the brightness parameter of LedDisplay_SetLayerLed and use the global in the function body) so it can be reused elsewhere later.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "intr...
null
UltimateHackingKeyboard__firmware__57
UltimateHackingKeyboard/firmware
57
defect
d06cb4f1e272fcdd6f28e32e750ee173c144defd
31de620fee32ee6f1f7f22a451cf5e924319f68e
Implement keymap switching
This resolves #52.
diff --git a/right/src/config_parser/parse_config.c b/right/src/config_parser/parse_config.c index 1867818b0..948df44aa 100644 --- a/right/src/config_parser/parse_config.c +++ b/right/src/config_parser/parse_config.c @@ -38,7 +38,7 @@ parser_error_t ParseConfig(config_buffer_t *buffer) { } keymapCount = readC...
1
1
1
[{"id": "G0", "claim": "The local variable oldKeymapAbbreviationLen in applyConfig() should be declared uint8_t rather than char, since it stores keymap abbreviation lengths.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
UltimateHackingKeyboard__firmware__666
UltimateHackingKeyboard/firmware
666
defect
437a0297055f15cb1c672d618f68eded565df7dc
35ee3e07965f31739f900d10d6fd73bca2400e42
Implement checksum-based builds.
Closes #440
diff --git a/right/src/slave_drivers/uhk_module_driver.c b/right/src/slave_drivers/uhk_module_driver.c index 4bedc7c86..1225892ba 100644 --- a/right/src/slave_drivers/uhk_module_driver.c +++ b/right/src/slave_drivers/uhk_module_driver.c @@ -13,6 +13,7 @@ #include "keymap.h" #include "debug.h" #include "macros.h" +#i...
5
3
2
[{"id": "G0", "claim": "The right firmware fails to compile with error 'DeviceMD5Checksums' undeclared in usb_command_get_device_property.c when versions.h has not been regenerated with the new generator.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim"...
null
UltimateHackingKeyboard__firmware__737
UltimateHackingKeyboard/firmware
737
defect
d11c8cbbf5558fc755479aee76134d447ba6ef79
dbdc0697ad4bc484a9e3150ec071959741d3bc1a
Add new 7.0.0 data model config values.
Closes #733. (Untested.)
diff --git a/right/src/config_parser/basic_types.c b/right/src/config_parser/basic_types.c index 00d06bdc4..9253fa12c 100644 --- a/right/src/config_parser/basic_types.c +++ b/right/src/config_parser/basic_types.c @@ -1,4 +1,5 @@ #include "basic_types.h" +#include <string.h> uint8_t ReadUInt8(config_buffer_t *buffer...
13
10
1
[{"id": "G0", "claim": "ReadUInt32 appears to mis-parse little-endian input (0xDDCCBBAA would come out as 0x0000DDAA) because the third and fourth bytes are shifted by 8 instead of 16 and 24.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "pre_existing"}, {"id": "G1", "claim": "ReadFloa...
null
UltimateHackingKeyboard__firmware__749
UltimateHackingKeyboard/firmware
749
defect
1fb096bf7c0eb38f221e189e7886827e1ddc95a2
3595087cbf72dc124ed9463719c5d72a0f2550de
Key timing hunt rebased
Changelog: - advanced strategy revised: safety-margin-related behavior might have changed - added `secondaryRole.advanced.triggerByMouse` config value. Advanced secondary roles are now not triggered by mouse movement by default. - added `secondaryRole.advanced.triggerByPress` config value. Closes #746 . Implemen...
diff --git a/doc-dev/reference-manual.md b/doc-dev/reference-manual.md index 13d80066d..98e77dd9d 100644 --- a/doc-dev/reference-manual.md +++ b/doc-dev/reference-manual.md @@ -114,7 +114,9 @@ The following grammar is supported: COMMAND = set secondaryRole.advanced.timeout <ms, 0-500 (INT)> COMMAND = set seco...
3
1
0
[{"id": "G0", "claim": "The `if (true)` condition in Utils_KeyAbbreviation is pointless because only that branch can run.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "resolveCurrentKeyRoleIfDontKnowTimeout is becoming heavy and hard to compreh...
null
Ultraplot__UltraPlot__139
Ultraplot/UltraPlot
139
defect
f058511614b297646d69073410423eeebf930db5
b7fcdcc8f081fecffc0894ed058c05c32039d7ee
Add option to place abc indicator outside the axis bbox
This PR addresses the issue raised in [#138](https://github.com/Ultraplot/ultraplot/issues/138) regarding title positioning when axes don't have ticks. Previously, axis titles were positioned with a fixed offset that assumed the presence of ticks and labels, causing inconsistent spacing when ticks were disabled. ## ...
diff --git a/ultraplot/axes/base.py b/ultraplot/axes/base.py index 296222469..cd3f94cd7 100644 --- a/ultraplot/axes/base.py +++ b/ultraplot/axes/base.py @@ -765,6 +765,7 @@ def __init__(self, *args, **kwargs): self._auto_format = None # manipulated by wrapper functions self._abc_border_kwargs = {} ...
12
7
3
[{"id": "G0", "claim": "The condition for updating _abc_pad fails when pad is 0 because 0 is falsy; it should be changed to 'is not None' so a pad of 0 is still applied.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The 'if loc == \"left\":' condit...
null
Ultraplot__UltraPlot__219
Ultraplot/UltraPlot
219
defect
3ec1095610c42bf8aa351410db02262097e934aa
1d7048d82e20ecb39b4a76775203ef036ca0235c
Skip sharing logic when colorbar is added to GeoPlots.
This PR addresses #217. The recent added feature of sharing GeoAxes did not test when `PlotAxes` methods are called on `GeoAxes`. We don't have to apply the GeoSharing there; alternatively we could add the private function to the CartesianPlots. In this PR we just skip these axes.
diff --git a/ultraplot/axes/geo.py b/ultraplot/axes/geo.py index 9c6835e82..8e3d5355d 100644 --- a/ultraplot/axes/geo.py +++ b/ultraplot/axes/geo.py @@ -746,6 +746,10 @@ def _handle_axis_sharing( bottom=are_ticks_on, ) for axi in self.figure.axes: + # If users have colormeshes ...
2
1
0
[{"id": "G0", "claim": "Consider clarifying the comment above the non-GeoAxes skip in _handle_axis_sharing so it states explicitly that only GeoAxes have their gridliner labels toggled and that non-GeoAxes (axes added by colormesh/colorbar or PlotAxes methods) are intentionally skipped.", "category": "documentation", "...
null
Ultraplot__UltraPlot__254
Ultraplot/UltraPlot
254
defect
c8bcb9ed7a6ee73cd15162f041b05b942bc1918c
4389cc47da4d38b68586175978ad4043f310fd1e
Refactor beeswarm
This PR is a major rework of the `beeswarm` functionality that was recently merged to main. While testing the newly added implementation with examples from the SHAP library, I discovered that our current approach doesn't integrate well with their plotting workflows and becomes computationally expensive for larger datas...
diff --git a/ultraplot/axes/plot.py b/ultraplot/axes/plot.py index eb175b08a..478e39d0f 100644 --- a/ultraplot/axes/plot.py +++ b/ultraplot/axes/plot.py @@ -736,16 +736,69 @@ _beeswarm_docstring = """ Beeswarm plot with `SHAP-style <https://shap.readthedocs.io/en/latest/generated/shap.plots.beeswarm.html#shap.plots.b...
3
3
2
[{"id": "G0", "claim": "The tests pass marker-size keyword arguments ('sizes'/'size') that the new beeswarm API does not accept (it uses 'ss'), so the beeswarm unit test fails with AttributeError and the parameter naming is inconsistent across the API and should be standardized.", "category": "correctness", "verdict": ...
null
Ultraplot__UltraPlot__260
Ultraplot/UltraPlot
260
defect
44df33a6e3aced010f8c4e98d8c145d812013bc8
2dc644ab6a95f1b4115af0ca1fd16227ba71e521
Fix unused parameters being passed to pie chart
Addresses #259 Will need to check this later today or tomorrow as I don't have time to check this now.
diff --git a/ultraplot/axes/plot.py b/ultraplot/axes/plot.py index 93d7508f0..98bd8914b 100644 --- a/ultraplot/axes/plot.py +++ b/ultraplot/axes/plot.py @@ -2284,13 +2284,21 @@ def _parse_1d_format( autox = autox and not zerox # so far just relevant for hist() autoformat = _not_none(autoformat, rc["a...
2
1
1
[{"id": "G0", "claim": "The pull request's change still needs a test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The variable 'pad' is used without being defined in pie and should be replaced with the parameter 'labeldistance' to ensure correct beha...
null
Ultraplot__UltraPlot__318
Ultraplot/UltraPlot
318
defect
59576c3faf911bec29cd5846b6e6ec074fb8915a
1ca3e2e2655896614c741d44760d7d783c34dffa
Handle non homogeneous arrays
This PR will attempt to parse the data inputs as a `dtype=object` if the input has different dimensions as was the case in #317. This would allow for more flexible parsing in violin and boxplots.
diff --git a/ultraplot/internals/inputs.py b/ultraplot/internals/inputs.py index 6b61dbc2b..8163d8136 100644 --- a/ultraplot/internals/inputs.py +++ b/ultraplot/internals/inputs.py @@ -150,13 +150,17 @@ def _to_numpy_array(data, strip_units=False): data = data.data # support pint quantities that get unit-stri...
2
1
0
[{"id": "G0", "claim": "The bare `except:` clause in `_to_numpy_array` catches all exceptions including system-exiting ones like KeyboardInterrupt and SystemExit; it should catch specific exceptions like TypeError or ValueError that numpy operations might raise for non-homogeneous data.", "category": "correctness", "ve...
null
Ultraplot__UltraPlot__343
Ultraplot/UltraPlot
343
defect
03c655adfc4518a6187baf224eaadc6b4e06b4ea
fbf976fe396716b61f2c2161e870b5efe7bdd565
Lazy loading colormaps
This PR changes the colormap loading to lazy loading -- effectively reducing the import time from ` 0.38s` to `0.00082s` for the colormaps.
diff --git a/ultraplot/colors.py b/ultraplot/colors.py index 0d3de4102..ec7eaefda 100644 --- a/ultraplot/colors.py +++ b/ultraplot/colors.py @@ -3091,12 +3091,9 @@ def __init__(self, kwargs): The source dictionary. """ super().__init__(kwargs) - # The colormap is initialized with a...
4
4
3
[{"id": "G0", "claim": "Importing the colors module within itself in the lazy-loading path (`from . import colors as pcolors`) may create circular import issues; the self-import should be removed and `ContinuousColormap`, `DiscreteColormap` and `CMAPS_CYCLIC` referenced directly.", "category": "design", "verdict": "sup...
null
Ultraplot__UltraPlot__357
Ultraplot/UltraPlot
357
defect
b1e2bdcdbf0952010089fd912037216b589c7818
cd55ccc488a611bd8a51603c5e759c444275be9f
Fix: Corrects `SubplotGrid` indexing and sequential `GeoAxes` formatting
Closes #356 and #358 This PR addresses two critical bugs introduced after v1.0: one causing incorrect indexing in `SubplotGrid`, and another causing sequential `format` calls on `GeoAxes` to override each other. While this work is part of the larger effort in #349, this fix is being prioritized to resolve signifi...
diff --git a/ultraplot/axes/geo.py b/ultraplot/axes/geo.py index ab95a661e..896bc0a6d 100644 --- a/ultraplot/axes/geo.py +++ b/ultraplot/axes/geo.py @@ -805,15 +805,18 @@ def _to_label_array(arg, lon=True): array[4] = True # possibly toggle geo spine labels elif not any(isinstance(_, str)...
3
2
2
[{"id": "G0", "claim": "The new test calls the misspelled rng.rnadom instead of rng.random when creating the data array.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The line unconditionally sets every label side to None, which will override any e...
null
Ultraplot__UltraPlot__504
Ultraplot/UltraPlot
504
defect
4b452da217ea715e955e1fb7f62c839015dd6691
0cab5f0bf7a73f6c65390c84f34a061339d2a4dc
Fix idle draw animation
Updated the animation draw pipeline to avoid repeated layout recomputation, which was causing layout jitter during animations. Auto‑layout now only runs when the layout is actually dirty or on the initial draw, and layout dirtiness is tracked across format calls, subplot/panel creation, and user‑driven size changes. Ad...
diff --git a/pyproject.toml b/pyproject.toml index 9872f5853..9a8d8c178 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -57,3 +57,8 @@ ignore = ["I001", "I002", "I003", "I004"] [tool.basedpyright] exclude = ["**/*.ipynb"] + +[tool.pytest.ini_options] +filterwarnings = [ + "ignore:'resetCache' deprecated - us...
1
1
1
[{"id": "G0", "claim": "The added filterwarnings list in pyproject.toml is missing its closing ']', so the new TOML section is malformed; add the bracket as suggested.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
Ultraplot__UltraPlot__99
Ultraplot/UltraPlot
99
defect
e4ada78c5c2c008a3dce7a73cb5d67416cc09feb
9c74d06d75a6ca159c417408bd1dbed535cb069a
filter out property if not set
#98 Addresses an issue where explicit key word is given or not. By default the first argument is assumed to be the color spec but that does not have to be the case.
diff --git a/ultraplot/constructor.py b/ultraplot/constructor.py index de7874c2f..3be503589 100644 --- a/ultraplot/constructor.py +++ b/ultraplot/constructor.py @@ -881,10 +881,10 @@ def _parse_basic_properties(self, kwargs): def _handle_empty_args(self, props, kwargs): """Handle case when no positional...
2
2
1
[{"id": "G0", "claim": "The pull request must add the exact test case from the original issue, which the reviewer says is missing from its tests.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test_cycler_factory test builds a Cycle from colors but ...
null
Unidata__netcdf-java__1091
Unidata/netcdf-java
1,091
defect
2106e482556c80fddd6f656bd482a13b50b1e93e
8686731b14e3d9489bc5a1715cf00cad4bdbaaf8
Fix EnumTypedef name problem
## Description of Changes re: Issue https://github.com/Unidata/netcdf-java/issues/126 The code for handling enum types in Group.java is incorrect. When creating a new enum type, it is appropriate to search only the current group for a conflicting name and this is what the current code does. But when an enum typ...
diff --git a/bufr/src/main/java/ucar/nc2/iosp/bufr/Construct2.java b/bufr/src/main/java/ucar/nc2/iosp/bufr/Construct2.java index 3932a6fbe5..cb768431d0 100644 --- a/bufr/src/main/java/ucar/nc2/iosp/bufr/Construct2.java +++ b/bufr/src/main/java/ucar/nc2/iosp/bufr/Construct2.java @@ -299,7 +299,7 @@ else if (nbytes == 4)...
4
3
1
[{"id": "G0", "claim": "Because findEnumeration is public, the method signature should not be changed; add a second (overloaded) method with the boolean parameter and keep the old one-signature method, and do the same for the Group.Builder findEnumTypedef method.", "category": "design", "verdict": "supported", "priorit...
null
Unidata__netcdf-java__1127
Unidata/netcdf-java
1,127
defect
6ad1067f93feaf902a01b858d253e7b997d6fb84
4c4c5c3d35972e68b87c62bc8f7da6d2d2488f63
Fix for Jenkins TDS test failures for GRIB with unusual mixed time intervals
## Description of Changes Fix failure in Jenkins TDS tests on some GRIB files with interesting mixed time intervals. Code to generate time coordinate variables from time intervals wasn't handling case where strict-monotinicity adjustments needed to be made in first timestep. ## PR Checklist <!-- This will becom...
diff --git a/grib/src/main/java/ucar/nc2/grib/collection/GribIosp.java b/grib/src/main/java/ucar/nc2/grib/collection/GribIosp.java index 38ed08b548..d461eb4d36 100644 --- a/grib/src/main/java/ucar/nc2/grib/collection/GribIosp.java +++ b/grib/src/main/java/ucar/nc2/grib/collection/GribIosp.java @@ -786,33 +786,39 @@ pri...
1
1
1
[{"id": "G0", "claim": "In makeLazyTime2Darray the data array is a flattened 2D array of size nruns*ntimes, so it should be indexed as runIdx * ntimes + timeIndex rather than timeIndex, which may be why two more NeedsCdmUnitTest Jenkins tests related to time intervals are failing.", "category": "correctness", "verdict"...
null
Unidata__netcdf-java__1128
Unidata/netcdf-java
1,128
defect
6ad1067f93feaf902a01b858d253e7b997d6fb84
03bf1fe57272939e4fbc2ed75964297fa805f0a1
Fix VariableDS issue in mergeNcml
## Description of Changes With a datasetScan with ncml, errors due to `Variable`s in a `NetcdfDataset` not being instances of `VariableDS` occurred. My fix for this is to use a different constructor for `NetcdfDataset` in `mergeNcml`. In addition, I deprecated the constructor previously used there, it basically just...
diff --git a/cdm/core/src/main/java/ucar/nc2/dataset/NetcdfDataset.java b/cdm/core/src/main/java/ucar/nc2/dataset/NetcdfDataset.java index 642152cee4..c87fd7036d 100644 --- a/cdm/core/src/main/java/ucar/nc2/dataset/NetcdfDataset.java +++ b/cdm/core/src/main/java/ucar/nc2/dataset/NetcdfDataset.java @@ -1626,6 +1626,10 @...
1
1
0
[{"id": "G0", "claim": "The test helper getNcmlElement should not use Assert.fail() to handle the caught JDOMException/IOException, e.g. by letting the exceptions propagate.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Unidata__netcdf-java__1144
Unidata/netcdf-java
1,144
defect
47913a94ff630083bbd38e2a979f2ee7df54afce
34f3451bd032224a8ac28b9caaf3d118a4f23d69
Modify and Delete attributes for aggregations with scans
## Description of Changes resolves #1065 Aggregations with scans didn't handle removing or renaming attributes. I added code to handle removing attributes and added an extra condition when reading the attribute to check to see if already existed in the attribute container. Even though there isn't a reference var...
diff --git a/cdm/core/src/main/java/ucar/nc2/internal/ncml/NcmlReader.java b/cdm/core/src/main/java/ucar/nc2/internal/ncml/NcmlReader.java index fd45bd6b96..b2946acd80 100644 --- a/cdm/core/src/main/java/ucar/nc2/internal/ncml/NcmlReader.java +++ b/cdm/core/src/main/java/ucar/nc2/internal/ncml/NcmlReader.java @@ -665,1...
3
3
0
[{"id": "G0", "claim": "The nested existence checks in readAtt should be collapsed into a single condition joined with &&, since there is nothing else inside the else-if.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new aggregation tests s...
null
Unidata__netcdf-java__1154
Unidata/netcdf-java
1,154
defect
b29004322ee24117ab096513f165d1bc88d80912
e0a575a7c2c16bdf51553fd9039cc976a2cee8bc
Add method to combine Arrays
## Description of Changes Add `Array.factoryCopy` method that combines multiple Arrays. This functionality is needed for the gCDM, where the data may need to be chunked and then recombined. As I made some simple tests for this function, I thought it might be nice to make a separate PR for it. Also added tests for...
diff --git a/cdm/core/src/main/java/ucar/ma2/Array.java b/cdm/core/src/main/java/ucar/ma2/Array.java index 8fc516cc75..5ee24480ff 100644 --- a/cdm/core/src/main/java/ucar/ma2/Array.java +++ b/cdm/core/src/main/java/ucar/ma2/Array.java @@ -377,6 +377,55 @@ public static Array makeArrayRankPlusOne(Array org) { retur...
2
2
1
[{"id": "G0", "claim": "In Array.factoryCopy, the arrays.size() == 1 branch does not need to be an `else if`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Array.factoryCopy may fail or misbehave when the ArrayStructures being combined do not h...
null
Unidata__netcdf-java__1156
Unidata/netcdf-java
1,156
defect
e3a76ccd97ca86f5c830b8defb59cca76e95e86c
0081a640465cfcc9bb29fc2aaf015b5278f88238
1D time - time=present should return the subset of time closest to the present
Adjust software behavior to match the [documentation](https://docs.unidata.ucar.edu/tds/current/userguide/ncss_grid.html#temporal-subsetting-and-valid-time-ranges) `time=present ` should return the subset of time closest to the present ## PR Checklist <!-- This will become an interactive checklist once the PR...
diff --git a/cdm/core/src/main/java/ucar/nc2/ft2/coverage/CoverageCoordAxis1D.java b/cdm/core/src/main/java/ucar/nc2/ft2/coverage/CoverageCoordAxis1D.java index cc14117162..81aa034f7c 100644 --- a/cdm/core/src/main/java/ucar/nc2/ft2/coverage/CoverageCoordAxis1D.java +++ b/cdm/core/src/main/java/ucar/nc2/ft2/coverage/Co...
3
2
0
[{"id": "G0", "claim": "The replacement of subsetLatest() with subsetClosest(CalendarDate.present()) at the timePresent call site is objectionable (the reviewer reacts negatively to this added line without stating a concrete problem).", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduce...
null
Unidata__netcdf-java__1167
Unidata/netcdf-java
1,167
defect
2583518ac34f383df31bd3da19bb2cfc3475d1d7
8fd147faf4d62648d28e1ffdc9a8e27da0c40b60
Fix longitude subsetting when all longitudes are requested
## Description of Changes Fixes https://github.com/Unidata/tds/issues/315. When all longitudes are requested but not all latitudes (e.g. lon from [-180, 180]), and the longitude axis data is say {0... 360}, then the desired longitudes were getting normalized to be in the range [0, 360]. This causes the requested lon...
diff --git a/cdm-test/src/test/java/ucar/nc2/ft/coverage/TestCoverageHorizSubset.java b/cdm-test/src/test/java/ucar/nc2/ft/coverage/TestCoverageHorizSubset.java index b4a8989320..c6d0f07eb2 100644 --- a/cdm-test/src/test/java/ucar/nc2/ft/coverage/TestCoverageHorizSubset.java +++ b/cdm-test/src/test/java/ucar/nc2/ft/cov...
1
1
0
[{"id": "G0", "claim": "Add a comment somewhere that llbb is the lat/lon bounding box.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Unidata__netcdf-java__1170
Unidata/netcdf-java
1,170
defect
c1857403b453aebdb3ea36837dbf92a465d07ce3
43d21f9b120eaca1364fc49493161eeb9455e56c
Fix MFileS3::exists to work for "directories"
## Description of Changes Part of the fixes needed for S3 datasetScans. The current `MFileS3::exists` only works for Objects, and uses a `headObject` request. This PR would extend this to work for buckets (need to do a `headBucket`) and "directories" ( by doing a `listObjects` and checking it has objects). Not...
diff --git a/cdm/s3/src/main/java/thredds/inventory/s3/MFileS3.java b/cdm/s3/src/main/java/thredds/inventory/s3/MFileS3.java index 8cb80d70f1..edb4e51e22 100644 --- a/cdm/s3/src/main/java/thredds/inventory/s3/MFileS3.java +++ b/cdm/s3/src/main/java/thredds/inventory/s3/MFileS3.java @@ -103,6 +103,19 @@ private HeadObje...
1
1
1
[{"id": "G0", "claim": "When there is no S3 client, getHeadBucketResponse returns null and bucketExists would throw an NPE, so it should at least check for null (and ideally also check the response code).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Unidata__netcdf-java__1189
Unidata/netcdf-java
1,189
defect
6c48e1013ccac73e036996ee1d7faadad04c88f8
30b36a7880b7c7f4320fb5b6ee8efd34f81d8c8d
Convert from groovy to junit
## Description of Changes The following spock groovy test were converted to Junit: PointStreamSpec and Nc4IospSpec from Issue https://github.com/Unidata/netcdf-java/issues/1188. ## PR Checklist <!-- This will become an interactive checklist once the PR is opened --> - [x] Link to any issues that the PR addr...
diff --git a/cdm/core/src/test/groovy/ucar/nc2/ft/point/remote/PointStreamSpec.groovy b/cdm/core/src/test/groovy/ucar/nc2/ft/point/remote/PointStreamSpec.groovy deleted file mode 100644 index c8d151953f..0000000000 --- a/cdm/core/src/test/groovy/ucar/nc2/ft/point/remote/PointStreamSpec.groovy +++ /dev/null @@ -1,53 +0,...
4
4
1
[{"id": "G0", "claim": "The new TestPointStream.java imports PointCollectionStreamLocal and PointStream, which are unused and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "TestPointStream.roundTrip uses the deprecated Feature...
null
Unidata__netcdf-java__1210
Unidata/netcdf-java
1,210
defect
4b5bc19a23edbe64c76009552fbcd6f6fa42baa0
fb7b1d39999e6b73d0e3eff17d3fade878679c10
Standardizer
## Description of Changes Add Standardizer as an enhancement. For more background, see issue #1206 ## PR Checklist <!-- This will become an interactive checklist once the PR is opened --> - [x] Link to any issues that the PR addresses - [x] Add labels - [x] Open as a [draft PR](https://github.blog/2019-02-14...
diff --git a/cdm/core/build.gradle b/cdm/core/build.gradle index 6386298aad..369a4cc19e 100644 --- a/cdm/core/build.gradle +++ b/cdm/core/build.gradle @@ -10,6 +10,8 @@ apply plugin: 'groovy' // For Spock tests. dependencies { api enforcedPlatform(project(':netcdf-java-platform')) + implementation 'commons-math...
4
4
1
[{"id": "G0", "claim": "A small comment should be added to the int section of testEnhanceStandardizer explaining that the standardizer is not applied to ints so the original data is expected to be returned.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl...
null
Unidata__netcdf-java__1217
Unidata/netcdf-java
1,217
defect
1a24970d5cbfc5774386faa1f3881fc40eef0573
f67b4f149a41362feb865796cf627673d1ce558b
Normalizer
## Description of Changes Normalization is a scaling technique in which values range between 0 and 1. It is a common preprocessing step for AI/ML alongside Standardization #1206 . This PR will include a preprocessed version for datasets in the TDS Catalog. The Normalizer preprocessing can be achieved through NcML as...
diff --git a/cdm/core/src/main/java/ucar/nc2/constants/CDM.java b/cdm/core/src/main/java/ucar/nc2/constants/CDM.java index a7123eb996..bf8c7ac393 100644 --- a/cdm/core/src/main/java/ucar/nc2/constants/CDM.java +++ b/cdm/core/src/main/java/ucar/nc2/constants/CDM.java @@ -57,6 +57,7 @@ public class CDM { public static...
2
2
2
[{"id": "G0", "claim": "The normalizer enhancement condition in VariableDS.createEnhancements should check `this.enhanceMode.contains(Enhance.ApplyNormalizer)` instead of `Enhance.ApplyStandardizer`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
Unidata__netcdf-java__1250
Unidata/netcdf-java
1,250
defect
889aa1966b3005d66d76d65faff4586d4efcf9b3
1007d62cb73dfe63ebcb4baba89267b6f45726fa
Intermediate PR: Handle multiple different time and altitude axes for GridAsPoint writer
This is a good breaking point to submit changes associated with https://github.com/Unidata/tds/issues/269 Tasks completed in this pull request: - Add timeName attribute to DsgFeatureCollection - And altName attribute to DsgFeatureCollection - Add constructors to pass timeName and altName up through the inheritan...
diff --git a/cdm/core/src/main/java/ucar/nc2/ft/DsgFeatureCollection.java b/cdm/core/src/main/java/ucar/nc2/ft/DsgFeatureCollection.java index f2e8175ff4..a333b73b35 100644 --- a/cdm/core/src/main/java/ucar/nc2/ft/DsgFeatureCollection.java +++ b/cdm/core/src/main/java/ucar/nc2/ft/DsgFeatureCollection.java @@ -35,6 +35,...
5
5
0
[{"id": "G0", "claim": "The try/catch in the newly added NestedTable.getTimeName() is unnecessary and should be removed, since unlike the CalendarDateUnit.of call below it, nothing in it can throw.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "...
null
Unidata__netcdf-java__1318
Unidata/netcdf-java
1,318
defect
50407ae5b66049e836b7cabe2c746135492797b5
15fe70a95850dc4ad817cc7c8814aa9d8fe4bfb0
Convert missing values before scale and offset
Swap the order that `ConvertMissing` and `ScaleOffset` are applied so that `ConvertMissing` uses packed values to check for missing values.
diff --git a/cdm/core/src/main/java/ucar/nc2/dataset/VariableDS.java b/cdm/core/src/main/java/ucar/nc2/dataset/VariableDS.java index 31d45f08b1..0df7ab217c 100644 --- a/cdm/core/src/main/java/ucar/nc2/dataset/VariableDS.java +++ b/cdm/core/src/main/java/ucar/nc2/dataset/VariableDS.java @@ -9,12 +9,12 @@ import ucar.ma...
2
1
0
[{"id": "G0", "claim": "Exact `==` matching in `isMissingValue` (and `isFillValue`) may fail for doubles that were manipulated after packing/unpacking, and missing values should be confirmed not to be NaN; the reviewer asks whether `nearlyEquals` should be kept instead.", "category": "correctness", "verdict": "uncertai...
null
Unidata__netcdf-java__1341
Unidata/netcdf-java
1,341
defect
12d0b71906ba00d147132fbfe765fbc4f44addf7
07e9ec32372c00fcaada585306f48aa8d9872d87
Fix and extend Geotiff IFD handling to allow all integer types
## Description of Changes * Follows specs from pg. 15-16 of v6.0 TIFF: https://www.itu.int/itudoc/itu-t/com16/tiff-fx/docs/tiff6.pdf * Added roundtrip tests of the private Geotiff method via reflection * This does reveal an existing API flaw that will cause overflow of large unsigned integers ## PR Checklist <!-...
diff --git a/cdm/misc/src/main/java/ucar/nc2/geotiff/GeoTiff.java b/cdm/misc/src/main/java/ucar/nc2/geotiff/GeoTiff.java index 4678b7c9f5..41c11ca5b8 100644 --- a/cdm/misc/src/main/java/ucar/nc2/geotiff/GeoTiff.java +++ b/cdm/misc/src/main/java/ucar/nc2/geotiff/GeoTiff.java @@ -357,13 +357,23 @@ private int writeValues...
4
4
0
[{"id": "G0", "claim": "The test should not exercise the private readIntValue/writeIntValue methods via reflection; it should test the public API of GeoTiff instead or, failing that, make writeIntValue package private so it can be tested without reflection.", "category": "testing", "verdict": "supported", "priority": "...
null
Unidata__netcdf-java__1357
Unidata/netcdf-java
1,357
defect
98545e9814e7671bef4d5eef20067c5395b946af
a47ebc53c55d68142f2dce3ab0355aecb13ef69a
Classifier
## Description of Changes Using ncml attributes description, the classifier can now modify the array into any number of different classes with different ranges! example: <attribute name="Cat1" type="string" value="NaN 0 0" /> <attribute name="Cat4" type="string" value="100 NaN 1000" /> will...
diff --git a/cdm/core/src/main/java/ucar/nc2/constants/CDM.java b/cdm/core/src/main/java/ucar/nc2/constants/CDM.java index 9fa7b862da..e6009b4c66 100644 --- a/cdm/core/src/main/java/ucar/nc2/constants/CDM.java +++ b/cdm/core/src/main/java/ucar/nc2/constants/CDM.java @@ -40,6 +40,8 @@ public class CDM { public static...
8
7
2
[{"id": "G0", "claim": "classifyArrayAttribute should be made private.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The file has unused imports, apparently NetcdfDatasets, which should be removed.", "category": "maintainability", "verdict": "s...
null
Unidata__netcdf-java__1369
Unidata/netcdf-java
1,369
defect
5aaa49fa6004e99006d5ae4d35660e857697a69b
d0751e9705eaa8083606a133005e902314238bf7
Service Provider for applying enhancements
## Description of Changes ## PR Checklist - [ ] Link to any issues that the PR addresses - [ ] Add labels - [ ] Open as a [draft PR](https://github.blog/2019-02-14-introducing-draft-pull-requests/) until ready for review - [ ] Make sure GitHub tests pass - [ ] Mark PR as "Ready for Review"
diff --git a/cdm/core/build.gradle b/cdm/core/build.gradle index f02decb9ff..2ef449b1be 100644 --- a/cdm/core/build.gradle +++ b/cdm/core/build.gradle @@ -8,7 +8,7 @@ apply from: "$rootDir/gradle/any/protobuf.gradle" dependencies { api enforcedPlatform(project(':netcdf-java-platform')) - implementation 'commons-...
11
10
0
[{"id": "G0", "claim": "The new duplicate cdm/core/src/main/java/ucar/unidata/io/spi/EnhancementProvider.java should be deleted since the PR uses the EnhancementProvider class in the filter package.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
Unidata__netcdf-java__350
Unidata/netcdf-java
350
defect
5334e1ad9fa10f9bf8b3012ebc3b6a0bfe603d2e
e1328be75110af0112450d37f11d50fdec264593
Clarify jni netcdf4 public API.
<!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/unidata/netcdf-java/350) <!-- Reviewable:end -->
diff --git a/cdm-test/src/test/java/ucar/nc2/ft/coverage/TestCoverageFileWriterP.java b/cdm-test/src/test/java/ucar/nc2/ft/coverage/TestCoverageFileWriterP.java index 2e40242a94..e52d28c633 100644 --- a/cdm-test/src/test/java/ucar/nc2/ft/coverage/TestCoverageFileWriterP.java +++ b/cdm-test/src/test/java/ucar/nc2/ft/cov...
3
3
0
[{"id": "G0", "claim": "The new public methods isClibraryPresent() and getClibrary() carry a redundant name; rename them to something like isLibraryPresent()/isPresent() and getLibrary()/getNativeMethods().", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "...
null
Unidata__netcdf-java__458
Unidata/netcdf-java
458
defect
822f1f05d81ec870e9a0a3b5445a7b7042459c0a
77c03a9de68bafcc6178efdb0423a1e96041cd21
IncludeCode plugin for netcdf-java docs
<!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/unidata/netcdf-java/458) <!-- Reviewable:end -->
diff --git a/cdm/core/src/test/java/examples/tutorials/NCTutorial.java b/cdm/core/src/test/java/examples/tutorials/NCTutorial.java new file mode 100644 index 0000000000..6b389b0c54 --- /dev/null +++ b/cdm/core/src/test/java/examples/tutorials/NCTutorial.java @@ -0,0 +1,32 @@ +package examples.tutorials; + +import ucar....
2
1
1
[{"id": "G0", "claim": "Compiling the documentation code snippets on the fly inside the cdm-core tests is risky; move these tests to the docs/ subproject and add a GitHub Action that compiles them and fails the check on deprecation warnings.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "i...
null
Unidata__netcdf-java__568
Unidata/netcdf-java
568
defect
8358f4e2bae58e1fb66186b0a8636d7bc08061dc
7a26a8698a9b09474f6c3c2a802c367397429fb5
Improve S3 access and NcML Aggregation support by Coverage API
This PR does a few things: * Improve Coverage support for NcML aggregations (which produce Time coordinate variables of type String) * Remove regression from S3 read logic (fixes Unidata/netcdf-java#433) * Improve S3 read testing In addition, this PR also knocks out a few test errors encountered on Jenkins. Th...
diff --git a/cdm-test/src/test/java/ucar/nc2/grib/TestGribIndexCreation.java b/cdm-test/src/test/java/ucar/nc2/grib/TestGribIndexCreation.java index b3e30b1233..3180d2f2c5 100644 --- a/cdm-test/src/test/java/ucar/nc2/grib/TestGribIndexCreation.java +++ b/cdm-test/src/test/java/ucar/nc2/grib/TestGribIndexCreation.java @...
1
1
0
[{"id": "G0", "claim": "The first partial read is commented as filling 'to end of the cache block'; the reviewer asks what happens if len < readCacheBlockSize and only the middle of a block is wanted, i.e. whether the code handles not reading all the way to the end of the first cache block.", "category": "documentation...
null
Unidata__netcdf-java__679
Unidata/netcdf-java
679
defect
fa6c0754723b22e38a9a41ce3a858fdc88a62b86
126644c2b9f8dddb1cb02c2dac6f32c64f972e18
Proto style and enum migration
<!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/unidata/netcdf-java/679) <!-- Reviewable:end -->
diff --git a/cdm-core/src/main/java/ucar/nc2/constants/AxisType.java b/cdm-core/src/main/java/ucar/nc2/constants/AxisType.java index 16cd4a3d00..ac74c63892 100644 --- a/cdm-core/src/main/java/ucar/nc2/constants/AxisType.java +++ b/cdm-core/src/main/java/ucar/nc2/constants/AxisType.java @@ -6,10 +6,11 @@ /** * Enum...
3
3
0
[{"id": "G0", "claim": "DATA_TYPE_UNDEFINED in gcdm_netcdf.proto should probably be renamed to DATA_TYPE_UNSPECIFIED for consistency with the UNSPECIFIED convention applied to the other enums.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The t...
null
Unidata__netcdf-java__729
Unidata/netcdf-java
729
defect
46df06c43610400b0507eb66fa22cefa1aacf360
cbbb098d7b6eadacc56a178f3a77b276529daba6
Fix issue #728
Fix issue #728 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/unidata/netcdf-java/729) <!-- Reviewable:end -->
diff --git a/cdm-core/src/main/java/ucar/nc2/calendar/CalendarPeriod.java b/cdm-core/src/main/java/ucar/nc2/calendar/CalendarPeriod.java index 3e4415fcc7..0a96d457e4 100644 --- a/cdm-core/src/main/java/ucar/nc2/calendar/CalendarPeriod.java +++ b/cdm-core/src/main/java/ucar/nc2/calendar/CalendarPeriod.java @@ -24,6 +24,...
1
1
0
[{"id": "G0", "claim": "The private testRegular(Formatter, List<CoordinateTimeAbstract>) overload in CdmIndexPanel.java seems unused, and the reviewer asks whether it is planned to be used somewhere.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
Unidata__netcdf-java__733
Unidata/netcdf-java
733
defect
bcc38882f75fa23dde49bff6a5d1d151a4b9596b
affd56393d313a239f8c78bb3c6711c7e59593ff
Add GribTable information to GribIosp.getDetailInfo().
Capture all TwoD types in CdmIndexScan. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/unidata/netcdf-java/733) <!-- Reviewable:end -->
diff --git a/cdm-core/src/main/java/ucar/nc2/grid/GridAxis.java b/cdm-core/src/main/java/ucar/nc2/grid/GridAxis.java index f7fd6e1d1f..5d778dd3ce 100644 --- a/cdm-core/src/main/java/ucar/nc2/grid/GridAxis.java +++ b/cdm-core/src/main/java/ucar/nc2/grid/GridAxis.java @@ -177,9 +177,7 @@ public boolean equals(Object o) {...
2
2
0
[{"id": "G0", "claim": "testIsRegular(String, String) should return false and fail on the next assert instead of calling fail() inside the method.", "category": "testing", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The TreeMap in testRegular() may be unnecessary; the review...
null
Unidata__netcdf-java__741
Unidata/netcdf-java
741
defect
b28f67adb5329bbfd26694a803d46d20d43f432a
c785c249b86b833814c680b330d90c6310cc83a8
create mapping to CDM
- map Zarr metadata to CDM (using Jackson) - test data types and cdm mapping <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/unidata/netcdf-java/741) <!-- Reviewable:end -->
diff --git a/cdm/zarr/build.gradle b/cdm/zarr/build.gradle index 165d5fb90d..554ede411a 100644 --- a/cdm/zarr/build.gradle +++ b/cdm/zarr/build.gradle @@ -19,6 +19,8 @@ dependencies { implementation 'com.google.re2j:re2j' implementation 'org.slf4j:slf4j-api' implementation 'com.google.guava:guava' + i...
2
2
0
[{"id": "G0", "claim": "Drop the hard-coded '2.8.8' from the two jackson dependency entries in cdm/zarr/build.gradle so the versions come from the enforced jackson-bom in netcdf-java-platform, keeping the jackson versions in sync across the project.", "category": "maintainability", "verdict": "supported", "priority": "...
null
Unidata__netcdf-java__966
Unidata/netcdf-java
966
defect
60f42726128407d4a9b9bfad17df68bb6d12ec3d
ba5344178a316402020920891053a6657635e903
[5.x] work on filters package
## Description of Changes - changes to the filters api - share filters between hdf5 and zarr - rewrite docs to use new api ## PR Checklist <!-- This will become an interactive checklist once the PR is opened --> - [ ] Indicate the version associated with this PR in the Title (e.g. "[5.x]: This is my P...
diff --git a/cdm/core/src/main/java/ucar/nc2/filter/Blosc.java b/cdm/core/src/main/java/ucar/nc2/filter/Blosc.java index 8889846662..03032db8c9 100644 --- a/cdm/core/src/main/java/ucar/nc2/filter/Blosc.java +++ b/cdm/core/src/main/java/ucar/nc2/filter/Blosc.java @@ -11,8 +11,22 @@ // TODO: Still to be implemented pub...
6
2
0
[{"id": "G0", "claim": "The ADLER and CRC enum constants are both given the sentinel id -1, and the reviewer asks whether those two types should have distinct ids.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Renaming the public method `getFilterByName...
null
Uniswap__routing-api__1012
Uniswap/routing-api
1,012
defect
d82e8c5ef3ca7373be489d1c32535b311b48e51e
e0ad0626583c7aec2f6716dfc6fb825e5476ad48
chore: bump sor to 4.17.17 - fix: add base mixed quoter v2 (#1002)
Release https://github.com/Uniswap/smart-order-router/pull/827
diff --git a/lib/handlers/injector-sor.ts b/lib/handlers/injector-sor.ts index bd7a32a146..cc56dec6bf 100644 --- a/lib/handlers/injector-sor.ts +++ b/lib/handlers/injector-sor.ts @@ -533,7 +533,7 @@ export abstract class InjectorSOR<Router, QueryParams> extends Injector< ChainId.MAINNET, ] - ...
1
1
0
[{"id": "G0", "claim": "The new e2e coverage should include a test proving that on Base mixed routing works but the shouldEnableMixedRouteEthWeth flag is not enabled (mixed route ETH/WETH is rejected).", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Uniswap__routing-api__1014
Uniswap/routing-api
1,014
defect
ba4b96982314ea42ac97716d39d5552f425205da
1dd844eb91090f0e88412da279ff3430412b1551
fix: bump SOR to 4.18.0 - fix: properly use global cache + mixed routes fix
Changes - Release https://github.com/Uniswap/smart-order-router/pull/820 - update all e2e tests to match new cache/mixed logic - passing `protocols=mixed` is now invalid and will return `400, INVALID_PROTOCOL` Tested e2e tests against personal aws account ` 235 passing (9m)`
diff --git a/lib/handlers/quote/quote.ts b/lib/handlers/quote/quote.ts index 038a9d583a..a39507efae 100644 --- a/lib/handlers/quote/quote.ts +++ b/lib/handlers/quote/quote.ts @@ -287,6 +287,12 @@ export class QuoteHandler extends APIGLambdaHandler< errorCode: 'INVALID_PROTOCOL', detail: `Invalid proto...
2
2
1
[{"id": "G0", "claim": "The dependency reference `file:/tmp/uniswap-smart-order-router-4.18.0-tmp1.tgz` looks like a temporary local path that should not be committed (typo?).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A negative test should be ...
null
Uniswap__routing-api__1045
Uniswap/routing-api
1,045
defect
4dca6e9673a5e7c8a7da5244c194f88b9f20641d
10b63178192d3ad57ced80b658f2024119fe3377
chore: bump sor to 4.20.0 - feat: support soneium routing
support routing on soneium across v2, v3, v4, mixed. Add e2e test and locally tested - https://app.warp.dev/block/TyNcwlelSYT5Qwqc7g5yda
diff --git a/lib/config/rpcProviderProdConfig.json b/lib/config/rpcProviderProdConfig.json index 99f3044026..37f9e183ad 100644 --- a/lib/config/rpcProviderProdConfig.json +++ b/lib/config/rpcProviderProdConfig.json @@ -152,5 +152,14 @@ "providerInitialWeights": [1], "providerUrls": ["UNIRPC_0"], "provide...
1
1
1
[{"id": "G0", "claim": "The newly added SONEIUM subgraph URLs in v4SubgraphUrlOverride, v3SubgraphUrlOverride and v2SubgraphUrlOverride read 'sonesium', a typo for 'soneium'.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Uniswap__routing-api__246
Uniswap/routing-api
246
defect
eb212ddf4d9215c0b316de8b231658135e450b92
a20f375b595a6235af09d7b516d356f5067ca8ac
feat: add avax, use sdk-core constants
Changes: - Use ChainId from sdk-core instead of locally defined chainId enum. - Add support for avalanche <img width="427" alt="Screen Shot 2023-06-21 at 9 43 43 PM" src="https://github.com/Uniswap/routing-api/assets/41491154/5047c913-94c6-4d86-873e-71e3b57014f2">
diff --git a/README.md b/README.md index 8316501744..3c61284b19 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ The best way to develop and test the API is to deploy your own instance to AWS. # MAINNET = 1 # ROPSTEN = 3 # RINKEBY = 4 - # GÖRLI = 5 + # GOERLI = 5 # KOVAN = 42 # OPTIMISM ...
1
1
1
[{"id": "G0", "claim": "Change the @uniswap/smart-order-router dependency to exactly 3.13.5 and remove the leading caret from the version range.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Uniswap__routing-api__362
Uniswap/routing-api
362
defect
88ce26895f1aec4e6f1af6611a9c2492c869fb52
96994dba7172d87dbffeb6282d288569776a4229
Feature: Routing-api support for FOT quote
Decent amount of changes needed in routing-api to make FOT quote work. I tested via personal AWS account through local URA -> RA -> SOR: https://app.warp.dev/block/dWMjnnhkKYGZRbnXf4Vy0q Note the quote response payload from the link contains the `buyFeeBps` and `sellFeeBps` for both BLASTER and BULLET tokens. ...
diff --git a/lib/handlers/injector-sor.ts b/lib/handlers/injector-sor.ts index d2f24ed67a..572e09e37c 100644 --- a/lib/handlers/injector-sor.ts +++ b/lib/handlers/injector-sor.ts @@ -25,12 +25,15 @@ import { StaticV2SubgraphProvider, StaticV3SubgraphProvider, TokenProvider, + TokenPropertiesProvider, Unisw...
7
6
1
[{"id": "G0", "claim": "MarshalledToken.buyFeeBps should be a string (with a way to translate from BigNumber to string and vice-versa) instead of a BigNumber.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "V2DynamoCache.batchGet should use DynamoDB's for...
null
Uniswap__routing-api__524
Uniswap/routing-api
524
defect
964a4138fd56791f0e6005087ecc2fdf3570e344
f5415963b28eb115402e7b34044a7f4308d81498
feat: shadow quote new quoter v2 on Polygon Mumbai and Sepolia
We want to switch to new view-only quoter. But we are not ready to live migrate yet. In this PR, we want to achieve: 1. Shadow request very small percent of Polygon quote against the new quoter v2, without impacting the routing-api endpoint success rate at all. 2. Make small refactoring in this PR, as well as based...
diff --git a/lib/handlers/injector-sor.ts b/lib/handlers/injector-sor.ts index 0673ac5df3..7c4525ad48 100644 --- a/lib/handlers/injector-sor.ts +++ b/lib/handlers/injector-sor.ts @@ -34,6 +34,8 @@ import { CachingV2PoolProvider, TokenValidatorProvider, ITokenPropertiesProvider, + IOnChainQuoteProvider, + NEW...
4
4
3
[{"id": "G0", "claim": "The current and target quote provider calls should be sent in parallel instead of being awaited sequentially, in getQuotesManyExactIn and (as 'ditto') in getQuotesManyExactOut.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "L...
null
Uniswap__routing-api__583
Uniswap/routing-api
583
defect
69384ab65fb10764a30aac714ecb6e002c7b8a87
42d39cb1676589557f7301cecd6b94ab8b987c9a
[RPC Gateway Fallback Redesign] Implement the offline path
Design doc: https://www.notion.so/uniswaplabs/Redesign-RPC-Gateway-Fallback-7c2ea784ae554f81a6d488bc52fab5ae?pvs=4 This PR implements the offline part, which includes - Alarms - Fallback-handling lambda - Auto trigger of lambda from alarm - Update DB health state Tested in local env - Using a test alarm (not the ones...
diff --git a/bin/stacks/routing-api-stack.ts b/bin/stacks/routing-api-stack.ts index 6fca208372..0fb7647823 100644 --- a/bin/stacks/routing-api-stack.ts +++ b/bin/stacks/routing-api-stack.ts @@ -19,6 +19,7 @@ import { RoutingDatabaseStack } from './routing-database-stack' import { RpcGatewayDashboardStack } from './rp...
19
11
4
[{"id": "G0", "claim": "The obsolete RpcProviderState table should not be deleted while it is retained by default, because removing it could break the next CDK deploy; better to keep it with an obsolete note (and one week of logs is enough for the stateless fallback lambda).", "category": "correctness", "verdict": "sup...
null
Uniswap__routing-api__766
Uniswap/routing-api
766
defect
01dec1424e458cf0236b8167200f9b38ef9f92c1
cd4e2b5427512c767451af545da0c625ea7c5248
fix: extension also hardcode gas on zksync and celo
after chatting with @ianlapham , we confirmed that extension also needs to have the zksync and celo gas hardcoded
diff --git a/lib/handlers/quote/quote.ts b/lib/handlers/quote/quote.ts index cd4bb14d33..d9781e4f7f 100644 --- a/lib/handlers/quote/quote.ts +++ b/lib/handlers/quote/quote.ts @@ -248,6 +248,7 @@ export class QuoteHandler extends APIGLambdaHandler< const requestSource = requestSourceHeader ?? params.requestQueryP...
1
1
0
[{"id": "G0", "claim": "The request source should be passed into adhocCorrectGasUsed/adhocCorrectGasUsedUSD and the source-based decision made inside those functions, instead of passing per-source boolean parameters computed at the call site.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "i...
null
Uniswap__routing-api__843
Uniswap/routing-api
843
defect
dc27299705f2bf2a85c04b98d841d7e6e6d1029b
dcf2555c123b443c61035ceaefdbb7f3594a628a
feat(unirpc): send 10% bnb traffic to unirpc
Preparing the way to start sending traffic to unirpc - Starting with 10% traffic on BNB chain only. - Adding `x-uni-service-id` header to track usage - introduced a `providerNames` field as we need a way to know which provider we use in order to send additional headers (providerUrls are overwritten with actual URL...
diff --git a/bin/app.ts b/bin/app.ts index 41717bbf8d..3067bd96ca 100644 --- a/bin/app.ts +++ b/bin/app.ts @@ -234,6 +234,8 @@ export class RoutingAPIPipeline extends Stack { // ZkSync 'QUICKNODE_324', 'ALCHEMY_324', + // unirpc - serves all chains + 'UNIRPC_0', ] for (const pro...
1
1
1
[{"id": "G0", "claim": "In the prod config entry for chainId 1 the number of providerInitialWeights entries has to equal the number of providerUrls, but the change sets two weights [0.01, 0.99] against a single url [\"QUICKNODE_1\"].", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intro...
null
Uniswap__routing-api__844
Uniswap/routing-api
844
defect
7db59e30810ea9cf9ce314043f9a8a8c9b5c2713
b906b1468a46be97f6baadbad1edd5f9b2fd9745
chore: bump sor to 4.0.0 - feat(breaking): top-level alpha router native currencyIn, currencyIn, quoteCurrency support
Release https://github.com/Uniswap/smart-order-router/pull/721. I ran all the e2e tests against local routing-api instance, and saw that the cached routes hit rate is still significantly higher than miss rate, which gives me the confidence the change is working as expected: ![Screenshot 2024-09-24 at 11.40.35 AM.png]...
diff --git a/lib/cron/cache-config.ts b/lib/cron/cache-config.ts index b1ec9b54be..d3b3600b6e 100644 --- a/lib/cron/cache-config.ts +++ b/lib/cron/cache-config.ts @@ -1,6 +1,9 @@ import { Protocol } from '@uniswap/router-sdk' import { V2SubgraphProvider, V3SubgraphProvider, V4SubgraphProvider } from '@uniswap/smart-o...
2
1
1
[{"id": "G0", "claim": "The pull request should add some tests for the v4 case of the native-currency routing caching behaviour it introduces.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Asks whether the dotenv.config() call the pull request adds to ...
null
Uniswap__routing-api__916
Uniswap/routing-api
916
defect
75503d15f869440bab560c44681d1f95380d34c0
34f7e386eab4d0598a47052a50c006d0dac2d956
feat: v4 non-complex hooks routing
we can support non-complex hooks routing, that we know have no effect during swaps.
diff --git a/lib/cron/cache-pools.ts b/lib/cron/cache-pools.ts index 6229f10bef..2ae85e0e3a 100644 --- a/lib/cron/cache-pools.ts +++ b/lib/cron/cache-pools.ts @@ -6,7 +6,6 @@ import { V2SubgraphProvider, V3SubgraphPool, V3SubgraphProvider, - V4SubgraphPool, } from '@uniswap/smart-order-router' import { Even...
5
5
1
[{"id": "G0", "claim": "Extract the token-pair-and-fee grouping key construction into a helper such as `createV4PoolKey(pool)` instead of inlining the concatenation.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Push/sort/pop on every iteration...
null
Uniswap__universal-router__274
Uniswap/universal-router
274
defect
a88bc6e15af738b61d7bee8feb7df8d2a6e26347
7a33556be25a6447e4217a3d93295b96d588cd4f
Add support for NFTXZap2
Close #237
diff --git a/script/deployParameters/DeployMainnet.s.sol b/script/deployParameters/DeployMainnet.s.sol index da3f3f870..7fb41c45e 100644 --- a/script/deployParameters/DeployMainnet.s.sol +++ b/script/deployParameters/DeployMainnet.s.sol @@ -12,7 +12,7 @@ contract DeployMainnet is DeployUniversalRouter { se...
3
2
0
[{"id": "G0", "claim": "The deploy parameters should also add NFTX Zap addresses for the Arbitrum and Goerli deploy scripts, since NFTX is deployed on those chains too.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hardcoded calldata blob passed to ...
null
Uniswap__universal-router__376
Uniswap/universal-router
376
defect
4ce107d6387558b97816293fe2c0d4d7c4cadef4
a5812e34e388986b10479a1870f7c639e77a69a6
Add v4 to receive
Adding v4 pool manager to the receive function of UR so it can receive ETH from v4
diff --git a/contracts/UniversalRouter.sol b/contracts/UniversalRouter.sol index 8fb5e7265..9c7ab92a4 100644 --- a/contracts/UniversalRouter.sol +++ b/contracts/UniversalRouter.sol @@ -66,6 +66,6 @@ contract UniversalRouter is IUniversalRouter, Dispatcher { /// @notice To receive ETH from WETH receive() ext...
3
3
1
[{"id": "G0", "claim": "The ONE_PERCENT constant should be calculated in line from USD_ETH_PRICE instead of being hard-coded as 38, since it is 1% OF the pinned price and the name is confusing.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remo...
null
Uniswap__universal-router__69
Uniswap/universal-router
69
defect
485cfc943a775c5dae5936b97356f7a80b16691c
647edb7eee0fe7133ed128e98717fe9a17dc4648
feat: Proof of concept on some readability ideas
- move commands to Commands.sol to separate from meta weiroll logic - move some hard-to-read bytes manip to CommandLib - CommandType enum edit: removed enum as it increased the gas and scaled with #commands :grimacing:
diff --git a/contracts/Router.sol b/contracts/Router.sol index 3f208244f..6da1c1971 100644 --- a/contracts/Router.sol +++ b/contracts/Router.sol @@ -1,48 +1,24 @@ // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.15; -// Routers inherited -import './modules/V2SwapRouter.sol'; -import './modules/V3SwapRout...
1
1
0
[{"id": "G0", "claim": "hasNextCommand is confusing and seems to make no sense since commands are never removed from the bytes string, so it would only make sense if commands were actually removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Uniswap__universal-router__70
Uniswap/universal-router
70
defect
485cfc943a775c5dae5936b97356f7a80b16691c
a159852fca5a646019427ae0147423da0582ce5e
1155 Support for protocols w/ extra transfer
fixes: https://github.com/Uniswap/narwhal/issues/61 fixes: https://github.com/Uniswap/narwhal/issues/22
diff --git a/.gitignore b/.gitignore index e15e98ad8..4e424b06e 100644 --- a/.gitignore +++ b/.gitignore @@ -17,4 +17,3 @@ typechain-types #Hardhat files cache artifacts - diff --git a/contracts/Router.sol b/contracts/Router.sol index 3f208244f..53e6c8f80 100644 --- a/contracts/Router.sol +++ b/contracts/Router.sol ...
2
2
1
[{"id": "G0", "claim": "The integration tests are failing at snapshot S1.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G2", "claim": "The noUnusedLocals and noUnusedParameters compiler flags, which this PR changed from true to false, should be reverted to true."...
null
Uniswap__universal-router__92
Uniswap/universal-router
92
defect
414e5be782e7961fe07853ca898f4a7d17aa3d97
7d7c9263c68936088686b3549774430d5136ac72
Nft20 allen
fixes: https://github.com/Uniswap/narwhal/issues/23
diff --git a/contracts/base/Dispatcher.sol b/contracts/base/Dispatcher.sol index f5b25edbe..929dfc43b 100644 --- a/contracts/base/Dispatcher.sol +++ b/contracts/base/Dispatcher.sol @@ -76,6 +76,9 @@ contract Dispatcher is V2SwapRouter, V3SwapRouter, RouterCallbacks { } else if (command == Commands.SUDOSWAP) { ...
5
4
0
[{"id": "G0", "claim": "The Alphabetties address constant should be placed in shared/constants.ts instead of the test file.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The inner beforeEach in the NFT20 describe block should be combined with t...
null
Uniswap__v3-core__110
Uniswap/v3-core
110
defect
e44e380cf6d90ffebf6ddb05667753bfad66e475
840886df99615b9c24dde029a075de8cab67b6bc
misc small refactors
- remove min in favor of echidna test verifying the amount out is always less than the reserve out - move next price assertions to echidna test - make our js echidna edge cases match our echidna assertions
diff --git a/contracts/libraries/PriceMath.sol b/contracts/libraries/PriceMath.sol index 9b2322cdc..ba4fb7a57 100644 --- a/contracts/libraries/PriceMath.sol +++ b/contracts/libraries/PriceMath.sol @@ -20,7 +20,9 @@ library PriceMath { // get a quote for a numerator amount from a denominator amount and a numerato...
2
2
2
[{"id": "G0", "claim": "The echidna test's tick bound should allow MIN_TICK itself, i.e. require(tick >= TickMath.MIN_TICK && tick < TickMath.MAX_TICK) instead of a strict >.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The post-swap price asserti...
null
Uniswap__v3-core__134
Uniswap/v3-core
134
defect
4d0573db3444f88b50598c61bcbfe42b1ee9e988
047031ea35d814fe1afc634933d6dcf3cf6cf6f0
Tick bit map
starts https://github.com/Uniswap/uniswap-v3-core/issues/121
diff --git a/contracts/UniswapV3Pair.sol b/contracts/UniswapV3Pair.sol index 1a8db38be..8b753d231 100644 --- a/contracts/UniswapV3Pair.sol +++ b/contracts/UniswapV3Pair.sol @@ -21,6 +21,7 @@ import './libraries/PriceMath.sol'; import './interfaces/IUniswapV3Pair.sol'; import './interfaces/IUniswapV3Factory.sol'; imp...
6
3
0
[{"id": "G0", "claim": "It is possibly worth noting that the subtraction `tick - TickMath.MIN_TICK` in `position` is only safe because its result is at most 7351*2, which is less than max int16.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The r...
null
Uniswap__v3-core__140
Uniswap/v3-core
140
defect
36f0b3f3786e8f6467ffb0883357b39a7f532e0b
c6b1cfd128700859403dc6477f2a188d5481abd2
use _setPosition in initialize
closes #138
diff --git a/contracts/UniswapV3Pair.sol b/contracts/UniswapV3Pair.sol index 3557e5035..4e512e19f 100644 --- a/contracts/UniswapV3Pair.sol +++ b/contracts/UniswapV3Pair.sol @@ -250,7 +250,7 @@ contract UniswapV3Pair is IUniswapV3Pair { function getAmount0Delta( FixedPoint.uq112x112 memory priceLower, - ...
3
3
1
[{"id": "G0", "claim": "The feeTo tests should not need a specially deployed, time-manipulating MockTimeUniswapV3Pair just to observe protocol fees — the test setup is too annoying and initializing feeLast in initialize is unnecessary.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introdu...
null
Uniswap__v3-core__158
Uniswap/v3-core
158
defect
ecf32e1c45a42447aa518a5f572e4ae31b3a1c6a
0667a4e16f9977c6b42caf42c31eab8a2711e9b0
track gross liquidity instead of num positions
helps with https://github.com/Uniswap/uniswap-v3-core/issues/157
diff --git a/contracts/UniswapV3Pair.sol b/contracts/UniswapV3Pair.sol index a6bc82d19..773084386 100644 --- a/contracts/UniswapV3Pair.sol +++ b/contracts/UniswapV3Pair.sol @@ -36,6 +36,14 @@ contract UniswapV3Pair is IUniswapV3Pair { // Number of fee options uint8 public constant override NUM_FEE_OPTIONS = 6...
3
3
1
[{"id": "G0", "claim": "A comment should be added saying the uint128 cast of liquidityDelta is only safe because of the prior assert that liquidityDelta > 0.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The two require statements in _setPosition...
null
Uniswap__v3-core__168
Uniswap/v3-core
168
defect
88e7b50ac1821b09db9abb159f8ea36280be363c
768d874570ffbf601102b5347b4908209e76348e
Ticks 24bit
fixes https://github.com/Uniswap/uniswap-v3-core/issues/167
diff --git a/contracts/UniswapV3Pair.sol b/contracts/UniswapV3Pair.sol index a41345d02..0d3720b9a 100644 --- a/contracts/UniswapV3Pair.sol +++ b/contracts/UniswapV3Pair.sol @@ -31,7 +31,7 @@ contract UniswapV3Pair is IUniswapV3Pair { using SafeCast for uint256; using MixedSafeMath for uint128; using Fixe...
3
1
1
[{"id": "G0", "claim": "The reviewer asks whether a uint256[65536] array, or a bytes32 bitmap, would be preferable to the mapping(uint256 => uint256) tick bitmap.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The use of type(int24) in TickBitMap.position ...
null
Uniswap__v3-core__169
Uniswap/v3-core
169
defect
3222847f099efbef4707f679270baf868611146c
73019e7a40f60c221fefc63cd552a6da5268d3d5
add the two accumulators and do some better packing
fixes https://github.com/Uniswap/uniswap-v3-core/issues/164 fixes https://github.com/Uniswap/uniswap-v3-core/issues/149 fixes https://github.com/Uniswap/uniswap-v3-core/issues/141
diff --git a/contracts/UniswapV3Pair.sol b/contracts/UniswapV3Pair.sol index 0d3720b9a..0aeaf6995 100644 --- a/contracts/UniswapV3Pair.sol +++ b/contracts/UniswapV3Pair.sol @@ -52,11 +52,19 @@ contract UniswapV3Pair is IUniswapV3Pair { // see TickBitMap.sol mapping(uint256 => uint256) public override tickBitM...
1
1
0
[{"id": "G0", "claim": "The tick cumulative update could cast timeElapsed straight to int56 instead of round-tripping it through int256, i.e. int56(timeElapsed) * tickCurrent rather than int56(int256(timeElapsed) * tickCurrent) (the reviewer's suggestion wrote int54, which the author corrected to int56).", "category": ...
null
Uniswap__v3-core__200
Uniswap/v3-core
200
defect
e24cd4293388b35f36bf2fe9db4ada4b8cb223e0
dec3c567043291e7e55483a2c3326c9d212b8e6c
64x96 price
see the tests for all the precision benefits (fixes https://github.com/Uniswap/uniswap-v3-core/issues/186) fixes https://github.com/Uniswap/uniswap-v3-core/issues/197 also
diff --git a/contracts/UniswapV3Pair.sol b/contracts/UniswapV3Pair.sol index 6b1b804c3..10403f156 100644 --- a/contracts/UniswapV3Pair.sol +++ b/contracts/UniswapV3Pair.sol @@ -62,7 +62,7 @@ contract UniswapV3Pair is IUniswapV3Pair { mapping(int16 => uint256) public override tickBitmap; // single storage sl...
8
5
3
[{"id": "G0", "claim": "An echidna test should assert that the truncated sqrt ratio returned by getSqrtRatioAtTick never exceeds uint192(-1).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The rounding-up term in getSqrtRatioAtTick should compare the re...
null
Uniswap__v3-core__253
Uniswap/v3-core
253
defect
da4f6f73832a86250fbd0402e092787cce2c0d0e
f432776fa6fee9b370bb26a23afcc7ce9ee574fc
various improvements to mint/withdraw/burn
top-level changes: 1) move gross liquidity requires to `_updateTick` 2) `collect` -> `withdraw` 3) `withdraw` does _not_ update fees, it uses the stored values (requires a poke). this fixes an edge case where an LP could `burn` and then be forced to `mint` to collect fees 4) gas optimizations to `mint` for pokes ...
diff --git a/contracts/UniswapV3Pair.sol b/contracts/UniswapV3Pair.sol index 241d12cdf..3df1c9bbf 100644 --- a/contracts/UniswapV3Pair.sol +++ b/contracts/UniswapV3Pair.sol @@ -32,6 +32,7 @@ contract UniswapV3Pair is IUniswapV3Pair { using SafeCast for int256; using SafeCast for uint256; using MixedSafeM...
5
3
0
[{"id": "G0", "claim": "It might make sense to add `liquidityGross` to the `liquidityCurrent` slot and simplify the require.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The liquidity check should be removed from setPosition.", "category": "design", "v...
null
Uniswap__v3-core__254
Uniswap/v3-core
254
defect
cc80896f2951ee125dabc875d96886e5b0fd2e8c
5d5113fc119a3556f5a38ece86c452b6809c62f8
Multi hop router
Swap AforC - still working on setting up the /utilities and tests closes #213
diff --git a/contracts/test/TestUniswapV3Router.sol b/contracts/test/TestUniswapV3Router.sol new file mode 100644 index 000000000..cd8862c1f --- /dev/null +++ b/contracts/test/TestUniswapV3Router.sol @@ -0,0 +1,76 @@ +// SPDX-License-Identifier: UNLICENSED +pragma solidity =0.7.6; + +import '../libraries/SafeCast.sol';...
2
2
0
[{"id": "G0", "claim": "The hard-coded uint160(-1) sentinel should be written as type(uint160).max in swapForExact0Multi.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hard-coded uint160(-1) sentinel in the callback's second swap should be ...
null
Uniswap__v3-core__261
Uniswap/v3-core
261
defect
67e6a35d3d750c7641a2cb2d335813d198d56518
3bccb39eb1bc1ae056672176385f1d5906c795ae
clean up tests and make max liquidity per tick calculated
fixes https://github.com/Uniswap/uniswap-v3-core/issues/204
diff --git a/contracts/UniswapV3Pair.sol b/contracts/UniswapV3Pair.sol index 49de19204..e528532ba 100644 --- a/contracts/UniswapV3Pair.sol +++ b/contracts/UniswapV3Pair.sol @@ -41,14 +41,6 @@ contract UniswapV3Pair is IUniswapV3Pair { uint8 private constant PRICE_BIT = 0x10; uint8 private constant UNLOCKED_BI...
1
1
1
[{"id": "G0", "claim": "The divisor for max liquidity per tick is off by one: it should be the number of ticks ((maxTick - minTick) / tickSpacing + 1), not (maxTick - minTick) / tickSpacing, since e.g. min/max tick -1/1 span 3 ticks — in both the contract and the test helper.", "category": "correctness", "verdict": "su...
null
Uniswap__v3-core__272
Uniswap/v3-core
272
defect
73d6036978ef27c898c008b38038b8ab71661edb
f0047382a30d6f4ad27188e990c13e85b6c3fc0d
adjustable protocol fees
allows the protocol fee to be set to an integer % between 10% and 25% of all collected fees closes #201 closes #226
diff --git a/contracts/UniswapV3Pair.sol b/contracts/UniswapV3Pair.sol index 19890b1e7..2a07f01df 100644 --- a/contracts/UniswapV3Pair.sol +++ b/contracts/UniswapV3Pair.sol @@ -74,10 +74,14 @@ contract UniswapV3Pair is IUniswapV3Pair { Slot0 public override slot0; - // current in-range liquidity - uint12...
1
1
0
[{"id": "G0", "claim": "The setFeeProtocol validation should let feeProtocol range from 2 to 255 instead of restricting it to 0 or 4-10.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Uniswap__v3-core__322
Uniswap/v3-core
322
defect
b819d1abeefb78bb9005a2459116c6fe371561a1
51fb6e8406461baef9a4516349dfadcbccc507ec
seconds outside packed
fixes https://github.com/Uniswap/uniswap-v3-core/issues/268 ready for a first pass
diff --git a/contracts/UniswapV3Pair.sol b/contracts/UniswapV3Pair.sol index 768c714a1..8210dde47 100644 --- a/contracts/UniswapV3Pair.sol +++ b/contracts/UniswapV3Pair.sol @@ -16,6 +16,7 @@ import './libraries/SqrtTickMath.sol'; import './libraries/SpacedTickBitmap.sol'; import './libraries/FixedPoint128.sol'; impo...
1
1
1
[{"id": "G0", "claim": "In SecondsOutside.initialize, the packed word should be updated with &= (the bitwise idiom used by clear) instead of arithmetic +=, for consistency.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Uniswap__v3-core__376
Uniswap/v3-core
376
defect
99b52a7d06c3cc9f29ef69da8c3cb0e68c8d219e
42fb985a9824194de55c129f229d768684818b52
collapses sqrt tick math into tick math
~the swap snapshots changed order for some reason~ this is because we never call TickMath except from SqrtTickMath, similar reasoning from TickBitmap + SpacedTickBitmap
diff --git a/.github/workflows/fuzz-testing.yml b/.github/workflows/fuzz-testing.yml index 76491ac78..0c33e68de 100644 --- a/.github/workflows/fuzz-testing.yml +++ b/.github/workflows/fuzz-testing.yml @@ -18,7 +18,6 @@ jobs: - TickMathEchidnaTest - SqrtPriceMathEchidnaTest - SwapMathEch...
3
2
1
[{"id": "G0", "claim": "In getSqrtRatioAtTick the absTick cast should use uint24(-tick) so that tick == type(int24).min is handled correctly, instead of uint256(-tick) which overflows to a wrong value for that input.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "...
null
Uniswap__v3-core__427
Uniswap/v3-core
427
defect
5c5276df72554edd102e1fc158382106a6fa4fcb
ca1a187310fece413dea579874875d039cb64fde
Burn accounting tokens owed
fixes https://github.com/Uniswap/uniswap-v3-core/issues/429
diff --git a/contracts/UniswapV3Pool.sol b/contracts/UniswapV3Pool.sol index 7eaa74d7a..576c7b751 100644 --- a/contracts/UniswapV3Pool.sol +++ b/contracts/UniswapV3Pool.sol @@ -223,18 +223,29 @@ contract UniswapV3Pool is IUniswapV3Pool, NoDelegateCall { /// @dev Effect some changes to a position /// @param ...
1
1
0
[{"id": "G0", "claim": "The comment should say \"tokensOwed{0,1}\" instead of the stale \"feesOwed{0,1}\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Uniswap__v3-core__491
Uniswap/v3-core
491
defect
e3589b192d0be27e100cd0daaf6c97204fdb1899
b42f49b90c6195aabcc2ced477620feb9b075819
feat: OVM
# Summary The OVM is a sandboxed environment for the EVM which allows execution of smart contract code on L2, with the ability to dispute it on L1 via a fraud proof. Solidity code can be compiled directly to OVM code instead of EVM code by using ["optimistic solc"](https://github.com/ethereum-optimism/solidity), a f...
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 89567f98c..d5b031d42 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -35,4 +35,37 @@ jobs: run: yarn compile - name: Run unit tests - run: yarn test + run: UPDATE_SNAPSHOT=1 yarn te...
2
2
2
[{"id": "G0", "claim": "The CI unit-test jobs should check snapshots rather than update them: running the tests with UPDATE_SNAPSHOT=1 makes CI rewrite the snapshots instead of failing when they change.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Kee...
null
Uniswap__v3-core__50
Uniswap/v3-core
50
defect
253779cac22499d929d9c6e06026f385f921ee90
3b0deac4ee1fa60da53a42a4121371985abfb9df
LPs, Fees & removal of liquidity
Fixes #28. <s>It seems that the `further adds to the position, compounding with the fees` test reverts on the liquidityFee calculation, in the `growthInside * liquidityAdjusted - liquidity` subtraction. Is this a bug in the calculation (maybe? there's a TODO there), or am I using wrong numbers in my tests?</s>
diff --git a/test/UniswapV3Pair.spec.ts b/test/UniswapV3Pair.spec.ts index faa7dc170..14d32c8f8 100644 --- a/test/UniswapV3Pair.spec.ts +++ b/test/UniswapV3Pair.spec.ts @@ -85,6 +85,27 @@ describe('UniswapV3Pair', () => { expect(position.liquidityAdjusted).to.eq(expectedUserLiquidity) }) + // Cases which bre...
4
2
1
[{"id": "G0", "claim": "There may be an error in the way fee liquidity is calculated in UniswapV3Pair.sol (~line 300) — the math being wrong, liquidityAdjusted being too lossy or mis-rounded, or growthInside being too lossy or mis-rounded — as demonstrated by the failing tests in this PR.", "category": "correctness", "...
null
Uniswap__v3-core__51
Uniswap/v3-core
51
defect
253779cac22499d929d9c6e06026f385f921ee90
f2f97cc4a7d5f098a8c08bbd19177efcf265176c
feat: counterfactual read price
Fixes: https://github.com/Uniswap/uniswap-v3-core/issues/2
diff --git a/contracts/UniswapV3Pair.sol b/contracts/UniswapV3Pair.sol index 94b68814d..760725939 100644 --- a/contracts/UniswapV3Pair.sol +++ b/contracts/UniswapV3Pair.sol @@ -52,8 +52,8 @@ contract UniswapV3Pair is IUniswapV3Pair { // the amount of virtual supply active within the current tick, for each fee vote...
3
3
0
[{"id": "G0", "claim": "The `block.timestamp % 2 ** 32` in getCumulativePrices is unnecessary because casting to uint32 already masks the higher bits.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "getCumulativePrices should not return the block...
null