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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
MichaelGrupp__evo__240 | MichaelGrupp/evo | 240 | defect | ee78adf3b43aa8383fa4411c4bd7dffa50f86460 | 46c01adfb1a60460cc91aa695bbc0d45b6dde5b4 | Handle alignment of "motionless" trajectories | Recently I encountered a case, where I had to evaluate absolute error between two trajectories, where one was depicting static motion (i.e. same pose (e.g. identity) for each timestamp). In this situation, **umeyama_alignment** call fails with division by 0 at https://github.com/MichaelGrupp/evo/blob/master/evo/core/ge... | diff --git a/evo/core/geometry.py b/evo/core/geometry.py
index 5a4cd668..545b8902 100644
--- a/evo/core/geometry.py
+++ b/evo/core/geometry.py
@@ -17,11 +17,14 @@
You should have received a copy of the GNU General Public License
along with evo. If not, see <http://www.gnu.org/licenses/>.
"""
+import logging
impo... | 2 | 2 | 1 | [{"id": "G0", "claim": "Handle degenerate \"motionless\" trajectories by adding a degenerate-covariance-rank check to umeyama_alignment that raises GeometryException (also when with_scale=False) instead of returning None and falling back to origin alignment in align_trajectory.", "category": "correctness", "verdict": "... | null |
MichalLytek__type-graphql__137 | MichalLytek/type-graphql | 137 | defect | 7c534eac95d24b53cd40929b1101e2a35b893e37 | e670473188a88d5aaedcd1feaae429dfd4b5b8c4 | subscribe to dynamic topics | Closes #136 | diff --git a/examples/simple-subscriptions/resolver.ts b/examples/simple-subscriptions/resolver.ts
index 3c14087b6..4b69fbed8 100644
--- a/examples/simple-subscriptions/resolver.ts
+++ b/examples/simple-subscriptions/resolver.ts
@@ -39,6 +39,16 @@ export class SampleResolver {
return publish({ id: ++this.autoIncre... | 13 | 13 | 1 | [{"id": "G0", "claim": "There is no need to introduce a new type (ResolverTopicData) that is equal to ResolverFilterData.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pubSubIterator callback should be typed as ResolverFn from graphql-subscriptions ... | null |
MichalLytek__type-graphql__1779 | MichalLytek/type-graphql | 1,779 | defect | 2bcc505fa1c382bc160d9008b1feda80c96a6844 | 82bc7833e6556cc576cd0e1466719a8ef5fee0cb | feat: Optimize metadata-storage build with HashMap caching for O(1) lookups | # Performance Optimization: Map-based Caches for Metadata Class Building
## Problem
Our schema generation process was becoming exponentially slower as our schema grew, taking over a minute to complete in some cases. With our large schema containing ClassMetadata arrays ranging from 3,000 to 15,000 objects, the repe... | diff --git a/src/metadata/metadata-storage.ts b/src/metadata/metadata-storage.ts
index 9083f7ec1..dffb0593f 100644
--- a/src/metadata/metadata-storage.ts
+++ b/src/metadata/metadata-storage.ts
@@ -46,28 +46,44 @@ export class MetadataStorage {
objectTypes: ObjectClassMetadata[] = [];
+ objectTypesCache = new Ma... | 2 | 1 | 1 | [{"id": "G0", "claim": "The metadata caches are keyed by a string built from the class (e.g. `${param.target}#${param.methodName}`) instead of by reference, so with two distinct classes that share a name and are exposed in two separate schemas the second class's metadata would be ignored; the reviewer asked for nested ... | null |
MichalLytek__type-graphql__1803 | MichalLytek/type-graphql | 1,803 | defect | c3b2ab6d6914ab6efe93f81abcdf78dc5dc3498e | c58c8174305941268e33b420747bd30a3f657790 | fix(schema): repair cache issues in building metadata storage | ## Changes
- Clear metadata storage cache before subsequent builds
- Cleanup schema generator after build
- Further optimize Map usage in schema generator
Fixes #1802 🔒
<!-- devin-review-badge-begin -->
---
<a href="https://app.devin.ai/review/michallytek/type-graphql/pull/1803" target="_blank">
<picture>... | diff --git a/src/metadata/metadata-storage.ts b/src/metadata/metadata-storage.ts
index 7544ef346..6549e7961 100644
--- a/src/metadata/metadata-storage.ts
+++ b/src/metadata/metadata-storage.ts
@@ -196,6 +196,8 @@ export class MetadataStorage {
}
initCache() {
+ this.clearMapCaches();
+
if (this.resolver... | 2 | 2 | 0 | [{"id": "G0", "claim": "The cleanup block that resets the type-info Maps after build omits `enumTypesInfoMap`, so enum type info is held between builds, causing a minor memory leak inconsistent with the block's stated purpose.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}... | null |
MichalLytek__type-graphql__203 | MichalLytek/type-graphql | 203 | defect | 7b68da320ddea1b7ab91f8e9db515d41c721292b | 911f35310ea82427b66294a858e37164a0705b8f | support defaultValue for input types | fix: https://github.com/19majkel94/type-graphql/issues/53
improved on: https://github.com/19majkel94/type-graphql/pull/141
I'm happy to iterate on this further if any changes are needed. | diff --git a/examples/simple-usage/recipe-resolver.ts b/examples/simple-usage/recipe-resolver.ts
index 7cad5d59e..b1c6b26bd 100644
--- a/examples/simple-usage/recipe-resolver.ts
+++ b/examples/simple-usage/recipe-resolver.ts
@@ -44,7 +44,7 @@ export class RecipeResolver implements ResolverInterface<Recipe> {
@FieldR... | 7 | 6 | 3 | [{"id": "G0", "claim": "The PR should also support default values detected by reflection - creating an instance of the class and checking the value of the properties - as described in the type-graphql#141 comment, instead of only the explicit decorator `defaultValue` option.", "category": "design", "verdict": "supporte... | null |
MichalLytek__type-graphql__211 | MichalLytek/type-graphql | 211 | defect | 7b68da320ddea1b7ab91f8e9db515d41c721292b | 4308dc629a5142c73e59c8359caae1ac62cc4b4b | Add more options for array with nullable element #119 | This is to add new options for `nullable` to resolve issue #119 | diff --git a/src/decorators/types.ts b/src/decorators/types.ts
index 0e5bb18d1..ca30fb482 100644
--- a/src/decorators/types.ts
+++ b/src/decorators/types.ts
@@ -20,8 +20,11 @@ export type SubscriptionTopicFunc = (
) => string | string[];
export interface DecoratorTypeOptions {
- nullable?: boolean;
+ nullable?: b... | 5 | 5 | 1 | [{"id": "G0", "claim": "Rename the new nullable list option values from the singular \"item\"/\"itemAndList\" to the plural \"items\"/\"itemsAndList\", which the maintainer thought fit better.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The body of wr... | null |
MichalLytek__type-graphql__328 | MichalLytek/type-graphql | 328 | defect | c68534d084c62892493c2e525d16ab27d1424e6a | 4ab953fac68a8e65b1993050107cb0ba854332e0 | Add `subscribe` option to `Subscription` decorator | As described in #327, this PR adds a `subscribe` option to the `Subscription` decorator. This option allows it to use custom subscription systems, e.g. the one Prisma is providing. | diff --git a/docs/subscriptions.md b/docs/subscriptions.md
index 739883125..5595d7e64 100644
--- a/docs/subscriptions.md
+++ b/docs/subscriptions.md
@@ -54,6 +54,30 @@ class SampleResolver {
}
```
+You can also provide a custom subscription logic, if you pass it to the `subscribe` option. The could become useful, i... | 1 | 1 | 1 | [{"id": "G0", "claim": "Writing `topics: \"\"` should not be required when using `subscribe`; SubscriptionOptions should be a union allowing only `subscribe` or `topics` and `filters`, not both.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
MichalLytek__type-graphql__393 | MichalLytek/type-graphql | 393 | defect | ae71d29d0fae01043a3228c645c772ccb7982f3f | d9346ac473d0d0386615bfe17f921db695243112 | feat(fields): add support for nested arrays | Allow generating nested lists of scalars and object types, such as `[[Int]]`, or `[[CustomObject]]` with mongo like syntax.
```typescript
@ObjectType()
class TestObject {
// Will become [[String!]!]!
@Field(type => [[String]])
NestedArrayField: string[][];
// Will become [[Strin... | diff --git a/docs/faq.md b/docs/faq.md
index 14759d717..bdc98fbfc 100644
--- a/docs/faq.md
+++ b/docs/faq.md
@@ -64,9 +64,9 @@ We should use the `[ItemType]` syntax any time the field type or the return type
Even though technically the array notation can be omitted (when the base type is not `Promise`) and only prov... | 2 | 2 | 1 | [{"id": "G0", "claim": "The pull request needs an entry in the changelog and an update in the docs about the nested-array syntax, plus removal of the wrong FAQ answer about it.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The added paragraph abo... | null |
MichalLytek__type-graphql__499 | MichalLytek/type-graphql | 499 | defect | 2ea56914630dd33fd10a13fa5ca2d1f9f85f1351 | 8e491727778859be7aac3ccbc0dc23933c1a0c34 | Fix duplicated entries for resolver classes that use inheritance | This is an attempt to at least partially solve what I believe is a memory leak issue regarding metadata-storage.
If you're using a workflow where you build the schema dynamically on every request the `queries` and `mutations` arrays that are properties of the global metadata storage instance quickly grow in size fo... | diff --git a/src/metadata/metadata-storage.ts b/src/metadata/metadata-storage.ts
index 74b3c2d0c..f38e16e94 100644
--- a/src/metadata/metadata-storage.ts
+++ b/src/metadata/metadata-storage.ts
@@ -263,13 +263,13 @@ export class MetadataStorage {
while (superResolver.prototype) {
const superResolverMetad... | 3 | 3 | 1 | [{"id": "G0", "claim": "mapSuperResolverHandlers/mapSuperFieldResolverHandlers should map the full array returning copies instead of mutating objects by reference, and the caller should assign the whole returned array rather than unshifting filtered entries.", "category": "design", "verdict": "supported", "priority": "... | null |
MichalLytek__type-graphql__626 | MichalLytek/type-graphql | 626 | defect | b8156008736658fab8086b70c2088e4b9ffba6ad | cf79b6cf79f21c6ac3585396a5cba4072b350a41 | fix(schema): Fix directives cannot be extends | For Example:
```typescript
@ObjectType({ isAbstract: true })
class INode {
@Field(() => ID)
id!: string
@Directive('@formatDate')
@Field(() => Timestamp)
createdAt: Date;
@Directive('@formatDate')
@Field(() => Timestamp)
updatedAt: Date;
}
// People class cannot ext... | diff --git a/src/schema/utils.ts b/src/schema/utils.ts
index cf64d7219..22c79e285 100644
--- a/src/schema/utils.ts
+++ b/src/schema/utils.ts
@@ -15,6 +15,7 @@ export function getFieldMetadataFromInputType(type: GraphQLInputObjectType) {
const superField = fieldInfo[fieldName];
fieldsMap[fieldName] = {
... | 2 | 2 | 1 | [{"id": "G0", "claim": "The pull request should also add a test case for the directive-inheritance issue it fixes.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should also fill the changelog.", "category": "documentation", "verdict": ... | null |
MidnightCommander__mc__4663 | MidnightCommander/mc | 4,663 | defect | 6849d39e6f0e960e855bd052e92416b069903222 | 00eb67a8e18c5712467decd654eeeb82ed3ba76d | Fix kitty keyboard protocol parsing of ctrl-o | The third commit wants to add more logic and a unit test related to decoding
terminal escape sequences and the kitty keyboard protocol. It's probably
not right to keep all of this in lib/util.c, so extract a new module.
I called it "terminal" as first approximation - the name could be workshopped,
especially sin... | diff --git a/configure.ac b/configure.ac
index f2a73d4360..0d5acd337a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -719,6 +719,7 @@ tests/lib/widget/Makefile
tests/src/Makefile
tests/src/filemanager/Makefile
tests/src/editor/Makefile
+tests/src/lib/Makefile
tests/src/editor/test-data.txt
tests/src/vfs/Makefile
... | 22 | 20 | 2 | [{"id": "G0", "claim": "The .gitignore entry for the new test binary belongs in tests/.gitignore rather than in a new tests/src/lib/.gitignore.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test's sources should be declared with the termina... | null |
MidnightCommander__mc__4755 | MidnightCommander/mc | 4,755 | defect | b783f6fec57dae9c22243015c347263596365c7e | 1fcf3b08b7e312d280c2e55be6c333ecbfea3c21 | Add escaping and ignore invalid entries in the filepos file | ## Proposed changes
I've extracted `file_history_parse_entry` as a `void` function, instead of a function returning a `file_history_data_t` to avoid duplicating a NULL pointer check in the caller. Sigh... Unit/regression test is attached.
Resolves: #4752
| diff --git a/src/file_history.c b/src/file_history.c
index 08da545319..bf84603f23 100644
--- a/src/file_history.c
+++ b/src/file_history.c
@@ -58,6 +58,21 @@ typedef struct file_history_data_t
/*** file scope functions ************************************************************************/
/* ----------------------... | 3 | 2 | 0 | [{"id": "G0", "claim": "Move the file_history_data_t *fhd declaration to the beginning of the block in file_history_parse_entry().", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add empty lines before and after the const size_t len declaration i... | null |
MidnightCommander__mc__4802 | MidnightCommander/mc | 4,802 | defect | fab4f6b7e0368951e1c42e80190b7df60dd385e0 | 1b3bb9b09ce0a31b0ebe1331f744b2b21cdefba1 | Ticket #4801: invalid utf-8 in prompt | ## Proposed changes
Don't assume that the prompt is valid UTF-8
* Resolves: #4801
## Checklist
👉 Our coding style can be found here: https://midnight-commander.org/coding-style/ 👈
- [x] I have referenced the issue(s) resolved by this PR (if any)
- [x] I have signed-off my contribution with `git commit... | diff --git a/lib/terminal.c b/lib/terminal.c
index a5956af1b6..cc127db49c 100644
--- a/lib/terminal.c
+++ b/lib/terminal.c
@@ -238,7 +238,8 @@ strip_ctrl_codes (char *s)
}
else
{
- const char *n = str_cget_next_char (r);
+ // FIXME Improve the handling of invalid UTF-8, ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new autotest does not cover combining ctrl codes with botched UTF-8, which seems like a relevant omission; the boundary conditions should be exercised for robustness.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test co... | null |
MidnightCommander__mc__4813 | MidnightCommander/mc | 4,813 | defect | 232d6c9db50d65e6aab23e47c8d728223828dc13 | 37844d69050cb3c5183c2931b0b2932b381c146e | Ticket #3158: fix ncurses double lines | ## Proposed changes
Refactor frame handling, fixing double lines in ncurses build, fixing the look in 8-bit locales.
To be thorougly tested with ncurses, slang, old ncurses, non-wide ncurses etc.; combined with utf-8, koi8-{r,u}, latin-x etc. locales; combined with various skins.
* Resolves: #3158
* Resolves:... | diff --git a/lib/mcconfig.h b/lib/mcconfig.h
index 3819adace5..e73f166c97 100644
--- a/lib/mcconfig.h
+++ b/lib/mcconfig.h
@@ -50,6 +50,8 @@ gchar **mc_config_get_keys (const mc_config_t *mc_config, const gchar *group, gs
gchar *mc_config_get_string (mc_config_t *mc_config, const gchar *group, const gchar *param,
... | 15 | 12 | 4 | [{"id": "G0", "claim": "The new mc_config_get_string_strict should return the default with g_strdup instead of plain strdup.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The g_free (ret) cleanup can be moved before the conv_res test so it is not c... | null |
MidnightCommander__mc__4887 | MidnightCommander/mc | 4,887 | defect | 8a98960ef399b37a04e6db0ff3f9d62b14c92ebd | b5eb41d35837c591ba3944b411b53fe2e7e7a800 | Ticket #4868: avoid nested gettext calls and fix untranslated strings | ## Proposed changes
Make widgets take already translated strings. This refactoring helps prevent some untranslated or double-translated strings.
* Resolves: #4868
* Resolves: #4869
## Checklist
👉 Our coding style can be found here: https://midnight-commander.org/coding-style/ 👈
- [x] I have referenced... | diff --git a/lib/global.c b/lib/global.c
index 3c7dc98094..2fef6a5a91 100644
--- a/lib/global.c
+++ b/lib/global.c
@@ -130,7 +130,7 @@ char *
mc_get_package_copyright (void)
{
const size_t last_year = 2025;
- return g_strdup_printf (N_ ("Copyright (C) 1996-%zu the Free Software Foundation"), last_year);
+ ... | 4 | 2 | 0 | [{"id": "G0", "claim": "In mc_search_types_list_get the loop variable should be declared in the for statement itself (for (size_t i = 0; ...)) instead of by a separate size_t i; declaration.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "After s... | null |
MidnightCommander__mc__4976 | MidnightCommander/mc | 4,976 | defect | c7479a4fc17edaa963d11c9af45e52e1eb406ba2 | a79a9de4920c62582eeaafbd461c760e08555142 | Ticket #4974: Skinnable hint bar, prompt and cmdline; plus other cleanups | ## Proposed changes
- Make the hint bar, shell prompt and command line skinnable
- Use buttonbar hotkey color for unused areas of buttonbar (if the winow is narrower than 70 columns), so that we don't have any non-skinnable characters
- Remove "base" color value
- Remove "[skin].terminal_default_color" key
- Int... | diff --git a/doc/man/mc.1.in b/doc/man/mc.1.in
index a5f5358f05..269cd0e424 100644
--- a/doc/man/mc.1.in
+++ b/doc/man/mc.1.in
@@ -3650,9 +3650,9 @@ is used for popup menu title.
The possible colors are: black, gray, red, brightred, green,
brightgreen, brown, yellow, blue, brightblue, magenta, brightmagenta,
cyan, b... | 3 | 2 | 1 | [{"id": "G0", "claim": "hintbar_colors and prompt_colors should be defined and declared in the file manager area (filemanager.[ch]) instead of the label widget, with their assignments moved there.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Labels in ... | null |
MidnightCommander__mc__4995 | MidnightCommander/mc | 4,995 | defect | 4204d4d9668b54a5ffcf22a83b8d6a4f5ee485bd | ac6cacb99dfb977210a46172e2b382df6724b12c | Ticket #4995: color handling refactoring | What would you guys think of a color handling refactoring along these lines?
The current code does the resolution from the _role_ (e.g. "dialog's title color") to the ncurses/slang color pair id as soon as possible.
A significant drawback of this design is that initializing some color constant (e.g. the ones used... | diff --git a/lib/filehighlight/get-color.c b/lib/filehighlight/get-color.c
index ea07be643e..21871bf363 100644
--- a/lib/filehighlight/get-color.c
+++ b/lib/filehighlight/get-color.c
@@ -293,14 +293,14 @@ mc_fhl_get_color (const mc_fhl_t *fhl, const file_entry_t *fe)
{
case MC_FLHGH_T_FTYPE:
... | 7 | 6 | 1 | [{"id": "G0", "claim": "The new helper mc_skin_one_color_init() should be made inline.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new tty_maybe_map_color() helper should be moved from lib/tty/tty-internal.c to color-internal.[ch].", "categor... | null |
MidnightCommander__mc__5054 | MidnightCommander/mc | 5,054 | defect | a37ae1c2b37816656312cf67b65faffbf0fbbfb7 | fc844808d44dbaeabef968d94156417288f5117e | Tickets #4872, #4873 and #4874: fix 'insert control code' function | The previous implementation used `ascii_alpha_to_cntrl()`, which assumed
alphabetic input and did not properly validate key codes returned by the
terminal libraries. The function has been renamed to `keycode_to_cntrl()`
and extended to correctly validate and convert key codes.
Changes:
- correctly handle `KEY_... | diff --git a/lib/util.c b/lib/util.c
index 4d68163313..5beab59a6c 100644
--- a/lib/util.c
+++ b/lib/util.c
@@ -51,6 +51,7 @@
#include "lib/vfs/vfs.h"
#include "lib/strutil.h"
#include "lib/util.h"
+#include "lib/tty/key.h" // KEY_M_CTRL
/*** global variables *******************************************************... | 14 | 14 | 5 | [{"id": "G0", "claim": "Since the pull request rewrites keycode_to_cntrl, it should add a test for that function.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add an empty line after the new 'int control_code;' variable declaration in input_callback."... | null |
MidnightCommander__mc__5083 | MidnightCommander/mc | 5,083 | defect | dc2dbc804e44e5bfd9643cb53dcd2bc5d57145f7 | e05e3115d15eec754459c153ad53e317006dd6e0 | Ticket #5082: add file cloning support for FreeBSD, Solaris and macOS | ## Proposed changes
Use [`copy_file_range(2)`](https://man.freebsd.org/cgi/man.cgi?copy_file_range) on FreeBSD for file cloning.
It should resolve #5082 and probably #4991. `copy_file_range(2)` also supports remote NFS operations, but it's out of scope for this change.
* Resolves: #5082
* Resolves: #4991
W... | diff --git a/configure.ac b/configure.ac
index 5bdc626a87..01d98c98c3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -386,6 +386,24 @@ linux*)
AC_CHECK_HEADERS([linux/fs.h])
esac
+dnl Check for copy_file_range(2) support (FreeBSD 13+)
+case $host_os in
+freebsd*)
+ AC_CHECK_FUNCS(copy_file_range)
+esac
+
+d... | 6 | 6 | 1 | [{"id": "G0", "claim": "Add automated tests so that CI verifies the cloning syscall (e.g. copy_file_range) is actually called with proper arguments, and that ENOTSUP is returned on platforms that do not support cloning.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G... | null |
MigoXLab__dingo__287 | MigoXLab/dingo | 287 | defect | 9904d8409f7b7782c4e3ecd24098ee4b1d2e28d6 | daa0dcee3b8fc0cda06b49611b2324d634f4be69 | feat: summary support multi-column | 格式如下:
```
{
"task_id": "318b3744-d997-11f0-b12c-12b8971a47a7",
"task_name": "rag_evaluation_with_metrics",
"input_path": "test/data/fiqa.jsonl",
"output_path": "outputs/20251215_171944_318b33ac",
"create_time": "20251215_171944",
"finish_time": "20251215_172131",
"score": 70.0,
... | diff --git a/dingo/exec/local.py b/dingo/exec/local.py
index dd1c0ce4..628b2732 100644
--- a/dingo/exec/local.py
+++ b/dingo/exec/local.py
@@ -116,9 +116,9 @@ def execute(self) -> SummaryModel:
# 遍历 List[EvalDetail],同时收集指标分数和标签
for eval_detail in eval_detail_list:
- ... | 5 | 4 | 1 | [{"id": "G0", "claim": "The nested `if` checks in `add_metric_score` can be simplified with `dict.setdefault()` to make the code more concise and idiomatic Python.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The manual mean and standard-devia... | null |
Migorithm__duva__211 | Migorithm/duva | 211 | defect | 47cc8ddc5d0612507dbe4a817a6384196a6846c2 | 58319c53ed519916573147acf76bc5e653e0f2d9 | feat: generate-replication-id | Summary:
- **Replid Generator**: A new generator for replication IDs has been added, allowing for the creation of unique identifiers for replication processes.
- **Saving Mechanism**: A mechanism for saving the generated replid along with its corresponding offset has been implemented, enhancing the tracking and manage... | diff --git a/Cargo.lock b/Cargo.lock
index 370f61b18..1be5eea38 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,6 +1,6 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
-version = 3
+version = 4
[[package]]
name = "addr2line"
@@ -50,6 +50,12 @@ version = "2.6.0"
source ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The nested if-let chain reading repl-id and repl-offset in set_replication_info_from should be rewritten as a tuple match or a single `if let (Some(repl_id), Some(offset))` over both metadata lookups.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced... | null |
Migorithm__duva__519 | Migorithm/duva | 519 | defect | c3d638b55c42666ca5cecea7a880f17dd9e46a3e | af47d14877139287beba5a2a0df1b3a6d02d02e6 | Implement APPEND command | # Explanation
Resolves #434.
This PR Implements APPEND command, it's test and cli completion / hinting. | diff --git a/duva-client/src/cli/editor/completion.rs b/duva-client/src/cli/editor/completion.rs
index 7487c688d..26e2631c4 100644
--- a/duva-client/src/cli/editor/completion.rs
+++ b/duva-client/src/cli/editor/completion.rs
@@ -11,6 +11,7 @@ use crate::editor::DuvaHinter;
pub(crate) static COMMANDS: &[&str] = &[
... | 3 | 3 | 3 | [{"id": "G0", "claim": "Because the team decided to move to post-logging validation (PR #522), this PR's delta-change handling requires rework.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Since pre-logging validation was lifted up, route_append's fetc... | null |
Migorithm__duva__78 | Migorithm/duva | 78 | defect | 0ba10ed894600d6d635e656457d89b52de10adcb | 4112bfb64bb746072dbaeacc8c1e848e47517995 | Refactor bytes encoder | - change default dir as `.`
- created integration test for save and read dump file
- created common methods to generate serialized strings
- use `encoding_string`
- minor changes | diff --git a/src/adapters/persistence/encoder/byte_encoder.rs b/src/adapters/persistence/encoder/byte_encoder.rs
index 589dedc26..fc60a6aa8 100644
--- a/src/adapters/persistence/encoder/byte_encoder.rs
+++ b/src/adapters/persistence/encoder/byte_encoder.rs
@@ -68,10 +68,10 @@ pub fn encode_checksum(checksum: &[u8]) -> ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The test should take control over where the dump file is found (Migorithm suggested changing integration_test_config's input parameters and adding a setter method on Config) instead of setting the global dbfilename environment variable, which affects other test suites.", "category": "testing", "... | null |
MikeLankamp__fpm__53 | MikeLankamp/fpm | 53 | defect | 19ad7a3336e2ec0d7faa9da5232398873b555cfb | 3af56b9473a1fb1daafcf888af8dfd412abdff0e | Bugfix/cosinus-overflow | Hello Mike
Currently I am working on the trigonometric functions (sin,cos,tan) of fpm.
I am creating an optimized version that has (for FractionBits ≥ 16) smaller deviation , with presumably the same performance.
I noticed that the cosine function uses an addition:
```cpp
return sin(fixed<B, I, F, R>::half_p... | diff --git a/include/fpm/math.hpp b/include/fpm/math.hpp
index ea05792..1b881d2 100644
--- a/include/fpm/math.hpp
+++ b/include/fpm/math.hpp
@@ -543,7 +543,12 @@ fixed<B, I, F, R> sin(fixed<B, I, F, R> x) noexcept
template <typename B, typename I, unsigned int F, bool R>
inline fixed<B, I, F, R> cos(fixed<B, I, F, R>... | 4 | 4 | 0 | [{"id": "G0", "claim": "Use a range-based for loop in the boundary-value test loops instead of an indexed loop, which would also remove the need for the custom `size` helper (same thing in both tests).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim... | null |
MikeMeliz__TorCrawl.py__38 | MikeMeliz/TorCrawl.py | 38 | defect | 6b2fde45e20d91681ef22a66b8a53cfbb479b1e8 | 6a3a99493e5dc102840cdc833832ed734bc91cac | Improve code's coverage | <!--- Provide a general summary of your changes in the Title above -->
## Description
Implement unit tests to start building a good habit of having coverage for feature additions.
## Motivation and Context
Coverage will make sure that any commit/PRs from now on will not break future versions, and ensure that fu... | diff --git a/modules/crawler.py b/modules/crawler.py
index 5291c40..25fe10f 100644
--- a/modules/crawler.py
+++ b/modules/crawler.py
@@ -170,7 +170,7 @@ def crawl(self):
continue
# For each <a href=""> tag.
- for link in soup.findAll('a'):
+ for link... | 2 | 2 | 2 | [{"id": "G0", "claim": "The test test_setup_proxy_connection_configures_socket patches modules.checker.socket with the real socket module, so the assignment socket.socket = socks.socksocket executed inside setup_proxy_connection permanently replaces the real socket module's socket attribute with a Mock that persists af... | null |
MikePopoloski__slang__1005 | MikePopoloski/slang | 1,005 | defect | e342f51565c8869b60847ee734b9808f027d286f | 9df0f5f4cc8b9e856aec41d0e604eb0416b373c3 | Fix netlist creation when code contains concurrent assertions | This is the beginning of a PR to fix #1002 .
It works for a simple testcase that fails otherwise, but I still see different failures (DirectedGraph issue, might be unrelated) when reading larger examples such as those provided in #1002, so I don't think it is ready yet, but it's a start and it can be reviewed.
| diff --git a/tools/netlist/include/NetlistVisitor.h b/tools/netlist/include/NetlistVisitor.h
index 82a13ea98..436b46e08 100644
--- a/tools/netlist/include/NetlistVisitor.h
+++ b/tools/netlist/include/NetlistVisitor.h
@@ -605,6 +605,14 @@ class NetlistVisitor : public ast::ASTVisitor<NetlistVisitor, true, false> {
... | 3 | 2 | 0 | [{"id": "G0", "claim": "Remove the extraneous commented-out line `// auto& body = symbol.getBody();` from the new guard code in NetlistVisitor.h.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new guard is incomplete: statements that are not... | null |
MikePopoloski__slang__1011 | MikePopoloski/slang | 1,011 | defect | e342f51565c8869b60847ee734b9808f027d286f | 9f66f2617fd76d427de730fc374dd064df24a39d | Added printing of source line info | I think that having source file/line info in the json outputs will be useful to the community as a whole. I'm submitting a pull request to contribute this change. | diff --git a/source/ast/ASTSerializer.cpp b/source/ast/ASTSerializer.cpp
index 7b89448a0..b378db655 100644
--- a/source/ast/ASTSerializer.cpp
+++ b/source/ast/ASTSerializer.cpp
@@ -10,7 +10,11 @@
#include "slang/ast/ASTVisitor.h"
#include "slang/ast/Compilation.h"
#include "slang/ast/EvalContext.h"
+#include "slang/... | 3 | 3 | 2 | [{"id": "G0", "claim": "The pull request cannot be landed until its failing tests are fixed.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The source line info output should be hidden behind a command line flag because it makes the already large JSON o... | null |
MikePopoloski__slang__1047 | MikePopoloski/slang | 1,047 | defect | 4221f2fa18e6e532bb38124c409c93703dff7999 | 1e5fa13663c1aa431c6d53fc34742e29f7f591f4 | [slang] Fix PLA task concatenation ascending order | Added support for elaborating correctness of examples like the one from LRM section 20.16:
```verilog
module async_array(a1,a2,a3,a4,a5,a6,a7,b1,b2,b3);
input a1, a2, a3, a4, a5, a6, a7 ;
output b1, b2, b3;
logic [1:7] mem[1:3]; // memory declaration for array personality
logic b1, b2, b3;
initial be... | diff --git a/include/slang/ast/ASTContext.h b/include/slang/ast/ASTContext.h
index b08ae227d..7666ce5dc 100644
--- a/include/slang/ast/ASTContext.h
+++ b/include/slang/ast/ASTContext.h
@@ -193,9 +193,13 @@ enum class SLANG_EXPORT ASTFlags : uint64_t {
DisallowUDNT = 1ull << 44,
/// AST binding is for a bind... | 2 | 2 | 1 | [{"id": "G0", "claim": "The fix is overly intrusive: avoid adding a specialized ASTFlag (EmitConcatAscOrder) just for this one case, and instead fix it in the PLATask handler itself by changing checkArguments to see that the argument is a concat expression and not issue the range error in that case.", "category": "desi... | null |
MikePopoloski__slang__1048 | MikePopoloski/slang | 1,048 | defect | 4221f2fa18e6e532bb38124c409c93703dff7999 | dfce622ddc51d3ac59157d1fb515e62e8554c4cc | [slang] Fix PATHPULSE limit values | In order to `SystemVerilog` LRM grammar it is legal to specialize only 1 value for both `PATHPULSE$` reject and error limits.
According to 30.7.1 section:
```
pulse_control_specparam ::=
PATHPULSE$ = ( reject_limit_value [ , error_limit_value ] )
| PATHPULSE$specify_input_terminal_descriptor$s... | diff --git a/scripts/diagnostics.txt b/scripts/diagnostics.txt
index 3870124d1..96ad900e3 100644
--- a/scripts/diagnostics.txt
+++ b/scripts/diagnostics.txt
@@ -262,7 +262,6 @@ error WrongSpecifyDelayCount "expected one, two, three, six, or twelve delay val
error IfNoneEdgeSensitive "ifnone specify path cannot be an e... | 1 | 1 | 1 | [{"id": "G0", "claim": "The parse tree must not duplicate the expression, so the code should leave expr2 null instead of assigning expr1 to it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
MikePopoloski__slang__1066 | MikePopoloski/slang | 1,066 | defect | 1b3255e68318a1a0ae6b9281c5c19f5e5b6cbc63 | fd72e5bf98578cda5e1b99904b208abf94a3dcc3 | Prevent superflous separators after node removal | Problem:
When you call `SyntaxRewriter::remove()` on node stored in SeparatedSyntaxList, node will disappear leaving superfluous separator resulting in syntax error.
This PR skips separators left by node removal. | diff --git a/source/syntax/SyntaxVisitor.cpp b/source/syntax/SyntaxVisitor.cpp
index d9597d3ab3..84b6470cd9 100644
--- a/source/syntax/SyntaxVisitor.cpp
+++ b/source/syntax/SyntaxVisitor.cpp
@@ -30,6 +30,7 @@ struct CloneVisitor {
constexpr bool IsList = std::is_same_v<T, SyntaxListBase>;
SmallVecto... | 1 | 1 | 0 | [{"id": "G0", "claim": "Drop the unneeded `#include <iostream>` added to tests/unittests/parsing/VisitorTests.cpp, since it is a heavy header that should not be included unless absolutely necessary.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
MikePopoloski__slang__1069 | MikePopoloski/slang | 1,069 | defect | d3982ef01611b94522fca93918ddce83ef104b20 | 7cda43b683e8c690a8d143ed5448b6c604b9c880 | Fix excessive memory usage caused by transforming tree multiple times | Problem: Transformed tree returned by SyntaxRewriter holds `shared_ptr` to original one, preventing it from being freed as long as its "child" is in scope. This becomes a problem when you transform tree iteratively a lot.
This PR:
- Fixes incomplete deep-clone routines of token related stuff.
- Replaces shallow c... | diff --git a/include/slang/parsing/Token.h b/include/slang/parsing/Token.h
index 395333f962..8c8031ef83 100644
--- a/include/slang/parsing/Token.h
+++ b/include/slang/parsing/Token.h
@@ -115,7 +115,7 @@ class SLANG_EXPORT Trivia {
/// skipped. Otherwise returns an empty span.
std::span<Token const> getSkipped... | 2 | 2 | 1 | [{"id": "G0", "claim": "The doc comment added on transform() tells users to pass false as @a shareLifetimes, but no such argument exists there since the setting was changed to the setHoldParentPtr member variable.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G... | null |
MikePopoloski__slang__1090 | MikePopoloski/slang | 1,090 | defect | 8174a942e7028a3d2d06c7f2e3dcf29b1708fb74 | bd00ca7fcc9cbd2d3f5fad291b45752a5d0c22ee | [slang] Add a check for local variables same as formal args declaration | Implement a check for restriction from LRM 16.10 section:
> When a local variable is a formal argument of a sequence declaration, it is illegal to declare the variable, as
> shown in the following example:
> ```verilog
> sequence sub_seq3(lv);
> int lv; // illegal because lv is a formal argument
> (a ##1 !a, lv... | diff --git a/scripts/diagnostics.txt b/scripts/diagnostics.txt
index 5433f4e43..eb11eda43 100644
--- a/scripts/diagnostics.txt
+++ b/scripts/diagnostics.txt
@@ -739,6 +739,7 @@ error VoidAssignment "expression of type 'void' cannot be used in assignments"
error VirtualIfaceDefparam "interface instance cannot be assign... | 3 | 3 | 1 | [{"id": "G0", "claim": "The new check should not be restricted to just sequences; the LRM 16.10 restriction also applies to properties.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The check can be placed in the createLocals() function, which alre... | null |
MikePopoloski__slang__1093 | MikePopoloski/slang | 1,093 | defect | 2fd768f3aa10d7051f4ca156c60e7d762cb59c34 | 06330c64dd841d61c6adab74fb7c4969bd88bbde | [slang] Fix deffered assertion function call check | There is an example from LRM which not marked as `illegal`:
```verilog
function int error_type (int opcode);
func_assert: assert (opcode < 64) else $display("Opcode error.");
if (opcode < 32)
return (0);
else
return (1);
endfunction
always_comb begin : b1
a1: assert #0 (my_... | diff --git a/include/slang/ast/ASTContext.h b/include/slang/ast/ASTContext.h
index b08ae227d..ba461c705 100644
--- a/include/slang/ast/ASTContext.h
+++ b/include/slang/ast/ASTContext.h
@@ -193,9 +193,12 @@ enum class SLANG_EXPORT ASTFlags : uint64_t {
DisallowUDNT = 1ull << 44,
/// AST binding is for a bind... | 1 | 1 | 0 | [{"id": "G0", "claim": "An ASTFlag is unnecessary for the inside-sequence check since checkAssertionCall is called directly; instead add another parameter to checkAssertionCall indicating whether the function return type should be checked.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "intr... | null |
MikePopoloski__slang__1094 | MikePopoloski/slang | 1,094 | defect | 2fd768f3aa10d7051f4ca156c60e7d762cb59c34 | e5ed154f9bbba469eda127af5f7f25ae3bc39a7f | [slang] Fix recursive property bug | An LRM example which fails on `slang`:
```verilog
property p3(p, bit b, abort);
(p and (1'b1 |=> p4(p, b, abort)));
endproperty
property p4(p, bit b, abort);
accept_on(b) reject_on(abort) p3(p, b, abort);
endproperty
````
It is legal because `p4` invoked as rhs of non-overlap implication. | diff --git a/source/ast/expressions/MiscExpressions.cpp b/source/ast/expressions/MiscExpressions.cpp
index 073c54b2f..7ae851007 100644
--- a/source/ast/expressions/MiscExpressions.cpp
+++ b/source/ast/expressions/MiscExpressions.cpp
@@ -986,6 +986,8 @@ Expression& AssertionInstanceExpression::fromLookup(const Symbol& s... | 1 | 1 | 1 | [{"id": "G0", "claim": "The flag should probably only be set if the parent context had the flag set, instead of being set unconditionally.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
MikePopoloski__slang__1097 | MikePopoloski/slang | 1,097 | defect | 2fd768f3aa10d7051f4ca156c60e7d762cb59c34 | 53a547e0bf635bbffe1483e8b15c42df45831cc9 | [slang] Fix UDP overlap bugs | That PR fixes some types of slang udp overlap analysis bugs.
Bad `n` and `p` edge analysis:
```verilog
// Slang does not error on it but there is overlap:
primitive d_edge_ff (q, clock, data);
output q; reg q;
input clock, data;
table
// clock data q q+
p ? : ? : 1 ;
(x1) ? : ? : 0; // ... | diff --git a/source/ast/symbols/MemberSymbols.cpp b/source/ast/symbols/MemberSymbols.cpp
index b9ab970f0..6427b5c46 100644
--- a/source/ast/symbols/MemberSymbols.cpp
+++ b/source/ast/symbols/MemberSymbols.cpp
@@ -9,6 +9,7 @@
#include "../FmtHelpers.h"
#include "fmt/core.h"
+#include <set>
#include "slang/ast/AST... | 2 | 2 | 0 | [{"id": "G0", "claim": "The added comment above case '6' says the implicit identifiers handle `0` or `x` for `p` and `r` matching cases, but it should refer to `n` instead of `r`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "BitTrie::insert shou... | null |
MikePopoloski__slang__1118 | MikePopoloski/slang | 1,118 | defect | d077ed831335f9c6f3020861eb68c18ab476a44e | 201b018cafe3a8f3993dc5186ca8ec9355e1a085 | Virtual Interface Bad Assignment Fix | This PR addresses Issue #1117
Fix bad assignment for virtual interface element select by reversing the order of the selectors so that we encounter element select syntax first followed by member selectors. We can remove the reverse on the nameParts as a result | diff --git a/source/ast/Lookup.cpp b/source/ast/Lookup.cpp
index 6827ea1b05..61b3cd740a 100644
--- a/source/ast/Lookup.cpp
+++ b/source/ast/Lookup.cpp
@@ -1340,7 +1340,7 @@ void Lookup::selectChild(const Type& virtualInterface, SourceRange range,
SmallVector<const ElementSelectSyntax*> elementSelects;
auto& c... | 2 | 2 | 1 | [{"id": "G0", "claim": "Remove the extra loop at Lookup.cpp:1361 since it is just making a copy of the nameParts array and there is no reason to have it anymore.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Expand the test to cover multi-dimen... | null |
MikePopoloski__slang__1128 | MikePopoloski/slang | 1,128 | defect | d077ed831335f9c6f3020861eb68c18ab476a44e | e5f02a2fb01b5455a28868fe156c92f30d709f62 | [slang][parser] Fix timeless constraint expression parsing | `slang` fails to parse such constraint block expression types:
```verilog
constraint A :: A { &&& }
//and
constraint A :: A { matches }
```
It tries endlessly to parse the expression and takes all RAM. This is because the expression may start with these tokens. - `TripleAnd` and `Match`.
There is an an... | diff --git a/source/parsing/Parser_members.cpp b/source/parsing/Parser_members.cpp
index 0bf3257d7..2866bc0d7 100644
--- a/source/parsing/Parser_members.cpp
+++ b/source/parsing/Parser_members.cpp
@@ -2152,23 +2152,32 @@ ConstraintItemSyntax* Parser::parseConstraintItem(bool allowBlock, bool isTopLev
case Toke... | 4 | 4 | 3 | [{"id": "G0", "claim": "The initial fix in parseConstraintItem() is not the right approach; instead, after parseSubExpression is called the code should check whether any tokens were consumed and return nullptr if none were, so inputs like 'constraint A :: A { soft *) 0 ; }' are handled by the existing nullptr path rath... | null |
MikePopoloski__slang__1157 | MikePopoloski/slang | 1,157 | defect | f31d20e5574773e9ebe46bba95efa395966ce5e9 | 8bc300b19b3234e960a658605682031547cdeee8 | Add lexer detection of translate_on/off pragmas | Follow-up to #1100 with a changed approach. The detection now happens in lexer, not preprocessor. Tests are missing. | diff --git a/include/slang/parsing/Lexer.h b/include/slang/parsing/Lexer.h
index 439946057..1429b59b1 100644
--- a/include/slang/parsing/Lexer.h
+++ b/include/slang/parsing/Lexer.h
@@ -35,6 +35,10 @@ struct SLANG_EXPORT LexerOptions {
/// If true, the preprocessor will support legacy protected envelope directives,... | 4 | 3 | 1 | [{"id": "G0", "claim": "The static offCandidates/onCandidates vectors inside detectTranslateOnOffPragma should be moved out of the function and marked const, because function-local statics force the compiler to emit thread-safe initialization code that is an unnecessary expense.", "category": "performance", "verdict": ... | null |
MikePopoloski__slang__1302 | MikePopoloski/slang | 1,302 | defect | eff44cca85fce53d854816a231fb68b4fad32afc | c6d836b354379b6061ed3251f1926a2a495f76ff | Add semantic analysis for `celldefine directive | Fixes #1295.
This is my first PR to slang, and I expect that I'll miss some of the finer points of the design. In particular I'm not sure if the transfer of the metadata from the AST to the compilation database is quite right. | diff --git a/bindings/python/SymbolBindings.cpp b/bindings/python/SymbolBindings.cpp
index 4bc368cc83..26a454ea3b 100644
--- a/bindings/python/SymbolBindings.cpp
+++ b/bindings/python/SymbolBindings.cpp
@@ -194,6 +194,7 @@ void registerSymbols(py::module_& m) {
.def_readonly("definitionKind", &DefinitionSymbol... | 6 | 6 | 3 | [{"id": "G0", "claim": "The lexCellDefine test helper's return type should be bool rather than TokenKind.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A CHECK_DIAGNOSTICS_EMPTY assertion is needed after each lexCellDefine call in the celldefine di... | null |
MikePopoloski__slang__1355 | MikePopoloski/slang | 1,355 | defect | d6e30ba8b37e4bff72ade383052eacae50026b44 | 55a866928905d09f4354ddc8f36975fc24b77ea0 | Add flags for depfile generation | This is analagous to [Verilator's flag](https://verilator.org/guide/latest/exe_verilator.html?highlight=mmd#cmdoption-MMD) and [clang's flag](https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-MMD) for getting the used include files.
We opted to make the naming more similar to [Icarus's flags... | diff --git a/include/slang/driver/Driver.h b/include/slang/driver/Driver.h
index d22b2b7608..5cc5521556 100644
--- a/include/slang/driver/Driver.h
+++ b/include/slang/driver/Driver.h
@@ -331,6 +331,10 @@ class SLANG_EXPORT Driver {
/// Prints all macros from all loaded buffers to stdout.
void reportMacros();
... | 9 | 9 | 3 | [{"id": "G2", "claim": "ParserMetadata.h and Preprocessor.h should not pull in the very heavy AllSyntax.h (nor the added Preprocessor.h include in ParserMetadata.h), and ParserMetadata.h should not have been changed at all.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"... | null |
MikePopoloski__slang__1371 | MikePopoloski/slang | 1,371 | defect | a41a088f4df2dd2168288fa2e364e75b31b911de | 5bc058f445d08f1066759b34494049d619d99d6d | Fix OnlyAssignedOnReset false positive with struct arrays and for loops | ## Issue
The `OnlyAssignedOnReset` lint check was incorrectly flagging struct array elements assigned within a for loop in the non-reset branch of an always_ff block. This resulted in false positives when struct arrays were properly assigned in both reset and non-reset conditions.
For example, given this code:
```ve... | diff --git a/tools/tidy/src/ASTHelperVisitors.cpp b/tools/tidy/src/ASTHelperVisitors.cpp
index 392b9c479..4aae131bc 100644
--- a/tools/tidy/src/ASTHelperVisitors.cpp
+++ b/tools/tidy/src/ASTHelperVisitors.cpp
@@ -9,8 +9,13 @@ std::optional<std::string_view> getIdentifier(const slang::ast::Expression& expr
const sl... | 2 | 2 | 0 | [{"id": "G0", "claim": "The 'Issue example from problem statement' test covers the same thing as the test above it, so it should be removed and only the earlier one kept.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The added ElementSelectExpression b... | null |
MikePopoloski__slang__1381 | MikePopoloski/slang | 1,381 | defect | 47516b578c21b88f271bb63d9b78da6ee0514ce0 | 93177c126e9cc166b5c61bcacec3c3820d823585 | Give type alias symbols a syntax | Looking up a type parameter results in a type alias symbol with no syntax, and there aren't other consistent means of getting that syntax from the symbol. | diff --git a/include/slang/ast/symbols/ParameterSymbols.h b/include/slang/ast/symbols/ParameterSymbols.h
index ad297d66bf..54dfe059bf 100644
--- a/include/slang/ast/symbols/ParameterSymbols.h
+++ b/include/slang/ast/symbols/ParameterSymbols.h
@@ -77,8 +77,9 @@ class SLANG_EXPORT TypeParameterSymbol : public Symbol, pub... | 4 | 4 | 4 | [{"id": "G0", "claim": "The type syntax should not be a TypeParameterSymbol constructor argument since it only applies to the type alias; instead expose a mutable reference to the type alias object and call setSyntax on that.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id... | null |
MikePopoloski__slang__1382 | MikePopoloski/slang | 1,382 | defect | 47516b578c21b88f271bb63d9b78da6ee0514ce0 | c3b115ec8038541205164f60f75aa6b6283eac0b | Change all.sv test methodology | Rather than counting syntaxes, change to count the unique nodes seen of each type. | diff --git a/tests/regression/all.sv b/tests/regression/all.sv
index a5153c7cde..59536c9f98 100644
--- a/tests/regression/all.sv
+++ b/tests/regression/all.sv
@@ -3,6 +3,8 @@ timeprecision 1ps;
(* foo = 1 *) package static p;
timeunit 1ns;
+ parameter int x = 1;
+ parameter type y = logic[x:0];
progr... | 1 | 1 | 1 | [{"id": "G0", "claim": "Keep at least one `makeVisitor` call in the tests, because that specific visitor helper has been broken in the past and the change removes its only use.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
MikePopoloski__slang__1445 | MikePopoloski/slang | 1,445 | defect | 269252d6b17513704f5ba53ab763c81ab8b4d8d7 | dc48af592e517256d4de6fb6165e22be7c819e37 | Enable lookupName() access to unnamed generate blocks | This demonstrates the inability to lookup unnamed generate blocks via `lookupName()`. It is true that the RTL itself cannot hierarchically refer to such a scope, but `27.6` outlines how external interfaces may refer to it. Assuming the slang API is an external interface, it would seem good to allow for access to thes... | diff --git a/include/slang/ast/Scope.h b/include/slang/ast/Scope.h
index b1ed8a84f1..a93df8bb2f 100644
--- a/include/slang/ast/Scope.h
+++ b/include/slang/ast/Scope.h
@@ -269,6 +269,8 @@ class SLANG_EXPORT Scope {
/// Add a preconstructed wildcard import to this scope.
void addWildcardImport(const WildcardImp... | 5 | 5 | 2 | [{"id": "G0", "claim": "Unnamed generate blocks should not be externally visible by default: looking them up by their external name should be gated behind an explicit lookup flag (AllowUnnamedGenerate), with a descriptive error otherwise.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "intro... | null |
MikePopoloski__slang__1448 | MikePopoloski/slang | 1,448 | defect | 269252d6b17513704f5ba53ab763c81ab8b4d8d7 | 5335a17ddf227f02f69409cce7916b0c6a5f6a7f | Implement --cst-json | Round trip verified with `build/bin/slang tests/regression/all.sv --cst-json all.json` then `python scripts/reconstruct_from_json.py all.json --compare tests/regression/all.sv`
- Addresses https://github.com/MikePopoloski/slang/issues/1321
- Added flags for different levels of verbosity with the cst output, default... | diff --git a/include/slang/text/Json.h b/include/slang/text/Json.h
index f2e5679969..f3002f13f3 100644
--- a/include/slang/text/Json.h
+++ b/include/slang/text/Json.h
@@ -74,6 +74,12 @@ class SLANG_EXPORT JsonWriter {
/// Writes an array or property boolean value ("true" or "false").
void writeValue(bool valu... | 3 | 3 | 3 | [{"id": "G0", "claim": "The generated converter class should be named CSTSerializer to match ASTSerializer, and it should not be generated at all: it can live in the library proper with only the CSTJsonVisitor generated into its own header.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "int... | null |
MikePopoloski__slang__1457 | MikePopoloski/slang | 1,457 | defect | 9b9a9448b5b2e07ccb4b3181ef0f4c1104a36f4c | 4f465a5b6d283e880643799f17ef64993e359398 | Fix compilation corrupting parent pointers for type params passed to insts | The compilation flow sometimes makes new syntax nodes; if any children are also syntax nodes, this repoints the parent pointers at the compilation alloced one, which is bad. This is fixed for this one case by deep cloning the child, but there may be more cases.
- Adds visitor test for all.sv to validate those parent... | diff --git a/include/slang/syntax/SyntaxVisitor.h b/include/slang/syntax/SyntaxVisitor.h
index e785a6b74..60bd93912 100644
--- a/include/slang/syntax/SyntaxVisitor.h
+++ b/include/slang/syntax/SyntaxVisitor.h
@@ -7,9 +7,11 @@
//------------------------------------------------------------------------------
#pragma onc... | 4 | 3 | 1 | [{"id": "G0", "claim": "The makeAllSyntaxVisitor helper serves no purpose since it takes no template parameter to infer, so any call to it can be replaced with a direct call to the AllSyntaxVisitor constructor.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim... | null |
MikePopoloski__slang__1470 | MikePopoloski/slang | 1,470 | defect | 828aec58e0fe88b4d9a330ed2a0321f54b04c101 | 9a9ad506286e8fa2aad84641bf12aa09f8563a7e | [slang-tidy][style] Ignore null ports for OnlyANSIPortDecl checker | `OnlyANSIPortDecl` checker segfaults on modules with null ports | diff --git a/tools/tidy/src/style/OnlyANSIPortDecl.cpp b/tools/tidy/src/style/OnlyANSIPortDecl.cpp
index 471630bf9..65d4f33a9 100644
--- a/tools/tidy/src/style/OnlyANSIPortDecl.cpp
+++ b/tools/tidy/src/style/OnlyANSIPortDecl.cpp
@@ -16,7 +16,7 @@ struct MainVisitor : public TidyVisitor, ASTVisitor<MainVisitor, true, fa... | 1 | 1 | 1 | [{"id": "G0", "claim": "The condition should check `internalSymbol` directly instead of excluding null ports via `!port.isNullPort`, since there are other cases that can lead to a non-ansi port with no connected internal symbol.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced... | null |
MikePopoloski__slang__1576 | MikePopoloski/slang | 1,576 | defect | d7888c90a048e47384e530fef9863e65952c9e3c | 4872c3153754bef2119fcb9850609c3cd20a7317 | Add --map-keyword-version option | Here I have added an `--emit-verilog-by-ext` option which forces `slang` preprocessor to emit `verilog IEEE 1364-2005` keywords when it meets files with `.v` and `.vh` extensions according to this discussion https://github.com/MikePopoloski/slang/issues/1568#issuecomment-3533567818
May be it needs to specify extensi... | diff --git a/docs/command-line-ref.dox b/docs/command-line-ref.dox
index 0eed6acf2a..e39de7ed64 100644
--- a/docs/command-line-ref.dox
+++ b/docs/command-line-ref.dox
@@ -86,6 +86,16 @@ Note that multithreading *parsing* cannot be supported when running
with `--single-unit`, though other parts of the compilation proce... | 12 | 12 | 10 | [{"id": "G0", "claim": "The option is too specific to certain extensions and keyword versions and should instead be a general option that maps a specific extension or a set of files (via glob perhaps) to a keyword version, not limited to just that one Verilog version.", "category": "design", "verdict": "supported", "pr... | null |
MikePopoloski__slang__1644 | MikePopoloski/slang | 1,644 | defect | c7b92c7e9d90d995b2bda4fc8cdd67b031734d7d | 7ded67500d9bd7cd61db3cffcc2af8dd96b450e9 | Add AllowVirtualIfaceWithOverride compatibility flag | ## Summary
- Adds a new `AllowVirtualIfaceWithOverride` compilation flag that allows interface instances that are bind/defparam targets to be assigned to virtual interfaces
- This violates IEEE 1800-2017 but matches behavior of some commercial tools like Cadence Xcelium
- The flag can be enabled via `--allow-virtual-i... | diff --git a/include/slang/ast/Compilation.h b/include/slang/ast/Compilation.h
index 927a4dbb8..483831cda 100644
--- a/include/slang/ast/Compilation.h
+++ b/include/slang/ast/Compilation.h
@@ -114,9 +114,14 @@ enum class SLANG_EXPORT CompilationFlags {
DisallowRefsToUnknownInstances = 1 << 12,
/// Allow unn... | 3 | 3 | 2 | [{"id": "G0", "claim": "The AllowVirtualIfaceWithOverride flag should not be included in vcs compat mode because VCS reports an error for these cases.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The parenthetical '(matches Cadence Xcelium behavio... | null |
MikePopoloski__slang__1721 | MikePopoloski/slang | 1,721 | defect | a0e4370fc63b947868675586038c3531297ecf87 | b3ca5cadb3712dbde4cab3f2651b72e828a99617 | Support for macro definitions with trailing spaces after line continu… | …ation
VCS supports trailing spaces after the line continuation in a macro definition, except for the first `define line. | diff --git a/include/slang/parsing/Lexer.h b/include/slang/parsing/Lexer.h
index cdf7f0b1c1..e9dbfdd6f6 100644
--- a/include/slang/parsing/Lexer.h
+++ b/include/slang/parsing/Lexer.h
@@ -77,6 +77,10 @@ struct SLANG_EXPORT LexerOptions {
/// If true, the preprocessor will support legacy protected envelope directive... | 2 | 2 | 1 | [{"id": "G0", "claim": "The behavior needs a separate command-line flag (with docs) so it can be enabled independently, since the --compat flag is only a convenience.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add CHECK assertions to the new test ver... | null |
MikePopoloski__slang__1722 | MikePopoloski/slang | 1,722 | defect | a0e4370fc63b947868675586038c3531297ecf87 | a2845ddc49544b715c00724e3a5528dcf324ec5d | Print the filename and line number in the preprocessor output | This is very helpful when dealing with codebases with nested includes. | diff --git a/bindings/python/CompBindings.cpp b/bindings/python/CompBindings.cpp
index 32dd015c23..a80750fd47 100644
--- a/bindings/python/CompBindings.cpp
+++ b/bindings/python/CompBindings.cpp
@@ -202,7 +202,8 @@ void registerCompilation(py::module_& m, py::module_& ast, py::module_& driver)
"separateUn... | 4 | 3 | 1 | [{"id": "G0", "claim": "The setIncludeAll flag is confusing because it does not actually include everything since other flags still have an effect, and it should be renamed to something like includeAllLocations with documentation of what it means.", "category": "design", "verdict": "supported", "priority": "P1", "scope... | null |
MikePopoloski__slang__1741 | MikePopoloski/slang | 1,741 | defect | 8aeca5cbab01465574eff748032e2c690801ca93 | 07be768022858f3f5ad0066108bf4429861b9c86 | Add file kind tracking and debug output when parsing files | Adds a FileKind enum (Design, LibraryFile, LibraryMap) to SourceManager so that callers can determine how a buffer was originally loaded. SourceLoader sets the kind when reading buffers: LibraryMap for files loaded via --libmap, and LibraryFile for files loaded via -v/--libfile.
Adds a --show-parsed-files option to ... | diff --git a/include/slang/driver/Driver.h b/include/slang/driver/Driver.h
index e87b01dc5a..56ad9ce081 100644
--- a/include/slang/driver/Driver.h
+++ b/include/slang/driver/Driver.h
@@ -171,6 +171,10 @@ class SLANG_EXPORT Driver {
/// in macro definitions.
std::optional<bool> allowMacroTrailingSpace;... | 7 | 7 | 3 | [{"id": "G0", "claim": "The new Lexer::getBufferId getter should have a simple doc comment so it shows up in the generated API reference.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The '@note Not thread-safe; must be called before concurrent r... | null |
MikePopoloski__slang__320 | MikePopoloski/slang | 320 | defect | 9694ca9a2755b31b394484c13648ef66b93e0ebc | c04f5cb474654076494b3e82ed30b3867ccafa25 | Fix shift operator constant evaluation with negative right operand or unknowns | This is to fix problems for shift operator constant evaluation.
1. SV-2017 standard [11.4.10] says the right operand of shift operators is always treated as an unsigned number.
```c++
CHECK_THAT(session.eval("30'b10xz0110111<<-3'sb1").integer(),
exactlyEquals("30'b00000000000010xz01101110000000"_... | diff --git a/include/slang/numeric/SVInt.h b/include/slang/numeric/SVInt.h
index 82a4f2457..a6a754091 100644
--- a/include/slang/numeric/SVInt.h
+++ b/include/slang/numeric/SVInt.h
@@ -556,6 +556,9 @@ class SVInt : SVIntStorage {
void checkUnknown();
void makeUnknown();
+ // $unsigned(*this) value trunca... | 3 | 3 | 0 | [{"id": "G0", "claim": "The comment above unsignedAmount() should say the value is saturated at bitwidth_t::max() instead of truncated.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "unsignedAmount() can replace its conditional word selection with... | null |
MikePopoloski__slang__325 | MikePopoloski/slang | 325 | defect | 34ff824873fa83d1f53a87a5278b2850c32b0c16 | 4d238aa66f0f915280b1b95c7687c5e362d694dd | Allow streaming operators in enum initializers and port connections. | 1. Streaming operators are now allowed in enum initializer and port connections. Corresponding unit tests are added.
2. When testing enum initializer, it was found that [6.19]
> Any enumeration encoding value that is outside the representable range of the enum base type shall be an error. For an unsigned base type,... | diff --git a/include/slang/binding/Expression.h b/include/slang/binding/Expression.h
index 53c5e07560..5b32f2efcf 100644
--- a/include/slang/binding/Expression.h
+++ b/include/slang/binding/Expression.h
@@ -140,7 +140,8 @@ class Expression {
/// Binds the left hand side of an assignment-like expression from the ... | 4 | 3 | 1 | [{"id": "G0", "claim": "Callers of Expression::bindLValue should pass the isInout argument explicitly instead of relying on the defaulted parameter.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Calling previous.integer() can crash if the enum initializ... | null |
MikePopoloski__slang__596 | MikePopoloski/slang | 596 | defect | 48ef85c5077b476eb61d09b1e0468b0eee29556d | a7e2746719ee19ea8749798ca4073fe6a8127ab2 | Parse legacy vendor worflows | This PR intends to make it easier to work with legacy workflows. It contains 3 unrelated changes (2 of which are unfortunately on the same commit):
1. Allow long command line option descriptions to be broken by newlines and neatly indented on the help screen.
2. Ignore Specman and VHDL files given on the command line... | diff --git a/include/slang/driver/Driver.h b/include/slang/driver/Driver.h
index 4b86b98c3..d0ca4f404 100644
--- a/include/slang/driver/Driver.h
+++ b/include/slang/driver/Driver.h
@@ -47,6 +47,26 @@ class Driver {
/// A container for various options that can be parsed and applied
/// to the compilation proce... | 14 | 12 | 7 | [{"id": "G0", "claim": "The documentation for the new map-based add() overloads describes an @a isFileName parameter that those overloads do not have, so it should be removed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hard-wired .e/.vhd e... | null |
MikePopoloski__slang__601 | MikePopoloski/slang | 601 | defect | 8cb632f6e61592d301c8c56a6bbb2c06cbf6370a | 781cb0820609aa4da1ebc09539009c2341c0ba2e | Allow redefining modules using a new --allow-redefinition flag | Here is my first trial of a PR to handle https://github.com/MikePopoloski/slang/issues/600#issuecomment-1232131424
Other than the boilerplate flags code, I'm not sure this code is 100%, even though it works for my toy example:
Given the 3 test files from #600 :
```
// a.v
module a;
b b_inst (.x(1'b0));
endmodu... | diff --git a/include/slang/compilation/Compilation.h b/include/slang/compilation/Compilation.h
index d279a6fb9e..20bcec23c6 100644
--- a/include/slang/compilation/Compilation.h
+++ b/include/slang/compilation/Compilation.h
@@ -118,6 +118,12 @@ struct CompilationOptions {
/// also drive such signals.
bool allo... | 15 | 12 | 4 | [{"id": "G0", "claim": "The changes to the generated optionsMap (removing const and adding setOptionMap) should be dropped; instead make the diagnostic a warning in diagnostics.txt and promote its severity to an Error inside Driver unless an option says otherwise, as done in commit 84060b2 for out-of-bounds selections.... | null |
MikePopoloski__slang__624 | MikePopoloski/slang | 624 | defect | 2eac3711f5ef07b6f238194f635d75c70219a4ee | 6e2ea9511ea7a1a8a30718e920656922d2087527 | Bugfix, fix deepClone crash issue on token copy | This is a bugfix for deepClone.
In the previous implementation, token would adopt shallow copy.
So with different life cycle BumpAllocators, it would crash.
Here is my test case.
``` cpp
auto tree = SyntaxTree::fromText(R"(module m; reg tmp; endmodule)");
class CloneRewriter : public SyntaxVisitor... | diff --git a/include/slang/parsing/Token.h b/include/slang/parsing/Token.h
index e3114f8168..b2e488df8c 100644
--- a/include/slang/parsing/Token.h
+++ b/include/slang/parsing/Token.h
@@ -188,6 +188,7 @@ class SLANG_EXPORT Token {
[[nodiscard]] Token withRawText(BumpAllocator& alloc, string_view rawText) const;
... | 1 | 1 | 1 | [{"id": "G0", "claim": "Token/Trivia deepClone does not faithfully reproduce the original trivia: building the clone with withLocation (and a copy of that logic) yields different trivia than the token originally had, and always forces a full-location trivia instead of cloning whichever member of the union is valid acco... | null |
MikePopoloski__slang__660 | MikePopoloski/slang | 660 | defect | 4c7e8cfc5f0c63bf19c7c372ab9f89298b5e75e5 | 96502eeaa7cdb61570892bef7ea42c9f0d2956cf | Add --obfuscate-ids option to driver | With this option the preprocessed output will have all of its identifiers randomized.
It might come useful in order to share SV code without having to use a commercial encryption tool. | diff --git a/include/slang/driver/Driver.h b/include/slang/driver/Driver.h
index 1fba634b5..a6ac8dad6 100644
--- a/include/slang/driver/Driver.h
+++ b/include/slang/driver/Driver.h
@@ -261,10 +261,11 @@ class SLANG_EXPORT Driver {
/// Runs the preprocessor on all loaded buffers and outputs the result to stdout.
... | 3 | 3 | 1 | [{"id": "G0", "claim": "The error branch checking the result of translations.insert could not be reached, since the map was just searched and the name was not found, so the dead check and error path should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"i... | null |
MikePopoloski__slang__669 | MikePopoloski/slang | 669 | defect | 0f5933dc511dac83ace48822ab758cb2e42e65e3 | 9b91bdacb49adcb4bc9ca5a0ffcba4b489b9c31b | Update Parser_expressions.cpp | For 'always@( *)' lexed as '@' '(' '*,' , there will be a error for the parser. The commit can correct the error. | diff --git a/source/parsing/Parser_expressions.cpp b/source/parsing/Parser_expressions.cpp
index 1b14bb6a7..d1ea427d6 100644
--- a/source/parsing/Parser_expressions.cpp
+++ b/source/parsing/Parser_expressions.cpp
@@ -1135,6 +1135,13 @@ TimingControlSyntax* Parser::parseTimingControl() {
... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new local variable is misspelled `startclosePara` and should be named something like `starCloseParen`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A test exercising the new @(*) event-control parsing should be adde... | null |
MikePopoloski__slang__715 | MikePopoloski/slang | 715 | defect | afaf10c05317662ddb4c8732b3e667992a910e17 | 4d640da805fb068b6ed72ced0eca1d0968692b83 | New tool: slang-tidy | Adding a new tool, slang-tidy to collect different lint rules that are not strictly related to the language, and so don't make much sense to have them in the slang library. | diff --git a/include/slang/ast/symbols/ValueSymbol.h b/include/slang/ast/symbols/ValueSymbol.h
index 4d7191564..746dd0bd1 100644
--- a/include/slang/ast/symbols/ValueSymbol.h
+++ b/include/slang/ast/symbols/ValueSymbol.h
@@ -150,6 +150,9 @@ class SLANG_EXPORT ValueDriver {
/// Indicates whether the driver is insid... | 10 | 10 | 1 | [{"id": "G0", "claim": "The tidy diagnostics added to scripts/diagnostics.txt should probably live in their own diagnostics file inside the tidy tool folder, possibly as a follow-up.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "tools/tidy/CMakeLists.tx... | null |
MikePopoloski__slang__916 | MikePopoloski/slang | 916 | defect | cad562f821a575728e65f5414375c7cb94d2d124 | 594e3aaab7bd76458da9997c72749227c5ef2e80 | Ensure EoL at the end of trivia to prevent inlining issues | This is a fix for the issue described in #914.
Functional evidence:
```
(base) drw@pirate slang % ./build/bin/slang ../inlining-repro/foo.sv ../inlining-repro/main.sv -I ../inlining-repro --single-unit --macros-only
BUS_WIDTH 2
SOMETHING 2
SV_COV_ASSERTION 20
SV_COV_CHECK 3
SV_COV_ERROR -1
SV_COV_FSM_STATE... | diff --git a/source/parsing/Preprocessor.cpp b/source/parsing/Preprocessor.cpp
index a3307cedb..9ab073280 100644
--- a/source/parsing/Preprocessor.cpp
+++ b/source/parsing/Preprocessor.cpp
@@ -435,6 +435,10 @@ Token Preprocessor::nextRaw() {
}
}
+ // Ensure EoF at the end of trivia to prevent inlinin... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new comment in nextRaw is misleading because it says EndOfFile (EoF) when the trivia appended is EndOfLine (EoL).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A test should be added to PreprocessorTests.cpp covering t... | null |
MikePopoloski__slang__931 | MikePopoloski/slang | 931 | defect | 9c9b4871433498f34ed1b868aea1418310ad0aeb | 307f54af691dbafb621641050d77e26aefe59992 | Don't error if multiple UDP row inputs match, unless their output differ | This fixes #926 .
It takes into account the 'keep previous state' output value when comparing UDP table rows.
Also includes a new unit test.
| diff --git a/source/ast/symbols/MemberSymbols.cpp b/source/ast/symbols/MemberSymbols.cpp
index 37ded7b36..26f604336 100644
--- a/source/ast/symbols/MemberSymbols.cpp
+++ b/source/ast/symbols/MemberSymbols.cpp
@@ -995,10 +995,9 @@ static void createTableRow(const Scope& scope, const UdpEntrySyntax& syntax,
retu... | 2 | 2 | 1 | [{"id": "G0", "claim": "The lambda named `getstateChar` should be renamed to `getStateChar` for correct camel-case naming.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The refactor unconditionally calls getstateChar and returns early when it y... | null |
MikeSafonov__spring-boot-starter-smpp__73 | MikeSafonov/spring-boot-starter-smpp | 73 | defect | 18c468fcaded7d40cf321f0f2e30ca67d5769211 | dc87caf8874d31210a00e683df48a9a161f30e6b | feat: added SMPP property 'systemType' | The systemType parameter is used to categorize the type of ESME that is binding to the SMSC. Examples include “VMS” (voice mail system) and “OTA” (over-the-air activation system).
Specification of the systemType is optional - some SMSC’s may not require ESME’s to provide this detail. In this case, the ESME can set the... | diff --git a/src/main/java/com/github/mikesafonov/smpp/config/SmppProperties.java b/src/main/java/com/github/mikesafonov/smpp/config/SmppProperties.java
index be821a4..c9954f3 100644
--- a/src/main/java/com/github/mikesafonov/smpp/config/SmppProperties.java
+++ b/src/main/java/com/github/mikesafonov/smpp/config/SmppPro... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new Defaults.systemType property is never used, so it could be removed.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
MilesCranmer__PySR__1058 | MilesCranmer/PySR | 1,058 | defect | fac6aabb7acbda37a6ece28015ad9935e6b94e99 | e280034231acb03b146e6a0333e02d3fc38acebc | fix: torch export with constant arguments | This is an alternative to https://github.com/MilesCranmer/PySR/pull/726. Basically this just stores everything as a torch buffer from the start.
cc @tbuckworth - made you a coauthor on the commit.
Fixes #656 | diff --git a/pysr/export_torch.py b/pysr/export_torch.py
index eb3ccd8aa..63b9a02d5 100644
--- a/pysr/export_torch.py
+++ b/pysr/export_torch.py
@@ -98,7 +98,7 @@ def __init__(self, *, expr, _memodict, _func_lookup, **kwargs):
self._args = ()
elif issubclass(expr.func, sympy.Ration... | 1 | 1 | 0 | [{"id": "G0", "claim": "Registering integer constants as int64 buffers makes expressions like cos(x)**2 raise a dtype RuntimeError at runtime, so the buffer should be registered as a float tensor (or cast to the input dtype).", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
MilesCranmer__PySR__1138 | MilesCranmer/PySR | 1,138 | defect | 2ac7e7197d54f3082ef36ad2a56167e6ba45bc80 | 4d1064691ad40d01c07e02d914e68b1e2db6128c | feat: raise friendly error when loss_function has elementwise signature | Fixes #982.
If a user passes an elementwise loss (e.g. `loss(prediction, target) = ...`) via `loss_function=...`, PySR would currently error deep in Julia with a long `MethodError`.
This PR adds an early Julia-space validation after `jl.seval(loss_function)`:
- checks the evaluated object is callable
- inspects Julia... | diff --git a/pysr/sr.py b/pysr/sr.py
index 8f8b9616a..d88ce4c27 100644
--- a/pysr/sr.py
+++ b/pysr/sr.py
@@ -235,6 +235,96 @@ def _check_assertions(
)
+def _jl_is_nothing(value):
+ return bool(jl.isnothing(value))
+
+
+def _validate_elementwise_loss(custom_loss) -> None:
+ """Validate that a Juli... | 2 | 2 | 0 | [{"id": "G0", "claim": "The error message should say \"`{knob}` must have signature like {signature}\" instead of \"`{knob}` must have signature {signature}\", since the validator also accepts compatible (e.g. vararg) signatures.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introdu... | null |
MilesCranmer__PySR__1184 | MilesCranmer/PySR | 1,184 | defect | c435527ccddb89a7a4e2835fb064679b3ed3e537 | 8d71c2f4896168265ff939000c3ad9343bcbb99f | fix: warn on elementwise loss probe mismatch | ## Summary
Make `elementwise_loss` validation probe with the dtype PySR will actually use during fitting, and downgrade probe mismatches from hard errors to warnings so advanced custom Julia losses can still reach Julia's own `MethodError` path.
## Changes
- probe `elementwise_loss` with the backend precision-mapped... | diff --git a/pysr/sr.py b/pysr/sr.py
index 5650d0109..724a2da99 100644
--- a/pysr/sr.py
+++ b/pysr/sr.py
@@ -235,11 +235,13 @@ def _check_assertions(
)
-def _validate_elementwise_loss(custom_loss, *, has_weights: bool) -> None:
+def _validate_elementwise_loss(
+ custom_loss, *, has_weights: bool, pr... | 4 | 4 | 1 | [{"id": "G0", "claim": "Please revert the last commit (775ab95, which replaced the probe_value plumbing with a probe_dtype callable).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR's warn-and-continue downgrade on elementwise loss mismatch may not... | null |
MilesCranmer__PySR__197 | MilesCranmer/PySR | 197 | defect | b6ac303316bf72dbf49f29418c519e6dd2f120d9 | acb3fea965981e14d059f2aba076f930bc04fec3 | Allow custom shared projects for `julia_project` | This will fix #196. If you specify an `@` in your `julia_project` string, like `julia_project="@my_project"`, then this will be designated a shared project (just as if you had specified `]activate @my_project` in the Julia REPL.
cc @mkitti | diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml
index 94f94d5f3..310d76e92 100644
--- a/.github/workflows/CI.yml
+++ b/.github/workflows/CI.yml
@@ -69,6 +69,8 @@ jobs:
run: pip install torch # (optional import)
- name: "Run Torch tests"
run: coverage run --append --source=pysr ... | 5 | 5 | 4 | [{"id": "G0", "claim": "The new test should actually verify that the process is running inside the custom shared environment for all operating systems and package managers, instead of leaving only a TODO comment.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cl... | null |
MilesCranmer__PySR__298 | MilesCranmer/PySR | 298 | defect | 98182b39ce5822900d0db95097c8e44df208ca7c | b111a3b3e7a9f552df1023bfc8711f9465bf4a7f | Added CLI to run pysr.install() to install Julia dependencies | This PR implements at CLI for the pysr project using the [click](https://click.palletsprojects.com/en/8.1.x/) package and responds to [issue-229](https://github.com/MilesCranmer/PySR/issues/229). The CLI is intended to be used as `python -m pysr install`. Included in this PR is the following:
1. Setup of the `instal... | diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml
index 8be9ae637..055677adb 100644
--- a/.github/workflows/CI.yml
+++ b/.github/workflows/CI.yml
@@ -54,7 +54,7 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements.txt
python setup.py install
- ... | 9 | 8 | 3 | [{"id": "G0", "claim": "The install command's help text should read \"Install Julia dependencies for PySR\" instead of \"Install required Julia dependencies\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The --julia_project option should declar... | null |
MilesCranmer__PySR__687 | MilesCranmer/PySR | 687 | defect | 3aee19e38ceb3e0e1617d357a831400e01204658 | 0afb3c4f16b4a1570795acdcb4b4dbf347faca8e | Apptainer definition file for PySR | fix: 686
This pull request adds an Apptainer definition file to PySR. Researchers can use it to build an Apptainer container that packages PySR and its dependencies (via a conda environment). | diff --git a/Apptainer.def b/Apptainer.def
new file mode 100644
index 000000000..a3a9fd5b6
--- /dev/null
+++ b/Apptainer.def
@@ -0,0 +1,58 @@
+# This builds a dockerfile containing a working copy of PySR
+# with all pre-requisites installed.
+
+Bootstrap: docker
+From: rockylinux/rockylinux:{{ ROCKY_VERSION }}
+
+%argu... | 6 | 5 | 3 | [{"id": "G0", "claim": "The Apptainer definition should be the same image as the existing Dockerfile (in Apptainer syntax), pulling from the docker-hosted python-bullseye image rather than rockylinux.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pu... | null |
MilesCranmer__PySR__763 | MilesCranmer/PySR | 763 | defect | e11f824d5440646675b790665ad83f403ed0526a | 6f557d1f9ac0143972e4f939bee115a61d7c1a6a | logger fixes: close streams and persist during warm start | Hallo,
I have added an abstract 'dummy' method to close the logger in instance to AbstractLoggerSpec and a method with the same function for the TensorboardLoggerSpec. The method is called in sr.py after the logging file is completed. This enables the use of the parameter overwrite = True for the TensorBoardLoggerSp... | diff --git a/pysr/logger_specs.py b/pysr/logger_specs.py
index 354a21de4..c3e4e0147 100644
--- a/pysr/logger_specs.py
+++ b/pysr/logger_specs.py
@@ -19,6 +19,11 @@ def write_hparams(self, logger: AnyValue, hparams: dict[str, Any]) -> None:
"""Write hyperparameters to the logger."""
pass # pragma: no ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The close() implementation should call Base.close on the logger (jl.close) rather than looping through the files with a hand-rolled seval'd Julia function, which may be unnecessary since closing the logger itself should close these files.", "category": "design", "verdict": "supported", "priority... | null |
Milkdown__milkdown__1944 | Milkdown/milkdown | 1,944 | defect | b185e0833c8736a2fa94344e9e638634f94e51f2 | fc6fdaf630a24cab193ab6dec6e14d92f879fa32 | feat: support copy to clipboard for code block | <!--
Thanks for submitting a pull request!
We appreciate you spending the time to work on these changes.
⚠️ If you're adding a new plugin, please make sure you've already created issues or discussions where we have discussed about it. Currently we encourage you to publish your own community plugins. And we're very... | diff --git a/e2e/playwright.config.ts b/e2e/playwright.config.ts
index ba1247cddd7..9548b2fd288 100644
--- a/e2e/playwright.config.ts
+++ b/e2e/playwright.config.ts
@@ -36,7 +36,10 @@ export default defineConfig({
? [
{
name: 'chromium',
- use: { ...devices['Desktop Chrome'] },
+ ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The UX of the copy button is not good enough yet, especially when the preview button is active, and Saul wants to discuss it with the designer before it is settled.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `copiedText` s... | null |
Milkdown__milkdown__2251 | Milkdown/milkdown | 2,251 | defect | 38e1ecb894ff00f34718fe1319233d7f6da7c98a | 24e2fbbf6216251b5c7758666bb1567ce2d239ae | feat: 🎸 add optional onImageLoadError callback for image-block | <!--
Thanks for submitting a pull request!
We appreciate you spending the time to work on these changes.
⚠️ If you're adding a new plugin, please make sure you've already created issues or discussions where we have discussed about it. Currently we encourage you to publish your own community plugins. And we're very... | diff --git a/.changeset/thin-squids-breathe.md b/.changeset/thin-squids-breathe.md
new file mode 100644
index 00000000000..5ef3496ea26
--- /dev/null
+++ b/.changeset/thin-squids-breathe.md
@@ -0,0 +1,7 @@
+---
+"@milkdown/components": patch
+"@milkdown/crepe": patch
+"@milkdown/docs": patch
+---
+
+feat: 🎸 add optiona... | 1 | 1 | 0 | [{"id": "G0", "claim": "The .changeset/thin-squids-breathe.md file added by the PR should be removed because the maintainer has a script that auto-generates the changelog.", "category": "process", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Milkdown__milkdown__2335 | Milkdown/milkdown | 2,335 | defect | ed623110bb1848a49f91d307fb5cd8877fe15d8f | a729b6da09050ef009f0d31e09c4212f3506dd59 | feat: replace-selection mode for streaming plugin | - [x] I read the contributing guide
- [x] I agree to follow the code of conduct
## Summary
`startStreamingCmd` now accepts `insertAt: 'selection'`, which replaces the current selection range instead of inserting at the cursor.
`runAICmd` automatically uses this mode when the user has a text selection. The provider r... | diff --git a/docs/api/crepe.md b/docs/api/crepe.md
index 9004076bf0e..4cc778b01d3 100644
--- a/docs/api/crepe.md
+++ b/docs/api/crepe.md
@@ -606,6 +606,11 @@ workflow. Users supply a `provider` (an async generator that yields
markdown tokens) and Crepe handles the rest: start streaming, push
chunks, end streaming, an... | 3 | 3 | 1 | [{"id": "G0", "claim": "insertAt: 'selection' with a collapsed selection bypasses the cursor-mode empty-textblock snap, so a collapsed selection in a top-level empty paragraph uses the split-block strategy instead of behaving like cursor mode; consider treating selection.empty as 'cursor' or reusing the snapping logic ... | null |
Milkdown__milkdown__2338 | Milkdown/milkdown | 2,338 | defect | 451beb5a457960a76e24059514c3592b0700a51d | 26310882c525c3b4480076ef66c7f6a4629f8774 | feat: expose onError callback for AI feature | - [x] I read the contributing guide
- [x] I agree to follow the code of conduct
## Summary
Currently errors in `runAICmd` (provider failures, `buildContext` exceptions) are only logged to the console. There's no way for the application layer to react — the editor silently rolls back and the user sees nothing.
This P... | diff --git a/docs/api/crepe.md b/docs/api/crepe.md
index 4cc778b01d3..f7a2110256c 100644
--- a/docs/api/crepe.md
+++ b/docs/api/crepe.md
@@ -630,6 +630,11 @@ const crepe = new Crepe({
diffReviewOnEnd: true,
diff: { acceptLabel: 'Yes', rejectLabel: 'No' },
streaming: { throttleMs: 150 },
+ onEr... | 9 | 9 | 8 | [{"id": "G0", "claim": "The user-supplied `config.onError` can throw in `runProvider`, which would prevent `abortStreamingCmd` from running and leave the editor stuck streaming, so the `onError` invocation should be wrapped in its own try/catch while still aborting streaming.", "category": "correctness", "verdict": "su... | null |
MinecraftForge__MinecraftForge__10324 | MinecraftForge/MinecraftForge | 10,324 | defect | 554ead8d4a07f68a7c0c43b85c47a98818045b73 | 06540c2068aabb37ea645b0ba3a711174567c21a | [1.21.4] Item Capabilities | Made a Test Mod, and it works. Serializing Data will have to be done by the modder manually, as shown in the TestMod I made.
Was trying to figure out a way to make it better, but cant seem to find a nice way, so this will have to do. | diff --git a/patches/minecraft/net/minecraft/world/item/ItemStack.java.patch b/patches/minecraft/net/minecraft/world/item/ItemStack.java.patch
index 68aa435c7b1..fa2ba3a4a93 100644
--- a/patches/minecraft/net/minecraft/world/item/ItemStack.java.patch
+++ b/patches/minecraft/net/minecraft/world/item/ItemStack.java.patch... | 5 | 5 | 3 | [{"id": "G0", "claim": "The test mod needs actual game tests rather than being merged without any.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test mod should not register event handlers in init but use IForgeGameTestHelper.addEventListener(Consu... | null |
MinecraftForge__MinecraftForge__10325 | MinecraftForge/MinecraftForge | 10,325 | defect | d55dee93945df0373b61d72387dd5b8bc3768a71 | c88245e18d0e79533040385fadbbc75d35affb30 | [1.21.4] Fix forced chunks never being ticked by the server | In the update to 1.21.3, a patch was eaten that was responsible for adding forced chunk tickets to the iterator of ticking chunks. The functionality of collecting ticking chunks was moved elsewhere, so this PR compensates by patching the collection of chunks to include forced chunks.
- Fixes #10184 for 1.21.4.
- Ba... | diff --git a/patches/minecraft/net/minecraft/server/level/ChunkMap.java.patch b/patches/minecraft/net/minecraft/server/level/ChunkMap.java.patch
index 987f9b20bde..87f8610147a 100644
--- a/patches/minecraft/net/minecraft/server/level/ChunkMap.java.patch
+++ b/patches/minecraft/net/minecraft/server/level/ChunkMap.java.p... | 7 | 7 | 2 | [{"id": "G0", "claim": "The duplicated forced-chunk iteration in ChunkMap could be refactored so forEachForcedChunk delegates to a shared forEachChunk helper with a predicate, making the patch clearer about what it does.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, ... | null |
MinecraftForge__MinecraftForge__10371 | MinecraftForge/MinecraftForge | 10,371 | defect | 68698d70c1380a3e0af09f562bc27862056bdd82 | cc884ba31b88dd5fe3e55020b18b9a4b54f297f0 | [1.21.4] Re-introduce IForgeItem.damageItem when an item takes damage | `IForgeItem.damageItem()` allows the modder to override the amount of damage that would've been dealt to an item when it takes damage. This PR also fixes an issue where the player's `this.useItem` could be pre-emptively set to `ItemStack.EMPTY` and disallow any "broken item" variants.
- Fixes #10344 for 1.21.4 | diff --git a/patches/minecraft/net/minecraft/world/entity/player/Player.java.patch b/patches/minecraft/net/minecraft/world/entity/player/Player.java.patch
index f355b62bf34..9e704137e3e 100644
--- a/patches/minecraft/net/minecraft/world/entity/player/Player.java.patch
+++ b/patches/minecraft/net/minecraft/world/entity/... | 3 | 2 | 1 | [{"id": "G0", "claim": "The new PreventItemDamageTest.java file is missing the standard Forge license header.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The game test never verifies that the item stack in the player's main hand is still the sh... | null |
MinecraftForge__MinecraftForge__10394 | MinecraftForge/MinecraftForge | 10,394 | defect | b25f6e3a7c6da04b747a91afd884c71fe28bfbba | 56570d3bfe643c0e83469b0710f0e33b70745f53 | [1.21.4] Add fast graphics render type to block models | This PR was primarily created to address the issue of model JSON-based render types overriding vanilla's behavior of giving any instance of `LeavesBlock` the solid render type. However, I figured since the issue needed to be fixed anyway, I also added the `"render_type_fast"` member to the model json which gives the ab... | diff --git a/patches/minecraft/net/minecraft/client/renderer/ItemBlockRenderTypes.java.patch b/patches/minecraft/net/minecraft/client/renderer/ItemBlockRenderTypes.java.patch
index 9fe92b8df9a..22dc414d08b 100644
--- a/patches/minecraft/net/minecraft/client/renderer/ItemBlockRenderTypes.java.patch
+++ b/patches/minecra... | 5 | 5 | 4 | [{"id": "G0", "claim": "The copy-paste error in ItemLayerModelBuilder.toJson must be fixed: it iterates this.renderTypes and writes renderType.toString() into the render_types_fast JSON object instead of using this.renderTypesFast and its keys.", "category": "correctness", "verdict": "supported", "priority": "P1", "sco... | null |
MinecraftForge__MinecraftForge__10412 | MinecraftForge/MinecraftForge | 10,412 | defect | 02e82c672d7ddbca0b26844e4fa6488825cdf5ef | d6545fa579b841318006d53b765e041307ea370f | [1.21.4] Update context in AddReloadListenerEvent | The way server resources are loaded have changed since when this event was created. It has, for a long time, only given the context of the server resources and a registry access in the event. But now the server resources use a different context when accessing registries from within the listeners, found in `ReloadableSe... | diff --git a/patches/minecraft/net/minecraft/server/ReloadableServerResources.java.patch b/patches/minecraft/net/minecraft/server/ReloadableServerResources.java.patch
index 5385db346ed..e4c0cf1d5bd 100644
--- a/patches/minecraft/net/minecraft/server/ReloadableServerResources.java.patch
+++ b/patches/minecraft/net/minec... | 1 | 1 | 0 | [{"id": "G0", "claim": "New parameters should typically be added at the end of a function signature rather than in the middle, so the new lookupProvider parameter should not sit before the deprecated registryAccess parameter in the new onResourceReload overload.", "category": "design", "verdict": "supported", "priority... | null |
MinecraftForge__MinecraftForge__10414 | MinecraftForge/MinecraftForge | 10,414 | defect | 02e82c672d7ddbca0b26844e4fa6488825cdf5ef | 6a7754172e4b701c330f36b6fb924b664020cceb | Hanging Pale Moss not dropping with modded shears | Pale Hanging Moss is not dropping when sheared with modded shears, because the loot table is not changed by the data generation.
This PR adds CompositeLootItemCondition to first level loot table condition detection to support pale hanging moss. | diff --git a/src/main/generated/data/minecraft/loot_table/blocks/pale_hanging_moss.json b/src/main/generated/data/minecraft/loot_table/blocks/pale_hanging_moss.json
new file mode 100644
index 00000000000..a186e96ba47
--- /dev/null
+++ b/src/main/generated/data/minecraft/loot_table/blocks/pale_hanging_moss.json
@@ -0,0 ... | 10 | 10 | 2 | [{"id": "G0", "claim": "The pull request needs a game test, pointing at the existing examples in net.minecraftforge.debug.gameplay under src/test/java.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test mod id should not include \"test\"; MODID sho... | null |
MinecraftForge__MinecraftForge__10533 | MinecraftForge/MinecraftForge | 10,533 | defect | 207c1997c95787c7d43a1e5a4675cad410c72369 | 2d09abe19caefc173a631fe3e9ff3429efdae227 | [1.21.5] Add ChunkEvent.LightingCalculated | Adds an event, "LightingCalculated(ChunkAccess chunk)", to the event bus in "ChunkEvent.java" that flags the lighting for a chunk as correct based on the "ThreadedLevelLightEngine.java" class using a hook in "ForgeHooks.java".
QA was completed via a custom logging mod and prints to the console as the game runs, as ... | diff --git a/patches/minecraft/net/minecraft/server/level/ThreadedLevelLightEngine.java.patch b/patches/minecraft/net/minecraft/server/level/ThreadedLevelLightEngine.java.patch
new file mode 100644
index 00000000000..308661d58d5
--- /dev/null
+++ b/patches/minecraft/net/minecraft/server/level/ThreadedLevelLightEngine.j... | 4 | 4 | 1 | [{"id": "G0", "claim": "Use opening brackets on the same line (instead of on their own line) for the new LightingCalculated code in ChunkEvent.java, consistently with the rest of the file.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The Light... | null |
MinecraftForge__MinecraftForge__10659 | MinecraftForge/MinecraftForge | 10,659 | defect | f06727a205c348693094adb6d1f44cca866d8e46 | 793c5f4ef33db42806ef9cc03d22af41215c5cd3 | [1.21.8] Deprecate JS CoreMods, remove Forge's usages of them | This PR is the first step in our long-awaited deprecation of the JavaScript CoreMods system. The first phase is to remove Forge's usages of them. I will also have game issue console warnings if a mod uses them.
The goal for now is not cleanliness but functionality, and I am porting the JS CoreMods to Java classes wi... | diff --git a/build_forge.gradle b/build_forge.gradle
index bdaf06dc71b..f7bfab8ec4a 100644
--- a/build_forge.gradle
+++ b/build_forge.gradle
@@ -142,6 +142,7 @@ dependencies {
installer(project(':javafmllanguage'))
installer(project(':lowcodelanguage'))
installer(project(':mclanguage'))
+ installer(pr... | 6 | 5 | 0 | [{"id": "G0", "claim": "The new transformer source files need the Forge copyright/license headers added (license headers must be fixed).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The transformation service should not be in the boot layer; t... | null |
MinecraftForge__MinecraftForge__10688 | MinecraftForge/MinecraftForge | 10,688 | defect | 8f7fbc76e1dc0747c7ebcf40a1fbaad4a9b555f3 | 2353135a3e105331bb98121d2382019daf1dad10 | [1.21.10] Provide LevelRenderState during frame pass construction (#10867) | Test(s) still work fine. There may be other work needed if modders need extra render context but at the moment this seems enough, at least until someone can provide a concrete example where extra details are needed.
<img width="634" height="424" alt="image" src="https://github.com/user-attachments/assets/89830fa6-1ee2... | diff --git a/patches/minecraft/net/minecraft/client/renderer/LevelRenderer.java.patch b/patches/minecraft/net/minecraft/client/renderer/LevelRenderer.java.patch
index 1da7501ee29..a74f85c282c 100644
--- a/patches/minecraft/net/minecraft/client/renderer/LevelRenderer.java.patch
+++ b/patches/minecraft/net/minecraft/clie... | 3 | 3 | 0 | [{"id": "G0", "claim": "The default body of executes(LevelRenderState) needs whitespace/line breaks because it is not a patch (this isn't a one-liner patch context).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The no-arg executes() should be ... | null |
MinecraftForge__MinecraftForge__10692 | MinecraftForge/MinecraftForge | 10,692 | defect | ecd1491f96dd81cf58ec7500d6462ebe5c993778 | 1e9eab2f8121b1bb99764508696a39d41b618e45 | [1.21.10] Add support for custom particle groups (#10689) | Addresses #10689. I think the event can be made a RecordEvent but I was uncertain so I left it as Mutable. @PaintNinja can say yes/no to that since I'm not sure if exposing the internal lists is safe.
It's also technically possible to support specific particle render orders but that seems pointless until someone has s... | diff --git a/patches/minecraft/net/minecraft/client/particle/ParticleEngine.java.patch b/patches/minecraft/net/minecraft/client/particle/ParticleEngine.java.patch
index c9d66eac3ee..82bb4ccebba 100644
--- a/patches/minecraft/net/minecraft/client/particle/ParticleEngine.java.patch
+++ b/patches/minecraft/net/minecraft/c... | 6 | 6 | 1 | [{"id": "G0", "claim": "Declare the BUS field above the factories/renderOrder fields in RegisterParticleGroupEvent (field ordering, via a suggestion block).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add an @ApiStatus.Internal annotation to ... | null |
MinecraftForge__MinecraftForge__7946 | MinecraftForge/MinecraftForge | 7,946 | defect | dbdc345d4a36d354417dee68955da300e5cc42be | a2c8223f1eb881d8a625746324654a284256ab21 | Reimplement IForgeBlockEntity#onLoad() hook | This PR adds back the `IForgeBlockEntity#onLoad()` hook that was removed in the initial port. Fixes #7926
There are four cases where this method is called:
- Server side when placing a block: handled by `LevelChunk#addAndRegisterBlockEntity()`
- Client side when placing a block: handled by `LevelChunk#addAndRegi... | diff --git a/patches/minecraft/net/minecraft/world/level/chunk/LevelChunk.java.patch b/patches/minecraft/net/minecraft/world/level/chunk/LevelChunk.java.patch
index 09f8920546c..d1fda936f6f 100644
--- a/patches/minecraft/net/minecraft/world/level/chunk/LevelChunk.java.patch
+++ b/patches/minecraft/net/minecraft/world/l... | 4 | 3 | 1 | [{"id": "G0", "claim": "Maintaining a global static set of loading block entities in ForgeHooks is not an acceptable way of deferring onLoad().", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Deferring onLoad() all the way to the first tick by tracking lo... | null |
MinecraftForge__MinecraftForge__8055 | MinecraftForge/MinecraftForge | 8,055 | defect | dcfbc08504b0ba1bd2106cfb134ce621343401fd | 9717292e0418f2fe46343df1e4434a6c23be661d | Add new tool action for shield blocking, replacing `IForgeItem#isShield` | ~~This PR fixes #8054 by re-adding the missing patch for `IForgeItem#isShield` back to `LivingEntiy#getEquipmentSlotForItem`, as noted in the linked issue. This also adds a test mod which adds a custom shield item, to allow testing this PR specifically and the `isShield` feature in general.~~
This PR fixes #8054 by ... | diff --git a/patches/minecraft/net/minecraft/world/entity/LivingEntity.java.patch b/patches/minecraft/net/minecraft/world/entity/LivingEntity.java.patch
index f42fc517717..a684c8724f7 100644
--- a/patches/minecraft/net/minecraft/world/entity/LivingEntity.java.patch
+++ b/patches/minecraft/net/minecraft/world/entity/Liv... | 3 | 3 | 1 | [{"id": "G0", "claim": "The new CustomShieldTest.java is missing the required license header.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The code formatting of CustomShieldTest.java does not follow the Forge formatting guidelines.", "category"... | null |
MinecraftForge__MinecraftForge__8177 | MinecraftForge/MinecraftForge | 8,177 | defect | 9e476551be4649c35881c103748f3bdc3ca3b353 | f0e55502a3c0c11ed220b84199508b3754cc1949 | [1.17.x] Fix part entities not working at all | This PR fixes #8071 by replacing all usages of `EnderDragonPart` outside of the `EnderDragon` class with PartEntity. | diff --git a/patches/minecraft/net/minecraft/server/level/ServerLevel.java.patch b/patches/minecraft/net/minecraft/server/level/ServerLevel.java.patch
index 653b5643d3e..187ce77e8e0 100644
--- a/patches/minecraft/net/minecraft/server/level/ServerLevel.java.patch
+++ b/patches/minecraft/net/minecraft/server/level/Server... | 4 | 4 | 0 | [{"id": "G0", "claim": "Do not use a wildcard import (net.minecraft.world.entity.*); import each class explicitly.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new test file is missing its license header.", "category": "documentation", "ve... | null |
MinecraftForge__MinecraftForge__8250 | MinecraftForge/MinecraftForge | 8,250 | defect | aceb878a64fb551a3d6bc4bc6d4eb6df56a5e38e | 78d19f24a3047b230d67e95d4216bf8dcf34f9b9 | Merge values of defaulted optional tags | This PR fixes #7570 by merging the default values of a defaulted optional tag when defined in multiple places (whether within the same mod or across multiple mods). For more details as why the linked issue happens and why this solution fixes it, see my comment at https://github.com/MinecraftForge/MinecraftForge/issues/... | diff --git a/patches/minecraft/net/minecraft/tags/StaticTagHelper.java.patch b/patches/minecraft/net/minecraft/tags/StaticTagHelper.java.patch
index d9e7568822d..150d704c9a1 100644
--- a/patches/minecraft/net/minecraft/tags/StaticTagHelper.java.patch
+++ b/patches/minecraft/net/minecraft/tags/StaticTagHelper.java.patch... | 2 | 1 | 0 | [{"id": "G0", "claim": "The fully-qualified name com.google.common.collect.ImmutableSet should be dropped from the merge lambda since ImmutableSet is already imported in this class (vanilla uses it), for readability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id... | null |
MinecraftForge__MinecraftForge__8361 | MinecraftForge/MinecraftForge | 8,361 | defect | 335cb5edc4467a213a01a315e75aad5aa3569f34 | d3d2fe27113f3fe17464736c41aafc7d5d22556a | Fix and improve Ingredient invalidation | As it turns out Ingredient.invalidateAll has not been called at all since 1.13. It was supposed to be fixed by #7953, but that did not fix it.
This PR actually re-adds the call to Ingredient.invalidateAll.
Additionally the invalidation tracking is greatly improved. Instead of keeping a set of all existing Ingredien... | diff --git a/patches/minecraft/net/minecraft/world/item/crafting/Ingredient.java.patch b/patches/minecraft/net/minecraft/world/item/crafting/Ingredient.java.patch
index 3581de2a5f1..2ab8077a74d 100644
--- a/patches/minecraft/net/minecraft/world/item/crafting/Ingredient.java.patch
+++ b/patches/minecraft/net/minecraft/w... | 5 | 5 | 0 | [{"id": "G0", "claim": "The test mod should register a simple method reference as the event listener instead of using a full inner listener class.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The @Mod.EventBusSubscriber annotation on IngredientInvalida... | null |
MinecraftForge__MinecraftForge__8441 | MinecraftForge/MinecraftForge | 8,441 | defect | 5c9258491f0f0e50cb049ee9b3d9c4a23daeac15 | fe3518e3607fa0e933ae40e16e55f5b51468939f | Fix PlayerChangeGameModeEvent and improve test mod | Fixes #8439 | diff --git a/patches/minecraft/net/minecraft/server/level/ServerPlayer.java.patch b/patches/minecraft/net/minecraft/server/level/ServerPlayer.java.patch
index 359bcb3a395..2058a02ab2d 100644
--- a/patches/minecraft/net/minecraft/server/level/ServerPlayer.java.patch
+++ b/patches/minecraft/net/minecraft/server/level/Ser... | 2 | 1 | 1 | [{"id": "G0", "claim": "The call in m_143403_ should be to onChangeGameMode (the boolean) instead of onChangeGameType (the Game Type).", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "As implemented this changes behavior, probably a typo: when the game type ... | null |
MinecraftForge__MinecraftForge__8483 | MinecraftForge/MinecraftForge | 8,483 | defect | f0c2554b1c56f6e079e7a1899a21a199b6e987be | 1c63eecc834dbc85319d03ba93f8d86c7c2e8967 | Add event for controlling potion indicators size | This PR fixes #8252 by terminally deprecating `PotionShiftEvent` and adding a new event named `PotionSizeEvent`.
As noted in the linked issue, 1.18 removed the shifting of the inventory screen due to potion indicators altogether, which means `PotionShiftEvent` has no purpose. Therefore, it has been terminally depre... | diff --git a/patches/minecraft/net/minecraft/client/gui/screens/inventory/EffectRenderingInventoryScreen.java.patch b/patches/minecraft/net/minecraft/client/gui/screens/inventory/EffectRenderingInventoryScreen.java.patch
index a71baa4fbbb..bea69fe6c3f 100644
--- a/patches/minecraft/net/minecraft/client/gui/screens/inve... | 5 | 2 | 1 | [{"id": "G0", "claim": "The @hidden javadoc tag on the new PotionSizeEvent may not be compiled by the javadoc task unless it is added as a custom tag to the task configuration.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A newly added event shoul... | null |
MinecraftForge__MinecraftForge__8555 | MinecraftForge/MinecraftForge | 8,555 | defect | 87c4f90fb26c209d44f0fb595b11c714be3b6f6f | d76e7a097761079103d46e12aecdfa3076565f0e | Load Modded Dimensions on Dedicated Server Start | Closes #8552
I've tested with the `server_world_creation_test` mod, which has a custom dimension, dimension type, and noise settings (noise settings is to confirm that the other registries load datapacks)
<s>As fair as I can tell, `Dimension` and `DimensionType` use only the vanilla entries when starting a world ... | diff --git a/patches/minecraft/net/minecraft/server/Main.java.patch b/patches/minecraft/net/minecraft/server/Main.java.patch
index c5104b7c271..4037c5afcaf 100644
--- a/patches/minecraft/net/minecraft/server/Main.java.patch
+++ b/patches/minecraft/net/minecraft/server/Main.java.patch
@@ -66,6 +66,15 @@
Level... | 12 | 12 | 1 | [{"id": "G0", "claim": "Keep the blank line above the \"# ADD ABOVE THIS LINE\" comment that this pull request removed from mods.toml.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Put the constructor's opening brace on a new line, as the proje... | null |
MinecraftForge__MinecraftForge__8648 | MinecraftForge/MinecraftForge | 8,648 | defect | 4285c931e739c878918b547e1b420d63fa2d0b3b | 4e4e16dcf959f02128345009e313e4944e84f58f | [1.18] Allow custom rarities to directly modify the style | Fixes #8647.
A test mod is included that tests the new version and sets the style to italic in addition to a color. | diff --git a/patches/minecraft/net/minecraft/client/gui/Gui.java.patch b/patches/minecraft/net/minecraft/client/gui/Gui.java.patch
index 0eaaad81ced..72682e4eda9 100644
--- a/patches/minecraft/net/minecraft/client/gui/Gui.java.patch
+++ b/patches/minecraft/net/minecraft/client/gui/Gui.java.patch
@@ -27,7 +27,13 @@
... | 2 | 1 | 0 | [{"id": "G0", "claim": "Elenterius would change the custom-rarity constructor's default formatting from ChatFormatting.BLACK to ChatFormatting.RESET, so that anyone who reads the color via ChatFormatting#getColor() gets null.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id":... | null |
MinecraftForge__MinecraftForge__9065 | MinecraftForge/MinecraftForge | 9,065 | defect | 6f8ba9d2951a913686464c79edd1cd85eb3fb7d6 | 758e0b271013e5019e2d30fde0ae215b65de103c | Rendering tweaks and fixes: Part 4 | After a few months, it's time for another round of small miscellaneous fixes, tweaks and community requests.
### Fix awkward root transform on elements models and unify baking
This one isn't exactly a bug. The original implementation of root transforms (prior to the client refactor) caused vanilla elements models... | diff --git a/patches/minecraft/net/minecraft/client/renderer/block/model/BlockModel.java.patch b/patches/minecraft/net/minecraft/client/renderer/block/model/BlockModel.java.patch
index f32751039ac..a6a89c93f4c 100644
--- a/patches/minecraft/net/minecraft/client/renderer/block/model/BlockModel.java.patch
+++ b/patches/m... | 7 | 5 | 0 | [{"id": "G0", "claim": "Opening brackets in the newly added bakeVanilla code should be placed on new lines.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Normal transformations in QuadTransformers.applying do nothing: it creates a vector and tr... | null |
MinecraftForge__MinecraftForge__9237 | MinecraftForge/MinecraftForge | 9,237 | defect | 84d7a0facbdd5f5982378b0230d54feaa9e67be4 | 07409da0f91910d9da73fa6e55db20e54214fcb0 | [1.19.x] Fix `ForgeSlider` not respecting custom height | This PR fixes `ForgeSlider` not respecting the custom height by making it use `ScreenUtils#blitWithBorder`, akin to `ExtendedButton`. This PR also makes `ExtendedButton` do less hacky component substringing for ellipsis.
## Before
.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In AbstractInventory.safeItemInsert, the unchanged-item g... | null |
Minestom__Minestom__1226 | Minestom/Minestom | 1,226 | defect | e713cf62a7ae528f7930022d9fb722636cb441ce | ee6d63438e3d35209f5574da2c8370f4ba78867b | added a public Direction facing() method in Pos.java | Hello, this is my first pull request here ! This can be useful for WorldEdit-like stuff | diff --git a/src/main/java/net/minestom/server/coordinate/Pos.java b/src/main/java/net/minestom/server/coordinate/Pos.java
index 4ac61a305ce..2e7da7b2d9c 100644
--- a/src/main/java/net/minestom/server/coordinate/Pos.java
+++ b/src/main/java/net/minestom/server/coordinate/Pos.java
@@ -1,10 +1,12 @@
package net.minestom... | 3 | 3 | 2 | [{"id": "G0", "claim": "The -90..90 pitch range enforcement this PR adds (the @Range annotation on the pitch component and especially the IllegalArgumentException thrown for pitch outside -90..90) is unnecessary and can break existing code that uses other pitch values, so the runtime check should be removed (M004 would... | null |
Minestom__Minestom__1258 | Minestom/Minestom | 1,258 | defect | d596992c0eafd8c5171f859aa49eca3dafe50669 | e076310979a718154fe3ec78e629e142948f746d | Improve PlayerChangeHeldSlotEvent | Changes the PlayerChangeHeldSlotEvent to better clarify what the getSlot methods will do, and add a couple of convenience methods.
Resolves #1257. | diff --git a/src/main/java/net/minestom/server/event/player/PlayerChangeHeldSlotEvent.java b/src/main/java/net/minestom/server/event/player/PlayerChangeHeldSlotEvent.java
index 428082e600b..f5abe153ccf 100644
--- a/src/main/java/net/minestom/server/event/player/PlayerChangeHeldSlotEvent.java
+++ b/src/main/java/net/min... | 3 | 2 | 1 | [{"id": "G0", "claim": "The integration test should also assert the value returned by the new getOldSlot method.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The deprecated getSlot and setSlot methods should carry a forRemoval deprecation annotation (... | null |
Minestom__Minestom__1272 | Minestom/Minestom | 1,272 | defect | d7e958fa07820882150567416f76b759a1dace6d | e2467f1ac3983f0f984e9568fd85add9ef1c9e32 | Add commit info from JitPack into Minestom's jar | Adds a `Git` class holding information about the build from JitPack.
So any extension or server implementation would have access to these.
I took group and artifact fields too, so one can tell what fork of Minestom is used.
| diff --git a/build.gradle.kts b/build.gradle.kts
index 5c8299fcc97..32f8a037754 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -2,6 +2,7 @@ plugins {
`java-library`
id("minestom.publishing-conventions")
id("minestom.native-conventions")
+ alias(libs.plugins.blossom)
}
allprojects {
@@ -39... | 4 | 4 | 1 | [{"id": "G0", "claim": "Having the version-info fields as static final is questionable because javac inlines them, so extensions would only know the version they compiled against rather than the one running.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cla... | null |
Minestom__Minestom__1275 | Minestom/Minestom | 1,275 | defect | d596992c0eafd8c5171f859aa49eca3dafe50669 | 29cd026a08d425f0aa018bddd2f2f2c6aa14bb85 | Add ComponentHolderServerPacket to some packets | Added the `ComponentHolderServerPacket` interface to some packets for global translation if `MinestomAdventure.AUTOMATIC_COMPONENT_TRANSLATION` is enabled | diff --git a/src/main/java/net/minestom/server/event/instance/InstanceRegisteredEvent.java b/src/main/java/net/minestom/server/event/instance/InstanceRegisteredEvent.java
new file mode 100644
index 00000000000..431aad2d27e
--- /dev/null
+++ b/src/main/java/net/minestom/server/event/instance/InstanceRegisteredEvent.java... | 11 | 11 | 3 | [{"id": "G0", "claim": "The new InstanceRegisteredEvent should not be introduced in this pull request.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In ActionBarPacket.components() Collections.singleton should be replaced with List.of.", "category": "ma... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.