selection_rank int64 0 10k | uid stringlengths 17 29 | source stringclasses 7
values | split stringclasses 3
values | row_idx int64 0 58.9k | instance_id stringlengths 14 120 | repo stringclasses 246
values | repo_canon stringclasses 232
values | language stringclasses 8
values | base_commit stringlengths 40 40 ⌀ | problem_statement stringlengths 84 23.6k | extra_context stringclasses 626
values | hints stringlengths 0 59.3k | patch stringlengths 252 175k | test_patch stringlengths 0 358k | f2p stringlengths 10 155k ⌀ | p2p stringlengths 2 1.75M ⌀ | env_image stringlengths 41 154 ⌀ | env_available bool 1
class | created_at stringlengths 10 20 ⌀ | n_src_files int64 1 15 | src_lines int64 1 1.48k | n_f2p float64 1 1.87k ⌀ | ps_chars int64 84 23.6k | leak_ratio float64 0 0.6 | s_prior float64 0.6 1 | s_verif float64 0.75 1 | s_ps float64 0.04 1 | s_patch float64 0.07 1 | s_tiebreak float64 0.02 1 | score float64 47.9 98.6 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2,700 | swe_bench_promax::test::79 | swe_bench_promax | test | 79 | apache__pinot-16709 | apache/pinot | apache/pinot | java | 5d3e1884722a70d466147caa7fb5f4d838b5b6da | The audit logging subsystem in Apache Pinot is designed to capture comprehensive request metadata for security, compliance, and operational visibility. A critical element of each audit event is the accurate identification of the user initiating the request. However, in the current implementation, the user identity fiel... | diff --git a/pinot-common/pom.xml b/pinot-common/pom.xml
--- a/pinot-common/pom.xml
+++ b/pinot-common/pom.xml
@@ -270,6 +270,10 @@
<groupId>com.google.auto.service</groupId>
<artifactId>auto-service-annotations</artifactId>
</dependency>
+ <dependency>
+ <groupId>com.nimbusds</groupId>
+ ... | diff --git a/pinot-common/src/test/java/org/apache/pinot/common/audit/AuditIdentityResolverTest.java b/pinot-common/src/test/java/org/apache/pinot/common/audit/AuditIdentityResolverTest.java
new file mode 100644
--- /dev/null
+++ b/pinot-common/src/test/java/org/apache/pinot/common/audit/AuditIdentityResolverTest.java
... | null | null | key4127/refactor-dockerhub:apache__pinot-16709 | true | 1756485045 | 8 | 284 | null | 5,130 | 0 | 0.9 | 1 | 0.47 | 0.45 | 1 | 67.9325 | ||
2,701 | swe_bench_promax::test::32 | swe_bench_promax | test | 32 | aws__s2n-tls-5464 | aws/s2n-tls | aws/s2n-tls | c | e8042c0918db6b941a7a78093d8259a6a81ad0ff | The s2n-tls library configures TLS connection security through predefined security policies, historically selected using string identifiers via APIs like `s2n_config_set_cipher_preferences`. While this approach has served basic use cases, it lacks compile-time safety: a minor typo in a policy name only manifests as a r... | diff --git a/tls/Makefile b/tls/Makefile
--- a/tls/Makefile
+++ b/tls/Makefile
@@ -25,22 +25,22 @@ BCS=$(addprefix $(BITCODE_DIR), $(BCS_1))
.PHONY : all
all: $(OBJS)
- $(foreach subfolder, $(SUB_BUILDS), $(MAKE) -C $(subfolder))
+ $(foreach subfolder, $(SUB_BUILDS), $(MAKE) -C $(subfolder);)
.PHONY : bc
bc: $(... | diff --git a/tests/unit/s2n_policy_builder_test.c b/tests/unit/s2n_policy_builder_test.c
new file mode 100644
--- /dev/null
+++ b/tests/unit/s2n_policy_builder_test.c
@@ -0,0 +1,87 @@
+/*
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "... | null | null | key4127/refactor-dockerhub:aws__s2n-tls-5464 | true | 1755799093 | 7 | 363 | null | 4,562 | 0 | 0.9 | 1 | 0.47 | 0.45 | 1 | 67.9325 | ||
2,702 | swe_bench_promax::test::26 | swe_bench_promax | test | 26 | huggingface__transformers-38788 | huggingface/transformers | huggingface/transformers | python | 2ff964bcb4995f1b9faf310d34852d72471ef4b5 | The Hugging Face Transformers library recently introduced foundational support for the V-JEPA 2 architecture, enabling self-supervised video representation learning and feature extraction workflows. However, growing community interest has emerged around leveraging V-JEPA 2 models fine-tuned specifically for video class... | diff --git a/docs/source/en/model_doc/vjepa2.md b/docs/source/en/model_doc/vjepa2.md
--- a/docs/source/en/model_doc/vjepa2.md
+++ b/docs/source/en/model_doc/vjepa2.md
@@ -38,7 +38,7 @@ This model was contributed by [koustuvs](https://huggingface.co/koustuvs), [yoni
## Usage example
-The snippet below shows how to ... | diff --git a/tests/models/vjepa2/test_modeling_vjepa2.py b/tests/models/vjepa2/test_modeling_vjepa2.py
--- a/tests/models/vjepa2/test_modeling_vjepa2.py
+++ b/tests/models/vjepa2/test_modeling_vjepa2.py
@@ -40,7 +40,7 @@
import torch
from torch import nn
- from transformers import VJEPA2Model
+ from t... | null | null | key4127/refactor-dockerhub:huggingface__transformers-38788 | true | 1749833775 | 7 | 725 | null | 4,546 | 0 | 0.9 | 1 | 0.62 | 0.27 | 1 | 67.9325 | ||
2,703 | swe_gym::train::605 | swe_gym | train | 605 | conan-io__conan-13721 | conan-io/conan | conan-io/conan | python | 0efbe7e49fdf554da4d897735b357d85b2a75aca | [feature] Add profile_name variable to profile rendering
### What is your suggestion?
Feature request: Please add `profile_name` variable into profile templates - this will help a lot for the use case with large number of profiles.
In our use case, we have dozens of profiles that have pattern-style names like `<os>_<... | Hi @andrey-zherikov
Thanks for your suggestion.
I understand the use case, I think it is possible to add it, and it should be relatively straightforward. Would you like to contribute yourself the feature? (don't worry if you don't, we will do it). A couple of notes:
- This kind of new feature should go to next ... | diff --git a/conans/client/profile_loader.py b/conans/client/profile_loader.py
--- a/conans/client/profile_loader.py
+++ b/conans/client/profile_loader.py
@@ -158,9 +158,11 @@ def _load_profile(self, profile_name, cwd):
# All profiles will be now rendered with jinja2 as first pass
base_path = os.pat... | diff --git a/conans/test/integration/configuration/test_profile_jinja.py b/conans/test/integration/configuration/test_profile_jinja.py
--- a/conans/test/integration/configuration/test_profile_jinja.py
+++ b/conans/test/integration/configuration/test_profile_jinja.py
@@ -1,5 +1,6 @@
import platform
import textwrap
+im... | ["conans/test/integration/configuration/test_profile_jinja.py::test_profile_template_profile_name"] | ["conans/test/integration/configuration/test_profile_jinja.py::test_profile_template_variables", "conans/test/integration/configuration/test_profile_jinja.py::test_profile_template_include", "conans/test/integration/configuration/test_profile_jinja.py::test_profile_template_profile_dir", "conans/test/integration/config... | null | true | 2023-04-19T12:29:50Z | 1 | 2 | 1 | 1,515 | 0 | 0.85 | 1 | 0.55 | 0.4 | 0.259167 | 67.8525 | |
2,704 | swe_bench_promax::test::63 | swe_bench_promax | test | 63 | derailed__k9s-3517 | derailed/k9s | derailed/k9s | go | e5212875a423f3fab783e69794ee1a36f9ffce29 | Users have reported instability and performance degradation when configuring the UI refresh interval in K9s. The refresh rate setting, which controls how frequently the interface polls the Kubernetes API server for updates, currently accepts only whole-number values in seconds. This limitation prevents users from speci... | diff --git a/README.md b/README.md
--- a/README.md
+++ b/README.md
@@ -407,7 +407,7 @@ You can now override the context portForward default address configuration by se
bozo: bozo/gpu
# The path to screen dump. Default: '%temp_dir%/k9s-screens-%username%' (k9s info)
screenDumpDir: /tmp/dumps
- # Repr... | diff --git a/internal/config/config_test.go b/internal/config/config_test.go
--- a/internal/config/config_test.go
+++ b/internal/config/config_test.go
@@ -544,7 +544,7 @@ func TestConfigLoad(t *testing.T) {
cfg := mock.NewMockConfig(t)
require.NoError(t, cfg.Load("testdata/configs/k9s.yaml", true))
- assert.Equal... | null | null | key4127/refactor-dockerhub:derailed__k9s-3517 | true | 1756144863 | 9 | 65 | null | 1,379 | 0 | 0.9 | 1 | 0.4 | 0.6 | 0.4465 | 67.8395 | ||
2,705 | swe_bench_verified::test::222 | swe_bench_verified | test | 222 | django__django-16256 | django/django | django/django | python | 76e37513e22f4d9a01c7f15eee36fe44388e6670 | acreate(), aget_or_create(), and aupdate_or_create() doesn't work as intended on related managers.
Description
Async-compatible interface was added to QuerySet in 58b27e0dbb3d31ca1438790870b2b51ecdb10500. Unfortunately, it also added (unintentionally) async acreate(), aget_or_create(), and aupdate_or_create() methods ... | Jon, would you like to prepare a patch? (against the main branch.)
Yeah I can take care of that. I’ll be traveling for the next 2 days then recovering from jetlag and then back on the road again, so I just want to set expectations that this won’t be immediate :(
Replying to Jon Janzen: Yeah I can take care of that. I’l... | diff --git a/django/contrib/contenttypes/fields.py b/django/contrib/contenttypes/fields.py
--- a/django/contrib/contenttypes/fields.py
+++ b/django/contrib/contenttypes/fields.py
@@ -2,6 +2,8 @@
import itertools
from collections import defaultdict
+from asgiref.sync import sync_to_async
+
from django.contrib.conte... | diff --git a/tests/async/models.py b/tests/async/models.py
--- a/tests/async/models.py
+++ b/tests/async/models.py
@@ -9,3 +9,7 @@ class RelatedModel(models.Model):
class SimpleModel(models.Model):
field = models.IntegerField()
created = models.DateTimeField(default=timezone.now)
+
+
+class ManyToManyModel(m... | ["test_acreate (async.test_async_related_managers.AsyncRelatedManagersOperationTest)", "test_acreate_reverse (async.test_async_related_managers.AsyncRelatedManagersOperationTest)", "test_aget_or_create (async.test_async_related_managers.AsyncRelatedManagersOperationTest)", "test_aget_or_create_reverse (async.test_async... | ["test_none_allowed (generic_relations.tests.TestInitWithNoneArgument)", "The default for for_concrete_model should be True", "test_generic_relation (generic_relations.tests.ProxyRelatedModelTest)", "test_generic_relation_set (generic_relations.tests.ProxyRelatedModelTest)", "Instances of the proxy should be returned w... | null | true | 2022-11-04T14:26:44Z | 2 | 55 | 9 | 2,087 | 0.3125 | 1 | 1 | 0.55 | 1 | 0.531167 | 67.792719 | |
2,706 | swe_bench_pro::test::224 | swe_bench_pro | test | 224 | instance_flipt-io__flipt-c154dd1a3590954dfd3b901555fc6267f646a289 | flipt-io/flipt | flipt-io/flipt | go | e432032cf2d11e3bb6f558748a5ee41a90640daa | # Flipt Configuration Lacks a Metadata Section for Version Check Preferences
## Description
Flipt's configuration structure has no metadata section for application-level settings. In particular, there is no way to express whether the application should check for newer versions of Flipt at startup, so that preference ... | ## Requirements
- Add a metadata section to `Config` as a new field `Meta`, whose type is a new struct type `metaConfig` defined in the `config` package (in keeping with the package's existing lowercase configuration-type naming).
- `metaConfig` holds a single boolean, `CheckForUpdates`, indicating whether the applica... | diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml
index 76322a3fb3..be89b20a01 100644
--- a/.github/workflows/benchmark.yml
+++ b/.github/workflows/benchmark.yml
@@ -38,14 +38,11 @@ jobs:
MYSQL_ALLOW_EMPTY_PASSWORD: true
steps:
- - name: Setup Go
- uses: actions/se... | diff --git a/.github/workflows/database-test.yml b/.github/workflows/database-test.yml
index f88110bd92..d45a1d6d55 100644
--- a/.github/workflows/database-test.yml
+++ b/.github/workflows/database-test.yml
@@ -25,14 +25,11 @@ jobs:
POSTGRES_PASSWORD: password
steps:
- - name: Setup Go
- uses:... | ["TestLoad", "TestValidate"] | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_flipt-io__flipt-c154dd1a3590954dfd3b901555fc6267f646a289 | true | null | 14 | 143 | 2 | 1,101 | 0 | 0.95 | 1 | 0.55 | 0.35 | 0.660167 | 67.768 | |
2,707 | swe_gym::train::988 | swe_gym | train | 988 | dask__dask-8903 | dask/dask | dask/dask | python | e07c98c670027008f693a9f44ce6157093b37b35 | `da.from_array` only uses custom getter if `inline_array=True` in 2022.4.0
The recent #8827 (released in 2022.4.0) changed `da.core.graph_from_arraylike` to contain the following snippet:
```Python
if inline_array:
layer = core_blockwise(
getitem, # <----------- custom getter
name,
... | Hi @ludwigschwardt, thanks for the report! It does indeed look like an error. | diff --git a/dask/array/core.py b/dask/array/core.py
--- a/dask/array/core.py
+++ b/dask/array/core.py
@@ -307,7 +307,7 @@ def graph_from_arraylike(
layers = {}
layers[original_name] = MaterializedLayer({original_name: arr})
layers[name] = core_blockwise(
- getter,
+ get... | diff --git a/dask/array/tests/test_array_core.py b/dask/array/tests/test_array_core.py
--- a/dask/array/tests/test_array_core.py
+++ b/dask/array/tests/test_array_core.py
@@ -2643,19 +2643,24 @@ def assert_chunks_are_of_type(x):
assert_chunks_are_of_type(dx[0:5][:, 0])
-def test_from_array_getitem():
+@pytest.... | ["dask/array/tests/test_array_core.py::test_from_array_getitem[False-True]"] | ["dask/array/tests/test_array_core.py::test_normalize_chunks_nan", "dask/array/tests/test_array_core.py::test_stack_scalars", "dask/array/tests/test_array_core.py::test_astype", "dask/array/tests/test_array_core.py::test_meta[dtype1]", "dask/array/tests/test_array_core.py::test_vindex_basic", "dask/array/tests/test_arr... | null | true | 2022-04-07T21:48:02Z | 1 | 2 | 1 | 1,153 | 0 | 0.85 | 1 | 0.55 | 0.4 | 0.198833 | 67.6715 | |
2,708 | swe_gym::train::968 | swe_gym | train | 968 | dask__dask-6682 | dask/dask | dask/dask | python | 1d4064d0ef5794f7dc61bf3e29b5ae234d04ed4d | `map_overlap` produces wrong shape with `trim=False`
**What happened**:
I am working on a lazy rolling window method for `dask.array`s and use `da.map_overlap`.
Problem is that with `trim=False`, before the result is `compute()`d, the shape is wrong. It includes the boundary.
After compute, the shape is correct.
**Wha... | Hmm thanks for raising this. It's an interesting issue. The trim docs do state that if `trim=False` it is assumed that the user-provided func is going to maintain the shape of the original array. So I think your expectation that the shape would be (10,) is correct.
It is possibly to explicitly provide the `chunks` ... | diff --git a/dask/array/overlap.py b/dask/array/overlap.py
--- a/dask/array/overlap.py
+++ b/dask/array/overlap.py
@@ -713,6 +713,8 @@ def assert_int_chunksize(xs):
assert all(type(c) is int for x in xs for cc in x.chunks for c in cc)
assert_int_chunksize(args)
+ if not trim and "chunks" not in kwarg... | diff --git a/dask/array/tests/test_overlap.py b/dask/array/tests/test_overlap.py
--- a/dask/array/tests/test_overlap.py
+++ b/dask/array/tests/test_overlap.py
@@ -441,6 +441,21 @@ def func(*args):
assert all(x.compute() == size_per_slice)
+def test_map_overlap_assumes_shape_matches_first_array_if_trim_is_false... | ["dask/array/tests/test_overlap.py::test_map_overlap_assumes_shape_matches_first_array_if_trim_is_false", "dask/array/tests/test_overlap.py::test_map_overlap_deprecated_signature"] | ["dask/array/tests/test_overlap.py::test_map_overlap_multiarray_different_depths", "dask/array/tests/test_overlap.py::test_constant_boundaries", "dask/array/tests/test_overlap.py::test_no_shared_keys_with_different_depths", "dask/array/tests/test_overlap.py::test_overlap_internal_asymmetric", "dask/array/tests/test_ove... | null | true | 2020-09-28T19:51:11Z | 1 | 2 | 2 | 1,086 | 0 | 0.85 | 1 | 0.55 | 0.4 | 0.187667 | 67.638 | |
2,709 | swe_gym::train::508 | swe_gym | train | 508 | python__mypy-15413 | python/mypy | python/mypy | python | e7b917ec7532206b996542570f4b68a33c3ff771 | Warn Return Any now applies to small lambdas
**Bug Report**
Suppose we have the follow code:
```python
from typing import Any
x: Any = [1, 2, 3]
sorted([0, 2, 1], key=lambda i: x[i])
```
With `mypy 0.790`, I get an error:
```
$ mypy --warn-return-any scratch.py
scratch.py:4: error: Returning Any from function declar... | Thanks for posting your repro! The thing that's changed between 0.782 and 0.790 is the definition of `sorted`. `key` used to be a function that returned `Any`, but is now marked as a function that returns a `SupportsLessThan`.
This makes it similar to #9590 where itertools.groupby takes a function that returns a typev... | diff --git a/mypy/checker.py b/mypy/checker.py
--- a/mypy/checker.py
+++ b/mypy/checker.py
@@ -4270,6 +4270,7 @@ def check_return_stmt(self, s: ReturnStmt) -> None:
isinstance(return_type, Instance)
and return_type.type.fullname == "builtins.object"
... | diff --git a/test-data/unit/check-flags.test b/test-data/unit/check-flags.test
--- a/test-data/unit/check-flags.test
+++ b/test-data/unit/check-flags.test
@@ -2184,3 +2184,14 @@ def f(x: bytes, y: bytearray, z: memoryview) -> None:
follow_imports = skip
follow_imports_for_stubs = true
[builtins fixtures/dict.pyi]
+
... | ["mypy/test/testcheck.py::TypeCheckSuite::check-flags.test::testReturnAnyLambda"] | [] | null | true | 2023-06-11T11:27:21Z | 1 | 1 | 1 | 1,097 | 0 | 0.85 | 1 | 0.55 | 0.4 | 0.186167 | 67.6335 | |
2,710 | swe_gym::train::863 | swe_gym | train | 863 | iterative__dvc-3836 | iterative/dvc | iterative/dvc | python | b52c925d5f5c9648fcf2cb6c3354ed47742001cc | dvc diff ERROR: unexpected error - 'NoneType' object has no attribute 'endswith'
If given rev is not tracked fails. I.E 2f05868ebe3693a7e7afbdd8923c15ce327b179d does not have metrics:
```
dvc diff --show-json 2f05868ebe3693a7e7afbdd8923c15ce327b179d 19b33235917f6b3732de8486b35235ba200e74a2
ERROR: unexpected error - 'N... | Not able to reproduce. Not with `dvc diff` nor with `dvc metrics diff`, nor with current version nor with 0.87.0. Closing for now. @DavidGOrtega Please let us know if you are still experiencing this issue. And please provide verbose logs (by adding -v to the command) next time, so it is easier to see the issue in detai... | diff --git a/dvc/remote/base.py b/dvc/remote/base.py
--- a/dvc/remote/base.py
+++ b/dvc/remote/base.py
@@ -319,6 +319,8 @@ def load_dir_cache(self, checksum):
@classmethod
def is_dir_checksum(cls, checksum):
+ if not checksum:
+ return False
return checksum.endswith(cls.CHECKSUM_D... | diff --git a/tests/unit/remote/test_base.py b/tests/unit/remote/test_base.py
--- a/tests/unit/remote/test_base.py
+++ b/tests/unit/remote/test_base.py
@@ -136,3 +136,11 @@ def test_cache_checksums(dvc):
):
checksums = list(remote.cache_checksums())
assert checksums == ["123456"]
+
+
+@pytest.mark... | ["tests/unit/remote/test_base.py::test_is_dir_checksum[None-False]"] | ["tests/unit/remote/test_base.py::test_is_dir_checksum[3456.dir-True]", "tests/unit/remote/test_base.py::test_is_dir_checksum[-False]", "tests/unit/remote/test_base.py::test_cache_checksums", "tests/unit/remote/test_base.py::test_cmd_error", "tests/unit/remote/test_base.py::test_cache_exists", "tests/unit/remote/test_b... | null | true | 2020-05-20T14:30:47Z | 1 | 2 | 1 | 1,018 | 0 | 0.85 | 1 | 0.55 | 0.4 | 0.176333 | 67.604 | |
2,711 | swe_bench_verified::test::152 | swe_bench_verified | test | 152 | django__django-14373 | django/django | django/django | python | b1a4b1f0bdf05adbd3dc4dde14228e68da54c1a3 | DateFormat.Y() is not zero-padded.
Description
The Y specifier for django.utils.dateformat.DateFormat is supposed to always return a four-digit year padded with zeros. This doesn't seem to be the case for year < 1000. | diff --git a/django/utils/dateformat.py b/django/utils/dateformat.py
--- a/django/utils/dateformat.py
+++ b/django/utils/dateformat.py
@@ -313,8 +313,8 @@ def y(self):
return '%02d' % (self.data.year % 100)
def Y(self):
- "Year, 4 digits; e.g. '1999'"
- return self.data.year
+ """Ye... | diff --git a/tests/utils_tests/test_dateformat.py b/tests/utils_tests/test_dateformat.py
--- a/tests/utils_tests/test_dateformat.py
+++ b/tests/utils_tests/test_dateformat.py
@@ -166,7 +166,7 @@ def test_r_format_with_non_en_locale(self):
'Sun, 08 Jul 1979 22:00:00 +0100',
)
- def tes... | ["test_Y_format_year_before_1000 (utils_tests.test_dateformat.DateFormatTests)"] | ["test_am_pm (utils_tests.test_dateformat.DateFormatTests)", "test_date (utils_tests.test_dateformat.DateFormatTests)", "test_date_formats (utils_tests.test_dateformat.DateFormatTests)", "test_dateformat (utils_tests.test_dateformat.DateFormatTests)", "test_datetime_with_local_tzinfo (utils_tests.test_dateformat.DateFo... | null | true | 2021-05-10T14:40:32Z | 1 | 4 | 1 | 218 | 0 | 1 | 1 | 0.2 | 0.8 | 0.049667 | 67.599 | ||
2,712 | swe_gym::train::416 | swe_gym | train | 416 | python__mypy-17256 | python/mypy | python/mypy | python | cdc956bd209285b43cfca712902be2da04d133f9 | Missing type narrowing with Literal[-1]
```python
from collections.abc import Callable
from typing import Literal, TypeVar, Generic
from typing_extensions import assert_never
T = TypeVar("T")
def doit_if(t: T, fn: Callable[[T], Literal[1, -1]]) -> None:
result = fn(t)
if result == 1:
pass
elif re... | This is reproducible without the Callable too: https://mypy-play.net/?mypy=latest&python=3.12&gist=5c01688fc2c9bd27d67d69ea6b292f94&flags=warn-unreachable
```python
from typing import Literal
from typing_extensions import assert_never
def doit_if(result: Literal[1, -1]) -> None:
if result == 1:
... | diff --git a/mypy/plugins/default.py b/mypy/plugins/default.py
--- a/mypy/plugins/default.py
+++ b/mypy/plugins/default.py
@@ -489,7 +489,7 @@ def int_neg_callback(ctx: MethodContext, multiplier: int = -1) -> Type:
return ctx.type.copy_modified(
last_known_value=LiteralType(
... | diff --git a/test-data/unit/check-narrowing.test b/test-data/unit/check-narrowing.test
--- a/test-data/unit/check-narrowing.test
+++ b/test-data/unit/check-narrowing.test
@@ -2089,3 +2089,28 @@ if isinstance(x, (Z, NoneType)): # E: Subclass of "X" and "Z" cannot exist: "Z"
reveal_type(x) # E: Statement is unreac... | ["mypy/test/testcheck.py::TypeCheckSuite::check-narrowing.test::testTypeNarrowingReachableNegativeUnion", "mypy/test/testcheck.py::TypeCheckSuite::check-narrowing.test::testTypeNarrowingReachableNegative"] | [] | null | true | 2024-05-17T00:03:23Z | 1 | 2 | 2 | 958 | 0 | 0.85 | 1 | 0.55 | 0.4 | 0.166333 | 67.574 | |
2,713 | swe_bench_verified::test::242 | swe_bench_verified | test | 242 | django__django-16819 | django/django | django/django | python | 0b0998dc151feb77068e2387c34cc50ef6b356ae | Reduce Add/RemoveIndex migration operations.
Description
We should reduce AddIndex/RemoveIndex operations when optimizing migration operations. | diff --git a/django/db/migrations/operations/models.py b/django/db/migrations/operations/models.py
--- a/django/db/migrations/operations/models.py
+++ b/django/db/migrations/operations/models.py
@@ -861,6 +861,11 @@ def describe(self):
def migration_name_fragment(self):
return "%s_%s" % (self.model_name_l... | diff --git a/tests/migrations/test_optimizer.py b/tests/migrations/test_optimizer.py
--- a/tests/migrations/test_optimizer.py
+++ b/tests/migrations/test_optimizer.py
@@ -1158,3 +1158,17 @@ def test_rename_index(self):
),
]
)
+
+ def test_add_remove_index(self):
+ self.a... | ["test_add_remove_index (migrations.test_optimizer.OptimizerTests.test_add_remove_index)"] | ["AlterField should optimize into AddField.", "RemoveField should cancel AddField", "RenameField should optimize into AddField", "test_alter_alter_field (migrations.test_optimizer.OptimizerTests.test_alter_alter_field)", "test_alter_alter_index_model (migrations.test_optimizer.OptimizerTests.test_alter_alter_index_mode... | null | true | 2023-05-01T15:20:04Z | 1 | 5 | 1 | 144 | 0 | 1 | 1 | 0.2 | 0.8 | 0.040667 | 67.572 | ||
2,714 | swe_gym::train::1889 | swe_gym | train | 1,889 | facebookresearch__hydra-2161 | facebookresearch/hydra | facebookresearch/hydra | python | a78d1f6d97a0cd580cb15319f93e39a11d9b655f | [Bug] Link to upgrade guide crashes documentation site
In `hydra-core==1.2.0dev5`, `basic_launcher` produces the following warning:
```
/home/runner/work/hydra-zen/hydra-zen/.tox/pre-release/lib/python3.8/site-packages/hydra/_internal/core_plugins
/basic_launcher.py:74:
UserWarning: Future Hydra versions will no longe... | Thanks for the report!
For now, here's a working link:
https://hydra.cc/docs/next/upgrades/1.1_to_1.2/changes_to_job_working_dir/ | diff --git a/hydra/core/utils.py b/hydra/core/utils.py
--- a/hydra/core/utils.py
+++ b/hydra/core/utils.py
@@ -152,7 +152,7 @@ def run_job(
_chdir = False
if _chdir is None:
- url = "https://hydra.cc/docs/upgrades/1.1_to_1.2/changes_to_job_working_dir"
+ url = "https://... | diff --git a/tests/test_hydra.py b/tests/test_hydra.py
--- a/tests/test_hydra.py
+++ b/tests/test_hydra.py
@@ -1482,7 +1482,7 @@ def test_job_chdir_not_specified(tmpdir: Path) -> None:
expected = dedent(
"""
.*UserWarning: Future Hydra versions will no longer change working directory at job runti... | ["tests/test_hydra.py::test_job_chdir_not_specified"] | ["tests/test_hydra.py::test_hydra_main_rerun[None-tests.test_apps.hydra_main_rerun.my_app]", "tests/test_hydra.py::test_module_env_override[FB_PAR_MAIN_MODULE]", "tests/test_hydra.py::test_hydra_main_rerun[tests/test_apps/hydra_main_rerun/my_app.py-None]", "tests/test_hydra.py::test_config_name_and_path_overrides[cfg2-... | null | true | 2022-04-19T19:29:15Z | 1 | 2 | 1 | 728 | 0 | 0.85 | 1 | 0.55 | 0.4 | 0.128 | 67.459 | |
2,715 | swe_gym::train::567 | swe_gym | train | 567 | python__mypy-11945 | python/mypy | python/mypy | python | 378119fb0ce7cb6133eeccd4de236a330cc8e10e | Regression in mypy 0.930: Cannot override writable attribute "__module__" with a final one
**Bug Report**
The following code is reported as error by mypy 0.930 (Python 3.8). It seems correct, and was considered correct so far:
```python
from enum import Enum
class PyFormat(str, Enum):
__module__ = "psycopg.adapt... | Thanks! Fix is on its way. You can add `# type: ignore` for now.
I'm afraid it will have to be "mypy != 0.930" because there are too many of them and because psycopg is also affected by https://github.com/python/typeshed/issues/6661 :smile:
https://github.com/psycopg/psycopg/runs/4610348714?check_suite_focus=true
I... | diff --git a/mypy/checker.py b/mypy/checker.py
--- a/mypy/checker.py
+++ b/mypy/checker.py
@@ -2517,7 +2517,7 @@ def check_compatibility_final_super(self, node: Var,
self.msg.cant_override_final(node.name, base.name, node)
return False
if node.is_final:
- if base.fullname i... | diff --git a/test-data/unit/check-enum.test b/test-data/unit/check-enum.test
--- a/test-data/unit/check-enum.test
+++ b/test-data/unit/check-enum.test
@@ -1712,9 +1712,17 @@ class B(A): pass # E: Cannot inherit from final class "A"
[case testEnumFinalSpecialProps]
# https://github.com/python/mypy/issues/11699
+# h... | ["mypy/test/testcheck.py::TypeCheckSuite::check-enum.test::testEnumFinalSpecialProps"] | [] | null | true | 2022-01-09T13:00:28Z | 1 | 2 | 1 | 559 | 0 | 0.85 | 1 | 0.55 | 0.4 | 0.099833 | 67.3745 | |
2,716 | swe_bench_pro::test::562 | swe_bench_pro | test | 562 | instance_protonmail__webclients-f080ffc38e2ad7bddf2e93e5193e82c20c7a11e7 | protonmail/webclients | protonmail/webclients | javascript | 01b4c82697b2901299ccda53294d7cba95794647 | # Title: Inconsistent placement of the logo and app switcher disrupts the layout structure across views
## Description
The layout currently places the logo and app switcher components within the top navigation header across several application views. This approach causes redundancy and inconsistency in the user interf... | ## Requirements
- The mail sidebar (`MailSidebar`) must render the application logo as part of the left-side navigation. The rendered logo element must carry the attribute `data-testid="main-logo"` and must point to the inbox route. Activating the logo must navigate the application to `/inbox`.
- The mail sidebar (`Ma... | diff --git a/applications/account/src/app/content/AccountSidebar.tsx b/applications/account/src/app/content/AccountSidebar.tsx
index 33c0dac6225..2a5e8fb1c4a 100644
--- a/applications/account/src/app/content/AccountSidebar.tsx
+++ b/applications/account/src/app/content/AccountSidebar.tsx
@@ -1,6 +1,6 @@
import { c } f... | diff --git a/applications/mail/src/app/components/header/MailHeader.test.tsx b/applications/mail/src/app/components/header/MailHeader.test.tsx
index 0c8ca4f48b2..4734de0046a 100644
--- a/applications/mail/src/app/components/header/MailHeader.test.tsx
+++ b/applications/mail/src/app/components/header/MailHeader.test.tsx... | ["src/app/components/sidebar/MailSidebar.test.tsx | should redirect on inbox when click on logo", "src/app/components/sidebar/MailSidebar.test.tsx | should open app dropdown"] | ["src/app/components/sidebar/MailSidebar.test.tsx | should show folder tree", "src/app/components/sidebar/MailSidebar.test.tsx | should show label list", "src/app/components/sidebar/MailSidebar.test.tsx | should show unread counters", "src/app/components/sidebar/MailSidebar.test.tsx | should navigate to the label on cl... | ghcr.io/scaleapi/swe-bench_pro-v2:instance_protonmail__webclients-f080ffc38e2ad7bddf2e93e5193e82c20c7a11e7 | true | null | 15 | 106 | 2 | 1,044 | 0 | 0.95 | 1 | 0.55 | 0.35 | 0.527333 | 67.3695 | |
2,717 | swe_gym::train::812 | swe_gym | train | 812 | iterative__dvc-1749 | iterative/dvc | iterative/dvc | python | 0897e8e9ba008ad27e2107b53a553406e60d018b | cache: dir option is not working correctly
version: `0.32.1`
-----
It raises an error when using the command:
```bash
❯ dvc cache dir
Error: unexpected error - 'NoneType' object has no attribute 'startswith'
Having any troubles? Hit us up at https://dvc.org/support, we are always happy to help!
``` | Is there any reason to have the `dir` subcommand after `cache`? | diff --git a/dvc/command/cache.py b/dvc/command/cache.py
--- a/dvc/command/cache.py
+++ b/dvc/command/cache.py
@@ -53,7 +53,6 @@ def add_parser(subparsers, parent_parser):
)
cache_dir_parser.add_argument(
"value",
- nargs="?",
default=None,
help="Path to cache directory. Rela... | diff --git a/tests/test_cache.py b/tests/test_cache.py
--- a/tests/test_cache.py
+++ b/tests/test_cache.py
@@ -128,6 +128,10 @@ def test(self):
class TestCmdCacheDir(TestDvc):
+ def test(self):
+ ret = main(["cache", "dir"])
+ self.assertEqual(ret, 254)
+
def test_abs_path(self):
dna... | ["tests/test_cache.py::TestCmdCacheDir::test"] | ["tests/test_cache.py::TestCacheLoadBadDirCache::test", "tests/test_cache.py::TestCmdCacheDir::test_relative_path", "tests/test_cache.py::TestSharedCacheDir::test", "tests/test_cache.py::TestCache::test_all", "tests/test_cache.py::TestCache::test_get", "tests/test_cache.py::TestCacheLinkType::test", "tests/test_cache.p... | null | true | 2019-03-19T02:28:30Z | 1 | 1 | 1 | 302 | 0 | 0.85 | 1 | 0.55 | 0.4 | 0.053667 | 67.236 | |
2,718 | swe_bench_promax::test::98 | swe_bench_promax | test | 98 | albumentations-team__albumentations-2337 | albumentations-team/albumentations | albumentations-team/albumentations | python | c650a540ad3e7ecfafda2f29c03f86af13775160 | Histopathology image analysis workflows increasingly rely on robust data augmentation to address the well-documented challenge of staining variability across laboratories. Hematoxylin and Eosin (H&E) stained tissue slides—ubiquitous in digital pathology—exhibit significant color and intensity differences due to protoco... | diff --git a/README.md b/README.md
--- a/README.md
+++ b/README.md
@@ -204,6 +204,7 @@ Pixel-level transforms will change just an input image and will leave any additi
- [GaussNoise](https://explore.albumentations.ai/transform/GaussNoise)
- [GaussianBlur](https://explore.albumentations.ai/transform/GaussianBlur)
- [... | diff --git a/tests/aug_definitions.py b/tests/aug_definitions.py
--- a/tests/aug_definitions.py
+++ b/tests/aug_definitions.py
@@ -432,4 +432,10 @@
[A.AtLeastOneBBoxRandomCrop, {"height": 80, "width": 80, "erosion_factor": 0.2}],
[A.ConstrainedCoarseDropout, {"num_holes_range": (1, 3), "hole_height_range": (0... | null | null | key4127/refactor-dockerhub:albumentations-team__albumentations-2337 | true | 1739146467 | 4 | 533 | null | 7,227 | 0 | 0.9 | 1 | 0.5 | 0.3825 | 1 | 67.184375 | ||
2,719 | swe_bench_promax::test::111 | swe_bench_promax | test | 111 | langchain-ai__langchain-32996 | langchain-ai/langchain | langchain-ai/langchain | python | 76d0758007cb4b4d5f797b0062cad26a6cfc189a | The Human-in-the-Loop middleware in LangChain's agent framework, located in the module `langchain.agents.middleware.human_in_the_loop`, previously imposed significant constraints on how tool calls requiring human approval could be processed during agent execution. When an agent's model response included multiple tool c... | diff --git a/libs/langchain_v1/langchain/agents/interrupt.py b/libs/langchain_v1/langchain/agents/interrupt.py
deleted file mode 100644
--- a/libs/langchain_v1/langchain/agents/interrupt.py
+++ /dev/null
@@ -1,97 +0,0 @@
-"""Interrupt types to use with agent inbox like setups."""
-
-from typing import Literal
-
-from t... | diff --git a/libs/langchain_v1/tests/unit_tests/agents/test_middleware_agent.py b/libs/langchain_v1/tests/unit_tests/agents/test_middleware_agent.py
--- a/libs/langchain_v1/tests/unit_tests/agents/test_middleware_agent.py
+++ b/libs/langchain_v1/tests/unit_tests/agents/test_middleware_agent.py
@@ -4,6 +4,7 @@
from s... | null | null | key4127/refactor-dockerhub:langchain-ai__langchain-32996 | true | 1758142381 | 4 | 493 | null | 6,252 | 0 | 0.9 | 1 | 0.5 | 0.3825 | 1 | 67.184375 | ||
2,720 | swe_gym::train::989 | swe_gym | train | 989 | dask__dask-10506 | dask/dask | dask/dask | python | 0e97410700b42b02bb20d0451557a2f5ad2a62ca | Writing zero length array to_zarr fails with ZeroDivisionError: division by zero
**Describe the issue**:
Writing an empty Dask array to zarr causes division by zero.
**Minimal Complete Verifiable Example**:
See also: https://colab.research.google.com/drive/1VUOlJOkQyZ42zKTz3S3q0pKeiaLs0zIA?usp=sharing
```python
imp... | Hi, thanks for your report. Not familiar enough with hat implementation, but it looks like things go wrong in ``load_store_chunk``. We probably shouldn't call setitem if the indexer is empty or the array is empty.
Investigations welcome | diff --git a/dask/array/core.py b/dask/array/core.py
--- a/dask/array/core.py
+++ b/dask/array/core.py
@@ -4374,7 +4374,7 @@ def load_store_chunk(
if lock:
lock.acquire()
try:
- if x is not None:
+ if x is not None and x.size != 0:
if is_arraylike(x):
out[i... | diff --git a/dask/array/tests/test_array_core.py b/dask/array/tests/test_array_core.py
--- a/dask/array/tests/test_array_core.py
+++ b/dask/array/tests/test_array_core.py
@@ -45,6 +45,7 @@
from_func,
getter,
graph_from_arraylike,
+ load_store_chunk,
normalize_chunks,
optimize,
stack,
@@... | ["dask/array/tests/test_array_core.py::test_load_store_chunk", "dask/array/tests/test_array_core.py::test_to_zarr_accepts_empty_array_without_exception_raised"] | ["dask/array/tests/test_array_core.py::test_normalize_chunks_nan", "dask/array/tests/test_array_core.py::test_stack_scalars", "dask/array/tests/test_array_core.py::test_to_dask_dataframe", "dask/array/tests/test_array_core.py::test_astype", "dask/array/tests/test_array_core.py::test_meta[dtype1]", "dask/array/tests/tes... | null | true | 2023-09-12T17:17:38Z | 1 | 2 | 2 | 7,007 | 0 | 0.85 | 1 | 0.5 | 0.4 | 0.506667 | 67.17 | |
2,721 | swe_gym::train::883 | swe_gym | train | 883 | iterative__dvc-1650 | iterative/dvc | iterative/dvc | python | 9a298fc835e0266d919fde046d6c567e52d4f045 | Callback stage warning doesn't match reality
`dvc --version` = 0.28.1
1. Make a dvc callback stage, e.g. to download an HTTP file that has no etag.
2. After it's downloaded and added to the cache, run `dvc repro` on it.
3. The warning message regarding callback stages is displayed.
4. The output file is deleted from f... | Hi @guysmoilov !
Good catch! Indeed, it is a bug in our run() method https://github.com/iterative/dvc/blob/master/dvc/stage.py#L660 , that should check if the stage is a callback and, if it is the case, not use cached outs but actually run it. Also, we should not print that "Running command" message if we are indeed... | diff --git a/dvc/stage.py b/dvc/stage.py
--- a/dvc/stage.py
+++ b/dvc/stage.py
@@ -657,7 +657,7 @@ def run(self, dry=False, resume=False, no_commit=False):
else:
logger.info("Running command:\n\t{}".format(self.cmd))
if not dry:
- if self._already_cached():
+ ... | diff --git a/tests/test_repro.py b/tests/test_repro.py
--- a/tests/test_repro.py
+++ b/tests/test_repro.py
@@ -1277,3 +1277,19 @@ def test(self):
ret = main(["repro", self.file1_stage, "--no-commit"])
self.assertEqual(ret, 0)
self.assertEqual(len(os.listdir(self.dvc.cache.local.cache_dir)), 0... | ["tests/test_repro.py::TestReproAlreadyCached::test"] | ["tests/test_repro.py::TestReproExternalLOCAL::test", "tests/test_repro.py::TestReproDepUnderDir::test", "tests/test_repro.py::TestNonExistingOutput::test", "tests/test_repro.py::TestReproCyclicGraph::test", "tests/test_repro.py::TestCmdRepro::test", "tests/test_repro.py::TestReproNoCommit::test", "tests/test_repro.py:... | null | true | 2019-02-21T18:50:58Z | 1 | 2 | 1 | 10,247 | 0 | 0.85 | 1 | 0.5 | 0.4 | 0.506667 | 67.17 | |
2,722 | swe_gym::train::886 | swe_gym | train | 886 | iterative__dvc-9408 | iterative/dvc | iterative/dvc | python | 1ba39449440a5d0e4e1b7039784d4adf2ec5b2d9 | exp run: support [-m | --message] parameter
Would be nice if the user is able to assign a description for a live experiment. I.e.:
```sh
dvc exp run -S epochs=12 -m "Increase epochs count due to under-fitting"
```
<details><summary>This will help us to display this information in the `Message` field in the Studio, po... | Outside of `live experiments`, I think it could be also valuable to optionally replace the hardcoded message we currently have in the generated commit:
https://github.com/iterative/dvc/blob/6a6bc7035ab7c2525c024d536b5e4686b2fb40bf/dvc/repo/experiments/executor/base.py#L688-L690 | diff --git a/dvc/commands/experiments/exec_run.py b/dvc/commands/experiments/exec_run.py
--- a/dvc/commands/experiments/exec_run.py
+++ b/dvc/commands/experiments/exec_run.py
@@ -20,6 +20,7 @@ def run(self):
log_level=logger.getEffectiveLevel(),
infofile=self.args.infofile,
copy_p... | diff --git a/tests/func/experiments/test_experiments.py b/tests/func/experiments/test_experiments.py
--- a/tests/func/experiments/test_experiments.py
+++ b/tests/func/experiments/test_experiments.py
@@ -773,3 +773,19 @@ def test_mixed_git_dvc_out(tmp_dir, scm, dvc, exp_stage):
assert (tmp_dir / "dir" / "metrics.ya... | ["tests/func/experiments/test_set_params.py::test_hydra_sweep[False-overrides1-expected1]", "tests/func/experiments/test_set_params.py::test_hydra_sweep[True-overrides0-expected0]", "tests/unit/command/test_experiments.py::test_experiments_run", "tests/unit/command/test_experiments.py::test_experiments_save", "tests/fu... | ["tests/unit/command/test_experiments.py::test_experiments_init_type_invalid_choice", "tests/func/experiments/test_save.py::test_exp_save_invalid_name[invalidname.]", "tests/unit/command/test_experiments.py::test_experiments_init_displays_output_on_no_run[args0]", "tests/unit/command/test_experiments.py::test_experimen... | null | true | 2023-05-05T07:45:05Z | 13 | 91 | 5 | 642 | 0 | 0.85 | 1 | 0.55 | 0.35 | 0.410333 | 67.1185 | |
2,723 | swe_gym::train::875 | swe_gym | train | 875 | iterative__dvc-3726 | iterative/dvc | iterative/dvc | python | 4e9b38970a56e0f994ca6f6b44f1b1f550163e73 | status: add --recursive flag
For some reason `dvc status` doesn't have `-R` flag in v 0.93. | Hi @nik123 !
`status` never had `-R` flag. We need to introduce it. All logic is there, we would simply need to add it to `dvc/command/status.py` and `dvc/repo/status.py`, that would then pass it to `collect` and `used_cache` in `dvc/repo/status.py`, similar how push/pull/fetch/etc do that. | diff --git a/dvc/command/data_sync.py b/dvc/command/data_sync.py
--- a/dvc/command/data_sync.py
+++ b/dvc/command/data_sync.py
@@ -334,4 +334,12 @@ def add_parser(subparsers, _parent_parser):
default=False,
help="Show status for all dependencies of the specified target.",
)
+ status_parser.add... | diff --git a/tests/func/test_status.py b/tests/func/test_status.py
--- a/tests/func/test_status.py
+++ b/tests/func/test_status.py
@@ -93,3 +93,23 @@ def test_status_on_pipeline_stages(tmp_dir, dvc, run_copy):
"changed command",
],
}
+
+
+def test_status_recursive(tmp_dir, dvc):
+ tmp_dir.... | ["tests/unit/command/test_status.py::test_cloud_status"] | ["tests/func/test_status.py::TestStatus::test_implied_cloud"] | null | true | 2020-05-03T17:16:27Z | 3 | 26 | 1 | 91 | 0 | 0.85 | 1 | 0.04 | 1 | 0.101833 | 67.0955 | |
2,724 | swe_gym::train::2434 | swe_gym | train | 2,434 | modin-project__modin-6760 | modin-project/modin | modin-project/modin | python | 275e32b43dbe64cbe8eef51034ce268194ef5e54 | PERF: `broadcast_apply_full_axis` can be implemented to compute caches in some cases | not actual
I think we could compute caches not only when `keep_partitioning=False`, but also when `keep_partitioining=True` so I would prefer to keep this issue open.
Source comment: https://github.com/modin-project/modin/pull/5640#discussion_r1123266212 | diff --git a/modin/core/dataframe/pandas/dataframe/dataframe.py b/modin/core/dataframe/pandas/dataframe/dataframe.py
--- a/modin/core/dataframe/pandas/dataframe/dataframe.py
+++ b/modin/core/dataframe/pandas/dataframe/dataframe.py
@@ -3272,6 +3272,27 @@ def broadcast_apply_full_axis(
kw["column... | diff --git a/modin/test/storage_formats/pandas/test_internals.py b/modin/test/storage_formats/pandas/test_internals.py
--- a/modin/test/storage_formats/pandas/test_internals.py
+++ b/modin/test/storage_formats/pandas/test_internals.py
@@ -1398,6 +1398,71 @@ def test_sort_values_cache():
validate_partitions_cache(m... | ["modin/test/storage_formats/pandas/test_internals.py::test_apply_full_axis_preserve_lengths", "modin/test/storage_formats/pandas/test_internals.py::test_apply_full_axis_preserve_widths"] | ["modin/test/storage_formats/pandas/test_internals.py::test_reorder_labels_cache[unbalanced_partitioning-no_reordering-projection_only]", "modin/test/storage_formats/pandas/test_internals.py::TestZeroComputationDtypes::test_preserve_dtypes_setitem[3.5-value_dtype0-unknown]", "modin/test/storage_formats/pandas/test_inte... | null | true | 2023-11-20T17:59:30Z | 1 | 21 | 2 | 84 | 0 | 0.85 | 1 | 0.04 | 1 | 0.084 | 67.042 | |
2,725 | swe_gym::train::2354 | swe_gym | train | 2,354 | modin-project__modin-6986 | modin-project/modin | modin-project/modin | python | 9adaf3396cd88b1cc1ab25a72d4373d874cc6069 | Documentation plugin
Right now, we always use pandas docstrings, but it would be useful to support different docstrings for different engines to indicate things like supported parameters and examples. | diff --git a/modin/config/__init__.py b/modin/config/__init__.py
--- a/modin/config/__init__.py
+++ b/modin/config/__init__.py
@@ -22,6 +22,7 @@
CIAWSSecretAccessKey,
CpuCount,
DaskThreadsPerWorker,
+ DocModule,
DoUseCalcite,
Engine,
EnvironmentVariable,
@@ -107,4 +108,6 @@
"LogMod... | diff --git a/modin/config/test/docs_module/__init__.py b/modin/config/test/docs_module/__init__.py
new file mode 100644
--- /dev/null
+++ b/modin/config/test/docs_module/__init__.py
@@ -0,0 +1,17 @@
+# Licensed to Modin Development Team under one or more contributor license agreements.
+# See the NOTICE file distribute... | ["modin/config/test/test_envvars.py::test_doc_module"] | ["modin/config/test/test_envvars.py::test_deprecated_bool_vars_equals[False-ExperimentalNumPyAPI-ModinNumpy]", "modin/config/test/test_envvars.py::test_hdk_envvar", "modin/config/test/test_envvars.py::test_custom_help[str]", "modin/config/test/test_envvars.py::test_deprecated_bool_vars_warnings[ExperimentalGroupbyImpl-... | null | true | 2024-02-29T22:02:06Z | 5 | 111 | 1 | 200 | 0 | 0.85 | 1 | 0.2 | 0.85 | 0.403333 | 66.9975 | ||
2,726 | swe_gym::train::1043 | swe_gym | train | 1,043 | dask__dask-7033 | dask/dask | dask/dask | python | dcf3c3a1ee5f7bdaa1f45701fca6a7502d3ccb20 | Proposal for a more fully featured __setitem__
Hello,
I have been looking into the feasibility of replacing the internals of the data object in [cf-python](https://github.com/NCAS-CMS/cf-python) with dask. I am very impressed by dask's functionality, and it is promising that we can use it.
However, the lack of a full... | diff --git a/dask/array/core.py b/dask/array/core.py
--- a/dask/array/core.py
+++ b/dask/array/core.py
@@ -58,7 +58,13 @@
from ..sizeof import sizeof
from ..highlevelgraph import HighLevelGraph
from .numpy_compat import _Recurser, _make_sliced_dtype
-from .slicing import slice_array, replace_ellipsis, cached_cumsum
... | diff --git a/dask/array/tests/test_array_core.py b/dask/array/tests/test_array_core.py
--- a/dask/array/tests/test_array_core.py
+++ b/dask/array/tests/test_array_core.py
@@ -3611,12 +3611,168 @@ def test_setitem_2d():
assert_eq(x, dx)
+def test_setitem_extended_API():
+ x = np.ma.arange(60).reshape((6, 10)... | ["dask/array/tests/test_array_core.py::test_setitem_on_read_only_blocks", "dask/array/tests/test_array_core.py::test_setitem_extended_API", "dask/array/tests/test_array_core.py::test_setitem_errs"] | ["dask/array/tests/test_array_core.py::test_normalize_chunks_nan", "dask/array/tests/test_array_core.py::test_stack_scalars", "dask/array/tests/test_array_core.py::test_to_dask_dataframe", "dask/array/tests/test_array_core.py::test_astype", "dask/array/tests/test_array_core.py::test_meta[dtype1]", "dask/array/tests/tes... | null | true | 2021-01-06T10:48:03Z | 2 | 589 | 3 | 4,160 | 0 | 0.85 | 1 | 0.47 | 0.45 | 1 | 66.9825 | ||
2,727 | swe_gym::train::2347 | swe_gym | train | 2,347 | modin-project__modin-7152 | modin-project/modin | modin-project/modin | python | fe57e19c32b12cd62bdf4136d83a978d2bd93af1 | `test_series.py::test_astype` failed due to different exception messages
Found in https://github.com/modin-project/modin/pull/6954 | diff --git a/modin/core/dataframe/pandas/dataframe/dataframe.py b/modin/core/dataframe/pandas/dataframe/dataframe.py
--- a/modin/core/dataframe/pandas/dataframe/dataframe.py
+++ b/modin/core/dataframe/pandas/dataframe/dataframe.py
@@ -1625,7 +1625,7 @@ def astype(self, col_dtypes, errors: str = "raise"):
Par... | diff --git a/modin/tests/pandas/test_series.py b/modin/tests/pandas/test_series.py
--- a/modin/tests/pandas/test_series.py
+++ b/modin/tests/pandas/test_series.py
@@ -1079,8 +1079,9 @@ def test_astype(data, request):
eval_general(modin_series, pandas_series, lambda df: df.astype(str))
expected_exception = Non... | ["modin/tests/pandas/test_series.py::test_astype[float_nan_data]"] | ["modin/tests/pandas/test_series.py::test_mean[False-float_nan_data]", "modin/tests/pandas/test_series.py::test_case_when[caselist35-base1]", "modin/tests/pandas/test_series.py::test_apply[str-float_nan_data]", "modin/tests/pandas/test_series.py::test_case_when[caselist121-base1]", "modin/tests/pandas/test_series.py::t... | null | true | 2024-04-05T09:09:49Z | 4 | 105 | 1 | 130 | 0 | 0.85 | 1 | 0.2 | 0.85 | 0.371667 | 66.9025 | ||
2,728 | swe_gym::train::889 | swe_gym | train | 889 | iterative__dvc-5732 | iterative/dvc | iterative/dvc | python | 4d4f9427d1e57fd7c3db68965e41d95d2b197339 | s3 and compatible: add a config option to support validate_certs
Similar to use_ssl, we should probably provide a config for this.
More context here - https://discordapp.com/channels/485586884165107732/485596304961962003/685129104214851595 | We should provide this option, but it's better if user explicitly provided their custom certs via (`AWS_CA_BUNDLE`) (need to check though if it really works).
I think both options complement each other, don't see any contradiction. The same as boto probably supports both, as far as I understand. Do you have any specifi... | diff --git a/dvc/config_schema.py b/dvc/config_schema.py
--- a/dvc/config_schema.py
+++ b/dvc/config_schema.py
@@ -145,6 +145,7 @@ class RelPath(str):
"session_token": str,
Optional("listobjects", default=False): Bool, # obsoleted
Optional("use_ssl", defau... | diff --git a/tests/unit/fs/test_s3.py b/tests/unit/fs/test_s3.py
--- a/tests/unit/fs/test_s3.py
+++ b/tests/unit/fs/test_s3.py
@@ -29,6 +29,22 @@ def test_init(dvc):
assert fs.path_info == url
+def test_verify_ssl_default_param(dvc):
+ config = {
+ "url": url,
+ }
+ fs = S3FileSystem(dvc, confi... | ["tests/unit/fs/test_s3.py::test_verify_ssl_default_param", "tests/unit/fs/test_s3.py::test_ssl_verify_bool_param"] | ["tests/unit/fs/test_s3.py::test_get_s3_connection_error", "tests/unit/fs/test_s3.py::test_grants_mutually_exclusive_acl_error", "tests/unit/fs/test_s3.py::test_get_bucket", "tests/unit/fs/test_s3.py::test_get_s3_no_credentials", "tests/unit/fs/test_s3.py::test_grants", "tests/unit/fs/test_s3.py::test_sse_kms_key_id", ... | null | true | 2021-03-30T14:00:33Z | 2 | 3 | 2 | 240 | 0 | 0.85 | 1 | 0.2 | 0.8 | 0.05 | 66.75 | |
2,729 | swe_gym::train::1080 | swe_gym | train | 1,080 | pydantic__pydantic-5529 | pydantic/pydantic | pydantic/pydantic | python | 8ee553aae909a88df483d6454ed9af58c494879f | root_validator and context
So in v2 `@field_validator` have context passed to a callback but `@root_validator` is not
can we add as well context to `@root_validator` ? | I think the plan is to create a new validator called `@model_validator` or similar, which will be like `@root_validator` but follow more of the v2 api conventions (and, in particular, have `context`). And `@root_validator` will get deprecated and just remain for v1 backwards compatibility.
@adriangb may have more de... | diff --git a/pydantic/_internal/_decorators.py b/pydantic/_internal/_decorators.py
--- a/pydantic/_internal/_decorators.py
+++ b/pydantic/_internal/_decorators.py
@@ -248,6 +248,7 @@ def build(model_dc: type[Any]) -> DecoratorInfos: # noqa: C901 (ignore complexi
res.root_validator.update({k: v.bind_to... | diff --git a/tests/test_model_validator.py b/tests/test_model_validator.py
--- a/tests/test_model_validator.py
+++ b/tests/test_model_validator.py
@@ -2,6 +2,8 @@
from typing import Any, Dict, cast
+import pytest
+
from pydantic import BaseModel, ValidationInfo
from pydantic.decorators import ModelWrapValidatorH... | ["tests/test_model_validator.py::test_model_validator_before[<lambda>]", "tests/test_model_validator.py::test_subclass"] | ["tests/test_model_validator.py::test_model_validator_after", "tests/test_model_validator.py::test_model_validator_wrap", "tests/test_model_validator.py::test_model_validator_before[classmethod]"] | null | true | 2023-04-19T15:36:38Z | 2 | 5 | 2 | 168 | 0 | 0.85 | 1 | 0.2 | 0.8 | 0.044667 | 66.734 | |
2,730 | swe_gym::train::361 | swe_gym | train | 361 | python__mypy-15996 | python/mypy | python/mypy | python | a7e0f6f8b0ec5de2fe7b804c9ac7160893ae5bf8 | Change the string representation of the bottom type from `<nothing>` to `typing.Never`
**Feature**
Rather than showing the string `<nothing>`, which is unclear to mypy users, use `typing.Never`.
**Pitch**
It is not obvious to a typing user that `<nothing>` means the same thing as `typing.Never`.
I've been active in... | diff --git a/mypy/checker.py b/mypy/checker.py
--- a/mypy/checker.py
+++ b/mypy/checker.py
@@ -3934,7 +3934,7 @@ def is_valid_defaultdict_partial_value_type(self, t: ProperType) -> bool:
Examples:
* t is 'int' --> True
- * t is 'list[<nothing>]' --> True
+ * t is 'list[Never]' --... | diff --git a/test-data/unit/check-classes.test b/test-data/unit/check-classes.test
--- a/test-data/unit/check-classes.test
+++ b/test-data/unit/check-classes.test
@@ -7718,13 +7718,13 @@ class D:
def __init__(self) -> NoReturn: ...
if object():
- reveal_type(A()) # N: Revealed type is "<nothing>"
+ revea... | ["mypy/test/testcheck.py::TypeCheckSuite::check-inference.test::testCallableInferenceAgainstCallablePosOnlyVsKwargs", "mypy/test/testcheck.py::TypeCheckSuite::check-inference.test::testCallableInferenceAgainstCallableNamedVsPosOnly", "mypy/test/testcheck.py::TypeCheckSuite::check-typeddict.test::testMeetOfTypedDictWith... | ["mypy/test/testcheck.py::TypeCheckSuite::check-native-int.test::testNativeIntForLoopRange", "mypy/test/testpythoneval.py::PythonEvaluationSuite::pythoneval.test::testTypeVarTupleTypingExtensions", "mypy/test/testcheck.py::TypeCheckSuite::check-typevar-tuple.test::testTypeVarTupleGenericClassWithFunctions", "mypy/test/... | null | true | 2023-08-30T06:04:13Z | 8 | 36 | 9 | 1,018 | 0 | 0.85 | 1 | 0.4 | 0.6 | 0.289667 | 66.419 | ||
2,731 | swe_gym::train::756 | swe_gym | train | 756 | iterative__dvc-8380 | iterative/dvc | iterative/dvc | python | e556c632b371b3474d6546bdf68dd4bb6f9ec093 | UnicodeDecodeError during parsing Config file
We had an repository using GITCRYPT for the config file. As a result, during the parsing of repo in Studio, we had the error as below:
```python
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x93 in position 17: invalid start byte
......
config = dict(Config(dvc_d... | Related thread: https://iterativeai.slack.com/archives/C01JQPTB35J/p1663711708689009.
We have a user report for this stating the repo is unavailable for them: https://iterativeai.slack.com/archives/C01CLQERD9P/p1664166967252009.
The user says it was working before. Do you know if it was working with gitcrypt or if i... | diff --git a/dvc/config.py b/dvc/config.py
--- a/dvc/config.py
+++ b/dvc/config.py
@@ -176,7 +176,10 @@ def _load_config(self, level):
if fs.exists(filename):
with fs.open(filename) as fobj:
- conf_obj = ConfigObj(fobj)
+ try:
+ conf_obj = ConfigO... | diff --git a/tests/unit/test_config.py b/tests/unit/test_config.py
--- a/tests/unit/test_config.py
+++ b/tests/unit/test_config.py
@@ -3,7 +3,7 @@
import pytest
-from dvc.config import Config
+from dvc.config import Config, ConfigError
from dvc.fs import LocalFileSystem
@@ -70,3 +70,14 @@ def test_s3_ssl_veri... | ["tests/unit/test_config.py::test_load_unicode_error"] | ["tests/unit/test_config.py::test_s3_ssl_verify", "tests/unit/test_config.py::test_to_relpath[ssh://some/path-ssh://some/path]", "tests/unit/test_config.py::test_to_relpath[cache-../cache]", "tests/unit/test_config.py::test_to_relpath[/testbed-/testbed]", "tests/unit/test_config.py::test_to_relpath[../cache-../../cache... | null | true | 2022-09-29T08:47:22Z | 1 | 5 | 1 | 1,251 | 0.333333 | 0.85 | 1 | 0.85 | 0.8 | 0.225167 | 66.404667 | |
2,732 | swe_bench_promax::test::154 | swe_bench_promax | test | 154 | angular__angular-c_815f1b1 | angular/angular | angular/angular | typescript | 9c835e89fea7267bb03313234016c1043bc7cfad | Recently, Angular expanded its internal profiler infrastructure to include a richer set of diagnostic events covering critical application lifecycle phases—such as component bootstrapping, change detection cycles, defer block state transitions, after-render hook execution, and dynamic component creation. These new even... | diff --git a/packages/core/src/application/application_ref.ts b/packages/core/src/application/application_ref.ts
--- a/packages/core/src/application/application_ref.ts
+++ b/packages/core/src/application/application_ref.ts
@@ -47,6 +47,8 @@ import {NgZone} from '../zone/ng_zone';
import {ApplicationInitStatus} from '.... | diff --git a/packages/core/test/acceptance/profiler_spec.ts b/packages/core/test/acceptance/profiler_spec.ts
--- a/packages/core/test/acceptance/profiler_spec.ts
+++ b/packages/core/test/acceptance/profiler_spec.ts
@@ -13,6 +13,7 @@ import {TestBed} from '@angular/core/testing';
import {
AfterContentChecked,
Aft... | null | null | key4127/refactor-dockerhub:angular__angular-c_815f1b1 | true | 1736876121 | 8 | 67 | null | 4,452 | 0 | 0.9 | 1 | 0.32 | 0.6 | 0.723333 | 66.39 | ||
2,733 | swe_bench_promax::test::88 | swe_bench_promax | test | 88 | google__gson-2948 | google/gson | google/gson | java | dfc1ce001b46cb1c022012aa08152852b67dbdc9 | Gson currently relies on its reflective type adapter mechanism to serialize and deserialize `java.time` classes. This approach accesses private internal fields of JDK classes, which is fragile: it requires `--add-opens` JVM arguments on modern JDK versions, and a recent OpenJDK change marking key fields as `transient` ... | diff --git a/gson/src/main/java/com/google/gson/Gson.java b/gson/src/main/java/com/google/gson/Gson.java
--- a/gson/src/main/java/com/google/gson/Gson.java
+++ b/gson/src/main/java/com/google/gson/Gson.java
@@ -370,6 +370,10 @@ public Gson() {
factories.add(TypeAdapters.BIT_SET_FACTORY);
factories.add(Default... | diff --git a/gson/src/test/java/com/google/gson/functional/DefaultTypeAdaptersTest.java b/gson/src/test/java/com/google/gson/functional/DefaultTypeAdaptersTest.java
--- a/gson/src/test/java/com/google/gson/functional/DefaultTypeAdaptersTest.java
+++ b/gson/src/test/java/com/google/gson/functional/DefaultTypeAdaptersTes... | null | null | key4127/refactor-dockerhub:google__gson-2948 | true | 1766529499 | 5 | 634 | null | 3,499 | 0 | 0.9 | 1 | 0.47 | 0.3825 | 1 | 66.329375 | ||
2,734 | swe_bench_promax::test::11 | swe_bench_promax | test | 11 | aws__s2n-tls-5552 | aws/s2n-tls | aws/s2n-tls | c | 389e627dc423207d15ae1f74057ef0ac04641f23 | The aws-kms-tls-auth crate enables mutual TLS authentication using AWS KMS and IAM permissions, with a recent architectural shift toward leveraging KMS HMAC keys and the GenerateMac API for secret derivation. This updated approach replaces the legacy data-key workflow (GenerateDataKey/Decrypt) to enhance security prope... | diff --git a/bindings/rust/aws-kms-tls-auth/Cargo.toml b/bindings/rust/aws-kms-tls-auth/Cargo.toml
--- a/bindings/rust/aws-kms-tls-auth/Cargo.toml
+++ b/bindings/rust/aws-kms-tls-auth/Cargo.toml
@@ -23,6 +23,7 @@ tokio = {version = "1.45.1", features = ["rt", "macros"]}
static_assertions = "1.1.0"
rand = "0.9.2"
tra... | diff --git a/bindings/rust/aws-kms-tls-auth/src/test_utils.rs b/bindings/rust/aws-kms-tls-auth/src/test_utils.rs
--- a/bindings/rust/aws-kms-tls-auth/src/test_utils.rs
+++ b/bindings/rust/aws-kms-tls-auth/src/test_utils.rs
@@ -5,7 +5,8 @@ use crate::{
epoch_schedule,
psk_derivation::{EpochSecret, PskIdentity}... | null | null | key4127/refactor-dockerhub:aws__s2n-tls-5552 | true | 1760302060 | 6 | 839 | null | 4,153 | 0 | 0.9 | 1 | 0.47 | 0.3825 | 1 | 66.329375 | ||
2,735 | swe_gym::train::1113 | swe_gym | train | 1,113 | pydantic__pydantic-9135 | pydantic/pydantic | pydantic/pydantic | python | 8128821b864db533b7c5c0c75589777c10d5cda7 | `Literal` annotation does not render type to json-schema
### Initial Checks
- [X] I confirm that I'm using Pydantic V2
### Description
When defining a property as `Literal`, eg:
```python
from pydantic import BaseModel
from typing import Literal
class Foo(BaseModel):
bar: Literal["Bar"] = 'Bar'
baz: Litera... | Related to this, it would be nice if `StringConstraints` had a `values` parameter (or similar) that would let you specify the literal allowed values. This would fulfill the same use-case as using the `Literal` type hint, but would allow for a dynamic list of strings to be used instead. Currently this behaviour can be a... | diff --git a/pydantic/json_schema.py b/pydantic/json_schema.py
--- a/pydantic/json_schema.py
+++ b/pydantic/json_schema.py
@@ -751,6 +751,8 @@ def literal_schema(self, schema: core_schema.LiteralSchema) -> JsonSchemaValue:
result['type'] = 'boolean'
elif types == {list}:
result['type'... | diff --git a/tests/test_json_schema.py b/tests/test_json_schema.py
--- a/tests/test_json_schema.py
+++ b/tests/test_json_schema.py
@@ -2324,7 +2324,7 @@ class Model(BaseModel):
'int_literal': {'enum': [123, 456], 'title': 'Int Literal', 'type': 'integer'},
'float_literal': {'$ref': '#/$defs/Fl... | ["tests/test_types.py::test_none_literal"] | ["tests/test_json_schema.py::test_ipv6network_type", "tests/test_types.py::test_finite_float_validation_error[inf]", "tests/test_types.py::test_default_validators[date_check-value113-result113]", "tests/test_types.py::test_decimal_validation[condecimal-type_args46-value46-result46]", "tests/test_types.py::test_types_re... | null | true | 2024-03-29T15:25:42Z | 1 | 2 | 1 | 3,341 | 0 | 0.85 | 1 | 0.47 | 0.4 | 0.506667 | 66.315 | |
2,736 | swe_bench_pro::test::115 | swe_bench_pro | test | 115 | instance_ansible__ansible-eea46a0d1b99a6dadedbb6a3502d599235fa7ec3-v390e508d27db7a51eece36bb6d9698b63a5b638a | ansible/ansible | ansible/ansible | python | 07e7b69c04116f598ed2376616cbb46343d9a0e9 | # Add an Ericsson ECCLI command module to Ansible Network
## Description
Ansible Network does not currently provide a module for running commands on Ericsson ECCLI devices. Users cannot send arbitrary CLI commands to an ECCLI node, evaluate the command output against conditions, or safely interact with the device in ... | ## Requirements
- A new module utilities file at `lib/ansible/module_utils/network/eric_eccli/eric_eccli.py` must expose a `run_commands(module, commands, check_rc=True)` callable that the command module imports by name and invokes to execute the requested commands against the target device, returning their textual out... | diff --git a/.github/BOTMETA.yml b/.github/BOTMETA.yml
index 9daa9522dd541a..7b4babc5d33d6c 100644
--- a/.github/BOTMETA.yml
+++ b/.github/BOTMETA.yml
@@ -312,6 +312,7 @@ files:
$modules/network/edgeswitch/: f-bor
$modules/network/enos/: amuraleedhar
$modules/network/eos/: trishnaguha
+ $modules/network/eric_... | diff --git a/test/units/modules/network/eric_eccli/__init__.py b/test/units/modules/network/eric_eccli/__init__.py
new file mode 100644
index 00000000000000..e69de29bb2d1d6
diff --git a/test/units/modules/network/eric_eccli/eccli_module.py b/test/units/modules/network/eric_eccli/eccli_module.py
new file mode 100644
ind... | ["test/units/modules/network/eric_eccli/test_eccli_command.py::TestEccliCommandModule::test_eric_eccli_command_configure_check_warning", "test/units/modules/network/eric_eccli/test_eccli_command.py::TestEccliCommandModule::test_eric_eccli_command_configure_not_warning", "test/units/modules/network/eric_eccli/test_eccli... | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_ansible__ansible-eea46a0d1b99a6dadedbb6a3502d599235fa7ec3-v390e508d27db7a51eece36bb6d9698b63a5b638a | true | null | 9 | 501 | 10 | 1,832 | 0 | 0.95 | 1 | 0.55 | 0.27 | 0.805333 | 66.3035 | |
2,737 | swe_bench_verified::test::64 | swe_bench_verified | test | 64 | django__django-11880 | django/django | django/django | python | 06909fe084f87a65459a83bd69d7cdbe4fce9a7c | Form Field’s __deepcopy__ does not (deep)copy the error messages.
Description
The __deepcopy__ method defined for the formfields (https://github.com/django/django/blob/146086f219d01dbb1cd8c089b5a5667e396e1cc4/django/forms/fields.py#L200) performs a shallow copy of self and does not include additional treatment for th... | Thanks for this report. I attached a simple test. Reproduced at f52022ad96356d4b1061610f2b74ea4d1956a608.
Simple test.
PR | diff --git a/django/forms/fields.py b/django/forms/fields.py
--- a/django/forms/fields.py
+++ b/django/forms/fields.py
@@ -199,6 +199,7 @@ def __deepcopy__(self, memo):
result = copy.copy(self)
memo[id(self)] = result
result.widget = copy.deepcopy(self.widget, memo)
+ result.error_mess... | diff --git a/tests/forms_tests/tests/test_forms.py b/tests/forms_tests/tests/test_forms.py
--- a/tests/forms_tests/tests/test_forms.py
+++ b/tests/forms_tests/tests/test_forms.py
@@ -3685,6 +3685,17 @@ def test_empty_data_files_multi_value_dict(self):
self.assertIsInstance(p.data, MultiValueDict)
self... | ["test_field_deep_copy_error_messages (forms_tests.tests.test_forms.FormsTestCase)"] | ["test_attribute_class (forms_tests.tests.test_forms.RendererTests)", "test_attribute_instance (forms_tests.tests.test_forms.RendererTests)", "test_attribute_override (forms_tests.tests.test_forms.RendererTests)", "test_default (forms_tests.tests.test_forms.RendererTests)", "test_kwarg_class (forms_tests.tests.test_for... | null | true | 2019-10-07T19:10:59Z | 1 | 1 | 1 | 1,076 | 0 | 1 | 1 | 0.4 | 0.4 | 0.182667 | 66.198 | |
2,738 | swe_bench_verified::test::25 | swe_bench_verified | test | 25 | django__django-10914 | django/django | django/django | python | e7fd69d051eaa67cb17f172a39b57253e9cb831a | Set default FILE_UPLOAD_PERMISSION to 0o644.
Description
Hello,
As far as I can see, the File Uploads documentation page does not mention any permission issues.
What I would like to see is a warning that in absence of explicitly configured FILE_UPLOAD_PERMISSIONS, the permissions for a file uploaded to FileSystemStor... | I think you're talking about ef70af77ec53160d5ffa060c1bdf5ed93322d84f (#28540). I guess the question is whether or not that documentation should be duplicated elsewhere.
Thank you Tim, this is precisely what I was looking for! I can only see one issue with the current docs (if you excuse me for bothering you with such ... | diff --git a/django/conf/global_settings.py b/django/conf/global_settings.py
--- a/django/conf/global_settings.py
+++ b/django/conf/global_settings.py
@@ -304,7 +304,7 @@ def gettext_noop(s):
# The numeric mode to set newly-uploaded files to. The value should be a mode
# you'd pass directly to os.chmod; see https:/... | diff --git a/tests/test_utils/tests.py b/tests/test_utils/tests.py
--- a/tests/test_utils/tests.py
+++ b/tests/test_utils/tests.py
@@ -1099,7 +1099,7 @@ def test_override_file_upload_permissions(self):
the file_permissions_mode attribute of
django.core.files.storage.default_storage.
"""
- ... | ["test_override_file_upload_permissions (test_utils.tests.OverrideSettingsTests)"] | ["test_allowed_database_chunked_cursor_queries (test_utils.tests.AllowedDatabaseQueriesTests)", "test_allowed_database_queries (test_utils.tests.AllowedDatabaseQueriesTests)", "test_skip_if_db_feature (test_utils.tests.SkippingTestCase)", "test_skip_unless_db_feature (test_utils.tests.SkippingTestCase)", "test_equal_pa... | null | true | 2019-01-30T13:13:20Z | 1 | 2 | 1 | 1,019 | 0 | 1 | 1 | 0.4 | 0.4 | 0.1765 | 66.1795 | |
2,739 | swe_bench_verified::test::33 | swe_bench_verified | test | 33 | django__django-11133 | django/django | django/django | python | 879cc3da6249e920b8d54518a0ae06de835d7373 | HttpResponse doesn't handle memoryview objects
Description
I am trying to write a BinaryField retrieved from the database into a HttpResponse. When the database is Sqlite this works correctly, but Postgresql returns the contents of the field as a memoryview object and it seems like current Django doesn't like this com... | I guess HttpResponseBase.make_bytes could be adapted to deal with memoryview objects by casting them to bytes. In all cases simply wrapping the memoryview in bytes works as a workaround HttpResponse(bytes(model.binary_field)).
The fact make_bytes would still use force_bytes if da56e1bac6449daef9aeab8d076d2594d9fd5b44 ... | diff --git a/django/http/response.py b/django/http/response.py
--- a/django/http/response.py
+++ b/django/http/response.py
@@ -229,7 +229,7 @@ def make_bytes(self, value):
# Handle string types -- we can't rely on force_bytes here because:
# - Python attempts str conversion first
# - when sel... | diff --git a/tests/httpwrappers/tests.py b/tests/httpwrappers/tests.py
--- a/tests/httpwrappers/tests.py
+++ b/tests/httpwrappers/tests.py
@@ -366,6 +366,10 @@ def test_non_string_content(self):
r.content = 12345
self.assertEqual(r.content, b'12345')
+ def test_memoryview_content(self):
+ ... | ["test_memoryview_content (httpwrappers.tests.HttpResponseTests)"] | ["test_streaming_response (httpwrappers.tests.StreamingHttpResponseTests)", "test_cookie_edgecases (httpwrappers.tests.CookieTests)", "Semicolons and commas are decoded.", "Semicolons and commas are encoded.", "test_httponly_after_load (httpwrappers.tests.CookieTests)", "test_invalid_cookies (httpwrappers.tests.CookieT... | null | true | 2019-03-27T06:48:09Z | 1 | 2 | 1 | 771 | 0 | 1 | 1 | 0.4 | 0.4 | 0.135167 | 66.0555 | |
2,740 | swe_bench_pro::test::294 | swe_bench_pro | test | 294 | instance_future-architect__vuls-e049df50fa1eecdccc5348e27845b5c783ed7c76-v73dc95f6b90883d8a87e01e5e9bb6d3cc32add6d | future-architect/vuls | future-architect/vuls | go | dce837950529084d34c6815fa66e59a4f68fa8e4 | ## Title: The vulnerability data model is missing a dedicated field for KEV information
## Description
The core vulnerability data model currently lacks a dedicated field for tracking KEV (Known Exploited Vulnerabilities) information. This critical information is instead handled within a generic alert structure, rathe... | ## Requirements
- A `KEVType` type should be defined as a string, with constants `CISAKEVType` equal to `"cisa"` and `VulnCheckKEVType` equal to `"vulncheck"` representing the different KEV sources.
- A `KEV` struct should represent a known exploited vulnerability and must include at least a `Type` field of type `KEVT... | diff --git a/README.md b/README.md
index 57102d12d2..8e73f6d04c 100644
--- a/README.md
+++ b/README.md
@@ -90,8 +90,9 @@ Vuls is a tool created to solve the problems listed above. It has the following
- [US-CERT](https://www.us-cert.gov/ncas/alerts)
- [JPCERT](http://www.jpcert.or.jp/at/2019.html)
-- CISA(Cyber... | diff --git a/models/scanresults_test.go b/models/scanresults_test.go
index d4292814f5..3b4a34aac9 100644
--- a/models/scanresults_test.go
+++ b/models/scanresults_test.go
@@ -225,10 +225,6 @@ func TestScanResult_Sort(t *testing.T) {
{Title: "a"},
{Title: "b"},
},
- CISA: []Alert{
- ... | ["TestScanResult_Sort/sort_kev_1", "TestScanResult_Sort/sort_kev_2"] | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_future-architect__vuls-e049df50fa1eecdccc5348e27845b5c783ed7c76-v73dc95f6b90883d8a87e01e5e9bb6d3cc32add6d | true | null | 8 | 408 | 2 | 1,296 | 0 | 0.95 | 1 | 0.55 | 0.27 | 0.716 | 66.0355 | |
2,741 | swe_bench_verified::test::83 | swe_bench_verified | test | 83 | django__django-12419 | django/django | django/django | python | 7fa1a93c6c8109010a6ff3f604fda83b604e0e97 | Add secure default SECURE_REFERRER_POLICY / Referrer-policy header
Description
#29406 added the ability for the SECURE_REFERRER_POLICY setting to set Referrer-Policy, released in Django 3.0.
I propose we change the default for this to "same-origin" to make Django applications leak less information to third party sites... | Hi Adam, Yes, I think this fits our secure by default philosophy. As long as the BC is documented in the release notes I think we should have this. | diff --git a/django/conf/global_settings.py b/django/conf/global_settings.py
--- a/django/conf/global_settings.py
+++ b/django/conf/global_settings.py
@@ -637,6 +637,6 @@ def gettext_noop(s):
SECURE_HSTS_PRELOAD = False
SECURE_HSTS_SECONDS = 0
SECURE_REDIRECT_EXEMPT = []
-SECURE_REFERRER_POLICY = None
+SECURE_REFERR... | diff --git a/tests/project_template/test_settings.py b/tests/project_template/test_settings.py
--- a/tests/project_template/test_settings.py
+++ b/tests/project_template/test_settings.py
@@ -38,6 +38,7 @@ def test_middleware_headers(self):
self.assertEqual(headers, [
b'Content-Length: 0',
... | ["test_middleware_headers (project_template.test_settings.TestStartProjectSettings)"] | [] | null | true | 2020-02-05T10:02:56Z | 1 | 2 | 1 | 678 | 0 | 1 | 1 | 0.4 | 0.4 | 0.119667 | 66.009 | |
2,742 | swe_bench_verified::test::323 | swe_bench_verified | test | 323 | pylint-dev__pylint-4970 | pylint-dev/pylint | pylint-dev/pylint | python | 40cc2ffd7887959157aaf469e09585ec2be7f528 | Setting `min-similarity-lines` to `0` should stop pylint from checking duplicate code
### Current problem
Setting `min-similarity-lines` to `0` in the rcfile doesn't disable checking for duplicate code, it instead treats every line of code as duplicate and raises many errors.
### Desired solution
Setting `min-simila... | It's a nice enhancement, thank you for opening the issue. The way to disable duplicate code is by using:
```ini
[MASTER]
disable=duplicate-code
```
As you saw in issue 214, it's currently impossible to disable duplicate-code **in some part of the code and not the other** but this is another issue entirely. | diff --git a/pylint/checkers/similar.py b/pylint/checkers/similar.py
--- a/pylint/checkers/similar.py
+++ b/pylint/checkers/similar.py
@@ -390,6 +390,8 @@ def append_stream(self, streamid: str, stream: TextIO, encoding=None) -> None:
def run(self) -> None:
"""start looking for similarities and display r... | diff --git a/tests/checkers/unittest_similar.py b/tests/checkers/unittest_similar.py
--- a/tests/checkers/unittest_similar.py
+++ b/tests/checkers/unittest_similar.py
@@ -502,3 +502,11 @@ def test_get_map_data() -> None:
# There doesn't seem to be a faster way of doing this, yet.
lines = (linespec.tex... | ["tests/checkers/unittest_similar.py::test_set_duplicate_lines_to_zero"] | ["tests/checkers/unittest_similar.py::test_ignore_comments", "tests/checkers/unittest_similar.py::test_ignore_docstrings", "tests/checkers/unittest_similar.py::test_ignore_imports", "tests/checkers/unittest_similar.py::test_multiline_imports", "tests/checkers/unittest_similar.py::test_ignore_multiline_imports", "tests/... | null | true | 2021-09-05T19:44:07Z | 1 | 2 | 1 | 615 | 0 | 1 | 1 | 0.4 | 0.4 | 0.109167 | 65.9775 | |
2,743 | swe_bench_pro::test::57 | swe_bench_pro | test | 57 | instance_ansible__ansible-40ade1f84b8bb10a63576b0ac320c13f57c87d34-v6382ea168a93d80a64aab1fbd8c4f02dc5ada5bf | ansible/ansible | ansible/ansible | python | 9ab63986ad528a6ad5bf4c59fe104d5106d6ef9b | # Title
Mount information cannot be gathered from most of a host's mount sources
## Description
A POSIX host records its mounts in more than one place, and the places disagree. Some mounts appear only in static configuration, some only in the live mount table, and on platforms that keep neither in a file the only acco... | ## Requirements
- Running the new `mount_facts` Ansible module must report the filesystem mounts of a POSIX host.
- The module must accept the parameters `sources` (list of str, default null), `mount_binary` (raw, default `"mount"`), `devices` (list of str, default null), `fstypes` (list of str, default null), `timeou... | diff --git a/changelogs/fragments/83508_mount_facts.yml b/changelogs/fragments/83508_mount_facts.yml
new file mode 100644
index 00000000000000..baa7e592b18fae
--- /dev/null
+++ b/changelogs/fragments/83508_mount_facts.yml
@@ -0,0 +1,2 @@
+minor_changes:
+ - Add a new mount_facts module to support gathering information... | diff --git a/test/integration/targets/mount_facts/aliases b/test/integration/targets/mount_facts/aliases
new file mode 100644
index 00000000000000..c9b9570bac124b
--- /dev/null
+++ b/test/integration/targets/mount_facts/aliases
@@ -0,0 +1,5 @@
+shippable/posix/group1
+context/target
+needs/root
+skip/docker
+destructiv... | ["test/units/modules/test_mount_facts.py::test_invalid_mount_binary[ansible_test_missing_binary-Failed", "test/units/modules/test_mount_facts.py::test_gen_mounts_by_sources[sources2-file_data2-proc", "test/units/modules/test_mount_facts.py::test_list_mounts[gen_mnttab_entries-rpool/ROOT/solaris", "test/units/modules/te... | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_ansible__ansible-40ade1f84b8bb10a63576b0ac320c13f57c87d34-v6382ea168a93d80a64aab1fbd8c4f02dc5ada5bf | true | null | 2 | 653 | 48 | 1,060 | 0 | 0.95 | 1 | 0.4 | 0.45 | 0.676667 | 65.9175 | |
2,744 | swe_bench_verified::test::231 | swe_bench_verified | test | 231 | django__django-16527 | django/django | django/django | python | bd366ca2aeffa869b7dbc0b0aa01caea75e6dc31 | "show_save_as_new" in admin can add without this permission
Description
(last modified by Mariusz Felisiak)
At "django/contrib/admin/templatetags/admin_modify.py" file, line 102, I think you must put one more verification for this tag: "and has_add_permission", because "save_as_new" is a add modification.
I rewrite... | Thanks for the report. It was previously reported in #5650 and #3817, and #3817 was closed but only with a fix for "Save and add another" (see 825f0beda804e48e9197fcf3b0d909f9f548aa47). I rewrite this for my project: "show_save_as_new": not is_popup and has_add_permission # This line that I put!!! and has_change_permis... | diff --git a/django/contrib/admin/templatetags/admin_modify.py b/django/contrib/admin/templatetags/admin_modify.py
--- a/django/contrib/admin/templatetags/admin_modify.py
+++ b/django/contrib/admin/templatetags/admin_modify.py
@@ -100,7 +100,7 @@ def submit_row(context):
and context.get("show_delete", ... | diff --git a/tests/admin_views/test_templatetags.py b/tests/admin_views/test_templatetags.py
--- a/tests/admin_views/test_templatetags.py
+++ b/tests/admin_views/test_templatetags.py
@@ -3,6 +3,7 @@
from django.contrib.admin import ModelAdmin
from django.contrib.admin.templatetags.admin_list import date_hierarchy
fr... | ["test_submit_row_save_as_new_add_permission_required (admin_views.test_templatetags.AdminTemplateTagsTest.test_submit_row_save_as_new_add_permission_required)"] | ["test_choice_links (admin_views.test_templatetags.DateHierarchyTests.test_choice_links)", "test_choice_links_datetime (admin_views.test_templatetags.DateHierarchyTests.test_choice_links_datetime)", "admin_modify template tags follow the standard search pattern", "admin_list template tags follow the standard search pat... | null | true | 2023-02-05T22:05:00Z | 1 | 2 | 1 | 488 | 0 | 1 | 1 | 0.4 | 0.4 | 0.088 | 65.914 | |
2,745 | swe_bench_pro::test::92 | swe_bench_pro | test | 92 | instance_ansible__ansible-bec27fb4c0a40c5f8bbcf26a475704227d65ee73-v30a923fb5c164d6cd18280c02422f75e611e8fb2 | ansible/ansible | ansible/ansible | python | 6d34eb88d95c02013d781a29dfffaaf2901cd81f | ## Title:
Improve markup rendering and role-summary metadata in ansible-doc output
### Description:
ansible-doc renders documentation markup (such as `I()`, `B()`, `M()`, `C()`, `U()`, `L()`, and `R()`) into plain-terminal text. When color is disabled, these markup directives should be turned into stable ASCII delimit... | ## Requirements
- When color is disabled (for example `ANSIBLE_NOCOLOR=1` or `NO_COLOR=1`), documentation markup must be rendered into ASCII delimiters as follows: `B(text)` becomes `*text*`, `M(name)` becomes `[name]`, `C(text)` becomes `` `text' `` (a leading backtick and a trailing apostrophe), and `I(text)` becomes... | diff --git a/changelogs/fragments/prettydoc.yml b/changelogs/fragments/prettydoc.yml
new file mode 100644
index 00000000000000..d34b539e1c303a
--- /dev/null
+++ b/changelogs/fragments/prettydoc.yml
@@ -0,0 +1,2 @@
+minor_changes:
+ - ansible-doc output has been revamped to make it more visually pleasing when going to ... | diff --git a/test/integration/targets/ansible-doc/fakecollrole.output b/test/integration/targets/ansible-doc/fakecollrole.output
index 3ae9077f8849da..6df323ce7a3fe9 100644
--- a/test/integration/targets/ansible-doc/fakecollrole.output
+++ b/test/integration/targets/ansible-doc/fakecollrole.output
@@ -1,15 +1,13 @@
-> ... | ["test/units/cli/test_doc.py::test_ttyify[I(italic)-`italic`]", "test/units/cli/test_doc.py::test_rolemixin__build_summary_empty_argspec", "test/units/cli/test_doc.py::test_rolemixin__build_summary"] | ["test/units/cli/test_doc.py::test_ttyify[The", "test/units/cli/test_doc.py::test_ttyify[M(ansible.builtin.module)-[ansible.builtin.module]]", "test/units/cli/test_doc.py::test_ttyify[yolo", "test/units/cli/test_doc.py::test_rolemixin__build_doc", "test/units/cli/test_doc.py::test_ttyify[U(https://docs.ansible.com)-htt... | ghcr.io/scaleapi/swe-bench_pro-v2:instance_ansible__ansible-bec27fb4c0a40c5f8bbcf26a475704227d65ee73-v30a923fb5c164d6cd18280c02422f75e611e8fb2 | true | null | 7 | 467 | 3 | 1,032 | 0 | 0.95 | 1 | 0.55 | 0.27 | 0.672 | 65.9035 | |
2,746 | swe_bench_verified::test::32 | swe_bench_verified | test | 32 | django__django-11119 | django/django | django/django | python | d4df5e1b0b1c643fe0fc521add0236764ec8e92a | Engine.render_to_string() should honor the autoescape attribute
Description
In Engine.render_to_string, a Context is created without specifying the engine autoescape attribute. So if you create en engine with autoescape=False and then call its render_to_string() method, the result will always be autoescaped. It was pr... | I'd like to reserve this for an event I'll attend on Oct 4th. | diff --git a/django/template/engine.py b/django/template/engine.py
--- a/django/template/engine.py
+++ b/django/template/engine.py
@@ -160,7 +160,7 @@ def render_to_string(self, template_name, context=None):
if isinstance(context, Context):
return t.render(context)
else:
- retu... | diff --git a/tests/template_tests/test_engine.py b/tests/template_tests/test_engine.py
--- a/tests/template_tests/test_engine.py
+++ b/tests/template_tests/test_engine.py
@@ -21,6 +21,13 @@ def test_basic_context(self):
'obj:test\n',
)
+ def test_autoescape_off(self):
+ engine = Engine... | ["test_autoescape_off (template_tests.test_engine.RenderToStringTest)"] | ["test_cached_loader_priority (template_tests.test_engine.LoaderTests)", "test_loader_priority (template_tests.test_engine.LoaderTests)", "test_origin (template_tests.test_engine.LoaderTests)", "test_basic_context (template_tests.test_engine.RenderToStringTest)", "test_multiple_engines_configured (template_tests.test_e... | null | true | 2019-03-24T21:17:05Z | 1 | 2 | 1 | 367 | 0 | 1 | 1 | 0.4 | 0.4 | 0.067833 | 65.8535 | |
2,747 | swe_bench_pro::test::249 | swe_bench_pro | test | 249 | instance_flipt-io__flipt-f808b4dd6e36b9dc8b011eb26b196f4e2cc64c41 | flipt-io/flipt | flipt-io/flipt | go | d26eba77ddd985eb621c79642b55b607cf125941 | # Title: Database connection settings can only be expressed as a single connection URL
## Description
Flipt reads its database connection from one connection URL and nothing else, so an operator who wants to state the protocol, host, port, database name, user and password as individual settings has no way to do it, an... | ## Requirements
- When the configuration sets any of the discrete keys `db.protocol`, `db.host`, `db.port`, `db.user`, `db.password` or `db.name` and no `db.url`, loading must populate the database Protocol, Host, Port, User, Password and Name from those keys and must leave the connection URL empty.
- The project must... | diff --git a/cmd/flipt/flipt.go b/cmd/flipt/flipt.go
index 5ea6be7254..610c4b1e87 100644
--- a/cmd/flipt/flipt.go
+++ b/cmd/flipt/flipt.go
@@ -111,7 +111,7 @@ func main() {
Use: "migrate",
Short: "Run pending database migrations",
Run: func(cmd *cobra.Command, args []string) {
- migrator, err := db.New... | diff --git a/config/config_test.go b/config/config_test.go
index 27c7aafacc..6344fdf00e 100644
--- a/config/config_test.go
+++ b/config/config_test.go
@@ -9,6 +9,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
+ jaeger "github.com/uber/jaeger-client-go"
)
func TestSche... | ["TestLoad", "TestValidate", "TestOpen", "TestParse", "TestMigratorRun", "TestMigratorRun_NoChange"] | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_flipt-io__flipt-f808b4dd6e36b9dc8b011eb26b196f4e2cc64c41 | true | null | 8 | 203 | 6 | 900 | 0 | 0.95 | 1 | 0.4 | 0.45 | 0.65 | 65.8375 | |
2,748 | swe_bench_promax::test::146 | swe_bench_promax | test | 146 | angular__angular-c_3a6e45f | angular/angular | angular/angular | typescript | c74b168382ae5bc260331c0d3f6378e0eda0018f | The Angular compiler's HTML AST recently introduced `Component` and `Directive` as distinct node types, separate from the existing `Element` type. The `html.Visitor` interface was updated to include `visitComponent` and `visitDirective` methods, but numerous visitor implementations throughout the codebase were not upda... | diff --git a/packages/compiler/src/i18n/extractor_merger.ts b/packages/compiler/src/i18n/extractor_merger.ts
--- a/packages/compiler/src/i18n/extractor_merger.ts
+++ b/packages/compiler/src/i18n/extractor_merger.ts
@@ -130,7 +130,7 @@ class _Visitor implements html.Visitor {
this._translations = translations;
... | diff --git a/packages/compiler/test/ml_parser/util/util.ts b/packages/compiler/test/ml_parser/util/util.ts
--- a/packages/compiler/test/ml_parser/util/util.ts
+++ b/packages/compiler/test/ml_parser/util/util.ts
@@ -11,13 +11,13 @@ import {getHtmlTagDefinition} from '../../../src/ml_parser/html_tags';
class _Serializ... | null | null | key4127/refactor-dockerhub:angular__angular-c_3a6e45f | true | 1743791327 | 11 | 573 | null | 2,787 | 0 | 0.9 | 1 | 0.55 | 0.27 | 0.9645 | 65.831 | ||
2,749 | swe_gym::train::505 | swe_gym | train | 505 | python__mypy-16237 | python/mypy | python/mypy | python | 1c218ea2c674d7a06c8ed4c2f95855f1d3fd26da | Unpacking tuples of variable length
Given the following code:
```
from typing import Any, Dict, Tuple, Union
VarTuple = Union[Tuple[int, int], Tuple[int, int, int]]
def make_tuple():
# type: () -> VarTuple
return None
x = make_tuple()
a = b = c = 0
if len(x) == 3:
a, b, c = x
else:
a, b = x
c = ... | The error message is incorrect. However, mypy may not be able to type check this properly since it doesn't recognize the `len(x) == 3` check. So there seem to be two related issues:
- Union types aren't recognized as iterables when type checking assignment statements.
- `len(x) == n` checks can't be used to narrow down... | diff --git a/mypy/binder.py b/mypy/binder.py
--- a/mypy/binder.py
+++ b/mypy/binder.py
@@ -12,12 +12,17 @@
from mypy.subtypes import is_same_type, is_subtype
from mypy.types import (
AnyType,
+ Instance,
NoneType,
PartialType,
+ ProperType,
+ TupleType,
Type,
TypeOfAny,
TypeType... | diff --git a/mypy/test/testcheck.py b/mypy/test/testcheck.py
--- a/mypy/test/testcheck.py
+++ b/mypy/test/testcheck.py
@@ -126,7 +126,7 @@ def run_case_once(
options = parse_options(original_program_text, testcase, incremental_step)
options.use_builtins_fixtures = True
if not testcase.name.en... | ["mypy/test/testcheck.py::TypeCheckSuite::check-narrowing.test::testNarrowingWithAnyOps", "mypy/test/testcheck.py::TypeCheckSuite::check-expressions.test::testStrictEqualityWithDifferentMapTypes"] | ["mypy/test/testcheck.py::TypeCheckSuite::check-namedtuple.test::testNamedTupleAsConditionalStrictOptionalDisabled", "mypy/test/testcheck.py::TypeCheckSuite::check-expressions.test::testUnimportedHintAny", "mypy/test/testcheck.py::TypeCheckSuite::check-expressions.test::testUnimportedHintAnyLower"] | null | true | 2023-10-08T18:26:30Z | 9 | 558 | 2 | 651 | 0 | 0.85 | 1 | 0.55 | 0.27 | 0.6085 | 65.813 | |
2,750 | swe_bench_verified::test::215 | swe_bench_verified | test | 215 | django__django-16082 | django/django | django/django | python | bf47c719719d0e190a99fa2e7f959d5bbb7caf8a | Resolve output_field when combining numeric expressions with MOD operator.
Description
When writing a Django expression for a query that does MOD, if the types of the query are different (Decimal and Integer), it doesn't resolve the result to a Decimal type, like it does for other mathematical operators. | Duplicate of #33397.
I'm pretty sure the changes committed as part of #33397, while closely related, doesn't actually address this case. I think it's best to handle this as a separate ticket.
Hasn't this been addressed by https://github.com/django/django/pull/15271/files#diff-359ab56295cce36b9597e1d65185f695f271955617... | diff --git a/django/db/models/expressions.py b/django/db/models/expressions.py
--- a/django/db/models/expressions.py
+++ b/django/db/models/expressions.py
@@ -533,6 +533,7 @@ def __hash__(self):
Combinable.SUB,
Combinable.MUL,
Combinable.DIV,
+ Combinable.MOD,
... | diff --git a/tests/expressions/tests.py b/tests/expressions/tests.py
--- a/tests/expressions/tests.py
+++ b/tests/expressions/tests.py
@@ -2416,7 +2416,13 @@ def test_resolve_output_field_number(self):
(IntegerField, FloatField, FloatField),
(FloatField, IntegerField, FloatField),
]
-... | ["test_resolve_output_field_number (expressions.tests.CombinedExpressionTests)", "test_resolve_output_field_with_null (expressions.tests.CombinedExpressionTests)"] | ["test_deconstruct (expressions.tests.FTests)", "test_deepcopy (expressions.tests.FTests)", "test_equal (expressions.tests.FTests)", "test_hash (expressions.tests.FTests)", "test_not_equal_Value (expressions.tests.FTests)", "test_equal (expressions.tests.OrderByTests)", "test_hash (expressions.tests.OrderByTests)", "te... | null | true | 2022-09-21T18:49:40Z | 1 | 1 | 2 | 306 | 0 | 1 | 1 | 0.4 | 0.4 | 0.054333 | 65.813 | |
2,751 | swe_bench_pro::test::515 | swe_bench_pro | test | 515 | instance_protonmail__webclients-0d0267c4438cf378bda90bc85eed3a3615871ac4 | protonmail/webclients | protonmail/webclients | javascript | 782d01551257eb0a373db3b2d5c39612b87fa7e9 | # Standardize ShareLink property naming for password flags
## Feature Proposal
Standardize the property name used for password flags in ShareLink utilities from inconsistent casing to ensure uniform access patterns.
## Please describe what feature you would like to see implemented, and motivate why.
The current imp... | ## Requirements
- The function `hasCustomPassword` must determine whether the `CustomPassword` flag is set in the `flags` property of the input object and return `true` only in that case.
- The function `hasGeneratedPasswordIncluded` must determine whether the `GeneratedPasswordIncluded` flag is set in the `flags` pr... | diff --git a/applications/drive/src/app/components/modals/ShareLinkModal/ErrorState.tsx b/applications/drive/src/app/components/modals/ShareLinkModal/ErrorState.tsx
index 55a7c4a6e9d..375144a0379 100644
--- a/applications/drive/src/app/components/modals/ShareLinkModal/ErrorState.tsx
+++ b/applications/drive/src/app/com... | diff --git a/applications/drive/src/app/store/_shares/shareUrl.test.ts b/applications/drive/src/app/store/_shares/shareUrl.test.ts
index 666e32351b8..79415d1fb26 100644
--- a/applications/drive/src/app/store/_shares/shareUrl.test.ts
+++ b/applications/drive/src/app/store/_shares/shareUrl.test.ts
@@ -16,40 +16,40 @@ des... | ["src/app/store/_shares/shareUrl.test.ts | hasCustomPassword returns true is CustomPassword flag is present", "src/app/store/_shares/shareUrl.test.ts | hasGeneratedPasswordIncluded returns true is CustomPassword flag is present", "src/app/store/_shares/shareUrl.test.ts | splitGeneratedAndCustomPassword legacy custom pa... | ["src/app/store/_shares/shareUrl.test.ts | Missing data check returns false if flags are undefined", "src/app/store/_shares/shareUrl.test.ts | Missing data check returns false if SharedURLInfo is abscent", "src/app/store/_shares/shareUrl.test.ts | splitGeneratedAndCustomPassword no custom password returns only generate... | ghcr.io/scaleapi/swe-bench_pro-v2:instance_protonmail__webclients-0d0267c4438cf378bda90bc85eed3a3615871ac4 | true | null | 12 | 798 | 4 | 846 | 0 | 0.95 | 1 | 0.55 | 0.27 | 0.641 | 65.8105 | |
2,752 | swe_bench_verified::test::24 | swe_bench_verified | test | 24 | django__django-10880 | django/django | django/django | python | 838e432e3e5519c5383d12018e6c78f8ec7833c1 | Query syntax error with condition and distinct combination
Description
A Count annotation containing both a Case condition and a distinct=True param produces a query error on Django 2.2 (whatever the db backend). A space is missing at least (... COUNT(DISTINCTCASE WHEN ...). | Failing test example
Bisected to [bc05547cd8c1dd511c6b6a6c873a1bc63417b111] Fixed #28658 -- Added DISTINCT handling to the Aggregate class. | diff --git a/django/db/models/aggregates.py b/django/db/models/aggregates.py
--- a/django/db/models/aggregates.py
+++ b/django/db/models/aggregates.py
@@ -68,7 +68,7 @@ def get_group_by_cols(self):
return []
def as_sql(self, compiler, connection, **extra_context):
- extra_context['distinct'] = 'D... | diff --git a/tests/aggregation/tests.py b/tests/aggregation/tests.py
--- a/tests/aggregation/tests.py
+++ b/tests/aggregation/tests.py
@@ -8,6 +8,7 @@
Avg, Count, DecimalField, DurationField, F, FloatField, Func, IntegerField,
Max, Min, Sum, Value,
)
+from django.db.models.expressions import Case, When
from... | ["test_count_distinct_expression (aggregation.tests.AggregateTestCase)"] | ["test_add_implementation (aggregation.tests.AggregateTestCase)", "test_aggregate_alias (aggregation.tests.AggregateTestCase)", "test_aggregate_annotation (aggregation.tests.AggregateTestCase)", "test_aggregate_in_order_by (aggregation.tests.AggregateTestCase)", "test_aggregate_multi_join (aggregation.tests.AggregateTe... | null | true | 2019-01-21T00:22:36Z | 1 | 2 | 1 | 276 | 0 | 1 | 1 | 0.4 | 0.4 | 0.052667 | 65.808 | |
2,753 | swe_bench_pro::test::475 | swe_bench_pro | test | 475 | instance_navidrome__navidrome-5001518260732e36d9a42fb8d4c054b28afab310 | navidrome/navidrome | navidrome/navidrome | go | 265f33ed9da106cd2c926a243d564ad93c04df0e | # Title
Inefficient and unstructured storage of user-specific properties
## Description
User-specific values, such as a user's Last.fm session key, live in the global `properties` table under keys that callers build by hand from a user id, for example `"LastFMSessionKey_some-user-id"`. The store has no notion of a use... | ## Requirements
- A new public interface `model.UserPropsRepository` must be defined to provide user-scoped property operations, with methods `Put(key string, value string) error`, `Get(key string) (string, error)`, `Delete(key string) error`, and `DefaultGet(key string, defaultValue string) (string, error)`. The repos... | diff --git a/core/agents/lastfm/agent.go b/core/agents/lastfm/agent.go
index 0e658219bd0..783f0e68689 100644
--- a/core/agents/lastfm/agent.go
+++ b/core/agents/lastfm/agent.go
@@ -159,7 +159,7 @@ func (l *lastfmAgent) callArtistGetTopTracks(ctx context.Context, artistName, mb
}
func (l *lastfmAgent) NowPlaying(ctx... | diff --git a/core/agents/lastfm/agent_test.go b/core/agents/lastfm/agent_test.go
index efb86c90325..3b0d3b62f19 100644
--- a/core/agents/lastfm/agent_test.go
+++ b/core/agents/lastfm/agent_test.go
@@ -233,7 +233,7 @@ var _ = Describe("lastfmAgent", func() {
var track *model.MediaFile
BeforeEach(func() {
ctx =... | ["TestCore", "TestAgents", "TestLastFM", "TestPersistence"] | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_navidrome__navidrome-5001518260732e36d9a42fb8d4c054b28afab310 | true | null | 9 | 224 | 4 | 837 | 0 | 0.95 | 1 | 0.4 | 0.45 | 0.6395 | 65.806 | |
2,754 | swe_bench_pro::test::132 | swe_bench_pro | test | 132 | instance_element-hq__element-web-4fec436883b601a3cac2d4a58067e597f737b817-vnan | element-hq/element-web | element-hq/element-web | javascript | b8bb8f163a89cb6f2af0ac1cfc97e89deb938368 | # Title Rename Device Sessions
## Description
Users can have many active sessions listed under Settings > Security & Privacy, but session names are often generic, such as a browser and operating system label, or only the device ID. This makes it difficult to identify which session belongs to which device and to manage... | ## Requirements
- Session details must allow renaming both the current session and other sessions from the device details view.
- The heading must display `display_name` when present, and must fall back to `device_id` when `display_name` is undefined.
- The rename flow must provide a clear Rename action, a text input... | diff --git a/res/css/_components.pcss b/res/css/_components.pcss
index b6b98aee3e8..e4b9c999f01 100644
--- a/res/css/_components.pcss
+++ b/res/css/_components.pcss
@@ -28,6 +28,7 @@
@import "./components/views/location/_ZoomButtons.pcss";
@import "./components/views/messages/_MBeaconBody.pcss";
@import "./component... | diff --git a/test/components/views/settings/devices/CurrentDeviceSection-test.tsx b/test/components/views/settings/devices/CurrentDeviceSection-test.tsx
index a63d96fa07..22824fb1e7 100644
--- a/test/components/views/settings/devices/CurrentDeviceSection-test.tsx
+++ b/test/components/views/settings/devices/CurrentDevi... | ["test/components/views/settings/devices/DeviceDetailHeading-test.tsx | <DeviceDetailHeading /> | renders device name", "test/components/views/settings/devices/DeviceDetailHeading-test.tsx | <DeviceDetailHeading /> | renders device id as fallback when device has no display name", "test/components/views/settings/devices... | ["test/settings/controllers/ThemeController-test.ts | ThemeController | returns null when calculatedValue is falsy", "test/settings/controllers/ThemeController-test.ts | ThemeController | returns light when login flag is set", "test/settings/controllers/ThemeController-test.ts | ThemeController | returns default theme ... | ghcr.io/scaleapi/swe-bench_pro-v2:instance_element-hq__element-web-4fec436883b601a3cac2d4a58067e597f737b817-vnan | true | null | 10 | 277 | 13 | 833 | 0 | 0.95 | 1 | 0.4 | 0.45 | 0.638833 | 65.804 | |
2,755 | swe_bench_verified::test::237 | swe_bench_verified | test | 237 | django__django-16642 | django/django | django/django | python | fbe850106b2e4b85f838219cb9e1df95fba6c164 | Improper guessing of Mime Type for "br" and "Z" file types
Description
Below FileResponse will set the content type as text/html, even if the last file extension is "Z' or "br".
FileResponse(open('test.html.Z', 'rb'))
FileResponse(open('test.html.br', 'rb')) | Thanks for the report! | diff --git a/django/http/response.py b/django/http/response.py
--- a/django/http/response.py
+++ b/django/http/response.py
@@ -609,7 +609,9 @@ def set_headers(self, filelike):
# Encoding isn't set to prevent browsers from automatically
# uncompressing files.
content_ty... | diff --git a/tests/responses/test_fileresponse.py b/tests/responses/test_fileresponse.py
--- a/tests/responses/test_fileresponse.py
+++ b/tests/responses/test_fileresponse.py
@@ -253,8 +253,10 @@ def test_compressed_response(self):
"""
test_tuples = (
(".tar.gz", "application/gzip"),
+ ... | ["If compressed responses are served with the uncompressed Content-Type"] | ["Headers are set correctly with a buffer when an absolute filename is", "test_content_disposition_buffer (responses.test_fileresponse.FileResponseTests.test_content_disposition_buffer)", "test_content_disposition_buffer_attachment (responses.test_fileresponse.FileResponseTests.test_content_disposition_buffer_attachmen... | null | true | 2023-03-11T07:38:47Z | 1 | 2 | 1 | 259 | 0 | 1 | 1 | 0.4 | 0.4 | 0.049833 | 65.7995 | |
2,756 | swe_bench_pro::test::466 | swe_bench_pro | test | 466 | instance_navidrome__navidrome-28389fb05e1523564dfc61fa43ed8eb8a10f938c | navidrome/navidrome | navidrome/navidrome | go | 5d8318f7b362c5b044f892f775d264a5d40e4e24 | ## Title: Navidrome export playlist to M3U from command line option
## Problem Description
Navidrome currently lacks the foundational playlist handling capabilities needed to support command-line export functionality. Specifically, there is no way to validate playlist files by extension or generate M3U8 format output ... | ## Requirements
- Playlist file validation determines whether a file path represents a valid playlist based on standard playlist file extensions.
- The system recognizes M3U (.m3u) and M3U8 (.m3u8) file extensions as valid playlists, and rejects paths whose name does not carry a recognized playlist extension.
- Playl... | diff --git a/cmd/pls.go b/cmd/pls.go
new file mode 100644
index 00000000000..28fdf75323e
--- /dev/null
+++ b/cmd/pls.go
@@ -0,0 +1,71 @@
+package cmd
+
+import (
+ "context"
+ "errors"
+ "os"
+
+ "github.com/Masterminds/squirrel"
+ "github.com/navidrome/navidrome/core/auth"
+ "github.com/navidrome/navidrome/db"
+ "gith... | diff --git a/core/playlists_test.go b/core/playlists_test.go
index 56486961c87..0c828e6a788 100644
--- a/core/playlists_test.go
+++ b/core/playlists_test.go
@@ -2,7 +2,6 @@ package core
import (
"context"
- "path/filepath"
"github.com/navidrome/navidrome/model"
"github.com/navidrome/navidrome/tests"
@@ -10,2... | ["TestModel"] | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_navidrome__navidrome-28389fb05e1523564dfc61fa43ed8eb8a10f938c | true | null | 10 | 180 | 1 | 801 | 0 | 0.95 | 1 | 0.4 | 0.45 | 0.6335 | 65.788 | |
2,757 | swe_bench_pro::test::269 | swe_bench_pro | test | 269 | instance_future-architect__vuls-6eff6a9329a65cc412e79b8f82444dfa3d0f0b5a | future-architect/vuls | future-architect/vuls | go | 69d32d45116aefd871327b9254977015a57995b8 | # Title
No canonical OS End-of-Life (EOL) lookup, and major version parsing is duplicated across packages.
## Description
There is no way to ask, for a given operating system family and release, whether that release is still supported. Nothing records when the standard support and the extended support of a release end... | ## Requirements
- When `GetEOL` in package `config` is called with an OS family and a release that have a known mapping, it must return that release's EOL information together with `true`.
- When `GetEOL` is called with a family and release that have no known mapping, it must return a zero `EOL` value together with `f... | diff --git a/config/config.go b/config/config.go
index d2cd738f75..96d2ae8989 100644
--- a/config/config.go
+++ b/config/config.go
@@ -24,61 +24,6 @@ var Revision string
// Conf has Configuration
var Conf Config
-const (
- // RedHat is
- RedHat = "redhat"
-
- // Debian is
- Debian = "debian"
-
- // Ubuntu is
- Ubun... | diff --git a/config/os_test.go b/config/os_test.go
new file mode 100644
index 0000000..beb9d1a
--- /dev/null
+++ b/config/os_test.go
@@ -0,0 +1,326 @@
+package config
+
+import (
+ "testing"
+ "time"
+)
+
+func TestEOL_IsStandardSupportEnded(t *testing.T) {
+ type fields struct {
+ family string
+ release string
+ }... | ["TestEOL_IsStandardSupportEnded", "TestEOL_IsStandardSupportEnded/amazon_linux_1_supported", "TestEOL_IsStandardSupportEnded/amazon_linux_1_eol_on_2023-6-30", "TestEOL_IsStandardSupportEnded/amazon_linux_2_supported", "TestEOL_IsStandardSupportEnded/RHEL7_supported", "TestEOL_IsStandardSupportEnded/RHEL8_supported", "... | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_future-architect__vuls-6eff6a9329a65cc412e79b8f82444dfa3d0f0b5a | true | null | 8 | 378 | 37 | 759 | 0 | 0.95 | 1 | 0.4 | 0.45 | 0.6265 | 65.767 | |
2,758 | swe_gym::train::2368 | swe_gym | train | 2,368 | modin-project__modin-6873 | modin-project/modin | modin-project/modin | python | 097ea527c8e3f099e1f252b067a1d5eb055ad0b5 | Reading in multiple JSON files using glob (wildcard) syntax
There was a similar feature request (https://github.com/modin-project/modin/pull/2662) that solved this problem for CSV files. For my use case I am trying to read hundreds or thousands of jsonlines files spit out by a Spark ETL process. In some cases we could ... | This issue has been mentioned on **Modin Discuss**. There might be relevant details there:
https://discuss.modin.org/t/read-multiple-csv-files/157/8
Thanks @EvanZ for the request!
cc @anmyachev. I don't think it would be too complicated or too much of a deviation from the CSV (or maybe even pickle) versions.
@devi... | diff --git a/modin/core/execution/dask/implementations/pandas_on_dask/io/io.py b/modin/core/execution/dask/implementations/pandas_on_dask/io/io.py
--- a/modin/core/execution/dask/implementations/pandas_on_dask/io/io.py
+++ b/modin/core/execution/dask/implementations/pandas_on_dask/io/io.py
@@ -49,6 +49,7 @@
from modin... | diff --git a/modin/experimental/pandas/test/test_io_exp.py b/modin/experimental/pandas/test/test_io_exp.py
--- a/modin/experimental/pandas/test/test_io_exp.py
+++ b/modin/experimental/pandas/test/test_io_exp.py
@@ -298,6 +298,30 @@ def test_parquet_glob(tmp_path, filename):
df_equals(read_df, df)
+@pytest.mark... | ["modin/experimental/pandas/test/test_io_exp.py::test_json_glob[test_json_glob.json]", "modin/experimental/pandas/test/test_io_exp.py::test_json_glob[test_json_glob*.json]"] | ["modin/experimental/pandas/test/test_io_exp.py::TestCsvGlob::test_read_csv_empty_frame", "modin/experimental/pandas/test/test_io_exp.py::TestCsvGlob::test_read_single_csv_with_parse_dates[nonexistent_string_column]", "modin/experimental/pandas/test/test_io_exp.py::test_distributed_pickling[test_to_pickle*.pkl-gzip-Tru... | null | true | 2024-01-22T13:08:27Z | 12 | 310 | 2 | 529 | 0 | 0.85 | 1 | 0.4 | 0.45 | 0.588167 | 65.752 | |
2,759 | swe_bench_pro::test::237 | swe_bench_pro | test | 237 | instance_flipt-io__flipt-e2bd19dafa7166c96b082fb2a59eb54b4be0d778 | flipt-io/flipt | flipt-io/flipt | go | 0eaf98f050d86247bfe9bd7e41178865cb585060 | # Title
Flag lookups are cached only in the gRPC interceptor and clients cannot opt out of cached values
## Description
Flipt caches flag and evaluation responses inside a single gRPC unary interceptor. Because a flag is cached only at the request layer, the flag reads the storage layer performs while evaluating a fla... | ## Requirements
- The shared cache package that defines the `Cacher` interface must provide `WithDoNotStore`, which returns a context carrying a do-not-store mark, and `IsDoNotStore`, which reports `true` for a context carrying the mark and `false` for any other context.
- The gRPC middleware package must define the u... | diff --git a/build/hack/loadtest.go b/build/hack/loadtest.go
index cc504cbc8e..b2c02ccfaf 100644
--- a/build/hack/loadtest.go
+++ b/build/hack/loadtest.go
@@ -47,7 +47,13 @@ func LoadTest(ctx context.Context, client *dagger.Client, base, flipt *dagger.Co
var cacheEnabled bool
if cacheEnabledEnv := os.Getenv("FLIPT_... | diff --git a/build/testing/integration.go b/build/testing/integration.go
index dc4fedfa..54bb13bd 100644
--- a/build/testing/integration.go
+++ b/build/testing/integration.go
@@ -161,7 +161,8 @@ func api(ctx context.Context, _ *dagger.Client, base, flipt *dagger.Container, c
func cache(ctx context.Context, _ *dagger.C... | ["TestCacheControlUnaryInterceptor", "TestCacheControlHeaderKey", "TestEvaluationCacheUnaryInterceptor_Evaluate", "TestEvaluationCacheUnaryInterceptor_Evaluation_Boolean", "TestEvaluationCacheUnaryInterceptor_Evaluation_Variant", "TestGetFlagCached", "TestGetJSONHandleGetError", "TestGetJSONHandleUnmarshalError", "Test... | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_flipt-io__flipt-e2bd19dafa7166c96b082fb2a59eb54b4be0d778 | true | null | 7 | 212 | 10 | 728 | 0 | 0.95 | 1 | 0.4 | 0.45 | 0.621333 | 65.7515 | |
2,760 | swe_bench_pro::test::346 | swe_bench_pro | test | 346 | instance_gravitational__teleport-8302d467d160f869b77184e262adbe2fbc95d9ba-vce94f93ad1030e3136852817f2423c1b3ac37bc4 | gravitational/teleport | gravitational/teleport | go | c2ace99b1c8bc141c43730352107f6848cd4ca4c | ## Title: Enhanced Touch ID Availability and Diagnostics
### Description
Touch ID availability in `tsh` is determined solely by compile-time support, which produces false positives when the binary lacks a valid signature, lacks entitlements, or runs on a machine without Touch ID or Secure Enclave support. As a result... | ## Requirements
- A `DiagResult` type must exist that holds Touch ID diagnostic information, with the named fields `HasCompileSupport`, `HasSignature`, `HasEntitlements`, `PassedLAPolicyTest`, `PassedSecureEnclaveTest`, and `IsAvailable`.
- A package-level `Diag()` function must exist that returns a `*DiagResult` toge... | diff --git a/build.assets/macos/tsh/tsh.app/Contents/Info.plist b/build.assets/macos/tsh/tsh.app/Contents/Info.plist
index 604fa2d15b0cf..fe8a0326dfa79 100644
--- a/build.assets/macos/tsh/tsh.app/Contents/Info.plist
+++ b/build.assets/macos/tsh/tsh.app/Contents/Info.plist
@@ -41,7 +41,7 @@
<key>DTXcodeBuild</key>
<... | diff --git a/lib/auth/touchid/api_test.go b/lib/auth/touchid/api_test.go
index d25b52424a328..c7cf243439ea4 100644
--- a/lib/auth/touchid/api_test.go
+++ b/lib/auth/touchid/api_test.go
@@ -127,6 +127,17 @@ type fakeNative struct {
creds []credentialHandle
}
+func (f *fakeNative) Diag() (*touchid.DiagResult, error)... | ["TestRegisterAndLogin"] | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_gravitational__teleport-8302d467d160f869b77184e262adbe2fbc95d9ba-vce94f93ad1030e3136852817f2423c1b3ac37bc4 | true | null | 10 | 279 | 1 | 714 | 0 | 0.95 | 1 | 0.4 | 0.45 | 0.619 | 65.7445 | |
2,761 | swe_bench_pro::test::429 | swe_bench_pro | test | 429 | instance_internetarchive__openlibrary-92db3454aeaa02f89b4cdbc3103f7e95c9759f92-v2c55207218fb8a0138425cbf7d9675272e240b90 | internetarchive/openlibrary | internetarchive/openlibrary | python | 4d2c696773853ee7fb4ec0ceb773351a52257447 | ## Title
Keep Solr boolean clause limit aligned with reading-log filter cap
## Problem Description
The reading-log search can generate very large boolean queries. The application enforces a maximum cap defined in `openlibrary/core/bookshelves.py`, while Solr enforces its own maximum via the `-Dsolr.max.booleanClause... | ## Requirements
- The Solr service in `docker-compose.yml` must include the environment variable `SOLR_OPTS` containing the JVM flag `-Dsolr.max.booleanClauses=<N>`, where `<N>` is an integer greater than or equal to the application cap `FILTER_BOOK_LIMIT`.
- The `SOLR_OPTS` value may span multiple lines in YAML, but ... | diff --git a/docker-compose.yml b/docker-compose.yml
index d988987eba5..c997f9e49ec 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -25,7 +25,14 @@ services:
# Hard commit less frequently to avoid performance impact, but avoid
# having very large transaction log
# https://solr.apache.or... | diff --git a/tests/test_docker_compose.py b/tests/test_docker_compose.py
index cf8232401b3..8905ff8bd0a 100644
--- a/tests/test_docker_compose.py
+++ b/tests/test_docker_compose.py
@@ -33,3 +33,24 @@ def test_all_prod_services_need_profile(self):
prod_dc: dict = yaml.safe_load(f)
for serv, opts in... | ["tests/test_docker_compose.py::TestDockerCompose::test_shared_constants"] | ["tests/test_docker_compose.py::TestDockerCompose::test_all_root_services_must_be_in_prod", "tests/test_docker_compose.py::TestDockerCompose::test_all_prod_services_need_profile"] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_internetarchive__openlibrary-92db3454aeaa02f89b4cdbc3103f7e95c9759f92-v2c55207218fb8a0138425cbf7d9675272e240b90 | true | null | 11 | 703 | 1 | 1,042 | 0.003704 | 0.95 | 1 | 0.55 | 0.27 | 0.673667 | 65.742866 | |
2,762 | swe_bench_pro::test::100 | swe_bench_pro | test | 100 | instance_ansible__ansible-d33bedc48fdd933b5abd65a77c081876298e2f07-v0f01c69f1e2528b935359cfe578530722bca2c59 | ansible/ansible | ansible/ansible | python | dcc5dac1846be3bf6e948a2950b93477b9193076 | # Title Config value type coercion loses tags and handles several input types inconsistently
## Description
Ansible configuration values passed through `ensure_type()` can lose their data tags during type conversion and behave inconsistently for several supported value types. Tagged values may return untagged converte... | ## Requirements
- `ensure_type()` must continue to return `None` unchanged when the input value is `None`, regardless of the requested value type.
- When the requested type is `bool` or `boolean`, `ensure_type()` must use Ansible's standard non-strict boolean conversion rules, including returning `False` instead of ra... | diff --git a/changelogs/fragments/ensure_type.yml b/changelogs/fragments/ensure_type.yml
new file mode 100644
index 00000000000000..472aeda7068afa
--- /dev/null
+++ b/changelogs/fragments/ensure_type.yml
@@ -0,0 +1,15 @@
+bugfixes:
+ - config - ``ensure_type`` correctly propagates trust and other tags on returned valu... | diff --git a/test/units/config/test_manager.py b/test/units/config/test_manager.py
index 24533192cb5174..fb2d238ad81a1b 100644
--- a/test/units/config/test_manager.py
+++ b/test/units/config/test_manager.py
@@ -4,72 +4,198 @@
from __future__ import annotations
+import collections.abc as c
import os
import os.pat... | ["test/units/config/test_manager.py::test_ensure_type[value1-bool-False]", "test/units/config/test_manager.py::test_ensure_type[value33-list-expected_value33]", "test/units/config/test_manager.py::test_ensure_type[value56-dict-expected_value56]", "test/units/config/test_manager.py::test_ensure_type_tag_propagation[a,b,... | ["test/units/config/test_manager.py::test_ensure_type[None-str-None]", "test/units/config/test_manager.py::test_ensure_type[y-bool-True]", "test/units/config/test_manager.py::test_ensure_type[yes-bool-True]", "test/units/config/test_manager.py::test_ensure_type[on-bool-True]", "test/units/config/test_manager.py::test_e... | ghcr.io/scaleapi/swe-bench_pro-v2:instance_ansible__ansible-d33bedc48fdd933b5abd65a77c081876298e2f07-v0f01c69f1e2528b935359cfe578530722bca2c59 | true | null | 7 | 285 | 26 | 703 | 0 | 0.95 | 1 | 0.4 | 0.45 | 0.617167 | 65.739 | |
2,763 | swe_bench_pro::test::231 | swe_bench_pro | test | 231 | instance_flipt-io__flipt-cd2f3b0a9d4d8b8a6d3d56afab65851ecdc408e8 | flipt-io/flipt | flipt-io/flipt | go | a91a0258e72c0f0aac3d33ae5c226a85c80ecdf8 | # Title: Support list operators `isoneof` and `isnotoneof` for evaluating constraints on strings and numbers
## Description
The Flipt constraint evaluator only compares a context value against a single constraint value, using equality, prefix, suffix or presence operators. There is no operator that checks whether a va... | ## Requirements
- When a string constraint uses the `isoneof` operator, the evaluation must report a match if the context value is equal to one of the strings in the constraint's JSON array value, and no match otherwise.
- When a string constraint uses the `isnotoneof` operator, the evaluation must report a match if t... | diff --git a/internal/server/evaluation/legacy_evaluator.go b/internal/server/evaluation/legacy_evaluator.go
index 53a66c9fe4..225a3e1e91 100644
--- a/internal/server/evaluation/legacy_evaluator.go
+++ b/internal/server/evaluation/legacy_evaluator.go
@@ -2,8 +2,10 @@ package evaluation
import (
"context"
+ "encodi... | diff --git a/internal/server/evaluation/legacy_evaluator_test.go b/internal/server/evaluation/legacy_evaluator_test.go
index 0478304089..bf73bf755d 100644
--- a/internal/server/evaluation/legacy_evaluator_test.go
+++ b/internal/server/evaluation/legacy_evaluator_test.go
@@ -140,6 +140,62 @@ func Test_matchesString(t *t... | ["Test_matchesString", "Test_matchesNumber", "FuzzValidateArrayValue", "TestValidate_CreateConstraintRequest", "TestValidate_UpdateConstraintRequest"] | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_flipt-io__flipt-cd2f3b0a9d4d8b8a6d3d56afab65851ecdc408e8 | true | null | 7 | 160 | 5 | 701 | 0 | 0.95 | 1 | 0.4 | 0.45 | 0.616833 | 65.738 | |
2,764 | swe_bench_pro::test::77 | swe_bench_pro | test | 77 | instance_ansible__ansible-935528e22e5283ee3f63a8772830d3d01f55ed8c-vba6da65a0f3baefda7a058ebbd0a8dcafb8512f5 | ansible/ansible | ansible/ansible | python | 43300e22798e4c9bd8ec2e321d28c5e8d2018aeb | # Title SSH Connection Options Are Not Consistently Applied
## Description
The SSH connection plugin does not consistently honor the effective option values supplied through Ansible's supported configuration sources. As a result, file transfer selection, retry behavior, and persistent-connection reset may ignore setti... | ## Requirements
- The retry count, host key checking flag, `ssh_transfer_method`, and `scp_if_ssh` options must be read from the connection plugin's effective option store (so that values injected through the option store are honored) rather than from process-global configuration constants.
- When `ssh_transfer_method... | diff --git a/changelogs/fragments/ssh_connection_fixes.yml b/changelogs/fragments/ssh_connection_fixes.yml
new file mode 100644
index 00000000000000..f6b62d60b01fff
--- /dev/null
+++ b/changelogs/fragments/ssh_connection_fixes.yml
@@ -0,0 +1,3 @@
+bugfixes:
+ - connection/ssh, ensure parameters come from correct sourc... | diff --git a/test/integration/targets/connection_windows_ssh/runme.sh b/test/integration/targets/connection_windows_ssh/runme.sh
index 488bb7c5c6d1f8..766193f8eb5cb4 100755
--- a/test/integration/targets/connection_windows_ssh/runme.sh
+++ b/test/integration/targets/connection_windows_ssh/runme.sh
@@ -25,7 +25,7 @@ ans... | ["test/units/plugins/connection/test_ssh.py::TestConnectionBaseClass::test_plugins_connection_ssh_put_file", "test/units/plugins/connection/test_ssh.py::TestConnectionBaseClass::test_plugins_connection_ssh_fetch_file", "test/units/plugins/connection/test_ssh.py::TestSSHConnectionRetries::test_incorrect_password", "test... | ["test/units/plugins/connection/test_ssh.py::TestConnectionBaseClass::test_plugins_connection_ssh_basic", "test/units/plugins/connection/test_ssh.py::TestConnectionBaseClass::test_plugins_connection_ssh_module", "test/units/plugins/connection/test_ssh.py::TestConnectionBaseClass::test_plugins_connection_ssh__build_comm... | ghcr.io/scaleapi/swe-bench_pro-v2:instance_ansible__ansible-935528e22e5283ee3f63a8772830d3d01f55ed8c-vba6da65a0f3baefda7a058ebbd0a8dcafb8512f5 | true | null | 8 | 259 | 8 | 693 | 0 | 0.95 | 1 | 0.4 | 0.45 | 0.6155 | 65.734 | |
2,765 | swe_bench_pro::test::338 | swe_bench_pro | test | 338 | instance_gravitational__teleport-65438e6e44b6ce51458d09b7bb028a2797cfb0ea-vce94f93ad1030e3136852817f2423c1b3ac37bc4 | gravitational/teleport | gravitational/teleport | go | 39cd6e2e750c7700de1e158af9cabc478b2a5110 | # Title: Touch ID credentials that fail to register remain on the device and cannot be used
## Description
When a Touch ID credential is created on the device but the registration is not completed on the server, the credential remains stored locally without a valid server-side counterpart. These credentials appear in ... | ## Requirements
- When `touchid.Register` creates a credential successfully, it must return a `Registration` for that credential together with a nil error, instead of returning the bare credential creation response.
- A `Registration` must expose the credential creation response of its newly created credential in an e... | diff --git a/lib/auth/touchid/api.go b/lib/auth/touchid/api.go
index 707199eb0e965..05db3c45ac062 100644
--- a/lib/auth/touchid/api.go
+++ b/lib/auth/touchid/api.go
@@ -25,7 +25,10 @@ import (
"errors"
"fmt"
"math/big"
+ "sort"
"sync"
+ "sync/atomic"
+ "time"
"github.com/duo-labs/webauthn/protocol"
"githu... | diff --git a/lib/auth/touchid/api_test.go b/lib/auth/touchid/api_test.go
index c7cf243439ea4..a1035a3ab0c62 100644
--- a/lib/auth/touchid/api_test.go
+++ b/lib/auth/touchid/api_test.go
@@ -78,12 +78,12 @@ func TestRegisterAndLogin(t *testing.T) {
cc, sessionData, err := web.BeginRegistration(webUser)
require.No... | ["TestRegisterAndLogin", "TestRegister_rollback"] | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_gravitational__teleport-65438e6e44b6ce51458d09b7bb028a2797cfb0ea-vce94f93ad1030e3136852817f2423c1b3ac37bc4 | true | null | 8 | 171 | 2 | 692 | 0 | 0.95 | 1 | 0.4 | 0.45 | 0.615333 | 65.7335 | |
2,766 | swe_bench_pro::test::94 | swe_bench_pro | test | 94 | instance_ansible__ansible-c1f2df47538b884a43320f53e787197793b105e8-v906c969b551b346ef54a2c0b41e04f632b7b73c2 | ansible/ansible | ansible/ansible | python | 57596edcca0ef3bc4d0d90a55d33ac433b407abb | ## Title: BIG-IP message routing routes cannot be managed from Ansible
### Description
Ansible has no module for managing message routing routes on F5 BIG-IP devices: there is no `network.f5.bigip_message_routing_route`. A playbook cannot express a generic message routing route as desired state, so creating a route, c... | ## Requirements
- A new Ansible module named `bigip_message_routing_route` must exist and be available for use.
- The module must accept the parameters `name` (string, required), `description` (string, optional), `src_address` (string, optional), `dst_address` (string, optional), `peer_selection_mode` (string, choices... | diff --git a/lib/ansible/modules/network/f5/bigip_message_routing_route.py b/lib/ansible/modules/network/f5/bigip_message_routing_route.py
new file mode 100644
index 00000000000000..0037fe1de03809
--- /dev/null
+++ b/lib/ansible/modules/network/f5/bigip_message_routing_route.py
@@ -0,0 +1,553 @@
+#!/usr/bin/python
+# -... | diff --git a/test/units/modules/network/f5/fixtures/load_generic_route.json b/test/units/modules/network/f5/fixtures/load_generic_route.json
new file mode 100644
index 0000000000..f8299f0294
--- /dev/null
+++ b/test/units/modules/network/f5/fixtures/load_generic_route.json
@@ -0,0 +1,19 @@
+{
+ "kind": "tm:ltm:mes... | ["test/units/modules/network/f5/test_bigip_message_routing_route.py::TestParameters::test_api_parameters", "test/units/modules/network/f5/test_bigip_message_routing_route.py::TestParameters::test_module_parameters", "test/units/modules/network/f5/test_bigip_message_routing_route.py::TestManager::test_create_generic_rou... | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_ansible__ansible-c1f2df47538b884a43320f53e787197793b105e8-v906c969b551b346ef54a2c0b41e04f632b7b73c2 | true | null | 1 | 553 | 6 | 649 | 0 | 0.95 | 1 | 0.4 | 0.45 | 0.608167 | 65.712 | |
2,767 | swe_bench_pro::test::192 | swe_bench_pro | test | 192 | instance_flipt-io__flipt-524f277313606f8cd29b299617d6565c01642e15 | flipt-io/flipt | flipt-io/flipt | go | 190b3cdc8e354d1b4d1d2811cb8a29f62cab8488 | # Title: Support dual-format segment targeting in feature flag rules
## Description
The `segment` field in feature flag rule definitions currently only supports a single string key for segment targeting. This limits rule expressiveness when users need to target multiple segments with logical operators (e.g., AND/OR) w... | ## Requirements
- The rule configuration must support a unified `segment` field that accepts two formats: a plain string for a single segment key, or an object containing a list of keys and a logical operator.
- The system must correctly serialize the `segment` field to YAML in both formats: a string value when a sing... | diff --git a/build/internal/cmd/generate/main.go b/build/internal/cmd/generate/main.go
index 14b30fd8d0..782f17d16d 100644
--- a/build/internal/cmd/generate/main.go
+++ b/build/internal/cmd/generate/main.go
@@ -73,8 +73,10 @@ func main() {
for k := 0; k < *flagRuleCount; k++ {
rule := &ext.Rule{
- Rank: ... | diff --git a/internal/ext/exporter_test.go b/internal/ext/exporter_test.go
index ba89afe257..c2edc2e213 100644
--- a/internal/ext/exporter_test.go
+++ b/internal/ext/exporter_test.go
@@ -124,6 +124,12 @@ func TestExport(t *testing.T) {
},
},
},
+ {
+ Key: "segment2",
+ Name: "segme... | ["TestExport", "TestImport", "TestDBTestSuite"] | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_flipt-io__flipt-524f277313606f8cd29b299617d6565c01642e15 | true | null | 7 | 177 | 3 | 633 | 0 | 0.95 | 1 | 0.4 | 0.45 | 0.6055 | 65.704 | |
2,768 | swe_bench_pro::test::263 | swe_bench_pro | test | 263 | instance_future-architect__vuls-4c04acbd9ea5b073efe999e33381fa9f399d6f27 | future-architect/vuls | future-architect/vuls | go | 1c4f2315727ae4370177b9c1a540fc8b0c0a7c91 | # Tittle
Distinguish New, Changed, and Resolved Vulnerabilities in Diff Reports
## Description
When comparing current vulnerability scan results with previous results, diff reports do not clearly distinguish newly detected or changed vulnerabilities from vulnerabilities that have been resolved. This makes it difficult... | ## Requirements
- Diff reporting must support separately including newly detected or changed vulnerabilities, resolved vulnerabilities, or both.
- CVEs that are present only in the current scan result must be treated as newly detected and marked with `DiffStatus` set to `"+"`.
- CVEs that are present in both current ... | diff --git a/config/config.go b/config/config.go
index c3fd300cfe..771264e7dc 100644
--- a/config/config.go
+++ b/config/config.go
@@ -83,6 +83,8 @@ type Config struct {
FormatFullText bool `json:"formatFullText,omitempty"`
FormatCsvList bool `json:"formatCsvList,omitempty"`
GZIP bool `json:"g... | diff --git a/report/util_test.go b/report/util_test.go
index 7ba499e..c278a09 100644
--- a/report/util_test.go
+++ b/report/util_test.go
@@ -14,6 +14,7 @@ import (
func TestMain(m *testing.M) {
util.Log = util.NewCustomLogger(config.ServerInfo{})
+ pp.ColoringEnabled = false
code := m.Run()
os.Exit(code)
}
@@... | ["TestPlusMinusDiff", "TestPlusDiff", "TestMinusDiff"] | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_future-architect__vuls-4c04acbd9ea5b073efe999e33381fa9f399d6f27 | true | null | 10 | 209 | 3 | 613 | 0 | 0.95 | 1 | 0.4 | 0.45 | 0.602167 | 65.694 | |
2,769 | swe_bench_promax::test::35 | swe_bench_promax | test | 35 | radare2__radareorg-24256 | radareorg/radare2 | radareorg/radare2 | c | 3f70f95ad835f42eb62eee1952f27e196a8df14e | During the rendering of disassembly views and interactive graphs in radare2, certain visual components exhibit inconsistent behavior when operating across multiple console contexts. This occurs notably in panel-based interfaces, embedded tooling scenarios, or non-interactive scripting workflows where distinct console i... | diff --git a/libr/cons/canvas.c b/libr/cons/canvas.c
--- a/libr/cons/canvas.c
+++ b/libr/cons/canvas.c
@@ -221,15 +221,18 @@ R_API bool r_cons_canvas_gotoxy(RConsCanvas *c, int x, int y) {
return ret;
}
-R_API RConsCanvas *r_cons_canvas_new(int w, int h, int flags) {
+R_API RConsCanvas *r_cons_canvas_new(RCons *co... | diff --git a/test/unit/test_agraph.c b/test/unit/test_agraph.c
--- a/test/unit/test_agraph.c
+++ b/test/unit/test_agraph.c
@@ -33,7 +33,7 @@ bool test_graph_to_agraph(void) {
.get_title = _graph_node_info_get_title,
.get_body = _graph_node_info_get_body
};
- RAGraph *agraph = r_agraph_new_from_graph (graph, &cb... | null | null | key4127/refactor-dockerhub:radare2__radareorg-24256 | true | 1748976403 | 14 | 216 | null | 2,843 | 0 | 0.9 | 1 | 0.55 | 0.2625 | 0.973833 | 65.680875 | ||
2,770 | swe_bench_pro::test::442 | swe_bench_pro | test | 442 | instance_internetarchive__openlibrary-c506c1b0b678892af5cb22c1c1dbc35d96787a0a-v0f5aece3601a5b4419f7ccec1dbda2071be28ee4 | internetarchive/openlibrary | internetarchive/openlibrary | python | 2f590171b1d95cc124c44fb6ec647c85f1ca9581 | # Function-to-CLI adapter mishandles list inputs and filesystem paths
## Description
The `FnToCLI` adapter is intended to generate a command-line interface from a function signature, but it does not correctly handle parameters that are lists or that represent filesystem paths. As a result, functions expecting a colle... | ## Requirements
- `FnToCLI.parse_args` must accept an optional sequence of strings (`args: Sequence[str] | None`, defaulting to `None`), parse them into an argparse namespace, store that namespace on `self.args` so it can be used by a later call to `run`, and return it.
- `FnToCLI.run` must invoke the wrapped callable... | diff --git a/Makefile b/Makefile
index 61649b02d7e..350b65fa54f 100644
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,7 @@
BUILD=static/build
ACCESS_LOG_FORMAT='%(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s"'
COMPONENTS_DIR=openlibrary/components
+OSP_DUMP_LOCATION=/solr-updater-data/osp_totals.db
# Use python fro... | diff --git a/scripts/solr_builder/tests/test_fn_to_cli.py b/scripts/solr_builder/tests/test_fn_to_cli.py
index 13995235e47..0353c3389ba 100644
--- a/scripts/solr_builder/tests/test_fn_to_cli.py
+++ b/scripts/solr_builder/tests/test_fn_to_cli.py
@@ -1,4 +1,5 @@
from argparse import BooleanOptionalAction
+from pathlib i... | ["scripts/solr_builder/tests/test_fn_to_cli.py::TestFnToCLI::test_lists", "scripts/solr_builder/tests/test_fn_to_cli.py::TestFnToCLI::test_paths"] | ["scripts/solr_builder/tests/test_fn_to_cli.py::TestFnToCLI::test_full_flow", "scripts/solr_builder/tests/test_fn_to_cli.py::TestFnToCLI::test_parse_docs", "scripts/solr_builder/tests/test_fn_to_cli.py::TestFnToCLI::test_type_to_argparse", "scripts/solr_builder/tests/test_fn_to_cli.py::TestFnToCLI::test_is_optional"] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_internetarchive__openlibrary-c506c1b0b678892af5cb22c1c1dbc35d96787a0a-v0f5aece3601a5b4419f7ccec1dbda2071be28ee4 | true | null | 14 | 288 | 2 | 942 | 0 | 0.95 | 1 | 0.55 | 0.2625 | 0.657 | 65.680375 | |
2,771 | swe_bench_pro::test::472 | swe_bench_pro | test | 472 | instance_navidrome__navidrome-3982ba725883e71d4e3e618c61d5140eeb8d850a | navidrome/navidrome | navidrome/navidrome | go | 1bf94531fdb3599ccfbc5aca574152b8802bf5eb | ## Title: Architectural Complexity and Reduced Clarity Due to Separated Read/Write Database Connections
### Description
The database access layer uses a custom `DB` interface and related abstractions (`dbxBuilder`) to support separate read and write database connections. This requires consumers to call `ReadDB()` or `... | ## Requirements
- The database access layer must be simplified to use a single, unified `*sql.DB` connection for all operations; the `db.Db()` function must return a `*sql.DB` directly, and the custom `db.DB` interface abstracting a read/write split must be removed.
- `db.Backup(ctx context.Context)` must be a public p... | diff --git a/cmd/backup.go b/cmd/backup.go
index e5aebd3401c..c5d05fd12a8 100644
--- a/cmd/backup.go
+++ b/cmd/backup.go
@@ -92,9 +92,8 @@ func runBackup(ctx context.Context) {
return
}
- database := db.Db()
start := time.Now()
- path, err := database.Backup(ctx)
+ path, err := db.Backup(ctx)
if err != nil {... | diff --git a/db/backup_test.go b/db/backup_test.go
index 734fe497a36..1ceb4ec9e09 100644
--- a/db/backup_test.go
+++ b/db/backup_test.go
@@ -82,7 +82,7 @@ var _ = Describe("database backups", func() {
DescribeTable("prune", func(count, expected int) {
conf.Server.Backup.Count = count
- pruneCount, err := pru... | ["TestDB", "TestPersistence"] | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_navidrome__navidrome-3982ba725883e71d4e3e618c61d5140eeb8d850a | true | null | 7 | 174 | 2 | 584 | 0 | 0.95 | 1 | 0.4 | 0.45 | 0.597333 | 65.6795 | |
2,772 | swe_bench_pro::test::640 | swe_bench_pro | test | 640 | instance_tutao__tutanota-f373ac3808deefce8183dad8d16729839cc330c1-v2939aa9f4356f0dc9f523ee5ce19d09e08ab979b | tutao/tutanota | tutao/tutanota | typescript | a834bd49d148888778075a3a48d3b92d832c4eed | # Title: Non legacy mail details fail to decrypt during loading
## Description
Currently, some non legacy mail details cannot be decrypted when they are loaded, which prevents message bodies, reply to information, and attachments from being displayed correctly. In these cases, the application may report missing decryp... | ## Requirements
- The single entity loader `load` must accept an optional `providedOwnerEncSessionKey` parameter (a `Uint8Array`) positioned after `ownerKey`.
- When `providedOwnerEncSessionKey` is supplied to `load`, the loaded entity must carry that value as its `_ownerEncSessionKey` before decryption begins, replac... | diff --git a/doc/HACKING.md b/doc/HACKING.md
index 629315ba62e4..17abeb177228 100644
--- a/doc/HACKING.md
+++ b/doc/HACKING.md
@@ -104,7 +104,7 @@ Most of the server database changes are reflected in the `EntityUpdate`s we rece
which happened to the entity. Updates are grouped into `EntityEventBatch`es. These batches ... | diff --git a/packages/otest/lib/otest.ts b/packages/otest/lib/otest.ts
index 5b40f3050..2af7a5df0 100644
--- a/packages/otest/lib/otest.ts
+++ b/packages/otest/lib/otest.ts
@@ -183,6 +183,17 @@ class OTest {
* @param result
*/
printReport(result: RunResult) {
+ // Print a per-test result line for each test cas... | ["test/tests/entityrestcacheephemeral.js | loadMultiple should load necessary elements from the server, and get the rest from the cache", "test/tests/entityrestcacheoffline.js | loadMultiple should load necessary elements from the server, and get the rest from the cache", "test/tests/EntityRestClient/Load.js | applies ... | ["test/tests/cryptofacade.js | resolve session key: MailDetailsBlob", "test/tests/cryptofacade.js | resolve session key: MailDetailsBlob - session key not found"] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_tutao__tutanota-f373ac3808deefce8183dad8d16729839cc330c1-v2939aa9f4356f0dc9f523ee5ce19d09e08ab979b | true | null | 9 | 204 | 8 | 579 | 0 | 0.95 | 1 | 0.4 | 0.45 | 0.5965 | 65.677 | |
2,773 | swe_bench_pro::test::426 | swe_bench_pro | test | 426 | instance_internetarchive__openlibrary-8a9d9d323dfcf2a5b4f38d70b1108b030b20ebf3-v13642507b4fc1f8d234172bf8129942da2c2ca26 | internetarchive/openlibrary | internetarchive/openlibrary | python | 9db365285453fb388757aa65ae06226e7c0f64cf | # Title: ISBNdb provider class fails to extract valid years and map language codes to MARC 21
## Description
Currently the ISBNdb provider mistakes the opening text of a published date for the year, so a record whose date does not begin with the year is staged carrying a fragment of that text, and a record with no usa... | ## Requirements
- The importable record model for ISBNdb JSONL data should be reachable as `ISBNdb`, alongside the record reading and format classification helpers the module already offers.
- Asked for a year through an instance method named `_get_year`, a record should answer with the four digit year its publication... | diff --git a/openlibrary/templates/history/comment.html b/openlibrary/templates/history/comment.html
index 7ec00d5e1d6..507c45a7313 100644
--- a/openlibrary/templates/history/comment.html
+++ b/openlibrary/templates/history/comment.html
@@ -12,9 +12,9 @@
$ record = get_source_record(record_id)
$if v.revision ... | diff --git a/scripts/tests/test_isbndb.py b/scripts/tests/test_isbndb.py
index ab134c39d10..b6c5f0a26dc 100644
--- a/scripts/tests/test_isbndb.py
+++ b/scripts/tests/test_isbndb.py
@@ -2,7 +2,8 @@
import pytest
-from ..providers.isbndb import get_line, NONBOOK, is_nonbook
+from ..providers.isbndb import ISBNdb, ge... | ["scripts/tests/test_isbndb.py::test_isbndb_to_ol_item", "scripts/tests/test_isbndb.py::test_is_nonbook[DVD-True]", "scripts/tests/test_isbndb.py::test_is_nonbook[dvd-True]", "scripts/tests/test_isbndb.py::test_is_nonbook[audio-True]", "scripts/tests/test_isbndb.py::test_is_nonbook[cassette-True]", "scripts/tests/test_... | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_internetarchive__openlibrary-8a9d9d323dfcf2a5b4f38d70b1108b030b20ebf3-v13642507b4fc1f8d234172bf8129942da2c2ca26 | true | null | 3 | 421 | 19 | 558 | 0 | 0.95 | 1 | 0.4 | 0.45 | 0.593 | 65.6665 | |
2,774 | swe_bench_pro::test::534 | swe_bench_pro | test | 534 | instance_protonmail__webclients-715dbd4e6999499cd2a576a532d8214f75189116 | protonmail/webclients | protonmail/webclients | javascript | aba05b2f451b2f8765207846b11dc67190cb9930 | ## Title:
Improve encryption handling for WKD contacts with X-Pm-Encrypt-Untrusted
## Description:
Currently, a contact whose keys come from an untrusted server is always encrypted to, and its advanced PGP settings offer no encryption or signing control. Older contacts that pinned such keys can carry no stored encrypt... | ## Requirements
- A contact card should hold the encryption preference for keys the user has not pinned apart from the one for pinned keys, carried in the signed portion of the card under the name `X-PM-ENCRYPT-UNTRUSTED` and read back as a boolean.
- The configuration used to build a contact's public key model should... | diff --git a/packages/components/containers/contacts/email/ContactEmailSettingsModal.tsx b/packages/components/containers/contacts/email/ContactEmailSettingsModal.tsx
index 8afffb738c7..dc1d8047a9f 100644
--- a/packages/components/containers/contacts/email/ContactEmailSettingsModal.tsx
+++ b/packages/components/contain... | diff --git a/packages/components/containers/contacts/email/ContactEmailSettingsModal.test.tsx b/packages/components/containers/contacts/email/ContactEmailSettingsModal.test.tsx
index 1041f076093..ffbf2ad1b87 100644
--- a/packages/components/containers/contacts/email/ContactEmailSettingsModal.test.tsx
+++ b/packages/com... | ["containers/contacts/email/ContactEmailSettingsModal.test.tsx | should save a contact with updated email settings (no keys)", "containers/contacts/email/ContactEmailSettingsModal.test.tsx | should enable encryption by default if WKD keys are found", "containers/contacts/email/ContactEmailSettingsModal.test.tsx | shoul... | ["containers/contacts/email/ContactEmailSettingsModal.test.tsx | should warn if encryption is enabled and uploaded keys are not valid for sending"] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_protonmail__webclients-715dbd4e6999499cd2a576a532d8214f75189116 | true | null | 9 | 241 | 3 | 506 | 0 | 0.95 | 1 | 0.4 | 0.45 | 0.584333 | 65.6405 | |
2,775 | swe_bench_pro::test::204 | swe_bench_pro | test | 204 | instance_flipt-io__flipt-86906cbfc3a5d3629a583f98e6301142f5f14bdb-v6bea0cc3a6fc532d7da914314f2944fc1cd04dee | flipt-io/flipt | flipt-io/flipt | go | 358e13bf5748bba4418ffdcdd913bcbfdedc9d3f | ## Title: CSRF configuration needs a secure option that defaults to enabled
### Description
When authentication session CSRF settings are loaded from configuration, there is no way to control whether CSRF treats the deployment as secure (for example, HTTPS vs plain HTTP). The configuration should expose a secure setti... | ## Requirements
- `AuthenticationSessionCSRF` must include an exported `Secure` field of type `bool` whose value can be populated from the `secure` key under the session CSRF section of a loaded configuration.
- When `authentication.session.csrf.secure` is not explicitly set in the loaded configuration, `Secure` must ... | diff --git a/.gitignore b/.gitignore
index 2851423e7c..1023e62f1d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -60,3 +60,4 @@ build/mage_output_file.go
!**/**/testdata/*.rego
release-notes.md
+config/dev.yml
diff --git a/config/flipt.schema.cue b/config/flipt.schema.cue
index bb006eec1b..55eae29407 100644
--- a/conf... | diff --git a/internal/config/config_test.go b/internal/config/config_test.go
index bcf9e219f0..687200d326 100644
--- a/internal/config/config_test.go
+++ b/internal/config/config_test.go
@@ -578,7 +578,8 @@ func TestLoad(t *testing.T) {
},
},
},
- }}
+ },
+ }
return cfg
},
... | ["TestAnalyticsClickhouseConfiguration", "TestAnalyticsPrometheusConfiguration", "TestAuditEnabled", "TestWithForwardPrefix", "TestRequiresDatabase", "TestJSONSchema", "TestScheme", "TestCacheBackend", "TestTracingExporter", "TestDatabaseProtocol", "TestLogEncoding", "TestLoad", "TestServeHTTP", "TestMarshalYAML", "Tes... | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_flipt-io__flipt-86906cbfc3a5d3629a583f98e6301142f5f14bdb-v6bea0cc3a6fc532d7da914314f2944fc1cd04dee | true | null | 7 | 153 | 21 | 487 | 0 | 0.95 | 1 | 0.4 | 0.45 | 0.581167 | 65.631 | |
2,776 | swe_bench_pro::test::393 | swe_bench_pro | test | 393 | instance_internetarchive__openlibrary-322d7a46cdc965bfabbf9500e98fde098c9d95b2-v13642507b4fc1f8d234172bf8129942da2c2ca26 | internetarchive/openlibrary | internetarchive/openlibrary | python | 0d5acead6fdfb5e41a1d29a076a6e89ad1a39027 | ## Title: Search index updates cannot be handled per record type or inspected afterwards
### Description
Currently works, authors and editions each travel their own route through one large batch routine, so none of them can be processed or extended apart from the others, and behavior meant for all of them only takes e... | ## Requirements
- `SolrUpdateState` should represent one pending update through its `keys`, `adds`, `deletes` and `commit` fields, should be constructible from part of that information as in `SolrUpdateState(commit=True)`, and any collection left out should start empty and unshared, with no commit requested.
- `solr_u... | diff --git a/openlibrary/solr/update_work.py b/openlibrary/solr/update_work.py
index 346cf8c2e90..0c3b8579571 100644
--- a/openlibrary/solr/update_work.py
+++ b/openlibrary/solr/update_work.py
@@ -1,10 +1,11 @@
+from dataclasses import dataclass, field
import datetime
import itertools
import logging
import re
from... | diff --git a/openlibrary/tests/solr/test_update_work.py b/openlibrary/tests/solr/test_update_work.py
index 3b31d21b23f..03984de9d0a 100644
--- a/openlibrary/tests/solr/test_update_work.py
+++ b/openlibrary/tests/solr/test_update_work.py
@@ -8,12 +8,14 @@
from openlibrary.solr import update_work
from openlibrary.solr.... | ["openlibrary/tests/solr/test_update_work.py::TestAuthorUpdater::test_workless_author", "openlibrary/tests/solr/test_update_work.py::Test_update_keys::test_delete", "openlibrary/tests/solr/test_update_work.py::Test_update_keys::test_redirects", "openlibrary/tests/solr/test_update_work.py::TestWorkSolrUpdater::test_no_t... | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_internetarchive__openlibrary-322d7a46cdc965bfabbf9500e98fde098c9d95b2-v13642507b4fc1f8d234172bf8129942da2c2ca26 | true | null | 2 | 483 | 11 | 473 | 0 | 0.95 | 1 | 0.4 | 0.45 | 0.578833 | 65.624 | |
2,777 | swe_bench_pro::test::518 | swe_bench_pro | test | 518 | instance_protonmail__webclients-1917e37f5d9941a3459ce4b0177e201e2d94a622 | protonmail/webclients | protonmail/webclients | javascript | 78e30c07b399db1aac8608275fe101e9d349534f | # Title: Remote images in messages fail to render when loaded through the image proxy
## Description
Currently, remote images in a message body never finish loading when remote content is shown through the image proxy, so the reader is left looking at loading placeholders while the rest of the message renders normally... | ## Requirements
- The message image helpers should expose `forgeImageURL`, taking a remote image address and a session identifier, which should return an absolute address made of the current page origin, the path `/api/core/v4/images`, and a query carrying the percent encoded remote address under `Url`, then `DryRun` v... | diff --git a/applications/mail/src/app/components/message/MessageBodyIframe.tsx b/applications/mail/src/app/components/message/MessageBodyIframe.tsx
index 5d67d87e3e8..91fabd5678c 100644
--- a/applications/mail/src/app/components/message/MessageBodyIframe.tsx
+++ b/applications/mail/src/app/components/message/MessageBo... | diff --git a/applications/mail/src/app/components/message/tests/Message.images.test.tsx b/applications/mail/src/app/components/message/tests/Message.images.test.tsx
index 384dde31524..5f5b0a25731 100644
--- a/applications/mail/src/app/components/message/tests/Message.images.test.tsx
+++ b/applications/mail/src/app/comp... | ["src/app/helpers/message/messageImages.test.ts | should forge the expected image URL", "src/app/components/message/tests/Message.images.test.tsx | should load correctly all elements other than images with proxy", "src/app/components/message/tests/Message.images.test.tsx | should be able to load direct when proxy faile... | ["src/app/components/message/tests/Message.images.test.tsx | should display all elements other than images"] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_protonmail__webclients-1917e37f5d9941a3459ce4b0177e201e2d94a622 | true | null | 11 | 162 | 3 | 453 | 0 | 0.95 | 1 | 0.4 | 0.45 | 0.5755 | 65.614 | |
2,778 | swe_gym::train::944 | swe_gym | train | 944 | dask__dask-6978 | dask/dask | dask/dask | python | 2e47fa6b589733467c3aa950a8a31a62c52a0d3d | `npartitions` argument in `set_index` DataFrame method does not work.
**What happened**:
Setting the index of a Dask DataFrame with argument `npartitions` does not set the specified number of partitions.
**What you expected to happen**:
I expect that, if I set for example `npartitions=1` on a DataFrame originally w... | diff --git a/dask/dataframe/shuffle.py b/dask/dataframe/shuffle.py
--- a/dask/dataframe/shuffle.py
+++ b/dask/dataframe/shuffle.py
@@ -519,6 +519,7 @@ def set_index(
mins == sorted(mins)
and maxes == sorted(maxes)
and all(mx < mn for mx, mn in zip(maxes[:-1], mins[1:]))
+ ... | diff --git a/dask/dataframe/tests/test_shuffle.py b/dask/dataframe/tests/test_shuffle.py
--- a/dask/dataframe/tests/test_shuffle.py
+++ b/dask/dataframe/tests/test_shuffle.py
@@ -632,14 +632,14 @@ def test_set_index_timezone():
df = pd.DataFrame({"tz": s_aware, "notz": s_naive})
d = dd.from_pandas(df, 2)
- ... | ["dask/dataframe/tests/test_shuffle.py::test_set_index_npartitions"] | ["dask/dataframe/tests/test_shuffle.py::test_dataframe_shuffle_on_tasks_api[4-id-None]", "dask/dataframe/tests/test_shuffle.py::test_shuffle_from_one_partition_to_one_other[tasks]", "dask/dataframe/tests/test_shuffle.py::test_set_index_sorts", "dask/dataframe/tests/test_shuffle.py::test_set_index_sorted_single_partitio... | null | true | 2020-12-15T21:53:10Z | 1 | 1 | 1 | 1,043 | 0 | 0.85 | 1 | 0.55 | 0.4 | 0.177167 | 65.6065 | ||
2,779 | swe_bench_pro::test::193 | swe_bench_pro | test | 193 | instance_flipt-io__flipt-56a620b8fc9ef7a0819b47709aa541cdfdbba00b | flipt-io/flipt | flipt-io/flipt | go | 32864671f44b7bbd9edc8e2bc1d6255906c31f5b | # Title: Audit events cannot be delivered to external systems
## Description
Currently, audit events are limited to local outputs and cannot be reliably delivered to external systems, making it harder to integrate audit activity with external monitoring workflows. There is no way to configure an HTTP endpoint (a webho... | ## Requirements
- The audit configuration must accept a webhook sink under `audit.sinks.webhook` holding `enabled`, `url`, `max_backoff_duration` and `signing_secret`, decodable from both JSON and mapstructure like the existing log file sink.
- By default the webhook sink must be disabled and its maximum backoff durat... | diff --git a/config/flipt.schema.cue b/config/flipt.schema.cue
index ddc4a6abfe..a0ee306e27 100644
--- a/config/flipt.schema.cue
+++ b/config/flipt.schema.cue
@@ -228,6 +228,12 @@ import "strings"
enabled?: bool | *false
file?: string | *""
}
+ webhook?: {
+ enabled?: bool | *false
+ ... | diff --git a/internal/config/config_test.go b/internal/config/config_test.go
index b0f81d2b..20089398 100644
--- a/internal/config/config_test.go
+++ b/internal/config/config_test.go
@@ -619,6 +619,11 @@ func TestLoad(t *testing.T) {
path: "./testdata/audit/invalid_enable_without_file.yml",
wantErr: errors.N... | ["TestLoad", "TestSinkSpanExporter", "TestHTTPClient_Failure", "TestHTTPClient_Success", "TestHTTPClient_Success_WithSignedPayload", "TestSink", "TestAuditUnaryInterceptor_CreateFlag", "TestAuditUnaryInterceptor_UpdateFlag", "TestAuditUnaryInterceptor_DeleteFlag", "TestAuditUnaryInterceptor_CreateVariant", "TestAuditUn... | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_flipt-io__flipt-56a620b8fc9ef7a0819b47709aa541cdfdbba00b | true | null | 11 | 352 | 32 | 434 | 0 | 0.95 | 1 | 0.4 | 0.45 | 0.572333 | 65.6045 | |
2,780 | swe_bench_promax::test::164 | swe_bench_promax | test | 164 | angular__angular-c_d47cf58 | angular/angular | angular/angular | typescript | 765ba1e181442079c25387bb869ed576388e839c | The Angular framework provides a global debugging interface accessible via `window.ng`, which includes the `getDirectiveMetadata` function for inspecting directive and component instances at runtime. This utility is critically relied upon by developer tooling—such as the Angular DevTools backend—to extract structural m... | diff --git a/devtools/projects/ng-devtools-backend/src/lib/component-tree.ts b/devtools/projects/ng-devtools-backend/src/lib/component-tree.ts
--- a/devtools/projects/ng-devtools-backend/src/lib/component-tree.ts
+++ b/devtools/projects/ng-devtools-backend/src/lib/component-tree.ts
@@ -15,7 +15,7 @@ import type {
In... | diff --git a/packages/core/test/acceptance/discover_utils_spec.ts b/packages/core/test/acceptance/discover_utils_spec.ts
--- a/packages/core/test/acceptance/discover_utils_spec.ts
+++ b/packages/core/test/acceptance/discover_utils_spec.ts
@@ -24,7 +24,7 @@ import {ComponentFixture, TestBed} from '../../testing';
impor... | null | null | key4127/refactor-dockerhub:angular__angular-c_d47cf58 | true | 1743107172 | 8 | 159 | null | 2,315 | 0 | 0.9 | 1 | 0.4 | 0.45 | 0.885833 | 65.595 | ||
2,781 | swe_bench_pro::test::368 | swe_bench_pro | test | 368 | instance_gravitational__teleport-e6681abe6a7113cfd2da507f05581b7bdf398540-v626ec2a48416b10a88641359a169d99e935ff037 | gravitational/teleport | gravitational/teleport | go | be52cd325af38f53fa6b6f869bc10b88160e06e2 | ## Title: Active sessions block when session audit event fanout is slow or unresponsive
### Description
In async recording mode, session events are written to disk for later upload while selected audit events are also sent to the event log for immediate visibility. When audit event delivery is slow or unresponsive, th... | ## Requirements
- In async recording mode, session activity must continue without blocking when audit event fanout is slow or hangs, as long as local disk recording is still functioning.
- `AuditWriter` must accept configurable `BackoffTimeout` and `BackoffDuration` values, applying positive non-zero defaults for both... | diff --git a/lib/defaults/defaults.go b/lib/defaults/defaults.go
index aa2798906cbf6..4510c5dfc2977 100644
--- a/lib/defaults/defaults.go
+++ b/lib/defaults/defaults.go
@@ -308,6 +308,10 @@ var (
// usually is slow, e.g. once in 30 seconds
NetworkBackoffDuration = time.Second * 30
+ // AuditBackoffTimeout is a ti... | diff --git a/lib/events/auditwriter_test.go b/lib/events/auditwriter_test.go
index 45cef19ca21b3..27109f5a8bcc4 100644
--- a/lib/events/auditwriter_test.go
+++ b/lib/events/auditwriter_test.go
@@ -195,7 +195,72 @@ func TestAuditWriter(t *testing.T) {
require.Equal(t, len(inEvents), len(outEvents))
require.Equal(t... | ["TestAuditWriter", "TestAuditWriter/Session", "TestAuditWriter/ResumeStart", "TestAuditWriter/ResumeMiddle", "TestAuditWriter/Backoff", "TestAsyncEmitter", "TestAsyncEmitter/Slow", "TestAsyncEmitter/Receive", "TestAsyncEmitter/Close", "TestStreamerCompleteEmpty"] | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_gravitational__teleport-e6681abe6a7113cfd2da507f05581b7bdf398540-v626ec2a48416b10a88641359a169d99e935ff037 | true | null | 8 | 393 | 10 | 411 | 0 | 0.95 | 1 | 0.4 | 0.45 | 0.5685 | 65.593 | |
2,782 | swe_bench_pro::test::145 | swe_bench_pro | test | 145 | instance_element-hq__element-web-776ffa47641c7ec6d142ab4a47691c30ebf83c2e | element-hq/element-web | element-hq/element-web | javascript | 8b54be6f48631083cb853cda5def60d438daa14f | # Title: Missing Kebab context menu for current session in Device Manager
## Description
The current session section of the device manager offers no dedicated context menu for session-specific actions. Signing out of the current session, or signing out of every other session at once, is not reachable from that section... | ## Requirements
- The current session header must include a kebab trigger that opens a context menu of session actions, placed inside that header as a sibling element that follows the header's title text.
- The kebab trigger must be disabled while the device list is loading, and it must remain rendered in that state.
... | diff --git a/res/css/_components.pcss b/res/css/_components.pcss
index faaf2089484..966caed4cc9 100644
--- a/res/css/_components.pcss
+++ b/res/css/_components.pcss
@@ -17,6 +17,7 @@
@import "./components/views/beacon/_RoomLiveShareWarning.pcss";
@import "./components/views/beacon/_ShareLatestLocation.pcss";
@import... | diff --git a/test/components/views/settings/devices/CurrentDeviceSection-test.tsx b/test/components/views/settings/devices/CurrentDeviceSection-test.tsx
index 2466b5ea3d..7afe1c5eb2 100644
--- a/test/components/views/settings/devices/CurrentDeviceSection-test.tsx
+++ b/test/components/views/settings/devices/CurrentDevi... | ["/app/test/components/views/settings/devices/CurrentDeviceSection-test.tsx | <CurrentDeviceSection /> | handles when device is falsy", "/app/test/components/views/settings/devices/CurrentDeviceSection-test.tsx | <CurrentDeviceSection /> | renders device and correct security card when device is verified", "/app/test/co... | ["/app/test/components/views/settings/shared/SettingsSubsectionHeading-test.tsx | <SettingsSubsectionHeading /> | renders without children", "/app/test/components/views/settings/shared/SettingsSubsectionHeading-test.tsx | <SettingsSubsectionHeading /> | renders with children", "/app/test/components/views/settings/devic... | ghcr.io/scaleapi/swe-bench_pro-v2:instance_element-hq__element-web-776ffa47641c7ec6d142ab4a47691c30ebf83c2e | true | null | 9 | 163 | 10 | 411 | 0 | 0.95 | 1 | 0.4 | 0.45 | 0.5685 | 65.593 | |
2,783 | swe_bench_pro::test::558 | swe_bench_pro | test | 558 | instance_protonmail__webclients-dfe5604193d63bfcb91ce60d62db2f805c43bf11 | protonmail/webclients | protonmail/webclients | javascript | ebf2993b7bdc187ec2f3e84c76e0584689202a68 | # Title: Move to folder logic is locked inside its hook
## Description
Currently, the rules that decide what a move notification says, when a move is refused, how scheduled items sent to Trash are treated and when the unsubscribe prompt appears are locked inside the move to folder hook. Nothing else in the mail applic... | ## Requirements
- The success wording, the refusal wording, the scheduled item handling and the unsubscribe prompt of a move should be reachable on their own, outside any hook, as the named exports `getNotificationTextMoved`, `getNotificationTextUnauthorized`, `searchForScheduled` and `askToUnsubscribe` of a helpers mo... | diff --git a/applications/mail/src/app/helpers/moveToFolder.ts b/applications/mail/src/app/helpers/moveToFolder.ts
new file mode 100644
index 00000000000..2c3f4b709f5
--- /dev/null
+++ b/applications/mail/src/app/helpers/moveToFolder.ts
@@ -0,0 +1,205 @@
+import { c, msgid } from 'ttag';
+
+import { updateSpamAction } ... | diff --git a/applications/mail/src/app/helpers/moveToFolder.test.ts b/applications/mail/src/app/helpers/moveToFolder.test.ts
new file mode 100644
index 00000000000..77b4308ad66
--- /dev/null
+++ b/applications/mail/src/app/helpers/moveToFolder.test.ts
@@ -0,0 +1,253 @@
+import { MAILBOX_LABEL_IDS } from '@proton/shared... | ["src/app/helpers/moveToFolder.test.ts | should return expected text [Message moved to spam and sender added to your spam list.]", "src/app/helpers/moveToFolder.test.ts | should return expected text [2 messages moved to spam and senders added to your spam list.]", "src/app/helpers/moveToFolder.test.ts | should return e... | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_protonmail__webclients-dfe5604193d63bfcb91ce60d62db2f805c43bf11 | true | null | 2 | 406 | 28 | 402 | 0 | 0.95 | 1 | 0.4 | 0.45 | 0.567 | 65.5885 | |
2,784 | swe_bench_pro::test::81 | swe_bench_pro | test | 81 | instance_ansible__ansible-984216f52e76b904e5b0fa0fb956ab4f1e0a7751-v1055803c3a812189a1133297f7f5468579283f86 | ansible/ansible | ansible/ansible | python | d79b23910a1a16931885c5b3056179e72e0e6466 | ## Title: Plugin loading does not report how a plugin was resolved
### Description
Currently, when a plugin is requested, its loading returns only the resolved result without exposing any information about how it was resolved, so code that depends on it cannot consistently tell whether the plugin was redirected, remov... | ## Requirements
- When `_configure_module` prepares a module for execution, it must determine the module's location by querying the module loader's context-aware resolution (the loader's find-plugin-with-context entry point) instead of the plain find-plugin lookup, and rely only on the resolved path that this context-a... | diff --git a/lib/ansible/config/ansible_builtin_runtime.yml b/lib/ansible/config/ansible_builtin_runtime.yml
index e7005068a31d62..95227e15c2e90a 100644
--- a/lib/ansible/config/ansible_builtin_runtime.yml
+++ b/lib/ansible/config/ansible_builtin_runtime.yml
@@ -2,7 +2,7 @@
# GNU General Public License v3.0+ (see COPY... | diff --git a/test/integration/targets/collections/collection_root_user/ansible_collections/testns/testbroken/plugins/filter/broken_filter.py b/test/integration/targets/collections/collection_root_user/ansible_collections/testns/testbroken/plugins/filter/broken_filter.py
index 64c25dc216697c..51fe852450047e 100644
--- a... | ["test/units/plugins/action/test_action.py::TestActionBase::test_action_base__configure_module"] | ["test/units/plugins/action/test_action.py::TestActionBase::test__remote_expand_user_relative_pathing", "test/units/plugins/action/test_action.py::TestActionBaseParseReturnedData::test_json_facts", "test/units/plugins/action/test_action.py::TestActionBase::test_action_base__execute_remote_stat", "test/units/plugins/act... | ghcr.io/scaleapi/swe-bench_pro-v2:instance_ansible__ansible-984216f52e76b904e5b0fa0fb956ab4f1e0a7751-v1055803c3a812189a1133297f7f5468579283f86 | true | null | 8 | 286 | 1 | 395 | 0 | 0.95 | 1 | 0.4 | 0.45 | 0.565833 | 65.585 | |
2,785 | swe_bench_promax::test::10 | swe_bench_promax | test | 10 | apache__iceberg-12167 | apache/iceberg | apache/iceberg | java | eb286de183fd5c78604280f83cf7a807ea75a6b4 | During ongoing efforts to formalize Iceberg's Variant type system for inclusion in the public API, the `PhysicalType` enum is currently defined as a nested inner enum within the `Variants` utility class. This means all references to it throughout the codebase take the form `Variants.PhysicalType`, coupling consumers to... | diff --git a/core/src/main/java/org/apache/iceberg/variants/LogicalType.java b/core/src/main/java/org/apache/iceberg/variants/LogicalType.java
new file mode 100644
--- /dev/null
+++ b/core/src/main/java/org/apache/iceberg/variants/LogicalType.java
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF... | diff --git a/core/src/test/java/org/apache/iceberg/variants/TestSerializedArray.java b/core/src/test/java/org/apache/iceberg/variants/TestSerializedArray.java
--- a/core/src/test/java/org/apache/iceberg/variants/TestSerializedArray.java
+++ b/core/src/test/java/org/apache/iceberg/variants/TestSerializedArray.java
@@ -2... | null | null | key4127/refactor-dockerhub:apache__iceberg-12167 | true | 1738712718 | 13 | 352 | null | 2,593 | 0 | 0.9 | 1 | 0.55 | 0.2625 | 0.932167 | 65.555875 | ||
2,786 | swe_gym::train::421 | swe_gym | train | 421 | python__mypy-15306 | python/mypy | python/mypy | python | ac6dc18545c9eafbf576e1151f7f698ec1f1b256 | Match statement ignores redefinition
The following code fails to type check with `error: "str" has no attribute "bit_length"` on the match statement, but not on the print statement:
```python
def redefinition(a: str):
a = int(a)
print(a.bit_length())
match a.bit_length():
case _:
...
... | diff --git a/mypy/renaming.py b/mypy/renaming.py
--- a/mypy/renaming.py
+++ b/mypy/renaming.py
@@ -182,6 +182,7 @@ def visit_assignment_stmt(self, s: AssignmentStmt) -> None:
self.analyze_lvalue(lvalue)
def visit_match_stmt(self, s: MatchStmt) -> None:
+ s.subject.accept(self)
for i ... | diff --git a/test-data/unit/check-python310.test b/test-data/unit/check-python310.test
--- a/test-data/unit/check-python310.test
+++ b/test-data/unit/check-python310.test
@@ -1933,3 +1933,28 @@ def match_stmt_error5(x: Optional[str]) -> None:
pass
nested()
[builtins fixtures/tuple.pyi]
+
+[case testM... | ["mypy/test/testcheck.py::TypeCheckSuite::check-python310.test::testMatchSubjectRedefinition"] | [] | null | true | 2023-05-25T19:01:07Z | 1 | 1 | 1 | 940 | 0 | 0.85 | 1 | 0.55 | 0.4 | 0.16 | 65.555 | ||
2,787 | swe_bench_promax::test::65 | swe_bench_promax | test | 65 | go-gitea__gitea-33861 | go-gitea/gitea | go-gitea/gitea | go | 91610a987e4c805a9305d4ee951963f80dbeb9ee | The function signatures of `ServeContentByReader` and `ServeContentByReadSeeker` in the `modules/httplib` package currently accept a `filePath` string parameter that is used both as a source for the filename and implicitly ties content serving to a file path concept. This design conflates the file identity with the ser... | diff --git a/modules/httpcache/httpcache.go b/modules/httpcache/httpcache.go
--- a/modules/httpcache/httpcache.go
+++ b/modules/httpcache/httpcache.go
@@ -4,40 +4,60 @@
package httpcache
import (
- "io"
+ "fmt"
"net/http"
"strconv"
"strings"
"time"
"code.gitea.io/gitea/modules/setting"
+ "code.gitea.io/... | diff --git a/modules/httplib/serve_test.go b/modules/httplib/serve_test.go
--- a/modules/httplib/serve_test.go
+++ b/modules/httplib/serve_test.go
@@ -27,7 +27,7 @@ func TestServeContentByReader(t *testing.T) {
}
reader := strings.NewReader(data)
w := httptest.NewRecorder()
- ServeContentByReader(r, w, "test"... | null | null | key4127/refactor-dockerhub:go-gitea__gitea-33861 | true | 1741820690 | 14 | 156 | null | 2,577 | 0 | 0.9 | 1 | 0.55 | 0.2625 | 0.9295 | 65.547875 | ||
2,788 | swe_gym::train::369 | swe_gym | train | 369 | python__mypy-15506 | python/mypy | python/mypy | python | 2d8ad8ef240df262be80d9359e9f5892ea1f9ad3 | error: Expected type in class pattern; found "Any" (cannot be ignored, error without line number)
Found a strange bug today: https://mypy-play.net/?mypy=master&python=3.11&gist=5069b99b248041428036a717e52a3476
```python
from pandas import DataFrame, Series
from typing import TypeVar
T = TypeVar("T", Series, DataFrame... | diff --git a/mypy/checkpattern.py b/mypy/checkpattern.py
--- a/mypy/checkpattern.py
+++ b/mypy/checkpattern.py
@@ -468,7 +468,7 @@ def visit_class_pattern(self, o: ClassPattern) -> PatternType:
name = type_info.type.str_with_options(self.options)
else:
name = type_info.nam... | diff --git a/test-data/unit/check-python310.test b/test-data/unit/check-python310.test
--- a/test-data/unit/check-python310.test
+++ b/test-data/unit/check-python310.test
@@ -1958,3 +1958,23 @@ def redefinition_bad(a: int):
...
[builtins fixtures/primitives.pyi]
+
+[case testPatternMatchingClassPatternL... | ["mypy/test/testcheck.py::TypeCheckSuite::check-python310.test::testPatternMatchingClassPatternLocation"] | [] | null | true | 2023-06-23T13:37:47Z | 1 | 2 | 1 | 902 | 0 | 0.85 | 1 | 0.55 | 0.4 | 0.157 | 65.546 | ||
2,789 | swe_bench_pro::test::273 | swe_bench_pro | test | 273 | instance_future-architect__vuls-83bcca6e669ba2e4102f26c4a2b52f78c7861f1a | future-architect/vuls | future-architect/vuls | go | a124518d78779cd9daefd92bb66b25da37516363 | # Title: Reachable ports are not reported for affected processes
## Description
Currently, affected processes can show listening ports without indicating which addresses are actually reachable from a scan, making it harder to assess whether a vulnerable package is exposed through an accessible network service. | ## Requirements
- A listening endpoint should be described by `ListenPort`, carrying the values `Address`, `Port`, and `PortScanSuccessOn`, where `PortScanSuccessOn` holds the IPs on which that port was confirmed reachable.
- When a process exposes several ports, all of them should be retained, so the existing `Affect... | diff --git a/models/packages.go b/models/packages.go
index 343d711867..4c90442d7e 100644
--- a/models/packages.go
+++ b/models/packages.go
@@ -174,9 +174,29 @@ type Changelog struct {
// AffectedProcess keep a processes information affected by software update
type AffectedProcess struct {
- PID string `js... | diff --git a/models/packages_test.go b/models/packages_test.go
index 9d83d9e..ae2c5f1 100644
--- a/models/packages_test.go
+++ b/models/packages_test.go
@@ -381,3 +381,50 @@ func Test_IsRaspbianPackage(t *testing.T) {
})
}
}
+
+func TestPackage_HasPortScanSuccessOn(t *testing.T) {
+ tests := []struct {
+ name ... | ["Test_detectScanDest", "Test_detectScanDest/empty", "Test_detectScanDest/single-addr", "Test_detectScanDest/dup-addr", "Test_detectScanDest/multi-addr", "Test_detectScanDest/asterisk", "Test_updatePortStatus", "Test_updatePortStatus/nil_affected_procs", "Test_updatePortStatus/nil_listen_ports", "Test_updatePortStatus/... | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_future-architect__vuls-83bcca6e669ba2e4102f26c4a2b52f78c7861f1a | true | null | 7 | 197 | 29 | 312 | 0 | 0.95 | 1 | 0.4 | 0.45 | 0.552 | 65.5435 | |
2,790 | swe_bench_pro::test::171 | swe_bench_pro | test | 171 | instance_element-hq__element-web-fe14847bb9bb07cab1b9c6c54335ff22ca5e516a-vnan | element-hq/element-web | element-hq/element-web | javascript | ad9cbe93994888e8f8ba88ce3614dc041a698930 | ## Title: Voice broadcast recording state can be inconsistent
### Description
Currently, voice broadcast recordings can show inconsistent live or stopped status when they are started, displayed in a room, or selected to stop, making it difficult for the interface to reflect the real recording state reliably. | ## Requirements
- Starting a new voice broadcast through `startNewVoiceBroadcastRecording` should take a room id, a `MatrixClient`, and a `VoiceBroadcastRecordingsStore`, in that order, and asynchronously yield the resulting `VoiceBroadcastRecording`.
- When a new voice broadcast is started, a `VoiceBroadcastInfoEvent... | diff --git a/src/components/views/rooms/MessageComposer.tsx b/src/components/views/rooms/MessageComposer.tsx
index f752386650d..cf0fe3fd6ad 100644
--- a/src/components/views/rooms/MessageComposer.tsx
+++ b/src/components/views/rooms/MessageComposer.tsx
@@ -55,9 +55,8 @@ import { isLocalRoom } from '../../../utils/local... | diff --git a/test/test-utils/test-utils.ts b/test/test-utils/test-utils.ts
index 5369a3b9f5..67c038502f 100644
--- a/test/test-utils/test-utils.ts
+++ b/test/test-utils/test-utils.ts
@@ -401,7 +401,7 @@ export function mkStubRoom(roomId: string = null, name: string, client: MatrixCl
getMembers: jest.fn().mockR... | ["test/voice-broadcast/models/VoiceBroadcastRecording-test.ts | when created for a Voice Broadcast Info without relations | should be in Started state", "test/voice-broadcast/models/VoiceBroadcastRecording-test.ts | and calling stop() | should send a stopped Voice Broadcast Info event", "test/voice-broadcast/models/Voi... | ["test/utils/validate/numberInRange-test.ts | validateNumberInRange | returns false when value is a not a number", "test/utils/validate/numberInRange-test.ts | validateNumberInRange | returns false when value is undefined", "test/utils/validate/numberInRange-test.ts | validateNumberInRange | returns false when value is... | ghcr.io/scaleapi/swe-bench_pro-v2:instance_element-hq__element-web-fe14847bb9bb07cab1b9c6c54335ff22ca5e516a-vnan | true | null | 9 | 340 | 15 | 310 | 0 | 0.95 | 1 | 0.4 | 0.45 | 0.551667 | 65.5425 | |
2,791 | swe_gym::train::967 | swe_gym | train | 967 | dask__dask-9240 | dask/dask | dask/dask | python | 1a760229fc18c0c7df41669a13a329a287215819 | The "dask.array.Array.__reduce__" method loses the information stored in the "meta" attribute.
```python
import dask.array
import numpy
arr = numpy.arange(10)
arr = dask.array.from_array(numpy.ma.MaskedArray(arr, mask=arr % 2 == 0))
assert isinstance(arr._meta, numpy.ma.MaskedArray)
other = pickle.loads(pickle.dumps(... | diff --git a/dask/array/core.py b/dask/array/core.py
--- a/dask/array/core.py
+++ b/dask/array/core.py
@@ -1376,7 +1376,7 @@ def __new__(cls, dask, name, chunks, dtype=None, meta=None, shape=None):
return self
def __reduce__(self):
- return (Array, (self.dask, self.name, self.chunks, self.dtype))... | diff --git a/dask/array/tests/test_array_core.py b/dask/array/tests/test_array_core.py
--- a/dask/array/tests/test_array_core.py
+++ b/dask/array/tests/test_array_core.py
@@ -3608,6 +3608,12 @@ def test_array_picklable(array):
a2 = loads(dumps(array))
assert_eq(array, a2)
+ a3 = da.ma.masked_equal(array,... | ["dask/array/tests/test_array_core.py::test_array_picklable[array0]", "dask/array/tests/test_array_core.py::test_array_picklable[array1]"] | ["dask/array/tests/test_array_core.py::test_normalize_chunks_nan", "dask/array/tests/test_array_core.py::test_stack_scalars", "dask/array/tests/test_array_core.py::test_astype", "dask/array/tests/test_array_core.py::test_meta[dtype1]", "dask/array/tests/test_array_core.py::test_vindex_basic", "dask/array/tests/test_arr... | null | true | 2022-07-05T09:39:58Z | 1 | 2 | 2 | 887 | 0 | 0.85 | 1 | 0.55 | 0.4 | 0.1545 | 65.5385 | ||
2,792 | swe_bench_pro::test::477 | swe_bench_pro | test | 477 | instance_navidrome__navidrome-55bff343cdaad1f04496f724eda4b55d422d7f17 | navidrome/navidrome | navidrome/navidrome | go | 68f03d01672a868f86e0fd73dde3957df8bf0dab | ## Title: Database access can stall during concurrent operations
### Description
Currently, SQLite3 database access can become unreliable when reads, writes, and transactions run at the same time, causing persistence operations to block or update outside the intended transactional flow. | ## Requirements
- The package-level `db.Db` accessor must now return the new database abstraction (the `DB` interface described in New Interfaces below) instead of a raw `*sql.DB`. The single caller entry point `persistence.New` must correspondingly accept that same `DB` abstraction (instead of `*sql.DB`), and the data... | diff --git a/cmd/wire_gen.go b/cmd/wire_gen.go
index 25ca7a0c90c..2915d05aff9 100644
--- a/cmd/wire_gen.go
+++ b/cmd/wire_gen.go
@@ -29,16 +29,16 @@ import (
// Injectors from wire_injectors.go:
func CreateServer(musicFolder string) *server.Server {
- sqlDB := db.Db()
- dataStore := persistence.New(sqlDB)
+ dbDB :=... | diff --git a/persistence/album_repository_test.go b/persistence/album_repository_test.go
index 34949c4fec9..503675bec7e 100644
--- a/persistence/album_repository_test.go
+++ b/persistence/album_repository_test.go
@@ -8,6 +8,7 @@ import (
"github.com/google/uuid"
"github.com/navidrome/navidrome/conf"
"github.com/n... | ["TestPersistence"] | [] | ghcr.io/scaleapi/swe-bench_pro-v2:instance_navidrome__navidrome-55bff343cdaad1f04496f724eda4b55d422d7f17 | true | null | 7 | 181 | 1 | 288 | 0 | 0.95 | 1 | 0.4 | 0.45 | 0.548 | 65.5315 | |
2,793 | swe_bench_pro::test::1 | swe_bench_pro | test | 1 | instance_NodeBB__NodeBB-04998908ba6721d64eba79ae3b65a351dcfbc5b5-vnan | NodeBB/NodeBB | nodebb/nodebb | javascript | 1e137b07052bc3ea0da44ed201702c94055b8ad2 | ## Title: Email confirmation cannot be validated or re-sent after some time passes
### Description:
Currently, once a user's pending email confirmation has aged, attempts to validate or re send the confirmation email fail and the reported validation status is inaccurate. | ## Requirements
- The data layer should expose a batch lookup `db.mget` that takes a list of keys and resolves to their stored string values arranged in the same order the keys were given, placing `null` at any position whose key has no stored value.
- When `db.mget` is given an empty list, or a value that is not a us... | diff --git a/public/language/en-GB/admin/manage/users.json b/public/language/en-GB/admin/manage/users.json
index 6b668a31ef8e..9486295bc3ef 100644
--- a/public/language/en-GB/admin/manage/users.json
+++ b/public/language/en-GB/admin/manage/users.json
@@ -50,6 +50,9 @@
"users.username": "username",
"users.email": "e... | diff --git a/test/database/keys.js b/test/database/keys.js
index 3941edb65a93..fde4bbc442cf 100644
--- a/test/database/keys.js
+++ b/test/database/keys.js
@@ -35,6 +35,17 @@ describe('Key methods', () => {
});
});
+ it('should return multiple keys and null if key doesn\'t exist', async () => {
+ const data = aw... | ["test/database/keys.js | Test database | Key methods | should return multiple keys and null if key doesn't exist", "test/database/keys.js | Test database | Key methods | should return empty array if keys is empty array or falsy", "test/user/emails.js | email confirmation (library methods) | canSendValidation | should ... | ["test/database.js | Test database | should work", "test/database.js | Test database | info | should return info about database", "test/database.js | Test database | info | should not error and return info if client is falsy", "test/database.js | Test database | checkCompatibility | should not throw", "test/database.js... | ghcr.io/scaleapi/swe-bench_pro-v2:instance_NodeBB__NodeBB-04998908ba6721d64eba79ae3b65a351dcfbc5b5-vnan | true | null | 11 | 151 | 3 | 273 | 0 | 0.95 | 1 | 0.4 | 0.45 | 0.5455 | 65.524 | |
2,794 | swe_bench_promax::test::74 | swe_bench_promax | test | 74 | samber__lo-739 | samber/lo | samber/lo | go | 43ae3d74dab69effb38ca8f491f5216b12adf61f | When working with collection intersections in the `lo` package, developers encounter inconsistent behavior between `lo.Intersect` and `lo.IntersectBy` that impacts both correctness and usability. While `lo.Intersect` reliably preserves element order from the *first* input collection across any number of slices, `lo.Int... | diff --git a/README.md b/README.md
--- a/README.md
+++ b/README.md
@@ -246,6 +246,7 @@ Supported intersection helpers:
- [None](#none)
- [NoneBy](#noneby)
- [Intersect](#intersect)
+- [IntersectBy](#intersectby)
- [Difference](#difference)
- [Union](#union)
- [Without](#without)
@@ -2597,11 +2598,32 @@ result2 :=... | diff --git a/intersect_test.go b/intersect_test.go
--- a/intersect_test.go
+++ b/intersect_test.go
@@ -226,23 +226,23 @@ func TestIntersectBy(t *testing.T) {
{ID: 4, Name: "Alice"},
}
- intersectByID := IntersectBy(list1, list2, func(u User) int {
+ intersectByID := IntersectBy(func(u User) int {
return u.ID
... | null | null | key4127/refactor-dockerhub:samber__lo-739 | true | 1762475014 | 9 | 249 | null | 2,149 | 0 | 0.9 | 1 | 0.4 | 0.45 | 0.858167 | 65.512 | ||
2,795 | swe_gym::train::925 | swe_gym | train | 925 | dask__dask-8954 | dask/dask | dask/dask | python | e429efae3d653b59e61115daee8bf87578611a8e | `full` inconsistency with NumPy for `dtype=None`
**What happened**: Calling `full` with an integer fill value and `dtype=None` returns a float array rather than an int array, which is what happens in NumPy.
**What you expected to happen**: Behaviour the same as NumPy.
**Minimal Complete Verifiable Example**:
```pyt... | diff --git a/dask/array/wrap.py b/dask/array/wrap.py
--- a/dask/array/wrap.py
+++ b/dask/array/wrap.py
@@ -192,7 +192,7 @@ def full(shape, fill_value, *args, **kwargs):
raise ValueError(
f"fill_value must be scalar. Received {type(fill_value).__name__} instead."
)
- if "dtype" not in k... | diff --git a/dask/array/tests/test_wrap.py b/dask/array/tests/test_wrap.py
--- a/dask/array/tests/test_wrap.py
+++ b/dask/array/tests/test_wrap.py
@@ -59,6 +59,11 @@ def test_full_detects_da_dtype():
assert len(record) == 1
+def test_full_none_dtype():
+ a = da.full(shape=(3, 3), fill_value=100, dtype=None)... | ["dask/array/tests/test_wrap.py::test_full_none_dtype"] | ["dask/array/tests/test_wrap.py::test_size_as_list", "dask/array/tests/test_wrap.py::test_full", "dask/array/tests/test_wrap.py::test_ones", "dask/array/tests/test_wrap.py::test_full_error_nonscalar_fill_value", "dask/array/tests/test_wrap.py::test_full_detects_da_dtype", "dask/array/tests/test_wrap.py::test_wrap_consi... | null | true | 2022-04-20T13:25:44Z | 1 | 2 | 1 | 713 | 0 | 0.85 | 1 | 0.55 | 0.4 | 0.1255 | 65.4515 | ||
2,796 | swe_bench_promax::test::60 | swe_bench_promax | test | 60 | caddy__caddyserver-6930 | caddyserver/caddy | caddyserver/caddy | go | ea77a9ab67d8c04f513adaf0a1c648c738e25922 | Caddy's event system, implemented through the caddyevents module, enables modules to emit and handle events for operational hooks and integrations. However, the core server package has been unable to participate as an event emitter for critical lifecycle transitions due to an architectural constraint: a circular depend... | diff --git a/caddy.go b/caddy.go
--- a/caddy.go
+++ b/caddy.go
@@ -81,13 +81,14 @@ type Config struct {
// associated value.
AppsRaw ModuleMap `json:"apps,omitempty" caddy:"namespace="`
- apps map[string]App
- storage certmagic.Storage
+ apps map[string]App
+ storage certmagic.Storage
+ eventEmitt... | diff --git a/modules/caddyhttp/fileserver/matcher_test.go b/modules/caddyhttp/fileserver/matcher_test.go
--- a/modules/caddyhttp/fileserver/matcher_test.go
+++ b/modules/caddyhttp/fileserver/matcher_test.go
@@ -117,7 +117,7 @@ func TestFileMatcher(t *testing.T) {
},
} {
m := &MatchFile{
- fsmap: &filesyste... | null | null | key4127/refactor-dockerhub:caddy__caddyserver-6930 | true | 1743257743 | 7 | 286 | null | 1,994 | 0 | 0.9 | 1 | 0.4 | 0.45 | 0.832333 | 65.4345 | ||
2,797 | swe_bench_promax::test::46 | swe_bench_promax | test | 46 | bloomberg__blazingmq-827 | bloomberg/blazingmq | bloomberg/blazingmq | cpp | a95eb967f3f3986dba072d34c91484078f3367d8 | During cluster queue initialization, the `Domain::registerQueue` method conflates two distinct responsibilities: it both takes ownership of a queue in the domain's registry and internally invokes `Queue::configure` to set up the queue. This coupling is problematic because `Queue::configure` historically enforces a prec... | diff --git a/src/groups/mqb/mqbblp/mqbblp_clusterqueuehelper.cpp b/src/groups/mqb/mqbblp/mqbblp_clusterqueuehelper.cpp
--- a/src/groups/mqb/mqbblp/mqbblp_clusterqueuehelper.cpp
+++ b/src/groups/mqb/mqbblp/mqbblp_clusterqueuehelper.cpp
@@ -2039,19 +2039,12 @@ bsl::shared_ptr<mqbi::Queue> ClusterQueueHelper::createQueueF... | diff --git a/src/groups/mqb/mqbblp/mqbblp_queueenginetester.cpp b/src/groups/mqb/mqbblp/mqbblp_queueenginetester.cpp
--- a/src/groups/mqb/mqbblp/mqbblp_queueenginetester.cpp
+++ b/src/groups/mqb/mqbblp/mqbblp_queueenginetester.cpp
@@ -470,7 +470,13 @@ void QueueEngineTester::init(const mqbconfm::Domain& domainConfig,
... | null | null | key4127/refactor-dockerhub:bloomberg__blazingmq-827 | true | 1752253378 | 8 | 158 | null | 3,459 | 0.055556 | 0.9 | 1 | 0.47 | 0.45 | 1 | 65.407347 | ||
2,798 | swe_gym::train::838 | swe_gym | train | 838 | iterative__dvc-1817 | iterative/dvc | iterative/dvc | python | e99a4799f2d73e82cf2d98ad154a1605d7d25c09 | pull: incorrect bar
```
(3.7.0-dvc) ➜ dvc git:(dvctags) ✗ dvc pull
Preparing to download data from 's3://dvc-share/dvc/'
Preparing to collect status from s3://dvc-share/dvc/
[##############################] 100% Collecting information
[##############################] 100% Analysing status.
(1/3): [####################... | diff --git a/dvc/progress.py b/dvc/progress.py
--- a/dvc/progress.py
+++ b/dvc/progress.py
@@ -144,6 +144,7 @@ class ProgressCallback(object):
def __init__(self, total):
self.total = total
self.current = 0
+ progress.reset()
def update(self, name, progress_to_add=1):
self.c... | diff --git a/tests/unit/test_progress.py b/tests/unit/test_progress.py
--- a/tests/unit/test_progress.py
+++ b/tests/unit/test_progress.py
@@ -1,7 +1,7 @@
import mock
from unittest import TestCase
-from dvc.progress import progress, progress_aware
+from dvc.progress import progress, progress_aware, ProgressCallback... | ["tests/unit/test_progress.py::TestProgressCallback::test_should_init_reset_progress"] | ["tests/unit/test_progress.py::TestProgressAware::test"] | null | true | 2019-03-31T19:28:53Z | 1 | 1 | 1 | 577 | 0 | 0.85 | 1 | 0.55 | 0.4 | 0.0995 | 65.3735 | ||
2,799 | swe_gym::train::976 | swe_gym | train | 976 | dask__dask-9528 | dask/dask | dask/dask | python | f382d9e8439f5ed200da6ce66df7b2b33a0fc500 | Dask does not support tokenizing `datetime.time`, only `datetime.date` and `datetime.datetime`
Did not see a prior reported issue and very straightforward issue:
```
tokenize(time(1,2,3)) != tokenize(time(1,2,3))
```
PR in https://github.com/dask/dask/pull/9528
Dask does not support tokenizing `datetime.time`, only ... | diff --git a/dask/base.py b/dask/base.py
--- a/dask/base.py
+++ b/dask/base.py
@@ -947,6 +947,7 @@ def tokenize(*args, **kwargs):
complex,
type(Ellipsis),
datetime.date,
+ datetime.time,
datetime.timedelta,
pathlib.PurePath,
),
| diff --git a/dask/tests/test_base.py b/dask/tests/test_base.py
--- a/dask/tests/test_base.py
+++ b/dask/tests/test_base.py
@@ -574,6 +574,36 @@ def test_tokenize_datetime_date():
assert tokenize(datetime.date(2021, 6, 25)) != tokenize(datetime.date(2021, 6, 26))
+def test_tokenize_datetime_time():
+ # Same ... | ["dask/tests/test_base.py::test_tokenize_datetime_time"] | ["dask/tests/test_base.py::test_normalize_function_dataclass_field_no_repr", "dask/tests/test_base.py::test_tokenize_object", "dask/tests/test_base.py::test_tokenize_datetime_date", "dask/tests/test_base.py::test_tokenize_numpy_array_on_object_dtype", "dask/tests/test_base.py::test_custom_collection", "dask/tests/test_... | null | true | 2022-09-29T18:08:37Z | 1 | 1 | 1 | 528 | 0 | 0.85 | 1 | 0.55 | 0.4 | 0.091333 | 65.349 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.