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
Instagram__LibCST__698
Instagram/LibCST
698
defect
ff5fcf8dfb61280702fb343b57b2a5c1a01f0fe7
ff3965f1b3e1bba78b5a075bec94e8f24d279527
Fix slow qualified name perf in 0.4.2+
## Summary This is a performance fix for a change I made to correct compute qualified names in #682 ## Test Plan I hacked three versions of the `node_accesses` set creation in `Scope.get_qualified_names_for` and ran a perf test on them: ``` (libcstvenv) lpetre@lpetre-mbp LibCST % cat /tmp/fastero.json { ...
diff --git a/libcst/metadata/scope_provider.py b/libcst/metadata/scope_provider.py index f4db3e898..8c75585ea 100644 --- a/libcst/metadata/scope_provider.py +++ b/libcst/metadata/scope_provider.py @@ -406,16 +406,18 @@ class Scope(abc.ABC): #: Refers to the GlobalScope. globals: "GlobalScope" _assignment...
1
1
0
[{"id": "G0", "claim": "The new Scope attribute names should not use double-underscore prefixes (the reviewer asks why `__accesses_by_name` and `__accesses_by_node` use them).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
Instagram__LibCST__704
Instagram/LibCST
704
defect
6f28c799bb1ce4b0a00ac67b760b6a7ca29f786f
9bf0ceef326c43a9c9dce016895f95f71ad1d0e9
expression: fix SimpleString's quote method
## Summary Fix https://github.com/Instagram/LibCST/issues/636 ``` >>> from libcst import * >>> m = parse_module('''""""foo"""''') >>> m.body[0].body[0].value.raw_value Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\zsolz\projects\libcst\libcst\_nodes\expression.py"...
diff --git a/libcst/_nodes/expression.py b/libcst/_nodes/expression.py index 89a9d806b..1a90a5578 100644 --- a/libcst/_nodes/expression.py +++ b/libcst/_nodes/expression.py @@ -656,14 +656,20 @@ def quote(self) -> StringQuoteLiteral: if len(quote) == 2: # Let's assume this is an empty string. ...
2
1
1
[{"id": "G0", "claim": "The new test file libcst/_nodes/tests/test_simple_string.py is missing the license header the linter requires, and it should be added before merging.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The explicit str type hint...
null
Instagram__LibCST__841
Instagram/LibCST
841
defect
f668e88dd20b185fc79bedc4c8b3a237dd52f66d
4b2afd4eca6baf8205f2478a7a436166103b8b6b
[AddImportsVisitor] Docstring Check Only for the Top Element of the Body
## Summary Refer https://github.com/Instagram/LibCST/pull/343#issuecomment-1367622138 Instead of checking for docstring for all the elements of the body, this PR only keeps the check for the 0th element since our objective is to only honor the module docstrings. The reason I am asking for this, I found a case in o...
diff --git a/libcst/codemod/visitors/_add_imports.py b/libcst/codemod/visitors/_add_imports.py index a3ca32f98..9c4f04c54 100644 --- a/libcst/codemod/visitors/_add_imports.py +++ b/libcst/codemod/visitors/_add_imports.py @@ -283,7 +283,7 @@ def _split_module( # original tree but break up the statements of the ...
1
1
0
[{"id": "G0", "claim": "The new test should be renamed to test_import_in_module_with_standalone_string_not_a_docstring, since a string in a non-leading position is not a docstring.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Instagram__LibCST__879
Instagram/LibCST
879
defect
46509dd5e119ab3df7b53ef4eb281bde72a30409
23d78e0652addf5d0133d5fd78b5c39781beb128
Allow running codemods without configuring in YAML
## Summary This enables codemodding things by just plonking a CodemodCommand class into any old importable module and running `python -m libcst.tool codemod -x some_module.SomeClass ...`
diff --git a/libcst/codemod/tests/test_codemod_cli.py b/libcst/codemod/tests/test_codemod_cli.py index d0336d56b..5799ee10e 100644 --- a/libcst/codemod/tests/test_codemod_cli.py +++ b/libcst/codemod/tests/test_codemod_cli.py @@ -7,6 +7,7 @@ import platform import subprocess +import sys from pathlib import Path fr...
3
2
2
[{"id": "G0", "claim": "Running a codemod without configuring it in YAML should be explicit behind a command line flag instead of an implicit fallthrough behavior.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "Tests should be added for the new external-cod...
null
Instagram__MonkeyType__162
Instagram/MonkeyType
162
defect
a586173bdef8b41b43592cb93162f86f13f41069
423882677dff2ae872a4fc2e096435f8899bae4b
Handle TypedDicts nested within generic types.
Fixes #159. Earlier, we didn't pass in `max_typed_dict_size` recursively for all calls to `get_type`. This meant that `[{"a": 1}]` would produce the TypedDict class name even when `max_typed_dict_size` was set to 0. And since we didn't gather class stubs from nested generic types, the class definition stub wouldn't ...
diff --git a/monkeytype/stubs.py b/monkeytype/stubs.py index 11d3c0d7..8ff4b4b3 100644 --- a/monkeytype/stubs.py +++ b/monkeytype/stubs.py @@ -503,22 +503,62 @@ def __repr__(self) -> str: tuple(self.function_stubs.values()), tuple(sel...
4
3
0
[{"id": "G0", "claim": "The `stubs` property on ReplaceTypedDictsWithStubs is a pointless indirection over the stored list.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Prefer `typing.Type` (with a subscript) over bare `type` for the new annotations, t...
null
Instagram__MonkeyType__168
Instagram/MonkeyType
168
defect
699e290f9c4fed5dffb28c9173010ecece78d75c
990e7174b140a61393ad8fbec0804cd0598fcb1b
Shrink non-total TypedDicts.
Shrink TypedDicts by looking for fields that are present in all the TypedDicts and fields that are present only in some. Track required and non-required fields by adding a prefix to the keys. When all fields are non-required, generate a non-total TypedDict class stub. When there both required and non-required field...
diff --git a/monkeytype/cli.py b/monkeytype/cli.py index bcd435e4..e713c5ee 100644 --- a/monkeytype/cli.py +++ b/monkeytype/cli.py @@ -123,6 +123,7 @@ def get_stub(args: argparse.Namespace, stdout: IO, stderr: IO) -> Optional[Stub] rewriter = NoOpRewriter() stubs = build_module_stubs_from_traces( ...
6
6
2
[{"id": "G0", "claim": "The TypedDict stub-emission branches in rewrite_TypedDict duplicate more code than necessary and should be reduced, e.g. by processing required fields and then optional fields through shared code that possibly subclasses.", "category": "maintainability", "verdict": "supported", "priority": "P2",...
null
Instagram__MonkeyType__172
Instagram/MonkeyType
172
defect
3a44c53434f788fbb7e75b1b1beeaf06e7f020d0
947c684586d729343a4e5846fb7338f4a2097108
Use libcst to apply annotations instead of retype.
+ This enables `monkeytype apply` for our generated TypedDict classes. Add sanity tests. I've changed the ExistingAnnotationStrategy for `apply` to `REPLICATE` because the ApplyTypeAnnotationsVisitor doesn't apply function stubs that don't have a return type. (I'll add a flag and feature for this upstream in lib...
diff --git a/Pipfile b/Pipfile index f652aa3d..356133b6 100644 --- a/Pipfile +++ b/Pipfile @@ -14,6 +14,8 @@ sphinx = "*" twine = "*" django = "*" tox = "*" +libcst = "*" +dataclasses = "*" [pipenv] keep_outdated = true diff --git a/Pipfile.lock b/Pipfile.lock index d561d406..8aa2573c 100644 --- a/Pipfile.lock +...
1
1
0
[{"id": "G0", "claim": "Use textwrap.dedent() in the new test to avoid keeping all the test source at top-level indentation.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Instagram__MonkeyType__282
Instagram/MonkeyType
282
defect
21a7dcde6e13e46cba51a1e2723c47008e0fa02f
4e412c148e5a566cac8a4ce4a83e38307f76a66e
Move new imports to if TYPE_CHECKING block
Fix for https://github.com/Instagram/MonkeyType/issues/111 and https://github.com/Instagram/MonkeyType/issues/203
diff --git a/monkeytype/cli.py b/monkeytype/cli.py index 9e3a4772..9277bdf5 100644 --- a/monkeytype/cli.py +++ b/monkeytype/cli.py @@ -13,11 +13,24 @@ import runpy import sys from pathlib import Path -from typing import IO, TYPE_CHECKING, List, Optional, Tuple +from typing import ( + IO, + TYPE_CHECKING, + ...
4
4
3
[{"id": "G0", "claim": "The new files need to be reformatted with `black`; that step of CI is failing.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Tests are needed for this new functionality.", "category": "testing", "verdict": "supported", "prio...
null
Instagram__MonkeyType__29
Instagram/MonkeyType
29
defect
18ad48f06db00bc3fae16c1455a03f1bc8bb0e76
5e3c8d143260f5ea7c00ceb27192cde99b5841b8
Add Config.cli_context() as a hook for custom CLI initialization and cleanup logic.
Addressing #28, this PR adds the `cli_context()` method to Config so the CLI can use it as a context manager when running its command. The command name is passed so implementations can, e.g., not run `django.setup()` with `monkeytype run manage.py` (as that would be redundant) but still run it for `stub`/`apply`.
diff --git a/CHANGES.rst b/CHANGES.rst index 7f44302b..78d7a4e4 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,6 +4,7 @@ Changelog master ------ +* Add setup/teardown CLI lifecycle hooks. 17.12.2 ------- diff --git a/doc/configuration.rst b/doc/configuration.rst index cf6a83ed..b94ad291 100644 --- a/doc/confi...
2
2
1
[{"id": "G0", "claim": "The changelog entry should mention the GitHub issue number and, now that it exists, the pull request number too.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The separate cli_setup/cli_teardown hooks should be replaced by...
null
Instagram__MonkeyType__311
Instagram/MonkeyType
311
defect
49fc029acd3d31d3b5a68a89c3833dd90f18da0e
be9c34cfba9a0d2db1ddcd2c76ab9ae4e729814f
Add "most common base" rewriter
This is an attempted fix for #298: It replaces a union of types by the most common (i.e., most specific) base of all types in the union.
diff --git a/monkeytype/cli.py b/monkeytype/cli.py index 990079dc..3420e28b 100644 --- a/monkeytype/cli.py +++ b/monkeytype/cli.py @@ -111,12 +111,13 @@ def get_stub( args: argparse.Namespace, stdout: IO[str], stderr: IO[str] ) -> Optional[Stub]: module, qualname = args.module_path - thunks = args.config....
8
8
5
[{"id": "G0", "claim": "The base-walking code could just be `klass.mro()[1::-1]`, which would also handle multiple inheritance, which the implementation does not handle.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The min_len truncation of both lists ...
null
Instagram__MonkeyType__37
Instagram/MonkeyType
37
defect
2b47e449a812ad8ca6b19b49f4ec72e6e67d3e56
d605a33a5cf9486eba1a9f8c719faf22a41e3ff7
Improve CLI error messages
This PR makes the CLI error messages a little more explicit. I was trying to mistakenly pass in file system paths for modules, which didn't work. :)
diff --git a/monkeytype/cli.py b/monkeytype/cli.py index b5c25c22..efc219f4 100644 --- a/monkeytype/cli.py +++ b/monkeytype/cli.py @@ -6,6 +6,7 @@ import argparse import importlib import inspect +import os import os.path import runpy import subprocess @@ -41,6 +42,11 @@ def module_path(path: str) -> Tuple[str, Op...
2
2
1
[{"id": "G0", "claim": "The test should use `func.__module__` again and assert on the full error message instead of only a `startswith` prefix.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `(module, qualname)` tuple representation in the 'no trace...
null
Instagram__MonkeyType__46
Instagram/MonkeyType
46
defect
c30587d03041bd950f4364a75c52b95b1120b765
975100db51b7f617df96b79ce585cccd5ce26708
Add support for django.utils.functional.cached_property
Howdy, I think this is what is needed for #9. It passes `pytest`, `flake`, and `mypy`. I'm not sure if I completely mangled the `Pipfile.lock` file though. <img width="473" alt="screen shot 2018-01-03 at 10 51 05 pm" src="https://user-images.githubusercontent.com/4838266/34550705-a1364742-f0d8-11e7-8371-6af53038ae49...
diff --git a/Pipfile b/Pipfile index a2fc214a..56235a3e 100644 --- a/Pipfile +++ b/Pipfile @@ -15,8 +15,9 @@ pytest-smartcov = "*" cython = "*" sphinx = "*" twine = "*" +django = "*" [requires] -python_version = "3.6" \ No newline at end of file +python_version = "3.6" diff --git a/Pipfile.lock b/Pipfile.lock...
4
4
2
[{"id": "G0", "claim": "The early-return refactor of get_func_in_module is unrelated to this pull request; revert it and keep the single-return-per-function style.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The pull request's changes to get_...
null
Instagram__MonkeyType__52
Instagram/MonkeyType
52
defect
1f7b42773edd42c38e78e49c2a0e585fcf109b0d
a9d580fb588849f3ab311f64f4324f8ee81784dc
Display retype errors
Catch retype failures and print the error so the user has a better idea of what went wrong. Fixes #49.
diff --git a/monkeytype/cli.py b/monkeytype/cli.py index fbe8364a..627f03e7 100644 --- a/monkeytype/cli.py +++ b/monkeytype/cli.py @@ -101,6 +101,10 @@ def get_stub(args: argparse.Namespace, stdout: IO, stderr: IO) -> Optional[Stub] return stubs.get(module, None) +class HandlerError(Exception): + pass + + ...
2
2
1
[{"id": "G0", "claim": "The top-level handler in main() should catch Exception rather than only HandlerError, so any exception returns 1 and is printed the same way at the final error boundary.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "CHANGES.rst s...
null
Instagram__MonkeyType__55
Instagram/MonkeyType
55
defect
0119311745449560e30ef554ba449a99c1b6679d
0b8a6e245b8b2980b6fc6ac4a660b23a248a2956
Enhancement: ignore existing annotations
This PR implements the enhancement suggested in issue #15 The `update_signature_args` part is a bit complicated, and I am not sure whether I am doing it right. I tested whether a `typ` is `None` or `NoneType`. If so, I assign it as `inspect.Parameter.empty`. I think is related to issue #5 when it regarding parame...
diff --git a/monkeytype/cli.py b/monkeytype/cli.py index 627f03e7..6c04fc93 100644 --- a/monkeytype/cli.py +++ b/monkeytype/cli.py @@ -95,7 +95,8 @@ def get_stub(args: argparse.Namespace, stdout: IO, stderr: IO) -> Optional[Stub] rewriter = args.config.type_rewriter() if args.disable_type_rewriting: ...
6
6
2
[{"id": "G0", "claim": "Switch the build_module_stubs_from_traces call in get_stub to keyword arguments (with the vertical indentation style) to avoid future bugs from mis-ordered arguments.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Fix the \"Dont'\...
null
Instagram__MonkeyType__59
Instagram/MonkeyType
59
defect
178e8898b1ba51b9f21f0e5558641be19e4228fd
8848bc5c9c85558e37a7af8827af64c142044afb
Enhencement: stub --diff
This implements issue #58. [`difflib.ndiff`](https://docs.python.org/2/library/difflib.html#difflib.ndiff) is used. In the current implementation, only stubs that differ are shown to users. Demo: ```python def func_anno(a: int, b: str) -> None: pass def func_anno2(a: str, b: str) -> None: pass ``` Tw...
diff --git a/monkeytype/cli.py b/monkeytype/cli.py index f073b953..436ca0eb 100644 --- a/monkeytype/cli.py +++ b/monkeytype/cli.py @@ -5,6 +5,7 @@ # LICENSE file in the root directory of this source tree. import argparse import collections +import difflib import importlib import inspect import os.path @@ -137,12 ...
2
1
0
[{"id": "G0", "claim": "Modules/functions may not appear in the same order between the two get_stub calls, which may produce an incorrect diff.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "print_stub_handler should be simplified to the suggested s...
null
Instagram__MonkeyType__69
Instagram/MonkeyType
69
defect
394f9e5a676a35684b7c320ec455fa699565c22a
ba38988bee19262d917dc2a9ec66494a2b696cf1
Handle __init__.py for modules, print stdout from retype
Closes https://github.com/Instagram/MonkeyType/issues/66 Generate stubs for modules where the module file is like module/__init__.py This change preserves the original behavior for modules that are not __init__.py This change also includes a minor fix to print the stdout/sterr output of retype. pytests pass. C...
diff --git a/CHANGES.rst b/CHANGES.rst index 94249064..489a093f 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -10,6 +10,10 @@ master * Add ``--ignore-existing-annotations`` option to ``monkeytype stub``. Merge of #55, fixes #15. Thanks Tai-Lin! +* Generate stubs for modules where the module file is like module/__...
7
7
3
[{"id": "G0", "claim": "The __init__.py branch in apply_stub_handler is more complex than needed: creating a subdirectory under the temp dir is unnecessary because retype only receives the final file-containing directory, so just use `__init__.pyi` as the filename.", "category": "maintainability", "verdict": "supported...
null
Instagram__MonkeyType__72
Instagram/MonkeyType
72
defect
31151ee936ba51891fecc6eb449a4f39db30f7b9
f8f9dd5c79e2300a0f7ab7e47110a2277e5b68f7
The minimum changes to allow __main__ modules to be typed. #68
This commit moves the filtering logic for __main__ modules to the CallTraceStoreLogger. @carljm is this what you were thinking? All of the current tests are passing locally for me and it is back to working order in IPython. If this is in the right direction I'll start ticking off the contribution guidelines requir...
diff --git a/monkeytype/db/base.py b/monkeytype/db/base.py index 38eb6dc8..a5fda0a8 100644 --- a/monkeytype/db/base.py +++ b/monkeytype/db/base.py @@ -71,7 +71,8 @@ def __init__(self, store: CallTraceStore) -> None: self.traces: List[CallTrace] = [] def log(self, trace: CallTrace) -> None: - self...
3
3
3
[{"id": "G0", "claim": "The filter calls `startwith`, a typo that should be `startswith` and that the TravisCI typecheck is pointing out.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The filter should check `trace.func.__module__` instead of `__qu...
null
Instagram__MonkeyType__83
Instagram/MonkeyType
83
defect
dd5d862d20b07f046e82c563ddd827e93c315fda
97a47356a5fb20df52fea8c74902f19319f3c994
Allow typing specified modules in site-packages
#82 This PR allows users to define an environment variable `MONKEYTYPE_MODULE` with name of a module, which would be typed by MonkeyType even if it is under Python site-packages.
diff --git a/monkeytype/config.py b/monkeytype/config.py index 7b18d419..be7fa64d 100644 --- a/monkeytype/config.py +++ b/monkeytype/config.py @@ -115,7 +115,8 @@ def default_code_filter(code: CodeType) -> bool: return False filename = pathlib.Path(code.co_filename).resolve() - return not any(_starts...
5
5
4
[{"id": "G0", "claim": "The `__unspecified__` sentinel default for the env var is hacky because that string could technically be part of a file path; default to `None` and explicitly check it is not `None` instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1...
null
Instagram__MonkeyType__88
Instagram/MonkeyType
88
defect
9fb191a4799c143c6ba3e9fec8b752957223762e
6320aec67ae8effa6a72178b76e940faaab7d6b8
Print useful error message when filename is passed to stub/apply
Fixes #65.
diff --git a/monkeytype/cli.py b/monkeytype/cli.py index ae654ab4..7a39ca5c 100644 --- a/monkeytype/cli.py +++ b/monkeytype/cli.py @@ -65,6 +65,10 @@ def complain_about_no_traces(args: argparse.Namespace, stderr: IO) -> None: module, qualname = args.module_path if qualname: print(f'No traces found fo...
1
1
1
[{"id": "G0", "claim": "Tweak the new error message: saying 'foo.py does not look like a valid Python import path' is wrong (it does look like one), so use the suggested wording 'No traces found for {module}; did you pass a filename instead of a module name? Maybe try just \"{splitext stem}\".'", "category": "correctne...
null
IntellectualSites__FastAsyncWorldEdit__1168
IntellectualSites/FastAsyncWorldEdit
1,168
defect
22f11abce837e18aee05fe38bd4f4323b55fa4da
b89f4f41243c82317c7b547ccded20ce5cc8ee98
Fixed Unit Tests (BlockVector3.isLongPackable)
## Overview Fixed the broken Tests ## Description Missing upstream changes fromn https://github.com/EngineHub/WorldEdit/commit/7676a2d54c3c3c2d5bb3ebaf2f6847dc386772da in BlockVector3.java broke the tests - was fixed and tests were re-enabled in the action file. ## Checklist <!-- Make sure you have completed t...
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f8629843e7..f4bc6ff94b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -46,7 +46,7 @@ jobs: - name: "Run BuildTools" run: "java -jar BuildTools.jar --rev 1.16.5" - name: "Clean Build" - run: ...
2
1
0
[{"id": "G0", "claim": "The build/tests fail because FAWE's tree-type loading warns through code that needs a live Bukkit server; the reviewer asks that the Bukkit#getVersion logging in BukkitWorld.java be replaced with a basic message, and the author suggests a Bukkit-server mocking library might fix the tests.", "cat...
null
IntellectualSites__FastAsyncWorldEdit__1382
IntellectualSites/FastAsyncWorldEdit
1,382
defect
14cb97d0ad309d854daea7b5068fb393b790c317
2983ff8baa7cbf4832e4fc2a2bc4efd9a5c16ed7
Expand certain FAWE limits to use Long instead of Integer.
## Overview <!-- Please describe which issue this pull request targets. If there is no issue, please create one so we can look into it before approving your PR. --> Fixes #1381 ## Description <!-- Please describe what this pull request does. --> This pull request changes the data types of MAX_CHANGES, MA...
diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/configuration/Settings.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/configuration/Settings.java index 30f0aaa8ce..c7041daad1 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/configuration/Settings.java +++ b/wo...
5
3
2
[{"id": "G0", "claim": "Increasing the history limit (MAX_HISTORY) from 1.25 PetaBytes to 5.4 billion PetaBytes seems unneeded and should be dropped from the PR.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "EditSession.getBlockChangeLimit() should not ...
null
IntellectualSites__FastAsyncWorldEdit__1624
IntellectualSites/FastAsyncWorldEdit
1,624
defect
23b5f0cb4aeac4946818fdaab70ea6c4e615c717
41adc34c4741bc9d7d414c8688b24f75f13e679d
Fix clipboards to allow proper heights by allowing extended CuboidRegion heights
Fixes #1534
diff --git a/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/FaweBukkit.java b/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/FaweBukkit.java index 7e60a05cb1..71fee08abe 100644 --- a/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/FaweBukkit.java +++ b/worldedit-bukkit/src/main/...
1
1
0
[{"id": "G0", "claim": "The javadoc for the new CuboidRegion(World, BlockVector3, BlockVector3, boolean) constructor is missing an @param entry for the boolean parameter.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
IntellectualSites__FastAsyncWorldEdit__2312
IntellectualSites/FastAsyncWorldEdit
2,312
defect
39de48cdb117d1734d1374bac5fe54b0d71deebe
70fdc9e9aa2bb0255554b21a2567596e90051b66
feat: improve (region) fawe mask handling
- Actually cache masks, even if the player has left the region - Fix P2 isValid test for single plots - Fixes #1946 - Fixes #2137
diff --git a/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/FaweBukkit.java b/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/FaweBukkit.java index e4f66dea36..bc8434345c 100644 --- a/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/FaweBukkit.java +++ b/worldedit-bukkit/src/main/...
2
1
1
[{"id": "G0", "claim": "The much more lenient persistent caching of masks introduced by this change may cause a memory leak, and the author asks for others' thoughts on whether that is a risk given the cache is invalidated on world change.", "category": "performance", "verdict": "uncertain", "priority": "P3", "scope": ...
null
IntellectualSites__FastAsyncWorldEdit__3184
IntellectualSites/FastAsyncWorldEdit
3,184
defect
f137a119fd7b884cd5922ecaeceea1933cb8a26b
ea20641f8e88bb2d8335c61f5f25e717187ce21d
chore: upstream merges
fixes #3179
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index c980187054..3919f3b513 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,6 +1,6 @@ [versions] # Minecraft expectations -paper = "1.21-R0.1-SNAPSHOT" +paper = "1.21.5-R0.1-SNAPSHOT" fastutil = "8.5.9" guava = "31.1-jr...
1
1
1
[{"id": "G0", "claim": "Bumping the paper version in gradle/libs.versions.toml may break binary compatibility with older versions because the SpigotAdapter references net.md_5.bungee.chat.ChatVersion/VersionedComponentSerializer, which changed from enum to interface in the 1.21.5 API.", "category": "correctness", "verd...
null
IntellectualSites__PlotSquared__2869
IntellectualSites/PlotSquared
2,869
defect
b5818bfefcb3c40bebb397f7a7e49607fcc1095b
7acf617e739be89e76aacf424e8394e68e6bda5e
Split visit command into home and visit
This PR introduces a new command `home` to make the visit command less ambiguous.
diff --git a/Core/src/main/java/com/plotsquared/core/command/HomeCommand.java b/Core/src/main/java/com/plotsquared/core/command/HomeCommand.java new file mode 100644 index 0000000000..779d97ef29 --- /dev/null +++ b/Core/src/main/java/com/plotsquared/core/command/HomeCommand.java @@ -0,0 +1,169 @@ +/* + * _____ _...
4
4
3
[{"id": "G0", "claim": "The new usage string of /plot visit is no longer correct and should probably be '<player>|<alias>|<plot>'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The page validation in the 3-argument case is ambiguous and the usage...
null
IntellectualSites__PlotSquared__3264
IntellectualSites/PlotSquared
3,264
defect
ada21e0382845a306095001235886ddc48b22be3
8288fe5f926c4c2c13cd992a012359bef89e0a63
Respect non-visible players in tab completion (Closes #3263)
## Overview **Fixes https://github.com/IntellectualSites/PlotSquared/issues/3263** ## Description Tabcompletions for PlotSquared now respects Bukkits Player#canSee (platform independent: PlotPlayer#canSee) to ensure only visible players are recommended using tab completion. Changes signatures: - `TabCompletion...
diff --git a/Core/src/main/java/com/plotsquared/core/command/Add.java b/Core/src/main/java/com/plotsquared/core/command/Add.java index dc7f9ba38d..30ac637b9c 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Add.java +++ b/Core/src/main/java/com/plotsquared/core/command/Add.java @@ -166,7 +166,7 @@ public Co...
1
1
1
[{"id": "G0", "claim": "Instead of breaking the existing TabCompletions methods by changing their signatures in place, the old methods should have been kept, deprecated and scheduled for removal while pointing to the newer ones.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
InteractiveComputerGraphics__fenris__2
InteractiveComputerGraphics/fenris
2
defect
997e34c48de343cf8fe5862699fc65534d77213a
9dc70b7067d52ca14e6577fc970752418320af51
Implement par_compute_global_potential
This implements a parallel version of `compute_global_potential` using Rayon with `map` + `try_reduce`.
diff --git a/src/assembly/global.rs b/src/assembly/global.rs index ca2c7511..9425cc9f 100644 --- a/src/assembly/global.rs +++ b/src/assembly/global.rs @@ -590,6 +590,26 @@ where Ok(global_potential) } +/// Computes the value of a global scalar potential as a sum of element-wise scalars in parallel. +pub fn par_...
1
1
0
[{"id": "G0", "claim": "Move the MockScalarElementAssembler out of test_compute_global_potential and put the parallel computation in its own test whose name contains \"par\", so tests dealing with parallelism can be spotted quickly.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced...
null
InteractiveComputerGraphics__fenris__3
InteractiveComputerGraphics/fenris
3
defect
ac14484756a00025b58dfc0e59c417d8d1d33a76
a29947d8a51eadf8bfefac02fcd3fc0c7b4833cc
Implement VectorParAssembler
This PR mainly - refactors `color_nodes` to use `&FiniteElementConnectivity + ?Sized` instead of `&[Connectivity]` - renames `SerialVectorAssembler` to `VectorAssembler` - implements `VectorParAssembler` - adds `assert_eq` checks to the convergence tests to compare the results of the serial and parallel assemblers ...
diff --git a/examples/poisson2d.rs b/examples/poisson2d.rs index ba0950fb..831b36fe 100644 --- a/examples/poisson2d.rs +++ b/examples/poisson2d.rs @@ -2,7 +2,7 @@ use eyre::eyre; use nalgebra::Vector1; use fenris::assembly::global::{ - apply_homogeneous_dirichlet_bc_csr, apply_homogeneous_dirichlet_bc_rhs, CsrAs...
1
1
0
[{"id": "G0", "claim": "CsrParAssembler and VectorParAssembler should get convenience methods that also allocate the output storage, as CsrAssembler already has, which would make the parallel-assembly checks in the convergence tests more compact and be useful when prototyping.", "category": "design", "verdict": "suppor...
null
InternLM__InternLM__259
InternLM/InternLM
259
defect
860de0aa4679d1e7135ded1c03a79b0b815694ba
f3feb039f331ba079f01ac2c3a3812e97074836c
feat(ckpt): checkpoint bug fixes and feature enhancements.
## Motivation 1. - [x] add unittests for `CheckpointManager`. 2. - [x] fix `StorageManager` get_fns bug. 3. - [x] fix `CheckpointManager` querying latest boto3/local checkpoint bug when snapshot not found. 4. - [x] fix `CheckpointManager` returned latest local checkpoint path not be set 'local:' prefix. 5. - [x...
diff --git a/configs/7B_sft.py b/configs/7B_sft.py index 1f1993ff..9b8ae06e 100644 --- a/configs/7B_sft.py +++ b/configs/7B_sft.py @@ -22,13 +22,10 @@ ckpt = dict( enable_save_ckpt=False, # enable ckpt save. save_ckpt_folder=SAVE_CKPT_FOLDER, # Path to save training ckpt. - # load_ckpt_folder=LOAD_CKPT_...
13
12
4
[{"id": "G0", "claim": "Add a separate config key to carry the dict-style checkpoint-load settings instead of overloading load_ckpt_folder, make the content value a tuple rather than a list, and document the allowed content values (\"all\", \"model\", \"optimizer\", \"sampler\", \"scheduler\").", "category": "design", ...
null
InternLM__InternLM__319
InternLM/InternLM
319
defect
ab513e1ddd85347d4eece53a8acff3228453e309
98329da3279019a2a2eea503673661fb630e35f9
Feat(norm)/support fused precision
Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers. ## Motivation Support fp32 training for norm laye...
diff --git a/internlm/core/naive_amp.py b/internlm/core/naive_amp.py index 7470659f..04f3ee2c 100644 --- a/internlm/core/naive_amp.py +++ b/internlm/core/naive_amp.py @@ -3,7 +3,8 @@ # adopted from https://github.com/hpcaitech/ColossalAI/tree/main/colossalai/amp -from typing import Any +from functools import p...
11
11
3
[{"id": "G0", "claim": "The check for self.model being an nn.ModuleList is missing its other branch, so when self.model is a ModuleList the variable model is never defined and the module-collection loop would fail.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1...
null
InternLM__lmdeploy__1302
InternLM/lmdeploy
1,302
defect
d6c984797aa2fab40100fe30294319af89b38510
22b29f0be055ee60a3043deb12484a9e328582ea
Add restful interface regrssion daily test workflow.
1. whl package instead of build process 2. add restful interface regression into daily workflow. Now restful testcase will lead server crash in main branch, so the default value is false. daily workflow will like this: ![image](https://github.com/InternLM/lmdeploy/assets/145004780/e8d007ff-81fe-4d68-88b3-806af3...
diff --git a/.github/workflows/daily_ete_test.yml b/.github/workflows/daily_ete_test.yml index 728a467ab8..e9e9f95fa8 100644 --- a/.github/workflows/daily_ete_test.yml +++ b/.github/workflows/daily_ete_test.yml @@ -23,16 +23,80 @@ on: description: 'Set testcase module filter: chat, restful, pipeline, quantizat...
4
3
1
[{"id": "G0", "claim": "The 'Free disk space' step enables removal options (android, dotnet, haskell) that are unnecessary for this workflow and should be dropped or tried without them.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Adding matplotli...
null
InternLM__lmdeploy__1579
InternLM/lmdeploy
1,579
defect
a27dac3529dc5e1f8bedb4fa1c00a45bea2644fb
ecd0f7cf4aeabc7a31918e6d11a8b7424eda783a
support mistral and llava_mistral in turbomind
Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily receiving feedbacks. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers. ## Motivation resolve #1573 Note that ...
diff --git a/README.md b/README.md index 3e57f7d0e6..fa73417d06 100644 --- a/README.md +++ b/README.md @@ -120,18 +120,17 @@ For detailed inference benchmarks in more devices and more settings, please refe <li>Mixtral (8x7B, 8x22B)</li> <li>Gemma (2B - 7B)</li> <li>Dbrx (132B)</li> + <li>StarCoder2 (3B - 15B)...
4
3
1
[{"id": "G0", "claim": "Remove the MistralForCausalLM='llama' entry that the PR appended at the end of SUPPORTED_ARCHS (irexyc asked 这个是不是要去掉 — shouldn't this be removed).", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The auto-backend unit test is ...
null
InternLM__lmdeploy__1782
InternLM/lmdeploy
1,782
defect
bd431bfc74a7132c146c67a21fdd3446fc5870c4
9d3de965c45f2b7ad889829cbe0e938138125d6b
support qwen2 1.5b
qwen2 1.5b set `tie_word_embeddings=True`. In this case, the output layer and the token embedding layer share the same weight
diff --git a/lmdeploy/turbomind/deploy/source_model/llama.py b/lmdeploy/turbomind/deploy/source_model/llama.py index 6bd86e4257..bf1307c20e 100644 --- a/lmdeploy/turbomind/deploy/source_model/llama.py +++ b/lmdeploy/turbomind/deploy/source_model/llama.py @@ -7,6 +7,7 @@ import torch from safetensors.torch import load...
2
1
1
[{"id": "G0", "claim": "Passing the raw HF model config (self.model_config) to the Reader instead of model_info() will affect many models, like internlm2 and internvl, which then need their own config handling to keep working.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}...
null
InternLM__lmdeploy__2584
InternLM/lmdeploy
2,584
defect
9b52f8d5b5131dd0a7e8f2069a25719daec51dbc
43d72d12a87dffe07aba2bbb2619b999d3c19c58
[ci] add pytorch kvint testcase into function regresstion
after https://github.com/InternLM/lmdeploy/pull/2438 1. [tested] add pytorch kvint testcase 2. [tested] review test config according to support models, most models supported by turbomind are compatible with kvint and 4-bit quantization. Modify the configuration YAML file to make it easy to maintain. 3. [testing] ...
diff --git a/autotest/config.yaml b/autotest/config.yaml index 07505718c6..9513f9d446 100644 --- a/autotest/config.yaml +++ b/autotest/config.yaml @@ -57,10 +57,13 @@ turbomind_chat_model: - deepseek-ai/deepseek-coder-1.3b-instruct - codellama/CodeLlama-7b-Instruct-hf - THUDM/glm-4-9b-chat + - openbmb...
6
4
1
[{"id": "G0", "claim": "Qwen2-VL is not supported by the turbomind backend (convert crashes with an assertion), so the model/backend support table (the test matrix) should be updated to reflect that.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
InternLM__lmdeploy__2751
InternLM/lmdeploy
2,751
defect
0c80baa001e79d0b7d182b8a670190801d2d8d5b
5dc87acb58c5dbf65bfe8cf9de634a2025a7b0a6
[CI] Split vl testcases into turbomind and pytorch backend
split vl testcases into turbomind and pytorch backend ![image](https://github.com/user-attachments/assets/5ab201c3-7ff6-4051-ad58-a6e1d7de03d8)
diff --git a/.github/scripts/eval_base_config.py b/.github/scripts/eval_base_config.py index 8915decc7c..9a2b5fc39e 100644 --- a/.github/scripts/eval_base_config.py +++ b/.github/scripts/eval_base_config.py @@ -89,6 +89,17 @@ models as lmdeploy_qwen1_5_7b # noqa: F401, E501 from opencompass.configs.model...
6
6
3
[{"id": "G0", "claim": "Turbomind supports both Llama-3.2-1B and Llama-3.2-3B, so Llama-3.2-1B-Instruct should stay in turbomind_chat_model in autotest/config.yaml alongside the newly added 3B entry instead of being replaced by it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"...
null
InternLM__lmdeploy__2949
InternLM/lmdeploy
2,949
defect
9c164437604b521f972d6069b9ce63289b066274
d10f9b601ca88fac844aa9484373eab2a77a69c6
[ci] add w8a8 and internvl2.5 models into testcase
1. update test env installation, use /root/packages/flash_attn-*.whl instead of paticular version 2. add gemma-2-27-it and qwen2.5-7b-instruction and some w8a8 models into evalation test 3. add w8a8 models into benchmark test 4. add more models into function test, including internvl2.5 and Molmo-7B-D-0924. 5. ad...
diff --git a/.github/scripts/eval_chat_config.py b/.github/scripts/eval_chat_config.py index e2463c0f39..19d8cca9b6 100644 --- a/.github/scripts/eval_chat_config.py +++ b/.github/scripts/eval_chat_config.py @@ -1,7 +1,7 @@ from copy import deepcopy from mmengine.config import read_base -from opencompass.models impo...
3
3
3
[{"id": "G0", "claim": "The reviewer asks what turbomind_internlm2_5_7b_chat_batch1 was used to test and why the pull request removes it, i.e. the removal drops that test coverage.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks why turb...
null
InternLM__lmdeploy__2953
InternLM/lmdeploy
2,953
defect
9565505989c911f996fea646bc945cf8f276532f
b736a5fc9328b2da086fa579534bc561ee607b85
Fallback to pytorch engine when the model is quantized by smooth quant
Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily receiving feedbacks. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers. ## Motivation Please describe the motivati...
diff --git a/autotest/utils/config_utils.py b/autotest/utils/config_utils.py index 24b4a3f8cd..dd8db1ccc4 100644 --- a/autotest/utils/config_utils.py +++ b/autotest/utils/config_utils.py @@ -97,7 +97,7 @@ def get_all_model_list(tp_num: int = None, model_type=model_type): ...
2
1
0
[{"id": "G0", "claim": "The autotest model-list util must be updated in this PR (related to issue #2595) and the change tested, per the screenshot shown.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "The new hardcoded get_quantization_config is less gener...
null
InternLM__lmdeploy__3038
InternLM/lmdeploy
3,038
defect
3c660f1575e6e5433d51c053aebd0823d55fbd03
f71908c6bc938cfbc1b1ed8083eb16ed73ad0ee7
[ci] add internlm3 into testcase
1. add internlm3 into testcase 2. add benchmark test into pr test 3. add mixtrial 8x7b into pr test 4. add max_new_tokens parameters into testcase
diff --git a/.github/scripts/eval_base_config.py b/.github/scripts/eval_base_config.py index 9a2b5fc39e..7180147dc7 100644 --- a/.github/scripts/eval_base_config.py +++ b/.github/scripts/eval_base_config.py @@ -191,4 +191,4 @@ for model in [v for k, v in locals().items() if '_batch1' in k]: model['abbr'] = model[...
4
3
1
[{"id": "G0", "claim": "Hardcoding cache_max_entry_count=0.6 on the TurbomindEngineConfig in run_pipeline_vl_chat_test may be unnecessary.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The max_batch_size = 1 setting in the '_batch1' loop of eval_base_co...
null
InternLM__lmdeploy__3134
InternLM/lmdeploy
3,134
defect
2a69e0ab1a04ae9edef48515eea4f66b5367a9ce
1e4bcf1f00d35b4f4ee9a85a8383ffeb91e5298c
[ci] fix some fail in daily testcase
1. remove xformers installation in test env. 2. add log_level='INFO', max_log_len=10 into pipeline testcase 3. fix oc evaluation cli because of oc's upgrade
diff --git a/.github/scripts/action_tools.py b/.github/scripts/action_tools.py index 1891ebed4f..46bc1cee21 100644 --- a/.github/scripts/action_tools.py +++ b/.github/scripts/action_tools.py @@ -35,7 +35,7 @@ def run_cmd(cmd_lines: List[str], log_path: str, cwd: str = None): cmd_for_run = ' '.join(cmd_lines) ...
4
1
1
[{"id": "G0", "claim": "The reviewer asks what `sentence_transformers==2.2.2` — installed in place of the xformers wheel — is used for.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks whether the stray first line of the newly added sc...
null
InternLM__lmdeploy__3593
InternLM/lmdeploy
3,593
defect
4fcc91c7dea17390dc5fb77f0537fcf3fd6724be
3fb8eed4975cf6e821c669cdb4f9697c5a6c509f
[ci] add qwen3 models into testcase
1. add qwen3 models and some tp=8 models into testcase 2. add pr_full_test for pr function regression
diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 591d412480..3a36cd1d8f 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -128,7 +128,8 @@ jobs: run: | pytest autotest/benchmark/test_${{matrix.benchmark_type}}_performance.py -...
6
1
0
[{"id": "G0", "claim": "The new test function name has a typo (`kvin8`); it should read `kvint8` to be consistent with other tests and the `quant_policy=8` parameter.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The special handling of `tp_num...
null
InternLM__lmdeploy__4023
InternLM/lmdeploy
4,023
defect
49f632483e93cfd3d09ef743508c07a68a763e26
5cd3fb8aa1658903e9fef006f4badcca10dd35f1
Fix GPT-OSS streaming tool call parsing
Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily receiving feedbacks. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers. ## Motivation Fix incorrect function-call ...
diff --git a/lmdeploy/serve/openai/harmony_utils.py b/lmdeploy/serve/openai/harmony_utils.py index 25c24749ab..b556b95477 100644 --- a/lmdeploy/serve/openai/harmony_utils.py +++ b/lmdeploy/serve/openai/harmony_utils.py @@ -58,9 +58,17 @@ def parse_streaming(self, tokens: List[int]) -> DeltaMessage: ...
1
1
1
[{"id": "G0", "claim": "The reviewer asks whether `name=tool_name` should be omitted when the delta continues an existing tool call, since the added code re-attaches the tool name on a continuation chunk via `DeltaFunctionCall(name=tool_name, arguments='')`.", "category": "correctness", "verdict": "supported", "priorit...
null
InternLM__lmdeploy__4028
InternLM/lmdeploy
4,028
defect
aef63634837f1db3c1204dfaed84d1cf6ecc3e08
443db853a585479d9c8c89254b2aba2f4341021d
Reimplement guided decoding with xgrammar for PyTorch Engine
## Motivation The original outlines-based guided decoding in the PyTorch engine has three major problems: 1. **Token-level mismatch & poor performance** Outlines works on **characters**, not on **tokens**. - It builds the FSM on the *string* vocabulary and then maps every *character* transition back...
diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 1f17235522..f79ed234e6 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -64,7 +64,6 @@ jobs: python3 -m pip install /root/packages/cu118/flash_attn-*.whl python3 -m pip install...
1
1
1
[{"id": "G0", "claim": "The session_ctx and session_to_cleanup fields should be placed in SamplingInputs rather than threaded through as standalone parameters.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
InternLM__lmdeploy__4029
InternLM/lmdeploy
4,029
defect
420b5c4e72a587b3dae356cb86be96b0b04f83de
d4be176b2f365c6f773602bc19908c7c80db85ab
Fix message content field handling for tool calls and multimodal input
This commit fixes two issues with message content processing: 1. **Missing content field in tool call responses**: When assistant messages contain tool_calls, the content field may be missing or None, causing KeyError when checking isinstance(msg['content'], list). 2. **Incomplete multimodal text merging**: Previ...
diff --git a/lmdeploy/serve/async_engine.py b/lmdeploy/serve/async_engine.py index 0e7bbdf7eb..7651999bb9 100644 --- a/lmdeploy/serve/async_engine.py +++ b/lmdeploy/serve/async_engine.py @@ -32,6 +32,57 @@ logger = get_logger('lmdeploy') +def _merge_message_content(msg: Dict) -> Dict: + """Merge multimodal cont...
2
2
0
[{"id": "G0", "claim": "The PR author should confirm that the new text-merging behavior aligns with the model's instructed training behavior, because lmdeploy expects users to assemble the entire text in text[0] using image token placeholders.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "...
null
InternLM__lmdeploy__4181
InternLM/lmdeploy
4,181
defect
c5a05c1c890b45b7657b7f9459213ff9538fd214
7113aec123dad4e7dd5a5d9c943852fd0eb4e781
Add generate test
Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily receiving feedbacks. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers. ## Motivation Please describe the motivati...
diff --git a/autotest/evaluate/test_api_evaluate.py b/autotest/evaluate/test_api_evaluate.py index cd78c33e78..55c314e687 100644 --- a/autotest/evaluate/test_api_evaluate.py +++ b/autotest/evaluate/test_api_evaluate.py @@ -171,9 +171,9 @@ def get_turbomind_model_list(tp_num): new_model_list = [] for model in ...
2
2
0
[{"id": "G0", "claim": "The eos_token-defaulting block in _load_tokenizer_cached reads as unexplained defensive code for a test utility, and the reviewer asks what its motivation is.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "encode_text sho...
null
InternLM__lmdeploy__4194
InternLM/lmdeploy
4,194
defect
c5a05c1c890b45b7657b7f9459213ff9538fd214
2975c55ab3795949982cb70219aa3f8267e4c724
[ci] add mllm eval
Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily receiving feedbacks. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers. ## Motivation Please describe the motivati...
diff --git a/.github/workflows/api_eval.yml b/.github/workflows/api_eval.yml index b54c0422e6..31232d653e 100644 --- a/.github/workflows/api_eval.yml +++ b/.github/workflows/api_eval.yml @@ -15,7 +15,7 @@ on: default: 'main' backend: required: true - description: 'Set backend testcase fi...
15
1
0
[{"id": "G0", "claim": "The variable 'md_summamary_file' in write_to_summary is misspelled and should be renamed 'md_summary_file'.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The llm_summary call sites in eval_test (temp-config-missing, eval...
null
InternLM__lmdeploy__4200
InternLM/lmdeploy
4,200
defect
a34db184da3b13dd80c01049bac5ebd8fd5b90bb
1d124f8a1701f25bd8e3d1e43524a02d93443558
Fix processor args
Though previously mm processor args are passed inside the function, it seems not working by observing the prompt token usages. Therefore fix in this PR.
diff --git a/lmdeploy/serve/openai/protocol.py b/lmdeploy/serve/openai/protocol.py index 57678ad324..87da27c797 100644 --- a/lmdeploy/serve/openai/protocol.py +++ b/lmdeploy/serve/openai/protocol.py @@ -449,6 +449,11 @@ class GenerateReqInput(BaseModel): spaces_between_special_tokens: Optional[bool] = True in...
2
2
1
[{"id": "G0", "claim": "The author should provide a test example covering the processor-args behaviour.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new boundary checks should warn about invalid min_pixels/max_pixels inputs instead of raising an a...
null
InternLM__lmdeploy__4230
InternLM/lmdeploy
4,230
defect
9016c3bf71624420638aa0cb03fc4cb4bb7bcf34
1b4e573565644205fc4d4566595781f1d289f8d9
fix scale-fmt
Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily receiving feedbacks. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers. ## Motivation Please describe the motivati...
diff --git a/lmdeploy/pytorch/backends/cuda/attention.py b/lmdeploy/pytorch/backends/cuda/attention.py index 5cecf5611a..9cf5f92472 100644 --- a/lmdeploy/pytorch/backends/cuda/attention.py +++ b/lmdeploy/pytorch/backends/cuda/attention.py @@ -576,6 +576,7 @@ def run_fill_kv_cache(self, max_q_seqlen=max...
6
3
1
[{"id": "G0", "claim": "The new scale_fmt parameter of fill_kv_cache_blocked_fp8 is undocumented; a docstring Args entry describing its valid values (None or 'ue8m0') and what it controls should be added.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai...
null
InternLM__lmdeploy__4345
InternLM/lmdeploy
4,345
defect
7da990a406554ecf544116f62f1ba4b8a71a39cc
85779472f91d835ece882660af601663db6af812
add custom noaux kernel
Co-authored-by: libowen2121 Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily receiving feedbacks. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers. ## Motivation ...
diff --git a/lmdeploy/pytorch/backends/base.py b/lmdeploy/pytorch/backends/base.py index 226881ffb2..44632b588c 100644 --- a/lmdeploy/pytorch/backends/base.py +++ b/lmdeploy/pytorch/backends/base.py @@ -34,6 +34,9 @@ class OpType(Enum): NSAIndexFP8 = auto() Embedding = auto() + # MoE rounter + RouterN...
9
9
2
[{"id": "G0", "claim": "The new fused_noaux_tc_routing kernel and CUDA router path ship without a unit test alongside the existing kernel tests under tests/pytorch/kernel/; adding a correctness test comparing against the reference implementation across a few shapes/configs would help prevent silent routing mismatches."...
null
InternLM__lmdeploy__4365
InternLM/lmdeploy
4,365
defect
e39d55daf40637cab033cbbca2ddfee5b03808e6
d382e41678c01a49555101084791bc14db8b2f25
Fix some minor issues and provide tests for Pipeline
Based on the commit history and code changes, I'll write a professional PR description in English. --- ## PR Description ### Motivation This PR addresses several minor issues in the LMDeploy inference pipeline and engine to improve robustness, fix edge cases in token generation, and establish comprehensive...
diff --git a/lmdeploy/pipeline.py b/lmdeploy/pipeline.py index 1e4b5d26f8..ab1902e134 100644 --- a/lmdeploy/pipeline.py +++ b/lmdeploy/pipeline.py @@ -199,7 +199,8 @@ def chat(self, multiplex=True, sequence_start=sequence_start, ...
15
3
2
[{"id": "G0", "claim": "The fixture teardown calls torch.cuda.reset_peak_memory_stats() and torch.cuda.synchronize() unconditionally, which will error in CPU-only environments or when CUDA is unavailable; guard them with torch.cuda.is_available() (and optionally device_count() > 0).", "category": "correctness", "verdic...
null
InternLM__lmdeploy__4386
InternLM/lmdeploy
4,386
defect
20ae545110fae8c87cce9a5562f09e65731369e8
1f6d748e54e0065eccefe115bd84eaef6d31d90e
Fix Structured Output for GPT-OSS Models
## Motivation GPT-OSS models use **Harmony Response** format, which conflicts with **Guided Decoding** (token-level JSON constraint) when `response_format` is specified. This causes: - Harmony parse errors - Request hangs - Empty `message.parsed` results Breaking existing OpenAI SDK clients using `client.bet...
diff --git a/lmdeploy/serve/openai/api_server.py b/lmdeploy/serve/openai/api_server.py index 3e37caffe5..8f9f37aa08 100644 --- a/lmdeploy/serve/openai/api_server.py +++ b/lmdeploy/serve/openai/api_server.py @@ -391,10 +391,6 @@ async def chat_completions_v1(request: ChatCompletionRequest, raw_request: Reque ad...
6
6
5
[{"id": "G0", "claim": "When request.messages is a string, `messages += format_section` only updates the local variable, so the Harmony '# Response Formats' section never reaches the prompt sent to the engine; update request.messages itself so string prompts get the schema.", "category": "correctness", "verdict": "supp...
null
InternLM__lmdeploy__4397
InternLM/lmdeploy
4,397
defect
448398f819e86772d76d9666977690f01f6f8c48
f8c505a6d7deab57f004dfa320d1b2b3ee337050
[Fix][Feat] Fix worker sorting with external pg bundles & Support persistent buffer for update_params
## Motivation This PR addresses two issues related to distributed training parameter update in RLHF scenarios: 1. **Worker Sorting Issue**: When using external placement group bundle indices (e.g., in specific Ray cluster configurations), the workers might be incorrectly sorted by IP address, which broke the inte...
diff --git a/lmdeploy/pytorch/engine/executor/ray_executor.py b/lmdeploy/pytorch/engine/executor/ray_executor.py index 52eb463e15..d864262573 100644 --- a/lmdeploy/pytorch/engine/executor/ray_executor.py +++ b/lmdeploy/pytorch/engine/executor/ray_executor.py @@ -515,6 +515,14 @@ def remote_log(self, msg: str): ...
13
8
6
[{"id": "G0", "claim": "The new serialization/preallocated-buffer branches in FlattenedTensorBucket.__init__ have no unit tests; add focused tests around this initialization path in tests/test_lmdeploy/test_utils.py to prevent regressions.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "int...
null
InternLM__lmdeploy__440
InternLM/lmdeploy
440
defect
dfa67e8c06e497c1b88b8b9899a5b19a4fa564e4
ff22229344c739a63cc1b721eab511405ede52a6
Support InternLM 20B
Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily receiving feedbacks. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers. ## Motivation Please describe the motivati...
diff --git a/README.md b/README.md index 42bcbee8b7..3b1f3697f0 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ ______________________________________________________________________ ## News 🎉 +- \[2023/09\] TurboMind supports InternLM-20B - \[2023/09\] TurboMind supports all features of Code Llama: cod...
1
1
0
[{"id": "G0", "claim": "InternLM chat models were being prompted with the wrong chat template before InternLM upstream updated it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}]
null
InternLM__lmdeploy__4513
InternLM/lmdeploy
4,513
defect
2ef9c6b3b95b8ab8a1ca2956b654a981b950f7c2
8f94dd0aa70fefb36e9ea7a23bfc371a44ee88f6
[ci] change test whl into python 312 and use test images
Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily receiving feedbacks. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers. ## Motivation Please describe the motivati...
diff --git a/.github/workflows/api_eval.yml b/.github/workflows/api_eval.yml index 6faaa136db..332e2b7231 100644 --- a/.github/workflows/api_eval.yml +++ b/.github/workflows/api_eval.yml @@ -58,7 +58,7 @@ jobs: if: ${{github.event_name == 'schedule' || (!cancelled() && !inputs.offline_mode)}} strategy: ...
5
3
2
[{"id": "G0", "claim": "The non-stream assertion was weakened to `len(output.text) >= 0`, a no-op that is always true for any string; the validation should be restored (e.g. checking `isinstance(output.text, str)` and gating the non-empty requirement on `is_stream`/`is_last`).", "category": "correctness", "verdict": "s...
null
InternLM__lmdeploy__4520
InternLM/lmdeploy
4,520
defect
65155f25e9c958025d46e68b7f61b89db21a398c
fbdbbb95cf9bc80bde23fce8cb8392248990b7fd
Fix mtp for rl
## Motivation - Fix mtp inputs for second draft step - Fix toke cache resize when evict - Fix logprobs mismatch when abort ## Modification Please briefly describe what modification is made in this PR. ## BC-breaking (Optional) Does the modification introduce changes that break the backward-compatibil...
diff --git a/lmdeploy/pytorch/strategies/ar_spec/model_agent.py b/lmdeploy/pytorch/strategies/ar_spec/model_agent.py index a948ed30b6..2919f9a3ab 100644 --- a/lmdeploy/pytorch/strategies/ar_spec/model_agent.py +++ b/lmdeploy/pytorch/strategies/ar_spec/model_agent.py @@ -119,7 +119,7 @@ def step(self, stop_...
1
1
1
[{"id": "G0", "claim": "Gate the all_routed_experts resize in set_stop_pos on return_routed_experts and only shrink when the length exceeds max(0, num_valid_ids - 1), because the unconditional resize can assert or set a negative size and corrupt the history.", "category": "correctness", "verdict": "supported", "priorit...
null
InternLM__lmdeploy__4540
InternLM/lmdeploy
4,540
defect
e38927c30fc51936f5c7ea8848687fa6b1aa4a97
dd7030356517b3e45354b5fea5cd5de5233ed26a
Fix mp engine
## Motivation Fix - clear prev_forward info for long input - improve abort requests in mp engine by restrict the order of add_msg, cancel, end ## Modification Please briefly describe what modification is made in this PR. ## BC-breaking (Optional) Does the modification introduce changes that break...
diff --git a/lmdeploy/pytorch/engine/engine_instance.py b/lmdeploy/pytorch/engine/engine_instance.py index 217e1d4609..058bf81107 100644 --- a/lmdeploy/pytorch/engine/engine_instance.py +++ b/lmdeploy/pytorch/engine/engine_instance.py @@ -106,11 +106,14 @@ def _lazy_create_ray_store(): try: _SHARE...
2
2
2
[{"id": "G0", "claim": "In RayEngineWorker._stream_task_wrapper, init_event is only set when func == 'async_stream_infer', but the actual streaming entrypoint is 'instance_async_stream_infer', so the event never gets set and create_stream_task can hang the streaming RPC; the condition should match the real entrypoint."...
null
InternLM__lmdeploy__4541
InternLM/lmdeploy
4,541
defect
007255867d9c785c3cbf1494b37d3b97806f5cad
0434b937fb5ba88b8cb1830abaed4c424d3920f4
cancel request and block new inputs when sleeping
# PR: Guard PyTorch Engine Sleep Against In-flight and New Requests ## Summary This PR fixes a PyTorch engine sleep race where `sleep()` can release model/KV-cache resources while requests are still active or while new `EngineInstance` inputs are accepted. After sleep, those requests can resume or enter inference...
diff --git a/lmdeploy/pytorch/engine/engine.py b/lmdeploy/pytorch/engine/engine.py index e2a7495624..1118d7cca1 100644 --- a/lmdeploy/pytorch/engine/engine.py +++ b/lmdeploy/pytorch/engine/engine.py @@ -32,6 +32,8 @@ logger = get_logger('lmdeploy') SeqList = list[SchedulerSequence] +_INPUT_REQUEST_TYPES = {RequestT...
5
5
1
[{"id": "G0", "claim": "reject_request() logs every rejected request at INFO, which could flood logs if clients keep retrying/streaming during sleep; per-request rejection logs should be downgraded to DEBUG (keeping INFO for blocking/unblocking types).", "category": "maintainability", "verdict": "supported", "priority"...
null
InternLM__lmdeploy__4552
InternLM/lmdeploy
4,552
defect
63d8bb3a941d5afa9d80ea4084368de58bda47bc
8f8d0b10f52ff0a08f40e5766701ec005913aa9d
Fix cache sizing and cache block layout edge cases
## Summary This PR fixes several cache sizing and cache block layout edge cases in the PyTorch engine, and improves readability around cache configuration/update logic. ## Changes - Refactor `ExecutorBase.update_configs()` into smaller helper methods to make cache memory estimation easier to follow. - Use int...
diff --git a/lmdeploy/messages.py b/lmdeploy/messages.py index eeb2f7a056..a556332852 100644 --- a/lmdeploy/messages.py +++ b/lmdeploy/messages.py @@ -473,8 +473,9 @@ def __post_init__(self): 'kv cache quantization only works for CUDA and ASCEND.' if self.device_type == 'camb' and self.bloc...
5
1
1
[{"id": "G0", "claim": "The new RuntimeError messages in executor/base.py use ungrammatical phrasing ('No enough gpu memory...') and should be reworded to 'Not enough GPU memory ...' with aligned capitalization.", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1"...
null
InternLM__lmdeploy__4577
InternLM/lmdeploy
4,577
defect
df9b428a7712b138b6fdeeabd28fc94ab03ab16f
fb5272409a797335a2eff43ff705dfc1a61c174a
[Improve]: Drain queues when sleep engine
## Motivation Drain queues when sleep engine to avoid stale data queues. ## Modification Please briefly describe what modification is made in this PR. ## BC-breaking (Optional) Does the modification introduce changes that break the backward-compatibility of the downstream repositories? If so, please d...
diff --git a/lmdeploy/pytorch/engine/model_agent/agent.py b/lmdeploy/pytorch/engine/model_agent/agent.py index ce506e6b21..cc52ca0b53 100644 --- a/lmdeploy/pytorch/engine/model_agent/agent.py +++ b/lmdeploy/pytorch/engine/model_agent/agent.py @@ -938,6 +938,17 @@ def set_forward_inputs(self, inputs): assert se...
3
1
1
[{"id": "G0", "claim": "The custom `event_loop` fixture doesn't close the loop or clean up pending tasks/async generators and assumes `asyncio.get_event_loop()` always succeeds; consider aligning it with `test_engine_sleep.py`'s more robust fixture.", "category": "correctness", "verdict": "supported", "priority": "P1",...
null
Interrupt__systemshock__165
Interrupt/systemshock
165
defect
55e89f94050a7eae863227974cec4f850f990c60
4d7702ed9f6dadf7295ec3ab07f7c8f6aee5fdb7
Bugfixes: Erratic mouselook; Terrain elevator nonstop sound; Cutscene audio; Mouselook held obj; Shift key sprint; Cutscene window resize; Gamma slider
Clicking captured mouse cursor on window resize border (why is this allowed by SDL?) in windowed, non-mouselook mode, then switching to mouselook mode causes mouselook to behave erratically. When capturing mouse, now also disable window border drag resize. Also added hack to actually keep captured mouse cursor insid...
diff --git a/src/GameSrc/Headers/setup.h b/src/GameSrc/Headers/setup.h index b590ab020..7b97ee940 100644 --- a/src/GameSrc/Headers/setup.h +++ b/src/GameSrc/Headers/setup.h @@ -84,7 +84,7 @@ void go_and_start_the_game_already(void); errtype load_that_thar_game(int which_slot); // Show splash screens -void splash_dr...
2
2
1
[{"id": "G0", "claim": "The splash_draw function should return early when !show_splash instead of wrapping each of the three splash-screen blocks in separate if (show_splash) blocks.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "After this chan...
null
IonicaBizau__git-url-parse__118
IonicaBizau/git-url-parse
118
defect
1b0350605d52c4040b11bee653d8ddff6dc8efaa
a306759f4b31da0043b8c9d82b7b34f9e89c556a
Fix Bitbucket Server URL when it only ends with /browse
When we have to parse a Bitbucket Server URL that ends with `browse` such as `https://bitbucket.mycompany.com/projects/some-owner/repos/some-repo-name/browse` which is a valid URL, the actual result is: - `name` = `browse`; - `owner` = `projects/some-owner/repos/some-repo-name`. The expected result should be: - `...
diff --git a/lib/index.js b/lib/index.js index db8ae29..7b0cad2 100644 --- a/lib/index.js +++ b/lib/index.js @@ -193,7 +193,7 @@ function gitUrlParse(url) { urlInfo.organization = urlInfo.owner; } - const bitbucket = /(projects|users)\/(.*?)\/repos\/(.*?)\/(raw|browse)\/(.*?)$/ + const bitbucket =...
1
1
1
[{"id": "G0", "claim": "Because the slash before the captured path is optional (\\/?), the new Bitbucket regex may wrongly match paths such as /browsebbbbbbb; a stricter regex that requires a slash or end-of-string (making the path undefined when the URL ends with browse or browse/) would better match the intent.", "ca...
null
IonicaBizau__git-url-parse__22
IonicaBizau/git-url-parse
22
defect
ff6674e6f588f74ad5963410bee07905237f2707
870f891365859372d8fea6ca4ae6e49b601df5a5
Stringify token
Stringify token (fixes #21)
diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000..c13c5f6 --- /dev/null +++ b/.babelrc @@ -0,0 +1,3 @@ +{ + "presets": ["es2015"] +} diff --git a/lib/index.js b/lib/index.js index 33bbd8b..abf242b 100644 --- a/lib/index.js +++ b/lib/index.js @@ -95,10 +95,36 @@ gitUrlParse.stringify = function (obj,...
8
5
0
[{"id": "G0", "claim": "Remove the .babelrc file since babel-it handles babelification.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use `/*!` instead of `/**` for the buildToken JSDoc block so it is excluded from generated docs.", "category": "...
null
IonicaBizau__git-url-parse__42
IonicaBizau/git-url-parse
42
defect
d8df00f434b778edfbc4ccbf2735adb6d26b0d6b
1b713303a2c460785e50f6e2cd2f55c75bdf9eb0
adding ref capturing
This is a first shot at ref / filepath capturing. Still a WIP but is this in the right direction? to do: - [x] Add tests - [x] Confirm API / naming is 👍 will close #41
diff --git a/example/index.js b/example/index.js index 239a467..0558827 100644 --- a/example/index.js +++ b/example/index.js @@ -37,6 +37,26 @@ console.log(GitUrlParse("https://github.com/IonicaBizau/node-git-url-parse.git") // , owner: "IonicaBizau" // } +console.log(GitUrlParse("https://github.com/IonicaBizau/g...
6
5
3
[{"id": "G0", "claim": "Use `[\"blob\", \"tree\"].includes(splits[2])` instead of `indexOf(...) != -1` when testing the filepath type.", "category": "style", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `&` joining the two conditions in the ref check looks like a typo and s...
null
IonicaBizau__git-url-parse__80
IonicaBizau/git-url-parse
80
defect
ff3919e950fa6cb74de99487ea5578dc9e1dd633
13dae8059f44742ac2faa9cdd36020fb208e934e
Fix parsing of `source` with 2 parts SLD
Different implement to fix #56 that doesn't rely on `parse-domain`. Fix #79. To be honest I'm not sure #56 is actually an issue. The documentation indicate that the `source` field is meant for "The Git provider (e.g. "github.com")" which implies the parsing might differ for each specific Git provider and the result...
diff --git a/lib/index.js b/lib/index.js index e06c572..b5dd88d 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,7 +1,6 @@ "use strict"; const gitUp = require("git-up"); -const parseDomain = require('parse-domain'); /** * gitUrlParse @@ -45,12 +44,14 @@ function gitUrlParse(url) { , splits = null ...
2
1
1
[{"id": "G0", "claim": "The commit added to solve #56 created issues because of the parse-domain dependency, and the proper fix would be a specific case for the affected Git host (like the Cloudforge one) in a new PR once sinchang names the host.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "s...
null
IonicaBizau__scrape-it__56
IonicaBizau/scrape-it
56
defect
810560e4729b6cc6a7414fa1871ff38bc6e9c143
ff2bda44ebc7e6b8beb9727559ba9a801dc0ee09
closest-feature
enhancement on #55 about access parent node, this feature allows traverse upwards from the current element to find the first ancestor of DOM elements. cheers
diff --git a/lib/index.js b/lib/index.js index c540966..a73a11b 100644 --- a/lib/index.js +++ b/lib/index.js @@ -52,6 +52,8 @@ function scrapeIt (url, opts, cb) { * the attribute name. * - `trim` (Boolean): If `false`, the value will *not* be trimmed * (default: `true`). + * ...
5
5
2
[{"id": "G0", "claim": "The pull request adds the `closest` feature without any tests; the maintainer asks the author to write tests for it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new closest test re-parses the fetched HTML with cheerio even...
null
IraSoro__peri__110
IraSoro/peri
110
defect
838d805d7b375c40eedc9f69206053f2f9c04266
7ab07a6c5e20cb8e2dd9a636ffd63ff6fa6d8591
Edit details page ui
Closed #100 I changed the ui. Now it looks like this ![image](https://github.com/IraSoro/peri/assets/52165881/30cc0d19-0139-4f44-9cfa-6ef2ddf4af47) Wide screen version: ![image](https://github.com/IraSoro/peri/assets/52165881/507d6e4f-2867-4f43-a08c-55bd90f80b91) I also added a state when the loop array is ...
diff --git a/src/App.css b/src/App.css index e5cb46b1..0755eec6 100644 --- a/src/App.css +++ b/src/App.css @@ -52,3 +52,36 @@ ion-toolbar { --background: var(--ion-color-transparent-basic); } + +#context-size { + max-width: 550px; + margin-left: auto; + margin-right: auto; +} + +#wide-screen { + width: 100%; ...
9
9
0
[{"id": "G0", "claim": "The commented-out /* max-height: 700px; */ line added to #wide-screen looks forgotten and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "MarkModal inside TabDetails is dubious; suggest removing it there...
null
IraSoro__peri__111
IraSoro/peri
111
defect
838d805d7b375c40eedc9f69206053f2f9c04266
12f9a6e8990caab6d0cb097a44eb4c0b1af3e960
Changed the message about information for current periods
Closes #99 ![image](https://github.com/IraSoro/peri/assets/28269602/d7f19cc8-8238-462e-9993-65ed40e5d073) ![image](https://github.com/IraSoro/peri/assets/28269602/61b9951b-a287-44ed-950c-755ec7c4c351) ![image](https://github.com/IraSoro/peri/assets/28269602/b6d407d8-eb9e-4578-badb-593ce271cdbc) ![image](https://g...
diff --git a/src/pages/TabDetails.tsx b/src/pages/TabDetails.tsx index f3a2b76b..e0523813 100644 --- a/src/pages/TabDetails.tsx +++ b/src/pages/TabDetails.tsx @@ -27,7 +27,7 @@ function useTitleLastCycle() { return ""; } - return `${dayOfCycle} ${t("Days_interval", { + return `${dayOfCycle} ${t("Days", { ...
3
3
0
[{"id": "G0", "claim": "Replace \"Today is the\" with \"Period:\" and \"day of your period\" with \"day\" so the message reads like \"Period: 2nd day\" instead of breaking on the phone screen.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Simplify the R...
null
IraSoro__peri__113
IraSoro/peri
113
defect
1d17e10dd065e678a14d5e7a4a5d81ce9d78a5ff
3b2fbe40bde84261baee4204fd1ff376bea7ae1f
Edit info modal UI
Closed #97 I changed the ui. Now it looks like this ![image](https://github.com/IraSoro/peri/assets/52165881/0a6e0871-13c2-423e-9e5c-0a42b38201a1) Wide screen version: ![image](https://github.com/IraSoro/peri/assets/52165881/80e42e06-04d7-4ac8-96b7-61105f3807bd)
diff --git a/src/App.css b/src/App.css index 7e214001..e207ce77 100644 --- a/src/App.css +++ b/src/App.css @@ -74,7 +74,7 @@ ion-button { --box-shadow: none; } -ion-button.mark-button { +ion-button.main { --border-radius: 16px; --box-shadow: 0 2px 6px 0 rgb(0, 0, 0, 0.25); width: 150px; diff --git a/src/...
5
5
1
[{"id": "G0", "claim": "The day label should use the existing \"Days\" translation key instead of the \"Days_interval\" key the author added (\"I removed Days_interval in my branch, you can write just Days here\").", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1...
null
IraSoro__peri__178
IraSoro/peri
178
defect
c07c2a4b67bed0d8cea3fa603efdcf190460d1dc
7092732fd8d15acf4d611924bce97a86bc9ecdd0
Bugfix: editing current period
Closed #155 The bug is described in the issue. I fixed it. Now if you follow all the steps described in the problem, an alert will appear with a warning. And also the marked days will become as before editing. ![image](https://github.com/IraSoro/peri/assets/52165881/e5fea3f9-d34a-44bd-942a-57a42d40b62c)
diff --git a/src/pages/TabHome.tsx b/src/pages/TabHome.tsx index 0cba578c..0b8cc30d 100644 --- a/src/pages/TabHome.tsx +++ b/src/pages/TabHome.tsx @@ -32,6 +32,7 @@ import { getActiveDates, getPastFuturePeriodDays, isPeriodToday, + isMarkedFutureDays, } from "../state/CalculationLogics"; import { getCurrent...
6
5
0
[{"id": "G0", "claim": "Use date-fns helpers instead of raw new Date()/getTime() arithmetic in isMarkedFutureDays, both in the sort comparator and in the future-day comparison.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Restructure the save ...
null
IraSoro__peri__183
IraSoro/peri
183
defect
d7ace111d2bffe55b044bd6171ce619decac4be3
7ccdb3d0d5b74e5c150b4203a4edafb5ca22432c
Add ovulation display
Closed #169 I added a display of ovulation. It looks like this: ![image](https://github.com/IraSoro/peri/assets/52165881/fc6150bb-7909-493d-87fc-8b7a0e70ba90) If today is the ovulatory phase, it will look like this ![image](https://github.com/IraSoro/peri/assets/52165881/cd977386-fbb2-426e-8235-f095deedf536) ...
diff --git a/src/App.css b/src/App.css index 53e7eb2d..f351e86f 100644 --- a/src/App.css +++ b/src/App.css @@ -126,7 +126,14 @@ ion-datetime.edit-calendar::part(calendar-day active):focus { } ion-datetime.view-calendar::part(calendar-day active), -ion-datetime.view-calendar::part(calendar-day active):focus { +ion-d...
2
2
1
[{"id": "G0", "claim": "The new `countOfCycles > 1` guard that resets `cycles[0].cycleLength` to 0 is questioned and should be justified or removed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Rename the view-calendar-ovulation class to a name th...
null
IraSoro__peri__243
IraSoro/peri
243
defect
1187763c935911a54959e64c02fcfb0339b0fa3b
0ef3438a4d80e1598a5468cf1b539db1b9bae185
Fixed `Download latest release` button
Closes #242 I tried all available options for `window.open`'s `target` parameter, such as `_system`, `_blank`, `_self`, but nothing works I tried to use `@capacitor/browser` instead of `window.open`, but it doesn't work. The browser is still opens page and nothing happens Also I checked capacitor's github issues...
diff --git a/BUILDING.md b/BUILDING.md index 7895c3d0..8ccf5629 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -24,38 +24,10 @@ ionic cap build android # generates Android project An `android` directory will be generated and you can open it with `Android Studio` and build the project based on this instruction <https...
1
1
0
[{"id": "G0", "claim": "The BUILDING.md sentence added by this pull request reads \"To to this ...\" where it should read \"To do this ...\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
IraSoro__peri__371
IraSoro/peri
371
defect
d87d795f68682073e88154ac6a1095cf8887bb40
d9587024bcb1c9b70b0dda3049d1174848a64ed9
Store more cycles
Closed #341 I added the ability to choose how many cycles to store for the user. Previously there were only 6 (actually 8, 2 are spare). Now there is a choice of 6, 12, 24. For this, I added a new variable to the storage. I also had to rewrite the logic a little. I didn't like it. I'll be glad if you write ideas on...
diff --git a/src/App.tsx b/src/App.tsx index f36ff7a7..ecf2dfdc 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -42,12 +42,8 @@ import "./theme/variables.css"; import { storage } from "./data/Storage"; import type { Cycle } from "./data/ClassCycle"; -import { maxOfCycles } from "./state/CalculationLogics"; -import { ...
5
4
0
[{"id": "G0", "claim": "Rename the maxDisplayedCycles state variable to maxNumberOfDisplayedCycles.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the maxOfCycles temporary variable and pass the getMaxStoredCountOfCycles call directly as ...
null
IraSoro__peri__82
IraSoro/peri
82
defect
9dd222321a30b4a2a4af1c07ebce3c18a37cd266
3e018eea91e2f54f64fcd94f0e40503147b5e94c
Multi-language support
Closed #3 Added translation into Russian. To start, let's leave only him. The structure has been developed. To add a new language, you only need a good translation. The ```storage``` now has a ```language``` value. I will also add a task to detect the language on the device.
diff --git a/package-lock.json b/package-lock.json index 46a81192..dbefae92 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,10 +33,12 @@ "eslint-plugin-prettier": "^5.0.0", "eslint-plugin-react": "^7.32.2", "eslint-plugin-react-hooks": "^4.6.0", + "i18next": "^23.2.11", ...
2
2
0
[{"id": "G0", "claim": "Remove the commented-out LanguageDetector code (the commented import and the commented .use() call) left forgotten in src/i18n.ts.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Use i18n keys based on the original English...
null
IraSoro__peri__84
IraSoro/peri
84
defect
78d5231d66465aafa47014cd52815f34a3d3447e
5d19dc1138d08186172cf6dd4ad8116abe6544c2
Separate calculation logic
Closed #74 #80
diff --git a/.eslintrc.json b/.eslintrc.json index 6f865937..480bf1fe 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -63,7 +63,8 @@ "src/tests/**" ], "rules": { - "@typescript-eslint/unbound-method": "off" + "@typescript-eslint/unbound-method": "off", + "import/first": "...
8
5
2
[{"id": "G0", "claim": "Remove the redundant Number() conversions of cycleLength in getPregnancyChance and getDaysBeforePeriod, since the parameter is already a number.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use i18next plural intervals ...
null
Iridium-Development__IridiumSkyblock__638
Iridium-Development/IridiumSkyblock
638
defect
fcd68a3cec65569074ae68498659ba0a11f5af0b
2da49ede905cd68ccb58ffdbbe519bdc8a697a16
WorldEdit incompatibility check
Verify if WorldEdit is incompatible with the current Minecraft version and switch back to default integration with a warning if that is the case.
diff --git a/src/main/java/com/iridium/iridiumskyblock/managers/SchematicManager.java b/src/main/java/com/iridium/iridiumskyblock/managers/SchematicManager.java index 2a70ac674..3ae2975ed 100644 --- a/src/main/java/com/iridium/iridiumskyblock/managers/SchematicManager.java +++ b/src/main/java/com/iridium/iridiumskybloc...
2
2
0
[{"id": "G0", "claim": "The broken-WorldEdit condition should be reordered to `!WorldEdit.isWorking() && (worldEdit||fawe)` so the guard reads clearly.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ternary with the isWorldEditBroken flag is...
null
IrisShaders__Iris__1065
IrisShaders/Iris
1,065
defect
58afc1dcb8acddf48c4247eae7790ded97426ddb
307ddc7cf250390fbf7e4ea89aeb9a40668f9ece
Make alpha test overrides use the same system as blend mode overrides
This will close this: #219 Don't merge yet big changes
diff --git a/src/main/java/net/coderbot/iris/gl/blending/AlphaTest.java b/src/main/java/net/coderbot/iris/gl/blending/AlphaTest.java new file mode 100644 index 0000000000..69bf3984b1 --- /dev/null +++ b/src/main/java/net/coderbot/iris/gl/blending/AlphaTest.java @@ -0,0 +1,19 @@ +package net.coderbot.iris.gl.blending; +...
8
6
2
[{"id": "G0", "claim": "The new getALPHA_TEST accessor getter in GlStateManagerAccessor might need to be renamed to something else.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The comment in AlphaTestStorage.overrideAlphaTest says 'blend mode' ...
null
IrisShaders__Iris__1257
IrisShaders/Iris
1,257
defect
b5ae6626327b93e31e717118bcb55423a35cc1e9
c5eb36b9542f84553272d0a26f379114b92caad0
Geometry shader support in vanilla 1.17!
Uses some hacks to add the geometry field before the super constructor, but is otherwise quite clean.
diff --git a/src/main/java/net/coderbot/iris/mixin/MixinGameRenderer.java b/src/main/java/net/coderbot/iris/mixin/MixinGameRenderer.java index 7f92510a46..c5b9fccdde 100644 --- a/src/main/java/net/coderbot/iris/mixin/MixinGameRenderer.java +++ b/src/main/java/net/coderbot/iris/mixin/MixinGameRenderer.java @@ -1,6 +1,8 ...
1
1
0
[{"id": "G0", "claim": "ExtendedShader.attachToProgram() should just call super.attachToProgram() instead of attaching the fragment and vertex programs manually itself.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
IronCoreLabs__recrypt-rs__105
IronCoreLabs/recrypt-rs
105
defect
82d1daf37d4ad6573bc31922666c12b733856b6b
4e1ad75f34d4e5c3bd26da7ee95db8bba5bebc3d
Go to ed25519 1.0.0.-pre3, rand 0.7
- Update to the new rand and ed25519 and fix compile errors
diff --git a/Cargo.toml b/Cargo.toml index 03988c6..e4350de 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,16 +12,18 @@ description = "A pure-Rust implementation of Transform Encryption, a Proxy Re-en edition = "2018" [dependencies] -rand = "~0.6" -rand_chacha = "~0.1" +#Explicit dependency so we can pass the wasm...
2
1
0
[{"id": "G0", "claim": "Asks whether `from_entropy()` is still the right API to be using for seeding the ChaCha RNG after the dependency upgrades.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `getrandom` dependency should be declared with `optio...
null
IsmaelMartinez__teams-for-linux__2082
IsmaelMartinez/teams-for-linux
2,082
defect
5f044f1b4dd68d548427a65f45fde0f4e750f8fb
6a895fb0969edf16b37c7c540771ef59a6788003
Replace clipboard monitoring with join meeting dialog
## Summary Replaces clipboard monitoring with a modal dialog for joining Teams meetings. Users can now paste URLs directly, fixing issues where clipboard access fails (Wayland, Flatpak sandboxing). ## Changes - New app/joinMeetingDialog/: Modal dialog with URL input, real-time validation, and dark mode support ...
diff --git a/.changelog/pr-2082.txt b/.changelog/pr-2082.txt new file mode 100644 index 000000000..3b89a98f9 --- /dev/null +++ b/.changelog/pr-2082.txt @@ -0,0 +1 @@ +Replace clipboard monitoring with join meeting dialog - by @IsmaelMartinez (#2082) diff --git a/app/joinMeetingDialog/index.js b/app/joinMeetingDialog/in...
3
3
2
[{"id": "G0", "claim": "The main process loads the URL received from the renderer via the join-meeting-submit IPC message without re-validating it, so a compromised or forged renderer could make the main window load arbitrary file:// or javascript: URLs; the reviewer asks for main-process validation before calling onJo...
null
IsmaelMartinez__teams-for-linux__2247
IsmaelMartinez/teams-for-linux
2,247
defect
75a6d38e35843d321ce715a76ea4c0ece4f950b2
2e6fb69ac9f0dbbe316edc017211e7c28d06a4dd
fix: resolve SonarQube code smells across codebase
## Summary - Apply optional chaining (`?.`) across 12 files replacing verbose `&&` null checks - Use `replaceAll` instead of `replace` in logSanitizer for consistency with global regex patterns - Reduce cognitive complexity in `sanitizeObject` (23→15) and `mqttStatusMonitor` (16→15) by extracting helpers - Fix duplica...
diff --git a/.changelog/pr-2247.txt b/.changelog/pr-2247.txt new file mode 100644 index 000000000..d8fc631c6 --- /dev/null +++ b/.changelog/pr-2247.txt @@ -0,0 +1 @@ +fix: resolve SonarQube code smells across codebase - by @IsmaelMartinez (#2247) diff --git a/app/browser/preload.js b/app/browser/preload.js index 86c9ca...
2
2
2
[{"id": "G0", "claim": "The top-level await added in app/browser/preload.js will cause a SyntaxError because this preload script is a CommonJS module, preventing the script from running; the review asks to revert to the original promise chain (.then().catch()).", "category": "correctness", "verdict": "supported", "prio...
null
IsmaelMartinez__teams-for-linux__2329
IsmaelMartinez/teams-for-linux
2,329
defect
fafe37826ba5c7e141e616cdf13741c62861125e
a33522e797369a1838800c426d8573fe08e3abf9
fix(notifications): return Notification-like stub so Teams can manage lifecycle
## Summary - Teams calls `addEventListener`, `close()`, and `dispatchEvent()` on the object returned by `new Notification()`. Our bare `{ onclick, onclose, onerror }` stubs lacked these methods, breaking Teams' internal notification state machine after the first notification. - Extracts a shared `createNotificationStu...
diff --git a/.changelog/pr-2329.txt b/.changelog/pr-2329.txt new file mode 100644 index 000000000..863d29a2a --- /dev/null +++ b/.changelog/pr-2329.txt @@ -0,0 +1 @@ +Fix: Ensure all notification methods return a Notification-like stub for Teams. - by @IsmaelMartinez (#2329) diff --git a/app/browser/preload.js b/app/br...
5
1
1
[{"id": "G0", "claim": "The removeEventListener stub has an incorrect signature and is a no-op; it should have the correct signature and actually remove the listener so that if Teams relies on removing listeners it behaves as expected.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "int...
null
IsmaelMartinez__teams-for-linux__2359
IsmaelMartinez/teams-for-linux
2,359
defect
256155760e5ba1e17e0cfd27f4386743dbb4a81b
c7a89bedbe1af1fa106786b2f7a012c943871ac5
feat: properly sanitize object values having sensitive keys
Without this addition to the logSanitizer and having debugging enabled and a mqtt.password set in the config, the password is logged as is and would leak secrets to log. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Log sanitization now reda...
diff --git a/app/utils/logSanitizer.js b/app/utils/logSanitizer.js index b460811d3..d8f7b4b08 100644 --- a/app/utils/logSanitizer.js +++ b/app/utils/logSanitizer.js @@ -144,6 +144,10 @@ function sanitizeError(obj, seen) { return sanitizedError; } +const SENSITIVE_KEYS = [ + 'password', +]; + /** * Recursivel...
4
4
2
[{"id": "G0", "claim": "The sensitive-key list should be expanded beyond 'password' (e.g. with token, secret, key substrings) because object fields like accessToken, apiKey, clientSecret or authorization can still be logged in plaintext.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "intr...
null
IsmaelMartinez__teams-for-linux__2406
IsmaelMartinez/teams-for-linux
2,406
defect
6119048fd5b405c8a2d8be290955a56620afaee3
fab23b47c703ccfd10ebfe72d3715011a16499ce
fix: use WebRTC-based call detection as fallback for MQTT in-call status (#2358)
The React-based call-disconnected event doesn't fire when hanging up from the small popup window. This adds WebRTC peer connection monitoring (the speaking indicator pattern) as a reliable fallback — when all RTCPeerConnections close, call-disconnected is emitted through activityHub regardless of which UI button wa...
diff --git a/.changelog/pr-2406.txt b/.changelog/pr-2406.txt new file mode 100644 index 000000000..bd74ac5f8 --- /dev/null +++ b/.changelog/pr-2406.txt @@ -0,0 +1 @@ +Fix call status detection when hanging up from popup window. - by @IsmaelMartinez (#2406) diff --git a/app/browser/tools/activityHub.js b/app/browser/too...
11
8
3
[{"id": "G0", "claim": "The new activityHub.emit() only triggers local renderer handlers, so without an IPC bridge to the main process the MQTT in-call status likely will not update when the WebRTC fallback fires.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", ...
null
Itiviti__simple-slack-api__66
Itiviti/simple-slack-api
66
defect
2d14b288e07bc9fba1b396cec675659620eefa7b
3e3c54d03ab9e249d6d46d5f90f9214d7be90470
Add list emoji
Invoked using method ``` session.listEmoji(); ``` Reference https://api.slack.com/methods/emoji.list
diff --git a/.gitignore b/.gitignore index 27aaf96f..a1135ec7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,17 +1,83 @@ -*.iml -*.ipr + +# Created by https://www.gitignore.io/api/java,jetbrains,gradle + +### Java ### +*.class + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.ear + +# v...
2
2
1
[{"id": "G0", "claim": "Compared to the previous ignores, the regenerated .gitignore is (at least) missing Eclipse entries, and possibly other diffs still matter.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The newly introduced listEmoji meth...
null
JCTools__JCTools__177
JCTools/JCTools
177
defect
d9ecfcac2f93394dfebb1cba0a3e1ba4ddf78c8c
fd78bbf562e6d1a0a9fbe4ce05d13d9ff14c901a
SingleWriterHashSet improvements
Here is review and multiple fixes/reproducers for SingleWriterHashSet: 1) Guava-testlib test added, fixed issue with broken iterator contract. 2) Iterator now loads values via `lvElement` instead of plain loads. Though I was not able to reproduce any issues with jcstress, I think it's a possible source of heisenbug...
diff --git a/jctools-benchmarks/src/main/java/org/jctools/jmh/collections/ConcurrentSetThroughput.java b/jctools-benchmarks/src/main/java/org/jctools/jmh/collections/ConcurrentSetThroughput.java new file mode 100644 index 000000000..814397c91 --- /dev/null +++ b/jctools-benchmarks/src/main/java/org/jctools/jmh/collecti...
4
2
0
[{"id": "G0", "claim": "The per-element volatile load (lvElement) introduced in findNextVal is not required: the buffer is already read with a volatile load when the iterator is created, and future reads are ordered against that snapshot read.", "category": "performance", "verdict": "supported", "priority": "P2", "scop...
null
JCTools__JCTools__183
JCTools/JCTools
183
defect
a0f522364851efef1eb3e2a386dbfc010ca679ab
2f17110c0d65fe5fb7beb9af9da61546c2b8c5a4
Add support of MessagePassingQueue for BaseSpscLinkedArrayQueue
Currently the BaseSpscLinkedArrayQueue's based queues do not implement the MessagePassingQueue interface. I've provided a default (i.e. semantically equal to the MessagePassingQueue doc) implementation to allow polymorphic uses, tests and benchmarks using the enhanced API offered by MessagePassingQueue. In future an ...
diff --git a/jctools-core/src/main/java/org/jctools/queues/BaseSpscLinkedArrayQueue.java b/jctools-core/src/main/java/org/jctools/queues/BaseSpscLinkedArrayQueue.java index 0b52c03ea..aacd5ed7c 100644 --- a/jctools-core/src/main/java/org/jctools/queues/BaseSpscLinkedArrayQueue.java +++ b/jctools-core/src/main/java/org/...
3
3
2
[{"id": "G0", "claim": "A test class should be added and the new MessagePassingQueue implementations verified against the MPQ sanity tests.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The fill implementations in MessagePassingQueueUtil call s.get() b...
null
JCTools__JCTools__184
JCTools/JCTools
184
defect
676be40a026a012aff45567e9ebee4c81bb910a3
7d7e59789318afd94358aa2e8c57282bbb8a330f
Implement remove(Object) for single consumer linked atomic queues
Motivation: Queue implementations in JCTools generally do not support removal of elements. This feature may be necessary to prevent object leaks by retaining references to objects in long lived queues. Modifications: - BaseLinkedAtomicQueue implements boolean remove(Object) API in accordance with the JDK's queue i...
diff --git a/jctools-core/src/main/java/org/jctools/queues/atomic/BaseLinkedAtomicQueue.java b/jctools-core/src/main/java/org/jctools/queues/atomic/BaseLinkedAtomicQueue.java index d36c1ee9b..dd51a57bb 100644 --- a/jctools-core/src/main/java/org/jctools/queues/atomic/BaseLinkedAtomicQueue.java +++ b/jctools-core/src/ma...
8
4
3
[{"id": "G0", "claim": "remove(null) should return false instead of throwing NullPointerException, to be consistent with the JDK Collection contract.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The currConsumerNode/nextNode naming is inverse to t...
null
JCTools__JCTools__229
JCTools/JCTools
229
defect
1e638a69c264bdc65704139dbdcdbb7f7dc7a8a2
a1146c2fa3a1ca8de1c1d0378c71be04995b016a
Issue-228: Add unorderedSnapshot method to MpscArrayQueue and BaseMps…
…cLinkedArrayQueue Resolves https://github.com/JCTools/JCTools/issues/228
diff --git a/jctools-core/src/main/java/org/jctools/queues/BaseMpscLinkedArrayQueue.java b/jctools-core/src/main/java/org/jctools/queues/BaseMpscLinkedArrayQueue.java index 962d61f02..11c3467cb 100644 --- a/jctools-core/src/main/java/org/jctools/queues/BaseMpscLinkedArrayQueue.java +++ b/jctools-core/src/main/java/org/...
5
4
4
[{"id": "G0", "claim": "Leaving the buffer-transition slot uncleared (instead of nulling the reference to the next buffer) will cause GC nepotism.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The class carries two consumer buffer references (consu...
null
JCTools__JCTools__230
JCTools/JCTools
230
defect
1e638a69c264bdc65704139dbdcdbb7f7dc7a8a2
c1586511062aa1fb226acb6a2f5ea63bd5297b2f
XADD Chunked Array Queue
It is a chunked array q designed to scale with the number of producers.
diff --git a/jctools-core/src/main/java/org/jctools/queues/MpscProgressiveChunkedQueue.java b/jctools-core/src/main/java/org/jctools/queues/MpscProgressiveChunkedQueue.java new file mode 100644 index 000000000..3c05ae354 --- /dev/null +++ b/jctools-core/src/main/java/org/jctools/queues/MpscProgressiveChunkedQueue.java ...
5
5
2
[{"id": "G0", "claim": "The pull request adds a new queue implementation without any new test cases for it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The queue leaves MessagePassingQueue methods such as drain and fill unimplemented, stubbed to retu...
null
JCTools__JCTools__248
JCTools/JCTools
248
defect
aeeffff7815c97fd5d57dfdaaea1a6eaba2e15dd
b36ee2a19c29fd6e8bed9f41cc082ceca2f4f59b
Add MpscBlockingConsumerArrayQueue::poll(long, TimeUnit) method
This is a minor variation of the existing `take()` impl. If the addition is of interest then I can add a unit test.
diff --git a/jctools-core/src/main/java/org/jctools/queues/MpscBlockingConsumerArrayQueue.java b/jctools-core/src/main/java/org/jctools/queues/MpscBlockingConsumerArrayQueue.java index 41a55be6c..7e8d5d3b5 100644 --- a/jctools-core/src/main/java/org/jctools/queues/MpscBlockingConsumerArrayQueue.java +++ b/jctools-core/...
2
1
1
[{"id": "G0", "claim": "The new poll implementation trusts the OS timerslack too much, and the reviewers suggest it could be improved, e.g. by making park granularity tunable or by spinning/yielding instead of parking for very short waits.", "category": "performance", "verdict": "opposed", "priority": "P2", "scope": "i...
null
JCTools__JCTools__264
JCTools/JCTools
264
defect
19cbaae4501c310ce3afb1a7443187e244888310
184ad99f6153833d83b5e24664a3c8d7fb03f9ea
Added the PaddedAtomicLong
A padded version of the java.util.atomic.AtomicLong.
diff --git a/jctools-core/src/main/java/org/jctools/util/PaddedAtomicLong.java b/jctools-core/src/main/java/org/jctools/util/PaddedAtomicLong.java new file mode 100644 index 000000000..1d5460799 --- /dev/null +++ b/jctools-core/src/main/java/org/jctools/util/PaddedAtomicLong.java @@ -0,0 +1,301 @@ +package org.jctools....
10
7
4
[{"id": "G0", "claim": "The reviewer asks why PaddedAtomicLong implements Serializable, implying it may not need to.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add the APL license header to PaddedAtomicLong.java.", "category": "documentation", "verdi...
null
JCTools__JCTools__276
JCTools/JCTools
276
defect
543ea111ebc8c1c8ba8fbbaedb40c9f6e3a5992d
2c43c3fe70c533a45595f13191960aee5082e521
wait-free relaxedPoll for mpmc xadd q
it provides a full-fat wait-free `relaxedPoll` for the mpmc xadd q. Soon I will publish some results to check how/if it improves if compared with `poll`. I'm not sure I will provide `relaxedPeek` unless strictly necessary. My concern is that given the many indirections of this queue, a relaxedPoll won't give any p...
diff --git a/jctools-core/src/main/java/org/jctools/queues/MpmcUnboundedXaddArrayQueue.java b/jctools-core/src/main/java/org/jctools/queues/MpmcUnboundedXaddArrayQueue.java index 63ead7d55..5415a14d8 100644 --- a/jctools-core/src/main/java/org/jctools/queues/MpmcUnboundedXaddArrayQueue.java +++ b/jctools-core/src/main/...
3
2
1
[{"id": "G0", "claim": "A slow consumer could lvNext while another spNext(null) on the same consumerBuffer; casConsumerIndex limits the damage, but for atomicity/correctness the spNext should be turned into a soNext.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "...
null
JCTools__JCTools__316
JCTools/JCTools
316
defect
c0b570d31a4a60cb2b538f86106207f626c4b30c
5d1ed85945e62e668a13ee530f77cc0249294a6e
MpscBlockingConsumerArrayQueue poll with timeout fix
Reorder offerAndWakeup() to fix race. Previously the following sequence was possible: Consumer Provider poll(timeout) offerAndWakeup() time out soRefElement(, offset,) consume from offset ...
diff --git a/jctools-core/src/main/java/org/jctools/queues/MpscBlockingConsumerArrayQueue.java b/jctools-core/src/main/java/org/jctools/queues/MpscBlockingConsumerArrayQueue.java index e8208b974..d29c95f89 100644 --- a/jctools-core/src/main/java/org/jctools/queues/MpscBlockingConsumerArrayQueue.java +++ b/jctools-core/...
3
3
3
[{"id": "G0", "claim": "In take(), when the consumer is interrupted and the producer-index revert CAS fails, the code throws InterruptedException without waiting for the producer to clear the blocked field, so the offered element ends up stranded/lost; it should instead ignore the interruption, keep spinning for unbloc...
null
JCTools__JCTools__336
JCTools/JCTools
336
defect
0f17759bfc7ec074ff25100d2b947b90cb2e2d0b
42e2a9e30d04611603dd8326aa20058615688f11
MpscBlockingConsumerArrayQueue: fix race writing to blocked field
Fix for this race: ``` Consumer in parkUntilNext() Producer in offerAndWakeup() casProducerIndex(0, 1) casProducerIndex(1, 2) soBlocked(null) soBlocked(thread) ... spin until timeout casProducerIndex(1, 0) fails spinWaitF...
diff --git a/jctools-core/src/main/java/org/jctools/queues/MpscBlockingConsumerArrayQueue.java b/jctools-core/src/main/java/org/jctools/queues/MpscBlockingConsumerArrayQueue.java index 6953ae6de..70aebfd8e 100644 --- a/jctools-core/src/main/java/org/jctools/queues/MpscBlockingConsumerArrayQueue.java +++ b/jctools-core/...
1
1
0
[{"id": "G0", "claim": "The `else` after the `if (casProducerIndex(pIndex + 1, pIndex))` block in parkUntilNext is unnecessary and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
JECSand__yahoofinancials__138
JECSand/yahoofinancials
138
defect
15e2d41a072891cf2efc3804301e2350f053c09b
c7e9b1feb6e7b54690d29034562ae76366809c0e
Fixed get_ten_day_avg_daily_volume() and removed get_three_month_avg_daily_volume()
_get_ten_day_avg_daily_volume()_ was fixed using summary details data. On the other hand _get_three_month_avg_daily_volume()_ was removed due to Yahoo no longer returning that data. Code test coverage was also expanded. This PR addresses #137.
diff --git a/CHANGES b/CHANGES index 7158915..2dc8c26 100644 --- a/CHANGES +++ b/CHANGES @@ -46,3 +46,6 @@ 1.13 02/14/2023 -- Implemented fixes for #132 and #128 by refactoring package to use Yahoo API instead of scraping. 1.13 02/14/2023 -- Added method to retrieve ESG data as requested in #48. 1.13 02/14/2023 -...
1
1
0
[{"id": "G0", "claim": "The new if/else assertion for get_ten_day_avg_daily_volume() in test_yf_module_methods can be rewritten as the single call self.assertTrue(isinstance(self.test_yf_stock_single.get_ten_day_avg_daily_volume(), int)).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope...
null
JFormDesigner__FlatLaf__903
JFormDesigner/FlatLaf
903
defect
c29a2761884a899f59d890b4b97b7f54678d1af8
25c2bbc85154713cab4c91d95c10f48192a697f9
Support for alternate row color in JTree
Allow settings a custom alternate row color in JTree. See: https://github.com/JFormDesigner/FlatLaf/issues/900 Cheers, Dar --
diff --git a/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatTreeUI.java b/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatTreeUI.java index 6eecb7518..651466985 100644 --- a/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatTreeUI.java +++ b/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatTreeUI....
5
4
3
[{"id": "G0", "claim": "When the selection is active, the alternate row color should not be painted, as it causes issues with round selection.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Use FlatUIUtils.paintSelection(...) instead of FlatUIUtils....
null
JFormDesigner__FlatLaf__939
JFormDesigner/FlatLaf
939
defect
7bdfd49921250b608da4c74e4ac37699e761b996
19055d5a187313a4d96ab3bb572900e3dbb1f991
Support for alternate row color in JList
Allow setting custom alternate row color in JList as we do for JTable or JTree (see also: https://github.com/JFormDesigner/FlatLaf/pull/903). Cheers, Dar --
diff --git a/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatListUI.java b/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatListUI.java index b6d0b712a..01a9896f1 100644 --- a/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatListUI.java +++ b/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatListUI....
2
2
1
[{"id": "G0", "claim": "Use \"ComboBox.list\".equals( list.getName() ) to detect that the list is used in a combobox, because not all comboboxes use DefaultComboBoxModel (e.g. the \"Look in\" combobox in JFileChooser).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id":...
null
JMRI__JMRI__12604
JMRI/JMRI
12,604
defect
9ecbbfe95479ee33b3b38ff62b97d135ca4f7a7a
2e5f017e24d169c476a499db4e438f9a3825cfde
Tests - abstract annotation
Adds architecture tests to ensure no abstract methods have Test annotation and no abstract methods have test lifecycle annotation. Removes lifecycle annotation from some abstract methods. No changes in test behaviour observed, improves JUnit5 test conformity.
diff --git a/java/test/jmri/AddressedProgrammerTestBase.java b/java/test/jmri/AddressedProgrammerTestBase.java index 85983fdc4d1..e1debbfe3e8 100644 --- a/java/test/jmri/AddressedProgrammerTestBase.java +++ b/java/test/jmri/AddressedProgrammerTestBase.java @@ -55,9 +55,7 @@ public void testGetAddress(){ Assert...
1
1
1
[{"id": "G0", "claim": "The PR removed the @BeforeEach/@AfterEach annotations from AbstractThrottleServerTestBase's setUp and postTestReset, and it is unchecked whether the overriding methods in subclasses carry the desired annotations, so lifecycle handling may be broken.", "category": "correctness", "verdict": "suppo...
null
JMRI__JMRI__13084
JMRI/JMRI
13,084
defect
2c1783c10e8d2bfbb9e2fd4e885c41d0838bfa3b
af4eef1a49e93a3252ea935c4ead8987f3e92e3d
Update for Digitrax Series 7 decoders
- add support for configuring XF feature - improved presentation of specialized CVs - improved handling of ops read on DCS240+ - faster ops read and write - improved handling of LACK responses in ops mode programming
diff --git a/help/en/releasenotes/current-draft-note.shtml b/help/en/releasenotes/current-draft-note.shtml index 8d73b5e35a8..3a7f270619f 100644 --- a/help/en/releasenotes/current-draft-note.shtml +++ b/help/en/releasenotes/current-draft-note.shtml @@ -86,6 +86,8 @@ <h4>LocoNet</h4> <ul> + ...
4
2
0
[{"id": "G0", "claim": "Removing the LOCONETOPSBOARD else-if branch from LnOpsModeProgrammer.writeCV() may remove the handling of 7th-gen stationary decoder-programmed boards with no alternative in place.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": ...
null
JMRI__JMRI__13465
JMRI/JMRI
13,465
defect
cee52923b8a04277281eba8cf86054c634212cb3
3a847086efc9301944c9ce74efc2c5428b31c7a7
tweak AbstractMonPane TestBase / Throttle ControlPanel Test
**AbstractMonPaneTestBase Throttle ControlPanelTest** Use DisabledIfHeadless annotation Asserts to JUnit5
diff --git a/java/test/jmri/jmrit/throttle/ControlPanelTest.java b/java/test/jmri/jmrit/throttle/ControlPanelTest.java index 03d8d86da10..f62ac7bd3fc 100644 --- a/java/test/jmri/jmrit/throttle/ControlPanelTest.java +++ b/java/test/jmri/jmrit/throttle/ControlPanelTest.java @@ -2,7 +2,6 @@ import java.awt.Container; ...
2
1
0
[{"id": "G0", "claim": "The tests should use ThreadingUtil.runOnGUIWithJmriException() instead of runOnGUI() so that JmriException and RuntimeException are thrown as is rather than wrapped in an InvocationTargetException.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ...
null
JMRI__JMRI__14179
JMRI/JMRI
14,179
defect
5e6a315a0fc28a768f92a18c6047d77789476ecf
99314c575ce0b25701d1f5f172c80269b014955d
WiThrottle - Improve handling of Share or Cancel? and Steal or Share or Cancel? questions
Affects MERG CBUS connections when WiThrottle is requesting a Throttle and the Throttle is already in use by non-JMRI. **MultiThrottleController** When WiThrottle encounters Share questions, use main Throttle prefs to decide. **WiThrottlePrefsPanel** Display hint to also see main Throttle prefs.
diff --git a/help/en/html/hardware/can/cbus/index.shtml b/help/en/html/hardware/can/cbus/index.shtml index a2685a07571..2022ed70aab 100644 --- a/help/en/html/hardware/can/cbus/index.shtml +++ b/help/en/html/hardware/can/cbus/index.shtml @@ -451,6 +451,9 @@ <p>If you are using an automation script and neither o...
2
2
0
[{"id": "G0", "claim": "The release-note entry the PR adds to help/en/releasenotes/current-draft-note.shtml misspells \"ecounters\" for \"encounters\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment in help/en/html/hardware/can/cbus/in...
null