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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sirupsen__logrus__800 | sirupsen/logrus | 800 | defect | d329d24db4313262a3b0a24d8aeb1dc4bd294fb0 | cadf2ceaf8580dddc21b34895f5fed8d2c3b2e60 | Add CLICOLOR supor. Rework on #787 | @nolith, I've added unit test on isColored and a few changes on the method itself. Can you have a look at it ? Do we agree on the expected behaviour ? | diff --git a/text_formatter.go b/text_formatter.go
index 3e5504030..beb628f3a 100644
--- a/text_formatter.go
+++ b/text_formatter.go
@@ -3,6 +3,7 @@ package logrus
import (
"bytes"
"fmt"
+ "os"
"sort"
"strings"
"sync"
@@ -35,6 +36,9 @@ type TextFormatter struct {
// Force disabling colors.
DisableColors ... | 3 | 3 | 0 | [{"id": "G0", "claim": "The test should use targeted os.Unsetenv(\"CLICOLOR\") and os.Unsetenv(\"CLICOLOR_FORCE\") calls instead of os.Clearenv(), as a gentler approach.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The testcase12 entry is a du... | null |
sirupsen__logrus__808 | sirupsen/logrus | 808 | defect | fc587f31c804fe6853cd90f0d8d90af588eca5bd | 7a0120e2c67ac3a748674a84fbb6ca4fe6231897 | ReplaceHooks method for logger | Safe way to modify hooks. Related issues: #715, #701 | diff --git a/logger.go b/logger.go
index 7fa8d7d92..53bbf95fd 100644
--- a/logger.go
+++ b/logger.go
@@ -336,3 +336,9 @@ func (logger *Logger) AddHook(hook Hook) {
defer logger.mu.Unlock()
logger.Hooks.Add(hook)
}
+
+func (logger *Logger) ReplaceHooks(hooks LevelHooks) {
+ logger.mu.Lock()
+ logger.Hooks = hooks
+... | 1 | 1 | 1 | [{"id": "G0", "claim": "ReplaceHooks should return the former hooks from the method so they can be practically restored.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
sirupsen__logrus__837 | sirupsen/logrus | 837 | defect | 1ed61965b9e594bf37539680d7f63eccd060314f | 2be620216affd84620a08ee082d6e074d1bb5ca4 | Implements #813 - Add option to panic in `test.NewNullLogger` | Add a field in `Logger` for `Exit` implementation which defaults to `Exit()`.
This can be used in `NullLogger()` to replace calls to `os.Exit()` with `panic()` | diff --git a/alt_exit.go b/alt_exit.go
index 8af90637a..f1bb44cb6 100644
--- a/alt_exit.go
+++ b/alt_exit.go
@@ -45,6 +45,8 @@ func runHandlers() {
}
}
+type exitFunc func(int)
+
// Exit runs all the Logrus atexit handlers and then terminates the program using os.Exit(code)
func Exit(code int) {
runHandlers()
... | 2 | 2 | 2 | [{"id": "G0", "claim": "NewNullLogger should not be changed by adding a variadic TestOption parameter; callers can patch the resulting logger when needed (e.g. call FatalPanics on the returned logger) instead of implementing that with an options callback.", "category": "design", "verdict": "supported", "priority": "P1"... | null |
sirupsen__logrus__844 | sirupsen/logrus | 844 | defect | 680f584d621da87ee04ea659130e149ba9d23cae | b54cafe5cee93a35bf6b061e261e8265ea0a628c | Added TRACE level logging. | This is just a rebased update to PR https://github.com/sirupsen/logrus/pull/652
Please see discussion and history there. | diff --git a/.gitignore b/.gitignore
index 66be63a00..6b7d7d1e8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
logrus
+vendor
diff --git a/README.md b/README.md
index 072e99be3..f088432b4 100644
--- a/README.md
+++ b/README.md
@@ -246,9 +246,10 @@ A list of currently known of service hook can be found in this ... | 3 | 1 | 1 | [{"id": "G0", "claim": "TestLogLevelEnabled should be completed to also cover the newly added trace level.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "All hook implementers should be warned about the new trace level before the next version is tagged,... | null |
sirupsen__logrus__845 | sirupsen/logrus | 845 | defect | 680f584d621da87ee04ea659130e149ba9d23cae | a3b6b16d6d371839e93064abd15a86dc442fb750 | Make logrus.Level implement encoding.TextUnmarshaler | Implemented `encoding.TextUnmarshaler` for `logrus.Level` to utilize the type in libraries that accept `encoding.TextUnmarshaler`.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/sirupsen/lo... | diff --git a/logrus.go b/logrus.go
index 6fff5065f..5dab4d4fe 100644
--- a/logrus.go
+++ b/logrus.go
@@ -53,6 +53,18 @@ func ParseLevel(lvl string) (Level, error) {
return l, fmt.Errorf("not a valid logrus Level: %q", lvl)
}
+// UnmarshalText implements encoding.TextUnmarshaler.
+func (level *Level) UnmarshalText(... | 4 | 4 | 0 | [{"id": "G0", "claim": "Use assert.NoError to check the successful UnmarshalText call instead of assigning err and asserting it is nil.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use assert.Error to check that UnmarshalText rejects invalid input ins... | null |
sirupsen__logrus__857 | sirupsen/logrus | 857 | defect | 44067abb194b1bc8b342e1f2120f8d3ea691b834 | 2cafb78db2ffe7e4592a07991f77f9105db898ab | fix race condition caused by writing to entry.Data | This PR should be able to fix https://github.com/sirupsen/logrus/issues/468, and it uses the same technique as JSONFormatter.
| diff --git a/text_formatter.go b/text_formatter.go
index 49ec92f17..4342d7319 100644
--- a/text_formatter.go
+++ b/text_formatter.go
@@ -107,14 +107,17 @@ func (f *TextFormatter) isColored() bool {
// Format renders a single log entry
func (f *TextFormatter) Format(entry *Entry) ([]byte, error) {
- prefixFieldClash... | 1 | 1 | 1 | [{"id": "G0", "claim": "The colored-output call should pass the new data map as the new data parameter instead of nil, so printColored prints the entry's fields.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
sirupsen__logrus__863 | sirupsen/logrus | 863 | defect | 44067abb194b1bc8b342e1f2120f8d3ea691b834 | 14fdc059caf463ccbc18c4d4a206dfa2df3361e2 | Add Generic Log functions with level via argument | I wanted to be able to use `Log` with a variable level, and it seemed like I should add `Logf` and `Logln` if I was going to add `Log`. | diff --git a/entry.go b/entry.go
index cc85d3aab..02247b30f 100644
--- a/entry.go
+++ b/entry.go
@@ -240,16 +240,18 @@ func (entry *Entry) write() {
}
}
-func (entry *Entry) Trace(args ...interface{}) {
- if entry.Logger.IsLevelEnabled(TraceLevel) {
- entry.log(TraceLevel, fmt.Sprint(args...))
+func (entry *Entry... | 3 | 3 | 2 | [{"id": "G0", "claim": "The generic Log() function should also be added to Logger, not only to Entry.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull request description should get more context, with some usage examples.", "category": "documentat... | null |
sirupsen__logrus__864 | sirupsen/logrus | 864 | defect | 91da99df23e3bad7f384338a5a8f636d04093d9a | f1b98e4006fd58afa9cc5b28cd665b96519ef166 | Remove colored output on windows | Fixes #862
Currently the textformatter on windows outputs
``←[31mERRO←[0m[0000] test windows``
when coloring is not disabled explicitly.
However, windows up to windows 8.1 does not support colored output on cmd entirely. Windows 10 added support for it, which is off by default and has to be enabled via regis... | diff --git a/text_formatter.go b/text_formatter.go
index 49ec92f17..ed578d26a 100644
--- a/text_formatter.go
+++ b/text_formatter.go
@@ -4,6 +4,7 @@ import (
"bytes"
"fmt"
"os"
+ "runtime"
"sort"
"strings"
"sync"
@@ -102,7 +103,7 @@ func (f *TextFormatter) isColored() bool {
}
}
- return isColored &&... | 1 | 1 | 1 | [{"id": "G0", "claim": "ForceColor (and force-related flags) should take precedence over the Windows environment check in isColored, and the test should be updated so isColored returns true on Windows when the force flag is set.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced... | null |
sirupsen__logrus__977 | sirupsen/logrus | 977 | defect | 2a22dbedbad1fd454910cd1f44f210ef90c28464 | b5cc19ce3ee1eb487dcf7fa6b32b01d38d07f2e0 | Add an pad option log level text | Closes https://github.com/sirupsen/logrus/issues/959
I spent a few hours working on the tests. They're not perfect, but I don't think they can be improved substantially without doing a large refactor (which wouldn't be appropriate for me to do in this PR).
The implementation of the option itself is very straightf... | diff --git a/README.md b/README.md
index 2040b42e0..08c3269b0 100644
--- a/README.md
+++ b/README.md
@@ -354,6 +354,7 @@ The built-in logging formatters are:
[github.com/mattn/go-colorable](https://github.com/mattn/go-colorable).
* When colors are enabled, levels are truncated to 4 characters by default. To dis... | 8 | 3 | 1 | [{"id": "G0", "claim": "The level-text padding width should not be hard-coded to 7, but computed in an init function by iterating over AllLevels to find the largest level name, so future level additions don't require updating this code.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "in... | null |
sissa-data-science__DADApy__60 | sissa-data-science/DADApy | 60 | defect | aaf469c769b2703487c21d7f6c4a9b047526bf75 | 13edbdfdbfea6ad5a806aa6678ec132e9345d38b | add warning for datasets with overlapping datapoints | added explicit warnings (and relative pytest files) to the distance matrices computed in 'compute_nn_distances' and 'return_id_gride' when distances of nearby points is close to zero (<=1.1 eps). This warning does not stop the normal workflow. | diff --git a/dadapy/_utils/utils.py b/dadapy/_utils/utils.py
index 8acf80f7..cf75ed7f 100644
--- a/dadapy/_utils/utils.py
+++ b/dadapy/_utils/utils.py
@@ -12,9 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# ===========================================... | 3 | 3 | 1 | [{"id": "G0", "claim": "The tests fail on different Python versions, presumably due to the usual rounding problem, and the reviewer proposes solving it by substituting assert((a==b).all()) with assert np.allclose(a,b).", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "pre_existing"}, {"id": "... | null |
sissbruecker__linkding__1063 | sissbruecker/linkding | 1,063 | defect | 1b0684bd6cc1272f4ddcb6d93f987228d6e492b7 | 40e6a5712f1924750d3216e24c6ce3cf346f4975 | Allow setting date_added and date_modified for new bookmarks through REST API | As discussed at https://github.com/sissbruecker/linkding/issues/940, syncing bookmarks between platforms is a good use case where it makes sense to be able to POST a bookmark via the API with a specified date_added and/or date_modified timestamp set. This PR makes them optional parameters on that API.
This resolves... | diff --git a/bookmarks/api/serializers.py b/bookmarks/api/serializers.py
index 6abedccde..dc66fa50a 100644
--- a/bookmarks/api/serializers.py
+++ b/bookmarks/api/serializers.py
@@ -53,8 +53,6 @@ class Meta:
"favicon_url",
"preview_image_url",
"tag_names",
- "date_added"... | 2 | 2 | 0 | [{"id": "G0", "claim": "Instead of saving the bookmark twice in the serializer's create(), it would make more sense to change create_bookmark so that it only initializes the dates if the new bookmark doesn't already specify them.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, ... | null |
sissbruecker__linkding__1087 | sissbruecker/linkding | 1,087 | defect | bb796c9bdb9c31f26302cb575c8703d6b3bd8286 | b4e9aebd0ed07db5931ed4ece054ce8a8a7a3a6d | Automatically compress uploads with gzip | This adds the feature where files that are uploaded get gzip compressed to save space (and so they are similar to saved SingleFile snapshots).
| diff --git a/bookmarks/services/assets.py b/bookmarks/services/assets.py
index a6e745d6e..c7f1a16d8 100644
--- a/bookmarks/services/assets.py
+++ b/bookmarks/services/assets.py
@@ -96,11 +96,25 @@ def upload_asset(bookmark: Bookmark, upload_file: UploadedFile):
name, extension = os.path.splitext(upload_file.na... | 4 | 4 | 2 | [{"id": "G0", "claim": "The upload should gzip other file types as well, not just text/html — probably any text file could benefit, and testing shows small savings even on images and PDFs.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The display name s... | null |
sissbruecker__linkding__1132 | sissbruecker/linkding | 1,132 | defect | 4e8318d0ae5859f61fbc05ec0cc007cd00247eb2 | 887e42a9fbc35f8ea0b5f7e3fca77b729f280dca | Bulk create HTML snapshots | Closes https://github.com/sissbruecker/linkding/issues/869 | diff --git a/bookmarks/services/bookmarks.py b/bookmarks/services/bookmarks.py
index f2b8a817c..1b1323de0 100644
--- a/bookmarks/services/bookmarks.py
+++ b/bookmarks/services/bookmarks.py
@@ -208,6 +208,16 @@ def refresh_bookmarks_metadata(bookmark_ids: [Union[int, str]], current_user: Us
tasks.load_preview_i... | 3 | 3 | 2 | [{"id": "G0", "claim": "The new \"Create HTML snapshot\" bulk action option should only be shown when the HTML snapshot feature is active, by exposing settings.LD_ENABLE_SNAPSHOTS in a field in BookmarkListContext and adding tests to verify the option is only shown when the feature is enabled.", "category": "design", "... | null |
sissbruecker__linkding__1261 | sissbruecker/linkding | 1,261 | defect | 06048ee26f34f458013223e702142cb4ec9a945e | ca47ad07184fd5e2fccd75566bf13de194faa094 | Remove absolute URIs from settings page | The rest of the links on this page are absolute paths without a specified hostname, but these in particlar use
build_absolute_uri. I am running linkding behind two different load balancers which makes these links bubble up the "internal" hostname instead of the hostname I actually got to the page from. | diff --git a/bookmarks/api/serializers.py b/bookmarks/api/serializers.py
index ecc9b0300..76cc6b879 100644
--- a/bookmarks/api/serializers.py
+++ b/bookmarks/api/serializers.py
@@ -107,16 +107,14 @@ def get_favicon_url(self, obj: Bookmark):
if not obj.favicon_file:
return None
request = s... | 1 | 1 | 1 | [{"id": "G0", "claim": "Returning a relative static URL from the API serializers is a breaking change: the URL on its own will not resolve to the favicon, and any client that displays favicons would have to be changed to prepend some base URL.", "category": "correctness", "verdict": "supported", "priority": "P1", "scop... | null |
sissbruecker__linkding__392 | sissbruecker/linkding | 392 | defect | 313a0ee99fea553161fb4a95bf8e0a39401eaf10 | 8ffa9252f3b2d33fb13388a1cd76729746d6ec47 | Add Health Check endpoint | Adds a simple health check endpoint as mentioned in #375. The endpoint at `/health` simply returns the version of the app and a health status. It will return 'healthy` unless it is unable to connect to the DB. Could easily add other checks as deemed appropriate.
Also added the health check to the Dockerfile so it w... | diff --git a/Dockerfile b/Dockerfile
index e99dd27fa..ade667639 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -34,7 +34,7 @@ RUN mkdir /opt/venv && \
FROM python:3.10.6-slim-buster as final
-RUN apt-get update && apt-get -y install mime-support libpq-dev
+RUN apt-get update && apt-get -y install mime-support libpq-d... | 4 | 3 | 2 | [{"id": "G0", "claim": "The health check endpoint is not served when the database cannot connect under the Django dev server — accessing /health returned Not found with an invalid SQLite path — so the middleware-based check may not run when the DB is down.", "category": "correctness", "verdict": "opposed", "priority": ... | null |
sissbruecker__linkding__971 | sissbruecker/linkding | 971 | defect | fc48b266a8c6005dca7d21ff96f4392ef62c0ccf | 20eda26cc05e40aa01754f1a254ce6b5f24c9299 | Allow customizing username when creating user through OIDC | Fixes #793
Allow config of oidc claim used for username generation (default to email claim to avoid breaking existing installs)
| diff --git a/bookmarks/tests/test_oidc_support.py b/bookmarks/tests/test_oidc_support.py
index b3525a5ea..987a486ab 100644
--- a/bookmarks/tests/test_oidc_support.py
+++ b/bookmarks/tests/test_oidc_support.py
@@ -61,3 +61,74 @@ def test_default_settings(self):
)
del os.environ["LD_ENABLE_OIDC"]
+
+ ... | 3 | 2 | 2 | [{"id": "G0", "claim": "generate_username is not called by default when updating an existing user, which does not match the PR description, and overriding the username on every authentication attempt may not be a good idea.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id":... | null |
sissbruecker__linkding__999 | sissbruecker/linkding | 999 | defect | 2d81ea6f6e845b25ce4ed8efca4adba4675bc76b | dc476a33edcaac19468714fcc93bd9e4174fab92 | Add bulk and single bookmark metadata refresh | This address feature request #551 for a way to refresh bookmark metadata.
It adds refresh button on the new/edit bookmark form and also adds a bulk edit action for refreshing many bookmarks at once.
Closes https://github.com/sissbruecker/linkding/issues/551
:
@action(methods=["get"], detail=False)
def check(self, request):
url = request.GET.get("ur... | 7 | 7 | 1 | [{"id": "G0", "claim": "The metadata cache clearing should be implemented inside website_loader itself rather than having routes.py call load_website_metadata.cache_clear() directly, and the tests should more practically check that load_page is called again when caching is disabled.", "category": "design", "verdict": "... | null |
sivchari__kumo__386 | sivchari/kumo | 386 | defect | ea4afa05af046470252a807edb18db8034130a5f | a852ebfd54c37628713a1d31a144c456a832380b | fix(ssm): return parameters without leading slash in GetParametersByPath | ## Summary
- Fix GetParametersByPath(Path: "/") not returning parameters created without a leading `/` prefix
- AWS SSM treats these as root-level parameters that should be retrievable via the `/` path
- https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-paramstore-hierarchies.html
- Normalize pa... | diff --git a/internal/service/ssm/storage.go b/internal/service/ssm/storage.go
index 0d018a61..dbd807e9 100644
--- a/internal/service/ssm/storage.go
+++ b/internal/service/ssm/storage.go
@@ -270,6 +270,12 @@ func (s *MemoryStorage) GetParametersByPath(_ context.Context, path string, recu
// matchesPath checks if a p... | 1 | 1 | 1 | [{"id": "G0", "claim": "The golden-file ARN for the no-slash parameter is wrong because the parameter path and the name are concatenated without a separator; `/` should be treated when creating the ARN (storage.go:L163).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
sivchari__kumo__400 | sivchari/kumo | 400 | defect | dc418ba249a8f867afcd883e09bd6edb6c095666 | 17204989ec8d5accc4db17bdaccf359ff40ba696 | feat(sqs): add ListQueueTags, TagQueue, and UntagQueue actions | Cherry-picked from #399 to narrow the scope of the Helm chart PR.
| diff --git a/internal/service/sqs/handlers.go b/internal/service/sqs/handlers.go
index 8631481bb..9d2ef488c 100644
--- a/internal/service/sqs/handlers.go
+++ b/internal/service/sqs/handlers.go
@@ -27,7 +27,7 @@ func (s *Service) CreateQueue(w http.ResponseWriter, r *http.Request) {
return
}
- queue, err := s.sto... | 4 | 3 | 1 | [{"id": "G0", "claim": "CreateQueue merges the given tags into an already-existing queue, but AWS documentation does not specify this behavior and LocalStack ignores tags on existing queues — the reviewer asks whether this behavior is correct.", "category": "correctness", "verdict": "supported", "priority": "P1", "scop... | null |
six2six__fixture-factory__38 | six2six/fixture-factory | 38 | defect | df9e39aa3c50d254a195a1a80c8cbeac1d095fac | 9e2e407332d85fbc755571ef0992d822a7f3814f | Fix Issue #37 | This pull request fixes #37.
| diff --git a/src/main/java/br/com/six2six/fixturefactory/Property.java b/src/main/java/br/com/six2six/fixturefactory/Property.java
index 006c09a..d5a4934 100755
--- a/src/main/java/br/com/six2six/fixturefactory/Property.java
+++ b/src/main/java/br/com/six2six/fixturefactory/Property.java
@@ -4,6 +4,7 @@
import br.c... | 3 | 3 | 0 | [{"id": "G0", "claim": "The newly added finally block in ClassLoaderUtils uses inconsistent indentation (a mix of spaces and tabs) and should be reindented.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The null-property test should reuse the e... | null |
six2six__fixture-factory__69 | six2six/fixture-factory | 69 | defect | 74cdabd1a3b3bfcced8b8e977e1cfe4a8b634bfe | 1a89e7917962203468dfba57baff21d45679ce89 | Big decimal range | Hi Fixture Factory community,
This pull request is regarding issue #61.
To Implement this, I had to change both the BigDecimal and BigInteger features but I believe it will be ok since I was able to write tests for both cases. I also noticed a little typo in README tutorial so I fixed it.
There are tests failing in m... | diff --git a/README.md b/README.md
index d6dbf4f..4d5d851 100644
--- a/README.md
+++ b/README.md
@@ -106,7 +106,7 @@ To do so, implement the Processor interface:
And use it:
- Fixture.from(SomeClass.class).uses(new MyCustomProcessor()).gimme("someTempalte");
+ Fixture.from(SomeClass.class).uses(new MyCustomProcess... | 1 | 1 | 0 | [{"id": "G0", "claim": "The range checks in randomBigDecimalUsingRange and randomBigIntegerTestUsingRange should assert that the generated value lies within the range (e.g. bigDecimal.compareTo(new BigDecimal(\"1\")) >= 0 and <= 0) instead of comparing the limits against the value with `!=`, which is hard to read.", "c... | null |
six2six__fixture-factory__70 | six2six/fixture-factory | 70 | defect | 74cdabd1a3b3bfcced8b8e977e1cfe4a8b634bfe | ea8687829f1e6ebf9e98d2b88274fa9ff306281b | Unique random function | When using Fixture Factory I felt the need for a function capable of generating unique random values (that is, a function that generates in each call a value different from those it has already generated in previous calls).
I created then a function which can generate unique random values from a fixed array of values... | diff --git a/src/main/java/br/com/six2six/fixturefactory/Rule.java b/src/main/java/br/com/six2six/fixturefactory/Rule.java
index b04cbdc..a58975f 100755
--- a/src/main/java/br/com/six2six/fixturefactory/Rule.java
+++ b/src/main/java/br/com/six2six/fixturefactory/Rule.java
@@ -34,6 +34,7 @@
import br.com.six2six.fixtur... | 7 | 5 | 0 | [{"id": "G0", "claim": "Set the initial nextValueIndex on the attribute declaration instead of repeating the assignment in every constructor.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Declare temp inside the scope of the for loop instead of... | null |
six2six__fixture-factory__81 | six2six/fixture-factory | 81 | defect | ed100cfa41c85e8617d7b9098b33ec27a13bf077 | 1546cc9ac67f9b8335f1197fdb0cdb72288ff5aa | adding support to java8 date | Adding support to java time Classes like LocalDate, LocalDateTime, LocalTime, etc.
| diff --git a/src/main/java/br/com/six2six/fixturefactory/ObjectFactory.java b/src/main/java/br/com/six2six/fixturefactory/ObjectFactory.java
index 7a958d8..7c5edbd 100755
--- a/src/main/java/br/com/six2six/fixturefactory/ObjectFactory.java
+++ b/src/main/java/br/com/six2six/fixturefactory/ObjectFactory.java
@@ -10,11 +... | 3 | 3 | 2 | [{"id": "G0", "claim": "The `else if (ClassUtils.isAssignable(type, java.time.Instant.class))` condition is duplicated with the statement above it, so the second branch is dead code.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Java 8 detection sh... | null |
sjwall__MaterialTapTargetPrompt__118 | sjwall/MaterialTapTargetPrompt | 118 | defect | 8ce67286445be29592a177c89072f6f4b3e9dacd | 1c0023fcaa593623e9a32b0bb32d434d6cdb8575 | Added Sequences for issue #115 | Working code and demo in sample
I added a test but I will need to look into how roboelectric can simulate taps in order to add more tests. | diff --git a/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/MaterialTapTargetPrompt.java b/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/MaterialTapTargetPrompt.java
index 32b9fd82..fb8668bb 100644
--- a/library/src/main/java/uk/co/samuelwall/materialtaptargetprompt/MaterialTapTargetPro... | 3 | 3 | 0 | [{"id": "G0", "claim": "The new sample string 'Show an example of a sequence of promps' is missing a 't' from 'prompts'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new MaterialTapTargetSequence class and its public methods (addPrompt, show... | null |
sjwall__MaterialTapTargetPrompt__92 | sjwall/MaterialTapTargetPrompt | 92 | defect | 53de5041ed06f8b599a945c8a30cd19c44d18efe | fb0abd601674a6ddebd6f313b34a7090b0bcfd63 | Nullabilize MTTP | Built on top of #91
@sjwall One of my projects is nearing 100% Kotlin, so I decided to add nullability annotations to all the open-source libraries I'm using. Just in case you didn't know, Kotlin uses nullability annotations to infer the correct type. Cheers! 😄 | diff --git a/library/build.gradle b/library/build.gradle
index 32334392..8dae68b3 100644
--- a/library/build.gradle
+++ b/library/build.gradle
@@ -55,6 +55,7 @@ configurations {
dependencies {
implementation 'com.android.support:support-annotations:' + rootProject.supportLibVersion
+ implementation 'com.andr... | 2 | 2 | 1 | [{"id": "G0", "claim": "The public method isVersionAfterJellyBeanMR1 should be deprecated and retained until v3 instead of being removed, as required by Semantic Versioning.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The support-compat depen... | null |
sjwall__mdx-mermaid__19 | sjwall/mdx-mermaid | 19 | defect | 51c5cb6ba9bf5544c3ed21be3ddb0748524ae519 | 135b622f14972e347b1e6b84f9303d3ea23cee43 | Upgrade unist-util-visit to 4.1.0 | * Change to using ES6 modules from CommonJS (required to use newer unist-util-visit)
* Upgrade unist-util-visit to 4.1.0
Closes: https://github.com/sjwall/mdx-mermaid/issues/18 | diff --git a/doc/docusaurus.config.js b/doc/docusaurus.config.js
index 9f6ea4d..d75f000 100644
--- a/doc/docusaurus.config.js
+++ b/doc/docusaurus.config.js
@@ -83,7 +83,7 @@ const config = {
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
- remarkPlugins: [require... | 2 | 2 | 1 | [{"id": "G0", "claim": "Docusaurus does not support ESM yet, so replacing require with import in the Docusaurus config breaks the mdx parser, and the change should not be merged until Docusaurus supports ESM unless there are use cases outside Docusaurus.", "category": "design", "verdict": "supported", "priority": "P1",... | null |
sjwall__mdx-mermaid__21 | sjwall/mdx-mermaid | 21 | defect | 3d6784ca2d18ab59a302d46d3ed3c69fdeeee5ff | 46b91c5debebf9348e0e5e317af2b621bdf7fea7 | feat: when html theme changes, mermaid theme updates accordingly | Closes #4
The proposed pull request offers the following changes:
1. Use a `MutationObserver` to watch for changes to `html.data-theme` to update mermaid config accordingly
2. Uses the mermaid api's `render` function, since it is the recommended way for integrating `mermaid` in a webpage (see: [docs](https://gith... | diff --git a/.eslintrc.js b/.eslintrc.js
index 44aa46b..cea5209 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -1,7 +1,8 @@
module.exports = {
env: {
browser: true,
- es2021: true
+ es2021: true,
+ jest: true
},
extends: [
'plugin:react/recommended',
@@ -21,5 +22,7 @@ module.exports = {
... | 2 | 2 | 1 | [{"id": "G0", "claim": "The initial theme must be based on the data-theme attribute, otherwise when the page is loaded in dark theme it will be in the light theme.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The theme used should be added as conf... | null |
sjwall__mdx-mermaid__34 | sjwall/mdx-mermaid | 34 | defect | f19c0a7009d9f0eb123ca225f4c84e5bbbf46200 | c4186e9370bf71d0a92486f75eafa8511d4c3d3f | Pass config for all components. Fixes #33. | Opening this PR as it does fix issue #33, however, am I unsure why the code was only passing the config for the first instance in the first place, so some discussion may be required. | diff --git a/package.json b/package.json
index 6c3be88..f319a6f 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "mdx-mermaid",
- "version": "1.2.1",
+ "version": "1.2.2",
"description": "Display mermaid diagrams in mdx files.",
"types": "index.d.ts",
"main": "lib/mdxast-mermaid.js"... | 1 | 1 | 1 | [{"id": "G0", "claim": "The PR's change makes mermaid.initialize run for every Mermaid component instance instead of once per page (so theme changes re-initialize repeatedly); the guard should be restructured so initialize is only called when config is present and only one component watches for theme changes.", "catego... | null |
sjwall__mdx-mermaid__6 | sjwall/mdx-mermaid | 6 | defect | d1f424670f13e5ad356d789491eaf1f09d0848f7 | 78e455ac9f83607028345da492a8d7af82bd8abb | fix(path) currently ts not support exports in package.json | #5 a fix to work with typescript moduel resolver.
Refs:
https://github.com/microsoft/TypeScript/issues/33079 | diff --git a/src/mdxast-mermaid.ts b/src/mdxast-mermaid.ts
index e41a7c0..bdceea1 100644
--- a/src/mdxast-mermaid.ts
+++ b/src/mdxast-mermaid.ts
@@ -30,7 +30,7 @@ function plugin (config?: Config) {
// See if there is already an import for the Mermaid component
let importFound = false
visit(ast, { type: ... | 1 | 1 | 1 | [{"id": "G0", "claim": "Make the `lib/` segment of the import-detection regex optional so that imports written as `mdx-mermaid/Mermaid` remain compatible.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
skanehira__chibiwasm__4 | skanehira/chibiwasm | 4 | defect | 747729c8d1bb01bcc0a7e37a646e4d162ef412e5 | ee2755e102684bf758262c2b328cdbb52f7c3481 | typos-cli installed | typos-cliというツールを使えるようにしました。これを使ってtypoをチェックすることができます。
# Installation
```sh
cargo install typos-cli
```
# Usage
```sh
typos
```
設定ファイルは_typos.tomlというファイルです。 | diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 0000000..5202659
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,15 @@
+{
+ "cSpell.words": [
+ "chibiwasm",
+ "endianness",
+ "funcref",
+ "ptrs",
+ "spectest",
+ "testspec",
+ ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Remove the .vscode/settings.json file added by the pull request, since the project should not depend on VSCode settings.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
skanehira__ghost__22 | skanehira/ghost | 22 | defect | 6efa5f0422b30f79799f9e3dfe4290017ee18df5 | 758f44247fa30a823a35e27325dbae209644be8e | [BEHAVIORAL] Add auto-scroll feature with toggle control for log viewer | ## Summary
- Implement auto-scroll functionality that automatically follows new log entries
- Add Ctrl+F keybinding to toggle auto-scroll on/off
- Auto-scroll is enabled by default for better log viewing experience
## Features
- ✅ Auto-scroll enabled by default to show latest logs immediately
- ✅ Ctrl+F keybinding to ... | diff --git a/src/app/tui/app.rs b/src/app/tui/app.rs
index e86329c..8b68862 100644
--- a/src/app/tui/app.rs
+++ b/src/app/tui/app.rs
@@ -41,6 +41,7 @@ pub struct TuiApp {
pub selected_task_id: Option<String>,
pub env_scroll_state: ScrollViewState,
pub last_render_area: Rect,
+ pub auto_scroll_enabled:... | 1 | 1 | 0 | [{"id": "G0", "claim": "The logic for detecting new content and triggering auto-scroll is complex and should be extracted into a separate helper method like handle_auto_scroll_update() to improve readability and maintainability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introd... | null |
skeskinen__bert.cpp__15 | skeskinen/bert.cpp | 15 | defect | cd2170ded1f4d245080874836e75b09972737089 | 1764d4703b62f2cab2a23fa1b0d29672c3ae6e53 | Being compatible with Windows | A few minor adjustments are needed to ensure compatibility with Windows and Visual Studio 2022. | diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5032154..a14ded6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -106,7 +106,9 @@ if (BERT_ALL_WARNINGS)
endif()
endif()
+if(NOT WIN32)
add_compile_options(-Wno-format)
+endif()
if(BERT_PERF)
add_compile_definitions(GGML_PERF)
@@ -197,6 +199,10 @@ ... | 1 | 1 | 1 | [{"id": "G0", "claim": "Removing std:: from the min() call makes examples/test_tokenizer.cpp fail to compile on Linux.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
sketch-hq__SketchAPI__302 | sketch-hq/SketchAPI | 302 | defect | 8ea721eebafc1b2aa89c61007380a1e83c97c908 | 8b408547d1bcc61514ea2fa3bcfb58f9bc210abd | add session variables methods | fix #301 | diff --git a/.eslintrc.yml b/.eslintrc.yml
index 07ad2736a..5d23fc2d3 100644
--- a/.eslintrc.yml
+++ b/.eslintrc.yml
@@ -113,6 +113,7 @@ globals:
MSSliceLayer: false
MSImmutableSliceLayer: false
MSExportFormat: false
+ NSThread: false
rules:
###########
diff --git a/CHANGELOG.json b/CHANGELOG.json
index... | 3 | 1 | 0 | [{"id": "G0", "claim": "The documentation describes session variables by stating what they are not persisted as before what they are, which is confusing and should be reworded.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Returning 'com.sketchap... | null |
sketch-hq__SketchAPI__306 | sketch-hq/SketchAPI | 306 | defect | 44ca5c97af10499a43aa12499d7c3f7079f47e01 | eff38c862931c065716a43c29d625f63754dd917 | JSON Object Archives | This is a basic implementation of #292 and allows:
* Fetching a dictionary archive of an object
* Restoring an object from an archive dictionary
Not sure if this is the best way to archive/unarchive objects but it has been working for me in my plugin. Also very open to naming suggestions. | diff --git a/.eslintrc.yml b/.eslintrc.yml
index ec32e0024..b9660ebc3 100644
--- a/.eslintrc.yml
+++ b/.eslintrc.yml
@@ -114,6 +114,11 @@ globals:
MSImmutableSliceLayer: false
MSExportFormat: false
MSTheme: false
+ MSJSONDataArchiver: false
+ MSJSONDictionaryUnarchiver: false
+ MSArchiveHeader: false
+ NSU... | 7 | 7 | 4 | [{"id": "G0", "claim": "jsonArchive should not console.error the archive failure when it also throws.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The archive test should create a Shape (new Shape()) instead of MSLayer.new().", "category": "testin... | null |
sketch-hq__SketchAPI__345 | sketch-hq/SketchAPI | 345 | defect | 2ce1f34c90f227e71303f3fc09e0919e9e73cd58 | d9bc7459f8e590e89f8eabb041bb93b4fe43bab3 | Colors | Issue: https://github.com/BohemianCoding/SketchAPI/issues/44
Adds API access to document and global color/gradient assets using new ColorAsset and GradientAsset classes.
### Global
This is only read at the moment
```javascript
sketch.globalColors() // [ColorAsset]
sketch.globalGradients() // [GradientAsset]... | diff --git a/.eslintrc.yml b/.eslintrc.yml
index 3cfc19e9f..ae36326a8 100644
--- a/.eslintrc.yml
+++ b/.eslintrc.yml
@@ -144,6 +144,8 @@ globals:
MSExportManager: false
NSFileManager: false
NSDataWritingWithoutOverwriting: false
+ MSColorAsset: false
+ MSPersistentAssetCollection: false
MSOverrideProperty... | 4 | 4 | 1 | [{"id": "G0", "claim": "Returning plain objects from the Document.colors getter is not enough because mutating an item (e.g. doc.colors[0].name = 'new name') would not work, so the getter should return wrapped objects instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}... | null |
sketch-hq__SketchAPI__360 | sketch-hq/SketchAPI | 360 | defect | b108625a197d286792b00ee0a597e80eef5fc5ac | 574833bbaa588f2213d2026b53a5175ad66d5e50 | shared styles arrays | fix #355 | diff --git a/CHANGELOG.json b/CHANGELOG.json
index 7ae195faf..ecc67d1ab 100644
--- a/CHANGELOG.json
+++ b/CHANGELOG.json
@@ -1,5 +1,8 @@
{
- "unreleased": ["[New] Add `colors` and `gradients` properties on Document"],
+ "unreleased": [
+ "[New] Add `colors` and `gradients` properties on Document",
+ "[Improved... | 1 | 1 | 0 | [{"id": "G0", "claim": "The property name in the user-facing strings is misspelled as `sharedLayersStyles` and should read `sharedLayerStyles`, in the SharedStyle deprecation warning, the constructor error message, and the SharedStyle docs example.", "category": "documentation", "verdict": "supported", "priority": "P2"... | null |
sketch-hq__SketchAPI__361 | sketch-hq/SketchAPI | 361 | defect | b108625a197d286792b00ee0a597e80eef5fc5ac | bed5f4d9c2d58f6c020faebb215c72353c68cf76 | export returns a buffer if output is false | fix #185 | diff --git a/.eslintrc.yml b/.eslintrc.yml
index 98e651f45..fa59f099c 100644
--- a/.eslintrc.yml
+++ b/.eslintrc.yml
@@ -149,6 +149,9 @@ globals:
MSPersistentAssetCollection: false
MSOverrideProperty: false
MSOverridePoint: false
+ CGRectNull: false
+ NSColorSpace: false
+ MSExporter: false
rules:
###... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new test body contains a placeholder assertion `expect(false).toBe(true)` instead of a real expectation.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test name has a typo: 'mulitple' should read 'multiple'.", "category"... | null |
sketch-hq__SketchAPI__801 | sketch-hq/SketchAPI | 801 | defect | 27678d01319236b454fc7358f686e3a735f08c7b | 5f3d061a9adab59a93d9c2dc4af9226287be8238 | Adds some randomness to output paths for test assets | Connect to https://github.com/sketch-hq/Sketch/issues/32823 | diff --git a/.eslintrc b/.eslintrc
index 3338d8383..c6862efca 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -180,6 +180,7 @@
"MSFreeformGroupLayout": "readonly",
"MSSwatch": "readonly",
"MSSwatchReference": "readonly",
- "MSSwatchProvider": "readonly"
+ "MSSwatchProvider": "readonly",
+ "NSUUID": "r... | 1 | 1 | 0 | [{"id": "G0", "claim": "Drop the final appended `/` from outputPath(), verify the call sites that join onto it still use `/` separators, and improve readability of the long chained stringByAppendingPathComponent expression with line breaks.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope":... | null |
sketch-hq__SketchAPI__850 | sketch-hq/SketchAPI | 850 | defect | 0062edac473ee43a8abb7a2339631319108c73a0 | 57770daca1cfb80a4c378c027c45620d3edc73ba | Code Review: Expose WebP export errors in the API (#39104) | Connect sketch-hq/sketch#39104
Created by `bo pr`. | diff --git a/.eslintrc b/.eslintrc
index 00ceabda..8d9a492e 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -181,6 +181,7 @@
"MSSwatch": "readonly",
"MSSwatchReference": "readonly",
"MSSwatchProvider": "readonly",
- "NSUUID": "readonly"
+ "NSUUID": "readonly",
+ "NSError": "readonly",
}
}
diff --g... | 1 | 1 | 0 | [{"id": "G0", "claim": "The 'Failed to export. ' string should be part of the error's localized description already, rather than a generic prefix prepended by the API.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
sketch-hq__SketchAPI__853 | sketch-hq/SketchAPI | 853 | defect | 0062edac473ee43a8abb7a2339631319108c73a0 | 114c27d3c8b148dc46a1ff6111b2c4bf4bc7a9c5 | Code Review: JavaScript API SymbolInstance.detach method broken in 76+ (#39113) | Connect sketch-hq/sketch#39113
Created by `bo pr`. | diff --git a/.eslintrc b/.eslintrc
index 00ceabda..ebc0c848 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -181,6 +181,7 @@
"MSSwatch": "readonly",
"MSSwatchReference": "readonly",
"MSSwatchProvider": "readonly",
- "NSUUID": "readonly"
+ "NSUUID": "readonly",
+ "NSMapTable": "readonly",
}
}
diff ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new NSMapTable check and objectForKey logic in SymbolInstance.detach's recursive branch should have an explanatory comment on why it's done.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
skfolio__skfolio__198 | skfolio/skfolio | 198 | defect | ed63413b33fbe94527a4c12bd59c10484520a729 | 6a67be9ad67ac6a2644cfc320b7d39e1a8f32270 | [ENH] Add Ex-Ante and Ex-Post Tracking Error risk measures | <!--
Welcome to skfolio, and thanks for contributing!
-->
#### Reference Issues/PRs
Fixes #195
<!--
Example: Fixes #1234. See also #3456.
Please use keywords (e.g., Fixes) to create link to the issues or pull requests
you resolved, so that they will automatically be closed when your pull request
is merged... | diff --git a/docs/api.rst b/docs/api.rst
index e3917e04..6e8f0810 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -225,6 +225,7 @@ Classes
optimization.ConvexOptimization
optimization.MeanRisk
+ optimization.ReturnBasedTracker
optimization.RiskBudgeting
optimization.MaximumDiversification
... | 7 | 7 | 4 | [{"id": "G0", "claim": "The tracking-error feature should be exposed through dedicated estimators (e.g. ReturnBasedTracker) plus a `target_weights` parameter on `MeanRisk` instead of passing benchmark weights through `y`, since the scikit-learn API requires `y` to have the same number of observations as `X`, with a new... | null |
skfolio__skfolio__203 | skfolio/skfolio | 203 | defect | 77ced90a02313c1e9253ed53bb9c4529662307f8 | 471dc17b147100dd1718a69eb45c0b0ddd910c6f | [BUG] Fixed issue with small floats breaking entropy pooling |
#### Reference Issues/PRs
Fixes #202
#### What does this implement/fix? Explain your changes.
One-liner fix to prevent floats being represented in scientific notation when converted to strings
#### Does your contribution introduce a new dependency? If yes, which one?
no
#### Did you add any tests for th... | diff --git a/src/skfolio/prior/_entropy_pooling.py b/src/skfolio/prior/_entropy_pooling.py
index e272a763..96531f9b 100644
--- a/src/skfolio/prior/_entropy_pooling.py
+++ b/src/skfolio/prior/_entropy_pooling.py
@@ -1354,7 +1354,7 @@ def repl(match) -> str:
asset = match.group(2)
post_multiplier = floa... | 2 | 2 | 0 | [{"id": "G0", "claim": "Use f\"{result_value:.16f}\".rstrip('0').rstrip('.') in repl() so long tailing 0s are cleaned up, and add a small comment noting that :16g is avoided to keep very small numbers out of scientific notation.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introd... | null |
skift-org__skift__297 | skift-org/skift | 297 | defect | 1d208a37c745f174535c340c6a3ce3ffdcf99c52 | c608523db0128d3125867ac8b96a6b76f76e58a5 | Custom png io | - [x] Implement PNG chunk parsing
- [x] Support for RGB,RGBA, grayscale, grayscale with alpha
- [x] Support for paletted pngs
- [x] Support for CRC32 computation and validation
- [ ] Support for ADAM7 interlacing
- [ ] Support for bitdepths other than 8
- [ ] Support for encoding | diff --git a/.gitmodules b/.gitmodules
index 7d3c60594d2..584a036b743 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,8 +1,3 @@
-[submodule "thirdparty/lodepng"]
- path = thirdparty/lodepng
- url = https://github.com/skiftOS/lodepng
- branch=master
-
[submodule "thirdparty/limine"]
path = thirdparty/limine
url = ... | 4 | 4 | 1 | [{"id": "G0", "claim": "The `graphic` library should be listed first in TESTS_LIBS because it depends on `compression` and `io`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Bitmap::load_from should read directly from the IO::File instead of readi... | null |
skift-org__skift__326 | skift-org/skift | 326 | defect | 2d5381b115d8f19160cf689ffb35f1abb803e165 | efe9e2159bf6740b545546f8875568b3373ea702 | libxml: start working on an xml parser | - [x] Read nodes and their child nodes (node names and their content)
- [x] Read the attributes inside each starting tag
- [x] Handle XML declarations (`<?`)
- [x] Skip XML comments
- [x] Handle empty tags | diff --git a/sysroot/Files/Tests/xml/basic.xml b/sysroot/Files/Tests/xml/basic.xml
new file mode 100644
index 00000000000..235651d7878
--- /dev/null
+++ b/sysroot/Files/Tests/xml/basic.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<Test TestId="0001" TestType="CMD">
+ <Name>Convert num... | 3 | 1 | 0 | [{"id": "G0", "claim": "The test should use Assert::is_true instead of Assert::equal(file.exist(), true).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test could avoid external xml files by embedding the document as a C++ raw string.", "ca... | null |
skim-rs__skim__1028 | skim-rs/skim | 1,028 | defect | 6b355e144ab7cbb0995221a1bfe716483904f1a1 | 4a1208cceb0f78acd5ffb78ba7317940755b9990 | chore: deps: Only use frizbee on x86_64 and aarch64 | ## Checklist
- [x] The title of my PR follows [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/)
- [x] I have updated the documentation (`README.md`, comments, `src/manpage.rs` and/or `src/options.rs` if applicable)
- [ ] I have added unit tests
- [x] I have added [integration tests](https://... | diff --git a/Cargo.toml b/Cargo.toml
index 5d566bf43..48ba32977 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -75,7 +75,6 @@ clap_complete_nushell = "=4.6.0"
interprocess = { version = "=2.4.0", features = ["tokio"] }
serde = { version = "=1.0.228", features = ["derive"] }
ron = "=0.12.1"
-frizbee = { version = "=0.8.... | 3 | 2 | 2 | [{"id": "G0", "claim": "No new tests or CI jobs verify that the conditional compilation works — that builds succeed on non-x86_64/aarch64 architectures and that frizbee is properly unavailable there.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Gating... | null |
skim-rs__skim__1044 | skim-rs/skim | 1,044 | defect | e531182a2bf132d3d2aa085a7557580f76ecc578 | 461faaaa24ea5e0581202788afd9485b80c166f7 | feat: add border none (closes #1041) | ## Checklist
- [x] The title of my PR follows [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/)
- [x] I have updated the documentation (`README.md`, comments, `src/manpage.rs` and/or `src/options.rs` if applicable)
- [x] I have added unit tests
- [x] I have added [integration tests](https://... | diff --git a/man/man1/sk.1 b/man/man1/sk.1
index 296a47aa8..1f97975b4 100644
--- a/man/man1/sk.1
+++ b/man/man1/sk.1
@@ -409,7 +409,7 @@ Number of lines of the input treated as header
The first N lines of the input are treated as the sticky header. When \-\-with\-nth is set, the lines are transformed just like the ... | 1 | 1 | 1 | [{"id": "G0", "claim": "This is a regression: the --no-border flag is not respected for tmux popups because the PR dropped the check that mapped it to \"none\", so BorderType::None always maps to \"single\"; the code should check options.no_border first (mapping it to \"none\") before matching on border type, as the ze... | null |
skim-rs__skim__961 | skim-rs/skim | 961 | defect | fdd93644b413d05fe913fe4fc691d8c470b4d1ff | eac80b58a3efdd1e797e9d5717d2b735c3ff2f9a | feat: use a separate thread pool for Matcher (and perhaps for all of skim) | ## Description of the changes
Use separate thread pool for Matcher. Using the rayon global thread may interfere with apps running in that thread pool and/or effect interactivity.
Maybe able to de-initialize the static MATCHER_THREAD_POOL by using OnceLock, instead of LazyLock, and using take() to return it to a ... | diff --git a/src/lib.rs b/src/lib.rs
index ce02b6a71..f3a96b587 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -44,7 +44,6 @@ use ratatui::prelude::CrosstermBackend;
use ratatui::style::Style;
use ratatui::text::{Line, Span};
use reader::Reader;
-use tokio::select;
use tui::App;
use tui::Event;
use tui::Size;
@@ -40... | 6 | 5 | 2 | [{"id": "G0", "claim": "The separate thread pool should be opt-in rather than always-on, e.g. by letting callers create the pool themselves or via a `separate_thread_pool` method, since most users are binary users.", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "c... | null |
skorokithakis__catt__120 | skorokithakis/catt | 120 | defect | b982796d5719d011a1a4d1f19fcbbcf5e9193a62 | fb3bc4b9a614c5f3a360b4ae25276aa37dda65a6 | Group support | We are now assuming that 1st/2nd gen. chromecasts are the only kinds of devices that report different names via DIAL/zeroconf.
fixes #119
Please test, as I do not have access to multiple audio devices myself. | diff --git a/catt/controllers.py b/catt/controllers.py
index 3882aff7..cab3cebd 100644
--- a/catt/controllers.py
+++ b/catt/controllers.py
@@ -9,6 +9,7 @@
from pychromecast.controllers.dashcast import APP_DASHCAST as DASHCAST_APP_ID
from pychromecast.controllers.dashcast import DashCastController as PyChromecastDashC... | 4 | 4 | 0 | [{"id": "G0", "claim": "The cache directory name should be built from a sha1 of the version (first ~8 chars) to guard against a version string containing slashes such as `0.4.3-pre1/amd`.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Type annotatio... | null |
skorokithakis__catt__197 | skorokithakis/catt | 197 | defect | 579903b47e8b161245bd857042a3e602fe252d5b | aff97b33fa1793be98fed8e7d07233d44fb3583c | feat: Add ability to use ip-address as device argument | Howdy! :cowboy_hat_face:
This won't work with audio device groups, as the "group leader" is on a different port.
It should be easy to add a `--port` option. I'll implement that as soon as I get my hands on another cc audio, so I can test.
fixes #196 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index a9c0c865..9cdeb236 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,13 @@
# Changelog
+## Unreleased
+
+### Fixes
+
+* Try to eliminate spurious error msgs when seeking (#194) [theychx]
+
+
## v0.9.5 (2019-03-26)
### Fixes
diff --git a/catt/cli.py b/catt/cl... | 4 | 1 | 0 | [{"id": "G0", "claim": "The PR should try to connect using the given address first and only fall back to a name lookup (cast = get_chromecast_with_ip(device) or get_chromecast_by_name(device)), as long as that does not make catt noticeably slower.", "category": "design", "verdict": "opposed", "priority": "P3", "scope":... | null |
skorokithakis__catt__217 | skorokithakis/catt | 217 | defect | 7de895f9576d2fd00b6c6fe2ac7ec5a5e98e56bf | 7b637f6b4aaa6e08112e9cb62bcce13000256571 | Cache zeroconf device info | Howdy
For some time now, Google devices have stopped providing manufacturer/model_name info through DIAL, breaking our device type detection stuff in `StreamInfo`. So I've implemented a change to our caching, so we cache all the info we need from zeroconf. This work also turned out make some code a bit leaner.
PS: ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index ea3e2659..9a300bed 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,8 @@
### Fixes
+* Add socket based fallback approach in get_local_ip. [Stavros Korokithakis]
+
* Add socket based fallback approach in get_local_ip. [theychx]
* Fix namespace related crash ... | 5 | 3 | 0 | [{"id": "G0", "claim": "The five-line positional CCInfo(...) construction in Cache.get_data should be replaced with a more elegant way of writing it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The changelog line the PR adds duplicates the ex... | null |
skorokithakis__catt__237 | skorokithakis/catt | 237 | defect | 3e9dc9b8845823a21dc03e38e5481a84079d68a5 | 924bd04bf9976387137d94b9bb24710eb4442653 | feat: Add block option to cast cmd | As promised.
Fixes #218 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 74c8d119..e335f408 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,13 @@
## Unreleased
+### Features
+
+* Add block option to cast cmd. [theychx]
+
+
+## v0.10.3 (2020-01-26)
+
### Fixes
* Update PyChromecast requirement. [Stavros Korokithakis]
diff --git ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new `block` option should be given an explicit default value of `False` so that existing third-party scripts calling `cast` directly are not broken.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The updated YouTube playlist t... | null |
skorokithakis__catt__277 | skorokithakis/catt | 277 | defect | 9c2d2c88bbe2336d0e0fa0927fefd1ff2788c2a1 | ecc8a69c43040655be708fd0b1fe3e47c42cd90f | Pychromecast 7.5 compat | ..with no cache! (only marginally slower than before)
Let me know what you think.
| diff --git a/catt/cli.py b/catt/cli.py
index 2e8e1dd9..14a719b0 100755
--- a/catt/cli.py
+++ b/catt/cli.py
@@ -10,8 +10,8 @@
import click
from . import __version__
-from .controllers import Cache
from .controllers import CastState
+from .controllers import get_all_ccinfos_as_dict
from .controllers import get_chro... | 4 | 3 | 0 | [{"id": "G0", "claim": "setup.py should pin PyChromecast to the major version (e.g. ~=7) instead of 'PyChromecast>=7.1.0', so that the release of PyChromecast 8 cannot break the install again.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The self-describ... | null |
skorokithakis__catt__307 | skorokithakis/catt | 307 | defect | a1682ac34e88ac519a0ff1595819c75c71bab380 | 8db4ead492601586b18dfc35d00dfefe862a31e4 | Cast 'n' seek | fixes #286 :horse_racing: :horse_racing: :horse_racing: | diff --git a/catt/cli.py b/catt/cli.py
index d0ed4c0b..54fbf298 100755
--- a/catt/cli.py
+++ b/catt/cli.py
@@ -160,6 +160,7 @@ def cli(ctx, device):
help="YouTube-DL option. "
"Should be passed as `-y option=value`, and can be specified multiple times (implies --force-default).",
)
+@click.option("--seek", t... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new cast option '--seek' should be renamed to '--seek-to' because that name is more explicit.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
skorokithakis__catt__427 | skorokithakis/catt | 427 | defect | 82cd0fe8afb9ff4395182316da59e600b7500904 | c625d1802da3b41bd37f84f3f7d2368e3a9b2943 | Add volumemute command | With this addition, CATT should now have the ability to toggle between mute states while automatically preserving the previous volume level. This function will also prevent a volume preview tone on some devices.
Example: `catt -d <DEVICE_OR_IP> volumemute <true | false>`
Note that the default value is `true`.
##... | diff --git a/catt/api.py b/catt/api.py
index aba302d..b85e341 100644
--- a/catt/api.py
+++ b/catt/api.py
@@ -160,6 +160,15 @@ def volumedown(self, delta: float) -> None:
self.controller.volumedown(delta)
+ def volumemute(self, muted: bool) -> None:
+ """
+ Enable mute on supported devices.... | 3 | 2 | 0 | [{"id": "G0", "claim": "Move the \"Added by @neurodiv-eric\" credit out of the volumemute docstring into the CONTRIBUTING file, since docstrings should only document the function.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The mute status outp... | null |
skorokithakis__catt__491 | skorokithakis/catt | 491 | defect | 426c815e74116b0d4d148e5c8371b77cb9878eca | 06386a066e6ed5217f734094f49f876d4d5a5847 | Title, Volume and remote Mp3 files fix | Added ability to provide title (useful for the mp3 media player) and volume when casting.
Also remote mp3 files didnt work before, now they do instead of saying "no suitable format found"
Example:
`catt -d Office cast https://file-examples.com/storage/fede0b421769af5709b2497/2017/11/file_example_MP3_700KB.m... | diff --git a/catt/cli.py b/catt/cli.py
index 2299dde..0cbc8ce 100755
--- a/catt/cli.py
+++ b/catt/cli.py
@@ -214,6 +214,19 @@ def cli(ctx, device):
metavar="TIME",
help="Start playback at specific timestamp.",
)
+@click.option(
+ "-l",
+ "--title",
+ metavar="TITLE",
+ help="Specify a title for t... | 2 | 1 | 1 | [{"id": "G0", "claim": "The URL hard-coded in test_stream_info_direct_link does not exist, so the test it belongs to cannot work.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The tests depend on someone's personal server, which the maintainer is not c... | null |
skorokithakis__catt__55 | skorokithakis/catt | 55 | defect | 8074ef53778ebcbcdcbe778dbada990d8aa6b5b3 | 9f5cf0dfa5b7f0c6ce7982ea52dc9e43bde6a191 | [WIP] Controllers refactor | Hi
So while I did the YouTube stuff, I realized that ```catt``` would turn into a mess sooner rather than later, if we were to just continue to latch new functionality from different controllers onto existing code. So I propose this design, that tries to make the capabilities (or lack thereof) of any controller, trans... | diff --git a/catt/cli.py b/catt/cli.py
index e099dabd..8b2e9895 100644
--- a/catt/cli.py
+++ b/catt/cli.py
@@ -5,19 +5,18 @@
from threading import Thread
try:
import ConfigParser as configparser
-except:
+except ImportError:
import configparser
import click
from .controllers import (
- Cache,
- ... | 5 | 4 | 1 | [{"id": "G0", "claim": "The repeated `cst.name != \"default\"` check in cli.cast is cryptic and duplicated, and should be split off and/or explained with a comment.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "setup_cast should have a docstrin... | null |
skorokithakis__catt__84 | skorokithakis/catt | 84 | defect | 3e6385fcbff641532379c233df99292b4af94beb | f4fef272b73871af296808bf3b3f5286e0c3162f | Save/restore | Hi.
This appears to be working pretty well, but still has some issues that need to be resolved:
+ ~~This does not work for local file casting. This also means that ```cli.save``` needs to be able to determine whether an active stream is from a local file. I can't think of a non-hackish way of doing this, the way th... | diff --git a/catt/cli.py b/catt/cli.py
index e88e00e7..77ef5264 100644
--- a/catt/cli.py
+++ b/catt/cli.py
@@ -8,16 +8,19 @@
from .controllers import (
Cache,
+ CastState,
get_chromecast,
get_chromecasts,
PlaybackError,
- setup_cast
+ setup_cast,
+ StateFileError
)
from .http_server... | 4 | 2 | 1 | [{"id": "G0", "claim": "The save command should accept an optional name/path argument so that multiple saved states can coexist (e.g. `catt save mix1` writing `state-mix1.json`).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Saving should refuse to stor... | null |
skorokithakis__catt__9 | skorokithakis/catt | 9 | defect | f0a0415002bc0850bb15b6f3e5643b44094871fd | 6be4c297accc6a198286802a733e718ce2d5ee07 | feat: Add user selectable CC device | Hi. So here's part 1 of the solution to https://github.com/skorokithakis/catt/issues/5 (config still to come).
I am not very good friends with click, so I hope my implementation is somewhat correct. | diff --git a/catt/cli.py b/catt/cli.py
index 25231c7d..04dad6b3 100644
--- a/catt/cli.py
+++ b/catt/cli.py
@@ -16,19 +16,29 @@ def get_local_ip(cc_host):
return s.getsockname()[0]
+class Device(object):
+ def __init__(self, name):
+ self.name = name
+
+
+pass_device = click.make_pass_decorator(Device... | 6 | 3 | 0 | [{"id": "G0", "claim": "The pull request has considerable overlap with #8.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Cache.__init__ should assign the cache filename directly to self.cache_filename instead of routing it through a local variable.", "c... | null |
skorokithakis__django-annoying__47 | skorokithakis/django-annoying | 47 | defect | 20ef6de12d7fb1532b441031230b3bef4b4a3c01 | 06c6032424aeac3fad0a3e86127cf501885632b3 | Updates for Django 1.9 and improvements to README.md | @skorokithakis I was investigating the Django 1.9 error in the issue you just closed and went through and updated a few more areas for Django 1.9. This fixes a bug running the test suite on Django 1.9 via `python test.py`.
Also added links in the README.md to make it more easily navigable, and added a TOC entry for `... | diff --git a/README.md b/README.md
index 2c57230..adfaefa 100644
--- a/README.md
+++ b/README.md
@@ -6,19 +6,20 @@ framework.
### Features
-- render\_to decorator - Reduce typing in django views.
-- signals decorator - Allow using signals as decorators.
-- ajax\_request decorator - Returns JsonResponse with ... | 3 | 3 | 1 | [{"id": "G0", "claim": "The pull request breaks the tests on Django versions older than 1.9, and the reviewer would like backwards-compatible fallbacks so the tests keep working on the older versions the project still supports.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"... | null |
skorokithakis__django-annoying__49 | skorokithakis/django-annoying | 49 | defect | 907a2a3f294fe6aff8f19a5955a634230e1d3b3c | ca7342b0215011c177273bc43097020384e01523 | Fix not working JSONField in Django 1.9 | The issue was in `get_db_prep_save` that parent's method has to return
a dict instead of an str.
Resolves issue #48.
| diff --git a/annoying/fields.py b/annoying/fields.py
index bd1c5ca..2b16f39 100644
--- a/annoying/fields.py
+++ b/annoying/fields.py
@@ -127,7 +127,9 @@ def get_db_prep_save(self, value, *args, **kwargs):
return None
if isinstance(value, dict) or isinstance(value, list):
value = json.... | 3 | 3 | 1 | [{"id": "G0", "claim": "The hash_dict test helper hashes the string returned by json.dumps directly, so `d` needs encoding before hashing.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In JSONField.get_db_prep_save the json.dumps result should be r... | null |
skorokithakis__django-annoying__59 | skorokithakis/django-annoying | 59 | defect | 1612e84f9e9038a1c729af64910bd19d17336bf8 | f832c72013da9208a4d52c108848519ba3795768 | Move test directory outside of library | * More traditional Python project layout
* Can avoid defining models.py in library
* Can now easily avoid distributing tests as part of package
* Can simplify test runner to a single command
* Tests auto-discovered, don't need to explicitly import them in __init__.py | diff --git a/.travis.yml b/.travis.yml
index 48618bd..08862d2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -24,4 +24,4 @@ matrix:
env: DJANGO=1.9
install:
- pip install -q Django==$DJANGO
-script: python test.py
+script: ./runtests.sh
diff --git a/annoying/models.py b/annoying/models.py
deleted file mode 10... | 1 | 1 | 1 | [{"id": "G0", "claim": "The script line this pull request adds to .travis.yml runs ./runtests.sh, but runtests.sh itself is not committed in the pull request as first reviewed.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
skorokithakis__django-annoying__65 | skorokithakis/django-annoying | 65 | defect | 73d5535532dc00dbc125b4947dfeca183b053411 | 859fef130b11aebebbaa7dcd4452392124407750 | feat: Allow serializer customization for JSONField (#53) | Changes for https://github.com/skorokithakis/django-annoying/issues/53 | diff --git a/annoying/decorators.py b/annoying/decorators.py
index 984c122..08fb5d7 100644
--- a/annoying/decorators.py
+++ b/annoying/decorators.py
@@ -136,6 +136,7 @@ def wrapper(**kwargs):
def register_signal(self, signal, name):
self._signals[name] = signal
+
signals = Signals()
diff --git a/an... | 2 | 1 | 1 | [{"id": "G0", "claim": "Defining JSONField.__init__ with serializer=None, deserializer=None before *args will break the default order of positional parameters on JSONField, so positional arguments callers pass would bind to serializer/deserializer instead.", "category": "correctness", "verdict": "supported", "priority"... | null |
skovhus__jest-codemods__231 | skovhus/jest-codemods | 231 | defect | fa36c27f270c70253fa7aa9e669747ca34f6d4f3 | 7a25eca56ca9d5502e5eed3f61ca822fe4db8757 | tape: add rejects | sample
```diff
- t.rejects(
- someFunction('some arg'),
- new Error('foo'),
- 'Error is thrown',
- );
+ expect(someFunction('some arg')).rejects.toStrictEqual(new Error('foo'));
``` | diff --git a/src/transformers/tape.ts b/src/transformers/tape.ts
index d650c788..73fbb660 100644
--- a/src/transformers/tape.ts
+++ b/src/transformers/tape.ts
@@ -12,6 +12,7 @@ import {
} from '../utils/tape-ava-helpers'
const SPECIAL_THROWS_CASE = '(special throws case)'
+const SPECIAL_REJECTS_CASE = '(special rej... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a test case covering the new t.rejects transformation.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
sktime__pytorch-forecasting__1359 | sktime/pytorch-forecasting | 1,359 | defect | b4ce1cfdfe585a8234ff1bd7488dd6df3a4b7f65 | 01937bae1a72887760083949ed38a8096fa8e6e0 | Bug Fix for #1071: NHiTs encoder/decoder covariate size difference bug | ### Description
Fix for https://github.com/jdb78/pytorch-forecasting/issues/1071 and https://github.com/jdb78/pytorch-forecasting/issues/1065
| diff --git a/pytorch_forecasting/models/base_model.py b/pytorch_forecasting/models/base_model.py
index 7c8582554..50a4ad77f 100644
--- a/pytorch_forecasting/models/base_model.py
+++ b/pytorch_forecasting/models/base_model.py
@@ -393,6 +393,7 @@ def forward(self, x):
def __init__(
self,
+ dataset_... | 1 | 1 | 1 | [{"id": "G0", "claim": "A test should be added for the NHiTS encoder/decoder covariate size fix, since it is an actual change in the model.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
sktime__pytorch-forecasting__1577 | sktime/pytorch-forecasting | 1,577 | defect | 119fa89ceb465b82292d0f2033171ad69a163885 | 5d6a3b6cac78eb5a3df3dcc5cb9f5f84a800a80d | [BUG] remove zero from pooling_sizes and downsample_frequencies | ### Description
This PR partly fixes #1571 for NHiTS.
If `max_prediction_length = 1`, pooling_sizes and downsample_frequencies will contain zero, which causes divided by zero error. This PR replace zero by one.
### Checklist
- [x] Linked issues #1571
- [x] No large changes
- [x] No added/modified tests
... | diff --git a/pytorch_forecasting/models/nhits/__init__.py b/pytorch_forecasting/models/nhits/__init__.py
index a856afcaa..6af643a10 100644
--- a/pytorch_forecasting/models/nhits/__init__.py
+++ b/pytorch_forecasting/models/nhits/__init__.py
@@ -154,8 +154,12 @@ def __init__(
if pooling_sizes is None:
... | 1 | 1 | 1 | [{"id": "G0", "claim": "A test should be added for the case that is being fixed here, i.e., code that breaks before but now runs as expected.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
sktime__pytorch-forecasting__160 | sktime/pytorch-forecasting | 160 | defect | b20e5f1f6d6f00e38f995197998a7a23516bb6ab | ad16918e521b2668b9005da66615f68b54d7a210 | Feature/beta distribution metric | Attempt at implementing Beta distribution for data in range [0, 1].
I could use some thoughts on:
* Changes to GroupNormalizer and TorchNormalizer
* New Normalizer
NOTE: Test is not yet finished (need a normalizer that makes sense....) | diff --git a/pytorch_forecasting/metrics.py b/pytorch_forecasting/metrics.py
index 3c9f39d9c..02ca702c3 100644
--- a/pytorch_forecasting/metrics.py
+++ b/pytorch_forecasting/metrics.py
@@ -820,7 +820,7 @@ class LogNormalDistributionLoss(DistributionLoss):
distribution_class = distributions.LogNormal
distribut... | 5 | 5 | 0 | [{"id": "G0", "claim": "It might make sense to reparametrize the Beta distribution by mean and shape (beta as alpha = mu*nu, beta = (1 - mu)*nu) instead of the original concentrations.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Normalization should b... | null |
sktime__pytorch-forecasting__1648 | sktime/pytorch-forecasting | 1,648 | defect | e2bf3fd6053bf8edb7b7fe4d860ca349ad3549c2 | f3c64ab3e951bb66a3494d5948322782dce7c9f7 | [MNT] handle `mps backend` for lower versions of pytorch and fix `mps` failure on `macOS-latest` runner | ### Description
This PR handles the issue that may result when setting the device to `mps` if the torch version doesn't support `mps backend`
Depends on https://github.com/jdb78/pytorch-forecasting/pull/1633
I used `pytest.MonkeyPatch()` to disable the discovery of the `mps` accelerator. The tests run on CPU ... | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index c307f4879..df77fd421 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -79,7 +79,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- os: [ubuntu-latest, macos-13, windows-latest]
+ os: [ubun... | 3 | 3 | 0 | [{"id": "G0", "claim": "Put the mps patch in a global autouse fixture (e.g. in conftest.py) instead of applying it manually for every test.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new mps handling in move_to_device may be too aggressi... | null |
sktime__pytorch-forecasting__1812 | sktime/pytorch-forecasting | 1,812 | defect | 4c30351a4c7441e5061b1a033e5fbb4e66f50d54 | 6d6d18eab999f69a7fa0f37b4d96cb6cd906ebdc | [ENH] EXPERIMENTAL: TFT model based on the new data pipeline | ### Description
This PR implements the tft model based on the new data pipeline. This PR is branched off from #1811
| diff --git a/pytorch_forecasting/models/base/base_model_refactor.py b/pytorch_forecasting/models/base/base_model_refactor.py
new file mode 100644
index 000000000..ccd2c2600
--- /dev/null
+++ b/pytorch_forecasting/models/base/base_model_refactor.py
@@ -0,0 +1,283 @@
+#####################################################... | 4 | 4 | 0 | [{"id": "G0", "claim": "The new base model should emit an experimental-API warning message like the data modules do, referencing `self` so the user also sees the name of the model.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new modules should be ... | null |
sktime__pytorch-forecasting__1827 | sktime/pytorch-forecasting | 1,827 | defect | 0db17b9e063d8d670019579fef8902e91733c1b5 | a9d8fa3000eb3e5b341014fc0fdea1ec804a26b9 | [BUG] fix incorrect concatenation dimension in `concat_sequences` | ### Description
This PR suggest a fix [1823](https://github.com/sktime/pytorch-forecasting/issues/1823)
### Checklist
- [ ] Linked issues (if existing)
- [ ] Amended changelog for large changes (and added myself there as contributor)
- [ ] Added/modified tests
- [ ] Used pre-commit hooks when committing to ... | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index ccbb25b33..625441e71 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -122,7 +122,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
- python-version: ["... | 3 | 3 | 3 | [{"id": "G0", "claim": "The PR should revert its changes to .github/workflows/test.yml, removing all 3.13 tests because of one failing combination, since the maintainer will handle that separately.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The PR s... | null |
sktime__pytorch-forecasting__1841 | sktime/pytorch-forecasting | 1,841 | defect | 4c30351a4c7441e5061b1a033e5fbb4e66f50d54 | e1e360eb7e626ce590e8c8a1bf6a3467220cdbb2 | [ENH] Test framework for `ptf-v2` | ### Description
This PR solves #1838
Implements Test framework for v2
| diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index ccbb25b33..244cdbac2 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -112,7 +112,7 @@ jobs:
- name: Run pytest
shell: bash
- run: python -m pytest tests
+ run: python -m pytest
pyt... | 2 | 1 | 0 | [{"id": "G3", "claim": "There should be two private base classes, one for v1 and one for v2, off a common base class, so that the v1 and v2 classes only differ in their tag setting.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G6", "claim": "The try/finally block in ... | null |
sktime__pytorch-forecasting__1859 | sktime/pytorch-forecasting | 1,859 | defect | de1a4f1231775d238acbdce491c8078f0a29f346 | 9b99e7ee606350e23c5e63f7e9f50414bde0bf67 | [ENH] `DecoderMLP` metadata container for v1 tests | Adds `DecoderMLP` metadata container for v1 tests.
Stacks on https://github.com/sktime/pytorch-forecasting/pull/1859 | diff --git a/pytorch_forecasting/models/mlp/__init__.py b/pytorch_forecasting/models/mlp/__init__.py
index 6a3532fcb..1ea6fccb2 100644
--- a/pytorch_forecasting/models/mlp/__init__.py
+++ b/pytorch_forecasting/models/mlp/__init__.py
@@ -1,6 +1,7 @@
"""Simple models based on fully connected networks."""
from pytorch... | 1 | 1 | 1 | [{"id": "G0", "claim": "Tests fail with `TypeError: BaseModel.__init__() got an unexpected keyword argument 'train_only'`, which the reviewer attributes to the `train_only=True` entry in `get_test_train_params` being sent through kwargs to the model constructor.", "category": "correctness", "verdict": "supported", "pri... | null |
sktime__pytorch-forecasting__1872 | sktime/pytorch-forecasting | 1,872 | defect | 4384140418bfe8e8c64cc6ce5fc19372508bfccd | dc9a2874d8b9dd09dadcae02f728bef0d6a2cef8 | [BUG] Fix for the case when reduction is set to `none` | ### Description
fixes https://github.com/sktime/pytorch-forecasting/issues/1614
This PR fixes the tests for the reduction set to none for the `MultiHorizonMetric` class.
Using `cat` needs the `default` tensor is expected to be of at least one dimension.
| diff --git a/pytorch_forecasting/metrics/base_metrics.py b/pytorch_forecasting/metrics/base_metrics.py
index 8b4ee141f..228568766 100644
--- a/pytorch_forecasting/metrics/base_metrics.py
+++ b/pytorch_forecasting/metrics/base_metrics.py
@@ -817,16 +817,28 @@ class MultiHorizonMetric(Metric):
def __init__(self, r... | 1 | 1 | 0 | [{"id": "G0", "claim": "The __init__ should dispatch on the reduction argument to set the defaults and reduce fx, calling add_state once per state instead of duplicating the two add_state blocks in each branch.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
sktime__pytorch-forecasting__1874 | sktime/pytorch-forecasting | 1,874 | defect | 33041c74f5598be629cf02dbca87da2195fd622e | ed714132ad62c3a792f1cbd107679f1d7b7d9f2a | [ENH] `DLinear` model from `tslib` | ### Description
This PR works on issue #1869 to implement `DLinear` from `tslib`. Stacks on #1836 and #1841.
Files to review (just pointing this out since there's a lot of files in the stack, not relevant to this PR).
- dlinear model - [link](https://github.com/sktime/pytorch-forecasting/blob/7f0495d6875ce918a9f... | diff --git a/pytorch_forecasting/layers/decomposition/__init__.py b/pytorch_forecasting/layers/decomposition/__init__.py
new file mode 100644
index 000000000..16e0bf05d
--- /dev/null
+++ b/pytorch_forecasting/layers/decomposition/__init__.py
@@ -0,0 +1,9 @@
+"""
+Decomposition layers for PyTorch Forecasting.
+"""
+
+fr... | 8 | 6 | 1 | [{"id": "G0", "claim": "DLinear's structure should be modified to support the quantile loss, as `timexer` does, at least for uniformity — or, if deferred to a separate PR, an issue should be opened so it is not forgotten.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "... | null |
sktime__pytorch-forecasting__1902 | sktime/pytorch-forecasting | 1,902 | defect | b2cfc147d515f4bd10ac87ff524de5a10e3e7b8f | 75a0e7770503fa8befc4b39facc5b62835221476 | [BUG] Fix issue with `EncodeNormalizer(method='standard', center=False)` for scale value | Fixes https://github.com/sktime/pytorch-forecasting/issues/1901
This PR fixes the issue with
```python
encoder = EncoderNormalizer(
method='standard',
center=False,
max_length=None,
transformation=None,
method_kwargs={}
)
```
which was returning `scale_` as `mean` of `x` instead its `std... | diff --git a/pytorch_forecasting/data/encoders.py b/pytorch_forecasting/data/encoders.py
index 0e20ff328..dfa37c1df 100644
--- a/pytorch_forecasting/data/encoders.py
+++ b/pytorch_forecasting/data/encoders.py
@@ -664,7 +664,6 @@ def _set_parameters(
)
self.scale_ = (q_75 - q_25) / 2.0 + ep... | 2 | 2 | 0 | [{"id": "G0", "claim": "EncoderNormalizer.min_length should return at least 2 entries for every non-identity method, since std is always required, instead of returning 1 when self.center is True.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "fkir... | null |
sktime__pytorch-forecasting__1903 | sktime/pytorch-forecasting | 1,903 | defect | cae3174d22f873a699f9424912877e7af1c21d36 | 3af3745127be4fdf0cb01e0a99757eb1af8ca74c | [BUG] Fix issue with `plot_prediction_actual_by_variable` unsupported operand type(s) for *: 'numpy.ndarray' and 'Tensor' | fixes https://github.com/sktime/pytorch-forecasting/issues/1822
This PR fixes the issue with `plot_prediction_actual_by_variable` where the input `np.ndarray` was being multiplied to `torch.Tensor` in `TorchNormalizer` `__call__` | diff --git a/pytorch_forecasting/data/encoders.py b/pytorch_forecasting/data/encoders.py
index 4d1906e97..cc0aa2eab 100644
--- a/pytorch_forecasting/data/encoders.py
+++ b/pytorch_forecasting/data/encoders.py
@@ -726,13 +726,13 @@ def transform(
else:
return y
- def inverse_transform(self, y:... | 1 | 1 | 1 | [{"id": "G0", "claim": "The PR should add a test for the bug it fixes (the numpy/Tensor type mismatch in TorchNormalizer inverse transformation), since it fixes a bug.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
sktime__pytorch-forecasting__1929 | sktime/pytorch-forecasting | 1,929 | defect | 15dcbf0f3c4b0e194ba503ed5749bd456124ef3a | 66cb2e4f60093514c03f1fa347168bb746ea410b | [MNT] deduplicating utilities with `scikit-base` | Deduplicates utilities that were copy-pasted to avoid a `scikit-base` dependency early on.
Since the v1 testing framework will require `scikit-base`, it makes sense to now attempt a deduplication.
Adds `scikit-base` as a core dependency. | diff --git a/pyproject.toml b/pyproject.toml
index c19705f23..d7078c5bc 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -32,6 +32,7 @@ dependencies = [
"scipy >=1.8,<2.0",
"pandas >=1.3.0,<3.0.0",
"scikit-learn >=1.2,<2.0",
+ "scikit-base <0.13.0",
]
[project.optional-dependencies]
@@ -101,7 +102,6 @@... | 1 | 1 | 1 | [{"id": "G0", "claim": "Some places in the tests folder still use `_get_installed_packages`, e.g. tests/test_models/test_nbeats_kan.py and tests/test_metrics.py, and appear to have been missed by the migration to scikit-base.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
sktime__pytorch-forecasting__1950 | sktime/pytorch-forecasting | 1,950 | defect | 1956bc82fde4a5585860918fcab1bf0b463a7206 | aa619ec423c63678852dd3765a1ee7755e59cba3 | [BUG] Fix `TimeSeriesDataSet` wrong inferred `tensor` `dtype` when `time_idx` is included in features | #### Reference Issues/PRs
Fixes #1930.
When `time_idx` or some other integer feature is included in the unknow reals, the dataset/dataloader elements are converted into the wrong dtype.
#### What does this implement/fix? Explain your changes.
Modify the function the method `TimeSeriesDataSet._data_to_tensors._t... | diff --git a/pytorch_forecasting/data/timeseries/_timeseries.py b/pytorch_forecasting/data/timeseries/_timeseries.py
index 98d16c920..1a9a4b586 100644
--- a/pytorch_forecasting/data/timeseries/_timeseries.py
+++ b/pytorch_forecasting/data/timeseries/_timeseries.py
@@ -1430,7 +1430,7 @@ def _data_to_tensors(self, data: ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The dtype-kind lookup should avoid materialising the whole data sub-frame, e.g. by converting all of data[cols] to numpy via to_numpy().", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The _to_tensor docstring should be update... | null |
sktime__pytorch-forecasting__1954 | sktime/pytorch-forecasting | 1,954 | defect | 3821c0bbca6d35efd00c1bcf51b42da1971b24a4 | 00eda07ae3e7bfb998ba650395bff7163f47c4c8 | [ENH] `check_estimator` utility for checking new estimators against unified API contract | This adds a `check_estimator` utility for checking new estimators against unified API contract, and test registry utilities.
Mostly based on the `sktime` utilities of the same names, changes are predominantly import path changes. | diff --git a/pytorch_forecasting/tests/_base/_fixture_generator.py b/pytorch_forecasting/tests/_base/_fixture_generator.py
index cdf7f8319..da0f8e799 100644
--- a/pytorch_forecasting/tests/_base/_fixture_generator.py
+++ b/pytorch_forecasting/tests/_base/_fixture_generator.py
@@ -1,6 +1,6 @@
from inspect import isclas... | 7 | 6 | 5 | [{"id": "G0", "claim": "The templated check_estimator is unable to retrieve any tests for an estimator.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "get_test_classes_for_obj uses obj._pkg, which is a method, so it should be called rather than refe... | null |
sktime__pytorch-forecasting__1971 | sktime/pytorch-forecasting | 1,971 | defect | a3bc4523d92d248a26a52f4c34f036c4ca689d2e | 591e4e07915907dfa54a471a62e96f461c029be8 | [ENH] Standardize testing of estimator outputs and skip tests for non-conformant estimators | <!--
Welcome to pytorch-forecasting, and thanks for contributing!
Please have a look at our contribution guide:
https://www.sktime.net/en/latest/get_involved/contributing.html
-->
#### Reference Issues/PRs
<!--
Example: Fixes #1234. See also #3456.
Please use keywords (e.g., Fixes) to create link to the iss... | diff --git a/pytorch_forecasting/tests/_config.py b/pytorch_forecasting/tests/_config.py
index dd9c2e889..7df8da459 100644
--- a/pytorch_forecasting/tests/_config.py
+++ b/pytorch_forecasting/tests/_config.py
@@ -5,6 +5,10 @@
EXCLUDE_ESTIMATORS = [
"DummySkipped",
"ClassName", # exclude classes from extensi... | 1 | 1 | 1 | [{"id": "G0", "claim": "The existing `tests:skip_by_name` tag should be added to the corresponding `_pkg` classes so that only `test_integration` is skipped for those model classes, instead of listing them in EXCLUDE_ESTIMATORS, which skips the whole `_pkg` class and therefore all of their tests.", "category": "design"... | null |
sktime__pytorch-forecasting__2012 | sktime/pytorch-forecasting | 2,012 | defect | dbfd38b4cab2e0ca226b62f8361767fd96f8ab02 | 1ac56dfb3796f328178faf8ce331aaa969b81948 | [ENH] Refactor N-BEATS blocks to separate KAN logic | #### Reference Issues/PRs
Fixes #2011
---
#### What does this implement/fix? Explain your changes.
This PR refactors the N-BEATS architecture to explicitly separate standard MLP blocks from KAN-based blocks, removing the previous `if/else` dependency on the `use_kan` flag.
* **Split Classes:** Created distinct... | diff --git a/docs/source/tutorials/ar.ipynb b/docs/source/tutorials/ar.ipynb
index 7cbf0fbc6..09bc1414f 100644
--- a/docs/source/tutorials/ar.ipynb
+++ b/docs/source/tutorials/ar.ipynb
@@ -187,10 +187,16 @@
" max_prediction_length=prediction_length,\n",
")\n",
"\n",
- "validation = TimeSeriesDataSe... | 1 | 1 | 0 | [{"id": "G0", "claim": "The changes to the ar.ipynb notebook are unintended and unrelated to the PR, and are asked to be reverted.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
sktime__pytorch-forecasting__2199 | sktime/pytorch-forecasting | 2,199 | defect | edbdeb49f422cacfb7faeed7b85c523c79475693 | 0c1421463189aab5258c6f30100def75b1f8c7ea | [BUG] Fix _load_config() to support .pkl file paths | #2189
Reference Issues/PRs
```
Fixes #2189
```
What does this implement/fix? Explain your changes.
```
_load_config() in Base_pkg claimed .pkl support in both the docstring and
the error message, but raised ValueError when a .pkl path was passed directly.
Added an elif branch for .pkl that opens ... | diff --git a/pytorch_forecasting/base/_base_pkg.py b/pytorch_forecasting/base/_base_pkg.py
index 22e3eaa72..37baaa03e 100644
--- a/pytorch_forecasting/base/_base_pkg.py
+++ b/pytorch_forecasting/base/_base_pkg.py
@@ -103,6 +103,10 @@ def _load_config(
with open(path) as f:
return yaml.safe... | 1 | 1 | 0 | [{"id": "G0", "claim": "The pull request should fix the linter errors in its changed code, provide a PR description, and add unit tests to ensure the reported bug is fixed.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
sktime__pytorch-forecasting__2228 | sktime/pytorch-forecasting | 2,228 | defect | 81d1554bc6c8fae1e1cbc6c26be77e225c62a764 | 4f1778e0b77dc105b54de085b0198dbb43eff877 | [BUG] Move prediction tensors to CPU between batches in PredictCallback | #### Reference Issues/PRs
Fixes #2224
#### What does this implement/fix? Explain your changes.
As described in #2224, tensors collected in `on_predict_batch_end` were staying on the GPU between batches causing VRAM to grow linearly across the inference run.
Fixed by applying `move_to_device(detach(...), "cpu")`... | diff --git a/pytorch_forecasting/callbacks/predict.py b/pytorch_forecasting/callbacks/predict.py
index e17c8c2c3..61964c202 100644
--- a/pytorch_forecasting/callbacks/predict.py
+++ b/pytorch_forecasting/callbacks/predict.py
@@ -6,6 +6,8 @@
from lightning.pytorch.callbacks import BasePredictionWriter
import torch
+... | 2 | 2 | 0 | [{"id": "G0", "claim": "Isolate the move-to-device conversion from the append call: compute y_cpu (and likewise index_cpu) into a named variable first, then append that variable.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Guard x_cpu so the ... | null |
sktime__sktime__6774 | sktime/sktime | 6,774 | defect | a6e12ea524b101cd03a1e1c055e82c33a64f3467 | 22e178558cab04e3795d1c9167421e2cfcc118f4 | [ENH] Extend forecasting benchmark to global setting | To close #6661
Currently only a simple change is made to `evaluate`:
If `global_mode=True` passed to evaluate, `cv` (must be `InstanceSplitter`) will be used to split data in instance level and `cv_ht` (must be SingleWindowSplitter) will be used to split `y_test` from `cv` to `y_hist` and `y_true`, then `y_train, ... | diff --git a/sktime/benchmarking/forecasting.py b/sktime/benchmarking/forecasting.py
index 47eb852c563..7261ceb2576 100644
--- a/sktime/benchmarking/forecasting.py
+++ b/sktime/benchmarking/forecasting.py
@@ -18,6 +18,8 @@ def forecasting_validation(
estimator: BaseForecaster,
backend=None,
backend_param... | 4 | 3 | 1 | [{"id": "G0", "claim": "The global-mode tests should stop depending on the pytorch-forecasting soft dependency by using a different, dependency-free global forecaster (such as a global NaiveForecaster, e.g. reusing the y from predict in the prediction code).", "category": "testing", "verdict": "uncertain", "priority": ... | null |
sktime__sktime__7504 | sktime/sktime | 7,504 | defect | cc1f7bdc20fecfd91aad5339b88fa8ae4d463109 | 71291ff6d165350d2ce47939ec4dd8ab534fb75e | [ENH] `BinarySegmentation` fixes for new detection interface | <!--
Welcome to sktime, and thanks for contributing!
Please have a look at our contribution guide:
https://www.sktime.net/en/latest/get_involved/contributing.html
-->
#### Reference Issues/PRs
Fixes #7411.
#### What does this implement/fix? Explain your changes.
Removes binary segmentation tests from th... | diff --git a/sktime/tests/_config.py b/sktime/tests/_config.py
index c3b3fd8ac84..ba2e3eff527 100644
--- a/sktime/tests/_config.py
+++ b/sktime/tests/_config.py
@@ -270,10 +270,6 @@
"test_transform_output_type",
"test_output_type",
],
- "BinarySegmentation": [
- "test_predict_segments",... | 1 | 1 | 1 | [{"id": "G0", "claim": "Running check_estimator on BinarySegmentation still yields two failures: the docstring example and test_get_test_params_coverage (the latter separately skipped in the block below).", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
sktime__sktime__7575 | sktime/sktime | 7,575 | defect | a6e12ea524b101cd03a1e1c055e82c33a64f3467 | 4c4253be8d6469e03883be6a05a693158a348ff1 | [BUG] Add missing frequencies to `load_forecastingdata` | <!--
Welcome to sktime, and thanks for contributing!
Please have a look at our contribution guide:
https://www.sktime.net/en/latest/get_involved/contributing.html
-->
#### Reference Issues/PRs
Closes #6388
#### What does this implement/fix? Explain your changes.
* adds missing frequencies to the load_forec... | diff --git a/sktime/datasets/_readers_writers/tsf.py b/sktime/datasets/_readers_writers/tsf.py
index 8443c0b6017..d9e37f68d82 100644
--- a/sktime/datasets/_readers_writers/tsf.py
+++ b/sktime/datasets/_readers_writers/tsf.py
@@ -43,27 +43,41 @@ def _convert_tsf_to_hierarchical(
if freq is None:
freq_map... | 1 | 1 | 1 | [{"id": "G0", "claim": "The CI failures on this PR seem genuine and caused by its new test_load_forecastingdata_hier (download timeouts and the higher memory the hierarchical structure needs for very large datasets), so very large datasets should be excluded from that test.", "category": "testing", "verdict": "supporte... | null |
sktime__sktime__7608 | sktime/sktime | 7,608 | defect | 9ba65b6f1b983a7bb167d14738af16f4ea90615b | c88d81298a66b9112df90fa7e0fa2544d83ec686 | [ENH] Forecasting metrics dispatch of `__call__` to `evaluate` vs `evaluate_by_index` | <!--
Welcome to sktime, and thanks for contributing!
Please have a look at our contribution guide:
https://www.sktime.net/en/latest/get_involved/contributing.html
-->
#### Reference Issues/PRs
Closes #6813
#### What does this implement/fix? Explain your changes.
Adds a class parameter to dispatch between `... | diff --git a/sktime/performance_metrics/forecasting/_classes.py b/sktime/performance_metrics/forecasting/_classes.py
index c5986cb0f80..b05cdc19322 100644
--- a/sktime/performance_metrics/forecasting/_classes.py
+++ b/sktime/performance_metrics/forecasting/_classes.py
@@ -124,6 +124,10 @@ class BaseForecastingErrorMetr... | 4 | 4 | 3 | [{"id": "G0", "claim": "The new dispatch parameter should be named `by_index` instead of `evaluate_by_timepoints`, for convenience of use.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Test the new parameter with a separate test in TestAllForecastingPtM... | null |
sktime__sktime__7637 | sktime/sktime | 7,637 | defect | 99a18e61bad502f8b22cddb4e167bd36adbe2098 | 56f830963c786ec667cf75ecc92c710ae9f0a459 | [ENH] forecasting `evaluate`: new `return_model` parameter to return fitted estimator states | #### Reference Issues/PRs
Fixes #7636
#### What does this implement/fix? Explain your changes.
This draft PR enhances the `evaluate` function in sktime to optionally return fitted models for each fold in the cross-validation. This is implemented through a new `return_model` parameter which, when set to `True`... | diff --git a/sktime/forecasting/model_evaluation/_functions.py b/sktime/forecasting/model_evaluation/_functions.py
index 8ae6e774190..d5b1770ea2a 100644
--- a/sktime/forecasting/model_evaluation/_functions.py
+++ b/sktime/forecasting/model_evaluation/_functions.py
@@ -74,7 +74,11 @@ def _check_scores(metrics) -> dict:
... | 3 | 3 | 3 | [{"id": "G0", "claim": "The code formatting tests are failing on this pull request, so it does not meet the project's coding standards.", "category": "style", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "When storing the forecaster in the returned results, a deepcopy should b... | null |
sktime__sktime__7640 | sktime/sktime | 7,640 | defect | 3a60fbdddc15ccb8c292455e46702ae6db2b5746 | 3144191a163902c278348cefbf250ed7f178d498 | [BUG] `BaseDetector` - Incorrect docstring and tests for `segments_to_change_points` | <!--
Welcome to sktime, and thanks for contributing!
Please have a look at our contribution guide:
https://www.sktime.net/en/latest/get_involved/contributing.html
-->
#### Reference Issues/PRs
fixes #7490
#### What does this implement/fix? Explain your changes.
Removed `segments_to_change_points` and the ... | diff --git a/.all-contributorsrc b/.all-contributorsrc
index ad4440829e1..56b3dfdef16 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -3259,9 +3259,19 @@
"code"
]
},
+ {
+ "login": "satvshr",
+ "name": "Satvik Mishra",
+ "avatar_url": "https://avatars.githubuserconte... | 6 | 6 | 3 | [{"id": "G0", "claim": "The pull request removes the public segments_to_change_points function, which makes it not a pure refactor and not downwards compatible, and the reviewer asks why it is removed.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The d... | null |
sktime__sktime__7651 | sktime/sktime | 7,651 | defect | 68b34a34de316e3d83608eec056503697db08e46 | a657f405d481884e01f0daf61474b0db0a9b065a | [BUG] fix bugs in `MACNNClassifier`, `MACNNRegressor` | <!--
Welcome to sktime, and thanks for contributing!
Please have a look at our contribution guide:
https://www.sktime.net/en/latest/get_involved/contributing.html
-->
#### Reference Issues/PRs
Fixes part of issue #6153
<!--
Example: Fixes #1234. See also #3456.
Please use keywords (e.g., Fixes) to create l... | diff --git a/sktime/networks/macnn.py b/sktime/networks/macnn.py
index b90419d1d7d..f1d30161fe9 100644
--- a/sktime/networks/macnn.py
+++ b/sktime/networks/macnn.py
@@ -59,7 +59,6 @@ def __init__(
def _macnn_block(self, x, kernels, reduce):
"""Implement a single MACNN Block.
-
Parameters
... | 4 | 4 | 1 | [{"id": "G0", "claim": "Do not remove the blank lines separating the sections of the docstrings in macnn.py.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the MACNN estimators from the skip list in tests._config so their tests run.", "cate... | null |
sktime__sktime__7844 | sktime/sktime | 7,844 | defect | fcfe13da2a8510d0d1cd78bcb09bf667c7fe7ffb | 0a6440e0d176f62de0f7a01c992faad23aa8ffe0 | [BUG] Fix failing tests for pytorch forecasting models. | <!--
Welcome to sktime, and thanks for contributing!
Please have a look at our contribution guide:
https://www.sktime.net/en/latest/get_involved/contributing.html
-->
#### Reference Issues/PRs
<!--
Example: Fixes #1234. See also #3456.
Please use keywords (e.g., Fixes) to create link to the issues or pull r... | diff --git a/.all-contributorsrc b/.all-contributorsrc
index bbcecf88145..3fe6414a5e0 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -3257,7 +3257,8 @@
"avatar_url": "https://avatars.githubusercontent.com/Sohaib-Ahmed21",
"profile": "https://github.com/Sohaib-Ahmed21",
"contributions... | 4 | 4 | 2 | [{"id": "G0", "claim": "Check whether the change also fixes the tinyTimeMixer issue: the tests using the multi_index function (e.g. test_global_forecasting_multiindex) were still failing, and setting data_length in multi_index to 15 resolved them.", "category": "correctness", "verdict": "supported", "priority": "P1", "... | null |
sktime__sktime__7888 | sktime/sktime | 7,888 | defect | a088f2684119cc27e0a9fa9fa5900f3e69de6849 | 41c3dc6296e54318e6cfe2ddd797fe578a0ad3d0 | [BUG] Fix `_safe_import` and Add Tests | <!--
Welcome to sktime, and thanks for contributing!
Please have a look at our contribution guide:
https://www.sktime.net/en/latest/get_involved/contributing.html
-->
#### Reference Issues/PRs
Fixes #7887
#### What does this implement/fix? Explain your changes.
<!--
A clear and concise description of what ... | diff --git a/sktime/utils/_testing/tests/test_safe_import.py b/sktime/utils/_testing/tests/test_safe_import.py
new file mode 100644
index 00000000000..432dd984f5b
--- /dev/null
+++ b/sktime/utils/_testing/tests/test_safe_import.py
@@ -0,0 +1,44 @@
+__author__ = ["jgyasu"]
+
+from unittest.mock import MagicMock
+
+from ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The tests should cover the combination cases as outlined, and beyond asserting the result is not None they should check in an expected-present case that the return is not a MagicMock, e.g. by checking it against _check_soft_dependencies.", "category": "testing", "verdict": "supported", "priority... | null |
sktime__sktime__7983 | sktime/sktime | 7,983 | defect | 8348677be88e238049baf8b6e8cdcd5a01abde21 | 788abbb76f73c6ffdac8ffa6f4a2c5404d0b6b35 | [BUG] ensure `statsforecast` adapter keeps track of trained forecaster | Closes #7969 | diff --git a/sktime/forecasting/base/adapters/_generalised_statsforecast.py b/sktime/forecasting/base/adapters/_generalised_statsforecast.py
index f4195085c76..748465f65df 100644
--- a/sktime/forecasting/base/adapters/_generalised_statsforecast.py
+++ b/sktime/forecasting/base/adapters/_generalised_statsforecast.py
@@ ... | 2 | 2 | 1 | [{"id": "G0", "claim": "Add a test that checks that the bug (the statsforecast adapter losing track of the trained forecaster) is fixed.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a comment when setting self._fitted_forecaster explaining that St... | null |
sktime__sktime__8017 | sktime/sktime | 8,017 | defect | 8348677be88e238049baf8b6e8cdcd5a01abde21 | 875b570eefbc6151543864da659a71e26fb6b0d9 | [ENH] Jarque-Bera, variance break, and Ljung-Box tests/statistics | <!--
Welcome to sktime, and thanks for contributing!
Please have a look at our contribution guide:
https://www.sktime.net/en/latest/get_involved/contributing.html
-->
#### Reference Issues/PRs
#6980
<!--
Example: Fixes #1234. See also #3456.
Please use keywords (e.g., Fixes) to create link to the issues o... | diff --git a/sktime/forecasting/base/adapters/_pmdarima.py b/sktime/forecasting/base/adapters/_pmdarima.py
index fd336da7307..7736579d8d9 100644
--- a/sktime/forecasting/base/adapters/_pmdarima.py
+++ b/sktime/forecasting/base/adapters/_pmdarima.py
@@ -6,6 +6,9 @@
__all__ = ["_PmdArimaAdapter"]
import pandas as pd
... | 3 | 3 | 2 | [{"id": "G0", "claim": "The module-level imports of statsmodels, which is not a core dependency, will cause failures with a minimal installation, so these imports should be added inside the functions where they are used.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id... | null |
sktime__sktime__8182 | sktime/sktime | 8,182 | defect | 339ecf91ae545e9e8938c87e817f75b038addf3c | 0e03bd5ce634fad3fe16ff6b41e3349397a2d6ad | [BUG] Stop Importing Modules if Raised an Exception in `_safe_import` | Fixes #8181
This PR allows `_safe_import` to create mock objects if it encounters an `ImportError` or `AttributeError` exception. | diff --git a/sktime/utils/dependencies/_safe_import.py b/sktime/utils/dependencies/_safe_import.py
index 03a3fa0f795..cd74d3bd3a1 100644
--- a/sktime/utils/dependencies/_safe_import.py
+++ b/sktime/utils/dependencies/_safe_import.py
@@ -72,10 +72,10 @@ def _safe_import(import_path, pkg_name=None):
module =... | 1 | 1 | 1 | [{"id": "G0", "claim": "A test should be added covering the pull request's change to `_safe_import`.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
sktime__sktime__8285 | sktime/sktime | 8,285 | defect | e38641ba9935c1a9242b0c71b93d0f47fcf9201c | f8fccc7bab3c3f98884eaac6cc200f7792da167b | [BUG] reindex features in `TSFreshClassifier.predict_proba` to match training columns | Fixes #8150 .
What does this implement/fix? Explain your changes.
This PR fixes a bug in the _predict_proba method of TSFreshClassifier. Previously, the transformer output was directly passed to the estimator’s predict_proba, which caused a mismatch in feature names and their ordering compared to the training phase... | diff --git a/sktime/classification/feature_based/_tsfresh_classifier.py b/sktime/classification/feature_based/_tsfresh_classifier.py
index 346db349d23..bd78647f260 100644
--- a/sktime/classification/feature_based/_tsfresh_classifier.py
+++ b/sktime/classification/feature_based/_tsfresh_classifier.py
@@ -229,7 +229,9 @@... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a regression test for the predict_proba feature-reindex fix, i.e. a test that fails on the previous code and passes with this change.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
sktime__sktime__8509 | sktime/sktime | 8,509 | defect | 63278accf9d391e63e9e7effdfd1268e99349228 | 0154faaee955751e2c1369661f496078cb573fc9 | [ENH] add class weight to `InceptionTimeClassifier` and capabability tag | #### Reference Issues/PRs
Closes #8458
#### What does this implement/fix? Explain your changes.
<!--
A clear and concise description of what you have implemented.
-->
Add class weight capabability to InceptionTime and relevant tag
#### Does your contribution introduce a new dependency? If yes, which one... | diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index 979d128d2eec..aed55c5f8ed4 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -444,6 +444,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<td align="center" valign="top" width="11.11%"><a href="https://github.com/vincen... | 8 | 8 | 2 | [{"id": "G0", "claim": "Code formatting is failing and the project's automated formatting setup should be applied.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new capability tag should be registered with a False default in BaseClassifier,... | null |
sktime__sktime__8527 | sktime/sktime | 8,527 | defect | 6f71472857939abfc1e41032ab7b53b1324e4f8b | d3bff3063bbe284778e1939f1fd3f566fbfb79b8 | [ENH] Move Test Skip config for CNTCRegressor | <!--
Welcome to sktime, and thanks for contributing!
Please have a look at our contribution guide:
https://www.sktime.net/en/latest/get_involved/contributing.html
-->
#### Reference Issues/PRs
<!--
Example: Fixes #1234. See also #3456.
Please use keywords (e.g., Fixes) to create link to the issues or pull r... | diff --git a/sktime/regression/deep_learning/cntc.py b/sktime/regression/deep_learning/cntc.py
index 41f16a425f5..3a412b9a016 100644
--- a/sktime/regression/deep_learning/cntc.py
+++ b/sktime/regression/deep_learning/cntc.py
@@ -250,6 +250,12 @@ def _predict(self, X, **kwargs):
preds = self.model_.predict([X2,... | 5 | 5 | 2 | [{"id": "G0", "claim": "The skip tags must be defined in sktime's `_tags` attribute, not in a sklearn-style `_more_tags` method, which sktime does not use.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The newly added blank line with trailing white... | null |
sktime__sktime__8528 | sktime/sktime | 8,528 | defect | 6f71472857939abfc1e41032ab7b53b1324e4f8b | 582ae6346aa1e143d56e35b0c30fa67d6ee961c2 | [ENH] `LTSFNLinearForecaster`,` LTSFDLinearForecaster`, and `LTSFLinearForecaster` `get_test_params` returns two sets | <!--
Welcome to sktime, and thanks for contributing!
Please have a look at our contribution guide:
https://www.sktime.net/en/latest/get_involved/contributing.html
-->
#### Reference Issues/PRs
<!--
Example: Fixes #1234. See also #3456.
Please use keywords (e.g., Fixes) to create link to the issues or pull r... | diff --git a/sktime/forecasting/ltsf.py b/sktime/forecasting/ltsf.py
index 8f47dcffce6..aa021bbcc55 100644
--- a/sktime/forecasting/ltsf.py
+++ b/sktime/forecasting/ltsf.py
@@ -166,6 +166,15 @@ def get_test_params(cls, parameter_set="default"):
params : dict or list of dict
"""
params = [
+ ... | 2 | 2 | 2 | [{"id": "G0", "claim": "The two test parameter sets added by this pull request are almost identical; the reviewer asks the author to vary more of the parameters across the sets so they cover different types of instances.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "... | null |
sktime__sktime__8603 | sktime/sktime | 8,603 | defect | 0f4858cface8cc41df7ebaf533ce461d76ba0a7d | 7f843c126e6fd142603243765694b1a6f8d665d2 | [ENH] Move FCNClassifier test skip rule to estimator tag | Moved the skip test configuration for FCNClassifier to the estimator's _tags as for issue 8515.
- Removed FCNClassifier from `EXCLUDED_TESTS` in `_config.py`
- Added `tests:skip_by_name` tag in `FCNClassifier` class
Towards #8515
#### Reference Issues/PRs
<!--
Example: Fixes #1234. See also #3456.
Please... | diff --git a/sktime/classification/deep_learning/fcn.py b/sktime/classification/deep_learning/fcn.py
index be509c878de..66fb72d1f04 100644
--- a/sktime/classification/deep_learning/fcn.py
+++ b/sktime/classification/deep_learning/fcn.py
@@ -66,6 +66,8 @@ class FCNClassifier(BaseDeepClassifier):
# hfawaz for dl... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request missed removing an instance of FCNClassifier in sktime/tests/_config.py; the author should go through the recipe and check again.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
sktime__sktime__8626 | sktime/sktime | 8,626 | defect | 98db13b17260d6a5b9c12ff0bee4bc8374729ebe | 4217959cdd8cc07536e80c6110988818661dac91 | [ENH] Add full exogenous variable support for statsmodels adapter _update() method when update_params=False | <!--
Welcome to sktime, and thanks for contributing!
Please have a look at our contribution guide:
https://www.sktime.net/en/latest/get_involved/contributing.html
-->
#### Reference Issues/PRs
Fixes #8096
#### What does this implement/fix? Explain your changes.
These changes allow the use of exogenous... | diff --git a/sktime/forecasting/base/adapters/_statsmodels.py b/sktime/forecasting/base/adapters/_statsmodels.py
index d6d3e52839a..22e8ebc523c 100644
--- a/sktime/forecasting/base/adapters/_statsmodels.py
+++ b/sktime/forecasting/base/adapters/_statsmodels.py
@@ -92,7 +92,9 @@ def _update(self, y, X=None, update_param... | 1 | 1 | 1 | [{"id": "G0", "claim": "A test should be added for the exog-update bug encountered, and ideally in the TestAllForecasters suite with an abstract forecaster, since that suite failed to catch it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.