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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TanStack__table__6219 | TanStack/table | 6,219 | defect | 357d5820e528d1e9ef2f1a06fd364043e3d40ab3 | 010323e2a22ffc0580fc5cdff241647c38d9d058 | fix(angular): [v9] fix conditional flexRenderComponent rendering | ERROR: type should be string, got " https://github.com/TanStack/table/pull/6218 for v9 branch\r\n\r\n\r\n\r\nThis resolve a rendering issue with flexRenderDirective that doesn't re-render component while using conditional flexRenderComponent return in the same cell column configuration (same cell reference in template, so it's a case where you are not updating table state but relies on external data outside of table scope)\r\n\r\n```typescript\r\ncell: () => {\r\n if (condition) { \r\n return flexRenderComponent(ComponentA)\r\n }\r\n return flexRenderComponent(ComponentB)\r\n}\r\n```\r\n\r\n### Example:\r\n\r\n- 1st call -> flexRenderComponent(ComponentA)\r\n- 2nd call -> flexRenderComponent(ComponentB)\r\n\r\n### Results\r\n\r\nbefore: no-rerender since we were checking only A and B content type (which is always flexRenderComponent)\r\n\r\nafter: A will be destroyed and B will be created (since component type class is different)\r\n\n\n<!-- This is an auto-generated comment: release notes by coderabbit.ai -->\n## Summary by CodeRabbit\n\n* **Refactor**\n * Improved component rendering internals to strengthen type safety and make change detection more robust for consistent updates.\n\n* **Tests**\n * Added unit and integration tests covering dynamic/reactive component switching and verifying DOM updates.\n\n* **Chores**\n * Relaxed a devDependency version specifier to a compatible semver range.\n<!-- end of auto-generated comment: release notes by coderabbit.ai -->" | diff --git a/packages/angular-table/src/flex-render.ts b/packages/angular-table/src/flex-render.ts
new file mode 100644
index 0000000000..ff1e8cd245
--- /dev/null
+++ b/packages/angular-table/src/flex-render.ts
@@ -0,0 +1,293 @@
+import {
+ ChangeDetectorRef,
+ Directive,
+ DoCheck,
+ effect,
+ type EffectRef,
+ ... | 4 | 3 | 1 | [{"id": "G0", "claim": "The pull request accidentally adds packages/angular-table/src/flex-render.ts, a file referencing non-existent modules and FlexRenderFlags members that causes 19 TypeScript errors, 4 ESLint violations and a knip unused-file failure, and it should be removed.", "category": "correctness", "verdict"... | null |
TanStack__virtual__967 | TanStack/virtual | 967 | defect | c846395a871ec0daa47204a76f45a9b92c05d478 | 3a9149f200d541fcccbb4bdea590e6521ba7b704 | fix(virtual-core): fix total size calculation for single item in multi-lane | This is a follow-up to #961. The original issue still occurs when there's only one item in a multi-lane layout.
This PR changes the loop condition in `getTotalSize()` to handle cases where only one item exists in multi-lane. The previous condition skipped the loop when `endIndex === 0`, which caused the total size t... | diff --git a/packages/virtual-core/src/index.ts b/packages/virtual-core/src/index.ts
index b3b4a90d5..6ba08ab77 100644
--- a/packages/virtual-core/src/index.ts
+++ b/packages/virtual-core/src/index.ts
@@ -1046,7 +1046,7 @@ export class Virtualizer<
} else {
const endByLane = Array<number | null>(this.option... | 2 | 2 | 2 | [{"id": "G0", "claim": "The pull request's fix for the total size with a single item in a multi-lane layout should come with a test, since the changed behaviour is currently untested.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "If the total-size fix ... | null |
TangleID__TangleID__122 | TangleID/TangleID | 122 | defect | 82cba913d380bfb0ee3c430891f5c057f96202fc | 8113845c7de782477f6a7b0cbac0c16a5750608c | Add utilities for JSON-LD signatures | To signing the credential and verifying the signature, the following
utilities are added:
- generateRsaKeyPair
- signRsaSignature
- verifyRsaSignature
Since the "jsonld-signatures" uses the "sodium-native" package, and
"sodium-native" native codes cannot build with the latest stable
Node.js on the Travis CI... | diff --git a/.travis.yml b/.travis.yml
index 192db3d..c5c960d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,6 +1,6 @@
language: node_js
node_js:
- - node
+ - lts/*
install:
- yarn run init
script:
diff --git a/packages/jsonld/README.md b/packages/jsonld/README.md
index 1d141e8..20095b3 100644
--- a/packages... | 2 | 1 | 0 | [{"id": "G0", "claim": "The change of the Travis CI Node.js version from `node` to `lts/*` is unexplained, and its rationale must be explained explicitly in the Git commit message so the change can be tracked.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ... | null |
Taraxa-project__taraxa-node__1714 | Taraxa-project/taraxa-node | 1,714 | defect | a258448252545a4d9faa7aeb8201da4ea1d88111 | ac032674dc9fbdf7c2571b818941af3362cf0f78 | chore: low nonce and insufficient balance transactions handling | Transactions with low nonce and insufficient balance should not be placed into transactions pool to propose dag blocks from but at the same time there are scenarios when such transactions might be needed by incoming dag blocks.
My proposed solution is keeping these transactions in a separate memory map. Once a dag b... | diff --git a/libraries/core_libs/consensus/include/pbft/pbft_manager.hpp b/libraries/core_libs/consensus/include/pbft/pbft_manager.hpp
index 5c5b8bc0bb..034fe05d21 100644
--- a/libraries/core_libs/consensus/include/pbft/pbft_manager.hpp
+++ b/libraries/core_libs/consensus/include/pbft/pbft_manager.hpp
@@ -148,6 +148,7 ... | 10 | 8 | 2 | [{"id": "G0", "claim": "Declare the parameter as const std::shared_ptr<Transaction>& (const before the type).", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Restructure the nested if/else fallback in the transaction-collection loop into flat gua... | null |
Taraxa-project__taraxa-node__1716 | Taraxa-project/taraxa-node | 1,716 | defect | 1bd3f3a3646d4e395e7d12826c5e692af0914200 | b323307cbc8e86572044ba84b2cc4ee04cbb26a3 | Send votes in bundle of maximum N votes | Fix https://github.com/Taraxa-project/taraxa-node/issues/1700 | diff --git a/libraries/core_libs/network/include/network/network.hpp b/libraries/core_libs/network/include/network/network.hpp
index a2a22a70b9..8b97be1b6a 100644
--- a/libraries/core_libs/network/include/network/network.hpp
+++ b/libraries/core_libs/network/include/network/network.hpp
@@ -75,8 +75,9 @@ class Network {... | 5 | 5 | 1 | [{"id": "G0", "claim": "VotePacketHandler::validatePacketRlpFormat must not be a no-op: it should check that a vote packet contains at least 1 vote and no more than kMaxVotesInPacket.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Do not iterate ove... | null |
Taraxa-project__taraxa-node__1793 | Taraxa-project/taraxa-node | 1,793 | defect | d3d7747638459416f936bbd25c539671fa5499ad | f2c01c43f96f8d0363153970638321774a24b2dd | Remove gas flag | ## Purpose
fixes #1620
## How does the solution address the problem
<!-- Describe your solution. -->
## Changes made
<!-- Summary or changes that have been made. -->
| diff --git a/libraries/cli/include/cli/default_config.hpp b/libraries/cli/include/cli/default_config.hpp
index 14defcdbde..b5dd5b876f 100644
--- a/libraries/cli/include/cli/default_config.hpp
+++ b/libraries/cli/include/cli/default_config.hpp
@@ -218,7 +218,6 @@ constexpr std::string_view default_json = R"foo({
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The manually built expected_balances map in detect_overlap_transactions could be replaced with a call to the existing effective_genesis_balances helper.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Taraxa-project__taraxa-node__2104 | Taraxa-project/taraxa-node | 2,104 | defect | 74ada04cfb201ecfc52a027870af2cab8c9d6594 | d214ec9f5d8470d18f26448ea8ae8b7228594d72 | Remove nonce check disabling | Need to be reviewed and merged first https://github.com/Taraxa-project/taraxa-evm/pull/102
#2082 | diff --git a/doc/RPC.md b/doc/RPC.md
index 7e7115f796..1116cd0fb0 100644
--- a/doc/RPC.md
+++ b/doc/RPC.md
@@ -430,12 +430,9 @@ curl -X POST --data '{"jsonrpc":"2.0","method":"taraxa_getConfig","params":[],"i
"homestead_block": "0x0",
"petersburg_block": "0x0"
},
- "execution_optio... | 5 | 5 | 2 | [{"id": "G0", "claim": "The commented-out std::make_shared<Transaction> lines left behind by the change in tests/pbft_manager_test.cpp should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The repeated nonces[0]++ with nodes[0]'s key... | null |
Taraxa-project__taraxa-node__2162 | Taraxa-project/taraxa-node | 2,162 | defect | e9a755a63e31e57be0cf2fd0a1d1945b03870c16 | b13d3ead2444e40be4569042dd8f16e73dbb34a0 | chore: save proposed pbft blocks to db | Saving proposed blocks to db so that on restart all the proposed blocks from the last period/round can be reloaded.
I understand that there could be performance concerns about this change. I have added measuring pushing and erasing 100 blocks to db in the unit test. Results are:
Time to push 100 blocks: 927 microseco... | diff --git a/libraries/core_libs/consensus/include/pbft/proposed_blocks.hpp b/libraries/core_libs/consensus/include/pbft/proposed_blocks.hpp
index 957474a7df..fb0fcbdb95 100644
--- a/libraries/core_libs/consensus/include/pbft/proposed_blocks.hpp
+++ b/libraries/core_libs/consensus/include/pbft/proposed_blocks.hpp
@@ -5... | 4 | 1 | 1 | [{"id": "G0", "claim": "Add a check so that pushProposedPbftBlock does not save the block to the DB a second time when the method is called from initialState to reload blocks that are already in the DB.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
Taraxa-project__taraxa-node__2164 | Taraxa-project/taraxa-node | 2,164 | defect | 8dd7e815bacf119a0daf2bcc2759a8fd650a3931 | 7e7551bd3e5318b8e62ab7e7801841f127e67d9a | fix: make DPOS config required | https://github.com/Taraxa-project/taraxa-node/issues/1899
https://github.com/Taraxa-project/taraxa-evm/pull/112 should be reviewed and merged first | diff --git a/libraries/config/include/config/state_api_config.hpp b/libraries/config/include/config/state_api_config.hpp
index d0edfc3297..59bf5c3c33 100644
--- a/libraries/config/include/config/state_api_config.hpp
+++ b/libraries/config/include/config/state_api_config.hpp
@@ -80,7 +80,7 @@ struct Config {
BlockRew... | 1 | 1 | 0 | [{"id": "G0", "claim": "Remove the leftover \"// TODO[1899]: dpos confing should not be optional\" comment that is now obsolete in libraries/config/include/config/state_api_config.hpp.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Taraxa-project__taraxa-node__2226 | Taraxa-project/taraxa-node | 2,226 | defect | 740b809b89d647e0ce6f68d5ea776369c7a5dd2a | 68ebcd58f5405745a8f5528e6627ebb17ac7010c | refactor: use VotePacket for single vote and VotesSyncPacket for vote… | Votes processing refactor:
- VotePacket handler process only single votes generated during standard voting
- VotesSyncPacket handler process only votes bundles (any type)
- vote validating & generating functions moved from pbft manager into the vote manager
- when processing votes, use "already validated votes" f... | diff --git a/libraries/core_libs/consensus/include/pbft/pbft_manager.hpp b/libraries/core_libs/consensus/include/pbft/pbft_manager.hpp
index e7f2f40876..b7b4ffea91 100644
--- a/libraries/core_libs/consensus/include/pbft/pbft_manager.hpp
+++ b/libraries/core_libs/consensus/include/pbft/pbft_manager.hpp
@@ -4,10 +4,8 @@
... | 4 | 4 | 0 | [{"id": "G0", "claim": "The private constant member variables of VoteManager (node_addr_, pbft_config_, vrf_sk_, node_sk_, node_pub_) should be named as constants.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In generateVoteWithWeight and genA... | null |
Taraxa-project__taraxa-node__2267 | Taraxa-project/taraxa-node | 2,267 | defect | 6184d51daeaf52b0bb1760cf578bcbf756ef1ad3 | 4dfc13586294785fa5d3440876aa3a281f2ef1e6 | feat: do not save genesis block in dag blocks in database | https://github.com/Taraxa-project/taraxa-node/issues/1244 | diff --git a/libraries/core_libs/consensus/include/dag/dag_manager.hpp b/libraries/core_libs/consensus/include/dag/dag_manager.hpp
index a9e94af5c1..78e16ba265 100644
--- a/libraries/core_libs/consensus/include/dag/dag_manager.hpp
+++ b/libraries/core_libs/consensus/include/dag/dag_manager.hpp
@@ -45,12 +45,12 @@ class... | 3 | 3 | 0 | [{"id": "G0", "claim": "The newly added `genesis_block_` member should be declared const.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The commented-out line `// auto dag_genesis_block_hash = conf_.genesis.dag_genesis_block.getHash();` should ... | null |
Taraxa-project__taraxa-node__2352 | Taraxa-project/taraxa-node | 2,352 | defect | 2460587a50728bd5d0b967e6d1c17dda1944cadd | bedd1c8c6141b740df69b9c50a0b6f304c9883d1 | chore: optimize rewards votes handling | The goal of this optimization was to avoid saving cert votes twice in the db, once as a cert vote when cert voting a block and second time when treating the same votes as reward votes.
- 2t+1 cert votes are no longer saved once node receives 2t+1 votes but only a short time later when we actually push a pbft block t... | diff --git a/libraries/core_libs/storage/include/storage/storage.hpp b/libraries/core_libs/storage/include/storage/storage.hpp
index 5f3ae3fbd1..91d84341de 100644
--- a/libraries/core_libs/storage/include/storage/storage.hpp
+++ b/libraries/core_libs/storage/include/storage/storage.hpp
@@ -143,6 +143,7 @@ class DbStora... | 2 | 1 | 0 | [{"id": "G0", "claim": "It may be better to store the result of vote->getHash().asBytes() in the reward_votes_keys_ cache instead of vote_hash_t, since asBytes() is computed anyway.", "category": "performance", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Putting the reward-vot... | null |
Taraxa-project__taraxa-node__2997 | Taraxa-project/taraxa-node | 2,997 | defect | 5d2fdfa0f872d0d9c32b9ba243cc8cb90bac5b9f | 3a01c8a4a0e4e00be922ffc3a71ed6371871c7bd | feat: add estimation cache | ## Purpose
<!-- Provide any information reviewers might need to have context on your changes. -->
## How does the solution address the problem
<!-- Describe your solution. -->
## Changes made
<!-- Summary or changes that have been made. -->
| diff --git a/CMakeLists.txt b/CMakeLists.txt
index 306f439671..f0fdfc3db6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.20)
# Set current version of the project
set(TARAXA_MAJOR_VERSION 1)
set(TARAXA_MINOR_VERSION 12)
-set(TARAXA_PATCH_VERSION 13)
+set(TARAXA_PATCH... | 2 | 2 | 2 | [{"id": "G0", "claim": "The gas-estimation cache should be keyed per PBFT period because contract calls can have very different gas estimations in different periods.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The estimation cache should not be u... | null |
Taraxa-project__taraxa-node__3024 | Taraxa-project/taraxa-node | 3,024 | defect | 9093f0b02500d2607cde5ef712c87fe327a40f50 | 08990b3287ffbcbaa1c804d8fb7ed3b296981bd9 | chore: remove old code | ## Purpose
<!-- Provide any information reviewers might need to have context on your changes. -->
## How does the solution address the problem
<!-- Describe your solution. -->
## Changes made
<!-- Summary or changes that have been made. -->
| diff --git a/libraries/common/include/common/encoding_rlp.hpp b/libraries/common/include/common/encoding_rlp.hpp
index 8cd6fd8594..a0d07b1b33 100644
--- a/libraries/common/include/common/encoding_rlp.hpp
+++ b/libraries/common/include/common/encoding_rlp.hpp
@@ -63,8 +63,8 @@ void rlp(RLPEncoderRef encoding, std::pair<... | 2 | 1 | 0 | [{"id": "G0", "claim": "Comments/documentation related to the removed from_dag overload of verifyTransaction should be updated or removed so the new single-argument signature is not confusing.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The fun... | null |
TarsCloud__TarsGo__21 | TarsCloud/TarsGo | 21 | defect | 9c0facf10de716e89241142bc71df43bca1d7212 | d084cc70ad7f52c2e600b26953e365899c1427f3 | feature: Implement a generic goroutine pool and apply it to rpc invoke | fixes #20 | diff --git a/tars/transport/tcphandler.go b/tars/transport/tcphandler.go
index 00cd3f55..0114e407 100644
--- a/tars/transport/tcphandler.go
+++ b/tars/transport/tcphandler.go
@@ -6,6 +6,8 @@ import (
"reflect"
"sync/atomic"
"time"
+
+ "github.com/TarsCloud/TarsGo/tars/util/gpool"
)
type tcpHandler struct {
@@... | 5 | 3 | 1 | [{"id": "G0", "claim": "The second parameter passed to gpool.NewPool in handleConn should be cfg.QueueCap (as in tarsserver.go's jobs channel) instead of int(cfg.MaxInvoke).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "There should not be a blank ... | null |
Tarsnap__spiped__114 | Tarsnap/spiped | 114 | defect | 26144c14903e2bd36055700fbb0bfc93ee98440e | 6fdd0e474b66337164d263a6cf1accd84e88f133 | tests/nc-client: clarify client network errors, block on socket close | Yes, given the specific values inside this file's send_input() function,
we're not expecting to see a lenwrit which is neither -1 nor send->nchars.
However, I think the code is more clear this way, and it's not unlikely that
I'll end up copying bits of this file the next time I want to send data over a
network. Al... | diff --git a/tests/nc-client/main.c b/tests/nc-client/main.c
index 93f1cb39..52fee45c 100644
--- a/tests/nc-client/main.c
+++ b/tests/nc-client/main.c
@@ -64,9 +64,13 @@ callback_wrote(void * cookie, ssize_t lenwrit)
/* We are no longer writing. */
send->write_cookie = NULL;
- /* Check that we wrote all our data.... | 2 | 2 | 1 | [{"id": "G0", "claim": "In callback_wrote, a lenwrit mismatch with send->nchars should be handled with assert() rather than warnp(), since the callback's valid values are fixed by the network_write API and a mismatch indicates a bug in our code, not an external failure.", "category": "design", "verdict": "supported", "... | null |
Tarsnap__spiped__116 | Tarsnap/spiped | 116 | defect | 956abdb8bf9c6d480b757fa7f4bc44804d9d25b7 | dd3d412e24403b3adce4290377201bfb637bee8b | tests/nc-client: shutdown when the socket is closed | This makes nc-client block on its shutdown message being received by the server. | diff --git a/tests/nc-client/Makefile b/tests/nc-client/Makefile
index 323ef93d..fb5a9a12 100644
--- a/tests/nc-client/Makefile
+++ b/tests/nc-client/Makefile
@@ -2,7 +2,7 @@
# AUTOGENERATED FILE, DO NOT EDIT
PROG=nc-client
MAN1=
-SRCS=main.c elasticarray.c ptrheap.c timerqueue.c events_immediate.c events_network.c ... | 3 | 3 | 1 | [{"id": "G0", "claim": "Rename the `uint8_t shutdown` field to something like `uint8_t dummybuf[1]`, to indicate that it is a buffer and not intended to actually be used.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `assert(lenread == 0)` ... | null |
Tarsnap__spiped__214 | Tarsnap/spiped | 214 | defect | 338ff9aa0ec31d31f88abdc8f0bef54f15abd063 | 88d20aa089e5c681b1ce055951890981a0f8de5a | Don't use events_shutdown() | Events clean-up is done via atexit and the function was deprecated in
b164ec07fb7015de5c33cfa2c4bd9e835a88c5f2. | diff --git a/spipe/main.c b/spipe/main.c
index a0061247..2ff511bb 100644
--- a/spipe/main.c
+++ b/spipe/main.c
@@ -211,7 +211,6 @@ main(int argc, char * argv[])
}
/* Clean up. */
- events_shutdown();
free(K);
/* Handle a connection error. */
@@ -224,7 +223,6 @@ main(int argc, char * argv[])
err3:
proto_c... | 1 | 1 | 1 | [{"id": "G0", "claim": "After the relabelling, the connection-acceptor initialization failure path still jumps to err5, whose cleanup now calls dispatch_shutdown on a dispatcher that was never initialized, so that goto should target err4 instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "s... | null |
Tarsnap__tarsnap__60 | Tarsnap/tarsnap | 60 | defect | 11e51194f51b9d3751ba208e800ebc34219b4f3d | 4490336c905f99650e72902e84d9e05fda1a0651 | Add assert() before asprintf() involving "%s" | This does not add assert() for asprintf() calls which are protected with an
if (var != NULL)
check.
| diff --git a/lib/keyfile/keyfile.c b/lib/keyfile/keyfile.c
index 0cbb103a..8ab8fdbb 100644
--- a/lib/keyfile/keyfile.c
+++ b/lib/keyfile/keyfile.c
@@ -3,6 +3,7 @@
#include <sys/types.h>
#include <sys/stat.h>
+#include <assert.h>
#include <fcntl.h>
#include <stdint.h>
#include <stdlib.h>
@@ -122,6 +123,9 @@ read_... | 4 | 3 | 0 | [{"id": "G0", "claim": "The comments added above the asserts are wrong: they must explain why the assertions should hold rather than state what would go wrong if they do not.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The author asks whether, ... | null |
TauricResearch__TradingAgents__413 | TauricResearch/TradingAgents | 413 | defect | f362a160c309a680cac460aa9de217ec63e434e6 | 08bfe70a6990a2756e7fefdd48a45c41e0f2f42f | fix: preserve exchange-qualified tickers across agent prompts | ## Summary
This PR improves symbol handling for exchange-qualified tickers such as `CNC.TO` and `7203.T` so they are preserved more consistently across the CLI, helper utilities, and downstream agent prompts.
## Why
Issue #325 reports cases where models confuse symbols from different exchanges. In the current ... | diff --git a/cli/main.py b/cli/main.py
index adda48fc5a1..e51a0e7b3e5 100644
--- a/cli/main.py
+++ b/cli/main.py
@@ -501,7 +501,9 @@ def create_question_box(title, prompt, default=None):
# Step 1: Ticker symbol
console.print(
create_question_box(
- "Step 1: Ticker Symbol", "Enter the ticke... | 6 | 6 | 0 | [{"id": "G0", "claim": "In fundamentals_analyst.py the ticker variable is used only once and could be inlined to simplify the code.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In market_analyst.py the ticker variable is used only in the next ... | null |
TauricResearch__TradingAgents__453 | TauricResearch/TradingAgents | 453 | defect | 589b351f2ab55a8a37d846848479cebc810a5a36 | f5026009f97b797541899bbd4e55e1f520e71df7 | fix(llm_clients): standardize Google API key to unified api_key param | ## Summary
- GoogleClient now accepts the unified `api_key` parameter, consistent with OpenAI and Anthropic clients
- Maps `api_key` to provider-specific `google_api_key` for ChatGoogleGenerativeAI
- Legacy `google_api_key` still works for backward compatibility
Resolves `tradingagents/llm_clients/TODO.md` item #2 (i... | diff --git a/tests/test_google_api_key.py b/tests/test_google_api_key.py
new file mode 100644
index 00000000000..1ec2301f179
--- /dev/null
+++ b/tests/test_google_api_key.py
@@ -0,0 +1,39 @@
+import unittest
+from unittest.mock import patch
+
+
+class TestGoogleApiKeyStandardization(unittest.TestCase):
+ """Verify G... | 3 | 3 | 0 | [{"id": "G0", "claim": "The three near-identical test methods should be consolidated into a single parameterized test using self.subTest to reduce duplication.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The GoogleClient import inside the tes... | null |
TauricResearch__TradingAgents__464 | TauricResearch/TradingAgents | 464 | defect | f362a160c309a680cac460aa9de217ec63e434e6 | 8793336dade0709b95233969147feafc00dc9ff4 | sync model validation with cli catalog | ## Summary
This PR addresses two consistency items from `tradingagents/llm_clients/TODO.md`:
1. `validate_model()` is never called
2. `Update validators.py with models from CLI`
To fix the drift between the CLI model menus and `llm_clients/validators.py`, this PR introduces a shared model catalog and uses it ... | diff --git a/cli/utils.py b/cli/utils.py
index 5a8ec16cae7..9869fb4d5ca 100644
--- a/cli/utils.py
+++ b/cli/utils.py
@@ -4,6 +4,7 @@
from rich.console import Console
from cli.models import AnalystType
+from tradingagents.llm_clients.model_catalog import get_model_options
console = Console()
@@ -129,48 +130,11 ... | 2 | 2 | 0 | [{"id": "G0", "claim": "The `ProviderModeOptions` type hint should be `Dict[str, Dict[str, List[ModelOption]]]` to match the nested structure of `MODEL_OPTIONS`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "`get_known_models` can be made more ... | null |
TeXitoi__structopt__116 | TeXitoi/structopt | 116 | defect | de7fc7a08eb01641028a18a208980eb15edea4a3 | 5b7d40ef4763e3a9464306f951f889c14c371d72 | Add a minimum rustc version policy | Fix #115
@zigguratvertigo @hcpl @killercup OK? | diff --git a/.travis.yml b/.travis.yml
index f115e505..e34d02cc 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,6 +1,7 @@
language: rust
cache: cargo
rust:
+ - 1.21.0
- stable
- beta
- nightly
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9a9c3902..1bb7417a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@... | 2 | 1 | 0 | [{"id": "G0", "claim": "Fix the typo \"ffail\" to \"fail\" in the new README rustc version policy line.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Minimum rustc version should be bumped only in minor versions (after 1.0.0) rather than in patch... | null |
TeXitoi__structopt__14 | TeXitoi/structopt | 14 | defect | 52d2550d4e5bea30cf3a689abef208f654bff5c4 | 3e7c24ed26874577eae22ba8f78ec469ef9250ea | Allow doc comment to set help text | This treats doc comments as `help`/`about` attributes, which may lead to concatenating the original help text with the doc comment.
I didn't add any tests except for changing the 'basic' example and checking the CLI output myself. If there is anything you want me to add in that regard, let me know :)
fix #13 | diff --git a/examples/basic.rs b/examples/basic.rs
index 8427c08e..4197da52 100644
--- a/examples/basic.rs
+++ b/examples/basic.rs
@@ -11,23 +11,36 @@ extern crate structopt_derive;
use structopt::StructOpt;
+/// A basic example
#[derive(StructOpt, Debug)]
-#[structopt(name = "basic", about = "A basic example")]
... | 2 | 2 | 1 | [{"id": "G0", "claim": "If help is provided it should be used, else the docstring — not the last-seen attribute — and tests in tests/ with about and a docstring on the struct, and with help and a docstring on a field, checked via ArgsMatches::usage(), should confirm the result.", "category": "correctness", "verdict": "... | null |
TeXitoi__structopt__143 | TeXitoi/structopt | 143 | defect | 6646491c354252d1cf3b1d45c8476731d2dd7047 | 9c1a62caf26a7e910576ddf5de0aad146b4d60bd | Automatic naming of fields and subcommands | Implements most of the features requested by @TeXitoi in #18 and is therefore a successor of #121.
**Expected features**
- [x] introduce standalone `long` (defaults to kebab-casing)
- [x] introduce standalone `short` (defaults to kebab-casing)
- [x] overwrite default casing for single fields and variants
... | diff --git a/.gitignore b/.gitignore
index f0ff2599..ea63af4a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,6 @@
target
Cargo.lock
*~
+
+.idea/
+.vscode/
diff --git a/src/lib.rs b/src/lib.rs
index 3d153a82..00ba4780 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -96,9 +96,9 @@
//! Then, each field of the struct ... | 8 | 8 | 5 | [{"id": "G0", "claim": "The casing style names should follow serde's naming conventions (serde 'camel case' is heck's mixed case and vice versa) instead of heck's names.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The casing override must not be a sep... | null |
TeXitoi__structopt__146 | TeXitoi/structopt | 146 | defect | 6646491c354252d1cf3b1d45c8476731d2dd7047 | f3809d66141d2628cb4cdd352385cf3010a2a37d | Introduce smarter parsing of doc comments. | First approach of an implementation of the smarter doc comment parsing feature requested in #134.
It introduces an additional check in the doc comment parsing algorithm to test if the second line of a given doc comment is an empty line. If this is true only the first line will be used as input for the argument given... | diff --git a/examples/doc_comments.rs b/examples/doc_comments.rs
new file mode 100644
index 00000000..32028dff
--- /dev/null
+++ b/examples/doc_comments.rs
@@ -0,0 +1,86 @@
+// Copyright 2018 Guillaume Pinot (@TeXitoi) <texitoi@texitoi.eu>
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// ht... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request lacks user-facing documentation explaining that when a doc comment line is followed by an empty line, the first line becomes the short help and the rest the long help.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
TeXitoi__structopt__17 | TeXitoi/structopt | 17 | defect | 859ac77f4e51d8852e863f8ae2cea265693320d3 | 7cbf7669d465687eb9ca6519ed9084f1a2961bf5 | Add support for subcommands | See #1 for detailed discussion of this feature.
Adds the ability to use `#[derive(StructOpt)]` on enums, thereby allowing the creation/easy parsing of `clap::SubCommand`s.
**This is not a breaking change.**
## Things that can still be improved:
+ [X] Fix subcommand names that are hyphenated
+ [ ] Automatical... | diff --git a/Cargo.toml b/Cargo.toml
index e787c873..e18bbbb4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "structopt"
-version = "0.0.5"
+version = "0.1.0"
authors = ["Guillaume Pinot <texitoi@texitoi.eu>"]
description = "Parse command line argument by defining a struct."
documentatio... | 7 | 7 | 2 | [{"id": "G0", "claim": "The Travis build fails because the root Cargo.toml's dev-dependencies still require structopt-derive 0.0.5; update the dev-dependency, and all crate versions, to 0.1.0.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The doc c... | null |
TeXitoi__structopt__190 | TeXitoi/structopt | 190 | defect | b866a0e0eb8729c68c600f5819a7dfba3d288fed | 4611778390dfe6f50873898f3ad3155e0f591a95 | Support Option<Option<T>> field types | Closes #188
I used `sub_type` function in `Attrs` module, so I moved it to there and exported so that it can be reused in `lib.rs`, I am not sure this is an optimal solution, please let me know if you want to change that (for example to have a separate module for types manipulations or anything else).
Another th... | diff --git a/structopt-derive/src/attrs.rs b/structopt-derive/src/attrs.rs
index a1c873bd..dc1e83b7 100644
--- a/structopt-derive/src/attrs.rs
+++ b/structopt-derive/src/attrs.rs
@@ -10,7 +10,10 @@ use heck::{CamelCase, KebabCase, MixedCase, ShoutySnakeCase, SnakeCase};
use proc_macro2::{Span, TokenStream};
use std::... | 4 | 4 | 1 | [{"id": "G0", "claim": "The pull request's code must be formatted with rustfmt before merging.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The nested match in ty_from_field should be simplified to match on sub_type(ty).map(Attrs::ty_from_fiel... | null |
TeXitoi__structopt__204 | TeXitoi/structopt | 204 | defect | 50e7eddf0d55c894d026507a869853ff15b11d87 | f894b55e56365750275c60d432d3bfdf2d9f2431 | [Casing] Change default from verbatim to kebab. | .. fixes TeXitoi/structopt#202
I hope I discovered all related comments and text snippets. | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0533c634..7ee2d322 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,7 @@
as `Option<Vec<T>>` is handled differently. If you need to have a `Option<Vec<T>>`
handled the old was, you can `type Something = Vec<T>;` and then use `Option<Something>`
as your stru... | 3 | 3 | 3 | [{"id": "G0", "claim": "The pull request should update CHANGELOG.md with a note about the change.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The changelog should add a note explaining how to keep the old (verbatim) behavior, for ease of upgrad... | null |
TeXitoi__structopt__246 | TeXitoi/structopt | 246 | defect | af853831587007c88f988bdcec1d776d7c0fb807 | 32796ae51adde1a5b9444978a1c4df8829c29bde | Fix #245 | Closes #245 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 69d8ae6b..72b27525 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,6 @@
# v0.3.1 (2019-08-31)
* Fix error messages ([#241](https://github.com/TeXitoi/structopt/issues/241))
+* Fix "`skip` plus long doc comment" bug ([#245](https://github.com/TeXitoi/structopt/iss... | 1 | 1 | 1 | [{"id": "G0", "claim": "A test should be added for the pull request's fix, which at S1 changes behaviour with no test coverage.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
TeXitoi__structopt__252 | TeXitoi/structopt | 252 | defect | e0f74b0f62677367f2789e4ef70bacf7390f5745 | bc895047368db4c60307a674d41bc335aeb44f6a | Keep as much span info as possible | Closes #247
Work-in-progress, just so you could state your opinion on this changes
Em, fix to #156 is also here, I can extract it to a separate PR if you want | diff --git a/src/lib.rs b/src/lib.rs
index 26ef3feb..e57e8c0f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -183,7 +183,8 @@
//! - On field-level: `Arg::with_name("name")`.
//!
//! The name for the argument the field stands for, this name appears in help messages.
-//! Defaults to a name, deduced from a fiel... | 3 | 3 | 0 | [{"id": "G0", "claim": "Remove the useless parentheses in the type annotation `Option<(Method)>`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The fix for issue #156 should be split out into a separate commit.", "category": "design", "verdict"... | null |
TeXitoi__structopt__26 | TeXitoi/structopt | 26 | defect | 89f0078a0fd61c56662f0c593f8a9a08c86289ef | ad4a08d87ba82dfcf7741cf60c472cf1a9e78367 | Add raw attributes | This makes it possible to call clap functions that don't take strings,
but any arbitrary value. Even functions that take more than one argument
can be called.
All attributes that are called `attribute_name_raw` are augmented to
`attribute_name(value)` without quoting `value`.
This fixes #4.
For enums, I cha... | diff --git a/examples/raw_attributes.rs b/examples/raw_attributes.rs
new file mode 100644
index 00000000..a1ff6be3
--- /dev/null
+++ b/examples/raw_attributes.rs
@@ -0,0 +1,37 @@
+// Copyright (c) 2017 Guillaume Pinot <texitoi(a)texitoi.eu>
+//
+// This work is free. You can redistribute it and/or modify it under
+// t... | 3 | 3 | 2 | [{"id": "G0", "claim": "In gen_attr_call, syn::parse_token_trees(val).unwrap() should use .expect with a message naming the bad parameter (\"bad parameter to {}: the parameter must be valid rust code\") to help debugging when a *_raw attribute value is not valid Rust code.", "category": "maintainability", "verdict": "s... | null |
TeXitoi__structopt__278 | TeXitoi/structopt | 278 | defect | 6a9311316b9bc2155d5e03185ff778af29dfe3f9 | 3d847188f14c7978351c96110f5a54780ecc8a23 | Fix #269 and #265 | Closes #269 #265
Single PR because this changes are on top of one another | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7c28f808..353b7f24 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,10 @@
+# v0.3.4
+
+* `rename_all` does not apply to fields that were annotated with explicit
+ `short/long/name = "..."` anymore ([#265](https://github.com/TeXitoi/structopt/issues/265))
+* Now raw... | 2 | 2 | 0 | [{"id": "G0", "claim": "The names could be converted upfront instead of at usage, which would remove the need for the new Name enum and the modified Short/Long parse variants and might simplify the code.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The... | null |
TeXitoi__structopt__28 | TeXitoi/structopt | 28 | defect | 43710cf96951838b12663b581aaeb21879f63e32 | 2749125b1a453b21b386a493a6b733115827a7db | Implement custom string parser from either `&str` or `&OsStr`. | Fix #2.
Fix #3.
Syntax:
```rust
#[derive(StructOpt)]
struct HexReader {
#[structopt(short = "n", parse(try_from_str = "parse_hex"))]
number: u32,
#[structopt(short = "o", parse(from_os_str))]
output: PathBuf,
}
```
* When using `structopt(parse(...))`, `bool` and `u64` will be treated... | diff --git a/structopt-derive/src/lib.rs b/structopt-derive/src/lib.rs
index 655486aa..fba81852 100644
--- a/structopt-derive/src/lib.rs
+++ b/structopt-derive/src/lib.rs
@@ -64,7 +64,8 @@
//! The `FromStr` trait is used to convert the argument to the given
//! type, and the `Arg::validator` method is set to a method... | 7 | 6 | 1 | [{"id": "G0", "claim": "The documentation should say what happens with a custom parser's error — that `.to_string()` is called on it rather than `description()`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The documentation table should give `t... | null |
TeXitoi__structopt__293 | TeXitoi/structopt | 293 | defect | d0cf35ca434cd81cc6f988436f39850a9118ae32 | e3e1af06d9da1f864ab75e7761950dd5a70b0172 | Prohibit positional bool | Closes #212
cc @TeXitoi please also take a look at #292 | diff --git a/examples/README.md b/examples/README.md
index 02c22290..cc727660 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -72,3 +72,7 @@ How to use `#[structopt(skip)]`.
### [Aliases](subcommand_aliases.rs)
How to use aliases
+
+### [`true` or `false`](true_or_false.rs)
+
+How to express "`"true"` o... | 6 | 3 | 0 | [{"id": "G0", "claim": "The documentation this PR adds does not help the reader at all, in particular it does not cover parsing `true`/`false` command-line values as in the reviewer's case.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Maybe \"yes\... | null |
TeXitoi__structopt__296 | TeXitoi/structopt | 296 | defect | 1c48b93529422f8d9c77bb009213e0078e31feed | cee41566aed5ddefc2ac4fd02e0c9f7144629614 | Consistent doc comments | First commit ensures explicit handling of doc commits and sets strict priority among raw methods and doc comments, see `stc/lib.rs` diff for details. Closes #173
Second commit introduces `no_mangle_docs` attributes. Fixes #163
cc @TeXitoi @0ndorio @ssokolow | diff --git a/src/lib.rs b/src/lib.rs
index 598c9325..fbbecc48 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -392,61 +392,149 @@
//!
//! ## Help messages
//!
-//! Help messages for the whole binary or individual arguments can be
-//! specified using the `about` attribute on the struct and the `help`
-//! attribute on t... | 15 | 15 | 0 | [{"id": "G0", "claim": "The documentation should say \"space\", not \"spacebar\" — \"spacebar\" is the name of the keyboard button, not the character.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer would prefer the test's ASCII art re... | null |
TeXitoi__structopt__302 | TeXitoi/structopt | 302 | defect | 405f51c98dd6cc81df0241cae7b9b0dfd9a64d2d | 6f37790a4180d564a9e4c76e7918f5a4395322b6 | Introduce #[structopt(rename_all_env)] | Closes #149 | diff --git a/src/lib.rs b/src/lib.rs
index c7b2a41b..b46a5f35 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -475,7 +475,7 @@
//! #[derive(StructOpt)]
//! struct Foo {
//! #[structopt(short, long, env = "PARAMETER_VALUE")]
-//! param: String
+//! parameter_value: String
//! }
//! # fn main() {}
//! ```
@@ -487... | 2 | 1 | 0 | [{"id": "G0", "claim": "The docs should say `rename_all_env` works exactly as `rename_all` instead of \"almost exactly\", since \"almost\" may make readers think there are subtle undocumented differences.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai... | null |
TeXitoi__structopt__312 | TeXitoi/structopt | 312 | defect | ac1dea3c1fa02eb4cfe26fb80ff5f1905e1c1cf7 | cd58031c46ce4c41f07320744c0be5925311421c | Default value | This is not meant to be released with the next patch, just some ongoing work.
Closes #123
Closes #142
Closes #150
TODO: docs, changelog | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0e8da55f..a4066553 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,7 @@
* You don't have to apply `#[no_version]` to every `enum` variant anymore.
Just annotate the `enum` and the setting will be propagated down
([#242](https://github.com/TeXitoi/structopt/i... | 8 | 5 | 3 | [{"id": "G0", "claim": "Use a lazy_static so the auto-default allocates only once per structure instead of leaking a new string on every call.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "default_value should also accept a global variable (an iden... | null |
TeXitoi__structopt__329 | TeXitoi/structopt | 329 | defect | d804cecd7d5a4a78038919580e71f2f3cde4230a | 7b1892865195f76d211922b357a1a54e28472252 | Flatten on enums | This is probably wrong but it works!
Fixes #327 | diff --git a/structopt-derive/src/attrs.rs b/structopt-derive/src/attrs.rs
index 411bb6a4..540792e0 100644
--- a/structopt-derive/src/attrs.rs
+++ b/structopt-derive/src/attrs.rs
@@ -401,9 +401,8 @@ impl Attrs {
}
match &*res.kind {
Kind::Subcommand(_) => abort!(res.kind.span(), "subcomma... | 6 | 6 | 3 | [{"id": "G0", "claim": "Rename `Kind::FlattenStruct` to `Kind::Flatten` since flatten is no longer struct-only.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The implementation must not rely on clap's `#[doc(hidden)]` fields or the `.subcommand... | null |
TeXitoi__structopt__48 | TeXitoi/structopt | 48 | defect | 00a1e13fea3fce60a7dcefefa779a037b4d6b6e3 | ec1bebd0248efe69b3d0cfe8cc077c9cd0f153f1 | Add 'parse(from_occurrences)' parser. Don't special case 'u64'. | Fixes #30. Can change to `from_occurrences` if you'd like. | diff --git a/examples/basic.rs b/examples/basic.rs
index 4197da52..84eec300 100644
--- a/examples/basic.rs
+++ b/examples/basic.rs
@@ -19,8 +19,8 @@ struct Opt {
#[structopt(short = "d", long = "debug")]
debug: bool,
- /// Verbose mode
- #[structopt(short = "v", long = "verbose")]
+ /// Verbose mod... | 3 | 3 | 1 | [{"id": "G0", "claim": "The parser should be named consistently as `from_occurrences` and should allow supplying a custom conversion function (e.g. to turn the occurrence count into an Enum).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Fix the misspel... | null |
TeXitoi__structopt__483 | TeXitoi/structopt | 483 | defect | d16cfd264d3173fe64a883dea67e9975dc7bbb2d | c1742943949f1730479bf0e69d0accbc1c6080b3 | add basic support for generic structs and enums | This PR provides (at least basic) support for generics when deriving `StructOpt` (issue #128). It's probably not the ideal final implementation, but from what I can see, it improves the situation and makes some use cases possible. | diff --git a/structopt-derive/src/lib.rs b/structopt-derive/src/lib.rs
index b818386..87f1fe5 100644
--- a/structopt-derive/src/lib.rs
+++ b/structopt-derive/src/lib.rs
@@ -559,10 +559,10 @@ fn gen_augment_clap_enum(
}
}
-fn gen_from_clap_enum(name: &Ident) -> TokenStream {
+fn gen_from_clap_enum() -> TokenStre... | 2 | 2 | 0 | [{"id": "G0", "claim": "The newly added helper functions are misspelled: `path_is_structop` should be `path_is_structopt` and `type_param_bounds_contains_structop` should be `type_param_bounds_contains_structopt`.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"... | null |
TeXitoi__structopt__92 | TeXitoi/structopt | 92 | defect | 5cb7888988a071fb925e9c841ef9101d8c660108 | c5d3613c6ae636f721bf942004de0e4facfe945a | Support flattening common options from a struct (#21) | Fix #21 | diff --git a/structopt-derive/src/attrs.rs b/structopt-derive/src/attrs.rs
index 39883faa..0e4d04d3 100644
--- a/structopt-derive/src/attrs.rs
+++ b/structopt-derive/src/attrs.rs
@@ -25,6 +25,7 @@ pub struct Attrs {
parser: (Parser, Tokens),
has_custom_parser: bool,
is_subcommand: bool,
+ should_flatt... | 4 | 4 | 1 | [{"id": "G0", "claim": "The generated flatten call `#ty ::augment_clap(#app_var)` errors out with a strange message when the flattened type is something like `Option<Foo>`, and the reviewer asks whether there is a good way to check for this; the suggested fix is to emit `<#ty>::augment_clap(#app_var)` and update the ot... | null |
TeXitoi__structopt__98 | TeXitoi/structopt | 98 | defect | be8543813e39b19f8342779a6b62d4d9f6f762bb | 918c870f5192b5910eaaf85505812cf277173578 | Add StructOpt::from_iter_safe method | I would like to be able to test argument parsing, which requires an error
value, not a `process::exit()`. | diff --git a/src/lib.rs b/src/lib.rs
index fbd2ee21..ef2f3de7 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -425,4 +425,18 @@ pub trait StructOpt {
{
Self::from_clap(&Self::clap().get_matches_from(iter))
}
+
+ /// Gets the struct from any iterator such as a `Vec` of your making.
+ ///
+ /// Re... | 2 | 2 | 0 | [{"id": "G0", "claim": "In tests/arguments.rs, the crate should be brought in as `use structopt::clap;` instead of a separate `extern crate clap;` declaration.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The changelog should be updated to doc... | null |
Team254__cheesy-arena__258 | Team254/cheesy-arena | 258 | defect | f96ae6307981f67f3aca1942e0facad217f3fac8 | 672321e187aa9d71e6c58e411f95088c138ff79c | Fix driver station TCP reads | TCP has no guarantees around packet boundaries. This means the existing code that just does single reads and assumes a single full packet for each read is incorrect.
Solve this by exactly reading the tag length, then exactly reading that many bytes. That means each read is now exactly the correct buffer.
Closes #... | diff --git a/field/driver_station_connection.go b/field/driver_station_connection.go
index 81b2756a1..f651b3f7e 100644
--- a/field/driver_station_connection.go
+++ b/field/driver_station_connection.go
@@ -7,6 +7,7 @@ package field
import (
"fmt"
+ "io"
"log"
"net"
"regexp"
@@ -27,7 +28,7 @@ const (
driverS... | 2 | 2 | 2 | [{"id": "G0", "claim": "Guard readTaggedTcpPacket against oversized or zero packet lengths, because packetLength comes off the wire untrusted and slicing buffer[2:2+packetLength] can panic or allow a denial of service; validate the length and the buffer capacity before slicing or reading.", "category": "security", "ver... | null |
Team254__cheesy-arena__259 | Team254/cheesy-arena | 259 | defect | f96ae6307981f67f3aca1942e0facad217f3fac8 | 4a668af5836786da0782a78905f63914653e2d55 | Use correct data from DS for ping and lost packets status |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **Improvements**
* Improved UDP handling with a larger read buffer, read-count validation, and clearer logging.
* Enhanced parsing of driver station packets to track missed-packet counts and robot trip timing.
... | diff --git a/field/driver_station_connection.go b/field/driver_station_connection.go
index 81b2756a1..5dff00961 100644
--- a/field/driver_station_connection.go
+++ b/field/driver_station_connection.go
@@ -48,7 +48,6 @@ type DriverStationConnection struct {
lastPacketTime time.Time
lastRobotLinkedTime ... | 3 | 3 | 3 | [{"id": "G0", "claim": "The tag-parsing loop has no bounds check after reading the length byte, so a truncated or malformed UDP packet can read stale bytes from the reused 1500-byte buffer or panic once count approaches the buffer length; validate that index+length <= count before accessing tag/payload bytes.", "catego... | null |
Team254__cheesy-arena__262 | Team254/cheesy-arena | 262 | defect | bc660ae9e9678040a631333e3b310d0d5ac91980 | 7edb24b783b2c431052a85cf896985690866da7c | Improve game data handling | The existing game data method had a few flaws. It would only send to DS's that were connected when the send was triggered. This means that if a DS was disconnected when triggered, or if a DS disconnected after triggering, a DS might not get game data updates.
Solve this by checking if there is new game data to send ... | diff --git a/field/arena.go b/field/arena.go
index bc9305393..675f0ace5 100644
--- a/field/arena.go
+++ b/field/arena.go
@@ -109,6 +109,7 @@ type AllianceStation struct {
Team *model.Team
WifiStatus network.TeamWifiStatus
aStopReset bool
+ GameData string
}
// Creates the arena and sets it to its init... | 4 | 2 | 2 | [{"id": "G0", "claim": "The test sends a driver station connection packet, sleeps only 10ms and then asserts DsConn is non-nil, but the connection setup runs asynchronously in a separate goroutine and is not guaranteed to complete within 10ms; the test should wait until the connection is established.", "category": "tes... | null |
Team254__cheesy-arena__263 | Team254/cheesy-arena | 263 | defect | bc660ae9e9678040a631333e3b310d0d5ac91980 | 318e317bff5b17fd2800c42d201441ec886d31ad | Send Waiting status to DS on invalid team | The DS keeps the connection alive for 2 seconds on error, and then restarts it. So we can keep the TCP connection alive too, and send the correct status in response to the team not being in the match yet.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **Refactor*... | diff --git a/field/driver_station_connection.go b/field/driver_station_connection.go
index 6dceb5001..bbecce425 100644
--- a/field/driver_station_connection.go
+++ b/field/driver_station_connection.go
@@ -333,11 +333,7 @@ func (arena *Arena) listenForDriverStations() {
assignedStation := arena.getAssignedAllianceSta... | 4 | 2 | 1 | [{"id": "G0", "claim": "The invalid-assignment packet's size prefix must be 3 instead of 4, since only three payload bytes (type, station, status) are serialized and the mismatch could make the DS block waiting for a byte that never arrives or treat the packet as malformed.", "category": "correctness", "verdict": "supp... | null |
TeamNewPipe__NewPipeExtractor__1022 | TeamNewPipe/NewPipeExtractor | 1,022 | defect | c589a2c1a28c59615a415f729451bc545fa2b06a | f571720f269c8d01e3455a165c7333adaebeac99 | [YouTube] Support live URLs | - [x] I carefully read the [contribution guidelines](https://github.com/TeamNewPipe/NewPipe/blob/HEAD/.github/CONTRIBUTING.md) and agree to them.
- [ ] I have tested the API against [NewPipe](https://github.com/TeamNewPipe/NewPipe). I didn't tested in the app but added tests in the extractor. As `LinkHandler` tests st... | diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/linkHandler/YoutubeStreamLinkHandlerFactory.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/linkHandler/YoutubeStreamLinkHandlerFactory.java
index 5713651e7e..87f66b56b9 100644
--- a/extractor/src/main/java/o... | 1 | 1 | 0 | [{"id": "G0", "claim": "The switch of SUBPATHS from List to Set lacks a reason since List.of already creates unmodifiable collections, so the reviewer asks for the reasoning and implies the field should stay a List.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
TeamNewPipe__NewPipeExtractor__1052 | TeamNewPipe/NewPipeExtractor | 1,052 | defect | 7dba6e38913b4784e689d8a824139aab486a4ca3 | 3780f05248572634ffc7d69fbf3ebfefc17c68b1 | [PeerTube] Fix multi level comment replies | - [x] I carefully read the [contribution guidelines](https://github.com/TeamNewPipe/NewPipe/blob/HEAD/.github/CONTRIBUTING.md) and agree to them.
- [x] I have tested the API against [NewPipe](https://github.com/TeamNewPipe/NewPipe).
- [x] ~~I agree to create a pull request for [NewPipe](https://github.com/TeamNewPipe... | diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/Page.java b/extractor/src/main/java/org/schabi/newpipe/extractor/Page.java
index e1b19e7fb9..50b6cdd6be 100644
--- a/extractor/src/main/java/org/schabi/newpipe/extractor/Page.java
+++ b/extractor/src/main/java/org/schabi/newpipe/extractor/Page.java
@@ -3... | 5 | 4 | 0 | [{"id": "G0", "claim": "The new Utils.isNullOrEmpty(Page) method duplicates the existing Page.isValid logic and should be removed in favour of Page.isValid.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The else statements added in PeertubeCommentsExtra... | null |
TeamNewPipe__NewPipeExtractor__1068 | TeamNewPipe/NewPipeExtractor | 1,068 | defect | 533121fb8175d8cefa5b135a5e0329d25a6c7480 | 019a6a99aa6877121f3f8ea000dd030e2e6748c2 | [YouTube] Fix parsing short relative date formats (English only) | - [X] I carefully read the [contribution guidelines](https://github.com/TeamNewPipe/NewPipe/blob/HEAD/.github/CONTRIBUTING.md) and agree to them.
- [X] no API changes
I added support for the new, short date format (e.g. 1wk ago).
Fixes #1067 | diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/localization/TimeAgoParser.java b/extractor/src/main/java/org/schabi/newpipe/extractor/localization/TimeAgoParser.java
index 7680bebd9f..fd7663135b 100644
--- a/extractor/src/main/java/org/schabi/newpipe/extractor/localization/TimeAgoParser.java
+++ b/ex... | 1 | 1 | 0 | [{"id": "G0", "claim": "Update the comment above the separator pattern to explain why `\\d` was added to the word separator.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
TeamNewPipe__NewPipeExtractor__1108 | TeamNewPipe/NewPipeExtractor | 1,108 | defect | 1f08d28ae5319c619370633f33bd98889cac2924 | 63aec71730eb87c2c17df9787d8d65466a4258f3 | [YouTube] Refactor JavaScript usage and fix extraction of obfuscated signature deobfuscation function | - [x] I carefully read the [contribution guidelines](https://github.com/TeamNewPipe/NewPipe/blob/HEAD/.github/CONTRIBUTING.md) and agree to them.
- [ ] I have tested the API against [NewPipe](https://github.com/TeamNewPipe/NewPipe).
- [ ] I agree to create a pull request for [NewPipe](https://github.com/TeamNewPipe/N... | diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeJavaScriptExtractor.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeJavaScriptExtractor.java
index 3f0192e9b9..5902a66df9 100644
--- a/extractor/src/main/java/org/schabi/newpipe/extractor/servic... | 6 | 5 | 2 | [{"id": "G0", "claim": "getSignatureTimestamp should handle the case where Integer.valueOf throws an unchecked NumberFormatException (what if it fails?).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Instead of catching only ParsingException, catch... | null |
TeamNewPipe__NewPipeExtractor__1142 | TeamNewPipe/NewPipeExtractor | 1,142 | defect | 038ebdedc4f99ff16c1d3ad961842c383b2db9e6 | 623912443e1df4b210f2be1434e81c09c66eca31 | [PeerTube] Add support for PeerTube v6 features | - [x] I carefully read the [contribution guidelines](https://github.com/TeamNewPipe/NewPipe/blob/HEAD/.github/CONTRIBUTING.md) and agree to them.
- [x] I have tested the API against [NewPipe](https://github.com/TeamNewPipe/NewPipe).
- [x] I agree to create a pull request for [NewPipe](https://github.com/TeamNewPipe/N... | diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/peertube/extractors/PeertubeStreamExtractor.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/peertube/extractors/PeertubeStreamExtractor.java
index 699083df75..8ca30ad5b9 100644
--- a/extractor/src/main/java/org/schabi/newpip... | 4 | 4 | 1 | [{"id": "G0", "claim": "Why is the chapters array parsed leniently with `segment instanceof JsonObject` checks instead of `segmentsArray.getObject(i)` — is that lenient parsing intentional?", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The change should... | null |
TeamNewPipe__NewPipeExtractor__1372 | TeamNewPipe/NewPipeExtractor | 1,372 | defect | 5b4feb96c439e113f40106d850f231bb69d0029e | 380c30334d266ecf63b8506b8d12a9602340e5ba | Refactor date parsing | - [x] I carefully read the [contribution guidelines](https://github.com/TeamNewPipe/NewPipe/blob/HEAD/.github/CONTRIBUTING.md) and agree to them.
- [x] I have tested the API against [NewPipe](https://github.com/TeamNewPipe/NewPipe).
- [x] I agree to create a pull request for [NewPipe](https://github.com/TeamNewPipe/N... | diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/localization/DateWrapper.java b/extractor/src/main/java/org/schabi/newpipe/extractor/localization/DateWrapper.java
index ffc29a61ce..b26c3b84fa 100644
--- a/extractor/src/main/java/org/schabi/newpipe/extractor/localization/DateWrapper.java
+++ b/extracto... | 9 | 7 | 2 | [{"id": "G0", "claim": "The nested getString-fallback refactoring of the upload-date extraction is harder to understand, so revert it to keep the code readable.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The 'Could not parse upload date' Par... | null |
TeamNewPipe__NewPipeExtractor__1403 | TeamNewPipe/NewPipeExtractor | 1,403 | defect | 59b620c9237b46f9604422e11ab0052614888523 | a730e969e0252bcad28dc888cb0ca18bc99a2877 | Add logging to extractor | Adds a logging API to the Extractor.
By default it logs nothing, and users of the extractor can use setLogger to define where logs are written.
Uses ConsoleLogger for all tests by default using [JUnit 5 extensions](https://www.baeldung.com/java-junit5-run-before-all-classes#2-registering-the-extension-suite-wide)
... | diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/Extractor.java b/extractor/src/main/java/org/schabi/newpipe/extractor/Extractor.java
index e973b44167..7d984e8338 100644
--- a/extractor/src/main/java/org/schabi/newpipe/extractor/Extractor.java
+++ b/extractor/src/main/java/org/schabi/newpipe/extractor/... | 4 | 4 | 1 | [{"id": "G0", "claim": "Add class-level documentation to the ExtractorLogger class, including its template syntax.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Document how to set the logger and how to disable the JUnit logger extension.", "cate... | null |
TeamNewPipe__NewPipeExtractor__589 | TeamNewPipe/NewPipeExtractor | 589 | defect | b4dee6d08f60738fd2a94f79b7672b8e5f5db94e | d663be5a786f1af1d6162f778fefe3103b1d753f | Load more featured pages and fix featured cover arts not loading | - [x] I carefully read the [contribution guidelines](https://github.com/TeamNewPipe/NewPipe/blob/HEAD/.github/CONTRIBUTING.md) and agree to them.
- [x] I have tested the API against [NewPipe](https://github.com/TeamNewPipe/NewPipe).
- [ ] I agree to create a pull request for [NewPipe](https://github.com/TeamNewPipe/N... | diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/bandcamp/extractors/BandcampFeaturedExtractor.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/bandcamp/extractors/BandcampFeaturedExtractor.java
index 93b1b0297a..019c5aba37 100644
--- a/extractor/src/main/java/org/schabi/ne... | 1 | 1 | 0 | [{"id": "G0", "claim": "Rename the private helper method `makeNextPage` to `getNextPageFrom(...)`, the name this project usually uses for such methods.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
TeamNewPipe__NewPipeExtractor__683 | TeamNewPipe/NewPipeExtractor | 683 | defect | c38a06e8dcd9c206a52b622704b138b78d633274 | a683c8d2784984f0d93f330a824046e1b9c8f081 | [YouTube] Fix buffering by decoding n parameter of stream urls | - [x] I carefully read the [contribution guidelines](https://github.com/TeamNewPipe/NewPipe/blob/HEAD/.github/CONTRIBUTING.md) and agree to them.
- [x] I have tested the API against [NewPipe](https://github.com/TeamNewPipe/NewPipe).
- [ ] ~~I agree to create a pull request for [NewPipe](https://github.com/TeamNewPipe... | diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeJavascriptExtractor.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeJavascriptExtractor.java
new file mode 100644
index 0000000000..06f2c44c20
--- /dev/null
+++ b/extractor/src/main/java/org/sch... | 9 | 7 | 2 | [{"id": "G0", "claim": "The new class Javadoc misspells \"YouTube\" as \"Youtube\" in the first line and should read \"YouTube restricts streaming their media in multiple ways by requiring clients to apply a cipher function\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced... | null |
TeamNewPipe__NewPipeExtractor__694 | TeamNewPipe/NewPipeExtractor | 694 | defect | 633582384395cf8d267e4df4db452fc0c18b8e63 | 42b728783475bf0c72e22b43db07d8dda55c8a5a | Faster iframe api based player extraction. | Uses the IFrame API to reduce the required download to less than 1/50 of the size.
- [x] I carefully read the [contribution guidelines](https://github.com/TeamNewPipe/NewPipe/blob/HEAD/.github/CONTRIBUTING.md) and agree to them.
- [ ] I have tested the API against [NewPipe](https://github.com/TeamNewPipe/NewPipe).
... | diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeJavaScriptExtractor.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeJavaScriptExtractor.java
index 7b8d83dd64..3bb92d217b 100644
--- a/extractor/src/main/java/org/schabi/newpipe/extractor/servic... | 3 | 3 | 1 | [{"id": "G0", "claim": "Remove the i.printStackTrace() debug statement in the catch block of extractJavaScriptUrl.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "There is no way to automatically test that the new iframe implementation is actuall... | null |
TeamNewPipe__NewPipeExtractor__696 | TeamNewPipe/NewPipeExtractor | 696 | defect | 633582384395cf8d267e4df4db452fc0c18b8e63 | 60794aea314a4db3c5a89d2d77e1c276f944f794 | Expand regex to match n param decrypt function | - [x] I carefully read the [contribution guidelines](https://github.com/TeamNewPipe/NewPipe/blob/HEAD/.github/CONTRIBUTING.md) and agree to them.
- [ ] I have tested the API against [NewPipe](https://github.com/TeamNewPipe/NewPipe).
- [ ] I agree to create a pull request for [NewPipe](https://github.com/TeamNewPipe/N... | diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeThrottlingDecrypter.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeThrottlingDecrypter.java
index 4f10e8c58f..8de3ac9834 100644
--- a/extractor/src/main/java/org/schabi/newpipe/extractor/servic... | 7 | 7 | 0 | [{"id": "G0", "claim": "Declare the Matcher local variable in Parser.isMatch(Pattern, String) as final.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rename the newly added StringUtil class to StringUtils to match the naming of the other utility classes.... | null |
TeamNewPipe__NewPipeExtractor__794 | TeamNewPipe/NewPipeExtractor | 794 | defect | 65129e65a81563c81cd8dbcb6c64e7570bd2910c | df708a728a037e1d58b2d64fd42b7ac9b0e7add9 | [YouTube] Add support to extract total comment count | - [x] I carefully read the [contribution guidelines](https://github.com/TeamNewPipe/NewPipe/blob/HEAD/.github/CONTRIBUTING.md) and agree to them.
- [ ] I have tested the API against [NewPipe](https://github.com/TeamNewPipe/NewPipe).
- [ ] I agree to create a pull request for [NewPipe](https://github.com/TeamNewPipe/N... | diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsExtractor.java b/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsExtractor.java
index ac4792fc07..5f34ffbfdc 100644
--- a/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsExtractor.java
+++ b/ex... | 8 | 8 | 2 | [{"id": "G0", "claim": "getCommentsCount() needlessly uses intermediate variables; the countText lookup should be chained and getTextFromObject called inline.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The count parsing in getCommentsCount()... | null |
TeamNewPipe__NewPipeExtractor__796 | TeamNewPipe/NewPipeExtractor | 796 | defect | 65129e65a81563c81cd8dbcb6c64e7570bd2910c | d2d5d7085d69a99fe3a48e43a6b8bccf251f3720 | Add support for extracting channel subscriber count in StreamInfo | - [x] I carefully read the [contribution guidelines](https://github.com/TeamNewPipe/NewPipe/blob/HEAD/.github/CONTRIBUTING.md) and agree to them.
- [ ] I have tested the API against [NewPipe](https://github.com/TeamNewPipe/NewPipe).
- [ ] I agree to create a pull request for [NewPipe](https://github.com/TeamNewPipe/N... | diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java
index 5a04a772b8..295cecd4df 100644
--- a/extractor/src/main/java/org/schabi/newpipe/ex... | 6 | 6 | 2 | [{"id": "G0", "claim": "The subscriber-count fallback should return -1 or its own dedicated constant instead of reusing ListExtractor.ITEM_COUNT_UNKNOWN (as done in #663), in YoutubeStreamExtractor and also in YoutubeChannelExtractor.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduce... | null |
TeamNewPipe__NewPipeExtractor__881 | TeamNewPipe/NewPipeExtractor | 881 | defect | 8c5f014a6fd674437de6f10e86d695153f5fb767 | a1342268c5109375082ffabe682b91e6c7b46d24 | Use String.join() and Collectors.joining(). | - [x] I carefully read the [contribution guidelines](https://github.com/TeamNewPipe/NewPipe/blob/HEAD/.github/CONTRIBUTING.md) and agree to them.
- [x] I have tested the API against [NewPipe](https://github.com/TeamNewPipe/NewPipe).
| diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/bandcamp/extractors/BandcampStreamExtractor.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/bandcamp/extractors/BandcampStreamExtractor.java
index 4b5d9d12a3..00adbd14c2 100644
--- a/extractor/src/main/java/org/schabi/newpip... | 1 | 1 | 1 | [{"id": "G0", "claim": "The second test in testJoin (the nonEmptyAndNullJoin assertion) should not be removed from UtilsTest.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
TeamNewPipe__NewPipeExtractor__990 | TeamNewPipe/NewPipeExtractor | 990 | defect | 40f1ec4a54a006b500fdd9c2f4b97149cff45acc | da1814ca2e8ff4afa240dea727280e8aede46e09 | [YouTube] Implement bold/italic/strike-through support | - [x] I carefully read the [contribution guidelines](https://github.com/TeamNewPipe/NewPipe/blob/HEAD/.github/CONTRIBUTING.md) and agree to them.
- [ ] I have tested the API against [NewPipe](https://github.com/TeamNewPipe/NewPipe).
- [ ] I agree to create a pull request for [NewPipe](https://github.com/TeamNewPipe/N... | diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeParsingHelper.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeParsingHelper.java
index b460448ddd..898828860a 100644
--- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/Y... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new formatting branch should use an `else` on the `if (html)` instead of ending with a `continue`.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Links generated for video descriptions come out HTML-escaped (`<a ...>`) i... | null |
TeamNewPipe__NewPipeExtractor__996 | TeamNewPipe/NewPipeExtractor | 996 | defect | 41c8dce452aad278420715c00810b1fed0109adf | f7cef7bbbdc483cf9e79f46766980ea9de839b85 | [PeerTube] Support searching for playlists and channels | - [x] I carefully read the [contribution guidelines](https://github.com/TeamNewPipe/NewPipe/blob/HEAD/.github/CONTRIBUTING.md) and agree to them.
- [x] I have tested the API against [NewPipe](https://github.com/TeamNewPipe/NewPipe).
- [x] I agree to create a pull request for [NewPipe](https://github.com/TeamNewPipe/N... | diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/peertube/PeertubeParsingHelper.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/peertube/PeertubeParsingHelper.java
index afe4918694..fb01f2d4a9 100644
--- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/peert... | 2 | 2 | 0 | [{"id": "G0", "claim": "In collectStreamsFrom, the newly added playlist/channel dispatch should be written as flat `else if` branches instead of nesting the new `if`s inside the existing `else` block.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"... | null |
TeamNewPipe__NewPipe__2742 | TeamNewPipe/NewPipe | 2,742 | defect | 4a76ba437610d112726cf72f59ec8f23261de6ad | 101f3be3de970668555741347037173128cdec7e | Fix tab handling and enable ignored tests again | Was testing some other PRs and noticed that the main fragment had some problems, the most important one being the way the view pager was being handled.
- Remove usage of hardcoded title for default kiosk.
- Some tests were simply ignored, this PR enables them again.
- Fix broken view pager tabs implementation
... | diff --git a/app/src/main/java/org/schabi/newpipe/BaseFragment.java b/app/src/main/java/org/schabi/newpipe/BaseFragment.java
index ccdb806ef3c..d4795cde272 100644
--- a/app/src/main/java/org/schabi/newpipe/BaseFragment.java
+++ b/app/src/main/java/org/schabi/newpipe/BaseFragment.java
@@ -107,6 +107,7 @@ public void set... | 3 | 2 | 0 | [{"id": "G0", "claim": "When the user changes the language in the app settings, the views do not reload because nothing checks whether it changed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The commented-out debug line '// getChildFragmentMana... | null |
TeamNewPipe__NewPipe__6319 | TeamNewPipe/NewPipe | 6,319 | defect | 2d4a3c2554d3b4109f22ee4896be7a6aa16e55c2 | 82f43ac6a64c1754e023aed6c5cd7a117f1a99dc | Save backup import/export location for future import/exports | <!-- Hey there. Thank you so much for improving NewPipe, and filling out the details. Having roughly the same layout helps everyone considerably :)-->
#### What is it?
- [ ] Bugfix (user facing)
- [x] Feature (user facing)
- [ ] Codebase improvement (dev facing)
- [ ] Meta improvement to the project (dev facing)... | diff --git a/app/src/main/java/org/schabi/newpipe/settings/ContentSettingsFragment.java b/app/src/main/java/org/schabi/newpipe/settings/ContentSettingsFragment.java
index 3fd44c4d521..e4850d7fa8e 100644
--- a/app/src/main/java/org/schabi/newpipe/settings/ContentSettingsFragment.java
+++ b/app/src/main/java/org/schabi/n... | 4 | 2 | 0 | [{"id": "G0", "claim": "The isValidPath check should be moved out of the fragment into a Helper class and unit tests should be added for it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The importExportDataPathKey member variable should be dro... | null |
TeamNewPipe__NewPipe__6345 | TeamNewPipe/NewPipe | 6,345 | defect | f0bb2e8687ffd9e255faf6f96aac28d9f1e0f695 | 89423a8eda3d9665e9cdf97ed4ccd8ff8b2124ad | Test and clean up PlayQueue | #### What is it?
- [ ] Bugfix (user facing)
- [ ] Feature (user facing)
- [x] Codebase improvement (dev facing)
- [ ] Meta improvement to the project (dev facing)
#### Description of the changes in your PR
- Unit test PlayQueue class
- Clean up and refactor class as necessary (no major changes)
- Fix ed... | diff --git a/app/src/main/java/org/schabi/newpipe/player/playqueue/PlayQueue.java b/app/src/main/java/org/schabi/newpipe/player/playqueue/PlayQueue.java
index 6131d8565458..014c13339014 100644
--- a/app/src/main/java/org/schabi/newpipe/player/playqueue/PlayQueue.java
+++ b/app/src/main/java/org/schabi/newpipe/player/pl... | 5 | 3 | 0 | [{"id": "G0", "claim": "The mockPlayQueue helper, and the helper below it, need not be package-private and can be made private.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The helper's name mockPlayQueue is unfortunate because it suggests a Moc... | null |
TeamNewPipe__NewPipe__6712 | TeamNewPipe/NewPipe | 6,712 | defect | ca282f2be8aa4fba41000d2e18444ec604adbe02 | 230651997472d740254891350540b1f2b15dd302 | Fix duplicate items in queue causing endless buffering | <!-- Hey there. Thank you so much for improving NewPipe, and filling out the details. Having roughly the same layout helps everyone considerably :)-->
#### What is it?
- [x] Bugfix (user facing)
- [ ] Feature (user facing)
- [ ] Codebase improvement (dev facing)
- [ ] Meta improvement to the project (dev facing)... | diff --git a/app/src/main/java/org/schabi/newpipe/player/playqueue/PlayQueueItem.java b/app/src/main/java/org/schabi/newpipe/player/playqueue/PlayQueueItem.java
index 1c38ebbcad8f..182a91e59397 100644
--- a/app/src/main/java/org/schabi/newpipe/player/playqueue/PlayQueueItem.java
+++ b/app/src/main/java/org/schabi/newpi... | 1 | 1 | 1 | [{"id": "G0", "claim": "Before removing PlayQueueItem.equals()/hashCode(), the author should check whether the URL-based comparison was implemented on purpose, since it exists to support stream preloading in VideoDetailFragment (PR #4562) and removing it could regress that behaviour.", "category": "correctness", "verdi... | null |
TeamNewPipe__NewPipe__6851 | TeamNewPipe/NewPipe | 6,851 | defect | 12e46e0a36cacb50451d0b70c3adaf3e117e30b8 | 51c60e5261434599fe72b406a81f3e6fe85bafc1 | Catch errors while processing timestamp-links | #### What is it?
- [x] Bugfix (user facing)
- [ ] Feature (user facing)
- [ ] Codebase improvement (dev facing)
- [ ] Meta improvement to the project (dev facing)
#### Description of the changes in your PR
Catches errors while processing timestamp-links.
#### Fixes the following issue(s)
- Fixes #6842
... | diff --git a/app/src/main/java/org/schabi/newpipe/info_list/holder/CommentsMiniInfoItemHolder.java b/app/src/main/java/org/schabi/newpipe/info_list/holder/CommentsMiniInfoItemHolder.java
index 629240dc6bf..0543829bc57 100644
--- a/app/src/main/java/org/schabi/newpipe/info_list/holder/CommentsMiniInfoItemHolder.java
+++... | 2 | 2 | 0 | [{"id": "G0", "claim": "The PATTERN regex `(\\d+:)?(\\d+)?:(\\d+)` accepts more than it should, and the suggested fix is to constrain it to something like `(\\d{1,2}:)?(\\d{1,2})?:(\\d{1,2})`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The cat... | null |
TeamNewPipe__NewPipe__7725 | TeamNewPipe/NewPipe | 7,725 | defect | 466db83375c5f33c686f2b02baa06e4331eefead | 0c16ea79b1391f8bf101ef8cd0d62229d99eff85 | Add long press action on hashtags and web links in descriptions | #### What is it?
- [x] Feature (user facing)
#### Description of the changes in your PR
This PR adds a long press action on web links and hashtags which copy them to clipboard.
To do so:
- Some changes in our `TextView` class have been required and metadata items are now using a `NewPipeTextView` instead of ... | diff --git a/app/src/main/java/org/schabi/newpipe/fragments/detail/DescriptionFragment.java b/app/src/main/java/org/schabi/newpipe/fragments/detail/DescriptionFragment.java
index 9b1bf121bcf5..11dbce378c8a 100644
--- a/app/src/main/java/org/schabi/newpipe/fragments/detail/DescriptionFragment.java
+++ b/app/src/main/jav... | 6 | 4 | 1 | [{"id": "G0", "claim": "The demonstration videos attached to the pull request are unplayable in Firefox and Chromium-based browsers.", "category": "media", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "There are Sonar (SonarCloud) warnings reported on the pull request's change."... | null |
TeamNewPipe__NewPipe__8631 | TeamNewPipe/NewPipe | 8,631 | defect | ae369ec9bad977f394220e596c36bba813eeb039 | a6cc13845a70dd80aaa31efa291078c3534cca48 | Use Java 9 collection factories. | <!-- Hey there. Thank you so much for improving NewPipe, and filling out the details. Having roughly the same layout helps everyone considerably :)-->
#### What is it?
- [ ] Bugfix (user facing)
- [ ] Feature (user facing)
- [x] Codebase improvement (dev facing)
- [ ] Meta improvement to the project (dev facing)... | diff --git a/app/src/main/java/com/google/android/material/appbar/FlingBehavior.java b/app/src/main/java/com/google/android/material/appbar/FlingBehavior.java
index 47c8deb837b..52754e8fa9f 100644
--- a/app/src/main/java/com/google/android/material/appbar/FlingBehavior.java
+++ b/app/src/main/java/com/google/android/ma... | 2 | 2 | 0 | [{"id": "G0", "claim": "Reformat the parserIgnoreElements initializer so the List.of( opening parenthesis ends the first line and PreferenceCategory.class.getSimpleName() sits on the next line.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Refo... | null |
TeamNewPipe__NewPipe__9706 | TeamNewPipe/NewPipe | 9,706 | defect | 1bb166a9e847a58af8ea2aba0121a12a3a01b53d | 52e39c340238f47d0a11da39a6975892b1a20564 | Fixed a bug that caused the background player to stop working | <!-- Hey there. Thank you so much for improving NewPipe, and filling out the details. Having roughly the same layout helps everyone considerably :)-->
#### What is it?
- [X] Bugfix (user facing)
- [ ] Feature (user facing)
- [ ] Codebase improvement (dev facing)
- [ ] Meta improvement to the project (dev facing)... | diff --git a/app/src/main/java/org/schabi/newpipe/player/playqueue/PlayQueue.java b/app/src/main/java/org/schabi/newpipe/player/playqueue/PlayQueue.java
index edf5a771c02..f809e0db9a3 100644
--- a/app/src/main/java/org/schabi/newpipe/player/playqueue/PlayQueue.java
+++ b/app/src/main/java/org/schabi/newpipe/player/play... | 1 | 1 | 1 | [{"id": "G0", "claim": "The index check inside equals() breaks callers such as VideoDetailFragment that must compare queues ignoring the index; remove the equals() and hashCode() overrides and add two dedicated methods, equalStreams(PlayQueue) and equalStreamsAndIndex(PlayQueue), called where each behaviour is needed."... | null |
Teamwork__kommentaar__108 | Teamwork/kommentaar | 108 | defect | f4db6e345b78ee9559b00b39d1e0ddea23a8ddee | 3aca55681db16f218b7f8d7c6e8759efa122dbb1 | Describe map-of-slice values via additionalProperties | ## What this does
Fixes a gap in `*ast.MapType` handling. Fields typed as `map[K][]T` previously dropped the element type — they rendered as `type: object` with no `additionalProperties`, which downstream tools (openapi-typescript, etc.) flatten to `Record<string, never>`.
The value-type resolver (`findTypeIdent`) on... | diff --git a/docparse/jsonschema.go b/docparse/jsonschema.go
index bfc76eb..912c43c 100644
--- a/docparse/jsonschema.go
+++ b/docparse/jsonschema.go
@@ -428,38 +428,8 @@ start:
// Maps
case *ast.MapType:
- // As far as I can find there is no obvious/elegant way to represent
- // this in JSON schema, so it's jus... | 1 | 1 | 1 | [{"id": "G0", "claim": "Map values that are themselves maps lose their element type the same way slices did before the fix, and the reviewer suggests covering that case too (suggesting a `map[string]map[string]otherpkg.OtherStruct` test field) while noting he is unsure whether it should be addressed.", "category": "cor... | null |
Teamwork__kommentaar__14 | Teamwork/kommentaar | 14 | defect | a5647a0a00eab76a741acfa7733cbbae2b711b9f | e48b8c0511fa0be702b88d0e5c4f5f20a15ce436 | WIP: Version 2.0 support | Swagger/OpenAPI 2.0 support
Modified version of the openapi3 package to support version 2.0.
- Added schema ref prefix to config to handle different paths between 2 and 3
- Update main to be able to run openapi2
- Added another example to test more cases
Output tested against https://editor.swagger.io/... | diff --git a/docparse/docparse.go b/docparse/docparse.go
index 4eea065..fe0bae1 100644
--- a/docparse/docparse.go
+++ b/docparse/docparse.go
@@ -38,6 +38,9 @@ type Config struct {
ContactEmail string
ContactSite string
+ // JSON reference prefix for schemas, e.g #/components/schemas
+ SchemaRefPrefix string
+
... | 5 | 1 | 1 | [{"id": "G0", "claim": "Looping over the map to emit path/query/form parameters makes the order undefined, which makes the OpenAPI2 tests fail nondeterministically and changes the output needlessly; the order should be made deterministic for now by sorting (by type then name, i.e. name, with a TODO), ideally preserving... | null |
Teamwork__kommentaar__24 | Teamwork/kommentaar | 24 | defect | 4b68914a78afb460be0443121c7e64471ac3cb1b | 34508ee8f7b1d4ea81ce3bfec7e75b7eeadba9d4 | Inline struct support | Fixes: https://github.com/Teamwork/kommentaar/issues/10 | diff --git a/docparse/jsonschema.go b/docparse/jsonschema.go
index b9607bf..2002668 100644
--- a/docparse/jsonschema.go
+++ b/docparse/jsonschema.go
@@ -5,6 +5,7 @@ import (
"fmt"
"go/ast"
"path"
+ "reflect"
"strconv"
"strings"
@@ -240,6 +241,26 @@ start:
p.Type = ""
name = typ
+ // Anonymous struct... | 1 | 1 | 0 | [{"id": "G0", "claim": "Use the existing goutil.TagName helper for the json tag instead of the hand-rolled parseRawTag code this PR adds.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Teamwork__kommentaar__26 | Teamwork/kommentaar | 26 | defect | 1082028cdf90c179864fc8f6a0bfc0d99d0e6d61 | 48a14b6be61d1bf8fcfaab4ed6580c9470e42e0f | Add support for interfaces | I have a response that has a slice of interfaces, this endpoint returns a mixed types for a search endpoint. | diff --git a/docparse/find.go b/docparse/find.go
index 0a593c8..6e19275 100644
--- a/docparse/find.go
+++ b/docparse/find.go
@@ -272,11 +272,16 @@ func GetReference(prog *Program, context, lookup, filePath string) (*Reference,
return nil, err
}
- // Make sure it's a struct.
- st, ok := ts.Type.(*ast.StructType)
... | 2 | 2 | 2 | [{"id": "G0", "claim": "The new `len(f.Names) == 0` error condition is wrong: an empty Names list does not mean the type is `interface{}`, so the guard returns \"interface{} is not supported\" in the wrong case.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", ... | null |
Teamwork__kommentaar__55 | Teamwork/kommentaar | 55 | defect | 0cb63cb1dc8b13843c1f2df737649bec34b06e47 | af0f12c76be8dedd496574a7083657482bded9b5 | Adding support for empty lines in description | See the documentation update, that explains everything. | diff --git a/doc/syntax.markdown b/doc/syntax.markdown
index ea30591..dc7a463 100644
--- a/doc/syntax.markdown
+++ b/doc/syntax.markdown
@@ -88,7 +88,7 @@ tagline can be of any length, but it is highly recommended that it is kept short
and concise.
After a single blank line any further text will be treated as the e... | 4 | 3 | 1 | [{"id": "G0", "claim": "The new multi-desc-with-empty-lines test expects an Info string without the blank-line separators, so the test is broken and fails on CI; it should use \\n\\n in the expected description.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "cla... | null |
Teamwork__kommentaar__70 | Teamwork/kommentaar | 70 | defect | 3304cdcfe062acabd04b67a141f8ab86a4fbe739 | 27a0abb423c859b14fd1b64d5c6a0edc6837a5e0 | Add Extend paramter | The `Extend` parameter is optional and allows you to extend the generated
endpoint with extra data. For example using Stoplight.io you can specify an
endpoint as private with a non-standard key in the schema. For example:
Extend: private.yaml
Where `private.yaml` contains the extra key/values for the schema... | diff --git a/Gopkg.lock b/Gopkg.lock
index 27d21d7..3e9691b 100644
--- a/Gopkg.lock
+++ b/Gopkg.lock
@@ -20,6 +20,14 @@
revision = "8991bc29aa16c548c550c7ff78260e27b9ab7c73"
version = "v1.1.1"
+[[projects]]
+ digest = "1:aaa38889f11896ee3644d77e17dc7764cc47f5f3d3b488268df2af2b52541c5f"
+ name = "github.com/im... | 4 | 3 | 1 | [{"id": "G0", "claim": "Also accept the `.yml` file extension when reading custom schema files in readAndUnmarshalSchemaFile.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Double-check MarshalYAML: with this return type it does not seem to be prope... | null |
Teamwork__kommentaar__78 | Teamwork/kommentaar | 78 | defect | fb69d9b438828c1fc5b7f1588340f69ca6af630d | 01ac44128f95a9ee68bde4ebde50ed1ae150fd66 | Added the `includable` tag allowing the changing of a struct's fields | The `includable` tag allows you to specify which fields are to be included in the struct's generated documentation.
Example:
```
type Fruit struct {
Apple bool `json:"apple"`
Pear bool `json:"pear"`
}
type MyFruit struct {
Fruit Fruit `json:"fruit" includable:"apple"`
}
```
In t... | diff --git a/docparse/find.go b/docparse/find.go
index 3ba6018..73bf3fc 100644
--- a/docparse/find.go
+++ b/docparse/find.go
@@ -14,6 +14,7 @@ import (
"strings"
"github.com/teamwork/utils/goutil"
+ "github.com/teamwork/utils/sliceutil"
)
// FindComments finds all comments in the given paths or packages.
@@ -... | 6 | 5 | 2 | [{"id": "G0", "claim": "Add a test case covering how the `includable` tag ends up in the generated doc.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Update the readme/syntax documentation with an example of the feature's usage.", "category": "document... | null |
TecharoHQ__anubis__1044 | TecharoHQ/anubis | 1,044 | defect | fb8ce508eebb3e652704ffdc22240cdcf9193975 | d06885d3d895be7d0a4210b5d4385984117abbfa | feat(localization): Add Ukrainian language translation | Checklist:
- [x] Added a description of the changes to the `[Unreleased]` section of docs/docs/CHANGELOG.md
- [x] Added test cases to [the relevant parts of the codebase](https://anubis.techaro.lol/docs/developer/code-quality)
- [ ] Ran integration tests `npm run test:integration` (unsupported on Windows, please u... | diff --git a/docs/docs/CHANGELOG.md b/docs/docs/CHANGELOG.md
index e6a659f96..0797230d6 100644
--- a/docs/docs/CHANGELOG.md
+++ b/docs/docs/CHANGELOG.md
@@ -41,6 +41,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add a default block rule for Huawei Cloud.
- Add a default block... | 1 | 1 | 0 | [{"id": "G0", "claim": "The Ukrainian translation of the \"algorithm\" label misspells the word — it reads \"Алгортим\" where it should read \"Алгоритм\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
TecharoHQ__anubis__1089 | TecharoHQ/anubis | 1,089 | defect | c43d7ca68686c02f4a1a2629c51a57e381b6427e | 438396f53236a9867be43ff46db953dee9998170 | feat(lib/store): add s3api storage backend | Adds an object storage backend for Anubis, enabling you to store Anubis data in bottomless cloud storage on the cheap.
Checklist:
- [x] Added a description of the changes to the `[Unreleased]` section of docs/docs/CHANGELOG.md
- [x] Added test cases to [the relevant parts of the codebase](https://anubis.techaro.... | diff --git a/docs/docs/CHANGELOG.md b/docs/docs/CHANGELOG.md
index b32a12e7d..86ab1955e 100644
--- a/docs/docs/CHANGELOG.md
+++ b/docs/docs/CHANGELOG.md
@@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
<!-- This changes the project to: -->
+- Add the [`s3api` stora... | 6 | 4 | 0 | [{"id": "G0", "claim": "The word \"Hetzner\" in the s3api docs is not a recognized spelling and should be added to the spelling allowlist/expectlist.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The docs sentence \"See [here](...)\" matches the ... | null |
TecharoHQ__anubis__120 | TecharoHQ/anubis | 120 | defect | 4155719422d416fb9af8cc6266697ebe16264538 | e8dc037281654a46a142d19e66504778e497d7f8 | lib/anubis: support setting extended cookie flags | Closes #73
<!-- delete me and describe your change here -->
Checklist:
- [x] Added a description of the changes to the `[Unreleased]` section of docs/docs/CHANGELOG.md
- [x] Tested this at least manually
- [x] Added a dedicated test case
| diff --git a/cmd/anubis/main.go b/cmd/anubis/main.go
index 551ed6120..024b97232 100644
--- a/cmd/anubis/main.go
+++ b/cmd/anubis/main.go
@@ -33,6 +33,9 @@ import (
var (
bind = flag.String("bind", ":8923", "network address to bind HTTP to")
bindNetwork = flag.String("bind-network", "tcp", ... | 3 | 1 | 1 | [{"id": "G0", "claim": "The cookie should be retrieved using s.opts.CookieName instead of the constant anubis.CookieName so custom cookie names are honoured when reading the challenge-pass cookie.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The c... | null |
TecharoHQ__anubis__1217 | TecharoHQ/anubis | 1,217 | defect | d7459de94127add672e790050b2ce8fe80a3f946 | b291170cb60e4af0aaab4bfbf67da5b2d4a3ea99 | fix!(policy/checker): make List and-like | This has the potential to break user configs.
Anubis lets you stack multiple checks at once with blocks like this:
```yaml
name: allow-prometheus
action: ALLOW
user_agent_regex: ^prometheus-probe$
remote_addresses:
- 192.168.2.0/24
```
Previously, this only returned ALLOW if _any one_ of the conditions... | diff --git a/docs/docs/CHANGELOG.md b/docs/docs/CHANGELOG.md
index f27852281..7092a8723 100644
--- a/docs/docs/CHANGELOG.md
+++ b/docs/docs/CHANGELOG.md
@@ -41,6 +41,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add option to set `targetSNI` to special keyword 'auto' to indic... | 1 | 1 | 0 | [{"id": "G0", "claim": "The List.Check short-circuit could be simplified by returning early instead of tracking a variable and returning at the bottom.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
TecharoHQ__anubis__1283 | TecharoHQ/anubis | 1,283 | defect | da1890380e8107618cafcb813db4717264318b2f | bba8b8001efb4e78a89f1e8f1dfea1a3266ee112 | fix(ogtags): respect target host/SNI/insecure flags in OG passthrough | plumb target-host, target-sni, and target-insecure-skip-verify into the OG tag cache so passthrough requests hit upstreams with the same host header/TLS expectations as the primary proxy
Closes #883
Checklist:
- [x] Added a description of the changes to the `[Unreleased]` section of docs/docs/CHANGELOG.md
... | diff --git a/cmd/anubis/main.go b/cmd/anubis/main.go
index 65241b958..6ad10274f 100644
--- a/cmd/anubis/main.go
+++ b/cmd/anubis/main.go
@@ -439,26 +439,29 @@ func main() {
}
s, err := libanubis.New(libanubis.Options{
- BasePrefix: *basePrefix,
- StripBasePrefix: *stripBasePrefix,
- Next: ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The targetSNIAuto logic in fetch.go creates a new transport and client on every request when SNI is \"auto\", preventing connection reuse and wasting allocations; consider refactoring to match the main proxy's approach (e.g. cloning the TLS config only when needed or pooling transports).", "cate... | null |
TecharoHQ__anubis__1294 | TecharoHQ/anubis | 1,294 | defect | 69e9023cbba29b0966a23584b8c98ed5e067dcfe | 34684bc74fd1381d6d136ad56e29f39df8f7056b | feat(store/valkey): Add Redis(R) Sentinel support | Closes #201
Ref TecharoHQ/botstopper#24
Checklist:
- [ ] Update docs for this PR
- [ ] Added a description of the changes to the `[Unreleased]` section of docs/docs/CHANGELOG.md
- [x] Added test cases to [the relevant parts of the codebase](https://anubis.techaro.lol/docs/developer/code-quality)
- [ ] Ran int... | diff --git a/internal/listor.go b/internal/listor.go
new file mode 100644
index 000000000..b6ba57fe6
--- /dev/null
+++ b/internal/listor.go
@@ -0,0 +1,39 @@
+package internal
+
+import (
+ "encoding/json"
+)
+
+// ListOr[T any] is a slice that can contain either a single T or multiple T values.
+// During JSON unmarsha... | 2 | 2 | 0 | [{"id": "G0", "claim": "The words listor, mymaster, mypass, myclient and myuser introduced by this pull request are not in the repository's spelling dictionary, so the spell check flags them.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G2", "claim": "The fi... | null |
TecharoHQ__anubis__1403 | TecharoHQ/anubis | 1,403 | defect | 3c76724aeb8c8a7c360edb8d9b1a71479e9a7d1a | eefe610ea1440fcbe35586d5f41c0630fa0fd9dc | fix(web): include base prefix in generated URLs | Forgot to add the base prefix to these URLs. Committed a fix for this and added a test to ensure this does not repeat. Oops!
Closes: #1402
<!--
delete me and describe your change here, give enough context for a maintainer to understand what and why
See https://anubis.techaro.lol/docs/developer/code-quality fo... | diff --git a/docs/docs/CHANGELOG.md b/docs/docs/CHANGELOG.md
index 2fba492a2..175e001ba 100644
--- a/docs/docs/CHANGELOG.md
+++ b/docs/docs/CHANGELOG.md
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add iplist2rule tool that lets admins turn an IP address blockl... | 2 | 1 | 0 | [{"id": "G0", "claim": "The spelling checker does not recognize the word \"rififi\" used in the new test names and strings in web/index_test.go.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The line adding anubis.BasePrefix before the fmt.Sprintf ... | null |
TecharoHQ__anubis__1576 | TecharoHQ/anubis | 1,576 | defect | f21706eb1284f70f76fa8182e8146355765375e1 | 56ec19d2da0fd1050d39df2a523e1671ea2b95c1 | feat(metrics): enable TLS/mTLS serving support | <!--
delete me and describe your change here, give enough context for a maintainer to understand what and why
See https://github.com/TecharoHQ/anubis/blob/main/CONTRIBUTING.md for more information
-->
Checklist:
- [x] Added a description of the changes to the `[Unreleased]` section of docs/docs/CHANGELOG.md
... | diff --git a/data/botPolicies.yaml b/data/botPolicies.yaml
index fdb8539b1..fd1d1a345 100644
--- a/data/botPolicies.yaml
+++ b/data/botPolicies.yaml
@@ -174,6 +174,20 @@ status_codes:
# metrics:
# bind: ":9090"
# network: "tcp"
+#
+# # To serve metrics over TLS, set the path to the right TLS certificate and key
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The check-spelling bot reports that words introduced by this pull request's new code and tests (selfsigned, minica, keypairreloader, kpr, CAs) are not recognized words and need to be handled, e.g. by adding them to the spelling allowlist.", "category": "maintainability", "verdict": "supported", ... | null |
TecharoHQ__anubis__1579 | TecharoHQ/anubis | 1,579 | defect | 8f8ae76d5697eabeb4fb90f819e716e54bc9480b | 6ecb909bfda4db4ddff23d17e4dc7e199700cd7d | feat(metrics): basic auth support | To continue the pattern of overengineering the metrics server: basic auth.
Checklist:
- [x] Added a description of the changes to the `[Unreleased]` section of docs/docs/CHANGELOG.md
- [x] Added test cases to [the relevant parts of the codebase](https://github.com/TecharoHQ/anubis/blob/main/CONTRIBUTING.md)
- [... | diff --git a/data/botPolicies.yaml b/data/botPolicies.yaml
index fd1d1a345..d6d3671ee 100644
--- a/data/botPolicies.yaml
+++ b/data/botPolicies.yaml
@@ -175,6 +175,13 @@ status_codes:
# bind: ":9090"
# network: "tcp"
#
+# # To protect your metrics server with basic auth, set credentials below:
+# #
+# # https://... | 2 | 2 | 0 | [{"id": "G0", "claim": "The spelling checker flags \"mba\", used throughout the new MetricsBasicAuth code in lib/config/metrics.go, as an unrecognized word.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The docs should suggest a concrete way to... | null |
TecharoHQ__anubis__368 | TecharoHQ/anubis | 368 | defect | 3b3080d497e1225d0f9e6b0d5f4269fd7d2e2473 | 5038050816817a8d601887ed36c838ab776ea474 | feat: support HTTP redirect for forward authentication middleware in Traefik | Adds support for HTTP redirect handling in Traefik's forward authentication middleware.
Close #92
Checklist:
- [x] Added a description of the changes to the `[Unreleased]` section of docs/docs/CHANGELOG.md
- [x] Added test cases to [the relevant parts of the codebase](https://anubis.techaro.lol/docs/developer... | diff --git a/.github/actions/spelling/expect.txt b/.github/actions/spelling/expect.txt
index 7d0e6eda0..1e7b7c21a 100644
--- a/.github/actions/spelling/expect.txt
+++ b/.github/actions/spelling/expect.txt
@@ -86,6 +86,7 @@ Firecrawl
flagenv
Fordola
forgejo
+forwardauth
fsys
fullchain
Galvus
diff --git a/cmd/anubi... | 7 | 5 | 3 | [{"id": "G0", "claim": "Add validation that the X-Forwarded-* headers are present before building the redirect URL, since missing or malformed headers could lead to undefined behaviour.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Setting TARGET= ... | null |
TecharoHQ__anubis__655 | TecharoHQ/anubis | 655 | defect | 14c80483a9b2e0f54d6298307b4e7beb65930461 | c4352c1f429b8d5849c468f2aeb1a1ed3197c1fe | feat: add a strip-base-prefix option | Anubis is at it's core a reverse proxy and this is a pretty common case. Feels justified so users don't have to add another routing layer.
Closes #638
Checklist:
- [x] Added a description of the changes to the `[Unreleased]` section of docs/docs/CHANGELOG.md
- [x] Added test cases to [the relevant parts of t... | diff --git a/.air.toml b/.air.toml
index 9fd7e9ac9..380900737 100644
--- a/.air.toml
+++ b/.air.toml
@@ -9,4 +9,4 @@ exclude_dir = ["var", "vendor", "docs", "node_modules"]
[logger]
time = true
-# to change flags at runtime, prepend with -- e.g. $ air -- --target http://localhost:3000 --difficulty 20 --use-remote-a... | 3 | 1 | 0 | [{"id": "G0", "claim": "The URL copy in stripBasePrefixFromRequest should be made with an explicit temporary variable (urlCopy := *r.URL; r.URL = &urlCopy) instead of the less readable r.URL = &(*r.URL), to improve readability of the cloning operation.", "category": "maintainability", "verdict": "supported", "priority"... | null |
TecharoHQ__anubis__881 | TecharoHQ/anubis | 881 | defect | 31184ccd5f03af620627c461c9301332d9a4d595 | 49b5d6e04c4afd3690647450d6e957811e4a55ef | fix(lib): fix challenge issuance logic | Fixes #869
v1.21.0 changed the core challenge flow to maintain information about challenges on the server side instead of only doing them via stateless idempotent generation functions and relying on details to not change. There was a subtle bug introduced in this change: if a client has an unknown challenge ID set i... | diff --git a/docs/docs/CHANGELOG.md b/docs/docs/CHANGELOG.md
index c4779e481..c6eb1b862 100644
--- a/docs/docs/CHANGELOG.md
+++ b/docs/docs/CHANGELOG.md
@@ -26,6 +26,12 @@ Anubis now supports the [`missingHeader`](./admin/configuration/expressions.mdx#
### Fixes
+#### Fix ["error: can't get challenge"](https://git... | 1 | 1 | 0 | [{"id": "G0", "claim": "The test cookie value \"foogoblin\" is not a recognized word and triggers the spell-checker's unrecognized-spelling alert.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
TecharoHQ__anubis__904 | TecharoHQ/anubis | 904 | defect | 21f570962c69af4ffd6625f0c7cc84c7d17fce85 | a0a6b3f1473c0ba9afcd4f33ab5cf084ff9278db | fix(lib): block XSS attacks via nonstandard URLs | This could allow an attacker to craft an Anubis pass-challenge URL that forces a redirect to nonstandard URLs, such as the `javascript:` scheme which executes arbitrary JavaScript code in a browser context when the user clicks the "Try again" button.
<!--
delete me and describe your change here, give enough context... | diff --git a/docs/docs/CHANGELOG.md b/docs/docs/CHANGELOG.md
index a0806e9d3..5ea384d77 100644
--- a/docs/docs/CHANGELOG.md
+++ b/docs/docs/CHANGELOG.md
@@ -13,6 +13,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
<!-- This changes the project to: -->
+### Fixes
+
+#### Fixes... | 2 | 2 | 0 | [{"id": "G0", "claim": "The word \"msgbox\" in the new test string is not recognized by the spelling checker and should be added to the spelling allowlist.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The data URL test string in lib/anubis_tes... | null |
TecharoHQ__anubis__913 | TecharoHQ/anubis | 913 | defect | 7d7028d25c8133435b269562bb00b878ec970435 | 1f1e9d75ea8b31705f8cca96e9951b846c5698a9 | Add swedish local | This pr adds Swedish localization.
Checklist:
- [x] Added a description of the changes to the `[Unreleased]` section of docs/docs/CHANGELOG.md
- [ ] Added test cases to [the relevant parts of the codebase](https://anubis.techaro.lol/docs/developer/code-quality)
- [ ] Ran integration tests `npm run test:integrat... | diff --git a/docs/docs/CHANGELOG.md b/docs/docs/CHANGELOG.md
index bea36f1e5..34a59cf1d 100644
--- a/docs/docs/CHANGELOG.md
+++ b/docs/docs/CHANGELOG.md
@@ -17,6 +17,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## v1.21.3: Minfilia Warde - Echo 3
+### Added
+
+#### New loc... | 9 | 6 | 2 | [{"id": "G0", "claim": "The \"sv\" entry in localization_test.go must match the loading value in sv.json (\"Laddar...\"), otherwise the test fails.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "\"invalid_invocation\" should read \"Ogiltigt anrop av... | null |
TecharoHQ__anubis__925 | TecharoHQ/anubis | 925 | defect | f0199d014f1af2f050e46cfb31975d73f55f4c0d | afb1e8b79a60885eee28f02ab4300936692457ec | fix(robots2policy): handle multiple user agents under one block | Closes #857
Checklist:
- [x] Added a description of the changes to the `[Unreleased]` section of docs/docs/CHANGELOG.md
- [x] Added test cases to [the relevant parts of the codebase](https://anubis.techaro.lol/docs/developer/code-quality)
- [ ] Ran integration tests `npm run test:integration` (unsupported on W... | diff --git a/cmd/robots2policy/main.go b/cmd/robots2policy/main.go
index eaa4d7fe9..a0224d43d 100644
--- a/cmd/robots2policy/main.go
+++ b/cmd/robots2policy/main.go
@@ -29,7 +29,7 @@ var (
)
type RobotsRule struct {
- UserAgent string
+ UserAgents []string
Disallows []string
Allows []string
CrawlDel... | 2 | 1 | 0 | [{"id": "G0", "claim": "The complex flush condition should be extracted into a helper function like hasAccumulatedDirectives() to improve readability and maintainability.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The rule creation logic dup... | null |
TecharoHQ__anubis__934 | TecharoHQ/anubis | 934 | defect | b81c577106be2c4c7dc91481bfb81eeffd9fe048 | f170479b0ba824ef7b2c7f8c471ce1c9ab486bb7 | fix: allow social preview images | Closes #933
Checklist:
- [x] Added a description of the changes to the `[Unreleased]` section of docs/docs/CHANGELOG.md
- [x] Added test cases to [the relevant parts of the codebase](https://anubis.techaro.lol/docs/developer/code-quality)
- [ ] Ran integration tests `npm run test:integration` (unsupported on Wi... | diff --git a/docs/docs/CHANGELOG.md b/docs/docs/CHANGELOG.md
index 0d1067bf5..dacc4eb12 100644
--- a/docs/docs/CHANGELOG.md
+++ b/docs/docs/CHANGELOG.md
@@ -17,6 +17,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [Custom-AsyncHttpClient](https://github.com/AsyncHttpClient/async... | 1 | 1 | 0 | [{"id": "G0", "claim": "The spelling checker flags \"ogtag\" on the PR-added debug-log line in internal/ogtags/cache.go as an unrecognized word, which should be resolved (e.g. by adding the word to the checker's expected list) so the alert goes away.", "category": "maintainability", "verdict": "supported", "priority": ... | null |
TecharoHQ__anubis__937 | TecharoHQ/anubis | 937 | defect | 8d08de6d9c677f808997c928a3e1aef5e82af99f | 0102c38d2daab9f7646d0c7b6c7ad49d8cc1d5a7 | Added Dutch translation | Added the Dutch language basically. If you have any questions, be sure to let me know.
Checklist:
- [x] Added a description of the changes to the `[Unreleased]` section of docs/docs/CHANGELOG.md
- [x] Added test cases to [the relevant parts of the codebase](https://anubis.techaro.lol/docs/developer/code-quality)... | diff --git a/lib/localization/locales/manifest.json b/lib/localization/locales/manifest.json
index 20cce8082..a476154e0 100644
--- a/lib/localization/locales/manifest.json
+++ b/lib/localization/locales/manifest.json
@@ -12,6 +12,7 @@
"it",
"ja",
"nb",
+ "nl",
"nn",
"pt-BR",
"ru",
@@ -1... | 1 | 1 | 1 | [{"id": "G0", "claim": "The Dutch locale's \"loading\" string should use three ASCII dots instead of the Unicode ellipsis character, matching what the localization test added by this pull request expects (\"Laden...\").", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
TecharoHQ__anubis__944 | TecharoHQ/anubis | 944 | defect | 790bcbe773ef5379999ac3e7edca1647c45ebac1 | 0af074c0bca3f37dc59ce106d9fcb3e2cc922b2e | fix(web): embed challenge ID in pass-challenge invocations | Closes #938
Closes #932
Closes #902
Closes #854
Closes #954
Rewrites the challenge flow to embed the challenge ID into the pass-challenge route, finally fixing that damn firefox for android bug.
Checklist:
- [x] Added a description of the changes to the `[Unreleased]` section of docs/docs/CHANGELOG.md
- [... | diff --git a/docs/docs/CHANGELOG.md b/docs/docs/CHANGELOG.md
index a684b5b9d..ae1f39c5d 100644
--- a/docs/docs/CHANGELOG.md
+++ b/docs/docs/CHANGELOG.md
@@ -27,6 +27,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Legacy JavaScript code has been eliminated.
- The contact email ... | 5 | 5 | 0 | [{"id": "G0", "claim": "The identifier TLog in the new TLogWriter test logging code in lib/anubis_test.go (line 26) is not a recognized word and should be addressed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The identifier TLog in the new TLo... | null |
Telcoin-Association__telcoin-network__479 | Telcoin-Association/telcoin-network | 479 | defect | c5bc12db4c674bd3321851514fb936b8ce476491 | ff799227668aadd066113a7de661824930704b48 | More stable restarts. | Result of focusing on occasional restart test failures.
- Added a new restart test to lag the restarted node- this exercises different paths that had bugs.
- Removed the DB (store) from Bullshark. Unrelated but it noted it was dead code so took out.
- Expanded on comments as reviewing code.
- Change the code on st... | diff --git a/bin/telcoin-network/tests/it/restarts.rs b/bin/telcoin-network/tests/it/restarts.rs
index 65cde41c1..68b20d9a0 100644
--- a/bin/telcoin-network/tests/it/restarts.rs
+++ b/bin/telcoin-network/tests/it/restarts.rs
@@ -15,6 +15,7 @@ use secp256k1::{Keypair, Secp256k1, SecretKey};
use serde_json::Value;
use ... | 6 | 6 | 0 | [{"id": "G0", "claim": "Typo in the behind_consensus doc comment: `enogh` should be spelled `enough`.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Typo in the epoch-boundary comment: `wure` should be spelled `sure`.", "category": "documentation"... | null |
Telcoin-Association__telcoin-network__487 | Telcoin-Association/telcoin-network | 487 | defect | fe957eea56da9076469e782e66b4a0864a283d2b | ed3060a98192fad29761df5a14f9e4d47e1835a6 | Initial open telemetry hook up. | To test this branch run jaeger in docker with: `docker run -d -p4317:4317 -p16686:16686 jaegertracing/all-in-one:latest`
and set the env var TN_TRACING_URL=http://localhost:4317 (supported via clap and on cli as well).
Also allows breaking restart test logs into there own files, see new doc comments on restart te... | diff --git a/Cargo.lock b/Cargo.lock
index dc6860f4e..ce631b848 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -6396,6 +6396,97 @@ version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e"
+[[package]]
+name = "opent... | 9 | 7 | 0 | [{"id": "G0", "claim": "Remove the leftover blank line added in bin/telcoin-network/Cargo.toml.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Consider adding parent_beacon_block_root to the engine-start log line so the executed consensus header... | null |
Telcoin-Association__telcoin-network__493 | Telcoin-Association/telcoin-network | 493 | defect | fe957eea56da9076469e782e66b4a0864a283d2b | ed0d6ad17eb7cac2ac6dba2d82e2ce1a2406184f | Task manager cert fetcher | - update parameters for parallel fetch requests (simplify testing)
- refactor certificate fetcher to use task spawner
- refactor heavily for readability, but logic is expected to be the same
- update certificate fetcher tests
- remove unnecessary `FetchCertificatesResponse`
- a few additional doc comments for ... | diff --git a/crates/config/src/node.rs b/crates/config/src/node.rs
index 73d0599fd..aa09ffebd 100644
--- a/crates/config/src/node.rs
+++ b/crates/config/src/node.rs
@@ -244,6 +244,10 @@ pub struct Parameters {
pub batch_vote_timeout: Duration,
/// If set the Address that will recieve basefees.
pub basefe... | 1 | 1 | 0 | [{"id": "G0", "claim": "The start_paused = true attribute on the new tests looks like leftover cruft that may interfere with sleeps since no tokio time advancement calls are visible, and asks for it to be removed if it serves no purpose.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "intro... | null |
Telcoin-Association__telcoin-network__498 | Telcoin-Association/telcoin-network | 498 | defect | cc71279834b0c27eb7588f432e68a7737a1a73c6 | 7fec539929459fc35b5238e68c0fa114ad8939ab | cantina-174: add quadratic scaling for gas limit penalty | - add quadratically scaling penalty for txs that don't use at least 10% of their gas limit
- economically discourage excessive gas limits which DOS batch space
- update tests and utils
closes #424 | diff --git a/Makefile b/Makefile
index 01365a770..47c193135 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-.PHONY: help attest udeps check test test-faucet fmt clippy docker-login docker-adiri docker-push docker-builder docker-builder-init up down validators pr init-submodules update-tn-contracts revert-submodul... | 2 | 1 | 0 | [{"id": "G0", "claim": "The doc comment for PRECISION says it is 10^18 while the actual value is 10^9, so the documentation should be corrected.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The unchecked `as u64` cast of the penalty could be rep... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.